@wrongstack/core 0.51.3 → 0.54.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.
Files changed (54) hide show
  1. package/dist/{agent-bridge-CjbD-i7-.d.ts → agent-bridge-Dnhw4tnM.d.ts} +1 -1
  2. package/dist/{agent-subagent-runner-DfvlBx5N.d.ts → agent-subagent-runner-By7jruZ_.d.ts} +3 -3
  3. package/dist/{compactor-D1RHFRmF.d.ts → compactor-Duhsf0ge.d.ts} +1 -1
  4. package/dist/{config-ZRCf7sTu.d.ts → config-bht0txXS.d.ts} +33 -2
  5. package/dist/{context-7u93AcGD.d.ts → context-DtPKqKYV.d.ts} +1 -0
  6. package/dist/coordination/index.d.ts +12 -12
  7. package/dist/coordination/index.js.map +1 -1
  8. package/dist/defaults/index.d.ts +22 -22
  9. package/dist/defaults/index.js +31 -16
  10. package/dist/defaults/index.js.map +1 -1
  11. package/dist/{events-Bt44ikPN.d.ts → events-CbHTS4ZZ.d.ts} +1 -1
  12. package/dist/execution/index.d.ts +14 -14
  13. package/dist/execution/index.js.map +1 -1
  14. package/dist/extension/index.d.ts +6 -6
  15. package/dist/{goal-store-BeRsj7YX.d.ts → goal-store-DwcTDDiX.d.ts} +1 -1
  16. package/dist/{index-mAWBdLyJ.d.ts → index-CI271MjL.d.ts} +5 -5
  17. package/dist/{index-OzA1XjHL.d.ts → index-ge5F2dnc.d.ts} +8 -8
  18. package/dist/index.d.ts +33 -33
  19. package/dist/index.js +116 -64
  20. package/dist/index.js.map +1 -1
  21. package/dist/infrastructure/index.d.ts +6 -6
  22. package/dist/kernel/index.d.ts +9 -9
  23. package/dist/{mcp-servers-DONdo-XM.d.ts → mcp-servers-DE6gzBry.d.ts} +3 -3
  24. package/dist/models/index.d.ts +3 -3
  25. package/dist/models/index.js +31 -16
  26. package/dist/models/index.js.map +1 -1
  27. package/dist/{models-registry-gwMAo6E3.d.ts → models-registry-Cuq1C8V9.d.ts} +7 -0
  28. package/dist/{multi-agent-Ba9Ni2hC.d.ts → multi-agent-BmC_xiog.d.ts} +2 -2
  29. package/dist/{multi-agent-coordinator-BuKq0q89.d.ts → multi-agent-coordinator-CjNX4uBD.d.ts} +2 -2
  30. package/dist/{null-fleet-bus-C0xd73YP.d.ts → null-fleet-bus-BNiSlTna.d.ts} +7 -7
  31. package/dist/observability/index.d.ts +2 -2
  32. package/dist/{path-resolver-nkmdiFgi.d.ts → path-resolver-Bax85amb.d.ts} +2 -2
  33. package/dist/{permission-B6sldrSp.d.ts → permission-Drm7LpPo.d.ts} +1 -1
  34. package/dist/{permission-policy-CtNscWOA.d.ts → permission-policy-CU6sqWxF.d.ts} +2 -2
  35. package/dist/{plan-templates-BmDdJ7UL.d.ts → plan-templates-CLRcurWN.d.ts} +4 -4
  36. package/dist/{provider-runner-BGro2qQB.d.ts → provider-runner-BikCxGCx.d.ts} +3 -3
  37. package/dist/{retry-policy-KF18W4dg.d.ts → retry-policy-Chtlvr5b.d.ts} +1 -1
  38. package/dist/sdd/index.d.ts +8 -8
  39. package/dist/sdd/index.js.map +1 -1
  40. package/dist/security/index.d.ts +3 -3
  41. package/dist/{selector-DmXxpFyM.d.ts → selector-BvSPdJj6.d.ts} +1 -1
  42. package/dist/{session-reader-bfgsy2a0.d.ts → session-reader-BGhzMir4.d.ts} +1 -1
  43. package/dist/storage/index.d.ts +6 -6
  44. package/dist/storage/index.js +57 -37
  45. package/dist/storage/index.js.map +1 -1
  46. package/dist/{system-prompt-CM6zOhd2.d.ts → system-prompt-dtzV_mLm.d.ts} +1 -1
  47. package/dist/{tool-executor-p4tP9tGF.d.ts → tool-executor-CgU0yWpB.d.ts} +4 -4
  48. package/dist/types/index.d.ts +15 -15
  49. package/dist/types/index.js +31 -16
  50. package/dist/types/index.js.map +1 -1
  51. package/dist/utils/index.d.ts +14 -2
  52. package/dist/utils/index.js +18 -1
  53. package/dist/utils/index.js.map +1 -1
  54. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { b as BridgeTransport, B as BridgeMessage, A as AgentBridge, a as AgentBridgeConfig } from './multi-agent-Ba9Ni2hC.js';
