@wrongstack/core 0.306.4 → 0.307.1
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/chronicle/index.js +957 -953
- package/dist/chronicle/metrics-ingest.d.ts +55 -0
- package/dist/chronicle/metrics-schema.d.ts +86 -0
- package/dist/chronicle/metrics-store.d.ts +5 -120
- package/dist/chronicle/project-server.js +1083 -1084
- package/dist/chronicle/sqlite-journal-quota.d.ts +39 -0
- package/dist/chronicle/sqlite-journal-schema.d.ts +25 -0
- package/dist/chronicle/sqlite-journal.d.ts +12 -177
- package/dist/coordination/agents/index.js +1803 -1701
- package/dist/coordination/agents/project-agent-capture.d.ts +48 -0
- package/dist/coordination/agents/project-agent-identity.d.ts +3 -129
- package/dist/coordination/agents/project-agent-roster.d.ts +17 -0
- package/dist/coordination/agents/types.d.ts +6 -9
- package/dist/coordination/index.js +6051 -5880
- package/dist/coordination/mail-tools.d.ts +1 -1
- package/dist/coordination/mailbox-http-actor-query.d.ts +16 -0
- package/dist/coordination/mailbox-http-router.d.ts +0 -48
- package/dist/coordination/mailbox-http-sse.d.ts +12 -0
- package/dist/coordination/mailbox-message-types.d.ts +71 -0
- package/dist/coordination/mailbox-predicates.d.ts +13 -0
- package/dist/coordination/mailbox-project-server.js +1 -1
- package/dist/coordination/mailbox-session-sync.d.ts +8 -0
- package/dist/coordination/mailbox-types.d.ts +6 -793
- package/dist/core/agent-loop-context.d.ts +28 -0
- package/dist/core/agent-loop-detector.d.ts +25 -0
- package/dist/core/fallback-doctor.d.ts +72 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +1859 -1335
- package/dist/defaults/index.js +3647 -3559
- package/dist/execution/autonomy-brain-llm.d.ts +55 -0
- package/dist/execution/autonomy-brain.d.ts +3 -156
- package/dist/execution/compaction-budget.d.ts +38 -0
- package/dist/execution/compaction-core.d.ts +3 -170
- package/dist/execution/compaction-elision.d.ts +58 -0
- package/dist/execution/council-orchestrator-helpers.d.ts +39 -0
- package/dist/execution/council-orchestrator.d.ts +3 -42
- package/dist/execution/council-response-parser.d.ts +56 -0
- package/dist/execution/index.js +2475 -2449
- package/dist/execution/prompt-enhancer.js +11 -3
- package/dist/execution/tool-executor-guard.d.ts +18 -0
- package/dist/execution/tool-executor-runner.d.ts +12 -0
- package/dist/execution/tool-executor.d.ts +0 -75
- package/dist/goal/index.js +19 -6
- package/dist/hq/index.js +8 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8021 -7405
- package/dist/infrastructure/index.js +3 -1
- package/dist/kernel/events/agent-events.d.ts +2 -0
- package/dist/kernel/events/provider-events.d.ts +13 -0
- package/dist/plugin/index.js +2590 -2561
- package/dist/plugins/auto-review-config.d.ts +53 -0
- package/dist/plugins/auto-review-git.d.ts +19 -0
- package/dist/plugins/auto-review-plugin.d.ts +2 -140
- package/dist/plugins/review-finding-verification.d.ts +7 -0
- package/dist/prompts/index.d.ts +1 -0
- package/dist/prompts/index.js +601 -0
- package/dist/prompts/prompt-journal.d.ts +103 -0
- package/dist/security/index.js +627 -652
- package/dist/security/permission-explain.d.ts +19 -0
- package/dist/security/permission-policy.d.ts +0 -101
- package/dist/security/yolo-risk.d.ts +5 -4
- package/dist/session-catalog/index.js +220 -212
- package/dist/session-catalog/project-server.js +227 -219
- package/dist/session-catalog/store-rebuild.d.ts +9 -0
- package/dist/session-catalog/store-schema.d.ts +48 -0
- package/dist/session-catalog/store.d.ts +0 -17
- package/dist/storage/director-state.d.ts +6 -0
- package/dist/storage/file-session-writer.d.ts +2 -58
- package/dist/storage/index.d.ts +2 -1
- package/dist/storage/index.js +2057 -1925
- package/dist/storage/orphan-lock-cleaner.d.ts +15 -0
- package/dist/storage/queue-store.d.ts +6 -0
- package/dist/storage/session-recovery.d.ts +9 -0
- package/dist/storage/session-store/rename-session.d.ts +16 -0
- package/dist/storage/session-store/resume-session.d.ts +26 -0
- package/dist/storage/session-store/session-store-clear.d.ts +11 -0
- package/dist/storage/session-store/session-store-index.d.ts +13 -0
- package/dist/storage/session-store.d.ts +1 -129
- package/dist/storage/session-summary-tracker.d.ts +39 -0
- package/dist/storage/session-write-buffer.d.ts +43 -0
- package/dist/storage/session-writer/session-writer-flush.d.ts +4 -0
- package/dist/storage/session-writer/session-writer-summary-tracker.d.ts +28 -0
- package/dist/tools/fallback-agent-model-assign-tool.d.ts +18 -0
- package/dist/tools/fallback-leader-model-set-tool.d.ts +18 -0
- package/dist/tools/fallback-manage-tools.d.ts +8 -45
- package/dist/tools/fallback-profile-manage-tool.d.ts +16 -0
- package/dist/tools/fallback-provider-key-set-tool.d.ts +17 -0
- package/dist/tools/fallback-provider-manage-tool.d.ts +26 -0
- package/dist/tools/index.js +5124 -5071
- package/dist/types/config/root.d.ts +7 -2
- package/dist/types/default-config.d.ts +1 -1
- package/dist/types/index.d.ts +54 -55
- package/dist/types/index.js +953 -932
- package/dist/types/runtime-capability-manifest.d.ts +5 -5
- package/dist/types/session-markers.d.ts +12 -0
- package/dist/types/session-markers.js +19 -0
- package/dist/worktree/worktree-manager.d.ts +1 -1
- package/instructions/agents/architect.md +2 -0
- package/instructions/agents/code-reviewer.md +1 -0
- package/instructions/agents/debugger.md +2 -0
- package/instructions/agents/executor.md +2 -0
- package/instructions/agents/explore.md +3 -1
- package/instructions/agents/refactor.md +2 -0
- package/instructions/agents/reviewer.md +1 -0
- package/instructions/coordination/subagent-baseline.md +68 -7
- package/instructions/llm/prompt-enhancer.md +2 -1
- package/instructions/sections/tool/common-patterns.md +30 -0
- package/instructions/sections/tool/delegation-compact.md +3 -1
- package/instructions/sections/tool/delegation-full.md +5 -1
- package/instructions/system-lite.md +32 -4
- package/instructions/system-pro.md +63 -9
- package/instructions/system.md +56 -11
- package/package.json +9 -5
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type ConsolidationMetadata } from './project-agent-consolidation.js';
|
|
2
|
+
import type { LearnedCaptureResult } from './project-agent-identity-types.js';
|
|
3
|
+
import { type ProjectAgentLearningPolicy } from './project-agent-learning-policy.js';
|
|
4
|
+
import { type StructuredLearnedEntry } from './project-agent-learning-structured.js';
|
|
5
|
+
export declare function loadProjectAgentLearned(role: string, projectRoot?: string): string;
|
|
6
|
+
export declare function listProjectAgentLearnedEntries(role: string, projectRoot?: string): string[];
|
|
7
|
+
export declare function parseStructuredLearnedEntries(role: string, projectRoot?: string): StructuredLearnedEntry[];
|
|
8
|
+
export declare function resolveCaptureKey(role: string, projectRoot?: string): string;
|
|
9
|
+
export declare function canCaptureNewLearned(role: string, _existingSize: number, isManual: boolean, projectRoot?: string): string | undefined;
|
|
10
|
+
export interface ProjectAgentLearnStats {
|
|
11
|
+
role: string;
|
|
12
|
+
exists: boolean;
|
|
13
|
+
entryCount: number;
|
|
14
|
+
totalBytes: number;
|
|
15
|
+
lastCapture: string | null;
|
|
16
|
+
lastCaptureTimestamp: number | null;
|
|
17
|
+
cooldownRemainingMs: number;
|
|
18
|
+
sessionCaptureCount: number;
|
|
19
|
+
needsSummarization: boolean;
|
|
20
|
+
learnedPath: string | null;
|
|
21
|
+
identityPath: string | null;
|
|
22
|
+
hasIdentity: boolean;
|
|
23
|
+
hasConfig: boolean;
|
|
24
|
+
hasKnowledge: boolean;
|
|
25
|
+
learningEnabled: boolean;
|
|
26
|
+
lifetimeCaptureCount: number;
|
|
27
|
+
lastCaptureSource: ProjectAgentLearningPolicy['lastCaptureSource'] | null;
|
|
28
|
+
isConsolidated: boolean;
|
|
29
|
+
consolidation?: ConsolidationMetadata | undefined;
|
|
30
|
+
skills: string[];
|
|
31
|
+
skilledEntryCount: number;
|
|
32
|
+
appliedEntryCount: number;
|
|
33
|
+
deadEntryCount: number;
|
|
34
|
+
directiveHitRate: number | null;
|
|
35
|
+
}
|
|
36
|
+
export declare function getProjectAgentLearnStats(role: string, projectRoot?: string): ProjectAgentLearnStats;
|
|
37
|
+
export declare function detectLearnedConflicts(projectRoot?: string): Array<{
|
|
38
|
+
roleA: string;
|
|
39
|
+
roleB: string;
|
|
40
|
+
snippetA: string;
|
|
41
|
+
snippetB: string;
|
|
42
|
+
similarity: number;
|
|
43
|
+
detectedAt: string;
|
|
44
|
+
}>;
|
|
45
|
+
export declare function captureLearnedFromAgentOutput(output: string, role: string, projectRoot?: string, isManual?: boolean): number;
|
|
46
|
+
export declare function captureLearnedFromAgentOutputDetailed(output: string, role: string, projectRoot?: string, isManual?: boolean): LearnedCaptureResult;
|
|
47
|
+
export declare function hintLearnedNeedsSummarization(role: string, projectRoot?: string): string;
|
|
48
|
+
//# sourceMappingURL=project-agent-capture.d.ts.map
|
|
@@ -18,12 +18,8 @@
|
|
|
18
18
|
* knowledge.md — current-needs checklist (what versions to verify today)
|
|
19
19
|
*/
|
|
20
20
|
import { existsSync } from 'node:fs';
|
|
21
|
-
import type { SubagentConfig } from '../../types/multi-agent.js';
|
|
22
21
|
import { CAPTURE_COOLDOWN_MS, CAPTURE_MAX_PER_SESSION } from './project-agent-capture-window.js';
|
|
23
|
-
import {
|
|
24
|
-
import type { LearnedCaptureResult, ProjectAgentConfig, RoleKnowledgeManifest } from './project-agent-identity-types.js';
|
|
25
|
-
import { type ProjectAgentLearningPolicy } from './project-agent-learning-policy.js';
|
|
26
|
-
import { type StructuredLearnedEntry } from './project-agent-learning-structured.js';
|
|
22
|
+
import type { RoleKnowledgeManifest } from './project-agent-identity-types.js';
|
|
27
23
|
export { type AutoOptimizeDecision, type AutoOptimizeEvent, type AutoOptimizePolicy, type AutoOptimizePolicyOverrides, DEFAULT_AUTO_OPTIMIZE_POLICY, evaluateAutoOptimize, LearningOptimizationScheduler, type LearningOptimizationSchedulerOptions, resolveAutoOptimizePolicy, } from './project-agent-auto-optimize.js';
|
|
28
24
|
export { CAPTURE_SESSION_WINDOW_MS, resetCaptureWindow, resetCaptureWindows, } from './project-agent-capture-window.js';
|
|
29
25
|
export { loadProjectAgentConfig } from './project-agent-config-io.js';
|
|
@@ -42,26 +38,14 @@ export { buildSkillDistillInstruction, clearProjectSkillAugmentation, DEFAULT_EA
|
|
|
42
38
|
export { CAPTURE_COOLDOWN_MS, CAPTURE_MAX_PER_SESSION };
|
|
43
39
|
export { listProjectAgentRoles, refreshProjectAgentIdentity, resetProjectAgentIdentity, updateProjectAgentConfig, updateProjectAgentIdentity, updateProjectAgentKnowledge, updateProjectAgentLearned, } from './project-agent-files.js';
|
|
44
40
|
export { createProjectAgent, loadProjectAgentProfile, slugifyProjectAgentRole, } from './project-agent-profile.js';
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
* project-created roles, so WebUI changes take effect on the next spawn without
|
|
48
|
-
* rebuilding the Director. Built-in roles keep their safety floors; custom
|
|
49
|
-
* roles may opt into a deliberately narrow runtime.
|
|
50
|
-
*/
|
|
51
|
-
export declare function createProjectAgentRoster(baseRoster: Record<string, SubagentConfig>, projectRoot?: string): Record<string, SubagentConfig>;
|
|
41
|
+
export { applyProjectAgentConfig, createProjectAgentRoster, } from './project-agent-roster.js';
|
|
42
|
+
export { canCaptureNewLearned, captureLearnedFromAgentOutput, captureLearnedFromAgentOutputDetailed, detectLearnedConflicts, getProjectAgentLearnStats, hintLearnedNeedsSummarization, listProjectAgentLearnedEntries, loadProjectAgentLearned, parseStructuredLearnedEntries, type ProjectAgentLearnStats, } from './project-agent-capture.js';
|
|
52
43
|
/**
|
|
53
44
|
* Load the project-level identity appendix for a given role.
|
|
54
45
|
* Appended to the subagent prompt after the base role prompt and policy.
|
|
55
46
|
* Returns the empty string when no identity file exists.
|
|
56
47
|
*/
|
|
57
48
|
export declare function loadProjectAgentIdentity(role: string, projectRoot?: string): string;
|
|
58
|
-
/**
|
|
59
|
-
* Load the learning-derived wisdom for a given role.
|
|
60
|
-
* Appended to the subagent prompt as a "knowledge from past sessions" block.
|
|
61
|
-
* The learning file is auto-generated by the `memory-curator` or
|
|
62
|
-
* `self-improving` agent roles and contains de-duplicated, curated findings.
|
|
63
|
-
*/
|
|
64
|
-
export declare function loadProjectAgentLearned(role: string, projectRoot?: string): string;
|
|
65
49
|
/**
|
|
66
50
|
* Load the current-knowledge checklist for a given role.
|
|
67
51
|
* Returns the built-in directive if no project override exists.
|
|
@@ -69,13 +53,6 @@ export declare function loadProjectAgentLearned(role: string, projectRoot?: stri
|
|
|
69
53
|
* before answering questions in its domain.
|
|
70
54
|
*/
|
|
71
55
|
export declare function loadRoleKnowledgeManifest(role: string, projectRoot?: string): RoleKnowledgeManifest | undefined;
|
|
72
|
-
/**
|
|
73
|
-
* Merge a project agent config onto a base `SubagentConfig`.
|
|
74
|
-
* Returns a new config; does not mutate either input.
|
|
75
|
-
*/
|
|
76
|
-
export declare function applyProjectAgentConfig(base: SubagentConfig, projectConfig: ProjectAgentConfig | undefined, options?: {
|
|
77
|
-
protectSystemRole?: boolean | undefined;
|
|
78
|
-
}): SubagentConfig;
|
|
79
56
|
/**
|
|
80
57
|
* Build the full project-contextualized prompt for a given role.
|
|
81
58
|
*
|
|
@@ -89,108 +66,5 @@ export declare function applyProjectAgentConfig(base: SubagentConfig, projectCon
|
|
|
89
66
|
export declare function buildProjectContextualizedPrompt(basePrompt: string, role: string, projectRoot?: string, options?: {
|
|
90
67
|
identityOverride?: string | undefined;
|
|
91
68
|
}): string;
|
|
92
|
-
/**
|
|
93
|
-
* Check whether a new capture is allowed for this role. Returns a rejection
|
|
94
|
-
* reason string when blocked, or undefined when capture may proceed.
|
|
95
|
-
*
|
|
96
|
-
* `existingSize` is accepted for call-site compatibility but no longer gates
|
|
97
|
-
* anything: an over-budget buffer is now trimmed at write time
|
|
98
|
-
* (`enforceLearnedBudget`) instead of blocking every future capture. The old
|
|
99
|
-
* size gate had no self-clearing path, so the roles with the most learning
|
|
100
|
-
* were the ones that had silently stopped learning.
|
|
101
|
-
*/
|
|
102
|
-
export declare function canCaptureNewLearned(role: string, _existingSize: number, isManual: boolean, projectRoot?: string): string | undefined;
|
|
103
|
-
/**
|
|
104
|
-
* Per-role learning stats for monitoring UIs.
|
|
105
|
-
*/
|
|
106
|
-
export interface ProjectAgentLearnStats {
|
|
107
|
-
role: string;
|
|
108
|
-
exists: boolean;
|
|
109
|
-
entryCount: number;
|
|
110
|
-
totalBytes: number;
|
|
111
|
-
lastCapture: string | null;
|
|
112
|
-
lastCaptureTimestamp: number | null;
|
|
113
|
-
cooldownRemainingMs: number;
|
|
114
|
-
sessionCaptureCount: number;
|
|
115
|
-
needsSummarization: boolean;
|
|
116
|
-
learnedPath: string | null;
|
|
117
|
-
identityPath: string | null;
|
|
118
|
-
hasIdentity: boolean;
|
|
119
|
-
hasConfig: boolean;
|
|
120
|
-
hasKnowledge: boolean;
|
|
121
|
-
learningEnabled: boolean;
|
|
122
|
-
lifetimeCaptureCount: number;
|
|
123
|
-
lastCaptureSource: ProjectAgentLearningPolicy['lastCaptureSource'] | null;
|
|
124
|
-
/** Whether a consolidated document exists for this role. */
|
|
125
|
-
isConsolidated: boolean;
|
|
126
|
-
/** Consolidation metadata, if a consolidation has been performed. */
|
|
127
|
-
consolidation?: ConsolidationMetadata | undefined;
|
|
128
|
-
/** Skills this project has developed a dedicated addendum for. */
|
|
129
|
-
skills: string[];
|
|
130
|
-
/** Directives already routed to a skill and awaiting distillation. */
|
|
131
|
-
skilledEntryCount: number;
|
|
132
|
-
/**
|
|
133
|
-
* How the buffer is actually performing, not just how big it is.
|
|
134
|
-
*
|
|
135
|
-
* `lifetimeCaptureCount` measures volume, which says nothing about whether
|
|
136
|
-
* the role is learning the right things. These three do:
|
|
137
|
-
* `provenEntryCount` is directives with a real track record, `deadEntryCount`
|
|
138
|
-
* is directives that have never been exercised at all (a high share means the
|
|
139
|
-
* agent is writing things nobody uses), and `directiveHitRate` is the share
|
|
140
|
-
* of applications that ended in a successful task.
|
|
141
|
-
*/
|
|
142
|
-
appliedEntryCount: number;
|
|
143
|
-
deadEntryCount: number;
|
|
144
|
-
/** `null` until at least one directive has been exercised. */
|
|
145
|
-
directiveHitRate: number | null;
|
|
146
|
-
}
|
|
147
|
-
export declare function getProjectAgentLearnStats(role: string, projectRoot?: string): ProjectAgentLearnStats;
|
|
148
|
-
/**
|
|
149
|
-
* Re-export existsSync so callers can check file existence without importing fs.
|
|
150
|
-
*/
|
|
151
69
|
export { existsSync };
|
|
152
|
-
/**
|
|
153
|
-
* Detect semantic conflicts between different roles' learned wisdom.
|
|
154
|
-
* Returns entries where token overlap ≥ 0.60, which suggests the two
|
|
155
|
-
* roles have learned about the same topic — potentially contradicting.
|
|
156
|
-
*/
|
|
157
|
-
export declare function detectLearnedConflicts(projectRoot?: string): Array<{
|
|
158
|
-
roleA: string;
|
|
159
|
-
roleB: string;
|
|
160
|
-
snippetA: string;
|
|
161
|
-
snippetB: string;
|
|
162
|
-
similarity: number;
|
|
163
|
-
detectedAt: string;
|
|
164
|
-
}>;
|
|
165
|
-
export declare function listProjectAgentLearnedEntries(role: string, projectRoot?: string): string[];
|
|
166
|
-
export declare function parseStructuredLearnedEntries(role: string, projectRoot?: string): StructuredLearnedEntry[];
|
|
167
|
-
/**
|
|
168
|
-
* Learned-wisdom capture from agent output.
|
|
169
|
-
*
|
|
170
|
-
* Scans `output` for `## LEARNED` blocks and persists each unique,
|
|
171
|
-
* quality-passing block to the role's `learned.md`. Each block is run
|
|
172
|
-
* through `normalizeLearnedEntry` so the buffer only accumulates instructive
|
|
173
|
-
* directives — narrative session logs are rejected at capture time. Near-
|
|
174
|
-
* duplicate entries (token overlap ≥ 0.55) are silently skipped.
|
|
175
|
-
*
|
|
176
|
-
* When the resulting file would exceed `LEARNED_HARD_LIMIT` (16 KB)
|
|
177
|
-
* the oldest entries are rotated out before writing.
|
|
178
|
-
*
|
|
179
|
-
* @returns the number of **new** items actually persisted (0 if none).
|
|
180
|
-
*/
|
|
181
|
-
export declare function captureLearnedFromAgentOutput(output: string, role: string, projectRoot?: string, isManual?: boolean): number;
|
|
182
|
-
export declare function captureLearnedFromAgentOutputDetailed(output: string, role: string, projectRoot?: string, isManual?: boolean): LearnedCaptureResult;
|
|
183
|
-
/**
|
|
184
|
-
* Signal the host that a background summarisation pass is warranted.
|
|
185
|
-
* Called by `captureLearnedFromAgentOutput` when the **new** learned size
|
|
186
|
-
* crosses `LEARNED_SOFT_LIMIT`. The host is responsible for scheduling a
|
|
187
|
-
* low-priority consolidation task (typically via the Brain or a shadow agent).
|
|
188
|
-
*
|
|
189
|
-
* The summary _mechanism_ is intentionally shallow here — the real
|
|
190
|
-
* summarisation is an LLM call that should run as a deferred, uncritical
|
|
191
|
-
* fleet task so it never blocks a user-facing operation.
|
|
192
|
-
*
|
|
193
|
-
* @returns a summary brief for the host, or '' when no action is needed.
|
|
194
|
-
*/
|
|
195
|
-
export declare function hintLearnedNeedsSummarization(role: string, projectRoot?: string): string;
|
|
196
70
|
//# sourceMappingURL=project-agent-identity.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { SubagentConfig } from '../../types/multi-agent.js';
|
|
2
|
+
import type { ProjectAgentConfig } from './project-agent-identity-types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Merge a project agent config onto a base `SubagentConfig`.
|
|
5
|
+
* Returns a new config; does not mutate either input.
|
|
6
|
+
*/
|
|
7
|
+
export declare function applyProjectAgentConfig(base: SubagentConfig, projectConfig: ProjectAgentConfig | undefined, options?: {
|
|
8
|
+
protectSystemRole?: boolean | undefined;
|
|
9
|
+
}): SubagentConfig;
|
|
10
|
+
/**
|
|
11
|
+
* Live roster overlay. Project policy is resolved lazily for both built-in and
|
|
12
|
+
* project-created roles, so WebUI changes take effect on the next spawn without
|
|
13
|
+
* rebuilding the Director. Built-in roles keep their safety floors; custom
|
|
14
|
+
* roles may opt into a deliberately narrow runtime.
|
|
15
|
+
*/
|
|
16
|
+
export declare function createProjectAgentRoster(baseRoster: Record<string, SubagentConfig>, projectRoot?: string): Record<string, SubagentConfig>;
|
|
17
|
+
//# sourceMappingURL=project-agent-roster.d.ts.map
|
|
@@ -77,20 +77,17 @@ export interface AgentDefinition {
|
|
|
77
77
|
export declare const LIGHT_BUDGET: AgentBudgetTier;
|
|
78
78
|
export declare const MEDIUM_BUDGET: AgentBudgetTier;
|
|
79
79
|
export declare const HEAVY_BUDGET: AgentBudgetTier;
|
|
80
|
-
/**
|
|
81
|
-
* Tool allowlist presets. Agents pass the smallest set that covers their job —
|
|
82
|
-
* a planning agent should not hold `write`/`bash`, a reviewer should be
|
|
83
|
-
* read-only. Spread + extend per-agent where a role needs one extra tool.
|
|
84
|
-
*/
|
|
85
80
|
export declare const TOOLS: {
|
|
81
|
+
/** Index-backed code discovery. Spread onto code-facing presets, not browser. */
|
|
82
|
+
readonly index: readonly ["codebase-stats", "codebase-search", "codebase-skeleton", "codebase-repo-map", "codebase-incoming-calls", "codebase-outgoing-calls"];
|
|
86
83
|
/** Pure read/inspect — safe for analysis and review agents. */
|
|
87
84
|
readonly read: readonly ["read", "grep", "glob", "search", "tree", "mailbox"];
|
|
88
85
|
/** Read + structured inspection (logs, diffs, json, dependency audit). */
|
|
89
|
-
readonly inspect: readonly ["read", "grep", "glob", "search", "tree", "json", "diff", "logs", "audit", "mailbox"];
|
|
86
|
+
readonly inspect: readonly ["read", "grep", "glob", "search", "tree", "codebase-stats", "codebase-search", "codebase-skeleton", "codebase-repo-map", "codebase-incoming-calls", "codebase-outgoing-calls", "json", "diff", "logs", "audit", "mailbox"];
|
|
90
87
|
/** Read + edit (no shell). For agents that write code/docs but don't run it. */
|
|
91
|
-
readonly write: readonly ["read", "grep", "glob", "search", "tree", "write", "edit", "replace", "patch", "mailbox"];
|
|
88
|
+
readonly write: readonly ["read", "grep", "glob", "search", "tree", "codebase-stats", "codebase-search", "codebase-skeleton", "codebase-repo-map", "codebase-incoming-calls", "codebase-outgoing-calls", "codebase-impact-analysis", "codebase-ast-replace", "codebase-invariant-check", "write", "edit", "replace", "patch", "mailbox"];
|
|
92
89
|
/** Full build loop: edit + run (lint/format/typecheck/test/bash). */
|
|
93
|
-
readonly build: readonly ["read", "grep", "glob", "search", "tree", "diff", "write", "edit", "replace", "patch", "bash", "exec", "lint", "format", "typecheck", "test", "mailbox"];
|
|
90
|
+
readonly build: readonly ["read", "grep", "glob", "search", "tree", "codebase-stats", "codebase-search", "codebase-skeleton", "codebase-repo-map", "codebase-incoming-calls", "codebase-outgoing-calls", "codebase-impact-analysis", "codebase-ast-replace", "codebase-invariant-check", "codebase-targeted-test", "diff", "write", "edit", "replace", "patch", "bash", "exec", "lint", "format", "typecheck", "test", "mailbox"];
|
|
94
91
|
/**
|
|
95
92
|
* Version control.
|
|
96
93
|
*
|
|
@@ -104,7 +101,7 @@ export declare const TOOLS: {
|
|
|
104
101
|
/** Dependency management + CVE audit. */
|
|
105
102
|
readonly deps: readonly ["read", "grep", "glob", "install", "outdated", "audit", "json", "mailbox"];
|
|
106
103
|
/** Documentation authoring. */
|
|
107
|
-
readonly docs: readonly ["read", "grep", "glob", "search", "tree", "write", "edit", "document", "mailbox"];
|
|
104
|
+
readonly docs: readonly ["read", "grep", "glob", "search", "tree", "codebase-stats", "codebase-search", "codebase-skeleton", "codebase-repo-map", "codebase-incoming-calls", "codebase-outgoing-calls", "write", "edit", "document", "mailbox"];
|
|
108
105
|
/** Web research. */
|
|
109
106
|
readonly research: readonly ["read", "grep", "glob", "search", "fetch", "mailbox"];
|
|
110
107
|
};
|