@code-yeongyu/senpi 2026.8.22 → 2026.8.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +55 -0
- package/dist/bun-runtime.d.ts +58 -0
- package/dist/bun-runtime.d.ts.map +1 -0
- package/dist/bun-runtime.js +163 -0
- package/dist/bun-runtime.js.map +1 -0
- package/dist/cli.js +45 -2
- package/dist/cli.js.map +1 -1
- package/dist/core/agent-abort-provenance.d.ts +5 -5
- package/dist/core/agent-abort-provenance.d.ts.map +1 -1
- package/dist/core/agent-abort-provenance.js +3 -0
- package/dist/core/agent-abort-provenance.js.map +1 -1
- package/dist/core/agent-session.d.ts +10 -2
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +85 -26
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/agent-settled-delivery.d.ts +13 -1
- package/dist/core/agent-settled-delivery.d.ts.map +1 -1
- package/dist/core/agent-settled-delivery.js +33 -2
- package/dist/core/agent-settled-delivery.js.map +1 -1
- package/dist/core/extensions/builtin/goal/agent-end-continuation.d.ts.map +1 -1
- package/dist/core/extensions/builtin/goal/agent-end-continuation.js +10 -0
- package/dist/core/extensions/builtin/goal/agent-end-continuation.js.map +1 -1
- package/dist/core/extensions/builtin/goal/cache-warm-renderer.d.ts.map +1 -1
- package/dist/core/extensions/builtin/goal/cache-warm-renderer.js +2 -3
- package/dist/core/extensions/builtin/goal/cache-warm-renderer.js.map +1 -1
- package/dist/core/extensions/builtin/goal/cache-warm.d.ts +6 -0
- package/dist/core/extensions/builtin/goal/cache-warm.d.ts.map +1 -1
- package/dist/core/extensions/builtin/goal/cache-warm.js +43 -0
- package/dist/core/extensions/builtin/goal/cache-warm.js.map +1 -1
- package/dist/core/extensions/builtin/goal/continuation.d.ts +1 -1
- package/dist/core/extensions/builtin/goal/continuation.d.ts.map +1 -1
- package/dist/core/extensions/builtin/goal/continuation.js +1 -1
- package/dist/core/extensions/builtin/goal/continuation.js.map +1 -1
- package/dist/core/extensions/builtin/goal/index.d.ts.map +1 -1
- package/dist/core/extensions/builtin/goal/index.js +0 -8
- package/dist/core/extensions/builtin/goal/index.js.map +1 -1
- package/dist/core/extensions/builtin/goal/monitor-continuation-types.d.ts +1 -0
- package/dist/core/extensions/builtin/goal/monitor-continuation-types.d.ts.map +1 -1
- package/dist/core/extensions/builtin/goal/monitor-continuation-types.js.map +1 -1
- package/dist/core/extensions/builtin/goal/monitor-continuation.d.ts +2 -1
- package/dist/core/extensions/builtin/goal/monitor-continuation.d.ts.map +1 -1
- package/dist/core/extensions/builtin/goal/monitor-continuation.js +31 -3
- package/dist/core/extensions/builtin/goal/monitor-continuation.js.map +1 -1
- package/dist/core/extensions/builtin/goal/wait-ticker.d.ts.map +1 -1
- package/dist/core/extensions/builtin/goal/wait-ticker.js +14 -9
- package/dist/core/extensions/builtin/goal/wait-ticker.js.map +1 -1
- package/dist/core/extensions/builtin/webfetch/webfetch/fetcher.d.ts.map +1 -1
- package/dist/core/extensions/builtin/webfetch/webfetch/fetcher.js +5 -23
- package/dist/core/extensions/builtin/webfetch/webfetch/fetcher.js.map +1 -1
- package/dist/core/extensions/builtin/webfetch/webfetch/response-body.d.ts +11 -0
- package/dist/core/extensions/builtin/webfetch/webfetch/response-body.d.ts.map +1 -0
- package/dist/core/extensions/builtin/webfetch/webfetch/response-body.js +54 -0
- package/dist/core/extensions/builtin/webfetch/webfetch/response-body.js.map +1 -0
- package/dist/core/model-config-schema.d.ts +12 -12
- package/dist/core/model-config-schema.js +2 -2
- package/dist/core/model-config-schema.js.map +1 -1
- package/dist/core/model-resolver.js +2 -2
- package/dist/core/model-resolver.js.map +1 -1
- package/dist/core/session-work-barrier.d.ts.map +1 -1
- package/dist/core/session-work-barrier.js +38 -1
- package/dist/core/session-work-barrier.js.map +1 -1
- package/dist/core/tools/read.d.ts.map +1 -1
- package/dist/core/tools/read.js +5 -0
- package/dist/core/tools/read.js.map +1 -1
- package/dist/modes/interactive/aborted-error-label.d.ts +2 -1
- package/dist/modes/interactive/aborted-error-label.d.ts.map +1 -1
- package/dist/modes/interactive/aborted-error-label.js +20 -5
- package/dist/modes/interactive/aborted-error-label.js.map +1 -1
- package/dist/modes/interactive/components/status-indicator.d.ts +3 -0
- package/dist/modes/interactive/components/status-indicator.d.ts.map +1 -1
- package/dist/modes/interactive/components/status-indicator.js +7 -1
- package/dist/modes/interactive/components/status-indicator.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +2 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +50 -10
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/streaming-reveal.d.ts +8 -0
- package/dist/modes/interactive/streaming-reveal.d.ts.map +1 -1
- package/dist/modes/interactive/streaming-reveal.js +12 -0
- package/dist/modes/interactive/streaming-reveal.js.map +1 -1
- package/dist/senpi +45 -2
- package/docs/AGENTS.md +3 -1
- package/examples/AGENTS.md +21 -6
- package/examples/extensions/AGENTS.md +50 -0
- package/node_modules/@anthropic-ai/claude-agent-sdk/bridge.mjs +90 -88
- package/node_modules/@anthropic-ai/claude-agent-sdk/browser-sdk.js +40 -40
- package/node_modules/@anthropic-ai/claude-agent-sdk/manifest.json +20 -21
- package/node_modules/@anthropic-ai/claude-agent-sdk/manifest.zst.json +24 -25
- package/node_modules/@anthropic-ai/claude-agent-sdk/package.json +2 -2
- package/node_modules/@anthropic-ai/claude-agent-sdk/sdk-tools.d.ts +102 -5
- package/node_modules/@anthropic-ai/claude-agent-sdk/sdk.d.ts +31 -15
- package/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs +80 -78
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +13 -13
- package/node_modules/@aws-sdk/core/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-node/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -6
- package/node_modules/@aws-sdk/eventstream-handler-node/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-eventstream/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-websocket/package.json +6 -6
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +8 -8
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +3 -3
- package/node_modules/@aws-sdk/token-providers/package.json +6 -6
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
- package/node_modules/@code-yeongyu/senpi-codemode/CHANGELOG.md +46 -0
- package/node_modules/@code-yeongyu/senpi-codemode/README.md +5 -0
- package/node_modules/@code-yeongyu/senpi-codemode/package.json +5 -5
- package/node_modules/@code-yeongyu/senpi-codemode/src/extension/eval-notifier.ts +16 -4
- package/node_modules/@code-yeongyu/senpi-codemode/src/extension/runtime-factory.ts +4 -1
- package/node_modules/@code-yeongyu/senpi-codemode/src/extension/runtime-info.ts +41 -0
- package/node_modules/@code-yeongyu/senpi-codemode/src/index.ts +9 -3
- package/node_modules/@code-yeongyu/senpi-codemode/src/interpreters/detect.ts +17 -4
- package/node_modules/@code-yeongyu/senpi-codemode/src/interpreters/resolve-command.ts +68 -0
- package/node_modules/@code-yeongyu/senpi-codemode/src/kernels/AGENTS.md +40 -0
- package/node_modules/@code-yeongyu/senpi-codemode/src/timeouts/idle-timeout.ts +33 -4
- package/node_modules/@code-yeongyu/senpi-codemode/src/tool/AGENTS.md +40 -0
- package/node_modules/@code-yeongyu/senpi-codemode/src/tool/cell-runtime.ts +5 -1
- package/node_modules/@code-yeongyu/senpi-codemode/src/tool/detached-cell-manager.ts +1 -1
- package/node_modules/@code-yeongyu/senpi-codemode/src/tool/detached-cell-notification.ts +3 -8
- package/node_modules/@code-yeongyu/senpi-codemode/src/tool/detached-notification-queue.ts +2 -6
- package/node_modules/@code-yeongyu/senpi-codemode/src/tool/eval-tool-options.ts +3 -0
- package/node_modules/@code-yeongyu/senpi-codemode/src/tool/eval-tool.ts +2 -0
- package/node_modules/@code-yeongyu/senpi-codemode/src/tool/render.ts +60 -3
- package/node_modules/@code-yeongyu/senpi-codemode/src/tool/runtime-label.ts +49 -0
- package/node_modules/@code-yeongyu/senpi-codemode/src/tool/types.ts +13 -0
- package/node_modules/@earendil-works/pi-agent-core/package.json +4 -4
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent.d.ts +5 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent.js +13 -5
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/cursor/composer-prompt.d.ts +27 -0
- package/node_modules/@earendil-works/pi-ai/dist/cursor/composer-prompt.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/cursor/composer-prompt.js +54 -0
- package/node_modules/@earendil-works/pi-ai/dist/cursor/composer-prompt.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode-go.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/opengateway.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/protocols/kimi-xtml/markers.d.ts +4 -0
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/protocols/kimi-xtml/markers.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/protocols/kimi-xtml/markers.js +14 -0
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/protocols/kimi-xtml/markers.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/protocols/kimi-xtml/recovery-stream.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/protocols/kimi-xtml/recovery-stream.js +65 -35
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/protocols/kimi-xtml/recovery-stream.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/protocols/kimi-xtml/thinking-recovery.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/protocols/kimi-xtml/thinking-recovery.js +40 -12
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/protocols/kimi-xtml/thinking-recovery.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/package.json +4 -4
- package/node_modules/@earendil-works/pi-pty/package.json +1 -1
- package/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/terminal.js +7 -4
- package/node_modules/@earendil-works/pi-tui/dist/terminal.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/package.json +1 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +19 -7
- package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +4 -1
- package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +4 -1
- package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +4 -1
- package/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +10 -3
- package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +4 -1
- package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +4 -1
- package/node_modules/@smithy/signature-v4/package.json +2 -2
- package/node_modules/typebox/build/format/email.mjs +1 -1
- package/node_modules/typebox/build/format/idna/idn-hostname.mjs +19 -1
- package/node_modules/typebox/build/format/json_pointer.d.mts +2 -2
- package/node_modules/typebox/build/format/json_pointer.mjs +2 -2
- package/node_modules/typebox/build/format/json_pointer_uri_fragment.d.mts +2 -2
- package/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs +2 -2
- package/node_modules/typebox/build/format/relative_json_pointer.d.mts +2 -2
- package/node_modules/typebox/build/format/relative_json_pointer.mjs +2 -2
- package/node_modules/typebox/build/system/memory/assign.mjs +2 -1
- package/node_modules/typebox/build/system/memory/create.mjs +3 -4
- package/node_modules/typebox/build/system/memory/discard.mjs +2 -2
- package/node_modules/typebox/build/system/memory/freeze.d.mts +4 -0
- package/node_modules/typebox/build/system/memory/freeze.mjs +6 -0
- package/node_modules/typebox/build/system/memory/update.mjs +3 -2
- package/node_modules/typebox/package.json +1 -1
- package/package.json +36 -36
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/LICENSE +0 -201
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/README.md +0 -62
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +0 -154
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/constants.js +0 -2
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromEnvSigningName.js +0 -16
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +0 -80
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js +0 -8
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +0 -11
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +0 -10
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/index.js +0 -4
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/nodeProvider.js +0 -5
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js +0 -7
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js +0 -7
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js +0 -8
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/constants.d.ts +0 -8
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/fromEnvSigningName.d.ts +0 -18
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +0 -12
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/fromStatic.d.ts +0 -9
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts +0 -8
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts +0 -7
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/index.d.ts +0 -7
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/nodeProvider.d.ts +0 -18
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/constants.d.ts +0 -3
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromEnvSigningName.d.ts +0 -8
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromSso.d.ts +0 -10
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromStatic.d.ts +0 -5
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getNewSsoOidcToken.d.ts +0 -9
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getSsoOidcClient.d.ts +0 -7
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/index.d.ts +0 -7
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/nodeProvider.d.ts +0 -3
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/validateTokenExpiry.d.ts +0 -2
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/validateTokenKey.d.ts +0 -1
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/writeSSOTokenToFile.d.ts +0 -2
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/validateTokenExpiry.d.ts +0 -5
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/validateTokenKey.d.ts +0 -4
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/writeSSOTokenToFile.d.ts +0 -5
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +0 -69
|
@@ -1,8 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
const PERSISTED_SOURCE_LABELS = new Set(["Operation aborted", "System operation aborted"]);
|
|
2
|
+
// Labels this module itself persists on the live path. A transcript replay has
|
|
3
|
+
// no live provenance and must render them verbatim, never re-prefix them.
|
|
4
|
+
const PERSISTED_PROVIDER_LABEL_RE = /^(?:Provider retry failed after \d+ attempts?|Provider request failed(?::.*)?)$/;
|
|
5
|
+
export function abortedErrorLabel(persisted, retryAttempt, abortSource) {
|
|
6
|
+
if (abortSource === "user")
|
|
7
|
+
return "Operation aborted";
|
|
8
|
+
if (abortSource === "system")
|
|
9
|
+
return "System operation aborted";
|
|
10
|
+
if (persisted !== undefined && PERSISTED_SOURCE_LABELS.has(persisted))
|
|
3
11
|
return persisted;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
12
|
+
if (persisted !== undefined && PERSISTED_PROVIDER_LABEL_RE.test(persisted))
|
|
13
|
+
return persisted;
|
|
14
|
+
const legacyRetry = persisted?.match(/^Aborted after (\d+) retry attempts?$/);
|
|
15
|
+
if (legacyRetry)
|
|
16
|
+
return `Provider retry failed after ${legacyRetry[1]} attempt${legacyRetry[1] === "1" ? "" : "s"}`;
|
|
17
|
+
if (retryAttempt > 0)
|
|
18
|
+
return `Provider retry failed after ${retryAttempt} attempt${retryAttempt === 1 ? "" : "s"}`;
|
|
19
|
+
if (persisted !== undefined && persisted !== "Request was aborted")
|
|
20
|
+
return `Provider request failed: ${persisted}`;
|
|
21
|
+
return "Provider request failed";
|
|
7
22
|
}
|
|
8
23
|
//# sourceMappingURL=aborted-error-label.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aborted-error-label.js","sourceRoot":"","sources":["../../../src/modes/interactive/aborted-error-label.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aborted-error-label.js","sourceRoot":"","sources":["../../../src/modes/interactive/aborted-error-label.ts"],"names":[],"mappings":"AAEA,MAAM,uBAAuB,GAAG,IAAI,GAAG,CAAC,CAAC,mBAAmB,EAAE,0BAA0B,CAAC,CAAC,CAAC;AAC3F,+EAA+E;AAC/E,0EAA0E;AAC1E,MAAM,2BAA2B,GAAG,iFAAiF,CAAC;AAEtH,MAAM,UAAU,iBAAiB,CAChC,SAA6B,EAC7B,YAAoB,EACpB,WAAyC;IAEzC,IAAI,WAAW,KAAK,MAAM;QAAE,OAAO,mBAAmB,CAAC;IACvD,IAAI,WAAW,KAAK,QAAQ;QAAE,OAAO,0BAA0B,CAAC;IAChE,IAAI,SAAS,KAAK,SAAS,IAAI,uBAAuB,CAAC,GAAG,CAAC,SAAS,CAAC;QAAE,OAAO,SAAS,CAAC;IACxF,IAAI,SAAS,KAAK,SAAS,IAAI,2BAA2B,CAAC,IAAI,CAAC,SAAS,CAAC;QAAE,OAAO,SAAS,CAAC;IAC7F,MAAM,WAAW,GAAG,SAAS,EAAE,KAAK,CAAC,uCAAuC,CAAC,CAAC;IAC9E,IAAI,WAAW;QAAE,OAAO,+BAA+B,WAAW,CAAC,CAAC,CAAC,WAAW,WAAW,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;IACpH,IAAI,YAAY,GAAG,CAAC;QAAE,OAAO,+BAA+B,YAAY,WAAW,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;IACnH,IAAI,SAAS,KAAK,SAAS,IAAI,SAAS,KAAK,qBAAqB;QAAE,OAAO,4BAA4B,SAAS,EAAE,CAAC;IACnH,OAAO,yBAAyB,CAAC;AAClC,CAAC","sourcesContent":["import type { AgentAbortSource } from \"../../core/agent-abort-provenance.ts\";\n\nconst PERSISTED_SOURCE_LABELS = new Set([\"Operation aborted\", \"System operation aborted\"]);\n// Labels this module itself persists on the live path. A transcript replay has\n// no live provenance and must render them verbatim, never re-prefix them.\nconst PERSISTED_PROVIDER_LABEL_RE = /^(?:Provider retry failed after \\d+ attempts?|Provider request failed(?::.*)?)$/;\n\nexport function abortedErrorLabel(\n\tpersisted: string | undefined,\n\tretryAttempt: number,\n\tabortSource: AgentAbortSource | undefined,\n): string {\n\tif (abortSource === \"user\") return \"Operation aborted\";\n\tif (abortSource === \"system\") return \"System operation aborted\";\n\tif (persisted !== undefined && PERSISTED_SOURCE_LABELS.has(persisted)) return persisted;\n\tif (persisted !== undefined && PERSISTED_PROVIDER_LABEL_RE.test(persisted)) return persisted;\n\tconst legacyRetry = persisted?.match(/^Aborted after (\\d+) retry attempts?$/);\n\tif (legacyRetry) return `Provider retry failed after ${legacyRetry[1]} attempt${legacyRetry[1] === \"1\" ? \"\" : \"s\"}`;\n\tif (retryAttempt > 0) return `Provider retry failed after ${retryAttempt} attempt${retryAttempt === 1 ? \"\" : \"s\"}`;\n\tif (persisted !== undefined && persisted !== \"Request was aborted\") return `Provider request failed: ${persisted}`;\n\treturn \"Provider request failed\";\n}\n"]}
|
|
@@ -26,6 +26,9 @@ export declare class BranchSummaryStatusIndicator extends StatusIndicator {
|
|
|
26
26
|
constructor(ui: TUI);
|
|
27
27
|
}
|
|
28
28
|
export declare class IdleStatus implements Component {
|
|
29
|
+
private height;
|
|
30
|
+
constructor(height?: number);
|
|
31
|
+
setHeight(height: number): void;
|
|
29
32
|
invalidate(): void;
|
|
30
33
|
render(width: number): string[];
|
|
31
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status-indicator.d.ts","sourceRoot":"","sources":["../../../../src/modes/interactive/components/status-indicator.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,SAAS,EACd,MAA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MAAM,GAAG,MAAM,EAAE;CAyBxC;AAED,qBAAa,4BAA6B,SAAQ,eAAe;gBACpD,EAAE,EAAE,GAAG;CASnB;AAED,qBAAa,UAAW,YAAW,SAAS;IAC3C,UAAU,IAAI,IAAI;IAIlB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE;CAI/B"}
|
|
1
|
+
{"version":3,"file":"status-indicator.d.ts","sourceRoot":"","sources":["../../../../src/modes/interactive/components/status-indicator.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,SAAS,EACd,MAAM,EACN,KAAK,sBAAsB,EAE3B,KAAK,GAAG,EAGR,MAAM,wBAAwB,CAAC;AAKhC,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,OAAO,GAAG,YAAY,GAAG,eAAe,CAAC;AAEvF,qBAAa,eAAgB,SAAQ,MAAM;IAC1C,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAC;gBAGlC,IAAI,EAAE,mBAAmB,EACzB,EAAE,EAAE,GAAG,EACP,cAAc,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,EACvC,cAAc,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,EACvC,OAAO,EAAE,MAAM,EACf,SAAS,CAAC,EAAE,sBAAsB;IAMnC,OAAO,IAAI,IAAI;IAIf,eAAe,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI;CAG5C;AAED,qBAAa,sBAAuB,SAAQ,eAAe;gBAC9C,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,sBAAsB;CAUxE;AAED,qBAAa,oBAAqB,SAAQ,eAAe;IACxD,OAAO,CAAC,SAAS,CAA6B;gBAElC,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,sBAAsB;IA8BrG,OAAO,IAAI,IAAI;CAKxB;AAED,MAAM,MAAM,sBAAsB,GAAG,QAAQ,GAAG,WAAW,GAAG,UAAU,GAAG,YAAY,GAAG,QAAQ,GAAG,WAAW,CAAC;AAEjH,qBAAa,yBAA0B,SAAQ,eAAe;IAC7D,OAAO,CAAC,YAAY,CAAM;IAC1B,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAS;gBAE3B,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,sBAAsB;IAwBnD,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI;IAKlC,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE;CAyBxC;AAED,qBAAa,4BAA6B,SAAQ,eAAe;gBACpD,EAAE,EAAE,GAAG;CASnB;AAED,qBAAa,UAAW,YAAW,SAAS;IAC3C,OAAO,CAAC,MAAM,CAAS;gBAEX,MAAM,SAAI;IAItB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAI/B,UAAU,IAAI,IAAI;IAIlB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE;CAI/B"}
|
|
@@ -97,12 +97,18 @@ export class BranchSummaryStatusIndicator extends StatusIndicator {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
export class IdleStatus {
|
|
100
|
+
constructor(height = 2) {
|
|
101
|
+
this.height = height;
|
|
102
|
+
}
|
|
103
|
+
setHeight(height) {
|
|
104
|
+
this.height = height;
|
|
105
|
+
}
|
|
100
106
|
invalidate() {
|
|
101
107
|
// No cached state to invalidate.
|
|
102
108
|
}
|
|
103
109
|
render(width) {
|
|
104
110
|
const emptyLine = " ".repeat(width);
|
|
105
|
-
return
|
|
111
|
+
return Array.from({ length: this.height }, () => emptyLine);
|
|
106
112
|
}
|
|
107
113
|
}
|
|
108
114
|
//# sourceMappingURL=status-indicator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status-indicator.js","sourceRoot":"","sources":["../../../../src/modes/interactive/components/status-indicator.ts"],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AM,CAAC,KAAK,CAAC,CAAC;QACpC,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IAC/B,CAAC;CACD","sourcesContent":["import {\n\ttype Component,\n\tLoader,\n\ttype LoaderIndicatorOptions,\n\tsliceByColumn,\n\ttype TUI,\n\ttruncateToWidth,\n\tvisibleWidth,\n} from \"@earendil-works/pi-tui\";\nimport { theme } from \"../theme/theme.ts\";\nimport { CountdownTimer } from \"./countdown-timer.ts\";\nimport { keyText } from \"./keybinding-hints.ts\";\n\nexport type StatusIndicatorKind = \"working\" | \"retry\" | \"compaction\" | \"branchSummary\";\n\nexport class StatusIndicator extends Loader {\n\treadonly kind: StatusIndicatorKind;\n\n\tconstructor(\n\t\tkind: StatusIndicatorKind,\n\t\tui: TUI,\n\t\tspinnerColorFn: (str: string) => string,\n\t\tmessageColorFn: (str: string) => string,\n\t\tmessage: string,\n\t\tindicator?: LoaderIndicatorOptions,\n\t) {\n\t\tsuper(ui, spinnerColorFn, messageColorFn, message, indicator);\n\t\tthis.kind = kind;\n\t}\n\n\tdispose(): void {\n\t\tthis.stop();\n\t}\n\n\tsetProgressText(_progressText: string): void {\n\t\t// Only compaction status renders progress.\n\t}\n}\n\nexport class WorkingStatusIndicator extends StatusIndicator {\n\tconstructor(ui: TUI, message: string, indicator?: LoaderIndicatorOptions) {\n\t\tsuper(\n\t\t\t\"working\",\n\t\t\tui,\n\t\t\t(spinner) => theme.fg(\"accent\", spinner),\n\t\t\t(text) => theme.fg(\"muted\", text),\n\t\t\tmessage,\n\t\t\tindicator,\n\t\t);\n\t}\n}\n\nexport class RetryStatusIndicator extends StatusIndicator {\n\tprivate countdown: CountdownTimer | undefined;\n\n\tconstructor(ui: TUI, attempt: number, maxAttempts: number, delayMs: number, indicator?: LoaderIndicatorOptions) {\n\t\tconst retryMessage = (seconds: number) =>\n\t\t\t`Retrying (${attempt}/${maxAttempts}) in ${seconds}s... (${keyText(\"app.interrupt\")} to cancel)`;\n\t\tconst retryIndicator =\n\t\t\tindicator === undefined\n\t\t\t\t? undefined\n\t\t\t\t: {\n\t\t\t\t\t\t...indicator,\n\t\t\t\t\t\tindicatorFormatter: indicator.indicatorFormatter ?? ((spinner) => theme.fg(\"warning\", spinner)),\n\t\t\t\t\t};\n\t\tsuper(\n\t\t\t\"retry\",\n\t\t\tui,\n\t\t\t(spinner) => theme.fg(\"warning\", spinner),\n\t\t\t(text) => theme.fg(\"muted\", text),\n\t\t\tretryMessage(Math.ceil(delayMs / 1000)),\n\t\t\tretryIndicator,\n\t\t);\n\t\tthis.countdown = new CountdownTimer(\n\t\t\tdelayMs,\n\t\t\tui,\n\t\t\t(seconds) => {\n\t\t\t\tthis.setMessage(retryMessage(seconds));\n\t\t\t},\n\t\t\t() => {\n\t\t\t\tthis.countdown = undefined;\n\t\t\t},\n\t\t);\n\t}\n\n\toverride dispose(): void {\n\t\tthis.countdown?.dispose();\n\t\tthis.countdown = undefined;\n\t\tsuper.dispose();\n\t}\n}\n\nexport type CompactionStatusReason = \"manual\" | \"threshold\" | \"overflow\" | \"pre_prompt\" | \"branch\" | \"extension\";\n\nexport class CompactionStatusIndicator extends StatusIndicator {\n\tprivate progressText = \"\";\n\tprivate readonly progressLabel: string;\n\n\tconstructor(ui: TUI, reason: CompactionStatusReason) {\n\t\tconst cancelHint = `(${keyText(\"app.interrupt\")} to cancel)`;\n\t\tconst label =\n\t\t\treason === \"manual\"\n\t\t\t\t? `Compacting context... ${cancelHint}`\n\t\t\t\t: reason === \"overflow\"\n\t\t\t\t\t? `Context overflow detected, compacting... ${cancelHint}`\n\t\t\t\t\t: reason === \"pre_prompt\"\n\t\t\t\t\t\t? `Compacting before next prompt... ${cancelHint}`\n\t\t\t\t\t\t: reason === \"threshold\"\n\t\t\t\t\t\t\t? `Auto-compacting... ${cancelHint}`\n\t\t\t\t\t\t\t: `Compacting context... ${cancelHint}`;\n\t\tsuper(\n\t\t\t\"compaction\",\n\t\t\tui,\n\t\t\t(spinner) => theme.fg(\"accent\", spinner),\n\t\t\t(text) => theme.fg(\"muted\", text),\n\t\t\tlabel,\n\t\t);\n\t\t// Once a streamed preview needs room, the reason-specific label collapses to the\n\t\t// shortest form that still keeps the cancellation hint fully visible.\n\t\tthis.progressLabel = `Compacting... ${cancelHint}`;\n\t}\n\n\tsetProgressText(progressText: string): void {\n\t\tif (!this.progressText && progressText) this.setMessage(this.progressLabel);\n\t\tthis.progressText = progressText;\n\t}\n\n\toverride render(width: number): string[] {\n\t\t// Loader.render() prepends a spacer row; joining keeps this indicator a single row\n\t\t// whether or not a preview is present, so the composer never shifts between states.\n\t\t// Text pads rows to the full width, so trailing padding is stripped before measuring.\n\t\tlet status = super.render(width).join(\" \").trimEnd();\n\t\t// On narrow terminals the reason-specific label can wrap even before any preview\n\t\t// arrives, and head-truncating the joined rows would drop the cancellation hint.\n\t\t// Collapse to the compact label whenever the full status cannot fit on one row.\n\t\tif (visibleWidth(status) > width) {\n\t\t\tthis.setMessage(this.progressLabel);\n\t\t\tstatus = super.render(width).join(\" \").trimEnd();\n\t\t}\n\t\tif (!this.progressText) return [truncateToWidth(status, width)];\n\t\t// The status label (with its cancellation hint) is allocated first; the preview only\n\t\t// receives whatever width is left over instead of starving the hint out of the row.\n\t\tconst progressWidth = Math.min(visibleWidth(this.progressText), width - visibleWidth(status) - 1);\n\t\tif (progressWidth <= 0) return [truncateToWidth(status, width)];\n\t\t// The preview is accumulated summary text, so keep the newest trailing columns.\n\t\tconst totalProgressWidth = visibleWidth(this.progressText);\n\t\tconst progressTail =\n\t\t\ttotalProgressWidth > progressWidth\n\t\t\t\t? sliceByColumn(this.progressText, totalProgressWidth - progressWidth, progressWidth)\n\t\t\t\t: this.progressText;\n\t\treturn [truncateToWidth(`${status} ${theme.fg(\"muted\", progressTail)}`, width)];\n\t}\n}\n\nexport class BranchSummaryStatusIndicator extends StatusIndicator {\n\tconstructor(ui: TUI) {\n\t\tsuper(\n\t\t\t\"branchSummary\",\n\t\t\tui,\n\t\t\t(spinner) => theme.fg(\"accent\", spinner),\n\t\t\t(text) => theme.fg(\"muted\", text),\n\t\t\t`Summarizing branch... (${keyText(\"app.interrupt\")} to cancel)`,\n\t\t);\n\t}\n}\n\nexport class IdleStatus implements Component {\n\tinvalidate(): void {\n\t\t// No cached state to invalidate.\n\t}\n\n\trender(width: number): string[] {\n\t\tconst emptyLine = \" \".repeat(width);\n\t\treturn [emptyLine, emptyLine];\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"status-indicator.js","sourceRoot":"","sources":["../../../../src/modes/interactive/components/status-indicator.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,MAAM,EAEN,aAAa,EAEb,eAAe,EACf,YAAY,GACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAIhD,MAAM,OAAO,eAAgB,SAAQ,MAAM;IAG1C,YACC,IAAyB,EACzB,EAAO,EACP,cAAuC,EACvC,cAAuC,EACvC,OAAe,EACf,SAAkC;QAElC,KAAK,CAAC,EAAE,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;QAC9D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IAClB,CAAC;IAED,OAAO;QACN,IAAI,CAAC,IAAI,EAAE,CAAC;IACb,CAAC;IAED,eAAe,CAAC,aAAqB;QACpC,2CAA2C;IAC5C,CAAC;CACD;AAED,MAAM,OAAO,sBAAuB,SAAQ,eAAe;IAC1D,YAAY,EAAO,EAAE,OAAe,EAAE,SAAkC;QACvE,KAAK,CACJ,SAAS,EACT,EAAE,EACF,CAAC,OAAO,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,EACxC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,OAA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,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,EACxC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,EACjC,0BAA0B,OAAO,CAAC,eAAe,CAAC,aAAa,CAC/D,CAAC;IACH,CAAC;CACD;AAED,MAAM,OAAO,UAAU;IAGtB,YAAY,MAAM,GAAG,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;IAED,SAAS,CAAC,MAAc;QACvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;IAED,UAAU;QACT,iCAAiC;IAClC,CAAC;IAED,MAAM,CAAC,KAAa;QACnB,MAAM,SAAS,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACpC,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;IAC7D,CAAC;CACD","sourcesContent":["import {\n\ttype Component,\n\tLoader,\n\ttype LoaderIndicatorOptions,\n\tsliceByColumn,\n\ttype TUI,\n\ttruncateToWidth,\n\tvisibleWidth,\n} from \"@earendil-works/pi-tui\";\nimport { theme } from \"../theme/theme.ts\";\nimport { CountdownTimer } from \"./countdown-timer.ts\";\nimport { keyText } from \"./keybinding-hints.ts\";\n\nexport type StatusIndicatorKind = \"working\" | \"retry\" | \"compaction\" | \"branchSummary\";\n\nexport class StatusIndicator extends Loader {\n\treadonly kind: StatusIndicatorKind;\n\n\tconstructor(\n\t\tkind: StatusIndicatorKind,\n\t\tui: TUI,\n\t\tspinnerColorFn: (str: string) => string,\n\t\tmessageColorFn: (str: string) => string,\n\t\tmessage: string,\n\t\tindicator?: LoaderIndicatorOptions,\n\t) {\n\t\tsuper(ui, spinnerColorFn, messageColorFn, message, indicator);\n\t\tthis.kind = kind;\n\t}\n\n\tdispose(): void {\n\t\tthis.stop();\n\t}\n\n\tsetProgressText(_progressText: string): void {\n\t\t// Only compaction status renders progress.\n\t}\n}\n\nexport class WorkingStatusIndicator extends StatusIndicator {\n\tconstructor(ui: TUI, message: string, indicator?: LoaderIndicatorOptions) {\n\t\tsuper(\n\t\t\t\"working\",\n\t\t\tui,\n\t\t\t(spinner) => theme.fg(\"accent\", spinner),\n\t\t\t(text) => theme.fg(\"muted\", text),\n\t\t\tmessage,\n\t\t\tindicator,\n\t\t);\n\t}\n}\n\nexport class RetryStatusIndicator extends StatusIndicator {\n\tprivate countdown: CountdownTimer | undefined;\n\n\tconstructor(ui: TUI, attempt: number, maxAttempts: number, delayMs: number, indicator?: LoaderIndicatorOptions) {\n\t\tconst retryMessage = (seconds: number) =>\n\t\t\t`Retrying (${attempt}/${maxAttempts}) in ${seconds}s... (${keyText(\"app.interrupt\")} to cancel)`;\n\t\tconst retryIndicator =\n\t\t\tindicator === undefined\n\t\t\t\t? undefined\n\t\t\t\t: {\n\t\t\t\t\t\t...indicator,\n\t\t\t\t\t\tindicatorFormatter: indicator.indicatorFormatter ?? ((spinner) => theme.fg(\"warning\", spinner)),\n\t\t\t\t\t};\n\t\tsuper(\n\t\t\t\"retry\",\n\t\t\tui,\n\t\t\t(spinner) => theme.fg(\"warning\", spinner),\n\t\t\t(text) => theme.fg(\"muted\", text),\n\t\t\tretryMessage(Math.ceil(delayMs / 1000)),\n\t\t\tretryIndicator,\n\t\t);\n\t\tthis.countdown = new CountdownTimer(\n\t\t\tdelayMs,\n\t\t\tui,\n\t\t\t(seconds) => {\n\t\t\t\tthis.setMessage(retryMessage(seconds));\n\t\t\t},\n\t\t\t() => {\n\t\t\t\tthis.countdown = undefined;\n\t\t\t},\n\t\t);\n\t}\n\n\toverride dispose(): void {\n\t\tthis.countdown?.dispose();\n\t\tthis.countdown = undefined;\n\t\tsuper.dispose();\n\t}\n}\n\nexport type CompactionStatusReason = \"manual\" | \"threshold\" | \"overflow\" | \"pre_prompt\" | \"branch\" | \"extension\";\n\nexport class CompactionStatusIndicator extends StatusIndicator {\n\tprivate progressText = \"\";\n\tprivate readonly progressLabel: string;\n\n\tconstructor(ui: TUI, reason: CompactionStatusReason) {\n\t\tconst cancelHint = `(${keyText(\"app.interrupt\")} to cancel)`;\n\t\tconst label =\n\t\t\treason === \"manual\"\n\t\t\t\t? `Compacting context... ${cancelHint}`\n\t\t\t\t: reason === \"overflow\"\n\t\t\t\t\t? `Context overflow detected, compacting... ${cancelHint}`\n\t\t\t\t\t: reason === \"pre_prompt\"\n\t\t\t\t\t\t? `Compacting before next prompt... ${cancelHint}`\n\t\t\t\t\t\t: reason === \"threshold\"\n\t\t\t\t\t\t\t? `Auto-compacting... ${cancelHint}`\n\t\t\t\t\t\t\t: `Compacting context... ${cancelHint}`;\n\t\tsuper(\n\t\t\t\"compaction\",\n\t\t\tui,\n\t\t\t(spinner) => theme.fg(\"accent\", spinner),\n\t\t\t(text) => theme.fg(\"muted\", text),\n\t\t\tlabel,\n\t\t);\n\t\t// Once a streamed preview needs room, the reason-specific label collapses to the\n\t\t// shortest form that still keeps the cancellation hint fully visible.\n\t\tthis.progressLabel = `Compacting... ${cancelHint}`;\n\t}\n\n\tsetProgressText(progressText: string): void {\n\t\tif (!this.progressText && progressText) this.setMessage(this.progressLabel);\n\t\tthis.progressText = progressText;\n\t}\n\n\toverride render(width: number): string[] {\n\t\t// Loader.render() prepends a spacer row; joining keeps this indicator a single row\n\t\t// whether or not a preview is present, so the composer never shifts between states.\n\t\t// Text pads rows to the full width, so trailing padding is stripped before measuring.\n\t\tlet status = super.render(width).join(\" \").trimEnd();\n\t\t// On narrow terminals the reason-specific label can wrap even before any preview\n\t\t// arrives, and head-truncating the joined rows would drop the cancellation hint.\n\t\t// Collapse to the compact label whenever the full status cannot fit on one row.\n\t\tif (visibleWidth(status) > width) {\n\t\t\tthis.setMessage(this.progressLabel);\n\t\t\tstatus = super.render(width).join(\" \").trimEnd();\n\t\t}\n\t\tif (!this.progressText) return [truncateToWidth(status, width)];\n\t\t// The status label (with its cancellation hint) is allocated first; the preview only\n\t\t// receives whatever width is left over instead of starving the hint out of the row.\n\t\tconst progressWidth = Math.min(visibleWidth(this.progressText), width - visibleWidth(status) - 1);\n\t\tif (progressWidth <= 0) return [truncateToWidth(status, width)];\n\t\t// The preview is accumulated summary text, so keep the newest trailing columns.\n\t\tconst totalProgressWidth = visibleWidth(this.progressText);\n\t\tconst progressTail =\n\t\t\ttotalProgressWidth > progressWidth\n\t\t\t\t? sliceByColumn(this.progressText, totalProgressWidth - progressWidth, progressWidth)\n\t\t\t\t: this.progressText;\n\t\treturn [truncateToWidth(`${status} ${theme.fg(\"muted\", progressTail)}`, width)];\n\t}\n}\n\nexport class BranchSummaryStatusIndicator extends StatusIndicator {\n\tconstructor(ui: TUI) {\n\t\tsuper(\n\t\t\t\"branchSummary\",\n\t\t\tui,\n\t\t\t(spinner) => theme.fg(\"accent\", spinner),\n\t\t\t(text) => theme.fg(\"muted\", text),\n\t\t\t`Summarizing branch... (${keyText(\"app.interrupt\")} to cancel)`,\n\t\t);\n\t}\n}\n\nexport class IdleStatus implements Component {\n\tprivate height: number;\n\n\tconstructor(height = 2) {\n\t\tthis.height = height;\n\t}\n\n\tsetHeight(height: number): void {\n\t\tthis.height = height;\n\t}\n\n\tinvalidate(): void {\n\t\t// No cached state to invalidate.\n\t}\n\n\trender(width: number): string[] {\n\t\tconst emptyLine = \" \".repeat(width);\n\t\treturn Array.from({ length: this.height }, () => emptyLine);\n\t}\n}\n"]}
|
|
@@ -120,6 +120,7 @@ export declare class InteractiveMode {
|
|
|
120
120
|
private isInitialized;
|
|
121
121
|
private onInputCallback?;
|
|
122
122
|
private pendingUserInputs;
|
|
123
|
+
private agentIdle;
|
|
123
124
|
private readonly optimisticUserEchoes;
|
|
124
125
|
/**
|
|
125
126
|
* Clipboard images pasted into the composer, keyed by their visible
|
|
@@ -478,6 +479,7 @@ export declare class InteractiveMode {
|
|
|
478
479
|
renderInitialMessages(): void;
|
|
479
480
|
private renderProjectTrustWarningIfNeeded;
|
|
480
481
|
getUserInput(): Promise<InteractiveUserInput>;
|
|
482
|
+
private buildMainLoopPromptOptions;
|
|
481
483
|
private rebuildChatFromMessages;
|
|
482
484
|
private handleCtrlC;
|
|
483
485
|
private handleCtrlD;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interactive-mode.d.ts","sourceRoot":"","sources":["../../../src/modes/interactive/interactive-mode.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAEjF,OAAO,KAAK,EAAoB,YAAY,EAAW,KAAK,EAAsB,MAAM,8BAA8B,CAAC;AACvH,OAAO,KAAK,EAUX,QAAQ,EAER,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAiBN,KAAK,GAAG,EACR,YAAY,EACZ,aAAa,EAEb,MAAM,wBAAwB,CAAC;AAiBhC,OAAO,EAAqB,KAAK,iBAAiB,EAAmB,MAAM,6BAA6B,CAAC;AACzG,OAAO,EAAE,KAAK,mBAAmB,EAAkC,MAAM,qCAAqC,CAAC;AAC/G,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAsBrE,OAAO,EAAmC,KAAK,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAoBzG,OAAO,EAAqB,cAAc,EAAiC,MAAM,+BAA+B,CAAC;AACjH,OAAO,KAAK,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAwFpF,OAAO,EAAc,KAAK,iBAAiB,EAA0B,MAAM,kBAAkB,CAAC;AAsF9F,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,GAAG,OAAO,CAE3F;AA+HD,wBAAgB,mBAAmB,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,GAAG,SAAS,CAatF;AAUD,OAAO,EAAE,qBAAqB,EAAE,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ACH,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,oBAAoB;YAqHd,kBAAkB;IAehC,OAAO,CAAC,kBAAkB;IA6B1B,OAAO,CAAC,iBAAiB;IAMzB,OAAO,CAAC,oBAAoB;IAM5B,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,qBAAqB;YAMf,iBAAiB;YAuFjB,oBAAoB;IAkBlC,IAAI,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,GAAG,IAAI;CAgCvD"}
|
|
@@ -497,6 +497,7 @@ export class InteractiveMode {
|
|
|
497
497
|
this.autocompleteProviderWrappers = [];
|
|
498
498
|
this.isInitialized = false;
|
|
499
499
|
this.pendingUserInputs = [];
|
|
500
|
+
this.agentIdle = false;
|
|
500
501
|
/**
|
|
501
502
|
* Clipboard images pasted into the composer, keyed by their visible
|
|
502
503
|
* `[Image #N]` marker number. The editor stores marker ids only, so these
|
|
@@ -1192,14 +1193,11 @@ export class InteractiveMode {
|
|
|
1192
1193
|
while (true) {
|
|
1193
1194
|
const userInput = await this.getUserInput();
|
|
1194
1195
|
try {
|
|
1195
|
-
await this.session.prompt(userInput.text,
|
|
1196
|
-
streamingBehavior: "steer",
|
|
1197
|
-
...(userInput.images ? { images: userInput.images } : {}),
|
|
1198
|
-
...this.optimisticUserEchoes.promptOptions(userInput.pendingEchoId),
|
|
1199
|
-
});
|
|
1196
|
+
await this.session.prompt(userInput.text, this.buildMainLoopPromptOptions(userInput));
|
|
1200
1197
|
}
|
|
1201
1198
|
catch (error) {
|
|
1202
1199
|
this.optimisticUserEchoes.reject(userInput.pendingEchoId);
|
|
1200
|
+
this.clearStatusIndicator("working");
|
|
1203
1201
|
const errorMessage = error instanceof Error ? error.message : "Unknown error occurred";
|
|
1204
1202
|
this.showError(errorMessage);
|
|
1205
1203
|
}
|
|
@@ -2299,13 +2297,17 @@ export class InteractiveMode {
|
|
|
2299
2297
|
}
|
|
2300
2298
|
const hadActiveStatusIndicator = this.activeStatusIndicator !== undefined;
|
|
2301
2299
|
const isClearingWorking = this.activeStatusIndicator?.kind === "working";
|
|
2300
|
+
const shouldReserveHeight = hadActiveStatusIndicator && this.options.tuiMode === "regular" && this.ui.getClearOnShrink();
|
|
2301
|
+
const renderedHeight = shouldReserveHeight ? this.statusContainer.render(this.ui.terminal.columns).length : 0;
|
|
2302
2302
|
this.activeStatusIndicator?.dispose();
|
|
2303
2303
|
this.activeStatusIndicator = undefined;
|
|
2304
2304
|
if (isClearingWorking) {
|
|
2305
2305
|
this.workingStartedAt = undefined;
|
|
2306
2306
|
}
|
|
2307
2307
|
this.statusContainer.clear();
|
|
2308
|
-
if (
|
|
2308
|
+
if (shouldReserveHeight) {
|
|
2309
|
+
const idleHeight = Math.min(this.ui.terminal.rows, Math.max(1, renderedHeight || 2));
|
|
2310
|
+
this.idleStatus.setHeight(idleHeight);
|
|
2309
2311
|
this.statusContainer.addChild(this.idleStatus);
|
|
2310
2312
|
}
|
|
2311
2313
|
}
|
|
@@ -3417,6 +3419,7 @@ export class InteractiveMode {
|
|
|
3417
3419
|
this.footer.invalidate();
|
|
3418
3420
|
switch (event.type) {
|
|
3419
3421
|
case "agent_start":
|
|
3422
|
+
this.agentIdle = false;
|
|
3420
3423
|
this.clearPendingTools();
|
|
3421
3424
|
this.clearActiveToolExecutionStatus();
|
|
3422
3425
|
this.clearToolHookStatuses();
|
|
@@ -3533,7 +3536,7 @@ export class InteractiveMode {
|
|
|
3533
3536
|
this.toolArgsReveal.flushAll();
|
|
3534
3537
|
let errorMessage;
|
|
3535
3538
|
if (this.streamingMessage.stopReason === "aborted") {
|
|
3536
|
-
errorMessage = abortedErrorLabel(
|
|
3539
|
+
errorMessage = abortedErrorLabel(this.streamingMessage.errorMessage, this.session.retryAttempt, this.session.currentAbortSource);
|
|
3537
3540
|
this.streamingMessage.errorMessage = errorMessage;
|
|
3538
3541
|
}
|
|
3539
3542
|
this.syncTrailingAssistantText(this.streamingMessage);
|
|
@@ -3627,7 +3630,6 @@ export class InteractiveMode {
|
|
|
3627
3630
|
if (this.settingsManager.getShowTerminalProgress()) {
|
|
3628
3631
|
this.ui.terminal.setProgress(false);
|
|
3629
3632
|
}
|
|
3630
|
-
this.clearStatusIndicator("working");
|
|
3631
3633
|
this.clearActiveToolExecutionStatus();
|
|
3632
3634
|
this.clearToolHookStatuses();
|
|
3633
3635
|
this.streamingReveal.stop();
|
|
@@ -3644,6 +3646,13 @@ export class InteractiveMode {
|
|
|
3644
3646
|
case "agent_settled":
|
|
3645
3647
|
await this.checkShutdownRequested();
|
|
3646
3648
|
break;
|
|
3649
|
+
case "agent_idle":
|
|
3650
|
+
this.agentIdle = true;
|
|
3651
|
+
if (this.pendingUserInputs.length === 0) {
|
|
3652
|
+
this.clearStatusIndicator("working");
|
|
3653
|
+
}
|
|
3654
|
+
this.ui.requestRender();
|
|
3655
|
+
break;
|
|
3647
3656
|
case "continuation_error":
|
|
3648
3657
|
this.showError(sanitizeTerminalLabel(event.errorMessage));
|
|
3649
3658
|
break;
|
|
@@ -4122,7 +4131,15 @@ export class InteractiveMode {
|
|
|
4122
4131
|
syncTrailingAssistantText(message) {
|
|
4123
4132
|
if (!this.streamingComponent)
|
|
4124
4133
|
return;
|
|
4125
|
-
|
|
4134
|
+
const head = assistantStreamingHeadMessage(message);
|
|
4135
|
+
// Single writer: while smooth streaming paces the head (no toolCall block),
|
|
4136
|
+
// streamingReveal owns the streaming component. Overwriting the full head
|
|
4137
|
+
// here makes the next reveal tick repaint a shorter prefix (dual-write
|
|
4138
|
+
// flicker). Once the reveal has stopped (message_end), it no longer paces
|
|
4139
|
+
// and the final full paint below still lands.
|
|
4140
|
+
if (!this.streamingReveal?.isPacingHead(head)) {
|
|
4141
|
+
this.streamingComponent.updateContent(head, true);
|
|
4142
|
+
}
|
|
4126
4143
|
const content = message.content;
|
|
4127
4144
|
const firstToolIndex = content.findIndex((block) => block.type === "toolCall");
|
|
4128
4145
|
if (firstToolIndex === -1) {
|
|
@@ -4227,7 +4244,7 @@ export class InteractiveMode {
|
|
|
4227
4244
|
if (message.stopReason === "aborted" || message.stopReason === "error") {
|
|
4228
4245
|
let errorMessage;
|
|
4229
4246
|
if (message.stopReason === "aborted") {
|
|
4230
|
-
errorMessage = abortedErrorLabel(message.errorMessage,
|
|
4247
|
+
errorMessage = abortedErrorLabel(message.errorMessage, 0, undefined);
|
|
4231
4248
|
}
|
|
4232
4249
|
else {
|
|
4233
4250
|
errorMessage = message.errorMessage || "Error";
|
|
@@ -4375,6 +4392,29 @@ export class InteractiveMode {
|
|
|
4375
4392
|
};
|
|
4376
4393
|
});
|
|
4377
4394
|
}
|
|
4395
|
+
// Build the session.prompt options for a main-loop submission. The optimistic echo
|
|
4396
|
+
// keeps only a prompt that actually started; a buffered prompt consumed by an input
|
|
4397
|
+
// extension with action "handled" clears the retained working dock, but only once
|
|
4398
|
+
// agent_idle has fired (the agentIdle latch) so a settlement-deferred continuation
|
|
4399
|
+
// still in admission keeps its dock.
|
|
4400
|
+
buildMainLoopPromptOptions(userInput) {
|
|
4401
|
+
const echoOptions = this.optimisticUserEchoes.promptOptions(userInput.pendingEchoId);
|
|
4402
|
+
return {
|
|
4403
|
+
streamingBehavior: "steer",
|
|
4404
|
+
...(userInput.images ? { images: userInput.images } : {}),
|
|
4405
|
+
preflightResult: echoOptions.preflightResult,
|
|
4406
|
+
promptDisposition: (disposition) => {
|
|
4407
|
+
echoOptions.promptDisposition(disposition);
|
|
4408
|
+
// Clear the retained dock on a handled prompt only when it was the last
|
|
4409
|
+
// buffered input; a still-queued follow-up remounts it on agent_start, so
|
|
4410
|
+
// clearing here would bounce the editor/footer.
|
|
4411
|
+
if (disposition === "handled" && this.agentIdle && this.pendingUserInputs.length === 0) {
|
|
4412
|
+
this.clearStatusIndicator("working");
|
|
4413
|
+
this.ui.requestRender();
|
|
4414
|
+
}
|
|
4415
|
+
},
|
|
4416
|
+
};
|
|
4417
|
+
}
|
|
4378
4418
|
rebuildChatFromMessages() {
|
|
4379
4419
|
this.chatContainer.clear();
|
|
4380
4420
|
this.renderSessionEntries(this.sessionManager.buildContextEntries());
|