1
+ import { b as BridgeTransport, B as BridgeMessage, A as AgentBridge, a as AgentBridgeConfig } from './multi-agent-BmC_xiog.js';
2
2
 
3
3
  /**
4
4
  * In-memory pub/sub transport for agent-to-agent messaging.
@@ -1,6 +1,6 @@
1
- import { c as Agent, f as AgentInput } from './index-mAWBdLyJ.js';
2
- import { E as EventBus } from './events-Bt44ikPN.js';
3
- import { n as SubagentConfig, v as TaskSpec, t as SubagentRunner } from './multi-agent-Ba9Ni2hC.js';
1
+ import { c as Agent, f as AgentInput } from './index-CI271MjL.js';
2
+ import { E as EventBus } from './events-CbHTS4ZZ.js';
3
+ import { n as SubagentConfig, v as TaskSpec, t as SubagentRunner } from './multi-agent-BmC_xiog.js';
4
4
 
5
5
  /**
6
6
  * Single fleet-wide event with subagent attribution. Whatever a child
@@ -1,4 +1,4 @@
1
- import { d as Context } from './context-7u93AcGD.js';
1
+ import { d as Context } from './context-DtPKqKYV.js';
2
2
 
3
3
  interface CompactRepairReport {
4
4
  removedToolUses: string[];
@@ -1,5 +1,5 @@
1
1
  import { W as WireFamily } from './models-registry-BcYJDKLm.js';
2
- import { P as Permission } from './context-7u93AcGD.js';
2
+ import { a as Capabilities, P as Permission } from './context-DtPKqKYV.js';
3
3
 
4
4
  type ContextWindowModeId = 'balanced' | 'frugal' | 'deep' | 'archival';
5
5
  type ContextWindowAggressiveOn = 'hard' | 'soft' | 'warn';
@@ -115,6 +115,12 @@ interface ProviderConfig {
115
115
  envVars?: string[];
116
116
  /** Optional list of models the user wants visible for this provider. */
117
117
  models?: string[];
118
+ /**
119
+ * Provider-relative custom model definitions (maps modelId → definition).
120
+ * Each entry adds/overrides a model for this provider with optional
121
+ * capability overrides. The model id is the key, not a fully qualified id.
122
+ */
123
+ customModels?: Record<string, CustomModelDefinition>;
118
124
  }
