@wrongstack/core 0.7.0 → 0.7.3

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 (56) hide show
  1. package/dist/{agent-bridge-CrQpYjM7.d.ts → agent-bridge-hXRN-GO_.d.ts} +1 -1
  2. package/dist/{compactor-CWV1u-IU.d.ts → compactor-Mw7-rNyb.d.ts} +1 -1
  3. package/dist/{config-C34JRwl4.d.ts → config-Bi4Q0fnz.d.ts} +2 -2
  4. package/dist/{context-bmR0YgBm.d.ts → context-z2x5gv_V.d.ts} +5 -1
  5. package/dist/coordination/index.d.ts +42 -12
  6. package/dist/coordination/index.js +2522 -33
  7. package/dist/coordination/index.js.map +1 -1
  8. package/dist/defaults/index.d.ts +24 -24
  9. package/dist/defaults/index.js +2783 -228
  10. package/dist/defaults/index.js.map +1 -1
  11. package/dist/{events-CEKFTmIY.d.ts → events-D4pGukpI.d.ts} +26 -2
  12. package/dist/execution/index.d.ts +38 -15
  13. package/dist/execution/index.js +2406 -21
  14. package/dist/execution/index.js.map +1 -1
  15. package/dist/extension/index.d.ts +8 -8
  16. package/dist/{index-BJIFLGII.d.ts → index-BUHs7xJ9.d.ts} +8 -8
  17. package/dist/index.d.ts +40 -32
  18. package/dist/index.js +2813 -215
  19. package/dist/index.js.map +1 -1
  20. package/dist/infrastructure/index.d.ts +9 -9
  21. package/dist/infrastructure/index.js +12 -0
  22. package/dist/infrastructure/index.js.map +1 -1
  23. package/dist/kernel/index.d.ts +11 -11
  24. package/dist/kernel/index.js +12 -0
  25. package/dist/kernel/index.js.map +1 -1
  26. package/dist/{logger-BMQgxvdy.d.ts → logger-DDd5C--Z.d.ts} +1 -1
  27. package/dist/{logger-BH6AE0W9.d.ts → logger-bOzkF5LL.d.ts} +1 -1
  28. package/dist/{mcp-servers-BRJicm5o.d.ts → mcp-servers-n2L9ohMX.d.ts} +3 -3
  29. package/dist/models/index.d.ts +4 -4
  30. package/dist/{models-registry-Y2xbog0E.d.ts → models-registry-BcYJDKLm.d.ts} +1 -1
  31. package/dist/{models-registry-DqzwpBQy.d.ts → models-registry-OG_30xqZ.d.ts} +1 -1
  32. package/dist/{multi-agent-Cm1wYSrw.d.ts → multi-agent-7OK4pEKW.d.ts} +6 -3
  33. package/dist/{multi-agent-coordinator-CCupVFqv.d.ts → multi-agent-coordinator-D8PLzfz6.d.ts} +165 -4
  34. package/dist/{index-CZR0HjxM.d.ts → null-fleet-bus-Bkk3gafb.d.ts} +97 -6
  35. package/dist/observability/index.d.ts +2 -2
  36. package/dist/{path-resolver-CfT7e_HT.d.ts → path-resolver-DPUjF10O.d.ts} +3 -3
  37. package/dist/{plan-templates-Q78an-GJ.d.ts → plan-templates-DWbEIJvV.d.ts} +5 -5
  38. package/dist/{provider-runner-WDj28o7J.d.ts → provider-runner-iST8U3ni.d.ts} +4 -4
  39. package/dist/{retry-policy-Dpxp4SET.d.ts → retry-policy-OwtKNxo8.d.ts} +2 -2
  40. package/dist/sdd/index.d.ts +3 -3
  41. package/dist/{secret-scrubber-CowtdEF8.d.ts → secret-scrubber-DXkhwuka.d.ts} +1 -1
  42. package/dist/{secret-scrubber-C2YCYtkn.d.ts → secret-scrubber-nI8qjaqW.d.ts} +1 -1
  43. package/dist/security/index.d.ts +3 -3
  44. package/dist/{selector-CP39HhCe.d.ts → selector-DkvgYVS4.d.ts} +1 -1
  45. package/dist/{session-reader-Dwjn4WZR.d.ts → session-reader-DsadjyF9.d.ts} +1 -1
  46. package/dist/storage/index.d.ts +7 -7
  47. package/dist/storage/index.js +8 -4
  48. package/dist/storage/index.js.map +1 -1
  49. package/dist/{system-prompt-CfgXqyv2.d.ts → system-prompt-CWA6ml-d.d.ts} +2 -2
  50. package/dist/{tool-executor-D5NFi_LV.d.ts → tool-executor-Tutu4ePV.d.ts} +6 -5
  51. package/dist/types/index.d.ts +19 -19
  52. package/dist/types/index.js +29 -0
  53. package/dist/types/index.js.map +1 -1
  54. package/dist/utils/index.d.ts +2 -2
  55. package/dist/{wstack-paths-86YPFktR.d.ts → wstack-paths-BGu2INTm.d.ts} +1 -1
  56. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { B as BridgeTransport, l as BridgeMessage, A as AgentBridge, m as AgentBridgeConfig } from './multi-agent-Cm1wYSrw.js';
