@wrongstack/core 0.280.1 → 0.281.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/{agent-subagent-runner-PoqNKiR4.d.ts → agent-subagent-runner-DyOSK2Wy.d.ts} +39 -8
- package/dist/{compactor-U3agvUIG.d.ts → compactor-BxddyCFu.d.ts} +1 -1
- package/dist/{config-Cr3312zc.d.ts → config-CN-vdDEI.d.ts} +82 -2
- package/dist/coordination/index.d.ts +203 -20
- package/dist/coordination/index.js +981 -52
- package/dist/coordination/index.js.map +1 -1
- package/dist/defaults/index.d.ts +26 -30
- package/dist/defaults/index.js +382 -30
- package/dist/defaults/index.js.map +1 -1
- package/dist/{events-Bs2fmldo.d.ts → events-C5hLU0AT.d.ts} +38 -2
- package/dist/execution/index.d.ts +16 -16
- package/dist/execution/index.js +161 -18
- package/dist/execution/index.js.map +1 -1
- package/dist/execution/prompt-enhancer.d.ts +1 -1
- package/dist/execution/prompt-enhancer.js +12 -3
- package/dist/execution/prompt-enhancer.js.map +1 -1
- package/dist/extension/index.d.ts +6 -6
- package/dist/{global-mailbox-Ct7IorLJ.d.ts → global-mailbox-CHM1QkCi.d.ts} +5 -2
- package/dist/{goal-store-C4F6DjC0.d.ts → goal-store-BLGZq16t.d.ts} +1 -1
- package/dist/hq/index.d.ts +6 -6
- package/dist/hq/index.js +35 -13
- package/dist/hq/index.js.map +1 -1
- package/dist/{index-nP09-oP2.d.ts → index-BEFWNZYs.d.ts} +1 -2
- package/dist/{index-kidebiDh.d.ts → index-C1E-_71T.d.ts} +6 -6
- package/dist/index.d.ts +44 -48
- package/dist/index.js +14855 -13944
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/index.d.ts +60 -8
- package/dist/infrastructure/index.js.map +1 -1
- package/dist/kernel/index.d.ts +11 -11
- package/dist/kernel/index.js.map +1 -1
- package/dist/{mcp-servers-D910X5_r.d.ts → mcp-servers-EKRAcJDi.d.ts} +97 -4
- package/dist/models/index.d.ts +4 -5
- package/dist/models/index.js +22 -5
- package/dist/models/index.js.map +1 -1
- package/dist/{multi-agent-coordinator-CieyUoEL.d.ts → multi-agent-coordinator-IpHCuHUa.d.ts} +29 -1
- package/dist/{null-fleet-bus-DkdmZJ_W.d.ts → null-fleet-bus-ZBkKGR9j.d.ts} +105 -7
- package/dist/observability/index.d.ts +3 -3
- package/dist/{tool-executor-SiE1wlZo.d.ts → parallel-eternal-engine-Cc2CNgmv.d.ts} +6 -202
- package/dist/path-resolver-CMS5307d.d.ts +13 -0
- package/dist/{permission-Dx6dIqS2.d.ts → permission-B6YAtNFz.d.ts} +1 -1
- package/dist/{pipeline-BwAP21_4.d.ts → pipeline-E7_jqGyV.d.ts} +2 -2
- package/dist/{provider-model-resolve-CwQNZWt_.d.ts → provider-model-resolve-KgIdiEQ6.d.ts} +118 -5
- package/dist/{provider-runner-CYHFImzV.d.ts → provider-runner-DxWXNHL1.d.ts} +3 -3
- package/dist/{retry-policy-D4feSLk3.d.ts → retry-policy-V67lBOJz.d.ts} +2 -2
- package/dist/sdd/index.d.ts +9 -9
- package/dist/sdd/index.js +94 -10
- package/dist/sdd/index.js.map +1 -1
- package/dist/{permission-policy-C8vJcnX5.d.ts → secret-vault-D7jeyXUQ.d.ts} +119 -3
- package/dist/security/index.d.ts +5 -6
- package/dist/security/index.js +4 -1
- package/dist/security/index.js.map +1 -1
- package/dist/{selector-Dy-MzKp1.d.ts → selector-Bx2HgUkU.d.ts} +1 -1
- package/dist/{session-event-bridge-CqdiGnfU.d.ts → session-event-bridge-vA2fLV58.d.ts} +1 -1
- package/dist/{session-reader-Hk0WbNm9.d.ts → session-reader-B-Fi9L6I.d.ts} +1 -1
- package/dist/session-registry-Dvg7i_IA.d.ts +129 -0
- package/dist/storage/index.d.ts +71 -142
- package/dist/storage/index.js +161 -13
- package/dist/storage/index.js.map +1 -1
- package/dist/{todos-checkpoint-Bk2uP7Ex.d.ts → todos-checkpoint-B1QVkoa8.d.ts} +23 -5
- package/dist/{tool-BkOgs_KL.d.ts → tool-LVSLiE1s.d.ts} +18 -4
- package/dist/{strategy-compactor-CQwhbErd.d.ts → tool-executor-BWtYwuPI.d.ts} +210 -12
- package/dist/tools/index.d.ts +2 -2
- package/dist/tools/index.js.map +1 -1
- package/dist/types/index.d.ts +17 -41
- package/dist/types/index.js +182 -5085
- package/dist/types/index.js.map +1 -1
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +6 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/{worktree-manager-BjOFF6bt.d.ts → worktree-manager-C6CIilTT.d.ts} +1 -1
- package/dist/{wstack-paths-CMl_cYgq.d.ts → wstack-paths-C3K40Qst.d.ts} +2 -0
- package/instructions/agents/shadow-agent.md +23 -84
- package/instructions/coordination/director-preamble.md +12 -3
- package/instructions/coordination/subagent-baseline.md +39 -46
- package/instructions/leader-after-task.md +10 -28
- package/instructions/llm/llm-selector.md +1 -2
- package/instructions/modes/brief-system.md +7 -33
- package/instructions/modes/brief.md +5 -20
- package/instructions/modes/teach-system.md +12 -72
- package/instructions/modes/teach.md +12 -49
- package/instructions/sections/tool/commit-hygiene.md +5 -5
- package/instructions/sections/tool/context-management-full.md +6 -6
- package/instructions/sections/tool/delegation-compact.md +1 -1
- package/instructions/sections/tool/delegation-full.md +19 -23
- package/instructions/sections/tool/mailbox-full.md +11 -31
- package/instructions/sections/tool/mcp-full-control.md +5 -7
- package/instructions/sections/tool/mcp-full-use.md +7 -7
- package/instructions/system.md +22 -38
- package/package.json +1 -29
- package/dist/agent-bridge-DXC6QDJ4.d.ts +0 -35
- package/dist/logger-D3lV0cUZ.d.ts +0 -101
- package/dist/models-registry-CLkoOcHk.d.ts +0 -108
- package/dist/path-resolver-XfZ9eLxG.d.ts +0 -67
- package/dist/secret-vault-CImt2XrR.d.ts +0 -118
|
@@ -1,10 +1,62 @@
|
|
|
1
|
-
export { D as DefaultLogger,
|
|
2
|
-
export { D as DefaultPathResolver
|
|
3
|
-
|
|
1
|
+
export { C as ContextManagerAction, a as ContextManagerInput, b as ContextManagerResult, c as ContextManagerToolOptions, D as DefaultLogger, d as DefaultLoggerOptions, L as LogFormat, e as allServers, f as awsServer, g as blockServer, h as braveSearchServer, i as context7Server, j as contextManagerTool, k as createContextManagerTool, l as everArtServer, m as filesystemServer, n as githubServer, o as googleMapsServer, p as miniMaxVisionServer, q as playwrightServer, s as sentinelServer, r as slackServer, t as sshManagerServer, z as zaiVisionServer } from '../mcp-servers-EKRAcJDi.js';
|
|
2
|
+
export { D as DefaultPathResolver } from '../path-resolver-CMS5307d.js';
|
|
3
|
+
import { E as EventBus } from '../events-C5hLU0AT.js';
|
|
4
|
+
import { M as ModelsRegistry, R as ResolvedModel } from '../config-CN-vdDEI.js';
|
|
5
|
+
import { T as TokenCounter, U as Usage, C as CacheStats } from '../tool-LVSLiE1s.js';
|
|
6
|
+
import '../compactor-BxddyCFu.js';
|
|
4
7
|
import '../logger-B63L5bTg.js';
|
|
5
|
-
import '../events-Bs2fmldo.js';
|
|
6
|
-
import '../tool-BkOgs_KL.js';
|
|
7
|
-
import '../permission-Dx6dIqS2.js';
|
|
8
|
-
import '../config-Cr3312zc.js';
|
|
9
8
|
import '../path-resolver-CPRj4bFY.js';
|
|
10
|
-
import '../
|
|
9
|
+
import '../permission-B6YAtNFz.js';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Token counter that derives pricing from the ModelsRegistry instead of a
|
|
13
|
+
* hardcoded table. If a model is unknown to the registry (or the registry is
|
|
14
|
+
* unavailable) the counter still tracks token totals but reports zero cost.
|
|
15
|
+
*/
|
|
16
|
+
declare class DefaultTokenCounter implements TokenCounter {
|
|
17
|
+
private input;
|
|
18
|
+
private output;
|
|
19
|
+
private cacheRead;
|
|
20
|
+
private cacheWrite;
|
|
21
|
+
private costInput;
|
|
22
|
+
private costOutput;
|
|
23
|
+
private readonly registry?;
|
|
24
|
+
private readonly providerId?;
|
|
25
|
+
private readonly events?;
|
|
26
|
+
private sessionId?;
|
|
27
|
+
private priceCache;
|
|
28
|
+
/** Most recently accounted request's tokens. Used for per-request context pressure. */
|
|
29
|
+
private lastInput;
|
|
30
|
+
private lastCacheRead;
|
|
31
|
+
constructor(opts?: {
|
|
32
|
+
registry?: ModelsRegistry | undefined;
|
|
33
|
+
providerId?: string | undefined;
|
|
34
|
+
events?: EventBus | undefined;
|
|
35
|
+
sessionId?: string | (() => string | undefined) | undefined;
|
|
36
|
+
});
|
|
37
|
+
setSessionId(sessionId: string | (() => string | undefined) | undefined): void;
|
|
38
|
+
account(usage: Usage, model?: string): void;
|
|
39
|
+
/** Synchronous variant for code paths that have already resolved the model. */
|
|
40
|
+
accountWithModel(usage: Usage, resolved: ResolvedModel): void;
|
|
41
|
+
total(): Usage;
|
|
42
|
+
currentRequestTokens(): {
|
|
43
|
+
input: number;
|
|
44
|
+
cacheRead: number;
|
|
45
|
+
};
|
|
46
|
+
setCurrentRequestTokens(input: number, cacheRead?: number): void;
|
|
47
|
+
estimateCost(): {
|
|
48
|
+
input: number;
|
|
49
|
+
output: number;
|
|
50
|
+
total: number;
|
|
51
|
+
currency: 'USD';
|
|
52
|
+
};
|
|
53
|
+
cacheStats(): CacheStats;
|
|
54
|
+
/** Invalidate cached prices so the next account() call fetches fresh data. */
|
|
55
|
+
invalidateCache(): void;
|
|
56
|
+
private emitAccounted;
|
|
57
|
+
private currentSessionId;
|
|
58
|
+
reset(): void;
|
|
59
|
+
private applyPrice;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export { DefaultTokenCounter };
|