@wrongstack/core 0.68.0 → 0.73.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 (55) hide show
  1. package/dist/{agent-bridge-D-j6OOBT.d.ts → agent-bridge-C0Ze7Ldm.d.ts} +1 -1
  2. package/dist/{agent-subagent-runner-DRZ9-NnR.d.ts → agent-subagent-runner-BmITbs1Q.d.ts} +13 -5
  3. package/dist/{config--86aHSln.d.ts → config-Dy0CK_o6.d.ts} +44 -1
  4. package/dist/coordination/index.d.ts +10 -10
  5. package/dist/coordination/index.js +10 -4
  6. package/dist/coordination/index.js.map +1 -1
  7. package/dist/defaults/index.d.ts +15 -15
  8. package/dist/defaults/index.js +53 -22
  9. package/dist/defaults/index.js.map +1 -1
  10. package/dist/{events-CIplI98R.d.ts → events-BBAlxBuw.d.ts} +8 -0
  11. package/dist/execution/index.d.ts +8 -8
  12. package/dist/execution/index.js +4 -4
  13. package/dist/execution/index.js.map +1 -1
  14. package/dist/extension/index.d.ts +5 -5
  15. package/dist/{index-DKUvyTvV.d.ts → index-BN6i2Nfg.d.ts} +4 -4
  16. package/dist/{index-b5uhfTSl.d.ts → index-yQbZ2NQx.d.ts} +6 -6
  17. package/dist/index.d.ts +29 -27
  18. package/dist/index.js +154 -33
  19. package/dist/index.js.map +1 -1
  20. package/dist/infrastructure/index.d.ts +4 -4
  21. package/dist/kernel/index.d.ts +7 -7
  22. package/dist/kernel/index.js.map +1 -1
  23. package/dist/{mcp-servers-DwoNBf6r.d.ts → mcp-servers-T0O6UN_w.d.ts} +1 -1
  24. package/dist/{mode-CV077NjV.d.ts → mode-BO4SEUIv.d.ts} +7 -0
  25. package/dist/models/index.d.ts +1 -1
  26. package/dist/models/index.js +18 -9
  27. package/dist/models/index.js.map +1 -1
  28. package/dist/{multi-agent-coordinator-CWnH-CiX.d.ts → multi-agent-coordinator-BSBbZt0e.d.ts} +1 -1
  29. package/dist/{null-fleet-bus-CuN0ObJr.d.ts → null-fleet-bus-BCIRT_nV.d.ts} +19 -9
  30. package/dist/observability/index.d.ts +1 -1
  31. package/dist/{parallel-eternal-engine-0UwotoSx.d.ts → parallel-eternal-engine-CjAYGaCw.d.ts} +3 -3
  32. package/dist/{path-resolver-DVkEcIw8.d.ts → path-resolver-BnqXa9Ze.d.ts} +1 -1
  33. package/dist/{permission-C1A5whY5.d.ts → permission-V5BLOrY6.d.ts} +0 -4
  34. package/dist/{permission-policy-B2dK-T5N.d.ts → permission-policy-CBVx-d-8.d.ts} +1 -5
  35. package/dist/{plan-templates-Bprrzhbu.d.ts → plan-templates-DBgrTGPu.d.ts} +2 -2
  36. package/dist/{provider-runner-mXvXGSIw.d.ts → provider-runner-n3KkHT_w.d.ts} +1 -1
  37. package/dist/sdd/index.d.ts +6 -6
  38. package/dist/sdd/index.js +3 -3
  39. package/dist/sdd/index.js.map +1 -1
  40. package/dist/security/index.d.ts +2 -2
  41. package/dist/security/index.js +0 -8
  42. package/dist/security/index.js.map +1 -1
  43. package/dist/skills/index.js +1 -0
  44. package/dist/skills/index.js.map +1 -1
  45. package/dist/storage/index.d.ts +3 -3
  46. package/dist/storage/index.js +26 -2
  47. package/dist/storage/index.js.map +1 -1
  48. package/dist/{system-prompt-b61lOd49.d.ts → system-prompt-CA11g6Jo.d.ts} +1 -1
  49. package/dist/types/index.d.ts +13 -13
  50. package/dist/types/index.js +19 -10
  51. package/dist/types/index.js.map +1 -1
  52. package/dist/utils/index.d.ts +1 -1
  53. package/dist/utils/index.js +2 -1
  54. package/dist/utils/index.js.map +1 -1
  55. package/package.json +1 -1
@@ -611,6 +611,14 @@ interface EventMap {
611
611
  assigned: boolean;
612
612
  }[];
613
613
  };
