@wrongstack/core 0.2.0 → 0.3.2
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-bridge-DmBiCipY.d.ts → agent-bridge-C3DUGjSb.d.ts} +1 -1
- package/dist/{compactor-DSl2FK7a.d.ts → compactor-DpJBI1YH.d.ts} +8 -2
- package/dist/{config-DXrqb41m.d.ts → config-D2qvAxVd.d.ts} +39 -2
- package/dist/{context-u0bryklF.d.ts → context-IovtuTf8.d.ts} +2 -0
- package/dist/coordination/index.d.ts +11 -11
- package/dist/coordination/index.js +307 -245
- package/dist/coordination/index.js.map +1 -1
- package/dist/defaults/index.d.ts +30 -15
- package/dist/defaults/index.js +1077 -479
- package/dist/defaults/index.js.map +1 -1
- package/dist/{events-B6Q03pTu.d.ts → events-BHIQs4o1.d.ts} +34 -1
- package/dist/execution/index.d.ts +17 -14
- package/dist/execution/index.js +166 -18
- package/dist/execution/index.js.map +1 -1
- package/dist/extension/index.d.ts +9 -0
- package/dist/extension/index.js +241 -0
- package/dist/extension/index.js.map +1 -0
- package/dist/{plugin-CoYYZKdn.d.ts → index-hWNybrNZ.d.ts} +368 -11
- package/dist/index.d.ts +76 -26
- package/dist/index.js +1595 -748
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/index.d.ts +6 -6
- package/dist/infrastructure/index.js +191 -20
- package/dist/infrastructure/index.js.map +1 -1
- package/dist/kernel/index.d.ts +12 -9
- package/dist/kernel/index.js +73 -7
- package/dist/kernel/index.js.map +1 -1
- package/dist/{mcp-servers-BA1Ofmfj.d.ts → mcp-servers-C2OopXOn.d.ts} +21 -5
- package/dist/models/index.d.ts +2 -2
- package/dist/models/index.js +24 -1
- package/dist/models/index.js.map +1 -1
- package/dist/{multi-agent-BDfkxL5C.d.ts → multi-agent-B9a6sflH.d.ts} +2 -2
- package/dist/observability/index.d.ts +2 -2
- package/dist/{path-resolver-Crkt8wTQ.d.ts → path-resolver--59rCou3.d.ts} +2 -2
- package/dist/provider-runner-B39miKRw.d.ts +36 -0
- package/dist/sdd/index.d.ts +3 -3
- package/dist/{secret-scrubber-3TLUkiCV.d.ts → secret-scrubber-CgG2tV2B.d.ts} +1 -1
- package/dist/{secret-scrubber-CwYliRWd.d.ts → secret-scrubber-Cuy5afaQ.d.ts} +1 -1
- package/dist/security/index.d.ts +3 -3
- package/dist/security/index.js +24 -1
- package/dist/security/index.js.map +1 -1
- package/dist/{selector-BRqzvugb.d.ts → selector-wT2fv9Fg.d.ts} +1 -1
- package/dist/{session-reader-C3x96CDR.d.ts → session-reader-CcPi4BQ8.d.ts} +1 -1
- package/dist/{skill-Bx8jxznf.d.ts → skill-C_7znCIC.d.ts} +2 -2
- package/dist/storage/index.d.ts +7 -6
- package/dist/storage/index.js +204 -14
- package/dist/storage/index.js.map +1 -1
- package/dist/{renderer-0A2ZEtca.d.ts → system-prompt-Dk1qm8ey.d.ts} +30 -2
- package/dist/{tool-executor-CYdZdtno.d.ts → tool-executor-HsBLGRaA.d.ts} +5 -5
- package/dist/types/index.d.ts +16 -16
- package/dist/types/index.js +230 -10
- package/dist/types/index.js.map +1 -1
- package/dist/utils/index.d.ts +23 -2
- package/dist/utils/index.js +117 -2
- package/dist/utils/index.js.map +1 -1
- package/package.json +5 -1
- package/dist/system-prompt-CG9jU5-5.d.ts +0 -31
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as BridgeTransport, l as BridgeMessage, A as AgentBridge, m as AgentBridgeConfig } from './multi-agent-B9a6sflH.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* In-memory pub/sub transport for agent-to-agent messaging.
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import { a0 as Context } from './context-
|
|
1
|
+
import { a0 as Context } from './context-IovtuTf8.js';
|
|
2
2
|
|
|
3
|
+
interface CompactRepairReport {
|
|
4
|
+
removedToolUses: string[];
|
|
5
|
+
removedToolResults: string[];
|
|
6
|
+
removedMessages: number;
|
|
7
|
+
}
|
|
3
8
|
interface CompactReport {
|
|
4
9
|
before: number;
|
|
5
10
|
after: number;
|
|
@@ -7,6 +12,7 @@ interface CompactReport {
|
|
|
7
12
|
phase: 'elision' | 'summary' | 'selective';
|
|
8
13
|
saved: number;
|
|
9
14
|
}[];
|
|
15
|
+
repaired?: CompactRepairReport;
|
|
10
16
|
}
|
|
11
17
|
interface Compactor {
|
|
12
18
|
compact(ctx: Context, opts?: {
|
|
@@ -14,4 +20,4 @@ interface Compactor {
|
|
|
14
20
|
}): Promise<CompactReport>;
|
|
15
21
|
}
|
|
16
22
|
|
|
17
|
-
export type {
|
|
23
|
+
export type { CompactReport as C, Compactor as a };
|
|
@@ -1,7 +1,44 @@
|
|
|
1
1
|
import { W as WireFamily } from './models-registry-Y2xbog0E.js';
|
|
2
|
-
import { P as Permission } from './context-
|
|
2
|
+
import { P as Permission } from './context-IovtuTf8.js';
|
|
3
|
+
|
|
4
|
+
type ContextWindowModeId = 'balanced' | 'frugal' | 'deep' | 'archival';
|
|
5
|
+
type ContextWindowAggressiveOn = 'hard' | 'soft' | 'warn';
|
|
6
|
+
interface ContextWindowThresholds {
|
|
7
|
+
warn: number;
|
|
8
|
+
soft: number;
|
|
9
|
+
hard: number;
|
|
10
|
+
}
|
|
11
|
+
interface ContextWindowMode {
|
|
12
|
+
id: ContextWindowModeId;
|
|
13
|
+
name: string;
|
|
14
|
+
description: string;
|
|
15
|
+
thresholds: ContextWindowThresholds;
|
|
16
|
+
aggressiveOn: ContextWindowAggressiveOn;
|
|
17
|
+
preserveK: number;
|
|
18
|
+
eliseThreshold: number;
|
|
19
|
+
targetLoad: number;
|
|
20
|
+
}
|
|
21
|
+
interface ContextWindowPolicy extends ContextWindowMode {
|
|
22
|
+
}
|
|
23
|
+
interface ContextWindowConfigLike {
|
|
24
|
+
mode?: ContextWindowModeId | string;
|
|
25
|
+
warnThreshold?: number;
|
|
26
|
+
softThreshold?: number;
|
|
27
|
+
hardThreshold?: number;
|
|
28
|
+
preserveK?: number;
|
|
29
|
+
eliseThreshold?: number;
|
|
30
|
+
}
|
|
31
|
+
declare const DEFAULT_CONTEXT_WINDOW_MODE_ID: ContextWindowModeId;
|
|
32
|
+
declare const CONTEXT_WINDOW_MODES: readonly ContextWindowMode[];
|
|
33
|
+
declare function listContextWindowModes(): ContextWindowMode[];
|
|
34
|
+
declare function getContextWindowMode(id: string | null | undefined): ContextWindowMode | null;
|
|
35
|
+
declare function isContextWindowModeId(id: string): id is ContextWindowModeId;
|
|
36
|
+
declare function resolveContextWindowPolicy(config?: ContextWindowConfigLike, overrideMode?: string | null): ContextWindowPolicy;
|
|
37
|
+
declare function formatContextWindowModeList(activeId?: string | null): string;
|
|
3
38
|
|
|
4
39
|
interface ContextConfig {
|
|
40
|
+
/** Context-window policy mode. Controls compaction thresholds and preservation depth. */
|
|
41
|
+
mode?: ContextWindowModeId;
|
|
5
42
|
warnThreshold: number;
|
|
6
43
|
softThreshold: number;
|
|
7
44
|
hardThreshold: number;
|
|
@@ -190,4 +227,4 @@ interface ConfigStore {
|
|
|
190
227
|
watch(cb: (next: Readonly<Config>, prev: Readonly<Config>) => void): () => void;
|
|
191
228
|
}
|
|
192
229
|
|
|
193
|
-
export
|
|
230
|
+
export { CONTEXT_WINDOW_MODES as C, DEFAULT_CONTEXT_WINDOW_MODE_ID as D, type FeaturesConfig as F, type LogConfig as L, type MCPServerConfig as M, type PluginConfig as P, type ToolsConfig as T, type Config as a, type ConfigLoader as b, type ConfigStore as c, type ContextConfig as d, type ContextWindowAggressiveOn as e, type ContextWindowConfigLike as f, type ContextWindowMode as g, type ContextWindowModeId as h, type ContextWindowPolicy as i, type ContextWindowThresholds as j, type ProviderApiKey as k, type ProviderConfig as l, formatContextWindowModeList as m, getContextWindowMode as n, isContextWindowModeId as o, listContextWindowModes as p, resolveContextWindowPolicy as r };
|
|
@@ -238,6 +238,8 @@ interface Tool<I = unknown, O = unknown> {
|
|
|
238
238
|
name: string;
|
|
239
239
|
description: string;
|
|
240
240
|
usageHint?: string;
|
|
241
|
+
/** Optional category for grouping in help lists and system prompts. */
|
|
242
|
+
category?: string;
|
|
241
243
|
inputSchema: JSONSchema;
|
|
242
244
|
permission: Permission;
|
|
243
245
|
mutating: boolean;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { M as MultiAgentConfig,
|
|
2
|
-
export {
|
|
3
|
-
import { q as SessionWriter, u as Tool, o as SessionStore } from '../context-
|
|
4
|
-
import { I as InMemoryAgentBridge } from '../agent-bridge-
|
|
5
|
-
export { a as InMemoryBridgeTransport, c as createMessage } from '../agent-bridge-
|
|
6
|
-
import { E as EventBus } from '../events-
|
|
1
|
+
import { M as MultiAgentConfig, i as SubagentRunner, c as SubagentConfig, k as TaskSpec, j as TaskResult, a as CoordinatorStatus, b as MultiAgentCoordinator, S as SpawnResult, l as BridgeMessage, A as AgentBridge } from '../multi-agent-B9a6sflH.js';
|
|
2
|
+
export { n as BudgetExceededError, o as BudgetKind, p as BudgetLimits, q as BudgetUsage, r as SubagentBudget } from '../multi-agent-B9a6sflH.js';
|
|
3
|
+
import { q as SessionWriter, u as Tool, o as SessionStore } from '../context-IovtuTf8.js';
|
|
4
|
+
import { I as InMemoryAgentBridge } from '../agent-bridge-C3DUGjSb.js';
|
|
5
|
+
export { a as InMemoryBridgeTransport, c as createMessage } from '../agent-bridge-C3DUGjSb.js';
|
|
6
|
+
import { E as EventBus } from '../events-BHIQs4o1.js';
|
|
7
7
|
import { EventEmitter } from 'node:events';
|
|
8
|
-
import {
|
|
8
|
+
import { r as Agent, u as AgentInput } from '../index-hWNybrNZ.js';
|
|
9
|
+
import '../logger-BMQgxvdy.js';
|
|
10
|
+
import '../system-prompt-Dk1qm8ey.js';
|
|
9
11
|
import '../observability-BhnVLBLS.js';
|
|
10
|
-
import '../
|
|
11
|
-
import '../
|
|
12
|
-
import '../config-DXrqb41m.js';
|
|
12
|
+
import '../secret-scrubber-CgG2tV2B.js';
|
|
13
|
+
import '../config-D2qvAxVd.js';
|
|
13
14
|
import '../models-registry-Y2xbog0E.js';
|
|
14
|
-
import '../logger-BMQgxvdy.js';
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Single fleet-wide event with subagent attribution. Whatever a child
|