opencode-acp 1.14.8-dev.1 → 1.14.8-dev.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/README.md +10 -0
- package/README.zh-CN.md +10 -0
- package/dist/index.js +63 -51
- package/dist/index.js.map +1 -1
- package/dist/lib/compress/hide-consumed.d.ts +0 -18
- package/dist/lib/compress/hide-consumed.d.ts.map +1 -1
- package/dist/lib/compress/status.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,21 +1,3 @@
|
|
|
1
1
|
import type { SessionState, WithParts } from "../state";
|
|
2
|
-
/**
|
|
3
|
-
* Hide compress tool-call parts whose blocks have been consumed by another
|
|
4
|
-
* compression (tier escalation or range overlap).
|
|
5
|
-
*
|
|
6
|
-
* This is the compress-as-anchor equivalent of filterCompressedRanges: instead
|
|
7
|
-
* of hiding whole messages covered by active blocks, it hides individual
|
|
8
|
-
* compress tool-call PARTS whose blocks are no longer active. The message shell
|
|
9
|
-
* survives (it may carry other parts); only the consumed compress call disappears.
|
|
10
|
-
*
|
|
11
|
-
* If after removal the message contains only structural parts (step-start,
|
|
12
|
-
* step-finish, reasoning), it is spliced entirely — those carry no useful
|
|
13
|
-
* content once the compress call they wrapped is gone.
|
|
14
|
-
*
|
|
15
|
-
* Block data (full summary, original messages) is preserved in session state and
|
|
16
|
-
* remains recoverable via `decompress`.
|
|
17
|
-
*
|
|
18
|
-
* Returns the number of compress-call parts hidden.
|
|
19
|
-
*/
|
|
20
2
|
export declare function hideConsumedCompressCalls(state: SessionState, messages: WithParts[]): number;
|
|
21
3
|
//# sourceMappingURL=hide-consumed.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hide-consumed.d.ts","sourceRoot":"","sources":["../../../lib/compress/hide-consumed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"hide-consumed.d.ts","sourceRoot":"","sources":["../../../lib/compress/hide-consumed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAKvD,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,MAAM,CAoD5F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../lib/compress/status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC1C,OAAO,EAAoB,KAAK,kBAAkB,EAAsB,MAAM,SAAS,CAAA;AAEvF,OAAO,KAAK,EAAoB,SAAS,EAAE,MAAM,gBAAgB,CAAA;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../lib/compress/status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC1C,OAAO,EAAoB,KAAK,kBAAkB,EAAsB,MAAM,SAAS,CAAA;AAEvF,OAAO,KAAK,EAAoB,SAAS,EAAE,MAAM,gBAAgB,CAAA;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAkH7C,MAAM,WAAW,mBAAmB;IAChC,KAAK,EAAE,YAAY,CAAA;IACnB,MAAM,CAAC,EAAE,YAAY,CAAA;CACxB;AAiXD,MAAM,WAAW,mBAAmB;IAChC,KAAK,CAAC,EAAE,YAAY,GAAG,cAAc,CAAA;IACrC,IAAI,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAA;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAA;IACvC,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,wBAAgB,iBAAiB,CAC7B,SAAS,EAAE,mBAAmB,EAC9B,WAAW,EAAE,SAAS,EAAE,EACxB,OAAO,CAAC,EAAE,mBAAmB,GAC9B,MAAM,CA8CR;AAED,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,kBAAkB,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAoE3F"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "opencode-acp",
|
|
4
|
-
"version": "1.14.8-dev.
|
|
4
|
+
"version": "1.14.8-dev.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Active Context Pruning — model-driven context management for OpenCode (hardened fork of DCP with 35 bug fixes)",
|
|
7
7
|
"main": "./dist/index.js",
|