@wrongstack/core 0.9.19 → 0.10.0

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 (73) hide show
  1. package/README.md +37 -33
  2. package/dist/{agent-bridge-DMVOX0cF.d.ts → agent-bridge-DBBGP5O4.d.ts} +1 -1
  3. package/dist/{agent-subagent-runner-C4qt9e5Y.d.ts → agent-subagent-runner-KwufTWwn.d.ts} +3 -4
  4. package/dist/compactor-D1RHFRmF.d.ts +41 -0
  5. package/dist/{config-CWva0qoL.d.ts → config-CJXBka2r.d.ts} +38 -2
  6. package/dist/{context-BRNbHmRM.d.ts → context-7u93AcGD.d.ts} +140 -0
  7. package/dist/coordination/index.d.ts +13 -13
  8. package/dist/coordination/index.js +786 -200
  9. package/dist/coordination/index.js.map +1 -1
  10. package/dist/{default-config-Uzla85H-.d.ts → default-config-DEXI4jsl.d.ts} +10 -1
  11. package/dist/defaults/index.d.ts +24 -24
  12. package/dist/defaults/index.js +1612 -528
  13. package/dist/defaults/index.js.map +1 -1
  14. package/dist/{events-CiG9qUM_.d.ts → events-Bw1K5E6K.d.ts} +49 -1
  15. package/dist/execution/index.d.ts +46 -32
  16. package/dist/execution/index.js +663 -169
  17. package/dist/execution/index.js.map +1 -1
  18. package/dist/extension/index.d.ts +6 -6
  19. package/dist/extension/index.js.map +1 -1
  20. package/dist/goal-store-BeRsj7YX.d.ts +188 -0
  21. package/dist/{index-p95HQ22A.d.ts → index-DIt5TIaF.d.ts} +8 -8
  22. package/dist/{index-aizK8olO.d.ts → index-DgQWnZxP.d.ts} +11 -8
  23. package/dist/index.d.ts +338 -41
  24. package/dist/index.js +2747 -787
  25. package/dist/index.js.map +1 -1
  26. package/dist/infrastructure/index.d.ts +6 -6
  27. package/dist/infrastructure/index.js +36 -0
  28. package/dist/infrastructure/index.js.map +1 -1
  29. package/dist/kernel/index.d.ts +9 -9
  30. package/dist/kernel/index.js +57 -8
  31. package/dist/kernel/index.js.map +1 -1
  32. package/dist/{mcp-servers-BkVEqkRe.d.ts → mcp-servers-BgINZzuo.d.ts} +25 -3
  33. package/dist/models/index.d.ts +3 -3
  34. package/dist/models/index.js +164 -11
  35. package/dist/models/index.js.map +1 -1
  36. package/dist/models-registry-gwMAo6E3.d.ts +86 -0
  37. package/dist/{multi-agent-3ZnTB1aT.d.ts → multi-agent-C1O8EFzb.d.ts} +77 -24
  38. package/dist/{multi-agent-coordinator-bRaI_aD1.d.ts → multi-agent-coordinator-DoVSBFNx.d.ts} +20 -2
  39. package/dist/{null-fleet-bus-DKM3Iy9d.d.ts → null-fleet-bus-T-s3JaOt.d.ts} +413 -110
  40. package/dist/observability/index.d.ts +2 -2
  41. package/dist/{path-resolver-TcJfc29Y.d.ts → path-resolver-BfyK-I7w.d.ts} +2 -2
  42. package/dist/{permission-bPuzAy4x.d.ts → permission-B6sldrSp.d.ts} +1 -1
  43. package/dist/{permission-policy-BUQSutpl.d.ts → permission-policy-CtNscWOA.d.ts} +10 -9
  44. package/dist/{plan-templates-fkQTyz3U.d.ts → plan-templates-BWs6Je7j.d.ts} +8 -8
  45. package/dist/{provider-runner-BEpikbbN.d.ts → provider-runner-BmPe2RuU.d.ts} +3 -3
  46. package/dist/{retry-policy-BYkq0ugs.d.ts → retry-policy-KF18W4dg.d.ts} +1 -1
  47. package/dist/sdd/index.d.ts +9 -10
  48. package/dist/sdd/index.js +350 -122
  49. package/dist/sdd/index.js.map +1 -1
  50. package/dist/security/index.d.ts +65 -4
  51. package/dist/security/index.js +67 -19
  52. package/dist/security/index.js.map +1 -1
  53. package/dist/{selector-pox8abg0.d.ts → selector-DmXxpFyM.d.ts} +1 -1
  54. package/dist/{session-reader-CSWcb5Ga.d.ts → session-reader-CCSBfQmd.d.ts} +2 -2
  55. package/dist/skills/index.d.ts +1 -1
  56. package/dist/skills/index.js +1 -1
  57. package/dist/skills/index.js.map +1 -1
  58. package/dist/storage/index.d.ts +392 -8
  59. package/dist/storage/index.js +796 -40
  60. package/dist/storage/index.js.map +1 -1
  61. package/dist/{system-prompt-Bs-Wliab.d.ts → system-prompt-CM6zOhd2.d.ts} +19 -1
  62. package/dist/{tool-executor-Boo3dekH.d.ts → tool-executor-D7RxLtg4.d.ts} +9 -4
  63. package/dist/types/index.d.ts +16 -16
  64. package/dist/types/index.js +404 -14
  65. package/dist/types/index.js.map +1 -1
  66. package/dist/utils/index.d.ts +40 -8
  67. package/dist/utils/index.js +127 -57
  68. package/dist/utils/index.js.map +1 -1
  69. package/dist/{wstack-paths-BCgmTNlG.d.ts → wstack-paths-eMXnY1_X.d.ts} +8 -0
  70. package/package.json +1 -1
  71. package/dist/compactor-DVTKL7XD.d.ts +0 -23
  72. package/dist/goal-store-C7jcumEh.d.ts +0 -96
  73. package/dist/models-registry-OG_30xqZ.d.ts +0 -46
