opencode-acp 1.18.2-pr.453.201 → 1.18.2-pr.466.203
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/dist/index.d.ts.map +1 -1
- package/dist/index.js +216 -256
- package/dist/index.js.map +1 -1
- package/dist/lib/compress/decompress.d.ts.map +1 -1
- package/dist/lib/compress/recap.d.ts.map +1 -1
- package/dist/lib/compress/search.d.ts.map +1 -1
- package/dist/lib/compress/status.d.ts.map +1 -1
- package/dist/lib/config-validation.d.ts.map +1 -1
- package/dist/lib/config.d.ts +1 -9
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/host-permissions.d.ts +8 -0
- package/dist/lib/host-permissions.d.ts.map +1 -1
- package/dist/lib/prompts/compress-range.d.ts.map +1 -1
- package/dist/lib/prompts/context-limit-nudge.d.ts +1 -1
- package/dist/lib/prompts/context-limit-nudge.d.ts.map +1 -1
- package/dist/lib/prompts/extensions/tool.d.ts +1 -1
- package/dist/lib/prompts/extensions/tool.d.ts.map +1 -1
- package/dist/lib/prompts/iteration-nudge.d.ts +1 -1
- package/dist/lib/prompts/iteration-nudge.d.ts.map +1 -1
- package/dist/lib/prompts/store.d.ts +1 -8
- package/dist/lib/prompts/store.d.ts.map +1 -1
- package/dist/lib/prompts/system.d.ts.map +1 -1
- package/dist/lib/prompts/turn-nudge.d.ts +1 -1
- package/dist/lib/prompts/turn-nudge.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/lib/prompts/packs.d.ts +0 -25
- package/dist/lib/prompts/packs.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decompress.d.ts","sourceRoot":"","sources":["../../../lib/compress/decompress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC1C,OAAO,EAAoB,KAAK,kBAAkB,EAAsB,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"decompress.d.ts","sourceRoot":"","sources":["../../../lib/compress/decompress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC1C,OAAO,EAAoB,KAAK,kBAAkB,EAAsB,MAAM,SAAS,CAAA;AAoSvF,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,kBAAkB,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAwL5F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recap.d.ts","sourceRoot":"","sources":["../../../lib/compress/recap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAE1C,OAAO,EAAE,KAAK,kBAAkB,EAAsB,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"recap.d.ts","sourceRoot":"","sources":["../../../lib/compress/recap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAE1C,OAAO,EAAE,KAAK,kBAAkB,EAAsB,MAAM,SAAS,CAAA;AAcrE,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,kBAAkB,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CA4CjG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../lib/compress/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAKvD,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EAE1B,MAAM,SAAS,CAAA;AAEhB,wBAAsB,oBAAoB,CAAC,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,CAM/F;AAED,wBAAgB,kBAAkB,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,wBAAgB,gBAAgB,CAC5B,OAAO,EAAE,aAAa,EACtB,cAAc,EAAE,iBAAiB,EACjC,YAAY,EAAE,iBAAiB,EAC/B,OAAO,CAAC,EAAE;IAAE,sBAAsB,CAAC,EAAE,OAAO,CAAA;CAAE,GAC/C,mBAAmB,CAoFrB;AAED,wBAAgB,sBAAsB,CAAC,cAAc,EAAE,iBAAiB,GAAG,MAAM,CAYhF;AAkGD,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,kBAAkB,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAsH/F"}
|
|
@@ -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;AAoI7C,MAAM,WAAW,mBAAmB;IAChC,KAAK,EAAE,YAAY,CAAA;IACnB,MAAM,CAAC,EAAE,YAAY,CAAA;CACxB;AAwbD,MAAM,WAAW,mBAAmB;IAChC,KAAK,CAAC,EAAE,YAAY,GAAG,cAAc,CAAA;IACrC,IAAI,CAAC,EAAE,YAAY,GAAG,QAAQ,GAAG,UAAU,CAAA;IAC3C,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,CA4J3F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-validation.d.ts","sourceRoot":"","sources":["../../lib/config-validation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"config-validation.d.ts","sourceRoot":"","sources":["../../lib/config-validation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,iBAAiB,aAuE5B,CAAA;AA8BF,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,EAAE,CAG9E;AAED,MAAM,WAAW,eAAe;IAC5B,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;CACjB;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,eAAe,EAAE,CA69BlF"}
|
package/dist/lib/config.d.ts
CHANGED
|
@@ -8,14 +8,13 @@ type Permission = "ask" | "allow" | "deny";
|
|
|
8
8
|
*
|
|
9
9
|
* Excluded:
|
|
10
10
|
* - `permission` — resolved at tool registration time, before any model info exists
|
|
11
|
-
* - `candidates` / `promptPack` — session-wide prompt-surface switches, global scope only
|
|
12
11
|
* - `minContextLimit` / `modelMinLimits` — deprecated (see CONFIGURATION.md)
|
|
13
12
|
* - `modelMaxLimits`, `modelMinLimits`, `providers` — structural (maps themselves)
|
|
14
13
|
* - `reasoning` — an object; cascade merges it field-wise (see
|
|
15
14
|
* `CompressReasoningConfig`), not by whole-value replacement, so it is handled
|
|
16
15
|
* outside the flat Omit surface.
|
|
17
16
|
*/
|
|
18
|
-
export type CompressOverridableConfig = Omit<CompressConfig, "permission" | "candidates" | "
|
|
17
|
+
export type CompressOverridableConfig = Omit<CompressConfig, "permission" | "candidates" | "minContextLimit" | "modelMaxLimits" | "modelMinLimits" | "providers" | "reasoning">;
|
|
19
18
|
/** Per-model / per-provider override object (all overridable fields optional). */
|
|
20
19
|
export type CompressModelOverrides = Partial<CompressOverridableConfig> & {
|
|
21
20
|
/** Field-wise override of the nested `compress.reasoning` object (#368). */
|
|
@@ -39,13 +38,6 @@ export interface CompressConfig {
|
|
|
39
38
|
* nudge lists pre-validated, batchable candidates instead of raw ranges.
|
|
40
39
|
*/
|
|
41
40
|
candidates: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Prompt surface pack (issue #452 phase 2). `"lean"` selects the condensed
|
|
44
|
-
* system prompt and one-line tool descriptions (billion-context-pi style);
|
|
45
|
-
* `"default"` keeps the full surfaces. Global scope only — not part of the
|
|
46
|
-
* per-provider/per-model override surface.
|
|
47
|
-
*/
|
|
48
|
-
promptPack: "default" | "lean";
|
|
49
41
|
maxContextLimit: number | `${number}%`;
|
|
50
42
|
/**
|
|
51
43
|
* @deprecated Soft lower bound for turn/iteration reminder nudges. Scheduled
|
package/dist/lib/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../lib/config.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM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KAAK,EAAE,OAAO,CAAA;IACd,qGAAqG;IACrG,QAAQ,EAAE,QAAQ,CAAA;IAClB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,OAAO,CAAA;IACvB,iBAAiB,EAAE,KAAK,GAAG,SAAS,GAAG,UAAU,CAAA;IACjD,qBAAqB,EAAE,MAAM,GAAG,OAAO,CAAA;IACvC,QAAQ,EAAE,QAAQ,CAAA;IAClB,YAAY,EAAE,kBAAkB,CAAA;IAChC,qBAAqB,EAAE,MAAM,EAAE,CAAA;IAC/B,QAAQ,EAAE,cAAc,CAAA;IACxB,EAAE,EAAE,QAAQ,CAAA;IACZ,WAAW,EAAE,iBAAiB,CAAA;IAC9B,cAAc,EAAE,oBAAoB,CAAA;CACvC;AAED,KAAK,gBAAgB,GAAG,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,WAAW,CAAC,GAAG;IACjE,SAAS,CAAC,EAAE,OAAO,CAAC,uBAAuB,CAAC,CAAA;CAC/C,CAAA;AA2BD,OAAO,EACH,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACnB,KAAK,eAAe,GACvB,MAAM,qBAAqB,CAAA;AA+R5B,wBAAgB,aAAa,CACzB,IAAI,EAAE,YAAY,CAAC,UAAU,CAAC,EAC9B,QAAQ,CAAC,EAAE,gBAAgB,GAC5B,YAAY,CAAC,UAAU,CAAC,CAkD1B;AA2BD,wBAAgB,eAAe,CAAC,MAAM,EAAE,YAAY,GAAG,YAAY,CAkDlE;AA0FD,wBAAgB,SAAS,CAAC,GAAG,EAAE,WAAW,GAAG,YAAY,CAsCxD"}
|
|
@@ -8,4 +8,12 @@ export interface HostPermissionSnapshot {
|
|
|
8
8
|
export declare const compressDisabledByOpencode: (...permissionConfigs: PermissionConfig[]) => boolean;
|
|
9
9
|
export declare const resolveEffectiveCompressPermission: (basePermission: PermissionAction, hostPermissions: HostPermissionSnapshot, agentName?: string) => PermissionAction;
|
|
10
10
|
export declare const hasExplicitToolPermission: (permissionConfig: PermissionConfig, tool: string) => boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Merge ACP's tool permissions into the host map. An explicit user `compress`
|
|
13
|
+
* rule means the user owns the map (returned unchanged). Otherwise write
|
|
14
|
+
* `compress` + default `acp_status: "allow"` — but never override an explicit
|
|
15
|
+
* user `acp_status` ([#457]: it used to be silently rewritten to `"allow"`,
|
|
16
|
+
* inverting the decision; the host reads its own permissions from this same map).
|
|
17
|
+
*/
|
|
18
|
+
export declare const applyAcpToolPermissions: (permissionConfig: PermissionConfig, compressPermission: PermissionAction) => Record<string, PermissionValue>;
|
|
11
19
|
//# sourceMappingURL=host-permissions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-permissions.d.ts","sourceRoot":"","sources":["../../lib/host-permissions.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,CAAA;AAEvD,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAA;AAEjF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG,SAAS,CAAA;AAE1E,MAAM,WAAW,sBAAsB;IACnC,MAAM,EAAE,gBAAgB,CAAA;IACxB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAA;CAC3C;AA6DD,eAAO,MAAM,0BAA0B,GAAI,GAAG,mBAAmB,gBAAgB,EAAE,KAAG,OAMrF,CAAA;AAED,eAAO,MAAM,kCAAkC,GAC3C,gBAAgB,gBAAgB,EAChC,iBAAiB,sBAAsB,EACvC,YAAY,MAAM,KACnB,gBAWF,CAAA;AAED,eAAO,MAAM,yBAAyB,GAClC,kBAAkB,gBAAgB,EAClC,MAAM,MAAM,KACb,OAEF,CAAA"}
|
|
1
|
+
{"version":3,"file":"host-permissions.d.ts","sourceRoot":"","sources":["../../lib/host-permissions.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,CAAA;AAEvD,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAA;AAEjF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG,SAAS,CAAA;AAE1E,MAAM,WAAW,sBAAsB;IACnC,MAAM,EAAE,gBAAgB,CAAA;IACxB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAA;CAC3C;AA6DD,eAAO,MAAM,0BAA0B,GAAI,GAAG,mBAAmB,gBAAgB,EAAE,KAAG,OAMrF,CAAA;AAED,eAAO,MAAM,kCAAkC,GAC3C,gBAAgB,gBAAgB,EAChC,iBAAiB,sBAAsB,EACvC,YAAY,MAAM,KACnB,gBAWF,CAAA;AAED,eAAO,MAAM,yBAAyB,GAClC,kBAAkB,gBAAgB,EAClC,MAAM,MAAM,KACb,OAEF,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,GAChC,kBAAkB,gBAAgB,EAClC,oBAAoB,gBAAgB,KACrC,MAAM,CAAC,MAAM,EAAE,eAAe,CAehC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compress-range.d.ts","sourceRoot":"","sources":["../../../lib/prompts/compress-range.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,iBAAiB,EAAE,OAAO,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"compress-range.d.ts","sourceRoot":"","sources":["../../../lib/prompts/compress-range.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,iBAAiB,EAAE,OAAO,GAAG,MAAM,CAmE3E;AAED,0EAA0E;AAC1E,eAAO,MAAM,cAAc,QAAiC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const CONTEXT_LIMIT_NUDGE = "\n<system-reminder>\n\u26A0\uFE0F Context limit reached \u2014 time to compress the largest ranges you no longer need. Prioritize completed tool outputs and resolved work. You can decompress specific blocks later if you need details. Keeping context lean helps you stay accurate.\n\nIf mid-atomic-operation, finish that step first, then compress.\n\
|
|
1
|
+
export declare const CONTEXT_LIMIT_NUDGE = "\n<system-reminder>\n\u26A0\uFE0F Context limit reached \u2014 time to compress the largest ranges you no longer need. Prioritize completed tool outputs and resolved work. You can decompress specific blocks later if you need details. Keeping context lean helps you stay accurate.\n\nIf mid-atomic-operation, finish that step first, then compress.\n\nHOW TO CALL COMPRESS:\n{\n \"topic\": \"Short Label\",\n \"content\": [\n {\n \"startId\": \"<ID from early in this conversation>\",\n \"endId\": \"<ID from later in this conversation>\",\n \"summary\": \"Complete technical summary of everything in the range\"\n }\n ]\n}\n\n\u26A0\uFE0F ID RULES \u2014 MOST COMMON CAUSE OF ERRORS:\n- ONLY use IDs you can see in tags in the messages ABOVE.\n- Do NOT copy IDs from this example. Do NOT invent IDs.\n- Do NOT use IDs from compressed block summaries \u2014 they are stale.\n- startId must appear BEFORE endId in the conversation.\n\nRANGE STRATEGY:\n- Prefer one large range over multiple small ones.\n- Compress OLDER resolved history first. Keep recent active work.\n</system-reminder>\n";
|
|
2
2
|
/**
|
|
3
3
|
* Candidate-mode guidance appended to the context-limit nudge when
|
|
4
4
|
* `compress.candidates` is enabled. Describes the MICRO/EPISODE candidate
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-limit-nudge.d.ts","sourceRoot":"","sources":["../../../lib/prompts/context-limit-nudge.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"context-limit-nudge.d.ts","sourceRoot":"","sources":["../../../lib/prompts/context-limit-nudge.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,8lCA4B/B,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,qzBAU9B,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const RANGE_FORMAT_EXTENSION = "\n\nTHE FORMAT OF COMPRESS\n\n```\n{\n topic?: string, // OPTIONAL
|
|
1
|
+
export declare const RANGE_FORMAT_EXTENSION = "\n\nTHE FORMAT OF COMPRESS\n\n```\n{\n topic?: string, // OPTIONAL fallback topic for entries without their own.\n // Omit when every content entry specifies its own topic.\n content: [ // One or more ranges to compress\n {\n topic?: string, // OPTIONAL per-entry topic for this range.\n // Falls back to top-level topic.\n // Give each entry its own topic when compressing\n // unrelated ranges in one call.\n startId: string, // Boundary ID at range start: mNNNNN or bN\n endId: string, // Boundary ID at range end: mNNNNN or bN\n summary: string // Complete technical summary replacing all content in range\n }\n ]\n}\n```\nEach entry needs a topic \u2014 either its own or the top-level fallback.";
|
|
2
2
|
export declare const MESSAGE_FORMAT_EXTENSION = "\nTHE FORMAT OF COMPRESS\n\n```\n{\n topic: string, // Short label (3-5 words) for the overall batch\n content: [ // One or more messages to compress independently\n {\n messageId: string, // Raw message ID only: mNNNNN (ignore metadata attributes like priority)\n topic: string, // Short label (3-5 words) for this one message summary\n summary: string // Complete technical summary replacing that one message\n }\n ]\n}\n```";
|
|
3
3
|
//# sourceMappingURL=tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../../../lib/prompts/extensions/tool.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../../../lib/prompts/extensions/tool.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB,y3BAqBkC,CAAA;AAErE,eAAO,MAAM,wBAAwB,4eAc9B,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const ITERATION_NUDGE = "\n<system-reminder>\nYou've been iterating for a while. If any earlier work is closed and unlikely to be referenced, compress it now.\n\n{\n \"topic\": \"Short Label\",\n \"content\": [{ \"startId\": \"<visible message ID>\", \"endId\": \"<visible message ID>\", \"summary\": \"...\" }]\n}\n\n\u26A0\uFE0F ONLY use IDs from
|
|
1
|
+
export declare const ITERATION_NUDGE = "\n<system-reminder>\nYou've been iterating for a while. If any earlier work is closed and unlikely to be referenced, compress it now.\n\n{\n \"topic\": \"Short Label\",\n \"content\": [{ \"startId\": \"<visible message ID>\", \"endId\": \"<visible message ID>\", \"summary\": \"...\" }]\n}\n\n\u26A0\uFE0F ONLY use IDs from tags visible above. Do NOT invent or copy example IDs.\n</system-reminder>\n";
|
|
2
2
|
/**
|
|
3
3
|
* Candidate-mode guidance appended to the iteration nudge when
|
|
4
4
|
* `compress.candidates` is enabled.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iteration-nudge.d.ts","sourceRoot":"","sources":["../../../lib/prompts/iteration-nudge.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"iteration-nudge.d.ts","sourceRoot":"","sources":["../../../lib/prompts/iteration-nudge.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,wZAW3B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,4BAA4B,gSAExC,CAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Logger } from "../logger";
|
|
2
|
-
import { type PromptPackId } from "./packs";
|
|
3
2
|
export type PromptKey = "system" | "compress-range" | "context-limit-nudge" | "turn-nudge" | "iteration-nudge";
|
|
4
3
|
export interface RuntimePrompts {
|
|
5
4
|
system: string;
|
|
@@ -9,11 +8,6 @@ export interface RuntimePrompts {
|
|
|
9
8
|
iterationNudge: string;
|
|
10
9
|
subagentExtension: string;
|
|
11
10
|
decompressExtension: string;
|
|
12
|
-
/** Standing tool descriptions selected by `compress.promptPack`. */
|
|
13
|
-
decompressDescription: string;
|
|
14
|
-
searchContextDescription: string;
|
|
15
|
-
acpStatusDescription: string;
|
|
16
|
-
acpContextRecapDescription: string;
|
|
17
11
|
}
|
|
18
12
|
export declare const PROMPT_KEYS: PromptKey[];
|
|
19
13
|
export declare class PromptStore {
|
|
@@ -21,9 +15,8 @@ export declare class PromptStore {
|
|
|
21
15
|
private readonly paths;
|
|
22
16
|
private readonly customPromptsEnabled;
|
|
23
17
|
private readonly candidatesEnabled;
|
|
24
|
-
private readonly promptPack;
|
|
25
18
|
private runtimePrompts;
|
|
26
|
-
constructor(logger: Logger, workingDirectory: string, customPromptsEnabled?: boolean, candidatesEnabled?: boolean
|
|
19
|
+
constructor(logger: Logger, workingDirectory: string, customPromptsEnabled?: boolean, candidatesEnabled?: boolean);
|
|
27
20
|
getRuntimePrompts(): RuntimePrompts;
|
|
28
21
|
reload(): void;
|
|
29
22
|
private getOverrideCandidates;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../lib/prompts/store.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../lib/prompts/store.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAQvC,MAAM,MAAM,SAAS,GACjB,QAAQ,GAAG,gBAAgB,GAAG,qBAAqB,GAAG,YAAY,GAAG,iBAAiB,CAAA;AAyB1F,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,EAAE,MAAM,CAAA;IACrB,iBAAiB,EAAE,MAAM,CAAA;IACzB,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,MAAM,CAAA;IACtB,iBAAiB,EAAE,MAAM,CAAA;IACzB,mBAAmB,EAAE,MAAM,CAAA;CAC9B;AA6CD,eAAO,MAAM,WAAW,EAAE,SAAS,EAMlC,CAAA;AAiND,qBAAa,WAAW;IACpB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAQ;IAC/B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAa;IACnC,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAS;IAC9C,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAS;IAC3C,OAAO,CAAC,cAAc,CAAgB;gBAGlC,MAAM,EAAE,MAAM,EACd,gBAAgB,EAAE,MAAM,EACxB,oBAAoB,UAAQ,EAC5B,iBAAiB,UAAQ;IAc7B,iBAAiB,IAAI,cAAc;IAInC,MAAM,IAAI,IAAI;IAmDd,OAAO,CAAC,qBAAqB;IAsB7B,OAAO,CAAC,kBAAkB;CAmD7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../lib/prompts/system.ts"],"names":[],"mappings":"AA4BA;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,iBAAiB,EAAE,OAAO,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../lib/prompts/system.ts"],"names":[],"mappings":"AA4BA;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,iBAAiB,EAAE,OAAO,GAAG,MAAM,CA8FpE;AAED,2FAA2F;AAC3F,eAAO,MAAM,MAAM,QAA0B,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const TURN_NUDGE = "\n<system-reminder>\nContext is getting full. If you've finished reading tool outputs or exploration results, compress them \u2014 you can decompress later if needed.\n\n{\n \"topic\": \"Short Label\",\n \"content\": [{ \"startId\": \"<visible message ID>\", \"endId\": \"<visible message ID>\", \"summary\": \"...\" }]\n}\n\n\u26A0\uFE0F ONLY use IDs from
|
|
1
|
+
export declare const TURN_NUDGE = "\n<system-reminder>\nContext is getting full. If you've finished reading tool outputs or exploration results, compress them \u2014 you can decompress later if needed. This keeps your focus on the current task and improves accuracy.\n\n{\n \"topic\": \"Short Label\",\n \"content\": [{ \"startId\": \"<visible message ID>\", \"endId\": \"<visible message ID>\", \"summary\": \"...\" }]\n}\n\n\u26A0\uFE0F ONLY use IDs from tags visible above. Do NOT invent or copy example IDs.\n</system-reminder>\n";
|
|
2
2
|
/**
|
|
3
3
|
* Candidate-mode guidance appended to the turn nudge when
|
|
4
4
|
* `compress.candidates` is enabled.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"turn-nudge.d.ts","sourceRoot":"","sources":["../../../lib/prompts/turn-nudge.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"turn-nudge.d.ts","sourceRoot":"","sources":["../../../lib/prompts/turn-nudge.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,0fAWtB,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,uBAAuB,wSAEnC,CAAA"}
|
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.18.2-pr.
|
|
4
|
+
"version": "1.18.2-pr.466.203",
|
|
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",
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export type PromptPackId = "default" | "lean";
|
|
2
|
-
export declare const PROMPT_PACK_IDS: readonly PromptPackId[];
|
|
3
|
-
export declare const DEFAULT_DECOMPRESS_DESCRIPTION = "Restores previously compressed content \u2014 use when you need exact details that a compressed summary cannot provide. Returns a condensed preview so you can reason about it immediately.\n\nModes (mutually exclusive):\n- Block mode: blockId (e.g., \"b5\") restores one block. By default restores one tier up (T2\u2192T1 summaries, not raw messages); use full:true to restore all the way to original messages (expensive for T2/T3). Message-mode blocks from the same batch (same runId) restore together; nested blocks are handled automatically.\n- Range mode: startId+endId (message or block refs) restore ALL active blocks overlapping the range; partial overlap restores the whole block.\n\ntoFile?: writes restored content to this path (must be under /tmp or ~/.cache/opencode/) instead of inflating context; block(s) stay compressed. Restored content appears in full in your next context window.\n\nDo NOT call this tool in parallel with compress \u2014 their state mutations may conflict. Check context usage before decompressing.";
|
|
4
|
-
export declare const DEFAULT_SEARCH_CONTEXT_DESCRIPTION = "Search through active compressed block summaries to find relevant content. Use this BEFORE decompressing to find the right block. Returns a hit list with block IDs, relevance scores, and previews.\n\nExample: search_context({ query: \"decoder accuracy\", limit: 5 })";
|
|
5
|
-
export declare const DEFAULT_ACP_STATUS_DESCRIPTION = "Show context status \u2014 overview includes compressible ranges (compression candidates when compress.candidates is enabled).\n\nNo args: totals, compressed blocks, and ranges/candidates in one call. scope:\"uncompressed\": ranges only (view:\"candidates\" when compress.candidates is enabled; view:\"ranges\" for raw grouped ranges; view:\"messages\" for per-message listing with tool/sort filters). scope:\"compressed\": drill into blocks with full details (age, generation, consumed lineage).";
|
|
6
|
-
export declare const DEFAULT_ACP_CONTEXT_RECAP_DESCRIPTION = "Read-only retrieval of compression block summaries \u2014 re-fetch a block's summary without decompressing the full original content (useful when it scrolled out of context or was truncated). Args: blockId optional (e.g., 5); if omitted, lists all active blocks with brief info.";
|
|
7
|
-
export declare const LEAN_DECOMPRESS_DESCRIPTION = "Restore compressed content by blockId (e.g., \"b5\") or a startId+endId range (restores all overlapping blocks). Block mode restores one tier up by default; full:true restores original messages (expensive for T2/T3). toFile writes to a file instead of inflating context. Do NOT call in parallel with compress.";
|
|
8
|
-
export declare const LEAN_SEARCH_CONTEXT_DESCRIPTION = "Search compressed block summaries and visible messages by keyword before decompressing; returns block IDs, relevance scores, previews. Example: search_context({ query: \"decoder accuracy\", limit: 5 })";
|
|
9
|
-
export declare const LEAN_ACP_STATUS_DESCRIPTION = "Context usage overview with compressible ranges (or candidates when compress.candidates is enabled). No args = totals + ranges/candidates. scope:\"uncompressed\" for the range view, scope:\"compressed\" for block details.";
|
|
10
|
-
export declare const LEAN_ACP_CONTEXT_RECAP_DESCRIPTION = "Re-fetch a compression block's summary without decompressing (blockId optional; omitted lists all active blocks).";
|
|
11
|
-
export interface PackToolDescriptions {
|
|
12
|
-
decompress: string;
|
|
13
|
-
searchContext: string;
|
|
14
|
-
acpStatus: string;
|
|
15
|
-
acpContextRecap: string;
|
|
16
|
-
}
|
|
17
|
-
export declare function getToolDescriptions(pack: PromptPackId): PackToolDescriptions;
|
|
18
|
-
export declare const LEAN_HOW_TO_COMPRESS = "HOW TO COMPRESS\n\nYour summary is the ONLY record of the replaced conversation \u2014 a later reader must continue without the original. It records the PAST: label task state as history (\"TASK AS OF THIS BLOCK: ...\"), never as a live instruction. Real unicode only, never \\uXXXX escapes.\n\nINTEGRITY \u2014 record facts and state only, never a simulated transcript of the dialogue: no Q&A lists, no \"(answered)\" claims. An answer not actually sent is PENDING; user questions are recorded as asked (with ref), never as answered.\n\nKEEP VERBATIM \u2014 never paraphrase or abbreviate:\n- File paths with line numbers and directory prefix on every mention (lib/hooks.ts:347); never a bare filename \u2014 ambiguous, un-greppable.\n- Function/class/type signatures AND the critical code lines that encode logic (the line that IS the finding).\n- Error messages and stack traces (exact text \u2014 needed to grep later).\n- Report details: comparison numbers plus mechanism, not \"X is worse\" (\"1.76\u00D7 PPL gap because KV store is static\").\n- Decisions with rationale (\"chose X over Y because Z\"); discovered constraints (\"must support Node 22\").\n- Exact values: versions, config keys, thresholds, magic numbers.\n- User intent: short quotes verbatim ONLY WITH message ref (User said (m00132): \"ship it tonight\"); without a ref, paraphrase. Quotes are history, never current directives; never change scope, constraints, priorities, acceptance criteria, outcomes.\n- Overall goal and its evolution, including pivots (\"initially: fix X \u2192 pivoted to: refactor Y\").\n- Purpose behind significant actions (hypothesis, question, goal \u2014 not just what was done).\n- Open questions and unresolved TODOs.\n- Message refs of key anchors (m00420, m00510\u2013m00520) for decompress.\n\nDROP \u2014 keep the signal, discard the vessel: verbose logs once the error/result is captured; duplicate reads; consumed exploration (search hits, agent returns, successful outputs); dead ends (one lesson line: \"tried X, failed because Y\"); back-and-forth once the final position is kept; repeated status checks. For each dropped item add one line of CONTENT: what it covers (\"probe.py: tests n-gram baseline...\"), not where it lives.\n\nPRIORITY when compacting: 1. user goal/evolution/intent/hard constraints \u00B7 2. decisions + rationale \u00B7 3. exact artifacts (paths, signatures, errors, values) \u00B7 4. conclusions \u00B7 5. lessons learned (what failed and why).\n\nFormat: dense scannable bullets under short thematic headers, not narrative prose; every line earns its place. Do not mimic the style of existing summaries in context; follow these rules.";
|
|
19
|
-
export declare function buildLeanSystemPrompt(candidatesEnabled: boolean): string;
|
|
20
|
-
export declare function buildLeanCompressRangePrompt(candidatesEnabled: boolean): string;
|
|
21
|
-
/** Select the standing system prompt for a pack. */
|
|
22
|
-
export declare function buildPackSystemPrompt(pack: PromptPackId, candidatesEnabled: boolean): string;
|
|
23
|
-
/** Select the range-mode compress tool prompt for a pack. */
|
|
24
|
-
export declare function buildPackCompressRangePrompt(pack: PromptPackId, candidatesEnabled: boolean): string;
|
|
25
|
-
//# sourceMappingURL=packs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"packs.d.ts","sourceRoot":"","sources":["../../../lib/prompts/packs.ts"],"names":[],"mappings":"AAsBA,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,MAAM,CAAA;AAE7C,eAAO,MAAM,eAAe,EAAE,SAAS,YAAY,EAAwB,CAAA;AAO3E,eAAO,MAAM,8BAA8B,8gCAQqF,CAAA;AAEhI,eAAO,MAAM,kCAAkC,+QAEkB,CAAA;AAEjE,eAAO,MAAM,8BAA8B,qfAE0T,CAAA;AAErW,eAAO,MAAM,qCAAqC,2RAAsR,CAAA;AAMxU,eAAO,MAAM,2BAA2B,0TAAwT,CAAA;AAEhW,eAAO,MAAM,+BAA+B,8MAA4M,CAAA;AAExP,eAAO,MAAM,2BAA2B,kOAA8N,CAAA;AAEtQ,eAAO,MAAM,kCAAkC,sHAAsH,CAAA;AAErK,MAAM,WAAW,oBAAoB;IACjC,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;IACrB,SAAS,EAAE,MAAM,CAAA;IACjB,eAAe,EAAE,MAAM,CAAA;CAC1B;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,YAAY,GAAG,oBAAoB,CAe5E;AAUD,eAAO,MAAM,oBAAoB,wnFAuB2J,CAAA;AAU5L,wBAAgB,qBAAqB,CAAC,iBAAiB,EAAE,OAAO,GAAG,MAAM,CA0BxE;AAQD,wBAAgB,4BAA4B,CAAC,iBAAiB,EAAE,OAAO,GAAG,MAAM,CAY/E;AAED,oDAAoD;AACpD,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,YAAY,EAAE,iBAAiB,EAAE,OAAO,GAAG,MAAM,CAI5F;AAED,6DAA6D;AAC7D,wBAAgB,4BAA4B,CACxC,IAAI,EAAE,YAAY,EAClB,iBAAiB,EAAE,OAAO,GAC3B,MAAM,CAIR"}
|