Misc chrome polish: header badges, plan sidebar, diff panel, empty state (#3027)
Co-authored-by: codex <[email protected]>
This commit is contained in:
1 parent
0b40ea62e1
commit
343061a053
13 files changed
+747
-233
No files matched your search
@@ -22,7 +22,7 @@
|
||||
"test": "vp test run"
|
||||
},
|
||||
"dependencies": {
|
||||
"@anthropic-ai/claude-agent-sdk": "^0.3.154",
|
||||
"@anthropic-ai/claude-agent-sdk": "^0.3.170",
|
||||
"@effect/platform-bun": "catalog:",
|
||||
"@effect/platform-node": "catalog:",
|
||||
"@effect/platform-node-shared": "catalog:",
|
||||
|
||||
@@ -14,6 +14,7 @@ import {
|
||||
type PermissionResult,
|
||||
type PermissionUpdate,
|
||||
type SDKMessage,
|
||||
type SDKControlGetContextUsageResponse,
|
||||
type SDKResultMessage,
|
||||
type SettingSource,
|
||||
type SDKUserMessage,
|
||||
@@ -29,6 +30,7 @@ import {
|
||||
type ProviderApprovalDecision,
|
||||
ProviderDriverKind,
|
||||
ProviderInstanceId,
|
||||
type ModelSelection,
|
||||
ProviderItemId,
|
||||
type ProviderRuntimeEvent,
|
||||
type ProviderRuntimeTurnStatus,
|
||||
@@ -159,6 +161,13 @@ interface ToolInFlight {
|
||||
readonly lastEmittedInputFingerprint?: string;
|
||||
}
|
||||
|
||||
interface ClaudeTaskState {
|
||||
readonly id: string;
|
||||
subject: string;
|
||||
status: PlanStep["status"];
|
||||
readonly blockedBy: Set<string>;
|
||||
}
|
||||
|
||||
interface ClaudeSessionContext {
|
||||
session: ProviderSession;
|
||||
readonly promptQueue: Queue.Queue<PromptQueueItem>;
|
||||
@@ -175,9 +184,11 @@ interface ClaudeSessionContext {
|
||||
items: Array<unknown>;
|
||||
}>;
|
||||
readonly inFlightTools: Map<number, ToolInFlight>;
|
||||
readonly claudeTasks: Map<string, ClaudeTaskState>;
|
||||
turnState: ClaudeTurnState | undefined;
|
||||
lastKnownContextWindow: number | undefined;
|
||||
lastKnownTokenUsage: ThreadTokenUsageSnapshot | undefined;
|
||||
lastKnownTotalProcessedTokens: number | undefined;
|
||||
lastAssistantUuid: string | undefined;
|
||||
lastThreadStartedId: string | undefined;
|
||||
stopped: boolean;
|
||||
@@ -188,6 +199,7 @@ interface ClaudeQueryRuntime extends AsyncIterable<SDKMessage> {
|
||||
readonly setModel: (model?: string) => Promise<void>;
|
||||
readonly setPermissionMode: (mode: PermissionMode) => Promise<void>;
|
||||
readonly setMaxThinkingTokens: (maxThinkingTokens: number | null) => Promise<void>;
|
||||
readonly getContextUsage?: () => Promise<SDKControlGetContextUsageResponse>;
|
||||
readonly close: () => void;
|
||||
}
|
||||
|
||||
@@ -337,60 +349,220 @@ function maxClaudeContextWindowFromModelUsage(
|
||||
return maxContextWindow;
|
||||
}
|
||||
|
||||
function normalizeClaudeTokenUsage(
|
||||
function selectedClaudeContextWindow(
|
||||
modelSelection: ModelSelection | undefined,
|
||||
): number | undefined {
|
||||
switch (modelSelection?.model) {
|
||||
case "claude-opus-4-8":
|
||||
case "claude-opus-4-7":
|
||||
return 1_000_000;
|
||||
}
|
||||
|
||||
const optionValue = getModelSelectionStringOptionValue(modelSelection, "contextWindow");
|
||||
if (optionValue === "1m") {
|
||||
return 1_000_000;
|
||||
}
|
||||
if (optionValue === "200k") {
|
||||
return 200_000;
|
||||
}
|
||||
const caps = getClaudeModelCapabilities(modelSelection?.model);
|
||||
const hasContextWindowOption = getProviderOptionDescriptors({ caps }).some(
|
||||
(descriptor) => descriptor.type === "select" && descriptor.id === "contextWindow",
|
||||
);
|
||||
if (hasContextWindowOption) {
|
||||
return 200_000;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
function finiteNonNegativeInteger(value: unknown): number | undefined {
|
||||
return typeof value === "number" && Number.isFinite(value) && value >= 0
|
||||
? Math.round(value)
|
||||
: undefined;
|
||||
}
|
||||
|
||||
function finitePositiveInteger(value: unknown): number | undefined {
|
||||
return typeof value === "number" && Number.isFinite(value) && value > 0
|
||||
? Math.round(value)
|
||||
: undefined;
|
||||
}
|
||||
|
||||
function claudeUsageInputTokens(usage: Record<string, unknown>): number {
|
||||
return (
|
||||
(finiteNonNegativeInteger(usage.input_tokens) ?? 0) +
|
||||
(finiteNonNegativeInteger(usage.cache_creation_input_tokens) ?? 0) +
|
||||
(finiteNonNegativeInteger(usage.cache_read_input_tokens) ?? 0)
|
||||
);
|
||||
}
|
||||
|
||||
function claudeUsageOutputTokens(usage: Record<string, unknown>): number {
|
||||
return finiteNonNegativeInteger(usage.output_tokens) ?? 0;
|
||||
}
|
||||
|
||||
function lastClaudeUsageIteration(
|
||||
value: Record<string, unknown>,
|
||||
): Record<string, unknown> | undefined {
|
||||
const iterations = Array.isArray(value.iterations) ? value.iterations : [];
|
||||
return iterations.findLast(
|
||||
(iteration): iteration is Record<string, unknown> =>
|
||||
iteration !== null && typeof iteration === "object" && !Array.isArray(iteration),
|
||||
);
|
||||
}
|
||||
|
||||
function claudeTotalProcessedTokens(value: unknown): number | undefined {
|
||||
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const usage = value as Record<string, unknown>;
|
||||
const explicitTotal = finiteNonNegativeInteger(usage.total_tokens);
|
||||
if (explicitTotal !== undefined && explicitTotal > 0) {
|
||||
return explicitTotal;
|
||||
}
|
||||
|
||||
const total = claudeUsageInputTokens(usage) + claudeUsageOutputTokens(usage);
|
||||
return total > 0 ? total : undefined;
|
||||
}
|
||||
|
||||
function makeClaudeTokenUsageSnapshot(input: {
|
||||
readonly activeTokens: number;
|
||||
readonly inputTokens?: number;
|
||||
readonly outputTokens?: number;
|
||||
readonly contextWindow?: number;
|
||||
readonly totalProcessedTokens?: number;
|
||||
readonly lastUsedTokens?: number;
|
||||
readonly compactsAutomatically?: boolean;
|
||||
}): ThreadTokenUsageSnapshot | undefined {
|
||||
const activeTokens = finiteNonNegativeInteger(input.activeTokens);
|
||||
if (activeTokens === undefined || activeTokens <= 0) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const maxTokens = finitePositiveInteger(input.contextWindow);
|
||||
const usedTokens = maxTokens !== undefined ? Math.min(activeTokens, maxTokens) : activeTokens;
|
||||
const lastUsedTokens =
|
||||
finiteNonNegativeInteger(input.lastUsedTokens) ??
|
||||
(maxTokens !== undefined ? Math.min(activeTokens, maxTokens) : activeTokens);
|
||||
const totalProcessedTokens = finiteNonNegativeInteger(input.totalProcessedTokens);
|
||||
const inputTokens = finiteNonNegativeInteger(input.inputTokens);
|
||||
const outputTokens = finiteNonNegativeInteger(input.outputTokens);
|
||||
|
||||
return {
|
||||
usedTokens,
|
||||
lastUsedTokens,
|
||||
...(totalProcessedTokens !== undefined && totalProcessedTokens > usedTokens
|
||||
? { totalProcessedTokens }
|
||||
: {}),
|
||||
...(inputTokens !== undefined && inputTokens > 0 ? { inputTokens } : {}),
|
||||
...(outputTokens !== undefined && outputTokens > 0 ? { outputTokens } : {}),
|
||||
...(maxTokens !== undefined ? { maxTokens } : {}),
|
||||
...(input.compactsAutomatically !== undefined
|
||||
? { compactsAutomatically: input.compactsAutomatically }
|
||||
: {}),
|
||||
};
|
||||
}
|
||||
|
||||
function normalizeClaudeActiveTokenUsage(
|
||||
value: unknown,
|
||||
contextWindow?: number,
|
||||
totalProcessedTokens?: number,
|
||||
): ThreadTokenUsageSnapshot | undefined {
|
||||
if (!value || typeof value !== "object") {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const usage = value as Record<string, unknown>;
|
||||
const inputTokens =
|
||||
(typeof usage.input_tokens === "number" && Number.isFinite(usage.input_tokens)
|
||||
? usage.input_tokens
|
||||
: 0) +
|
||||
(typeof usage.cache_creation_input_tokens === "number" &&
|
||||
Number.isFinite(usage.cache_creation_input_tokens)
|
||||
? usage.cache_creation_input_tokens
|
||||
: 0) +
|
||||
(typeof usage.cache_read_input_tokens === "number" &&
|
||||
Number.isFinite(usage.cache_read_input_tokens)
|
||||
? usage.cache_read_input_tokens
|
||||
: 0);
|
||||
const outputTokens =
|
||||
typeof usage.output_tokens === "number" && Number.isFinite(usage.output_tokens)
|
||||
? usage.output_tokens
|
||||
: 0;
|
||||
const derivedTotalProcessedTokens = inputTokens + outputTokens;
|
||||
const totalProcessedTokens =
|
||||
(typeof usage.total_tokens === "number" && Number.isFinite(usage.total_tokens)
|
||||
? usage.total_tokens
|
||||
: undefined) ?? (derivedTotalProcessedTokens > 0 ? derivedTotalProcessedTokens : undefined);
|
||||
if (totalProcessedTokens === undefined || totalProcessedTokens <= 0) {
|
||||
const activeUsage = lastClaudeUsageIteration(usage) ?? usage;
|
||||
const inputTokens = claudeUsageInputTokens(activeUsage);
|
||||
const outputTokens = claudeUsageOutputTokens(activeUsage);
|
||||
const activeTokens = claudeTotalProcessedTokens(activeUsage) ?? inputTokens + outputTokens;
|
||||
if (activeTokens <= 0) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const maxTokens =
|
||||
typeof contextWindow === "number" && Number.isFinite(contextWindow) && contextWindow > 0
|
||||
? contextWindow
|
||||
: undefined;
|
||||
const usedTokens =
|
||||
maxTokens !== undefined ? Math.min(totalProcessedTokens, maxTokens) : totalProcessedTokens;
|
||||
return makeClaudeTokenUsageSnapshot({
|
||||
activeTokens,
|
||||
inputTokens,
|
||||
outputTokens,
|
||||
...(contextWindow !== undefined ? { contextWindow } : {}),
|
||||
...(totalProcessedTokens !== undefined ? { totalProcessedTokens } : {}),
|
||||
});
|
||||
}
|
||||
|
||||
function normalizeClaudeContextUsageApiSnapshot(
|
||||
value: SDKControlGetContextUsageResponse,
|
||||
totalProcessedTokens?: number,
|
||||
): ThreadTokenUsageSnapshot | undefined {
|
||||
return makeClaudeTokenUsageSnapshot({
|
||||
activeTokens: value.totalTokens,
|
||||
contextWindow: value.maxTokens,
|
||||
...(totalProcessedTokens !== undefined ? { totalProcessedTokens } : {}),
|
||||
compactsAutomatically: value.isAutoCompactEnabled,
|
||||
});
|
||||
}
|
||||
|
||||
function compactBoundaryTokenUsageSnapshot(
|
||||
message: Record<string, unknown>,
|
||||
contextWindow?: number,
|
||||
totalProcessedTokens?: number,
|
||||
): ThreadTokenUsageSnapshot | undefined {
|
||||
const metadata = message.compact_metadata;
|
||||
if (!metadata || typeof metadata !== "object" || Array.isArray(metadata)) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const compactMetadata = metadata as Record<string, unknown>;
|
||||
const postTokens = finiteNonNegativeInteger(compactMetadata.post_tokens);
|
||||
if (postTokens === undefined || postTokens <= 0) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const preTokens = finiteNonNegativeInteger(compactMetadata.pre_tokens);
|
||||
return makeClaudeTokenUsageSnapshot({
|
||||
activeTokens: postTokens,
|
||||
...(preTokens !== undefined ? { lastUsedTokens: preTokens } : {}),
|
||||
...(contextWindow !== undefined ? { contextWindow } : {}),
|
||||
...(totalProcessedTokens !== undefined ? { totalProcessedTokens } : {}),
|
||||
});
|
||||
}
|
||||
|
||||
function normalizeClaudeTaskProgressTokenUsage(
|
||||
value: unknown,
|
||||
context: ClaudeSessionContext,
|
||||
): ThreadTokenUsageSnapshot | undefined {
|
||||
const totalTokens = claudeTotalProcessedTokens(value);
|
||||
if (totalTokens === undefined || totalTokens <= 0) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const lastUsedTokens = context.lastKnownTokenUsage?.usedTokens;
|
||||
const activeTokens =
|
||||
lastUsedTokens !== undefined ? Math.max(totalTokens, lastUsedTokens) : totalTokens;
|
||||
if (lastUsedTokens !== undefined && activeTokens === lastUsedTokens) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const usage = value as Record<string, unknown>;
|
||||
const snapshot = makeClaudeTokenUsageSnapshot({
|
||||
activeTokens,
|
||||
...(context.lastKnownContextWindow !== undefined
|
||||
? { contextWindow: context.lastKnownContextWindow }
|
||||
: {}),
|
||||
totalProcessedTokens: Math.max(
|
||||
totalTokens,
|
||||
context.lastKnownTotalProcessedTokens ?? totalTokens,
|
||||
),
|
||||
});
|
||||
if (!snapshot) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const toolUses = finiteNonNegativeInteger(usage.tool_uses);
|
||||
const durationMs = finiteNonNegativeInteger(usage.duration_ms);
|
||||
return {
|
||||
usedTokens,
|
||||
lastUsedTokens: usedTokens,
|
||||
...(totalProcessedTokens > usedTokens ? { totalProcessedTokens } : {}),
|
||||
...(inputTokens > 0 ? { inputTokens } : {}),
|
||||
...(outputTokens > 0 ? { outputTokens } : {}),
|
||||
...(maxTokens !== undefined ? { maxTokens } : {}),
|
||||
...(typeof usage.tool_uses === "number" && Number.isFinite(usage.tool_uses)
|
||||
? { toolUses: usage.tool_uses }
|
||||
: {}),
|
||||
...(typeof usage.duration_ms === "number" && Number.isFinite(usage.duration_ms)
|
||||
? { durationMs: usage.duration_ms }
|
||||
: {}),
|
||||
...snapshot,
|
||||
...(toolUses !== undefined ? { toolUses } : {}),
|
||||
...(durationMs !== undefined ? { durationMs } : {}),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -539,6 +711,140 @@ function extractPlanStepsFromTodoInput(input: Record<string, unknown>): PlanStep
|
||||
}));
|
||||
}
|
||||
|
||||
function isClaudeTaskTool(toolName: string): boolean {
|
||||
return toolName === "TaskCreate" || toolName === "TaskUpdate" || toolName === "TaskList";
|
||||
}
|
||||
|
||||
function normalizeClaudeTaskStatus(value: unknown): PlanStep["status"] {
|
||||
return value === "completed" ? "completed" : value === "in_progress" ? "inProgress" : "pending";
|
||||
}
|
||||
|
||||
function readString(value: unknown): string | undefined {
|
||||
return typeof value === "string" && value.trim().length > 0 ? value.trim() : undefined;
|
||||
}
|
||||
|
||||
function readStringArray(value: unknown): Array<string> {
|
||||
return Array.isArray(value)
|
||||
? value.filter((entry): entry is string => typeof entry === "string" && entry.length > 0)
|
||||
: [];
|
||||
}
|
||||
|
||||
function readClaudeToolUseResult(message: SDKMessage): Record<string, unknown> | undefined {
|
||||
if (message.type !== "user") {
|
||||
return undefined;
|
||||
}
|
||||
const result = (message as { readonly tool_use_result?: unknown }).tool_use_result;
|
||||
return result !== null && typeof result === "object" && !Array.isArray(result)
|
||||
? (result as Record<string, unknown>)
|
||||
: undefined;
|
||||
}
|
||||
|
||||
function readClaudeTaskFromResult(
|
||||
result: Record<string, unknown> | undefined,
|
||||
): Record<string, unknown> | undefined {
|
||||
const task = result?.task;
|
||||
return task !== null && typeof task === "object" && !Array.isArray(task)
|
||||
? (task as Record<string, unknown>)
|
||||
: undefined;
|
||||
}
|
||||
|
||||
function applyClaudeTaskToolResult(
|
||||
tasks: Map<string, ClaudeTaskState>,
|
||||
tool: ToolInFlight,
|
||||
result: Record<string, unknown> | undefined,
|
||||
): boolean {
|
||||
if (!isClaudeTaskTool(tool.toolName)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
let changed = false;
|
||||
if (tool.toolName === "TaskList") {
|
||||
const resultTasks = result?.tasks;
|
||||
if (!Array.isArray(resultTasks)) {
|
||||
return false;
|
||||
}
|
||||
tasks.clear();
|
||||
for (const entry of resultTasks) {
|
||||
if (entry === null || typeof entry !== "object" || Array.isArray(entry)) {
|
||||
continue;
|
||||
}
|
||||
const task = entry as Record<string, unknown>;
|
||||
const id = readString(task.id);
|
||||
const subject = readString(task.subject);
|
||||
if (!id || !subject) {
|
||||
continue;
|
||||
}
|
||||
tasks.set(id, {
|
||||
id,
|
||||
subject,
|
||||
status: normalizeClaudeTaskStatus(task.status),
|
||||
blockedBy: new Set(readStringArray(task.blockedBy)),
|
||||
});
|
||||
}
|
||||
return tasks.size > 0;
|
||||
}
|
||||
|
||||
if (tool.toolName === "TaskCreate") {
|
||||
const resultTask = readClaudeTaskFromResult(result);
|
||||
const id = readString(resultTask?.id);
|
||||
const subject = readString(resultTask?.subject) ?? readString(tool.input.subject);
|
||||
if (!id || !subject) {
|
||||
return false;
|
||||
}
|
||||
tasks.set(id, {
|
||||
id,
|
||||
subject,
|
||||
status: normalizeClaudeTaskStatus(tool.input.status),
|
||||
blockedBy: new Set(readStringArray(tool.input.blockedBy)),
|
||||
});
|
||||
return true;
|
||||
}
|
||||
|
||||
const taskId = readString(tool.input.taskId) ?? readString(result?.taskId);
|
||||
if (!taskId) {
|
||||
return false;
|
||||
}
|
||||
const task = tasks.get(taskId);
|
||||
if (!task) {
|
||||
return false;
|
||||
}
|
||||
const subject = readString(tool.input.subject);
|
||||
if (subject && task.subject !== subject) {
|
||||
task.subject = subject;
|
||||
changed = true;
|
||||
}
|
||||
if (typeof tool.input.status === "string") {
|
||||
const status = normalizeClaudeTaskStatus(tool.input.status);
|
||||
if (task.status !== status) {
|
||||
task.status = status;
|
||||
changed = true;
|
||||
}
|
||||
}
|
||||
for (const dependency of readStringArray(tool.input.addBlockedBy)) {
|
||||
if (!task.blockedBy.has(dependency)) {
|
||||
task.blockedBy.add(dependency);
|
||||
changed = true;
|
||||
}
|
||||
}
|
||||
for (const dependency of readStringArray(tool.input.removeBlockedBy)) {
|
||||
if (task.blockedBy.delete(dependency)) {
|
||||
changed = true;
|
||||
}
|
||||
}
|
||||
return changed;
|
||||
}
|
||||
|
||||
function planStepsFromClaudeTasks(tasks: Map<string, ClaudeTaskState>): PlanStep[] {
|
||||
return Array.from(tasks.values()).map((task) => {
|
||||
const blockedBy = Array.from(task.blockedBy);
|
||||
const blockedSuffix = blockedBy.length > 0 ? ` (blocked by #${blockedBy.join(", #")})` : "";
|
||||
return {
|
||||
step: `${task.subject}${blockedSuffix}`,
|
||||
status: task.status,
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
function summarizeToolRequest(toolName: string, input: Record<string, unknown>): string {
|
||||
const commandValue = input.command ?? input.cmd;
|
||||
const command = typeof commandValue === "string" ? commandValue : undefined;
|
||||
@@ -1438,6 +1744,70 @@ export const makeClaudeAdapter = Effect.fn("makeClaudeAdapter")(function* (
|
||||
});
|
||||
});
|
||||
|
||||
const emitThreadTokenUsage = Effect.fn("emitThreadTokenUsage")(function* (
|
||||
context: ClaudeSessionContext,
|
||||
usage: ThreadTokenUsageSnapshot | undefined,
|
||||
options?: {
|
||||
readonly rawMethod?: string;
|
||||
readonly rawPayload?: unknown;
|
||||
},
|
||||
) {
|
||||
if (!usage) {
|
||||
return;
|
||||
}
|
||||
|
||||
context.lastKnownTokenUsage = usage;
|
||||
context.lastKnownTotalProcessedTokens =
|
||||
usage.totalProcessedTokens ?? context.lastKnownTotalProcessedTokens;
|
||||
|
||||
const turnState = context.turnState;
|
||||
const stamp = yield* makeEventStamp();
|
||||
yield* offerRuntimeEvent({
|
||||
type: "thread.token-usage.updated",
|
||||
eventId: stamp.eventId,
|
||||
provider: PROVIDER,
|
||||
createdAt: stamp.createdAt,
|
||||
threadId: context.session.threadId,
|
||||
...(turnState ? { turnId: turnState.turnId } : {}),
|
||||
payload: {
|
||||
usage,
|
||||
},
|
||||
providerRefs: nativeProviderRefs(context),
|
||||
...(options?.rawMethod || options?.rawPayload
|
||||
? {
|
||||
raw: {
|
||||
source: "claude.sdk.message" as const,
|
||||
...(options.rawMethod ? { method: options.rawMethod } : {}),
|
||||
payload: options.rawPayload,
|
||||
},
|
||||
}
|
||||
: {}),
|
||||
});
|
||||
});
|
||||
|
||||
const queryCurrentContextUsage = Effect.fn("queryCurrentContextUsage")(function* (
|
||||
context: ClaudeSessionContext,
|
||||
totalProcessedTokens?: number,
|
||||
) {
|
||||
if (!context.query.getContextUsage) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const usage = yield* Effect.promise(async () => {
|
||||
try {
|
||||
return await context.query.getContextUsage?.();
|
||||
} catch {
|
||||
return undefined;
|
||||
}
|
||||
});
|
||||
if (!usage) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
context.lastKnownContextWindow = usage.maxTokens;
|
||||
return normalizeClaudeContextUsageApiSnapshot(usage, totalProcessedTokens);
|
||||
});
|
||||
|
||||
const emitProposedPlanCompleted = Effect.fn("emitProposedPlanCompleted")(function* (
|
||||
context: ClaudeSessionContext,
|
||||
input: {
|
||||
@@ -1485,6 +1855,42 @@ export const makeClaudeAdapter = Effect.fn("makeClaudeAdapter")(function* (
|
||||
});
|
||||
});
|
||||
|
||||
const emitClaudeTaskPlanUpdated = Effect.fn("emitClaudeTaskPlanUpdated")(function* (
|
||||
context: ClaudeSessionContext,
|
||||
input: {
|
||||
readonly toolUseId: string;
|
||||
readonly rawMethod: string;
|
||||
readonly rawPayload: unknown;
|
||||
},
|
||||
) {
|
||||
const plan = planStepsFromClaudeTasks(context.claudeTasks);
|
||||
if (plan.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
const stamp = yield* makeEventStamp();
|
||||
yield* offerRuntimeEvent({
|
||||
type: "turn.plan.updated",
|
||||
eventId: stamp.eventId,
|
||||
provider: PROVIDER,
|
||||
createdAt: stamp.createdAt,
|
||||
threadId: context.session.threadId,
|
||||
...(context.turnState ? { turnId: asCanonicalTurnId(context.turnState.turnId) } : {}),
|
||||
payload: {
|
||||
explanation: "Claude Tasks",
|
||||
plan,
|
||||
},
|
||||
providerRefs: nativeProviderRefs(context, {
|
||||
providerItemId: input.toolUseId,
|
||||
}),
|
||||
raw: {
|
||||
source: "claude.sdk.message",
|
||||
method: input.rawMethod,
|
||||
payload: input.rawPayload,
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
const completeTurn = Effect.fn("completeTurn")(function* (
|
||||
context: ClaudeSessionContext,
|
||||
status: ProviderRuntimeTurnStatus,
|
||||
@@ -1496,51 +1902,77 @@ export const makeClaudeAdapter = Effect.fn("makeClaudeAdapter")(function* (
|
||||
context.lastKnownContextWindow = resultContextWindow;
|
||||
}
|
||||
|
||||
// The SDK result.usage contains *accumulated* totals across all API calls
|
||||
// (input_tokens, cache_read_input_tokens, etc. summed over every request).
|
||||
// This does NOT represent the current context window size.
|
||||
// Instead, use the last known context-window-accurate usage from task_progress
|
||||
// events and treat the accumulated total as totalProcessedTokens.
|
||||
const accumulatedSnapshot = normalizeClaudeTokenUsage(
|
||||
result?.usage,
|
||||
resultContextWindow ?? context.lastKnownContextWindow,
|
||||
);
|
||||
const accumulatedTotalProcessedTokens =
|
||||
accumulatedSnapshot?.totalProcessedTokens ?? accumulatedSnapshot?.usedTokens;
|
||||
const lastGoodUsage = context.lastKnownTokenUsage;
|
||||
const maxTokens = resultContextWindow ?? context.lastKnownContextWindow;
|
||||
const usageSnapshot: ThreadTokenUsageSnapshot | undefined = lastGoodUsage
|
||||
? {
|
||||
...lastGoodUsage,
|
||||
...(typeof maxTokens === "number" && Number.isFinite(maxTokens) && maxTokens > 0
|
||||
? { maxTokens }
|
||||
: {}),
|
||||
...(typeof accumulatedTotalProcessedTokens === "number" &&
|
||||
Number.isFinite(accumulatedTotalProcessedTokens) &&
|
||||
accumulatedTotalProcessedTokens > lastGoodUsage.usedTokens
|
||||
? {
|
||||
totalProcessedTokens: accumulatedTotalProcessedTokens,
|
||||
}
|
||||
: {}),
|
||||
}
|
||||
: accumulatedSnapshot;
|
||||
const accumulatedTotalProcessedTokens = claudeTotalProcessedTokens(result?.usage);
|
||||
if (accumulatedTotalProcessedTokens !== undefined) {
|
||||
context.lastKnownTotalProcessedTokens = accumulatedTotalProcessedTokens;
|
||||
}
|
||||
|
||||
const contextUsageSnapshot = yield* queryCurrentContextUsage(
|
||||
context,
|
||||
accumulatedTotalProcessedTokens ?? context.lastKnownTotalProcessedTokens,
|
||||
);
|
||||
const resultUsageRecord =
|
||||
result?.usage && typeof result.usage === "object" && !Array.isArray(result.usage)
|
||||
? (result.usage as Record<string, unknown>)
|
||||
: undefined;
|
||||
const hasResultUsageIteration =
|
||||
resultUsageRecord !== undefined && lastClaudeUsageIteration(resultUsageRecord) !== undefined;
|
||||
const resultHasActiveUsage =
|
||||
resultUsageRecord !== undefined &&
|
||||
(hasResultUsageIteration ||
|
||||
claudeUsageInputTokens(resultUsageRecord) + claudeUsageOutputTokens(resultUsageRecord) > 0);
|
||||
const resultTotalOnly =
|
||||
resultUsageRecord !== undefined &&
|
||||
!resultHasActiveUsage &&
|
||||
claudeTotalProcessedTokens(resultUsageRecord) !== undefined;
|
||||
const resultIterationSnapshot = resultUsageRecord
|
||||
? normalizeClaudeActiveTokenUsage(
|
||||
resultUsageRecord,
|
||||
maxTokens,
|
||||
accumulatedTotalProcessedTokens ?? context.lastKnownTotalProcessedTokens,
|
||||
)
|
||||
: undefined;
|
||||
const lastGoodUsage = context.lastKnownTokenUsage;
|
||||
const usageSnapshot: ThreadTokenUsageSnapshot | undefined =
|
||||
contextUsageSnapshot ??
|
||||
(resultTotalOnly && lastGoodUsage
|
||||
? {
|
||||
...lastGoodUsage,
|
||||
...(typeof maxTokens === "number" && Number.isFinite(maxTokens) && maxTokens > 0
|
||||
? { maxTokens }
|
||||
: {}),
|
||||
...(typeof accumulatedTotalProcessedTokens === "number" &&
|
||||
Number.isFinite(accumulatedTotalProcessedTokens) &&
|
||||
accumulatedTotalProcessedTokens > lastGoodUsage.usedTokens
|
||||
? {
|
||||
totalProcessedTokens: accumulatedTotalProcessedTokens,
|
||||
}
|
||||
: {}),
|
||||
}
|
||||
: resultIterationSnapshot) ??
|
||||
(lastGoodUsage
|
||||
? {
|
||||
...lastGoodUsage,
|
||||
...(typeof maxTokens === "number" && Number.isFinite(maxTokens) && maxTokens > 0
|
||||
? { maxTokens }
|
||||
: {}),
|
||||
...(typeof accumulatedTotalProcessedTokens === "number" &&
|
||||
Number.isFinite(accumulatedTotalProcessedTokens) &&
|
||||
accumulatedTotalProcessedTokens > lastGoodUsage.usedTokens
|
||||
? {
|
||||
totalProcessedTokens: accumulatedTotalProcessedTokens,
|
||||
}
|
||||
: {}),
|
||||
}
|
||||
: undefined);
|
||||
|
||||
const turnState = context.turnState;
|
||||
if (!turnState) {
|
||||
if (usageSnapshot) {
|
||||
const usageStamp = yield* makeEventStamp();
|
||||
yield* offerRuntimeEvent({
|
||||
type: "thread.token-usage.updated",
|
||||
eventId: usageStamp.eventId,
|
||||
provider: PROVIDER,
|
||||
createdAt: usageStamp.createdAt,
|
||||
threadId: context.session.threadId,
|
||||
payload: {
|
||||
usage: usageSnapshot,
|
||||
},
|
||||
providerRefs: {},
|
||||
});
|
||||
}
|
||||
yield* emitThreadTokenUsage(context, usageSnapshot, {
|
||||
rawMethod: "claude/result",
|
||||
rawPayload: result ?? { status },
|
||||
});
|
||||
|
||||
const stamp = yield* makeEventStamp();
|
||||
yield* offerRuntimeEvent({
|
||||
@@ -1611,21 +2043,10 @@ export const makeClaudeAdapter = Effect.fn("makeClaudeAdapter")(function* (
|
||||
items: [...turnState.items],
|
||||
});
|
||||
|
||||
if (usageSnapshot) {
|
||||
const usageStamp = yield* makeEventStamp();
|
||||
yield* offerRuntimeEvent({
|
||||
type: "thread.token-usage.updated",
|
||||
eventId: usageStamp.eventId,
|
||||
provider: PROVIDER,
|
||||
createdAt: usageStamp.createdAt,
|
||||
threadId: context.session.threadId,
|
||||
turnId: turnState.turnId,
|
||||
payload: {
|
||||
usage: usageSnapshot,
|
||||
},
|
||||
providerRefs: nativeProviderRefs(context),
|
||||
});
|
||||
}
|
||||
yield* emitThreadTokenUsage(context, usageSnapshot, {
|
||||
rawMethod: "claude/result",
|
||||
rawPayload: result ?? { status },
|
||||
});
|
||||
|
||||
const stamp = yield* makeEventStamp();
|
||||
yield* offerRuntimeEvent({
|
||||
@@ -1670,6 +2091,23 @@ export const makeClaudeAdapter = Effect.fn("makeClaudeAdapter")(function* (
|
||||
|
||||
const { event } = message;
|
||||
|
||||
if (event.type === "message_delta") {
|
||||
if (message.parent_tool_use_id !== null && message.parent_tool_use_id !== undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
const snapshot = normalizeClaudeActiveTokenUsage(
|
||||
event.usage,
|
||||
context.lastKnownContextWindow,
|
||||
context.lastKnownTotalProcessedTokens,
|
||||
);
|
||||
yield* emitThreadTokenUsage(context, snapshot, {
|
||||
rawMethod: "claude/stream_event/message_delta",
|
||||
rawPayload: message,
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
if (event.type === "content_block_delta") {
|
||||
if (
|
||||
(event.delta.type === "text_delta" || event.delta.type === "thinking_delta") &&
|
||||
@@ -1932,6 +2370,7 @@ export const makeClaudeAdapter = Effect.fn("makeClaudeAdapter")(function* (
|
||||
|
||||
const [index, tool] = toolEntry;
|
||||
const itemStatus = toolResult.isError ? "failed" : "completed";
|
||||
const toolUseResult = readClaudeToolUseResult(message);
|
||||
const toolData = {
|
||||
toolName: tool.toolName,
|
||||
input: tool.input,
|
||||
@@ -2016,6 +2455,17 @@ export const makeClaudeAdapter = Effect.fn("makeClaudeAdapter")(function* (
|
||||
},
|
||||
});
|
||||
|
||||
if (
|
||||
!toolResult.isError &&
|
||||
applyClaudeTaskToolResult(context.claudeTasks, tool, toolUseResult)
|
||||
) {
|
||||
yield* emitClaudeTaskPlanUpdated(context, {
|
||||
toolUseId: tool.itemId,
|
||||
rawMethod: "claude/user",
|
||||
rawPayload: message,
|
||||
});
|
||||
}
|
||||
|
||||
context.inFlightTools.delete(index);
|
||||
}
|
||||
});
|
||||
@@ -2171,6 +2621,18 @@ export const makeClaudeAdapter = Effect.fn("makeClaudeAdapter")(function* (
|
||||
});
|
||||
return;
|
||||
case "compact_boundary":
|
||||
yield* emitThreadTokenUsage(
|
||||
context,
|
||||
compactBoundaryTokenUsageSnapshot(
|
||||
message as unknown as Record<string, unknown>,
|
||||
context.lastKnownContextWindow,
|
||||
context.lastKnownTotalProcessedTokens,
|
||||
),
|
||||
{
|
||||
rawMethod: "claude/system/compact_boundary",
|
||||
rawPayload: message,
|
||||
},
|
||||
);
|
||||
yield* offerRuntimeEvent({
|
||||
...base,
|
||||
type: "thread.state.changed",
|
||||
@@ -2229,25 +2691,14 @@ export const makeClaudeAdapter = Effect.fn("makeClaudeAdapter")(function* (
|
||||
});
|
||||
return;
|
||||
case "task_progress":
|
||||
if (message.usage) {
|
||||
const normalizedUsage = normalizeClaudeTokenUsage(
|
||||
message.usage,
|
||||
context.lastKnownContextWindow,
|
||||
);
|
||||
if (normalizedUsage) {
|
||||
context.lastKnownTokenUsage = normalizedUsage;
|
||||
const usageStamp = yield* makeEventStamp();
|
||||
yield* offerRuntimeEvent({
|
||||
...base,
|
||||
eventId: usageStamp.eventId,
|
||||
createdAt: usageStamp.createdAt,
|
||||
type: "thread.token-usage.updated",
|
||||
payload: {
|
||||
usage: normalizedUsage,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
yield* emitThreadTokenUsage(
|
||||
context,
|
||||
normalizeClaudeTaskProgressTokenUsage(message.usage, context),
|
||||
{
|
||||
rawMethod: "claude/system/task_progress",
|
||||
rawPayload: message,
|
||||
},
|
||||
);
|
||||
yield* offerRuntimeEvent({
|
||||
...base,
|
||||
type: "task.progress",
|
||||
@@ -2261,25 +2712,14 @@ export const makeClaudeAdapter = Effect.fn("makeClaudeAdapter")(function* (
|
||||
});
|
||||
return;
|
||||
case "task_notification":
|
||||
if (message.usage) {
|
||||
const normalizedUsage = normalizeClaudeTokenUsage(
|
||||
message.usage,
|
||||
context.lastKnownContextWindow,
|
||||
);
|
||||
if (normalizedUsage) {
|
||||
context.lastKnownTokenUsage = normalizedUsage;
|
||||
const usageStamp = yield* makeEventStamp();
|
||||
yield* offerRuntimeEvent({
|
||||
...base,
|
||||
eventId: usageStamp.eventId,
|
||||
createdAt: usageStamp.createdAt,
|
||||
type: "thread.token-usage.updated",
|
||||
payload: {
|
||||
usage: normalizedUsage,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
yield* emitThreadTokenUsage(
|
||||
context,
|
||||
normalizeClaudeTaskProgressTokenUsage(message.usage, context),
|
||||
{
|
||||
rawMethod: "claude/system/task_notification",
|
||||
rawPayload: message,
|
||||
},
|
||||
);
|
||||
yield* offerRuntimeEvent({
|
||||
...base,
|
||||
type: "task.completed",
|
||||
@@ -2669,6 +3109,7 @@ export const makeClaudeAdapter = Effect.fn("makeClaudeAdapter")(function* (
|
||||
const pendingApprovals = new Map<ApprovalRequestId, PendingApproval>();
|
||||
const pendingUserInputs = new Map<ApprovalRequestId, PendingUserInput>();
|
||||
const inFlightTools = new Map<number, ToolInFlight>();
|
||||
const claudeTasks = new Map<string, ClaudeTaskState>();
|
||||
|
||||
const contextRef = yield* Ref.make<ClaudeSessionContext | undefined>(undefined);
|
||||
|
||||
@@ -2969,6 +3410,7 @@ export const makeClaudeAdapter = Effect.fn("makeClaudeAdapter")(function* (
|
||||
const caps = getClaudeModelCapabilities(modelSelection?.model);
|
||||
const descriptors = getProviderOptionDescriptors({ caps });
|
||||
const apiModelId = modelSelection ? resolveClaudeApiModelId(modelSelection) : undefined;
|
||||
const initialContextWindow = selectedClaudeContextWindow(modelSelection);
|
||||
const rawEffort = getModelSelectionStringOptionValue(modelSelection, "effort");
|
||||
const effort = resolveClaudeEffort(caps, rawEffort) ?? null;
|
||||
const fastModeSupported = descriptors.some(
|
||||
@@ -3094,9 +3536,11 @@ export const makeClaudeAdapter = Effect.fn("makeClaudeAdapter")(function* (
|
||||
pendingUserInputs,
|
||||
turns: [],
|
||||
inFlightTools,
|
||||
claudeTasks,
|
||||
turnState: undefined,
|
||||
lastKnownContextWindow: undefined,
|
||||
lastKnownContextWindow: initialContextWindow,
|
||||
lastKnownTokenUsage: undefined,
|
||||
lastKnownTotalProcessedTokens: undefined,
|
||||
lastAssistantUuid: resumeState?.resumeSessionAt,
|
||||
lastThreadStartedId: undefined,
|
||||
stopped: false,
|
||||
|
||||
@@ -108,14 +108,6 @@ const BUILT_IN_MODELS: ReadonlyArray<ServerProviderModel> = [
|
||||
id: "fastMode",
|
||||
label: "Fast Mode",
|
||||
}),
|
||||
buildSelectOptionDescriptor({
|
||||
id: "contextWindow",
|
||||
label: "Context Window",
|
||||
options: [
|
||||
{ value: "200k", label: "200k", isDefault: true },
|
||||
{ value: "1m", label: "1M" },
|
||||
],
|
||||
}),
|
||||
],
|
||||
}),
|
||||
},
|
||||
@@ -142,14 +134,6 @@ const BUILT_IN_MODELS: ReadonlyArray<ServerProviderModel> = [
|
||||
id: "fastMode",
|
||||
label: "Fast Mode",
|
||||
}),
|
||||
buildSelectOptionDescriptor({
|
||||
id: "contextWindow",
|
||||
label: "Context Window",
|
||||
options: [
|
||||
{ value: "200k", label: "200k", isDefault: true },
|
||||
{ value: "1m", label: "1M" },
|
||||
],
|
||||
}),
|
||||
],
|
||||
}),
|
||||
},
|
||||
|
||||
@@ -665,6 +665,7 @@ function UncachedShikiCodeBlock({
|
||||
interface MarkdownFileLinkProps {
|
||||
href: string;
|
||||
targetPath: string;
|
||||
iconPath: string;
|
||||
displayPath: string;
|
||||
label: string;
|
||||
copyMarkdown: string;
|
||||
@@ -938,6 +939,7 @@ function MarkdownExternalLinkContent({
|
||||
const MarkdownFileLink = memo(function MarkdownFileLink({
|
||||
href,
|
||||
targetPath,
|
||||
iconPath,
|
||||
displayPath,
|
||||
label,
|
||||
copyMarkdown,
|
||||
@@ -1044,7 +1046,7 @@ const MarkdownFileLink = memo(function MarkdownFileLink({
|
||||
}}
|
||||
onContextMenu={handleContextMenu}
|
||||
>
|
||||
<FileTagChipContent path={targetPath} label={label} theme={theme} selectable />
|
||||
<FileTagChipContent path={iconPath} label={label} theme={theme} selectable />
|
||||
</a>
|
||||
}
|
||||
/>
|
||||
@@ -1067,6 +1069,7 @@ function areMarkdownFileLinkPropsEqual(
|
||||
return (
|
||||
previous.href === next.href &&
|
||||
previous.targetPath === next.targetPath &&
|
||||
previous.iconPath === next.iconPath &&
|
||||
previous.displayPath === next.displayPath &&
|
||||
previous.label === next.label &&
|
||||
previous.copyMarkdown === next.copyMarkdown &&
|
||||
@@ -1186,6 +1189,7 @@ function ChatMarkdown({
|
||||
<MarkdownFileLink
|
||||
href={fileLinkMeta.targetPath}
|
||||
targetPath={fileLinkMeta.targetPath}
|
||||
iconPath={fileLinkMeta.filePath}
|
||||
displayPath={fileLinkMeta.displayPath}
|
||||
label={labelParts.join(" · ")}
|
||||
copyMarkdown={`[${fileLinkMeta.basename}](${normalizedHref})`}
|
||||
|
||||
@@ -53,6 +53,8 @@ const DIFF_PANEL_UNSAFE_CSS = `
|
||||
[data-file],
|
||||
[data-error-wrapper],
|
||||
[data-virtualizer-buffer] {
|
||||
--diffs-header-font-family: var(--font-sans) !important;
|
||||
--diffs-font-family: var(--font-mono) !important;
|
||||
--diffs-bg: color-mix(in srgb, var(--card) 90%, var(--background)) !important;
|
||||
--diffs-light-bg: color-mix(in srgb, var(--card) 90%, var(--background)) !important;
|
||||
--diffs-dark-bg: color-mix(in srgb, var(--card) 90%, var(--background)) !important;
|
||||
@@ -93,6 +95,37 @@ const DIFF_PANEL_UNSAFE_CSS = `
|
||||
z-index: 4;
|
||||
background-color: color-mix(in srgb, var(--card) 94%, var(--foreground)) !important;
|
||||
border-bottom: 1px solid var(--border) !important;
|
||||
align-items: center !important;
|
||||
font-family: var(--font-sans) !important;
|
||||
font-size: 12px !important;
|
||||
line-height: 1 !important;
|
||||
min-height: 32px !important;
|
||||
padding-block: 6px !important;
|
||||
}
|
||||
|
||||
[data-diffs-header] [data-header-content] {
|
||||
align-items: center !important;
|
||||
line-height: 1 !important;
|
||||
}
|
||||
|
||||
[data-diffs-header] [data-metadata] {
|
||||
align-items: center !important;
|
||||
line-height: 1 !important;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
[data-diffs-header] [data-additions-count],
|
||||
[data-diffs-header] [data-deletions-count] {
|
||||
font-family: var(--font-mono) !important;
|
||||
font-size: 11px !important;
|
||||
font-variant-numeric: tabular-nums;
|
||||
line-height: 1 !important;
|
||||
}
|
||||
|
||||
[data-diffs-header] [data-change-icon],
|
||||
[data-diffs-header] [data-rename-icon] {
|
||||
display: block;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
[data-title] {
|
||||
@@ -103,6 +136,7 @@ const DIFF_PANEL_UNSAFE_CSS = `
|
||||
text-decoration: underline;
|
||||
text-decoration-color: transparent;
|
||||
text-underline-offset: 2px;
|
||||
font-family: var(--font-sans) !important;
|
||||
}
|
||||
|
||||
[data-title]:hover {
|
||||
@@ -488,7 +522,7 @@ export default function DiffPanel({ mode = "inline" }: DiffPanelProps) {
|
||||
inferredCheckpointTurnCountByTurnId[summary.turnId] ??
|
||||
"?"}
|
||||
</span>
|
||||
<span className="text-[9px] leading-tight opacity-70">
|
||||
<span className="text-[9px] leading-tight opacity-70 tabular-nums">
|
||||
{formatShortTimestamp(summary.completedAt, settings.timestampFormat)}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -19,6 +19,7 @@ import {
|
||||
ChevronDownIcon,
|
||||
CloudUploadIcon,
|
||||
ExternalLinkIcon,
|
||||
GitBranchPlusIcon,
|
||||
GitCommitIcon,
|
||||
InfoIcon,
|
||||
LockIcon,
|
||||
@@ -1611,7 +1612,10 @@ export default function GitActionsControl({
|
||||
void initAction.run();
|
||||
}}
|
||||
>
|
||||
{initAction.isPending ? "Initializing..." : "Initialize Git"}
|
||||
<GitBranchPlusIcon className="size-3.5" aria-hidden />
|
||||
<span className="ml-0.5">
|
||||
{initAction.isPending ? "Initializing..." : "Initialize Git"}
|
||||
</span>
|
||||
</Button>
|
||||
) : (
|
||||
<Group aria-label="Git actions" className="shrink-0">
|
||||
|
||||
@@ -30,7 +30,7 @@ export function NoActiveThreadState() {
|
||||
</header>
|
||||
|
||||
<Empty className="flex-1">
|
||||
<div className="w-full max-w-lg rounded-3xl border border-border/55 bg-card/20 px-8 py-12 shadow-sm/5">
|
||||
<div className="w-full max-w-lg px-8 py-12">
|
||||
<EmptyHeader className="max-w-none">
|
||||
<EmptyTitle className="text-foreground text-xl">Pick a thread to continue</EmptyTitle>
|
||||
<EmptyDescription className="mt-2 text-sm text-muted-foreground/78">
|
||||
|
||||
@@ -32,14 +32,14 @@ import { useCopyToClipboard } from "~/hooks/useCopyToClipboard";
|
||||
function stepStatusIcon(status: string): React.ReactNode {
|
||||
if (status === "completed") {
|
||||
return (
|
||||
<span className="flex size-5 shrink-0 items-center justify-center rounded-full bg-emerald-500/15 text-emerald-500">
|
||||
<span className="flex size-5 shrink-0 items-center justify-center rounded-full bg-success/10 text-success-foreground">
|
||||
<CheckIcon className="size-3" />
|
||||
</span>
|
||||
);
|
||||
}
|
||||
if (status === "inProgress") {
|
||||
return (
|
||||
<span className="flex size-5 shrink-0 items-center justify-center rounded-full bg-blue-500/15 text-blue-400">
|
||||
<span className="flex size-5 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary">
|
||||
<LoaderIcon className="size-3 animate-spin" />
|
||||
</span>
|
||||
);
|
||||
@@ -139,13 +139,14 @@ const PlanSidebar = memo(function PlanSidebar({
|
||||
<div className="flex h-12 shrink-0 items-center justify-between border-b border-border/60 px-3">
|
||||
<div className="flex items-center gap-2">
|
||||
<Badge
|
||||
variant="secondary"
|
||||
className="rounded-md bg-blue-500/10 px-1.5 py-0 text-[10px] font-semibold tracking-wide text-blue-400 uppercase"
|
||||
variant="info"
|
||||
size="sm"
|
||||
className="rounded-md px-1.5 py-0 font-semibold tracking-wide uppercase"
|
||||
>
|
||||
{label}
|
||||
</Badge>
|
||||
{activePlan ? (
|
||||
<span className="text-[11px] text-muted-foreground/60">
|
||||
<span className="text-[11px] text-muted-foreground/60 tabular-nums">
|
||||
{formatTimestamp(activePlan.createdAt, timestampFormat)}
|
||||
</span>
|
||||
) : null}
|
||||
@@ -211,12 +212,12 @@ const PlanSidebar = memo(function PlanSidebar({
|
||||
<div
|
||||
key={`${step.status}:${step.step}`}
|
||||
className={cn(
|
||||
"flex items-start gap-2.5 rounded-lg px-2.5 py-2 transition-colors duration-200",
|
||||
"flex items-center gap-2.5 rounded-lg px-2.5 py-2 transition-colors duration-200",
|
||||
step.status === "inProgress" && "bg-blue-500/5",
|
||||
step.status === "completed" && "bg-emerald-500/5",
|
||||
)}
|
||||
>
|
||||
<div className="mt-0.5">{stepStatusIcon(step.status)}</div>
|
||||
{stepStatusIcon(step.status)}
|
||||
<p
|
||||
className={cn(
|
||||
"text-[13px] leading-snug",
|
||||
|
||||
@@ -10,7 +10,6 @@ import { memo } from "react";
|
||||
import GitActionsControl from "../GitActionsControl";
|
||||
import { type DraftId } from "~/composerDraftStore";
|
||||
import { DiffIcon, TerminalSquareIcon } from "lucide-react";
|
||||
import { Badge } from "../ui/badge";
|
||||
import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
|
||||
import ProjectScriptsControl, { type NewProjectScriptInput } from "../ProjectScriptsControl";
|
||||
import { Toggle } from "../ui/toggle";
|
||||
@@ -105,19 +104,6 @@ export const ChatHeader = memo(function ChatHeader({
|
||||
/>
|
||||
<TooltipPopup side="top">{activeThreadTitle}</TooltipPopup>
|
||||
</Tooltip>
|
||||
{activeProjectName && (
|
||||
<Badge
|
||||
variant="outline"
|
||||
className="min-w-0 max-w-full shrink overflow-hidden sm:max-w-56"
|
||||
>
|
||||
<span className="min-w-0 truncate">{activeProjectName}</span>
|
||||
</Badge>
|
||||
)}
|
||||
{activeProjectName && !isGitRepo && (
|
||||
<Badge variant="outline" className="shrink-0 text-[10px] text-amber-700">
|
||||
No Git
|
||||
</Badge>
|
||||
)}
|
||||
</div>
|
||||
<div className="flex min-w-0 flex-wrap items-center justify-start gap-2 sm:shrink-0 sm:justify-end @3xl/header-actions:gap-3">
|
||||
{activeProjectScripts && (
|
||||
@@ -153,7 +139,7 @@ export const ChatHeader = memo(function ChatHeader({
|
||||
pressed={terminalOpen}
|
||||
onPressedChange={onToggleTerminal}
|
||||
aria-label="Toggle terminal drawer"
|
||||
variant="outline"
|
||||
variant="ghost"
|
||||
size="xs"
|
||||
disabled={!terminalAvailable}
|
||||
>
|
||||
@@ -177,7 +163,7 @@ export const ChatHeader = memo(function ChatHeader({
|
||||
pressed={diffOpen}
|
||||
onPressedChange={onToggleDiff}
|
||||
aria-label="Toggle diff panel"
|
||||
variant="outline"
|
||||
variant="ghost"
|
||||
size="xs"
|
||||
disabled={!isGitRepo && !diffOpen}
|
||||
>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { memo } from "react";
|
||||
import { Badge } from "../ui/badge";
|
||||
|
||||
export const ComposerPlanFollowUpBanner = memo(function ComposerPlanFollowUpBanner({
|
||||
planTitle,
|
||||
@@ -8,7 +9,13 @@ export const ComposerPlanFollowUpBanner = memo(function ComposerPlanFollowUpBann
|
||||
return (
|
||||
<div className="px-4 py-3.5 sm:px-5 sm:py-4">
|
||||
<div className="flex flex-wrap items-center gap-2">
|
||||
<span className="uppercase text-sm tracking-[0.2em]">Plan ready</span>
|
||||
<Badge
|
||||
variant="info"
|
||||
size="sm"
|
||||
className="rounded-md px-1.5 py-0 font-semibold tracking-wide uppercase"
|
||||
>
|
||||
Plan Ready
|
||||
</Badge>
|
||||
{planTitle ? (
|
||||
<span className="min-w-0 flex-1 truncate text-sm font-medium">{planTitle}</span>
|
||||
) : null}
|
||||
|
||||
@@ -7,6 +7,8 @@ import { page } from "vite-plus/test/browser";
|
||||
import { afterEach, describe, expect, it, vi } from "vite-plus/test";
|
||||
import { render } from "vitest-browser-react";
|
||||
|
||||
import { getVscodeIconUrlForEntry } from "../../vscode-icons";
|
||||
|
||||
const scrollToEndSpy = vi.fn();
|
||||
const getStateSpy = vi.fn(() => ({ isAtEnd: true }));
|
||||
|
||||
@@ -386,4 +388,31 @@ describe("MessagesTimeline", () => {
|
||||
await screen.unmount();
|
||||
}
|
||||
});
|
||||
|
||||
it("uses the file path without line suffix for markdown file tag icons", async () => {
|
||||
const fileLink = "[package.json](path/to/package.json:25)";
|
||||
const screen = await render(
|
||||
<MessagesTimeline
|
||||
{...buildProps()}
|
||||
markdownCwd="/repo/project"
|
||||
timelineEntries={[buildAssistantTimelineEntry(`Updated ${fileLink}`)]}
|
||||
/>,
|
||||
);
|
||||
|
||||
try {
|
||||
const assistantFileLink = document.querySelector(
|
||||
'[data-message-role="assistant"] .chat-markdown-file-link',
|
||||
);
|
||||
const icon = assistantFileLink?.querySelector("img");
|
||||
|
||||
expect(assistantFileLink?.textContent).toContain("package.json");
|
||||
expect(assistantFileLink?.textContent).toContain("L25");
|
||||
expect(assistantFileLink?.getAttribute("href")).toBe("/repo/project/path/to/package.json:25");
|
||||
expect(icon?.getAttribute("src")).toBe(
|
||||
getVscodeIconUrlForEntry("/repo/project/path/to/package.json", "file", "dark"),
|
||||
);
|
||||
} finally {
|
||||
await screen.unmount();
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -21,6 +21,8 @@ const toggleVariants = cva(
|
||||
},
|
||||
variant: {
|
||||
default: "border-transparent",
|
||||
ghost:
|
||||
"border-transparent text-foreground shadow-none [:disabled,:active,[data-pressed]]:shadow-none before:shadow-none data-pressed:bg-accent data-pressed:text-accent-foreground disabled:opacity-100 disabled:text-muted-foreground disabled:[&_svg]:opacity-100",
|
||||
outline:
|
||||
"border-input bg-background not-dark:bg-clip-padding shadow-xs/5 not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:data-pressed:bg-input dark:hover:bg-input/64 dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/6%)] dark:not-disabled:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/2%)] [:disabled,:active,[data-pressed]]:shadow-none",
|
||||
},
|
||||
|
||||
Generated
+71
-52
@@ -371,8 +371,8 @@ importers:
|
||||
apps/server:
|
||||
dependencies:
|
||||
'@anthropic-ai/claude-agent-sdk':
|
||||
specifier: ^0.3.154
|
||||
version: 0.3.159(@anthropic-ai/[email protected]([email protected]))(@modelcontextprotocol/[email protected]([email protected]))([email protected])
|
||||
specifier: ^0.3.170
|
||||
version: 0.3.170(@anthropic-ai/[email protected]([email protected]))(@modelcontextprotocol/[email protected]([email protected]))([email protected])
|
||||
'@effect/platform-bun':
|
||||
specifier: 4.0.0-beta.78
|
||||
version: 4.0.0-beta.78([email protected])([email protected](patch_hash=883249d8efbb462e928e21fefef96027b66aec50751178cafdce45f08eee3754))([email protected])
|
||||
@@ -854,48 +854,48 @@ packages:
|
||||
'@alchemy.run/[email protected]':
|
||||
resolution: {integrity: sha512-TiIhPXCTCi3tk0zmdYJJ14CNSesSfsJxXdIOP0HTSItQ1mZWLocrF7qCuEWKyW/IEFzp6kaiOf19aIA/mbCp1g==}
|
||||
|
||||
'@anthropic-ai/[email protected]59':
|
||||
resolution: {integrity: sha512-3nnH4yUNJVSyaU5DBlGw2yxc4zlnVvAnc9UOe+La47QVG7/dN+rWAgn4zCbqKk9bWFLDQ1Ek0r56EZE1Qo4UKQ==}
|
||||
'@anthropic-ai/[email protected]70':
|
||||
resolution: {integrity: sha512-rwfgArIa5WI0QPNqFsRBgvtSI0mrtpynUm0oK6+l6/KX4hcgnYGEzciZR1bOeD9/7sSZlTdIgt+T9alKeZmXcg==}
|
||||
cpu: [arm64]
|
||||
os: [darwin]
|
||||
|
||||
'@anthropic-ai/[email protected]59':
|
||||
resolution: {integrity: sha512-iv+NRjz+t4Q1R2+kLdDbccSo3b0wedVJ9jMT3noznOVojZHzgkxVpTvt36/XkXV0rqIDQ5H18bBYIZZzOXu7mg==}
|
||||
'@anthropic-ai/[email protected]70':
|
||||
resolution: {integrity: sha512-0e58h8UQMtsQxLGIv9r4foxfBFWKZ7NeDtoplLhuD7EwQonehomw1sBXCch77t/IfUS+q5vQ5zv+fOGmap5nLQ==}
|
||||
cpu: [x64]
|
||||
os: [darwin]
|
||||
|
||||
'@anthropic-ai/[email protected]59':
|
||||
resolution: {integrity: sha512-WvwiQBWt3tdu5EwqjpDZszI6p2uetYsw4Cxc6ptO/SmLIYXcDienP8nmirZdsZrS+Gzk6imgY0IY5mmNaRhelQ==}
|
||||
'@anthropic-ai/[email protected]70':
|
||||
resolution: {integrity: sha512-SRYfQcsXlOq+CD/FqkQBTSHbaD++w73GnnO+NUV9adLYrca3kfetRwWT1iguY1cNS0l34dCR3rlzCPq78vg1Jg==}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
|
||||
'@anthropic-ai/[email protected]59':
|
||||
resolution: {integrity: sha512-FlsS5M4GCpzsQVaNDFF8dRgFGR3QwyAHZFl/xM/2Y2BqVBH+NH17RpKQSJxr1qr41QnsNkinMnu2iSKoc33hKg==}
|
||||
'@anthropic-ai/[email protected]70':
|
||||
resolution: {integrity: sha512-gLbaFqcGppFJQd4DLNV4IXoeahejT/p2/M8bSSvRDbla9GOsBr1AxV5XLRyBn1e7xFGozZIAIQr3+1chp7NJgQ==}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
|
||||
'@anthropic-ai/[email protected]59':
|
||||
resolution: {integrity: sha512-kFH6RC2YJbPc8XWRNy/wL4YU7LzdJjSwAdH488sVzIif3q+TrvVrV5y/IW0+MLmta+CKIqtFYpGaucsJYvj7Eg==}
|
||||
'@anthropic-ai/[email protected]70':
|
||||
resolution: {integrity: sha512-m4+I0qBEk7cxRKS+pL+eoWXbXTFOAo83fQ0tQvap4z/mDMm06IWJtEPoYTaMBwsp32GJWLkHWKbZSBCHZnp2DQ==}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
|
||||
'@anthropic-ai/[email protected]59':
|
||||
resolution: {integrity: sha512-uNPEC/iRzVb4bEdzs0KAz1zV7i1PVGEZZnJTQyi1OtgVa81sAoH/H0CbbzDiTsquKdaESf+1DSSEkUlfZmMUEw==}
|
||||
'@anthropic-ai/[email protected]70':
|
||||
resolution: {integrity: sha512-Xl/m7TaSC3T5IDBdHrZQ9fCQYyDmPELN34CL+MoyPIf7uSmuZnjE9fUOqDh2Rv26JxWssi1M6X+BBvVuKd6Cpg==}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
|
||||
'@anthropic-ai/[email protected]59':
|
||||
resolution: {integrity: sha512-WN1QEZGgWXz9GMl61QU6j9E+LEF5plki87bL2xsGwuCPzK+OeVPQU55pabuP8P+vFBFHUo3Y9OlTVyZHnUzmAQ==}
|
||||
'@anthropic-ai/[email protected]70':
|
||||
resolution: {integrity: sha512-IG+8isJNNJKbnnhO7m+PGhfVCg+XoQ/MDxGde5eigFI0WsEfitjuWSWwx82bT9ghxI1aa6qNvI+UPgPcZuo5Fg==}
|
||||
cpu: [arm64]
|
||||
os: [win32]
|
||||
|
||||
'@anthropic-ai/[email protected]59':
|
||||
resolution: {integrity: sha512-Ty4seccD+dTDX5hhj89IUELZd/LkxO5O43Uiz5Mo8ZJktoX38SK4XMZlBS935QdqTFLRvPL0hvK4Lt4dTOqzPw==}
|
||||
'@anthropic-ai/[email protected]70':
|
||||
resolution: {integrity: sha512-7cuqSKbHVItPGVwRbd3A0BEJwcNtc7Fhoh6qHN4C6yrmjSrvdYYx3MLvq/VI768/RoG7mAMDxb+j7WfEfoP9BA==}
|
||||
cpu: [x64]
|
||||
os: [win32]
|
||||
|
||||
'@anthropic-ai/[email protected]59':
|
||||
resolution: {integrity: sha512-Xh1oVMIK6N3KsiNIhqNH8ZK90zjRmAEL9d1Md8ZlGdHJE+HhdMYdBadujc3KEkV0uufsEUvYp+A3fDenfypGSA==}
|
||||
'@anthropic-ai/[email protected]70':
|
||||
resolution: {integrity: sha512-pAvhfk+iTodXZ6RF18Kz7BEUWFjL7EcR3tKuhUNdPpE1NAYCR3mSHGbafi72JsrNwKEDIs7FU31z3fqhwy8QzA==}
|
||||
engines: {node: '>=18.0.0'}
|
||||
peerDependencies:
|
||||
'@anthropic-ai/sdk': '>=0.93.0'
|
||||
@@ -2809,6 +2809,12 @@ packages:
|
||||
'@emnapi/core': ^1.7.1
|
||||
'@emnapi/runtime': ^1.7.1
|
||||
|
||||
'@napi-rs/[email protected]':
|
||||
resolution: {integrity: sha512-AWPoBRJ9tsnVhor4sjO7rkni+7p+2IAEFj6cx06UgP10jkQHqay/36uRV/bFkgrh18D9vb4cr8Q0Pthskgzy+Q==}
|
||||
peerDependencies:
|
||||
'@emnapi/core': ^1.7.1
|
||||
'@emnapi/runtime': ^1.7.1
|
||||
|
||||
'@neon-rs/[email protected]':
|
||||
resolution: {integrity: sha512-kTPhdZyTQxB+2wpiRcFWrDcejc4JI6tkPuS7UZCG4l6Zvc5kU/gGQ/ozvHTh1XR5tS+UlfAfGuPajjzQjCiHCw==}
|
||||
|
||||
@@ -6534,8 +6540,8 @@ packages:
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==}
|
||||
|
||||
[email protected]3:
|
||||
resolution: {integrity: sha512-eIaZ9qDgu7XV0pxOCrg7/WhnQ6Ivm22UcxhXx/A3dcbqbbYgBEkc6e/J/s7j2tS96zoB0S9VBdLwQNCWwUo4LA==}
|
||||
[email protected]5:
|
||||
resolution: {integrity: sha512-2NFaIyNVgJmBs/ecmtGzlmluTFs5cHEWGTdu0t1HBwYzoGXOL5nUQBRMXsXWla5i4KkG//QMzVP88m1+I3fdAQ==}
|
||||
engines: {node: '>=16.9.0'}
|
||||
|
||||
[email protected]:
|
||||
@@ -7689,6 +7695,10 @@ packages:
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-uTqF9MuPraAQ+IsnPf366RG4cP9RtUi7MLO1N3KEc+wb0a6yKpeL0lmk2IB1jY5KHPAlTc6T/JRdC/YqxHNwkQ==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-AWGB9WFcRXOQs48Z/udjI5ZcZMHXwX8XPByNpOydgcGsDLIzjGizhoMWJyKAWze7AVW/2W1i+/gPX4YtKe5cyg==}
|
||||
engines: {node: '>=12.20.0'}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-2W4oUZlVaqAPAil6FUg/difl6YhqhUR7x2eZY4bQCko22UXg3hptq9KLQdqFClV+Wu85UX7hNtdGTngi/1BxcA==}
|
||||
|
||||
@@ -8627,8 +8637,8 @@ packages:
|
||||
resolution: {integrity: sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==}
|
||||
engines: {node: '>= 0.4'}
|
||||
|
||||
[email protected].0:
|
||||
resolution: {integrity: sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==}
|
||||
[email protected].1:
|
||||
resolution: {integrity: sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==}
|
||||
engines: {node: '>= 0.4'}
|
||||
|
||||
[email protected]:
|
||||
@@ -9673,44 +9683,44 @@ snapshots:
|
||||
|
||||
'@alchemy.run/[email protected]': {}
|
||||
|
||||
'@anthropic-ai/[email protected]59':
|
||||
'@anthropic-ai/[email protected]70':
|
||||
optional: true
|
||||
|
||||
'@anthropic-ai/[email protected]59':
|
||||
'@anthropic-ai/[email protected]70':
|
||||
optional: true
|
||||
|
||||
'@anthropic-ai/[email protected]59':
|
||||
'@anthropic-ai/[email protected]70':
|
||||
optional: true
|
||||
|
||||
'@anthropic-ai/[email protected]59':
|
||||
'@anthropic-ai/[email protected]70':
|
||||
optional: true
|
||||
|
||||
'@anthropic-ai/[email protected]59':
|
||||
'@anthropic-ai/[email protected]70':
|
||||
optional: true
|
||||
|
||||
'@anthropic-ai/[email protected]59':
|
||||
'@anthropic-ai/[email protected]70':
|
||||
optional: true
|
||||
|
||||
'@anthropic-ai/[email protected]59':
|
||||
'@anthropic-ai/[email protected]70':
|
||||
optional: true
|
||||
|
||||
'@anthropic-ai/[email protected]59':
|
||||
'@anthropic-ai/[email protected]70':
|
||||
optional: true
|
||||
|
||||
'@anthropic-ai/[email protected]59(@anthropic-ai/[email protected]([email protected]))(@modelcontextprotocol/[email protected]([email protected]))([email protected])':
|
||||
'@anthropic-ai/[email protected]70(@anthropic-ai/[email protected]([email protected]))(@modelcontextprotocol/[email protected]([email protected]))([email protected])':
|
||||
dependencies:
|
||||
'@anthropic-ai/sdk': 0.93.0([email protected])
|
||||
'@modelcontextprotocol/sdk': 1.29.0([email protected])
|
||||
zod: 4.4.3
|
||||
optionalDependencies:
|
||||
'@anthropic-ai/claude-agent-sdk-darwin-arm64': 0.3.159
|
||||
'@anthropic-ai/claude-agent-sdk-darwin-x64': 0.3.159
|
||||
'@anthropic-ai/claude-agent-sdk-linux-arm64': 0.3.159
|
||||
'@anthropic-ai/claude-agent-sdk-linux-arm64-musl': 0.3.159
|
||||
'@anthropic-ai/claude-agent-sdk-linux-x64': 0.3.159
|
||||
'@anthropic-ai/claude-agent-sdk-linux-x64-musl': 0.3.159
|
||||
'@anthropic-ai/claude-agent-sdk-win32-arm64': 0.3.159
|
||||
'@anthropic-ai/claude-agent-sdk-win32-x64': 0.3.159
|
||||
'@anthropic-ai/claude-agent-sdk-darwin-arm64': 0.3.170
|
||||
'@anthropic-ai/claude-agent-sdk-darwin-x64': 0.3.170
|
||||
'@anthropic-ai/claude-agent-sdk-linux-arm64': 0.3.170
|
||||
'@anthropic-ai/claude-agent-sdk-linux-arm64-musl': 0.3.170
|
||||
'@anthropic-ai/claude-agent-sdk-linux-x64': 0.3.170
|
||||
'@anthropic-ai/claude-agent-sdk-linux-x64-musl': 0.3.170
|
||||
'@anthropic-ai/claude-agent-sdk-win32-arm64': 0.3.170
|
||||
'@anthropic-ai/claude-agent-sdk-win32-x64': 0.3.170
|
||||
|
||||
'@anthropic-ai/[email protected]([email protected])':
|
||||
dependencies:
|
||||
@@ -11606,9 +11616,9 @@ snapshots:
|
||||
|
||||
'@formkit/[email protected]': {}
|
||||
|
||||
'@hono/[email protected]([email protected]3)':
|
||||
'@hono/[email protected]([email protected]5)':
|
||||
dependencies:
|
||||
hono: 4.12.23
|
||||
hono: 4.12.25
|
||||
|
||||
'@img/[email protected]':
|
||||
optional: true
|
||||
@@ -12031,7 +12041,7 @@ snapshots:
|
||||
|
||||
'@modelcontextprotocol/[email protected]([email protected])':
|
||||
dependencies:
|
||||
'@hono/node-server': 1.19.14([email protected]3)
|
||||
'@hono/node-server': 1.19.14([email protected]5)
|
||||
ajv: 8.20.0
|
||||
ajv-formats: 3.0.1([email protected])
|
||||
content-type: 1.0.5
|
||||
@@ -12041,7 +12051,7 @@ snapshots:
|
||||
eventsource-parser: 3.1.0
|
||||
express: 5.2.1
|
||||
express-rate-limit: 8.5.2([email protected])
|
||||
hono: 4.12.23
|
||||
hono: 4.12.25
|
||||
jose: 6.2.3
|
||||
json-schema-typed: 8.0.2
|
||||
pkce-challenge: 5.0.1
|
||||
@@ -12085,6 +12095,13 @@ snapshots:
|
||||
'@tybys/wasm-util': 0.10.2
|
||||
optional: true
|
||||
|
||||
'@napi-rs/[email protected](@emnapi/[email protected])(@emnapi/[email protected])':
|
||||
dependencies:
|
||||
'@emnapi/core': 1.10.0
|
||||
'@emnapi/runtime': 1.10.0
|
||||
'@tybys/wasm-util': 0.10.2
|
||||
optional: true
|
||||
|
||||
'@neon-rs/[email protected]': {}
|
||||
|
||||
'@noble/[email protected]':
|
||||
@@ -12603,7 +12620,7 @@ snapshots:
|
||||
'@babel/plugin-transform-private-methods': 7.29.7(@babel/[email protected])
|
||||
'@babel/plugin-transform-private-property-in-object': 7.29.7(@babel/[email protected])
|
||||
'@babel/plugin-transform-react-display-name': 7.29.7(@babel/[email protected])
|
||||
'@babel/plugin-transform-react-jsx': 7.28.6(@babel/[email protected])
|
||||
'@babel/plugin-transform-react-jsx': 7.29.7(@babel/[email protected])
|
||||
'@babel/plugin-transform-react-jsx-self': 7.29.7(@babel/[email protected])
|
||||
'@babel/plugin-transform-react-jsx-source': 7.29.7(@babel/[email protected])
|
||||
'@babel/plugin-transform-regenerator': 7.29.7(@babel/[email protected])
|
||||
@@ -12818,7 +12835,7 @@ snapshots:
|
||||
dependencies:
|
||||
'@emnapi/core': 1.10.0
|
||||
'@emnapi/runtime': 1.10.0
|
||||
'@napi-rs/wasm-runtime': 1.1.4(@emnapi/[email protected])(@emnapi/[email protected])
|
||||
'@napi-rs/wasm-runtime': 1.1.5(@emnapi/[email protected])(@emnapi/[email protected])
|
||||
optional: true
|
||||
|
||||
'@rolldown/[email protected]':
|
||||
@@ -12832,7 +12849,7 @@ snapshots:
|
||||
dependencies:
|
||||
'@emnapi/core': 1.10.0
|
||||
'@emnapi/runtime': 1.10.0
|
||||
'@napi-rs/wasm-runtime': 1.1.4(@emnapi/[email protected])(@emnapi/[email protected])
|
||||
'@napi-rs/wasm-runtime': 1.1.5(@emnapi/[email protected])(@emnapi/[email protected])
|
||||
optional: true
|
||||
|
||||
'@rolldown/[email protected]':
|
||||
@@ -15896,7 +15913,7 @@ snapshots:
|
||||
dependencies:
|
||||
react-is: 16.13.1
|
||||
|
||||
[email protected]3: {}
|
||||
[email protected]5: {}
|
||||
|
||||
[email protected]:
|
||||
dependencies:
|
||||
@@ -17258,6 +17275,8 @@ snapshots:
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]:
|
||||
dependencies:
|
||||
destr: 2.0.5
|
||||
@@ -17645,7 +17664,7 @@ snapshots:
|
||||
|
||||
[email protected]:
|
||||
dependencies:
|
||||
side-channel: 1.1.0
|
||||
side-channel: 1.1.1
|
||||
|
||||
[email protected]:
|
||||
dependencies:
|
||||
@@ -18439,7 +18458,7 @@ snapshots:
|
||||
object-inspect: 1.13.4
|
||||
side-channel-map: 1.0.1
|
||||
|
||||
[email protected].0:
|
||||
[email protected].1:
|
||||
dependencies:
|
||||
es-errors: 1.3.0
|
||||
object-inspect: 1.13.4
|
||||
@@ -19071,7 +19090,7 @@ snapshots:
|
||||
es-module-lexer: 2.1.0
|
||||
expect-type: 1.3.0
|
||||
magic-string: 0.30.21
|
||||
obug: 2.1.1
|
||||
obug: 2.1.2
|
||||
pathe: 2.0.3
|
||||
picomatch: 4.0.4
|
||||
std-env: 4.1.0
|
||||
|
||||
Reference in new issue
Block a user