@@ -1,6 +1,6 @@
1
- import { Q as Tool, d as Context } from './context-BRNbHmRM.js';
1
+ import { Q as Tool, d as Context } from './context-7u93AcGD.js';
2
2
  import { I as InputReader } from './input-reader-E-ffP2ee.js';
3
- import { a as PermissionPolicy, P as PermissionDecision } from './permission-bPuzAy4x.js';
3
+ import { a as PermissionPolicy, P as PermissionDecision } from './permission-B6sldrSp.js';
4
4
 
5
5
  interface PermissionPolicyOptions {
6
6
  trustFile: string;
@@ -98,17 +98,18 @@ declare class DefaultPermissionPolicy implements PermissionPolicy {
98
98
  *
99
99
  * Tool defaults of `permission: 'deny'` are still honored (this is a
100
100
  * subagent capability override, not a deny-bypass).
101
+ *
102
+ * 2026-06+: Primary decision is now based on declared `Tool.capabilities`
103
+ * (capability allowlist / denylist model). The legacy name-based DENY set
104
+ * is kept only for backward compatibility with tools that have not yet
105
+ * declared capabilities.
101
106
  */
102
107
  declare class AutoApprovePermissionPolicy implements PermissionPolicy {
103
108
  /**
104
- * Tools that are too dangerous to auto-approve even in a delegated
105
- * subagent context. Subagents run non-interactively under a director
106
- * and cannot answer prompts, but inherited authorization does not
107
- * imply blanket permission for destructive or privilege-escalating
108
- * operations. These tools remain at their declared `permission`
109
- * level so the leader must explicitly allow them per-spawn.
109
+ * Legacy name-based denylist.
110
+ * @deprecated Prefer declaring `capabilities` on the Tool and using capability-based checks.
110
111
  */
111
- private static readonly DENY;
112
+ private static readonly LEGACY_NAME_DENY;
112
113
  /**
113
114
  * Tools from MCP servers (`mcp__<server>__<tool>`) are external code of
114
115
  * unknown capability — they may wrap a shell or filesystem. They are
@@ -1,10 +1,10 @@
1
- import { E as EventBus } from './events-CiG9qUM_.js';
1
+ import { E as EventBus } from './events-Bw1K5E6K.js';
2
2
  import { S as SecretScrubber } from './secret-scrubber-3MHDDAtm.js';
3
- import { y as SessionStore, x as SessionMetadata, B as SessionWriter, r as ResumedSession, S as SessionData, z as SessionSummary, c as ContentBlock, w as SessionEvent, N as TodoItem, f as ConversationState } from './context-BRNbHmRM.js';
4
- import { e as AttachmentStore, A as AddAttachmentInput, d as AttachmentRef, a as Attachment } from './session-reader-CSWcb5Ga.js';
3
+ import { y as SessionStore, x as SessionMetadata, B as SessionWriter, r as ResumedSession, S as SessionData, z as SessionSummary, c as ContentBlock, w as SessionEvent, N as TodoItem, f as ConversationState } from './context-7u93AcGD.js';
4
+ import { e as AttachmentStore, A as AddAttachmentInput, d as AttachmentRef, a as Attachment } from './session-reader-CCSBfQmd.js';
5
5
  import { b as MemoryStore, a as MemoryScope } from './memory-CEXuo7sz.js';
6
- import { a as WstackPaths } from './wstack-paths-BCgmTNlG.js';
7
- import { c as ConfigStore, a as Config, b as ConfigLoader, m as SyncConfig } from './config-CWva0qoL.js';
6
+ import { a as WstackPaths } from './wstack-paths-eMXnY1_X.js';
7
+ import { c as ConfigStore, a as Config, b as ConfigLoader, n as SyncConfig } from './config-CJXBka2r.js';
8
8
  import { S as SecretVault } from './secret-vault-DoISxaKO.js';
9
9
 
10
10
  interface SessionStoreOptions {
@@ -84,9 +84,9 @@ interface AttachmentStoreOptions {
84
84
  }
85
85
  /**
86
86
  * In-memory attachment store with optional disk spool. Placeholder syntax
87
- * is `[<kind> #<seq>]` where kind is `pasted` / `image` / `file`. Unknown
88
- * placeholders are passed through as-is so users can write that literal
89
- * text without losing it.
87
+ * is `[<kind> #<seq>]` (seq-keyed) or `[file:<path>]` (path-keyed) where kind
88
+ * is `pasted` / `image` / `file`. Unknown placeholders are passed through
89
+ * as-is so users can write that literal text without losing it.
90
90
  */
91
91
  declare class DefaultAttachmentStore implements AttachmentStore {
92
92
  private readonly items;
@@ -1,8 +1,8 @@
1
- import { E as EventBus } from './events-CiG9qUM_.js';
1
+ import { E as EventBus } from './events-Bw1K5E6K.js';
2
2
  import { a as Logger } from './logger-DDd5C--Z.js';
3
3
  import { T as Tracer } from './observability-BhnVLBLS.js';
4
- import { m as Provider, p as Request, d as Context, q as Response } from './context-BRNbHmRM.js';
5
- import { a as RetryPolicy } from './retry-policy-BYkq0ugs.js';
4
+ import { m as Provider, p as Request, d as Context, q as Response } from './context-7u93AcGD.js';
5
+ import { a as RetryPolicy } from './retry-policy-KF18W4dg.js';
6
6
 
7
7
  /**
8
8
  * Options passed to a ProviderRunner when calling the provider.
@@ -1,4 +1,4 @@
1
- import { q as Response, d as Context, n as ProviderError } from './context-BRNbHmRM.js';
1
+ import { q as Response, d as Context, n as ProviderError } from './context-7u93AcGD.js';
2
2
 
3
3
  type RecoveryDecision = {
4
4
  /**
@@ -1,15 +1,15 @@
1
1
  import { h as Specification, S as SpecAnalysis, g as SpecValidationResult, l as TaskGraph, m as TaskNode, k as TaskFilter, p as TaskSort, o as TaskProgress, r as TaskType, n as TaskPriority, e as SpecStatus, f as SpecTemplate, b as SpecRequirement } from '../task-graph-D1YQbpxF.js';
2
- import { E as EventBus } from '../events-CiG9qUM_.js';
3
- import { D as DoneCondition, u as TaskResult } from '../multi-agent-3ZnTB1aT.js';
4
- import { c as Agent } from '../index-aizK8olO.js';
5
- import { A as AgentFactory } from '../agent-subagent-runner-C4qt9e5Y.js';
6
- import '../context-BRNbHmRM.js';
2
+ import { E as EventBus } from '../events-Bw1K5E6K.js';
3
+ import { D as DoneCondition, u as TaskResult } from '../multi-agent-C1O8EFzb.js';
4
+ import { c as Agent } from '../index-DgQWnZxP.js';
5
+ import { A as AgentFactory } from '../agent-subagent-runner-KwufTWwn.js';
6
+ import '../context-7u93AcGD.js';
7
7
  import '../logger-DDd5C--Z.js';
8
- import '../system-prompt-Bs-Wliab.js';
8
+ import '../system-prompt-CM6zOhd2.js';
9
9
  import '../observability-BhnVLBLS.js';
10
10
  import '../secret-scrubber-3MHDDAtm.js';
11
- import '../permission-bPuzAy4x.js';
12
- import '../config-CWva0qoL.js';
11
+ import '../permission-B6sldrSp.js';
12
+ import '../config-CJXBka2r.js';
13
13
  import '../models-registry-BcYJDKLm.js';
14
14
 
15
15
  declare class SpecParser {
@@ -675,10 +675,9 @@ interface TaskBatch {
675
675
  }
676
676
  declare class SddTaskDecomposer {
677
677
  private readonly tracker;
678
- private readonly graph;
679
678
  private readonly slots;
680
679
  private wave;
681
- constructor(tracker: TaskTracker, graph: TaskGraph, opts?: SddTaskDecomposerOptions);
680
+ constructor(tracker: TaskTracker, _graph: TaskGraph, opts?: SddTaskDecomposerOptions);
682
681
  /**
683
682
  * Return the next batch of runnable tasks.
684
683
  * Returns `allDone: true` when every node is completed.