614
+ /**
615
+ * The coordinator's max-concurrent subagent ceiling was changed at runtime
616
+ * (e.g. via `/fleet concurrency <n>`). `n` is the new ceiling. Lets the
617
+ * TUI/WebUI reflect the updated limit without polling the host.
618
+ */
619
+ 'concurrency.changed': {
620
+ n: number;
621
+ };
614
622
  /**
615
623
  * Git-worktree lifecycle, emitted by WorktreeManager. AutoPhase allocates one
616
624
  * worktree per phase so parallelizable phases run isolated, then merges them
@@ -1,23 +1,23 @@
1
- export { C as CompactorOptions, a as DefaultErrorHandler, b as DefaultRetryPolicy, E as EternalAutonomyEngine, c as EternalAutonomyOptions, d as EternalEngineState, H as HybridCompactor, I as IterationStage, P as ParallelEngineState, e as ParallelEternalEngine, f as ParallelEternalOptions, g as ParallelIterationStage, T as ToolExecutor } from '../parallel-eternal-engine-0UwotoSx.js';
1
+ export { C as CompactorOptions, a as DefaultErrorHandler, b as DefaultRetryPolicy, E as EternalAutonomyEngine, c as EternalAutonomyOptions, d as EternalEngineState, H as HybridCompactor, I as IterationStage, P as ParallelEngineState, e as ParallelEternalEngine, f as ParallelEternalOptions, g as ParallelIterationStage, T as ToolExecutor } from '../parallel-eternal-engine-CjAYGaCw.js';
2
2
  import { m as Provider, d as Context } from '../context-y87Jc5ei.js';
3
3
  import { a as Compactor, C as CompactReport } from '../compactor-D_ExJajC.js';
4
4
  import { M as MessageSelector } from '../selector-RvBR_YRW.js';
5
- import { E as EventBus } from '../events-CIplI98R.js';
6
- import { b as MiddlewareHandler } from '../system-prompt-b61lOd49.js';
5
+ import { E as EventBus } from '../events-BBAlxBuw.js';
6
+ import { b as MiddlewareHandler } from '../system-prompt-CA11g6Jo.js';
7
7
  import { a as SessionEventBridge } from '../session-event-bridge-CDHxcmQU.js';
8
- import { e as ContextWindowAggressiveOn, i as ContextWindowPolicy } from '../config--86aHSln.js';
9
- import { A as Agent, D as DoneCondition } from '../agent-subagent-runner-DRZ9-NnR.js';
10
- import { R as RunResult, S as SystemPromptContributor } from '../index-DKUvyTvV.js';
8
+ import { e as ContextWindowAggressiveOn, i as ContextWindowPolicy } from '../config-Dy0CK_o6.js';
9
+ import { A as Agent, D as DoneCondition } from '../agent-subagent-runner-BmITbs1Q.js';
10
+ import { R as RunResult, S as SystemPromptContributor } from '../index-BN6i2Nfg.js';
11
11
  import { a as SkillLoader, b as SkillManifest, S as SkillEntry } from '../skill-CxuWrsKK.js';
12
12
  import { a as WstackPaths } from '../wstack-paths-eMXnY1_X.js';
13
13
  import '../retry-policy-CG3qvH_e.js';
14
14
  import '../models-registry-BcYJDKLm.js';
15
15
  import '../goal-store-C7jcumEh.js';
16
- import '../multi-agent-coordinator-CWnH-CiX.js';
16
+ import '../multi-agent-coordinator-BSBbZt0e.js';
17
17
  import 'node:events';
18
18
  import '../logger-DDd5C--Z.js';
19
19
  import '../observability-BhnVLBLS.js';
20
- import '../permission-C1A5whY5.js';
20
+ import '../permission-V5BLOrY6.js';
21
21
  import '../secret-scrubber-3MHDDAtm.js';
22
22
 
23
23
  interface SkillLoaderOptions {
@@ -1530,7 +1530,7 @@ ${errorDetails}`,
1530
1530
  const decision = await this.opts.permissionPolicy.evaluate(tool, use.input, ctx);
1531
1531
  let effectivePermission = decision.permission;
1532
1532
  const policy = this.opts.permissionPolicy;
1533
- const yolo = policy.getYolo?.() === true || policy.getYoloDestructive?.() === true || policy.getForceAllYolo?.() === true;
1533
+ const yolo = policy.getYolo?.() === true || policy.getYoloDestructive?.() === true;
1534
1534
  if (toolDangerousCaps.length > 0 && effectivePermission === "auto" && !yolo) {
1535
1535
  effectivePermission = "confirm";
1536
1536
  }
@@ -5921,7 +5921,7 @@ var DefaultMultiAgentCoordinator = class _DefaultMultiAgentCoordinator extends E
5921
5921
  }
5922
5922
  async spawn(subagent) {
5923
5923
  const id = subagent.id || randomUUID();
5924
- subagent = this.withNickname(subagent, id);
5924
+ const cfg = this.withNickname(subagent, id);
5925
5925
  if (this.subagents.has(id)) {
5926
5926
  throw new Error(`Subagent id "${id}" already exists \u2014 refusing to overwrite`);
5927
5927
  }
@@ -5936,12 +5936,12 @@ var DefaultMultiAgentCoordinator = class _DefaultMultiAgentCoordinator extends E
5936
5936
  maxConcurrent: this.config.maxConcurrent ?? 16
5937
5937
  };
5938
5938
  this.subagents.set(id, {
5939
- config: { ...subagent, id },
5939
+ config: { ...cfg, id },
5940
5940
  context,
5941
5941
  status: "idle",
5942
5942
  abortController: new AbortController()
5943
5943
  });
5944
- this.emit("subagent.started", { subagent: { ...subagent, id } });
5944
+ this.emit("subagent.started", { subagent: { ...cfg, id } });
5945
5945
  this.fleetBus?.emit({
5946
5946
  subagentId: id,
5947
5947
  ts: Date.now(),