1
+ import { b as BridgeTransport, B as BridgeMessage, A as AgentBridge, a as AgentBridgeConfig } from './multi-agent-7OK4pEKW.js';
2
2
 
3
3
  /**
4
4
  * In-memory pub/sub transport for agent-to-agent messaging.
@@ -1,4 +1,4 @@
1
- import { a5 as Context } from './context-bmR0YgBm.js';
1
+ import { d as Context } from './context-z2x5gv_V.js';
2
2
 
3
3
  interface CompactRepairReport {
4
4
  removedToolUses: string[];
@@ -1,5 +1,5 @@
1
- import { W as WireFamily } from './models-registry-Y2xbog0E.js';
2
- import { P as Permission } from './context-bmR0YgBm.js';
1
+ import { W as WireFamily } from './models-registry-BcYJDKLm.js';
2
+ import { P as Permission } from './context-z2x5gv_V.js';
3
3
 
4
4
  type ContextWindowModeId = 'balanced' | 'frugal' | 'deep' | 'archival';
5
5
  type ContextWindowAggressiveOn = 'hard' | 'soft' | 'warn';
@@ -1033,9 +1033,13 @@ declare class Context implements RunEnv {
1033
1033
  registerAbortHook(fn: () => void | Promise<void>): () => void;
1034
1034
  drainAbortHooks(): Promise<void>;
1035
1035
  recordRead(absPath: string, mtimeMs: number): void;
1036
+ /** Clear accumulated file-read metadata after compaction or at boundaries
1037
+ * where stale read history could cause tools to skip legitimate re-reads.
1038
+ * The agent re-populates this naturally on the next file access. */
1039
+ clearFileTracking(): void;
1036
1040
  hasRead(absPath: string): boolean;
1037
1041
  lastReadMtime(absPath: string): number | undefined;
1038
1042
  usage(): Usage;
1039
1043
  }
1040
1044
 
