acp-kernel 0.0.66-pr.266.120 → 0.0.67-pr.267.121
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 +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -27
- package/dist/index.js.map +1 -1
- package/dist/packs.d.ts +2 -16
- package/dist/packs.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export { defaultPrompts, resolvePrompts } from "./prompts.js";
|
|
|
18
18
|
export type { Prompts, ResolvePromptsOptions } from "./prompts.js";
|
|
19
19
|
export { applySectionOverrides, cloneWithDescriptions, applyAcpToolOverrides, } from "./surface-config.js";
|
|
20
20
|
export type { SectionOverride, CompressPromptSections, ToolPromptOverrides, ToolPrompts, AcpToolLike, } from "./surface-config.js";
|
|
21
|
-
export { isValidPackName, sanitizePackSurface, defaultPack, leanPack,
|
|
21
|
+
export { isValidPackName, sanitizePackSurface, defaultPack, leanPack, builtinSource, createDirPackSource, createPackResolver, defaultPackSources, } from "./packs.js";
|
|
22
22
|
export type { PromptPackFile, PackSurface, Pack, PackSource, PackResolver, } from "./packs.js";
|
|
23
23
|
export { truncateLargeToolOutputs } from "./truncate-tools.js";
|
|
24
24
|
export type { TruncateOptions, TruncateResult } from "./truncate-tools.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,YAAY,EACV,KAAK,EACL,eAAe,EACf,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB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AW,GACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,WAAW,EACX,QAAQ,EACR,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,YAAY,EACV,KAAK,EACL,eAAe,EACf,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,GAChB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC5D,cAAc,qBAAqB,CAAC;AACpC,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,UAAU,EACV,SAAS,EACT,SAAS,EACT,WAAW,GACZ,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,KAAK,EACL,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAChE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtF,OAAO,EAAE,g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,EACb,WAAW,EACX,WAAW,EACX,WAAW,EACX,YAAY,GACb,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACtE,OAAO,EACL,WAAW,EACX,MAAM,EACN,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,MAAM,EACX,KAAK,WAAW,GACjB,MAAM,eAAe,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAElC,OAAO,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -3119,34 +3119,10 @@ var LEAN_TOOL_PROMPTS = {
|
|
|
3119
3119
|
description: "Context usage overview, compressible ranges, block drilldown."
|
|
3120
3120
|
}
|
|
3121
3121
|
};
|
|
3122
|
-
var LEAN_HOW_TO_COMPRESS = `HOW TO COMPRESS
|
|
3123
|
-
|
|
3124
|
-
Your 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.
|
|
3125
|
-
|
|
3126
|
-
INTEGRITY \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.
|
|
3127
|
-
|
|
3128
|
-
KEEP VERBATIM \u2014 never paraphrase or abbreviate:
|
|
3129
|
-
- File paths with line numbers and directory prefix on every mention (lib/hooks.ts:347); never a bare filename \u2014 ambiguous, un-greppable.
|
|
3130
|
-
- Function/class/type signatures AND the critical code lines that encode logic (the line that IS the finding).
|
|
3131
|
-
- Error messages and stack traces (exact text \u2014 needed to grep later).
|
|
3132
|
-
- Report details: comparison numbers plus mechanism, not "X is worse" ("1.76\xD7 PPL gap because KV store is static").
|
|
3133
|
-
- Decisions with rationale ("chose X over Y because Z"); discovered constraints ("must support Node 22").
|
|
3134
|
-
- Exact values: versions, config keys, thresholds, magic numbers.
|
|
3135
|
-
- 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.
|
|
3136
|
-
- Overall goal and its evolution, including pivots ("initially: fix X \u2192 pivoted to: refactor Y").
|
|
3137
|
-
- Purpose behind significant actions (hypothesis, question, goal \u2014 not just what was done).
|
|
3138
|
-
- Open questions and unresolved TODOs.
|
|
3139
|
-
- Message refs of key anchors (m00420, m00510\u2013m00520) for decompress.
|
|
3140
|
-
|
|
3141
|
-
DROP \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.
|
|
3142
|
-
|
|
3143
|
-
PRIORITY when compacting: 1. user goal/evolution/intent/hard constraints \xB7 2. decisions + rationale \xB7 3. exact artifacts (paths, signatures, errors, values) \xB7 4. conclusions \xB7 5. lessons learned (what failed and why).
|
|
3144
|
-
|
|
3145
|
-
Format: 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.`;
|
|
3146
3122
|
var leanPack = {
|
|
3147
3123
|
name: "lean",
|
|
3148
3124
|
version: "1.0.0",
|
|
3149
|
-
description: "Token-lean surface: one-line tool descriptions, no snippet/guideline chrome.
|
|
3125
|
+
description: "Token-lean surface: one-line tool descriptions, no snippet/guideline chrome. Compression rules stay default (delivered by nudges on demand).",
|
|
3150
3126
|
source: "builtin:lean",
|
|
3151
3127
|
surface: {
|
|
3152
3128
|
toolPrompts: LEAN_TOOL_PROMPTS,
|
|
@@ -3168,7 +3144,17 @@ var leanPack = {
|
|
|
3168
3144
|
philosophy: null,
|
|
3169
3145
|
whenToCompress: null,
|
|
3170
3146
|
whenNotToCompress: null,
|
|
3171
|
-
howToCompress:
|
|
3147
|
+
howToCompress: `HOW TO COMPRESS (condensed)
|
|
3148
|
+
|
|
3149
|
+
Your summary becomes the only record of the replaced range \u2014 make it self-contained: a reader must be able to continue the task without the original. It records the PAST: label recorded task state as history ("TASK AS OF THIS BLOCK: ...") \u2014 never as a live instruction. Record facts and state only \u2014 never a simulated transcript of the dialogue (no Q&A lists, no "(answered)" claims): an answer not actually sent is PENDING, and a user question is recorded as asked \u2014 with its ref \u2014 not as answered.
|
|
3150
|
+
|
|
3151
|
+
KEEP VERBATIM: full paths with line numbers on every mention (\`lib/hooks.ts:347\`, never a bare \`hooks.ts\`); signatures AND the critical code line that IS the finding; exact error text; findings with numbers + mechanism ("1.76\xD7 PPL because KV store is static", not "X is worse"); decisions WITH rationale ("chose X over Y because Z"); constraints ("must support Node 22"); exact versions/config keys/thresholds; user intent \u2014 verbatim quotes ONLY with a message ref (\`User said (m00132): "ship it tonight"\`), otherwise paraphrase and never present a reconstructed phrase as a quote; the overall goal and how it evolved; the purpose behind significant actions; open questions/TODOs; anchor refs (\`m00420\`\u2013\`m00510\`).
|
|
3152
|
+
|
|
3153
|
+
DROP (extract the signal, discard the vessel): verbose logs after capturing the error/result; duplicate reads; consumed and dead-end exploration (preserve one line: "tried X, failed because Y"); back-and-forth once the final position is captured; repeated status checks. For each significant dropped item add a one-line CONTENT description of what it covers ("probe_kvnet.py: tests n-gram baseline, generation quality, long-range dependency"), not where it lives.
|
|
3154
|
+
|
|
3155
|
+
PRIORITY: 1. user goal/intent/constraints 2. decisions+rationale 3. exact artifacts (paths/signatures/errors/values) 4. conclusions 5. lessons.
|
|
3156
|
+
|
|
3157
|
+
Dense scannable bullets under short thematic headers \u2014 never narrative prose. Do not mimic the style of existing summaries in context.`,
|
|
3172
3158
|
multiTierIntro: null,
|
|
3173
3159
|
tier2: null,
|
|
3174
3160
|
tier3: null,
|
|
@@ -4551,7 +4537,6 @@ export {
|
|
|
4551
4537
|
DEFAULT_ALGORITHM,
|
|
4552
4538
|
DEFAULT_ROLE_WEIGHTS,
|
|
4553
4539
|
HOW_TO_COMPRESS_RULES,
|
|
4554
|
-
LEAN_HOW_TO_COMPRESS,
|
|
4555
4540
|
SEARCH_CONTEXT_TOOL,
|
|
4556
4541
|
SEARCH_CONTEXT_TOOL_NAME,
|
|
4557
4542
|
SEARCH_CONTEXT_TOOL_OPENAI,
|