@wrongstack/core 0.275.0 → 0.276.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-D9JkPvJ0.d.ts → agent-bridge-D7A-eu3C.d.ts} +1 -1
- package/dist/{agent-subagent-runner-CArSFKFl.d.ts → agent-subagent-runner-CEuw4ATz.d.ts} +16 -10
- package/dist/{brain-DCkB5_e7.d.ts → brain-BLOyN5ZP.d.ts} +127 -1
- package/dist/{compactor-CzSvxM1g.d.ts → compactor-DcBpaJsI.d.ts} +1 -1
- package/dist/{config-BzFRKkg7.d.ts → config-Bf5mj-ad.d.ts} +20 -2
- package/dist/{context-BrLe8pJy.d.ts → context-CLnUMW5g.d.ts} +40 -2
- package/dist/coordination/index.d.ts +43 -24
- package/dist/coordination/index.js +849 -648
- package/dist/coordination/index.js.map +1 -1
- package/dist/defaults/index.d.ts +28 -28
- package/dist/defaults/index.js +1636 -845
- package/dist/defaults/index.js.map +1 -1
- package/dist/execution/index.d.ts +16 -16
- package/dist/execution/index.js +218 -49
- package/dist/execution/index.js.map +1 -1
- package/dist/execution/prompt-enhancer.d.ts +1 -1
- package/dist/extension/index.d.ts +7 -7
- package/dist/extension/index.js.map +1 -1
- package/dist/{global-mailbox-CXkugtNQ.d.ts → global-mailbox-Iqfkgmwu.d.ts} +3 -3
- package/dist/{goal-store-DUwdbdoY.d.ts → goal-store-DGb6b5Ed.d.ts} +1 -1
- package/dist/hq/index.d.ts +6 -6
- package/dist/hq/index.js +178 -75
- package/dist/hq/index.js.map +1 -1
- package/dist/{index-CtlizLTK.d.ts → index-Cn0NOshr.d.ts} +10 -5
- package/dist/{index-neOCEy6q.d.ts → index-L4RZN9jJ.d.ts} +2 -2
- package/dist/index.d.ts +56 -48
- package/dist/index.js +2789 -1546
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/index.d.ts +6 -6
- package/dist/infrastructure/index.js +26 -7
- package/dist/infrastructure/index.js.map +1 -1
- package/dist/kernel/index.d.ts +20 -12
- package/dist/kernel/index.js +55 -9
- package/dist/kernel/index.js.map +1 -1
- package/dist/{mailbox-types-_7gaY0Rl.d.ts → mailbox-types-DTl7bRH3.d.ts} +3 -1
- package/dist/{mcp-servers-MLL6bMlv.d.ts → mcp-servers-CuZGf9fI.d.ts} +4 -4
- package/dist/models/index.d.ts +5 -5
- package/dist/models/index.js +223 -139
- package/dist/models/index.js.map +1 -1
- package/dist/{models-registry-CrkcxQ-g.d.ts → models-registry-8XOdxWQu.d.ts} +16 -1
- package/dist/{multi-agent-coordinator-Dc_HuG9p.d.ts → multi-agent-coordinator-CiRtKVTk.d.ts} +8 -1
- package/dist/{null-fleet-bus-BMZwMin7.d.ts → null-fleet-bus-d9G-bVy9.d.ts} +26 -22
- package/dist/observability/index.d.ts +2 -2
- package/dist/{path-resolver-uVK4BatM.d.ts → path-resolver-BhIb6mtd.d.ts} +8 -3
- package/dist/{permission-CJR1qfOi.d.ts → permission-BCbQDR2s.d.ts} +1 -1
- package/dist/{permission-policy-DLVKKk4w.d.ts → permission-policy-C0ikndX_.d.ts} +2 -18
- package/dist/{pipeline-BYR-Vdau.d.ts → pipeline-Dl6XbfE7.d.ts} +10 -6
- package/dist/{provider-model-resolve-iREK_1lG.d.ts → provider-model-resolve-B70epO19.d.ts} +3 -3
- package/dist/{provider-runner-i7SQXZuC.d.ts → provider-runner-DZ808MSM.d.ts} +3 -3
- package/dist/{retry-policy-BmY5ooh3.d.ts → retry-policy-Dt3_z8Aj.d.ts} +1 -1
- package/dist/sdd/index.d.ts +19 -10
- package/dist/sdd/index.js +411 -240
- package/dist/sdd/index.js.map +1 -1
- package/dist/{secret-vault-C9leEMzr.d.ts → secret-vault-BUJ2d1gB.d.ts} +1 -1
- package/dist/security/index.d.ts +5 -5
- package/dist/security/index.js +30 -6
- package/dist/security/index.js.map +1 -1
- package/dist/{selector-qjpee9BF.d.ts → selector-BCkWgdwy.d.ts} +1 -1
- package/dist/{session-event-bridge-m7y--I-H.d.ts → session-event-bridge-CMvIO59_.d.ts} +1 -1
- package/dist/{session-reader-BjLH4V9n.d.ts → session-reader-C8aiChUu.d.ts} +1 -1
- package/dist/skills/index.js +1 -0
- package/dist/skills/index.js.map +1 -1
- package/dist/storage/index.d.ts +68 -30
- package/dist/storage/index.js +839 -528
- package/dist/storage/index.js.map +1 -1
- package/dist/{strategy-compactor-C2bmlWYg.d.ts → strategy-compactor-DI1OHVbB.d.ts} +10 -10
- package/dist/{todos-checkpoint-oDS9IBNS.d.ts → todos-checkpoint-Ddd2CGr0.d.ts} +56 -9
- package/dist/{tool-executor-D4YdaJ-M.d.ts → tool-executor-Bmd5Ygoo.d.ts} +45 -10
- package/dist/tools/index.d.ts +2 -2
- package/dist/tools/index.js.map +1 -1
- package/dist/types/index.d.ts +20 -20
- package/dist/types/index.js +331 -98
- package/dist/types/index.js.map +1 -1
- package/dist/utils/index.d.ts +16 -3
- package/dist/utils/index.js +159 -83
- package/dist/utils/index.js.map +1 -1
- package/dist/{worktree-manager-A1Efnvs0.d.ts → worktree-manager-DBdl_5rs.d.ts} +4 -1
- package/instructions/agents/shadow-agent.md +3 -3
- package/instructions/coordination/director-preamble.md +3 -3
- package/instructions/modes/research-web.md +4 -4
- package/package.json +1 -1
- package/skills/research-web/SKILL.md +26 -26
- package/skills/research-web/SKILL.save.md +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BridgeTransport, a as BridgeMessage, A as AgentBridge, b as AgentBridgeConfig } from './agent-subagent-runner-
|
|
1
|
+
import { B as BridgeTransport, a as BridgeMessage, A as AgentBridge, b as AgentBridgeConfig } from './agent-subagent-runner-CEuw4ATz.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* In-memory pub/sub transport for agent-to-agent messaging.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { c as ToolCallPipelinePayload, d as ToolWrapper, E as ExtensionRegistry, S as SystemPromptContributor, e as ToolRegistry, P as ProviderRegistry, A as AgentPipelines, f as ToolExecutorLike, g as AgentInit, h as AgentInput, R as RunResult } from './index-
|
|
2
|
-
import { C as Container, R as ReadonlyPipeline, a as Renderer } from './pipeline-
|
|
3
|
-
import { E as EventBus, a as EventName, L as Listener } from './brain-
|
|
4
|
-
import { R as RetryPolicy, E as ErrorHandler } from './retry-policy-
|
|
1
|
+
import { c as ToolCallPipelinePayload, d as ToolWrapper, E as ExtensionRegistry, S as SystemPromptContributor, e as ToolRegistry, P as ProviderRegistry, A as AgentPipelines, f as ToolExecutorLike, g as AgentInit, h as AgentInput, R as RunResult } from './index-Cn0NOshr.js';
|
|
2
|
+
import { C as Container, R as ReadonlyPipeline, a as Renderer } from './pipeline-Dl6XbfE7.js';
|
|
3
|
+
import { E as EventBus, a as EventName, L as Listener } from './brain-BLOyN5ZP.js';
|
|
4
|
+
import { R as RetryPolicy, E as ErrorHandler } from './retry-policy-Dt3_z8Aj.js';
|
|
5
5
|
import { L as Logger } from './logger-B63L5bTg.js';
|
|
6
6
|
import { T as Tracer } from './observability-D-HZN_mF.js';
|
|
7
|
-
import { P as PermissionPolicy } from './permission-
|
|
8
|
-
import { U as Usage, C as Context, J as JSONSchema, c as Request, d as Response, i as ContentBlock,
|
|
9
|
-
import { W as WireFamily, H as HookEvent, f as HookMatcher, I as InProcessHook, C as Config } from './config-
|
|
7
|
+
import { P as PermissionPolicy } from './permission-BCbQDR2s.js';
|
|
8
|
+
import { U as Usage, C as Context, J as JSONSchema, c as Request, d as Response, i as ContentBlock, r as TextBlock, T as Tool, P as Provider, u as RunOptions } from './context-CLnUMW5g.js';
|
|
9
|
+
import { W as WireFamily, H as HookEvent, f as HookMatcher, I as InProcessHook, C as Config } from './config-Bf5mj-ad.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Single fleet-wide event with subagent attribution. Whatever a child
|
|
@@ -62,7 +62,7 @@ declare class FleetBus {
|
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
64
|
* Roll-up of token usage + cost across an entire director run. The
|
|
65
|
-
* director's `
|
|
65
|
+
* director's `fleet` tool returns this so the model can reason
|
|
66
66
|
* about budget in its next turn ("the researcher already burned $0.40,
|
|
67
67
|
* lean on summaries for the next task").
|
|
68
68
|
*/
|
|
@@ -189,6 +189,10 @@ interface BudgetLimits {
|
|
|
189
189
|
* @default 'auto'
|
|
190
190
|
*/
|
|
191
191
|
type BudgetNegotiationMode = 'auto' | 'sync';
|
|
192
|
+
type BudgetSessionIdSource = string | (() => string | undefined);
|
|
193
|
+
interface SubagentBudgetOptions {
|
|
194
|
+
sessionId?: BudgetSessionIdSource | undefined;
|
|
195
|
+
}
|
|
192
196
|
interface BudgetUsage {
|
|
193
197
|
iterations: number;
|
|
194
198
|
toolCalls: number;
|
|
@@ -285,6 +289,7 @@ declare class SubagentBudget {
|
|
|
285
289
|
*/
|
|
286
290
|
private lastActivityTime;
|
|
287
291
|
private _onThreshold;
|
|
292
|
+
private readonly _sessionId;
|
|
288
293
|
/**
|
|
289
294
|
* Hard cap on how long `_negotiateExtension` waits for the coordinator to
|
|
290
295
|
* respond before defaulting to 'stop'. Without this fallback an absent
|
|
@@ -341,7 +346,8 @@ declare class SubagentBudget {
|
|
|
341
346
|
set onThreshold(fn: BudgetThresholdHandler | undefined);
|
|
342
347
|
/** Returns the current negotiation mode. */
|
|
343
348
|
get mode(): BudgetNegotiationMode;
|
|
344
|
-
constructor(limits?: BudgetLimits, mode?: BudgetNegotiationMode);
|
|
349
|
+
constructor(limits?: BudgetLimits, mode?: BudgetNegotiationMode, options?: SubagentBudgetOptions);
|
|
350
|
+
private currentSessionId;
|
|
345
351
|
start(): void;
|
|
346
352
|
/**
|
|
347
353
|
* Reset the idle clock. Called on any sign of forward progress —
|
|
@@ -1219,4 +1225,4 @@ interface AgentRunnerOptions {
|
|
|
1219
1225
|
*/
|
|
1220
1226
|
declare function makeAgentSubagentRunner(opts: AgentRunnerOptions): SubagentRunner;
|
|
1221
1227
|
|
|
1222
|
-
export {
|
|
1228
|
+
export { type TaskDelegation as $, type AgentBridge as A, type BridgeTransport as B, type CoordinatorStatus as C, type DoneCondition as D, type BudgetLimits as E, FleetBus as F, type BudgetNegotiationMode as G, type BudgetThresholdDecision as H, type BudgetThresholdHandler as I, BudgetThresholdSignal as J, type BudgetUsage as K, type CoordinatorEvents as L, type MultiAgentCoordinator as M, DECISION_TIMEOUT_MS as N, type FleetEvent as O, type PluginAPI as P, type FleetHandler as Q, SubagentBudget as R, type SubagentConfig as S, type TaskSpec as T, type SubagentContext as U, type SubagentError as V, type SubagentErrorKind as W, type SubagentRunContext as X, type SubagentRunOutcome as Y, type SubagentUsageSnapshot as Z, TIMEOUT_PREEMPT_FRACTION as _, type BridgeMessage as a, makeAgentSubagentRunner as a0, withDisabledToolFiltering as a1, type ProviderFactory as a2, type AgentBridgeConfig as b, type MultiAgentConfig as c, type SubagentRunner as d, type BudgetSessionIdSource as e, type SpawnResult as f, type TaskResult as g, Agent as h, type AgentFactory as i, type FleetUsage as j, FleetUsageAggregator as k, type SlashCommand as l, type PluginPipelines as m, type ToolRegistryView as n, type ProviderRegistryView as o, type MCPRegistryView as p, type SlashCommandRegistryView as q, type SessionWriterView as r, type MetricsSinkView as s, type PluginCapabilities as t, type PluginDependency as u, type Plugin as v, type AgentFactoryResult as w, type AgentRunnerOptions as x, BudgetExceededError as y, type BudgetKind as z };
|