1041
- export { isThinkingBlock as $, AgentError as A, type ToolFinalEvent as B, type Capabilities as C, type ToolProgressEvent as D, ERROR_CODES as E, type FileSnapshot as F, type ToolResultBlock as G, type ToolStreamEvent as H, type ImageBlock as I, type JSONSchema as J, type ToolUseBlock as K, asBlocks as L, type Message as M, asText as N, isAgentError as O, type Permission as P, isConfigError as Q, type Request as R, type SessionData as S, type TextBlock as T, type Usage as U, isFsError as V, WrongStackError as W, isImageBlock as X, isPluginError as Y, isSessionError as Z, isTextBlock as _, ConfigError as a, isToolError as a0, isToolResultBlock as a1, isToolUseBlock as a2, isWrongStackError as a3, toWrongStackError as a4, Context as a5, type TokenCounter as a6, type CacheStats as a7, type TodoItem as a8, ConversationState as a9, type ContextInit as aa, type ReadonlyConversationState as ab, type RunEnv as ac, type RunOptions as ad, type StateChange as ae, type StateChangeHandler as af, extractRunEnv as ag, wrapAsState as ah, type ContentBlock as b, type ErrorCode as c, type ErrorSeverity as d, type ErrorSubsystem as e, FsError as f, type MessageRole as g, PluginError as h, type Provider as i, ProviderError as j, type ProviderErrorBody as k, type Response as l, type ResumedSession as m, type RiskTier as n, SessionError as o, type SessionEvent as p, type SessionMetadata as q, type SessionStore as r, type SessionSummary as s, type SessionWriter as t, type StopReason as u, type StreamEvent as v, type ThinkingBlock as w, type Tool as x, type ToolCallContext as y, ToolError as z };
1045
+ export { type Usage as $, AgentError as A, type SessionWriter as B, type CacheStats as C, type StateChange as D, ERROR_CODES as E, type FileSnapshot as F, type StateChangeHandler as G, type StopReason as H, type ImageBlock as I, type JSONSchema as J, type StreamEvent as K, type ThinkingBlock as L, type Message as M, type TodoItem as N, type TokenCounter as O, type Permission as P, type Tool as Q, type ReadonlyConversationState as R, type SessionData as S, type TextBlock as T, type ToolCallContext as U, ToolError as V, type ToolFinalEvent as W, type ToolProgressEvent as X, type ToolResultBlock as Y, type ToolStreamEvent as Z, type ToolUseBlock as _, type Capabilities as a, WrongStackError as a0, asBlocks as a1, asText as a2, extractRunEnv as a3, isAgentError as a4, isConfigError as a5, isFsError as a6, isImageBlock as a7, isPluginError as a8, isSessionError as a9, isTextBlock as aa, isThinkingBlock as ab, isToolError as ac, isToolResultBlock as ad, isToolUseBlock as ae, isWrongStackError as af, toWrongStackError as ag, wrapAsState as ah, ConfigError as b, type ContentBlock as c, Context as d, type ContextInit as e, ConversationState as f, type ErrorCode as g, type ErrorSeverity as h, type ErrorSubsystem as i, FsError as j, type MessageRole as k, PluginError as l, type Provider as m, ProviderError as n, type ProviderErrorBody as o, type Request as p, type Response as q, type ResumedSession as r, type RiskTier as s, type RunEnv as t, type RunOptions as u, SessionError as v, type SessionEvent as w, type SessionMetadata as x, type SessionStore as y, type SessionSummary as z };
@@ -1,15 +1,45 @@
1
- export { A as ALL_FLEET_AGENTS, a as AUDIT_LOG_AGENT, B as BUG_HUNTER_AGENT, C as CreateDelegateToolOptions, D as DEFAULT_DIRECTOR_PREAMBLE, b as DEFAULT_SUBAGENT_BASELINE, c as DelegateHost, d as Director, e as DirectorPromptParts, f as DirectorSessionFactory, g as DirectorSessionFactoryOptions, F as FLEET_ROSTER, t as FleetCostCapError, i as FleetManager, j as FleetManagerOptions, k as FleetSpawnBudgetError, I as ICoordinator, l as IFleetManager, N as NULL_FLEET_BUS, R as REFACTOR_PLANNER_AGENT, S as SECURITY_SCANNER_AGENT, m as SubagentPromptParts, o as composeDirectorPrompt, p as composeSubagentPrompt, q as createDelegateTool, r as makeDirectorSessionFactory, s as rosterSummaryFromConfigs } from '../index-CZR0HjxM.js';
2
- export { A as AgentFactory, a as AgentFactoryResult, b as AgentRunnerOptions, D as DefaultMultiAgentCoordinator, F as FleetBus, c as FleetEvent, d as FleetHandler, e as FleetUsage, f as FleetUsageAggregator, M as MultiAgentCoordinatorOptions, S as SubagentUsageSnapshot, m as makeAgentSubagentRunner } from '../multi-agent-coordinator-CCupVFqv.js';
3
- export { n as BudgetExceededError, o as BudgetKind, p as BudgetLimits, s as BudgetThresholdDecision, t as BudgetThresholdHandler, u as BudgetThresholdSignal, q as BudgetUsage, r as SubagentBudget } from '../multi-agent-Cm1wYSrw.js';
4
- export { I as InMemoryAgentBridge, a as InMemoryBridgeTransport, c as createMessage } from '../agent-bridge-CrQpYjM7.js';
1
+ 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, C as CreateDelegateToolOptions, D as DEFAULT_DIRECTOR_PREAMBLE, h as DEFAULT_SUBAGENT_BASELINE, i as DelegateHost, j as Director, k as DirectorPromptParts, l as DirectorSessionFactory, m as DirectorSessionFactoryOptions, F as FLEET_ROSTER, n as FLEET_ROSTER_BUDGETS, o as FLEET_ROSTER_WITHACP, p as FleetCostCapError, q as FleetManager, r as FleetManagerOptions, s as FleetRosterBudget, t as FleetSpawnBudgetError, I as ICoordinator, u as IFleetManager, N as NULL_FLEET_BUS, R as REFACTOR_PLANNER_AGENT, S as SECURITY_SCANNER_AGENT, v as SubagentPromptParts, w as applyRosterBudget, x as attachAutoExtend, y as composeDirectorPrompt, z as composeSubagentPrompt, E as createDelegateTool, G as getAgentDefinition, H as makeDirectorSessionFactory, J as rosterSummaryFromConfigs } from '../null-fleet-bus-Bkk3gafb.js';
2
+ import { b as AgentDefinition } from '../multi-agent-coordinator-D8PLzfz6.js';
3
+ export { T as AGENT_TOOL_PRESETS, A as AgentBudgetTier, a as AgentCapability, c as AgentFactory, d as AgentFactoryResult, e as AgentPhase, f as AgentRunnerOptions, D as DEFAULT_DISPATCH_ROLE, g as DefaultMultiAgentCoordinator, h as DispatchCandidate, i as DispatchClassifier, j as DispatchMethod, k as DispatchOptions, l as DispatchResult, F as FleetBus, m as FleetEvent, n as FleetHandler, o as FleetUsage, p as FleetUsageAggregator, H as HEAVY_BUDGET, L as LIGHT_BUDGET, M as MEDIUM_BUDGET, q as MultiAgentCoordinatorOptions, S as SubagentUsageSnapshot, r as dispatchAgent, s as makeAgentSubagentRunner, t as makeLLMClassifier, u as scoreAgents } from '../multi-agent-coordinator-D8PLzfz6.js';
4
+ export { c as BudgetExceededError, d as BudgetKind, e as BudgetLimits, f as BudgetThresholdDecision, g as BudgetThresholdHandler, h as BudgetThresholdSignal, i as BudgetUsage, l as SubagentBudget } from '../multi-agent-7OK4pEKW.js';
5
+ export { I as InMemoryAgentBridge, a as InMemoryBridgeTransport, c as createMessage } from '../agent-bridge-hXRN-GO_.js';
6
+ import '../context-z2x5gv_V.js';
5
7
  import '../director-state-BmYi3DGA.js';
