@bastani/atomic 0.8.30-alpha.1 → 0.8.30-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 +1 -0
- package/dist/builtin/cursor/package.json +2 -2
- 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/compaction/context-compaction.d.ts.map +1 -1
- package/dist/core/compaction/context-compaction.js +56 -13
- package/dist/core/compaction/context-compaction.js.map +1 -1
- package/docs/compaction.md +6 -5
- package/package.json +2 -2
package/docs/compaction.md
CHANGED
|
@@ -370,9 +370,9 @@ Candidate cumulative deletion request
|
|
|
370
370
|
│
|
|
371
371
|
▼
|
|
372
372
|
┌─────────────────────────────────────────────────────────────────────┐
|
|
373
|
-
│ Gate 2: thinking-content guard
|
|
374
|
-
│ assistant
|
|
375
|
-
│ deleted or partially block-deleted
|
|
373
|
+
│ Gate 2: latest thinking-content guard │
|
|
374
|
+
│ the latest retained assistant with thinking/redacted_thinking │
|
|
375
|
+
│ cannot be entry-deleted or partially content-block-deleted │
|
|
376
376
|
└─────────────────────────────────────────────────────────────────────┘
|
|
377
377
|
│
|
|
378
378
|
▼
|
|
@@ -405,7 +405,8 @@ Candidate cumulative deletion request
|
|
|
405
405
|
▼
|
|
406
406
|
┌─────────────────────────────────────────────────────────────────────┐
|
|
407
407
|
│ Gate 7: post-reconcile guards │
|
|
408
|
-
│ no recent targets, no
|
|
408
|
+
│ no recent targets, no content-block deletion from the latest │
|
|
409
|
+
│ retained assistant when it has thinking/redacted_thinking │
|
|
409
410
|
└─────────────────────────────────────────────────────────────────────┘
|
|
410
411
|
│
|
|
411
412
|
▼
|
|
@@ -544,7 +545,7 @@ The compaction assistant can only compact by using these internal tools. Exact d
|
|
|
544
545
|
|
|
545
546
|
The planner is prompted to call `context_compaction_budget` before deleting and after deletion batches. The tool reports the current transcript token estimate as a percentage of the selected model's context window, the configured `compression_ratio`, the projected percentage after selected deletions, current reduction percentage, and how many more estimated tokens must be removed to reach the strict target. With the default `compression_ratio: 0.5`, the strict target is a 50% token reduction.
|
|
546
547
|
|
|
547
|
-
`context_grep_delete` supports literal or regex matching, skips already-deleted or disallowed context, enforces a per-call `maxMatches` safety cap, can require `expectedMatchCount` when the planner wants an exact-match safety check, and routes every accepted match through the same validation pipeline as exact deletions. Disallowed matches are ignored before `matches`, `expectedMatchCount`, deletion stats, and selected targets are calculated, so a broad regex can still remove safe blocks without counting rejected candidates as removed. `maxMatches` limits only one tool call; there is no cumulative deletion cap across repeated `context_delete` or `context_grep_delete` calls. Exact deletion attempts that target disallowed entries/blocks return an explicit non-terminating tool error with correction guidance. Exact deletion payloads that include unsupported fields such as transcript `text`, block `content`, summaries, or replacement data are rejected as non-id-only requests.
|
|
548
|
+
`context_grep_delete` supports literal or regex matching, skips already-deleted or disallowed context, enforces a per-call `maxMatches` safety cap, can require `expectedMatchCount` when the planner wants an exact-match safety check, and routes every accepted match through the same validation pipeline as exact deletions. Disallowed matches are ignored before `matches`, `expectedMatchCount`, deletion stats, and selected targets are calculated, so a broad regex can still remove safe blocks without counting rejected candidates as removed. This includes the universal latest-retained assistant guard: if the latest retained assistant message contains `thinking` or `redacted_thinking`, neither `context_delete` nor `context_grep_delete` may remove any content block from that assistant message, even a visible text sibling block. `maxMatches` limits only one tool call; there is no cumulative deletion cap across repeated `context_delete` or `context_grep_delete` calls. Exact deletion attempts that target disallowed entries/blocks return an explicit non-terminating tool error with correction guidance. Exact deletion payloads that include unsupported fields such as transcript `text`, block `content`, summaries, or replacement data are rejected as non-id-only requests.
|
|
548
549
|
|
|
549
550
|
Tool calls are cumulative during one compaction run. The assistant can apply several small deletion batches, inspect the updated state, and stop only after the validated stats meet the strict reduction target. Atomic uses the validated tool state as the compaction result; ordinary assistant text is ignored for deletion targets.
|
|
550
551
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/atomic",
|
|
3
|
-
"version": "0.8.30-alpha.
|
|
3
|
+
"version": "0.8.30-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": {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"prepublishOnly": "bun run clean && bun run build"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@bastani/atomic-natives": "0.8.30-alpha.
|
|
71
|
+
"@bastani/atomic-natives": "0.8.30-alpha.2",
|
|
72
72
|
"@bufbuild/protobuf": "^2.0.0",
|
|
73
73
|
"@earendil-works/pi-agent-core": "^0.79.4",
|
|
74
74
|
"@earendil-works/pi-ai": "^0.79.4",
|