@bastani/atomic 0.9.79-alpha.1 → 0.9.79-alpha.2
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 +11 -0
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/builtin/workflows/package.json +1 -1
- package/dist/core/debug.d.ts +2 -2
- package/dist/core/debug.d.ts.map +1 -1
- package/dist/core/debug.js +2 -1
- package/dist/core/debug.js.map +1 -1
- package/dist/modes/interactive/components/compaction-boundary-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/compaction-boundary-message.js +3 -4
- package/dist/modes/interactive/components/compaction-boundary-message.js.map +1 -1
- package/dist/modes/interactive-engine/engine-diagnostic-view.d.ts +3 -2
- package/dist/modes/interactive-engine/engine-diagnostic-view.d.ts.map +1 -1
- package/dist/modes/interactive-engine/engine-diagnostic-view.js +5 -3
- package/dist/modes/interactive-engine/engine-diagnostic-view.js.map +1 -1
- package/docs/compaction/reference.md +1 -1
- package/docs/compaction.md +3 -3
- package/docs/extensions.md +1 -1
- package/npm-shrinkwrap.json +32 -32
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.9.79-alpha.2] - 2026-11-11
|
|
6
|
+
|
|
7
|
+
Quieter session status messages.
|
|
8
|
+
|
|
9
|
+
- **Less noise in the transcript.** The compaction card names only the model that compacted the context, a policy-refusal summary is labeled `summary (fallback)`, and a successful interactive engine restart no longer prints a message; failed restarts are still reported ([#4673](https://github.com/bastani-inc/atomic/pull/4673)).
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- The compaction card names only the model that compacted the context, such as `github-copilot/claude-opus-5.5`, instead of `planner · github-copilot/claude-opus-5.5`. A policy-refusal summary is headed `Context compacted · summary (fallback)` instead of `summary (pi fallback)` ([#4673](https://github.com/bastani-inc/atomic/pull/4673)).
|
|
14
|
+
- An interactive engine that stops or stops responding and is restarted successfully no longer shows "Interactive engine stopped unexpectedly; restarting." or "Interactive engine is not responding; restarting."; the cause goes to the debug log. A restart that fails is still reported ([#4673](https://github.com/bastani-inc/atomic/pull/4673)).
|
|
15
|
+
|
|
5
16
|
## [0.9.79-alpha.1] - 2026-11-11
|
|
6
17
|
|
|
7
18
|
Resuming long sessions is faster and keeps your tools and subagents, long workflow runs stay responsive, and interrupting a response is calmer.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/intercom",
|
|
3
|
-
"version": "0.9.79-alpha.
|
|
3
|
+
"version": "0.9.79-alpha.2",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Atomic extension providing a private coordination channel between parent and child agent sessions. Fork of: https://github.com/nicobailon/pi-intercom",
|
|
6
6
|
"contributors": [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/subagents",
|
|
3
|
-
"version": "0.9.79-alpha.
|
|
3
|
+
"version": "0.9.79-alpha.2",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Atomic extension for delegating tasks to subagents with parallel execution. Fork of: https://github.com/nicobailon/pi-subagents",
|
|
6
6
|
"contributors": [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/web-access",
|
|
3
|
-
"version": "0.9.79-alpha.
|
|
3
|
+
"version": "0.9.79-alpha.2",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Atomic extension for web search, URL fetching, GitHub repo cloning, PDF/video extraction. Fork of: https://github.com/nicobailon/pi-web-access",
|
|
6
6
|
"contributors": [
|
package/dist/core/debug.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DebugLogUnwritableError } from "./debug-errors.ts";
|
|
2
2
|
/** A diagnostic area. Each is on in debug mode, or while its own environment variable is set. */
|
|
3
|
-
export type DebugArea = "workflow" | "model-routing" | "pooled-watch" | "pool" | "storage";
|
|
4
|
-
/** Each area's own environment variable; `pool` and `
|
|
3
|
+
export type DebugArea = "workflow" | "model-routing" | "pooled-watch" | "pool" | "storage" | "engine";
|
|
4
|
+
/** Each area's own environment variable; `pool`, `storage` and `engine` have none. */
|
|
5
5
|
export declare const DEBUG_AREA_VARIABLES: Readonly<Record<DebugArea, string | undefined>>;
|
|
6
6
|
export type DebugValue = string | number | boolean | null | undefined | readonly (string | number)[];
|
|
7
7
|
export type DebugFields = Readonly<Record<string, DebugValue>>;
|
package/dist/core/debug.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../src/core/debug.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAG5D,iGAAiG;AACjG,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,eAAe,GAAG,cAAc,GAAG,MAAM,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../src/core/debug.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAG5D,iGAAiG;AACjG,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,eAAe,GAAG,cAAc,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEtG,sFAAsF;AACtF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC,CAOhF,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;AACrG,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;AAsB/D;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,OAAO,CAE9F;AA6BD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,IAAI,CAEzE;AAOD;;;;GAIG;AACH,wBAAgB,WAAW,CAC1B,IAAI,EAAE,SAAS,EACf,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,WAAW,EACnB,SAAS,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,EACtC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAClC,IAAI,CAIN;AAED,8GAA8G;AAC9G,wBAAgB,kBAAkB,IAAI,uBAAuB,GAAG,SAAS,CAExE;AAED,yHAAyH;AACzH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW,CAW9D"}
|
package/dist/core/debug.js
CHANGED
|
@@ -4,13 +4,14 @@ import { ENV_DEBUG, getDebugLogPath, getEnvNames } from "../config.js";
|
|
|
4
4
|
import { redactCredentialShapes } from "../utils/credential-redaction.js";
|
|
5
5
|
import { DebugLogUnwritableError } from "./debug-errors.js";
|
|
6
6
|
import { isDebugSettingOn } from "./debug-setting.js";
|
|
7
|
-
/** Each area's own environment variable; `pool` and `
|
|
7
|
+
/** Each area's own environment variable; `pool`, `storage` and `engine` have none. */
|
|
8
8
|
export const DEBUG_AREA_VARIABLES = {
|
|
9
9
|
workflow: "ATOMIC_WORKFLOW_DEBUG",
|
|
10
10
|
"model-routing": "ATOMIC_MODEL_ROUTING_DEBUG",
|
|
11
11
|
"pooled-watch": "ATOMIC_DEBUG_POOLED_WATCH",
|
|
12
12
|
pool: undefined,
|
|
13
13
|
storage: undefined,
|
|
14
|
+
engine: undefined,
|
|
14
15
|
};
|
|
15
16
|
const MAX_DEBUG_TEXT_LENGTH = 2_000;
|
|
16
17
|
let debugLogFailure;
|
package/dist/core/debug.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug.js","sourceRoot":"","sources":["../../src/core/debug.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAKtD,
|
|
1
|
+
{"version":3,"file":"debug.js","sourceRoot":"","sources":["../../src/core/debug.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAKtD,sFAAsF;AACtF,MAAM,CAAC,MAAM,oBAAoB,GAAoD;IACpF,QAAQ,EAAE,uBAAuB;IACjC,eAAe,EAAE,4BAA4B;IAC7C,cAAc,EAAE,2BAA2B;IAC3C,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,SAAS;CACjB,CAAC;AAKF,MAAM,qBAAqB,GAAG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E,KAAK,CAAC,IAAI;QAChB,IAAI,EAAE,OAAO,IAAI,KAAK,QAAQ,IAAI,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;QAC7E,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,KAAK,EACJ,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;KAC7G,CAAC;AACH,CAAC","sourcesContent":["import { appendFileSync, mkdirSync } from \"node:fs\";\nimport { dirname } from \"node:path\";\nimport { ENV_DEBUG, getDebugLogPath, getEnvNames } from \"../config.js\";\nimport { redactCredentialShapes } from \"../utils/credential-redaction.js\";\nimport { DebugLogUnwritableError } from \"./debug-errors.ts\";\nimport { isDebugSettingOn } from \"./debug-setting.ts\";\n\n/** A diagnostic area. Each is on in debug mode, or while its own environment variable is set. */\nexport type DebugArea = \"workflow\" | \"model-routing\" | \"pooled-watch\" | \"pool\" | \"storage\" | \"engine\";\n\n/** Each area's own environment variable; `pool`, `storage` and `engine` have none. */\nexport const DEBUG_AREA_VARIABLES: Readonly<Record<DebugArea, string | undefined>> = {\n\tworkflow: \"ATOMIC_WORKFLOW_DEBUG\",\n\t\"model-routing\": \"ATOMIC_MODEL_ROUTING_DEBUG\",\n\t\"pooled-watch\": \"ATOMIC_DEBUG_POOLED_WATCH\",\n\tpool: undefined,\n\tstorage: undefined,\n\tengine: undefined,\n};\n\nexport type DebugValue = string | number | boolean | null | undefined | readonly (string | number)[];\nexport type DebugFields = Readonly<Record<string, DebugValue>>;\n\nconst MAX_DEBUG_TEXT_LENGTH = 2_000;\n\nlet debugLogFailure: DebugLogUnwritableError | undefined;\n\n/** The value of `area`'s own variable while it turns the area on, such as a trace file path. */\nfunction areaVariableValue(area: DebugArea, env: NodeJS.ProcessEnv): string | undefined {\n\tconst name = DEBUG_AREA_VARIABLES[area];\n\tif (name === undefined) return undefined;\n\tconst value = env[name];\n\tif (area === \"pooled-watch\") return value === \"\" || value === \"0\" ? undefined : value;\n\treturn value === \"1\" ? value : undefined;\n}\n\nfunction isDebugModeOn(env: NodeJS.ProcessEnv): boolean {\n\tconst debug = getEnvNames(ENV_DEBUG)\n\t\t.map((name) => env[name])\n\t\t.find((value) => value !== undefined);\n\treturn isDebugSettingOn() || debug === \"1\";\n}\n\n/**\n * Whether debug output is on: everywhere when the `debug` setting, `--debug` or `ATOMIC_DEBUG=1` is on, and for\n * `area` also while its own environment variable is set. Without `area`, only the first three count.\n */\nexport function isDebugEnabled(area?: DebugArea, env: NodeJS.ProcessEnv = process.env): boolean {\n\treturn isDebugModeOn(env) || (area !== undefined && areaVariableValue(area, env) !== undefined);\n}\n\nfunction safeText(text: string): string {\n\tconst redacted = redactCredentialShapes(text);\n\treturn redacted.length > MAX_DEBUG_TEXT_LENGTH ? `${redacted.slice(0, MAX_DEBUG_TEXT_LENGTH)}…` : redacted;\n}\n\nfunction safeValue(value: DebugValue): DebugValue {\n\tif (typeof value === \"string\") return safeText(value);\n\tif (typeof value === \"object\" && value !== null)\n\t\treturn value.map((item) => (typeof item === \"string\" ? safeText(item) : item));\n\treturn value;\n}\n\nfunction safeFields(fields: DebugFields): Record<string, DebugValue> {\n\treturn Object.fromEntries(Object.entries(fields).map(([key, value]) => [key, safeValue(value)]));\n}\n\nfunction appendLine(path: string, line: string): void {\n\ttry {\n\t\tmkdirSync(dirname(path), { recursive: true });\n\t\tappendFileSync(path, `${line}\\n`);\n\t} catch (error) {\n\t\tif (debugLogFailure !== undefined) return;\n\t\tdebugLogFailure = new DebugLogUnwritableError(path, { cause: error });\n\t\tconsole.warn(debugLogFailure.message);\n\t}\n}\n\n/**\n * Appends `record` to the debug output file `path` as one JSON line, with credentials redacted. A failure is recorded\n * once (see {@link getDebugLogFailure}), never thrown.\n */\nexport function appendDebugRecord(path: string, record: DebugFields): void {\n\tappendLine(path, JSON.stringify(safeFields(record)));\n}\n\nfunction appendDebugLog(area: DebugArea, event: string, fields: DebugFields): void {\n\tconst record = { at: new Date().toISOString(), pid: process.pid, area, event, data: safeFields(fields) };\n\tappendLine(getDebugLogPath(), JSON.stringify(record));\n}\n\n/**\n * Records one diagnostic event of `area`. In debug mode it is appended to the debug log that `/debug` shows, with\n * credentials redacted. While the area's own variable is set, `ownOutput` also writes it where that variable always\n * has, and receives the variable's value.\n */\nexport function reportDebug(\n\tarea: DebugArea,\n\tevent: string,\n\tfields: DebugFields,\n\townOutput?: (variable: string) => void,\n\tenv: NodeJS.ProcessEnv = process.env,\n): void {\n\tif (isDebugModeOn(env)) appendDebugLog(area, event, fields);\n\tconst own = areaVariableValue(area, env);\n\tif (ownOutput !== undefined && own !== undefined) ownOutput(own);\n}\n\n/** The first failure to write a debug log file in this process, if any. Later records are still attempted. */\nexport function getDebugLogFailure(): DebugLogUnwritableError | undefined {\n\treturn debugLogFailure;\n}\n\n/** The debug fields that name a failure a fallback absorbed: its class, stable code, message and first cause (#4660). */\nexport function failureDebugFields(error: unknown): DebugFields {\n\tif (!(error instanceof Error)) return { message: String(error) };\n\tconst { code } = error as Error & { code?: unknown };\n\tconst { cause } = error;\n\treturn {\n\t\tname: error.name,\n\t\tcode: typeof code === \"string\" || typeof code === \"number\" ? code : undefined,\n\t\tmessage: error.message,\n\t\tcause:\n\t\t\tcause instanceof Error ? `${cause.name}: ${cause.message}` : cause === undefined ? undefined : String(cause),\n\t};\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compaction-boundary-message.d.ts","sourceRoot":"","sources":["../../../../src/modes/interactive/components/compaction-boundary-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAwC,MAAM,wBAAwB,CAAC;AACnF,OAAO,KAAK,EACX,yBAAyB,EACzB,wBAAwB,EACxB,uBAAuB,EACvB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACN,KAAK,aAAa,EAGlB,MAAM,2BAA2B,CAAC;AAInC,UAAU,YAAY;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,uBAAuB,CAAC;IAC/B,IAAI,EAAE,yBAAyB,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,CAAC,EAAE,yBAAyB,CAAC,SAAS,CAAC,CAAC;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kFAAkF;IAClF,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,gFAAgF;AAChF,qBAAa,kCAAmC,SAAQ,GAAG;IAC1D,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAe;IAEpC,YAAY,MAAM,EAAE,wBAAwB,GAAG,YAAY,EAAE,SAAS,SAAI,EAezE;IAED,WAAW,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAGnC;IACD,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAEpC;IAEQ,UAAU,IAAI,IAAI,CAG1B;IAED,OAAO,CAAC,aAAa;
|
|
1
|
+
{"version":3,"file":"compaction-boundary-message.d.ts","sourceRoot":"","sources":["../../../../src/modes/interactive/components/compaction-boundary-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAwC,MAAM,wBAAwB,CAAC;AACnF,OAAO,KAAK,EACX,yBAAyB,EACzB,wBAAwB,EACxB,uBAAuB,EACvB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACN,KAAK,aAAa,EAGlB,MAAM,2BAA2B,CAAC;AAInC,UAAU,YAAY;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,uBAAuB,CAAC;IAC/B,IAAI,EAAE,yBAAyB,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,CAAC,EAAE,yBAAyB,CAAC,SAAS,CAAC,CAAC;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kFAAkF;IAClF,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,gFAAgF;AAChF,qBAAa,kCAAmC,SAAQ,GAAG;IAC1D,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAe;IAEpC,YAAY,MAAM,EAAE,wBAAwB,GAAG,YAAY,EAAE,SAAS,SAAI,EAezE;IAED,WAAW,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAGnC;IACD,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAEpC;IAEQ,UAAU,IAAI,IAAI,CAG1B;IAED,OAAO,CAAC,aAAa;CAgDrB;AAED,wBAAgB,6BAA6B,CAC5C,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,OAAO,EACjB,SAAS,SAAI,GACX,kCAAkC,CA2BpC"}
|
|
@@ -42,12 +42,11 @@ export class CompactionBoundaryMessageComponent extends Box {
|
|
|
42
42
|
const label = theme.fg("customMessageLabel", theme.bold(this.view.rung === "fresh"
|
|
43
43
|
? "✻ Context cleared (compaction degraded)"
|
|
44
44
|
: this.view.backend === "summary"
|
|
45
|
-
? "✻ Context compacted · summary (
|
|
45
|
+
? "✻ Context compacted · summary (fallback)"
|
|
46
46
|
: "✻ Context compacted"));
|
|
47
47
|
content.addChild(new Text(label, 0, 0));
|
|
48
|
-
if (this.view.
|
|
49
|
-
content.addChild(new Text(theme.fg("dim",
|
|
50
|
-
}
|
|
48
|
+
if (this.view.model)
|
|
49
|
+
content.addChild(new Text(theme.fg("dim", this.view.model), 0, 0));
|
|
51
50
|
content.addChild(new Spacer(1));
|
|
52
51
|
if (this.expanded) {
|
|
53
52
|
content.addChild(new Text(theme.bold(theme.fg("customMessageText", `Compacted from ${tokenStr} tokens`)), 0, 0));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compaction-boundary-message.js","sourceRoot":"","sources":["../../../../src/modes/interactive/components/compaction-boundary-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KAAK,CAAC,UAAU,EAAE,CAAC;QACnB,IAAI,CAAC,aAAa,EAAE,CAAC;IACtB,CAAC;IAEO,aAAa;QACpB,IAAI,CAAC,KAAK,EAAE,CAAC;QACb,MAAM,OAAO,GAAG,IAAI,SAAS,EAAE,CAAC;QAChC,MAAM,QAAQ,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,cAAc,EAAE,CAAC;QAC3F,yEAAyE;QACzE,MAAM,KAAK,GAAG,KAAK,CAAC,EAAE,CACrB,oBAAoB,EACpB,KAAK,CAAC,IAAI,CACT,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO;YACzB,CAAC,CAAC,yCAAyC;YAC3C,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,KAAK,SAAS;gBAChC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"compaction-boundary-message.js","sourceRoot":"","sources":["../../../../src/modes/interactive/components/compaction-boundary-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAMnF,OAAO,EAEN,yBAAyB,EACzB,6BAA6B,GAC7B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAY7D,gFAAgF;AAChF,MAAM,OAAO,kCAAmC,SAAQ,GAAG;IAClD,QAAQ,GAAG,KAAK,CAAC;IACR,IAAI,CAAe;IAEpC,YAAY,MAA+C,EAAE,SAAS,GAAG,CAAC;QACzE,KAAK,CAAC,SAAS,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC,CAAC;QACjE,IAA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AC,yBAAyB,CAAC,MAAM,CAAC;YACjD,CAAC,CAAC,OAAO;QACV,CAAC,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAC;IAC3C,MAAM,SAAS,GAAG,IAAI,kCAAkC,CACvD;QACC,IAAI;QACJ,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,YAAY,EAAE,OAAO,CAAC,YAAY,IAAI,OAAO,CAAC,KAAK,CAAC,YAAY;QAChE,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,KAAK,EAAE,OAAO,CAAC,KAAK;KACpB,EACD,SAAS,CACT,CAAC;IACF,SAAS,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAChC,OAAO,SAAS,CAAC;AAClB,CAAC","sourcesContent":["import { Box, Container, MouseRegion, Spacer, Text } from \"@earendil-works/pi-tui\";\nimport type {\n\tVerbatimCompactionDetails,\n\tVerbatimCompactionResult,\n\tVerbatimCompactionStats,\n} from \"../../../core/compaction/index.ts\";\nimport {\n\ttype CustomMessage,\n\tSUMMARY_COMPACTION_PREFIX,\n\tstripVerbatimCompactionPrefix,\n} from \"../../../core/messages.ts\";\nimport { theme } from \"../theme/theme.js\";\nimport { parenthesizedKeyHint } from \"./keybinding-hints.js\";\n\ninterface BoundaryView {\n\ttext: string;\n\tstats: VerbatimCompactionStats;\n\trung: VerbatimCompactionDetails[\"rung\"];\n\tbackend?: VerbatimCompactionDetails[\"backend\"];\n\tmodel?: string;\n\t/** Authoritative whole-context count, preferred for \"Compacted from N tokens\". */\n\ttokensBefore?: number;\n}\n\n/** Renders the durable verbatim compaction boundary without markdown reflow. */\nexport class CompactionBoundaryMessageComponent extends Box {\n\tprivate expanded = false;\n\tprivate readonly view: BoundaryView;\n\n\tconstructor(result: VerbatimCompactionResult | BoundaryView, outputPad = 1) {\n\t\tsuper(outputPad, 1, (text) => theme.bg(\"customMessageBg\", text));\n\t\tif (\"compactedText\" in result) {\n\t\t\tthis.view = {\n\t\t\t\ttext: result.compactedText,\n\t\t\t\tstats: result.stats,\n\t\t\t\trung: result.rung,\n\t\t\t\ttokensBefore: result.tokensBefore,\n\t\t\t\tbackend: result.backend,\n\t\t\t\tmodel: result.model,\n\t\t\t};\n\t\t} else {\n\t\t\tthis.view = result;\n\t\t}\n\t\tthis.updateDisplay();\n\t}\n\n\tsetExpanded(expanded: boolean): void {\n\t\tthis.expanded = expanded;\n\t\tthis.updateDisplay();\n\t}\n\tsetOutputPad(outputPad: number): void {\n\t\tthis.setPaddingX(outputPad);\n\t}\n\n\toverride invalidate(): void {\n\t\tsuper.invalidate();\n\t\tthis.updateDisplay();\n\t}\n\n\tprivate updateDisplay(): void {\n\t\tthis.clear();\n\t\tconst content = new Container();\n\t\tconst tokenStr = (this.view.tokensBefore ?? this.view.stats.tokensBefore).toLocaleString();\n\t\t// The fresh rung destroyed the compactable conversation; say so plainly.\n\t\tconst label = theme.fg(\n\t\t\t\"customMessageLabel\",\n\t\t\ttheme.bold(\n\t\t\t\tthis.view.rung === \"fresh\"\n\t\t\t\t\t? \"✻ Context cleared (compaction degraded)\"\n\t\t\t\t\t: this.view.backend === \"summary\"\n\t\t\t\t\t\t? \"✻ Context compacted · summary (fallback)\"\n\t\t\t\t\t\t: \"✻ Context compacted\",\n\t\t\t),\n\t\t);\n\t\tcontent.addChild(new Text(label, 0, 0));\n\t\tif (this.view.model) content.addChild(new Text(theme.fg(\"dim\", this.view.model), 0, 0));\n\t\tcontent.addChild(new Spacer(1));\n\t\tif (this.expanded) {\n\t\t\tcontent.addChild(\n\t\t\t\tnew Text(theme.bold(theme.fg(\"customMessageText\", `Compacted from ${tokenStr} tokens`)), 0, 0),\n\t\t\t);\n\t\t\tcontent.addChild(new Spacer(1));\n\t\t\tconst rendered = this.view.text\n\t\t\t\t.split(\"\\n\")\n\t\t\t\t.map((line) =>\n\t\t\t\t\t/^\\(filtered \\d+ lines\\)$/.test(line) ? theme.fg(\"dim\", line) : theme.fg(\"customMessageText\", line),\n\t\t\t\t)\n\t\t\t\t.join(\"\\n\");\n\t\t\tcontent.addChild(new Text(rendered, 0, 0));\n\t\t} else {\n\t\t\tconst hint = parenthesizedKeyHint(\"app.tools.expand\", \"to expand\");\n\t\t\tcontent.addChild(\n\t\t\t\tnew Text(\n\t\t\t\t\ttheme.fg(\"customMessageText\", `Compacted from ${tokenStr} tokens`) + (hint ? ` ${hint}` : \"\"),\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t),\n\t\t\t);\n\t\t}\n\t\tthis.addChild(\n\t\t\tnew MouseRegion(content, (event) => {\n\t\t\t\tif (event.type !== \"click\" || event.button !== \"left\") return undefined;\n\t\t\t\tthis.setExpanded(!this.expanded);\n\t\t\t\treturn { handled: true };\n\t\t\t}),\n\t\t);\n\t}\n}\n\nexport function compactionBoundaryFromMessage(\n\tmessage: CustomMessage,\n\texpanded: boolean,\n\toutputPad = 1,\n): CompactionBoundaryMessageComponent {\n\tconst details = message.details as VerbatimCompactionDetails;\n\tconst content = Array.isArray(message.content)\n\t\t? message.content\n\t\t\t\t.filter((block) => block.type === \"text\")\n\t\t\t\t.map((block) => block.text)\n\t\t\t\t.join(\"\\n\")\n\t\t: message.content;\n\tconst text =\n\t\tdetails.backend === \"summary\"\n\t\t\t? content.startsWith(SUMMARY_COMPACTION_PREFIX)\n\t\t\t\t? content.slice(SUMMARY_COMPACTION_PREFIX.length)\n\t\t\t\t: content\n\t\t\t: stripVerbatimCompactionPrefix(content);\n\tconst component = new CompactionBoundaryMessageComponent(\n\t\t{\n\t\t\ttext,\n\t\t\tstats: details.stats,\n\t\t\trung: details.rung,\n\t\t\ttokensBefore: details.tokensBefore ?? details.stats.tokensBefore,\n\t\t\tbackend: details.backend,\n\t\t\tmodel: details.model,\n\t\t},\n\t\toutputPad,\n\t);\n\tcomponent.setExpanded(expanded);\n\treturn component;\n}\n"]}
|
|
@@ -10,8 +10,9 @@ export declare function renderDiagnosticStatus(message: string, view: Pick<Engin
|
|
|
10
10
|
* Host presentation policy for interactive-engine diagnostics.
|
|
11
11
|
*
|
|
12
12
|
* Engine recovery is operational status, not a failure: the engine-death
|
|
13
|
-
* teardown has already remounted the editor and restored focus, so
|
|
14
|
-
*
|
|
13
|
+
* teardown has already remounted the editor and restored focus, so a replacement
|
|
14
|
+
* that succeeds is silent and its reason goes to the debug log. A replacement
|
|
15
|
+
* that fails is a concrete failure and still surfaces. Heartbeat-watchdog gaps stay
|
|
15
16
|
* internal. Concrete engine failures still surface as chat errors.
|
|
16
17
|
*/
|
|
17
18
|
export declare function renderEngineDiagnostic(diagnostic: ActivityWatchdogDiagnostic, view: EngineDiagnosticView): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine-diagnostic-view.d.ts","sourceRoot":"","sources":["../../../src/modes/interactive-engine/engine-diagnostic-view.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"engine-diagnostic-view.d.ts","sourceRoot":"","sources":["../../../src/modes/interactive-engine/engine-diagnostic-view.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,0BAA0B,EAA2C,MAAM,wBAAwB,CAAC;AAElH,MAAM,WAAW,oBAAoB;IACpC,iBAAiB,IAAI,IAAI,CAAC;IAC1B,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACrD,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED,iFAAiF;AACjF,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,oBAAoB,EAAE,YAAY,CAAC,GAAG,IAAI,CAI5G;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,0BAA0B,EAAE,IAAI,EAAE,oBAAoB,GAAG,IAAI,CAW/G"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { reportDebug } from "../../core/debug.js";
|
|
1
2
|
import { stripAnsi } from "../../utils/ansi.js";
|
|
2
3
|
import { shouldRenderEngineDiagnosticAsChatError } from "./activity-watchdog.js";
|
|
3
4
|
/** Sanitize only the display copy, like task-detail's multiline presentation. */
|
|
@@ -10,8 +11,9 @@ export function renderDiagnosticStatus(message, view) {
|
|
|
10
11
|
* Host presentation policy for interactive-engine diagnostics.
|
|
11
12
|
*
|
|
12
13
|
* Engine recovery is operational status, not a failure: the engine-death
|
|
13
|
-
* teardown has already remounted the editor and restored focus, so
|
|
14
|
-
*
|
|
14
|
+
* teardown has already remounted the editor and restored focus, so a replacement
|
|
15
|
+
* that succeeds is silent and its reason goes to the debug log. A replacement
|
|
16
|
+
* that fails is a concrete failure and still surfaces. Heartbeat-watchdog gaps stay
|
|
15
17
|
* internal. Concrete engine failures still surface as chat errors.
|
|
16
18
|
*/
|
|
17
19
|
export function renderEngineDiagnostic(diagnostic, view) {
|
|
@@ -21,7 +23,7 @@ export function renderEngineDiagnostic(diagnostic, view) {
|
|
|
21
23
|
}
|
|
22
24
|
if (diagnostic.source === "recovery") {
|
|
23
25
|
view.stopWorkingLoader();
|
|
24
|
-
|
|
26
|
+
reportDebug("engine", "interactive-engine-recovery", { message: diagnostic.message });
|
|
25
27
|
return;
|
|
26
28
|
}
|
|
27
29
|
if (shouldRenderEngineDiagnosticAsChatError(diagnostic))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine-diagnostic-view.js","sourceRoot":"","sources":["../../../src/modes/interactive-engine/engine-diagnostic-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAmC,uCAAuC,EAAE,MAAM,wBAAwB,CAAC;AAQlH,iFAAiF;AACjF,MAAM,UAAU,sBAAsB,CAAC,OAAe,EAAE,IAA8C;IACrG,mFAAmF;IACnF,MAAM,IAAI,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,gCAAgC,EAAE,GAAG,CAAC,CAAC;IAC/E,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAC7B,CAAC;AAED
|
|
1
|
+
{"version":3,"file":"engine-diagnostic-view.js","sourceRoot":"","sources":["../../../src/modes/interactive-engine/engine-diagnostic-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAmC,uCAAuC,EAAE,MAAM,wBAAwB,CAAC;AAQlH,iFAAiF;AACjF,MAAM,UAAU,sBAAsB,CAAC,OAAe,EAAE,IAA8C;IACrG,mFAAmF;IACnF,MAAM,IAAI,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,gCAAgC,EAAE,GAAG,CAAC,CAAC;IAC/E,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAC7B,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,sBAAsB,CAAC,UAAsC,EAAE,IAA0B;IACxG,IAAI,UAAU,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;QACpC,sBAAsB,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACjD,OAAO;IACR,CAAC;IACD,IAAI,UAAU,CAAC,MAAM,KAAK,UAAU,EAAE,CAAC;QACtC,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACzB,WAAW,CAAC,QAAQ,EAAE,6BAA6B,EAAE,EAAE,OAAO,EAAE,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC;QACtF,OAAO;IACR,CAAC;IACD,IAAI,uCAAuC,CAAC,UAAU,CAAC;QAAE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;AAC7F,CAAC","sourcesContent":["import { reportDebug } from \"../../core/debug.ts\";\nimport { stripAnsi } from \"../../utils/ansi.js\";\nimport { type ActivityWatchdogDiagnostic, shouldRenderEngineDiagnosticAsChatError } from \"./activity-watchdog.ts\";\n\nexport interface EngineDiagnosticView {\n\tstopWorkingLoader(): void;\n\tshowStatus(message: string, persist?: boolean): void;\n\tshowError(message: string): void;\n}\n\n/** Sanitize only the display copy, like task-detail's multiline presentation. */\nexport function renderDiagnosticStatus(message: string, view: Pick<EngineDiagnosticView, \"showStatus\">): void {\n\t// ANSI stripping alone misses bare C0/C1 controls and incomplete escape sequences.\n\tconst text = stripAnsi(message).replace(/[\\x00-\\x08\\x0b-\\x1f\\x7f-\\x9f]/g, \" \");\n\tview.showStatus(text, true);\n}\n\n/**\n * Host presentation policy for interactive-engine diagnostics.\n *\n * Engine recovery is operational status, not a failure: the engine-death\n * teardown has already remounted the editor and restored focus, so a replacement\n * that succeeds is silent and its reason goes to the debug log. A replacement\n * that fails is a concrete failure and still surfaces. Heartbeat-watchdog gaps stay\n * internal. Concrete engine failures still surface as chat errors.\n */\nexport function renderEngineDiagnostic(diagnostic: ActivityWatchdogDiagnostic, view: EngineDiagnosticView): void {\n\tif (diagnostic.source === \"stderr\") {\n\t\trenderDiagnosticStatus(diagnostic.message, view);\n\t\treturn;\n\t}\n\tif (diagnostic.source === \"recovery\") {\n\t\tview.stopWorkingLoader();\n\t\treportDebug(\"engine\", \"interactive-engine-recovery\", { message: diagnostic.message });\n\t\treturn;\n\t}\n\tif (shouldRenderEngineDiagnosticAsChatError(diagnostic)) view.showError(diagnostic.message);\n}\n"]}
|
|
@@ -89,7 +89,7 @@ A successful run appends the existing pi-style `type:"compaction"` entry shape:
|
|
|
89
89
|
|
|
90
90
|
The entry's `tokensBefore` is the provider-aware whole-context count used for budgeting and the Compacted from display. `details.stats.tokensBefore`, `tokensAfter`, and `percentReduction` are heuristic estimates of the compactable region plus the kept tail. Those stats can differ from the entry count, and `percentReduction` is negative when the reconstructed estimate is larger. The display count is not stored again under `details.tokensBefore`.
|
|
91
91
|
|
|
92
|
-
`details.rung` is `"planned"` for successful model compaction, `"extension"` for a `session_before_compact` override, or `"fresh"` when older context was discarded. `details.backend` and `details.model` identify the successful compactor. A policy-refusal fallback records `backend: "summary"`, the same model that refused, and file lists in `details.summary`. Its card
|
|
92
|
+
`details.rung` is `"planned"` for successful model compaction, `"extension"` for a `session_before_compact` override, or `"fresh"` when older context was discarded. `details.backend` and `details.model` identify the successful compactor. A policy-refusal fallback records `backend: "summary"`, the same model that refused, and file lists in `details.summary`. Its card is headed `Context compacted · summary (fallback)`. `details.plannerModel` identifies a borrowed chat planner:
|
|
93
93
|
|
|
94
94
|
```json
|
|
95
95
|
"details": {
|
package/docs/compaction.md
CHANGED
|
@@ -9,7 +9,7 @@ LLMs have finite context windows. Atomic reduces older transcript context with *
|
|
|
9
9
|
|
|
10
10
|
Compaction normally uses the model selected by `compactionModel`. If it fails, Atomic borrows the next model from your configured `fallbackModels` for that request. A chat model's policy refusal that arrives before it generated anything first triggers pi's summary compaction on the same model, whether selected by `auto`, an explicit chat-model ID, or a `fallbackModels` entry. A refusal that arrives partway through the model's output is retried once and then planned in parts, keeping the result verbatim, before any summary. If that also fails, Atomic continues through the fallback models. Classifier and Morph failures go straight to the fallback models.
|
|
11
11
|
|
|
12
|
-
**The selected compaction model and configured fallback models may receive the compaction transcript**, using their own credentials. Borrowing never changes the session's model or thinking level. Line planners select deletions, and Atomic reconstructs surviving lines without rewriting them. The policy-refusal summary fallback is lossy and appears as `summary (
|
|
12
|
+
**The selected compaction model and configured fallback models may receive the compaction transcript**, using their own credentials. Borrowing never changes the session's model or thinking level. Line planners select deletions, and Atomic reconstructs surviving lines without rewriting them. The policy-refusal summary fallback is lossy and appears as `summary (fallback)`.
|
|
13
13
|
|
|
14
14
|
## On this page and its reference
|
|
15
15
|
|
|
@@ -23,7 +23,7 @@ This page covers the concepts and normal use of compaction and branch summarizat
|
|
|
23
23
|
| Background compaction | Context passes `compaction.backgroundThresholdPercent` (75% by default) | The same verbatim compaction, run while the agent keeps working | The same boundary, committed at the next turn boundary |
|
|
24
24
|
| Planner fallback borrowing | A failed selected compaction model | Same deletion records, from a configured `fallbackModels` entry | Retained text with the borrowed model recorded |
|
|
25
25
|
| Split planning | A chat provider refuses a compaction request partway through its output, twice | The same deletion records, planned for each part of the transcript split at message boundaries | Retained text reconstructed from the originals |
|
|
26
|
-
| Policy-refusal summary fallback | A chat provider refuses compaction under its policy before generating anything, or split planning failed | Pi's summary compaction on the same model | A summary boundary labeled `summary (
|
|
26
|
+
| Policy-refusal summary fallback | A chat provider refuses compaction under its policy before generating anything, or split planning failed | Pi's summary compaction on the same model | A summary boundary labeled `summary (fallback)` |
|
|
27
27
|
| Fresh context window | Load-bearing compaction after every configured model failed | *(none — no model call)* | A `CompactionEntry` with `details.rung: "fresh"` |
|
|
28
28
|
| Branch summarization | Optional `/tree` navigation | Generated summary prose | A `BranchSummaryEntry` |
|
|
29
29
|
|
|
@@ -131,7 +131,7 @@ For classifier compaction, log in with `/login typesafe`, then set `"compactionM
|
|
|
131
131
|
|
|
132
132
|
For Morph compaction, use `/login morph` or set `MORPH_API_KEY`, then choose `morph/morph-compactor` in the selector or a settings file. Without a credential, the selector marks Morph as `requires /login morph`. Morph receives the compactable transcript without thinking, but not the recent tail. Atomic reconstructs surviving lines from the originals and preserves `<keepContext>` spans. Morph is not a chat-model choice.
|
|
133
133
|
|
|
134
|
-
The compaction card shows the
|
|
134
|
+
The compaction card shows the model that produced the result, such as `github-copilot/claude-opus-5.5` or `morph/morph-compactor`. A policy-refusal summary is headed `Context compacted · summary (fallback)`.
|
|
135
135
|
|
|
136
136
|
### Troubleshooting policy refusals
|
|
137
137
|
|
package/docs/extensions.md
CHANGED
|
@@ -122,7 +122,7 @@ Both safety keys are matched by physical identity rather than by the configured
|
|
|
122
122
|
|
|
123
123
|
If the engine is unresponsive, an abort or replacement has waited over one second, or replacement failed, Ctrl+C terminates and replaces it. This takes precedence over custom UI bindings. A failed replacement remains recoverable with another Ctrl+C; Atomic does not keep retrying automatically.
|
|
124
124
|
|
|
125
|
-
After an unexpected engine stop, Atomic closes its custom UI and makes one automatic restart attempt. A failed restart leaves the editor usable and reports `Interactive engine restart failed: …`. A submission that never started returns as an exact draft, including pasted content and queued submissions in order. Accepted work is not offered for automatic retry.
|
|
125
|
+
After an unexpected engine stop, Atomic closes its custom UI and makes one automatic restart attempt. A restart that succeeds shows no message; with debug logging on, its cause is written to the debug log. A failed restart leaves the editor usable and reports `Interactive engine restart failed: …`. A submission that never started returns as an exact draft, including pasted content and queued submissions in order. Accepted work is not offered for automatic retry.
|
|
126
126
|
|
|
127
127
|
If a saved tool call has no recorded result, reopening the session shows that its result is unavailable. **Inspect files or external systems before retrying: the tool may already have had side effects.**
|
|
128
128
|
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/atomic",
|
|
3
|
-
"version": "0.9.79-alpha.
|
|
3
|
+
"version": "0.9.79-alpha.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@bastani/atomic",
|
|
9
|
-
"version": "0.9.79-alpha.
|
|
9
|
+
"version": "0.9.79-alpha.2",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@bastani/atomic-natives": "0.9.79-alpha.
|
|
13
|
-
"@bastani/pi-ai": "0.9.79-alpha.
|
|
12
|
+
"@bastani/atomic-natives": "0.9.79-alpha.2",
|
|
13
|
+
"@bastani/pi-ai": "0.9.79-alpha.2",
|
|
14
14
|
"@earendil-works/pi-agent-core": "1.5.2",
|
|
15
15
|
"@earendil-works/pi-codemode": "1.5.2",
|
|
16
16
|
"@earendil-works/pi-tui": "1.5.2",
|
|
@@ -427,18 +427,18 @@
|
|
|
427
427
|
}
|
|
428
428
|
},
|
|
429
429
|
"node_modules/@bastani/atomic-natives": {
|
|
430
|
-
"version": "0.9.79-alpha.
|
|
431
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives/-/atomic-natives-0.9.79-alpha.
|
|
430
|
+
"version": "0.9.79-alpha.2",
|
|
431
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives/-/atomic-natives-0.9.79-alpha.2.tgz",
|
|
432
432
|
"license": "MIT",
|
|
433
433
|
"optionalDependencies": {
|
|
434
|
-
"@bastani/atomic-natives-darwin-arm64": "0.9.79-alpha.
|
|
435
|
-
"@bastani/atomic-natives-darwin-x64": "0.9.79-alpha.
|
|
436
|
-
"@bastani/atomic-natives-linux-arm64-gnu": "0.9.79-alpha.
|
|
437
|
-
"@bastani/atomic-natives-linux-arm64-musl": "0.9.79-alpha.
|
|
438
|
-
"@bastani/atomic-natives-linux-x64-gnu": "0.9.79-alpha.
|
|
439
|
-
"@bastani/atomic-natives-linux-x64-musl": "0.9.79-alpha.
|
|
440
|
-
"@bastani/atomic-natives-win32-arm64-msvc": "0.9.79-alpha.
|
|
441
|
-
"@bastani/atomic-natives-win32-x64-msvc": "0.9.79-alpha.
|
|
434
|
+
"@bastani/atomic-natives-darwin-arm64": "0.9.79-alpha.2",
|
|
435
|
+
"@bastani/atomic-natives-darwin-x64": "0.9.79-alpha.2",
|
|
436
|
+
"@bastani/atomic-natives-linux-arm64-gnu": "0.9.79-alpha.2",
|
|
437
|
+
"@bastani/atomic-natives-linux-arm64-musl": "0.9.79-alpha.2",
|
|
438
|
+
"@bastani/atomic-natives-linux-x64-gnu": "0.9.79-alpha.2",
|
|
439
|
+
"@bastani/atomic-natives-linux-x64-musl": "0.9.79-alpha.2",
|
|
440
|
+
"@bastani/atomic-natives-win32-arm64-msvc": "0.9.79-alpha.2",
|
|
441
|
+
"@bastani/atomic-natives-win32-x64-msvc": "0.9.79-alpha.2"
|
|
442
442
|
},
|
|
443
443
|
"engines": {
|
|
444
444
|
"bun": ">=1.4.2",
|
|
@@ -446,8 +446,8 @@
|
|
|
446
446
|
}
|
|
447
447
|
},
|
|
448
448
|
"node_modules/@bastani/atomic-natives-darwin-arm64": {
|
|
449
|
-
"version": "0.9.79-alpha.
|
|
450
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-arm64/-/atomic-natives-darwin-arm64-0.9.79-alpha.
|
|
449
|
+
"version": "0.9.79-alpha.2",
|
|
450
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-arm64/-/atomic-natives-darwin-arm64-0.9.79-alpha.2.tgz",
|
|
451
451
|
"license": "MIT",
|
|
452
452
|
"os": [
|
|
453
453
|
"darwin"
|
|
@@ -458,8 +458,8 @@
|
|
|
458
458
|
"optional": true
|
|
459
459
|
},
|
|
460
460
|
"node_modules/@bastani/atomic-natives-darwin-x64": {
|
|
461
|
-
"version": "0.9.79-alpha.
|
|
462
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-x64/-/atomic-natives-darwin-x64-0.9.79-alpha.
|
|
461
|
+
"version": "0.9.79-alpha.2",
|
|
462
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-x64/-/atomic-natives-darwin-x64-0.9.79-alpha.2.tgz",
|
|
463
463
|
"license": "MIT",
|
|
464
464
|
"os": [
|
|
465
465
|
"darwin"
|
|
@@ -470,8 +470,8 @@
|
|
|
470
470
|
"optional": true
|
|
471
471
|
},
|
|
472
472
|
"node_modules/@bastani/atomic-natives-linux-arm64-gnu": {
|
|
473
|
-
"version": "0.9.79-alpha.
|
|
474
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-gnu/-/atomic-natives-linux-arm64-gnu-0.9.79-alpha.
|
|
473
|
+
"version": "0.9.79-alpha.2",
|
|
474
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-gnu/-/atomic-natives-linux-arm64-gnu-0.9.79-alpha.2.tgz",
|
|
475
475
|
"license": "MIT",
|
|
476
476
|
"os": [
|
|
477
477
|
"linux"
|
|
@@ -485,8 +485,8 @@
|
|
|
485
485
|
"optional": true
|
|
486
486
|
},
|
|
487
487
|
"node_modules/@bastani/atomic-natives-linux-arm64-musl": {
|
|
488
|
-
"version": "0.9.79-alpha.
|
|
489
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-musl/-/atomic-natives-linux-arm64-musl-0.9.79-alpha.
|
|
488
|
+
"version": "0.9.79-alpha.2",
|
|
489
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-musl/-/atomic-natives-linux-arm64-musl-0.9.79-alpha.2.tgz",
|
|
490
490
|
"license": "MIT",
|
|
491
491
|
"os": [
|
|
492
492
|
"linux"
|
|
@@ -500,8 +500,8 @@
|
|
|
500
500
|
"optional": true
|
|
501
501
|
},
|
|
502
502
|
"node_modules/@bastani/atomic-natives-linux-x64-gnu": {
|
|
503
|
-
"version": "0.9.79-alpha.
|
|
504
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-gnu/-/atomic-natives-linux-x64-gnu-0.9.79-alpha.
|
|
503
|
+
"version": "0.9.79-alpha.2",
|
|
504
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-gnu/-/atomic-natives-linux-x64-gnu-0.9.79-alpha.2.tgz",
|
|
505
505
|
"license": "MIT",
|
|
506
506
|
"os": [
|
|
507
507
|
"linux"
|
|
@@ -515,8 +515,8 @@
|
|
|
515
515
|
"optional": true
|
|
516
516
|
},
|
|
517
517
|
"node_modules/@bastani/atomic-natives-linux-x64-musl": {
|
|
518
|
-
"version": "0.9.79-alpha.
|
|
519
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-musl/-/atomic-natives-linux-x64-musl-0.9.79-alpha.
|
|
518
|
+
"version": "0.9.79-alpha.2",
|
|
519
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-musl/-/atomic-natives-linux-x64-musl-0.9.79-alpha.2.tgz",
|
|
520
520
|
"license": "MIT",
|
|
521
521
|
"os": [
|
|
522
522
|
"linux"
|
|
@@ -530,8 +530,8 @@
|
|
|
530
530
|
"optional": true
|
|
531
531
|
},
|
|
532
532
|
"node_modules/@bastani/atomic-natives-win32-arm64-msvc": {
|
|
533
|
-
"version": "0.9.79-alpha.
|
|
534
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-arm64-msvc/-/atomic-natives-win32-arm64-msvc-0.9.79-alpha.
|
|
533
|
+
"version": "0.9.79-alpha.2",
|
|
534
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-arm64-msvc/-/atomic-natives-win32-arm64-msvc-0.9.79-alpha.2.tgz",
|
|
535
535
|
"license": "MIT",
|
|
536
536
|
"os": [
|
|
537
537
|
"win32"
|
|
@@ -542,8 +542,8 @@
|
|
|
542
542
|
"optional": true
|
|
543
543
|
},
|
|
544
544
|
"node_modules/@bastani/atomic-natives-win32-x64-msvc": {
|
|
545
|
-
"version": "0.9.79-alpha.
|
|
546
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-x64-msvc/-/atomic-natives-win32-x64-msvc-0.9.79-alpha.
|
|
545
|
+
"version": "0.9.79-alpha.2",
|
|
546
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-x64-msvc/-/atomic-natives-win32-x64-msvc-0.9.79-alpha.2.tgz",
|
|
547
547
|
"license": "MIT",
|
|
548
548
|
"os": [
|
|
549
549
|
"win32"
|
|
@@ -554,8 +554,8 @@
|
|
|
554
554
|
"optional": true
|
|
555
555
|
},
|
|
556
556
|
"node_modules/@bastani/pi-ai": {
|
|
557
|
-
"version": "0.9.79-alpha.
|
|
558
|
-
"resolved": "https://registry.npmjs.org/@bastani/pi-ai/-/pi-ai-0.9.79-alpha.
|
|
557
|
+
"version": "0.9.79-alpha.2",
|
|
558
|
+
"resolved": "https://registry.npmjs.org/@bastani/pi-ai/-/pi-ai-0.9.79-alpha.2.tgz",
|
|
559
559
|
"license": "MIT",
|
|
560
560
|
"dependencies": {
|
|
561
561
|
"@anthropic-ai/sdk": "0.129.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/atomic",
|
|
3
|
-
"version": "0.9.79-alpha.
|
|
3
|
+
"version": "0.9.79-alpha.2",
|
|
4
4
|
"description": "Atomic coding agent CLI with read, bash, edit, write tools and session management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"atomicConfig": {
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
"prepublishOnly": "bun run clean && bun run build && bun run shrinkwrap"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
|
-
"@bastani/atomic-natives": "0.9.79-alpha.
|
|
93
|
-
"@bastani/pi-ai": "0.9.79-alpha.
|
|
92
|
+
"@bastani/atomic-natives": "0.9.79-alpha.2",
|
|
93
|
+
"@bastani/pi-ai": "0.9.79-alpha.2",
|
|
94
94
|
"@earendil-works/pi-agent-core": "1.5.2",
|
|
95
95
|
"@earendil-works/pi-codemode": "1.5.2",
|
|
96
96
|
"@earendil-works/pi-tui": "1.5.2",
|