6
- import '../context-bmR0YgBm.js';
7
- import '../index-BJIFLGII.js';
8
- import '../logger-BMQgxvdy.js';
9
- import '../system-prompt-CfgXqyv2.js';
8
+ import '../events-D4pGukpI.js';
9
+ import '../index-BUHs7xJ9.js';
10
+ import '../logger-DDd5C--Z.js';
11
+ import '../system-prompt-CWA6ml-d.js';
10
12
  import '../observability-BhnVLBLS.js';
11
- import '../events-CEKFTmIY.js';
12
- import '../secret-scrubber-C2YCYtkn.js';
13
- import '../config-C34JRwl4.js';
14
- import '../models-registry-Y2xbog0E.js';
13
+ import '../secret-scrubber-nI8qjaqW.js';
14
+ import '../config-Bi4Q0fnz.js';
15
+ import '../models-registry-BcYJDKLm.js';
15
16
  import 'node:events';
17
+
18
+ /** Phase 1 · Discovery — map the territory before any work begins. */
19
+ declare const DISCOVERY_AGENTS: AgentDefinition[];
20
+
21
+ /** Phase 2 · Planning — turn intent into requirements, plans, and architecture. */
22
+ declare const PLANNING_AGENTS: AgentDefinition[];
23
+
24
+ /** Phase 3 · Build — write, refactor, migrate, and fix code. */
25
+ declare const BUILD_AGENTS: AgentDefinition[];
26
+
27
+ /** Phase 4 · Verify — prove the code works under normal, end-to-end, and adverse conditions. */
28
+ declare const VERIFY_AGENTS: AgentDefinition[];
29
+
30
+ /** Phase 5 · Review — read-only quality, security, a11y, and compliance gates. */
31
+ declare const REVIEW_AGENTS: AgentDefinition[];
32
+
33
+ /** Phase 6 · Domain — specialists for the major slices of a system. */
34
+ declare const DOMAIN_AGENTS: AgentDefinition[];
35
+
36
+ /** Phase 7 · Knowledge — documentation, diagrams, localization, and prompts. */
37
+ declare const KNOWLEDGE_AGENTS: AgentDefinition[];
38
+
39
+ /** Phase 8 · Delivery & Ops — ship it, run it, keep it healthy. */
40
+ declare const DELIVERY_AGENTS: AgentDefinition[];
41
+
42
+ /** Phase 9 · Meta — agents that improve the agent system itself. */
43
+ declare const META_AGENTS: AgentDefinition[];
44
+
45
+ export { AgentDefinition, BUILD_AGENTS, DELIVERY_AGENTS, DISCOVERY_AGENTS, DOMAIN_AGENTS, KNOWLEDGE_AGENTS, META_AGENTS, PLANNING_AGENTS, REVIEW_AGENTS, VERIFY_AGENTS };