@wrongstack/core 0.305.1 → 0.306.0
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/coordination/agents/index.js +3 -2
- package/dist/coordination/agents/types.d.ts +1 -1
- package/dist/coordination/index.js +3 -2
- package/dist/core/index.d.ts +2 -1
- package/dist/core/index.js +2764 -2632
- package/dist/core/system-prompt-blocks.d.ts +1 -1
- package/dist/core/system-prompt-builder.d.ts +7 -1
- package/dist/core/system-prompt-glossary.d.ts +0 -23
- package/dist/defaults/index.js +3 -2
- package/dist/execution/index.js +3 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +875 -530
- package/dist/observability/index.js +7 -3
- package/dist/plugin/index.d.ts +4 -3
- package/dist/plugin/index.js +589 -143
- package/dist/plugins/auto-review-plugin.d.ts +14 -7
- package/dist/plugins/chimera-plugin.d.ts +15 -1
- package/dist/plugins/review-finding-integration.d.ts +15 -3
- package/dist/plugins/review-finding-parser.d.ts +36 -0
- package/dist/plugins/review-finding-types.d.ts +46 -0
- package/dist/plugins/review-finding-verification.d.ts +53 -0
- package/dist/plugins/review-report-integration.d.ts +1 -0
- package/dist/plugins/review-report-store.d.ts +7 -0
- package/dist/plugins/review-report-types.d.ts +14 -0
- package/dist/plugins/review-types.d.ts +74 -0
- package/dist/replay/replay-provider-runner.d.ts +5 -4
- package/dist/tools/fallback-manage-tool-options.d.ts +9 -0
- package/dist/tools/index.js +91 -38
- package/dist/tools/one-shot-llm-tool.d.ts +6 -0
- package/dist/types/blocks.d.ts +10 -0
- package/dist/utils/index.js +8 -9
- package/instructions/agents/browser.md +1 -0
- package/instructions/agents/e2e.md +2 -0
- package/instructions/llm/chimera-review.md +52 -1
- package/instructions/system-lite.md +17 -6
- package/instructions/system-pro.md +25 -20
- package/instructions/system.md +25 -12
- package/package.json +3 -3
|
@@ -18,7 +18,7 @@ import { type InstructionTemplateContext } from './instruction-template.js';
|
|
|
18
18
|
* `getContextBreakdown()` to attribute real token counts per category in the
|
|
19
19
|
* `/context` display.
|
|
20
20
|
*/
|
|
21
|
-
export type SystemBlockSource = 'identity' | 'tool-usage' | 'environment' | 'skills' | 'mode' | 'plan' | 'leader-after-task' | 'contributor' | 'ledger' | 'glossary' | 'nextsteps';
|
|
21
|
+
export type SystemBlockSource = 'identity' | 'tool-usage' | 'environment' | 'skills' | 'mode' | 'plan' | 'leader-after-task' | 'contributor' | 'ledger' | 'glossary' | 'peers' | 'nextsteps';
|
|
22
22
|
/**
|
|
23
23
|
* Side-table mapping each system-prompt TextBlock to the section it came from.
|
|
24
24
|
* Kept as a WeakMap rather than a field on TextBlock so the label never reaches
|
|
@@ -147,7 +147,13 @@ export declare class DefaultSystemPromptBuilder implements SystemPromptBuilder {
|
|
|
147
147
|
private _lastCatalogTools?;
|
|
148
148
|
/** Cached rendered online agents string, keyed by content fingerprint. */
|
|
149
149
|
private _lastOnlineAgents?;
|
|
150
|
-
/**
|
|
150
|
+
/**
|
|
151
|
+
* Cached full buildToolUsage output — keyed by tools array ref + tier.
|
|
152
|
+
* Deliberately NOT keyed by the online-agents fingerprint: the live peer
|
|
153
|
+
* snapshot moved out of this layer into the `peers` volatile block, so
|
|
154
|
+
* layer2 stays byte-stable (and provider-cache-friendly) while agents
|
|
155
|
+
* join, leave, or change status.
|
|
156
|
+
*/
|
|
151
157
|
private _toolsUsageCache?;
|
|
152
158
|
private _instructionBundle?;
|
|
153
159
|
/**
|
|
@@ -32,12 +32,6 @@ export interface DomainGlossaryOptions {
|
|
|
32
32
|
/** Max chars per bullet line (after the **Term** header). Default 80. */
|
|
33
33
|
maxEntryChars?: number | undefined;
|
|
34
34
|
}
|
|
35
|
-
export interface DomainGlossary {
|
|
36
|
-
/** The extractor port shape we depend on. */
|
|
37
|
-
readonly memory: MemoryStore;
|
|
38
|
-
/** Render the block, or `null` when no glossary entries exist. */
|
|
39
|
-
readonly formatGlossaryBlock: () => Promise<string | null>;
|
|
40
|
-
}
|
|
41
35
|
/**
|
|
42
36
|
* Build the minimal `[Project Jargon Dictionary]` block.
|
|
43
37
|
*
|
|
@@ -53,21 +47,4 @@ export interface DomainGlossary {
|
|
|
53
47
|
* parity (`domain-term`).
|
|
54
48
|
*/
|
|
55
49
|
export declare function renderDomainGlossary(ctx: BuildContext, memory: MemoryStore | undefined, options?: DomainGlossaryOptions): Promise<string | null>;
|
|
56
|
-
/**
|
|
57
|
-
* Wire a glossary block into a `DefaultSystemPromptBuilder` via the
|
|
58
|
-
* existing `contributors` channel (see `system-prompt-contributor.ts`).
|
|
59
|
-
*
|
|
60
|
-
* Use from the host (CLI/TUI/WebUI) like this:
|
|
61
|
-
*
|
|
62
|
-
* const builder = new DefaultSystemPromptBuilder({
|
|
63
|
-
* ...other opts,
|
|
64
|
-
* contributors: [
|
|
65
|
-
* ...DefaultSystemPromptBuilder.defaultContributors({ projectRoot }),
|
|
66
|
-
* makeDomainGlossaryContributor({ memory: sagePort }),
|
|
67
|
-
* ],
|
|
68
|
-
* });
|
|
69
|
-
*
|
|
70
|
-
* The contributor returns `[]` for non-SAGE stores so the prompt stays clean.
|
|
71
|
-
*/
|
|
72
|
-
export declare function makeDomainGlossaryContributor(glossary: DomainGlossary): (ctx: BuildContext) => Promise<import('../types/blocks.js').TextBlock[]>;
|
|
73
50
|
//# sourceMappingURL=system-prompt-glossary.d.ts.map
|
package/dist/defaults/index.js
CHANGED
|
@@ -2693,6 +2693,7 @@ var TOOLS = {
|
|
|
2693
2693
|
"glob",
|
|
2694
2694
|
"search",
|
|
2695
2695
|
"tree",
|
|
2696
|
+
"diff",
|
|
2696
2697
|
"write",
|
|
2697
2698
|
"edit",
|
|
2698
2699
|
"replace",
|
|
@@ -3724,7 +3725,7 @@ var VERIFY_AGENTS = [
|
|
|
3724
3725
|
id: "e2e",
|
|
3725
3726
|
name: "E2E",
|
|
3726
3727
|
role: "e2e",
|
|
3727
|
-
tools: [...TOOLS.build, "fetch", ...SPECIALIST_TOOLS.browser],
|
|
3728
|
+
tools: [...TOOLS.build, "fetch", "e2e_plan", ...SPECIALIST_TOOLS.browser],
|
|
3728
3729
|
prompt: agentPrompt("e2e")
|
|
3729
3730
|
},
|
|
3730
3731
|
budget: HEAVY_BUDGET,
|
|
@@ -4237,7 +4238,7 @@ var DOMAIN_AGENTS = [
|
|
|
4237
4238
|
id: "designer",
|
|
4238
4239
|
name: "Designer",
|
|
4239
4240
|
role: "designer",
|
|
4240
|
-
tools: [...TOOLS.docs],
|
|
4241
|
+
tools: [...TOOLS.docs, "design"],
|
|
4241
4242
|
prompt: agentPrompt("designer")
|
|
4242
4243
|
},
|
|
4243
4244
|
budget: MEDIUM_BUDGET,
|
package/dist/execution/index.js
CHANGED
|
@@ -14031,6 +14031,7 @@ var TOOLS = {
|
|
|
14031
14031
|
"glob",
|
|
14032
14032
|
"search",
|
|
14033
14033
|
"tree",
|
|
14034
|
+
"diff",
|
|
14034
14035
|
"write",
|
|
14035
14036
|
"edit",
|
|
14036
14037
|
"replace",
|
|
@@ -15062,7 +15063,7 @@ var VERIFY_AGENTS = [
|
|
|
15062
15063
|
id: "e2e",
|
|
15063
15064
|
name: "E2E",
|
|
15064
15065
|
role: "e2e",
|
|
15065
|
-
tools: [...TOOLS.build, "fetch", ...SPECIALIST_TOOLS.browser],
|
|
15066
|
+
tools: [...TOOLS.build, "fetch", "e2e_plan", ...SPECIALIST_TOOLS.browser],
|
|
15066
15067
|
prompt: agentPrompt("e2e")
|
|
15067
15068
|
},
|
|
15068
15069
|
budget: HEAVY_BUDGET,
|
|
@@ -15575,7 +15576,7 @@ var DOMAIN_AGENTS = [
|
|
|
15575
15576
|
id: "designer",
|
|
15576
15577
|
name: "Designer",
|
|
15577
15578
|
role: "designer",
|
|
15578
|
-
tools: [...TOOLS.docs],
|
|
15579
|
+
tools: [...TOOLS.docs, "design"],
|
|
15579
15580
|
prompt: agentPrompt("designer")
|
|
15580
15581
|
},
|
|
15581
15582
|
budget: MEDIUM_BUDGET,
|
package/dist/index.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ export { runProviderWithRetry } from './core/provider-runner.js';
|
|
|
60
60
|
export { buildQueuedMessagesBlock, consumeQueuedMessagesUpdate, peekQueuedMessages, setQueuedMessagesSnapshot, } from './core/queued-messages.js';
|
|
61
61
|
export { extractRunEnv, type RunEnv } from './core/run-env.js';
|
|
62
62
|
export { DefaultSystemPromptBuilder, type DefaultSystemPromptBuilderOptions, LAYER_1_IDENTITY, SYSTEM_BLOCK_SOURCE, type SystemBlockSource, } from './core/system-prompt-builder.js';
|
|
63
|
-
export { type
|
|
63
|
+
export { type DomainGlossaryOptions, renderDomainGlossary, } from './core/system-prompt-glossary.js';
|
|
64
64
|
export * from './defaults/index.js';
|
|
65
65
|
export { AutoCompactionMiddleware, type CompactorOptions, type CompactorStrategy, createStrategyCompactor, HybridCompactor, IntelligentCompactor, type IntelligentCompactorOptions, installSubagentAutoCompaction, SelectiveCompactor, type SelectiveCompactorOptions, type StrategyCompactorOptions, } from './defaults/index.js';
|
|
66
66
|
export { type AutonomyBrainOptions, type BrainAutoRisk, type BrainLlmTarget, buildBrainUserMessage, completeBrainLlm, createAutonomyBrain, createTieredBrainArbiter, formatDecisionSummary, parseOptionDecision, type TieredBrainArbiterOptions, } from './execution/autonomy-brain.js';
|