119
125
  /**
120
126
  * One entry in the per-task model matrix. Pins a catalog role, a phase, or
@@ -218,6 +224,24 @@ interface SyncConfig {
218
224
  categories: SyncCategory[];
219
225
  lastSyncedAt?: string;
220
226
  }
227
+ /**
228
+ * Per-model capability overrides the user can define in their config.
229
+ * Used to add models not in the models.dev catalog, or override catalog
230
+ * facts when the real backend differs (e.g. local Ollama models, proxies).
231
+ */
232
+ interface CustomModelDefinition {
233
+ /** Provider this model belongs to. Defaults to the owning ProviderConfig. */
234
+ provider?: string;
235
+ /** Optional display name. */
236
+ name?: string;
237
+ /** Capability overrides — only specified fields are overlaid. */
238
+ capabilities?: Partial<Capabilities>;
239
+ /**
240
+ * Max output tokens. If not specified, the provider family default
241
+ * or catalog entry is used.
242
+ */
243
+ maxOutput?: number;
244
+ }
221
245
  interface Config {
222
246
  version: 1;
223
247
  provider: string;
@@ -225,6 +249,13 @@ interface Config {
225
249
  apiKey?: string;
226
250
  baseUrl?: string;
227
251
  providers?: Record<string, ProviderConfig>;
252
+ /**
253
+ * Top-level custom models (maps modelId → definition). Merged with
254
+ * per-provider `customModels` at resolution time. The key is the
255
+ * model id — not a fully qualified name. When the same model id
256
+ * appears in both places, the top-level one wins.
257
+ */
258
+ models?: Record<string, CustomModelDefinition>;
228
259
  /**
229
260
  * Per-task model matrix. Keys are catalog roles (e.g. "security-scanner"),
230
261
  * phase names (e.g. "review"), or the `*` default. Resolution precedence at
@@ -310,4 +341,4 @@ interface ConfigStore {
310
341
  watch(cb: (next: Readonly<Config>, prev: Readonly<Config>) => void): () => void;
311
342
  }
312
343
 
313
- export { type AutonomyConfig as A, 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 SessionLoggingConfig as S, 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 ModelMatrixEntry as k, type ProviderApiKey as l, type ProviderConfig as m, type SyncCategory as n, type SyncConfig as o, formatContextWindowModeList as p, getContextWindowMode as q, isContextWindowModeId as r, listContextWindowModes as s, resolveContextWindowPolicy as t };
344
+ export { type AutonomyConfig as A, 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 SessionLoggingConfig as S, 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 CustomModelDefinition as k, type ModelMatrixEntry as l, type ProviderApiKey as m, type ProviderConfig as n, type SyncCategory as o, type SyncConfig as p, formatContextWindowModeList as q, getContextWindowMode as r, isContextWindowModeId as s, listContextWindowModes as t, resolveContextWindowPolicy as u };
@@ -463,6 +463,7 @@ interface Capabilities {
463
463
  promptCache: boolean;
464
464
  systemPrompt: boolean;
465
465
  jsonMode: boolean;
466
+ reasoning: boolean;
466
467
  maxContext: number;
467
468
  cacheControl: 'native' | 'auto' | 'none';
468
469
  }
@@ -1,21 +1,21 @@
1
- export { B as BrainArbiter, a as BrainDecision, b as BrainDecisionOption, c as BrainDecisionQueue, d as BrainDecisionRequest, e as BrainDecisionSource, f as BrainFallback, g as BrainRisk, D as DefaultBrainArbiter, h as DefaultBrainArbiterOptions, H as HumanEscalatingBrainArbiter, O as ObservableBrainArbiter, l as formatHumanPrompt } from '../events-Bt44ikPN.js';
2
- export { A as ACP_AGENTS, a as AGENTS_BY_PHASE, b as AGENT_CATALOG, c as ALL_AGENT_DEFINITIONS, d as ALL_FLEET_AGENTS, e as AUDIT_LOG_AGENT, f as AutoExtendCeiling, g as AutoExtendPolicy, B as BUG_HUNTER_AGENT, h as BugFinding, C as CollabBudgetConfig, i as CollabBudgetOverrides, j as CollabBudgetWarningPayload, k as CollabDebugReport, l as CollabSession, m as CollabSessionOptions, n as CreateDelegateToolOptions, o as CriticConcern, p as CriticEvaluation, D as DEFAULT_DIRECTOR_PREAMBLE, q as DEFAULT_SUBAGENT_BASELINE, r as DelegateHost, s as Director, t as DirectorAlert, u as DirectorAlertLevel, v as DirectorCancelCollabPayload, w as DirectorPromptParts, x as DirectorSessionFactory, y as DirectorSessionFactoryOptions, F as FLEET_ROSTER, z as FLEET_ROSTER_BUDGETS, E as FLEET_ROSTER_WITHACP, G as FleetCostCapError, H as FleetManager, I as FleetManagerOptions, J as FleetRosterBudget, K as FleetSpawnBudgetError, L as ICoordinator, M as IFleetManager, N as LargeAnswerStore, O as NULL_FLEET_BUS, R as REFACTOR_PLANNER_AGENT, P as RefactorPhase, Q as RefactorPlan, S as SECURITY_SCANNER_AGENT, T as SharedFileEntry, U as SharedFileSnapshot, V as SubagentPromptParts, W as applyRosterBudget, X as attachAutoExtend, Y as composeDirectorPrompt, Z as composeSubagentPrompt, _ as createDelegateTool, $ as getAgentDefinition, a0 as makeAskResultTool, a1 as makeAskTool, a2 as makeAssignTool, a3 as makeAwaitTasksTool, a4 as makeCollabDebugTool, a5 as makeDirectorSessionFactory, a6 as makeFleetEmitTool, a7 as makeFleetHealthTool, a8 as makeFleetSessionTool, a9 as makeFleetStatusTool, aa as makeFleetUsageTool, ab as makeRollUpTool, ac as makeSpawnTool, ad as makeTerminateTool, ae as makeWorkCompleteTool, af as rosterSummaryFromConfigs } from '../null-fleet-bus-C0xd73YP.js';
3
- import { b as AgentDefinition } from '../multi-agent-coordinator-BuKq0q89.js';
4
- export { T as AGENT_TOOL_PRESETS, A as AgentBudgetTier, a as AgentCapability, c as AgentPhase, D as DEFAULT_DISPATCH_ROLE, d as DefaultMultiAgentCoordinator, e as DispatchCandidate, f as DispatchClassifier, g as DispatchMethod, h as DispatchOptions, i as DispatchResult, H as HEAVY_BUDGET, L as LIGHT_BUDGET, M as MEDIUM_BUDGET, j as MultiAgentCoordinatorOptions, k as dispatchAgent, m as makeLLMClassifier, s as scoreAgents } from '../multi-agent-coordinator-BuKq0q89.js';
5
- export { c as BudgetExceededError, d as BudgetKind, e as BudgetLimits, f as BudgetNegotiationMode, g as BudgetThresholdDecision, h as BudgetThresholdHandler, i as BudgetThresholdSignal, j as BudgetUsage, m as SubagentBudget } from '../multi-agent-Ba9Ni2hC.js';
6
- export { A as AgentFactory, a as AgentFactoryResult, b as AgentRunnerOptions, F as FleetBus, c as FleetEvent, d as FleetHandler, e as FleetUsage, f as FleetUsageAggregator, S as SubagentUsageSnapshot, m as makeAgentSubagentRunner } from '../agent-subagent-runner-DfvlBx5N.js';
7
- export { I as InMemoryAgentBridge, a as InMemoryBridgeTransport, c as createMessage } from '../agent-bridge-CjbD-i7-.js';
8
- import '../context-7u93AcGD.js';
1
+ export { B as BrainArbiter, a as BrainDecision, b as BrainDecisionOption, c as BrainDecisionQueue, d as BrainDecisionRequest, e as BrainDecisionSource, f as BrainFallback, g as BrainRisk, D as DefaultBrainArbiter, h as DefaultBrainArbiterOptions, H as HumanEscalatingBrainArbiter, O as ObservableBrainArbiter, l as formatHumanPrompt } from '../events-CbHTS4ZZ.js';
2
+ export { A as ACP_AGENTS, a as AGENTS_BY_PHASE, b as AGENT_CATALOG, c as ALL_AGENT_DEFINITIONS, d as ALL_FLEET_AGENTS, e as AUDIT_LOG_AGENT, f as AutoExtendCeiling, g as AutoExtendPolicy, B as BUG_HUNTER_AGENT, h as BugFinding, C as CollabBudgetConfig, i as CollabBudgetOverrides, j as CollabBudgetWarningPayload, k as CollabDebugReport, l as CollabSession, m as CollabSessionOptions, n as CreateDelegateToolOptions, o as CriticConcern, p as CriticEvaluation, D as DEFAULT_DIRECTOR_PREAMBLE, q as DEFAULT_SUBAGENT_BASELINE, r as DelegateHost, s as Director, t as DirectorAlert, u as DirectorAlertLevel, v as DirectorCancelCollabPayload, w as DirectorPromptParts, x as DirectorSessionFactory, y as DirectorSessionFactoryOptions, F as FLEET_ROSTER, z as FLEET_ROSTER_BUDGETS, E as FLEET_ROSTER_WITHACP, G as FleetCostCapError, H as FleetManager, I as FleetManagerOptions, J as FleetRosterBudget, K as FleetSpawnBudgetError, L as ICoordinator, M as IFleetManager, N as LargeAnswerStore, O as NULL_FLEET_BUS, R as REFACTOR_PLANNER_AGENT, P as RefactorPhase, Q as RefactorPlan, S as SECURITY_SCANNER_AGENT, T as SharedFileEntry, U as SharedFileSnapshot, V as SubagentPromptParts, W as applyRosterBudget, X as attachAutoExtend, Y as composeDirectorPrompt, Z as composeSubagentPrompt, _ as createDelegateTool, $ as getAgentDefinition, a0 as makeAskResultTool, a1 as makeAskTool, a2 as makeAssignTool, a3 as makeAwaitTasksTool, a4 as makeCollabDebugTool, a5 as makeDirectorSessionFactory, a6 as makeFleetEmitTool, a7 as makeFleetHealthTool, a8 as makeFleetSessionTool, a9 as makeFleetStatusTool, aa as makeFleetUsageTool, ab as makeRollUpTool, ac as makeSpawnTool, ad as makeTerminateTool, ae as makeWorkCompleteTool, af as rosterSummaryFromConfigs } from '../null-fleet-bus-BNiSlTna.js';
3
+ import { b as AgentDefinition } from '../multi-agent-coordinator-CjNX4uBD.js';
4
+ export { T as AGENT_TOOL_PRESETS, A as AgentBudgetTier, a as AgentCapability, c as AgentPhase, D as DEFAULT_DISPATCH_ROLE, d as DefaultMultiAgentCoordinator, e as DispatchCandidate, f as DispatchClassifier, g as DispatchMethod, h as DispatchOptions, i as DispatchResult, H as HEAVY_BUDGET, L as LIGHT_BUDGET, M as MEDIUM_BUDGET, j as MultiAgentCoordinatorOptions, k as dispatchAgent, m as makeLLMClassifier, s as scoreAgents } from '../multi-agent-coordinator-CjNX4uBD.js';
5
+ export { c as BudgetExceededError, d as BudgetKind, e as BudgetLimits, f as BudgetNegotiationMode, g as BudgetThresholdDecision, h as BudgetThresholdHandler, i as BudgetThresholdSignal, j as BudgetUsage, m as SubagentBudget } from '../multi-agent-BmC_xiog.js';
6
+ export { A as AgentFactory, a as AgentFactoryResult, b as AgentRunnerOptions, F as FleetBus, c as FleetEvent, d as FleetHandler, e as FleetUsage, f as FleetUsageAggregator, S as SubagentUsageSnapshot, m as makeAgentSubagentRunner } from '../agent-subagent-runner-By7jruZ_.js';
7
+ export { I as InMemoryAgentBridge, a as InMemoryBridgeTransport, c as createMessage } from '../agent-bridge-Dnhw4tnM.js';
8
+ import '../context-DtPKqKYV.js';
9
9
  import 'node:events';
10
10
  import '../director-state-BmYi3DGA.js';
11
- import '../config-ZRCf7sTu.js';
11
+ import '../config-bht0txXS.js';
12
12
  import '../models-registry-BcYJDKLm.js';
13
- import '../index-mAWBdLyJ.js';
13
+ import '../index-CI271MjL.js';
14
14
  import '../logger-DDd5C--Z.js';
15
- import '../system-prompt-CM6zOhd2.js';
15
+ import '../system-prompt-dtzV_mLm.js';
16
16
  import '../observability-BhnVLBLS.js';
17
17
  import '../secret-scrubber-3MHDDAtm.js';
18
- import '../permission-B6sldrSp.js';
18
+ import '../permission-Drm7LpPo.js';
19
19
 
20
20
  /** Phase 1 · Discovery — map the territory before any work begins. */
21
21
  declare const DISCOVERY_AGENTS: AgentDefinition[];