@wrongstack/core 0.277.2 → 0.280.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 (83) hide show
  1. package/dist/{agent-bridge-BFJ2ODzI.d.ts → agent-bridge-DXC6QDJ4.d.ts} +1 -1
  2. package/dist/{agent-subagent-runner-BimKihiC.d.ts → agent-subagent-runner-PoqNKiR4.d.ts} +563 -471
  3. package/dist/{compactor-D3BGw26y.d.ts → compactor-U3agvUIG.d.ts} +1 -1
  4. package/dist/{config-DAOjriz9.d.ts → config-Cr3312zc.d.ts} +102 -4
  5. package/dist/coordination/index.d.ts +1087 -998
  6. package/dist/coordination/index.js +12235 -12052
  7. package/dist/coordination/index.js.map +1 -1
  8. package/dist/defaults/index.d.ts +31 -30
  9. package/dist/defaults/index.js +403 -189
  10. package/dist/defaults/index.js.map +1 -1
  11. package/dist/{brain-CCfuEOdp.d.ts → events-Bs2fmldo.d.ts} +117 -112
  12. package/dist/execution/index.d.ts +27 -19
  13. package/dist/execution/index.js +216 -63
  14. package/dist/execution/index.js.map +1 -1
  15. package/dist/execution/prompt-enhancer.d.ts +1 -1
  16. package/dist/execution/prompt-enhancer.js.map +1 -1
  17. package/dist/extension/index.d.ts +8 -7
  18. package/dist/{global-mailbox-Dr4cTKqL.d.ts → global-mailbox-Ct7IorLJ.d.ts} +84 -6
  19. package/dist/{goal-store-C1uH4srH.d.ts → goal-store-C4F6DjC0.d.ts} +1 -1
  20. package/dist/hq/index.d.ts +504 -7
  21. package/dist/hq/index.js +1069 -20
  22. package/dist/hq/index.js.map +1 -1
  23. package/dist/{index-DJXj-dcr.d.ts → index-kidebiDh.d.ts} +8 -5
  24. package/dist/{index-cMEmzCVN.d.ts → index-nP09-oP2.d.ts} +2 -2
  25. package/dist/index.d.ts +153 -76
  26. package/dist/index.js +5791 -3163
  27. package/dist/index.js.map +1 -1
  28. package/dist/infrastructure/index.d.ts +7 -6
  29. package/dist/kernel/index.d.ts +14 -13
  30. package/dist/kernel/index.js +31 -15
  31. package/dist/kernel/index.js.map +1 -1
  32. package/dist/{mailbox-types-DTl7bRH3.d.ts → mailbox-types-BGZWrYTJ.d.ts} +38 -0
  33. package/dist/{mcp-servers-CFb60-pH.d.ts → mcp-servers-D910X5_r.d.ts} +3 -3
  34. package/dist/models/index.d.ts +5 -5
  35. package/dist/models/index.js.map +1 -1
  36. package/dist/{models-registry-5Ufn7f2m.d.ts → models-registry-CLkoOcHk.d.ts} +1 -1
  37. package/dist/{multi-agent-coordinator-CcrcncvG.d.ts → multi-agent-coordinator-CieyUoEL.d.ts} +1 -1
  38. package/dist/{null-fleet-bus-C9KsYyrI.d.ts → null-fleet-bus-DkdmZJ_W.d.ts} +464 -464
  39. package/dist/observability/index.d.ts +3 -2
  40. package/dist/{path-resolver-CEeX9I7O.d.ts → path-resolver-XfZ9eLxG.d.ts} +3 -3
  41. package/dist/{permission-DbsGOA1C.d.ts → permission-Dx6dIqS2.d.ts} +2 -7
  42. package/dist/{permission-policy-BpEea3r7.d.ts → permission-policy-C8vJcnX5.d.ts} +2 -2
  43. package/dist/{pipeline-CEjBjzVA.d.ts → pipeline-BwAP21_4.d.ts} +9 -4
  44. package/dist/{provider-model-resolve-BpfXp3Jj.d.ts → provider-model-resolve-CwQNZWt_.d.ts} +3 -3
  45. package/dist/{provider-runner-CnOSr5BN.d.ts → provider-runner-CYHFImzV.d.ts} +3 -3
  46. package/dist/{retry-policy-Git9WF6d.d.ts → retry-policy-D4feSLk3.d.ts} +1 -1
  47. package/dist/sdd/index.d.ts +11 -10
  48. package/dist/sdd/index.js +2 -2
  49. package/dist/sdd/index.js.map +1 -1
  50. package/dist/secret-scrubber-3MHDDAtm.d.ts +6 -0
  51. package/dist/{secret-vault-DDSMHqIm.d.ts → secret-vault-CImt2XrR.d.ts} +1 -1
  52. package/dist/security/index.d.ts +6 -5
  53. package/dist/security/index.js.map +1 -1
  54. package/dist/{selector-Cq72C0Oy.d.ts → selector-Dy-MzKp1.d.ts} +1 -1
  55. package/dist/{session-event-bridge-DG94B3Bk.d.ts → session-event-bridge-CqdiGnfU.d.ts} +1 -1
  56. package/dist/{session-reader-BzT-iMQT.d.ts → session-reader-Hk0WbNm9.d.ts} +1 -1
  57. package/dist/{skill-DGIXCtdv.d.ts → skill-DHniprNl.d.ts} +15 -1
  58. package/dist/skills/index.d.ts +472 -26
  59. package/dist/skills/index.js +872 -129
  60. package/dist/skills/index.js.map +1 -1
  61. package/dist/storage/index.d.ts +27 -14
  62. package/dist/storage/index.js +264 -85
  63. package/dist/storage/index.js.map +1 -1
  64. package/dist/{strategy-compactor-Bt_ZH6R0.d.ts → strategy-compactor-CQwhbErd.d.ts} +32 -17
  65. package/dist/{todos-checkpoint-CH1pcua9.d.ts → todos-checkpoint-Bk2uP7Ex.d.ts} +6 -6
  66. package/dist/{context-DPlA6kid.d.ts → tool-BkOgs_KL.d.ts} +306 -286
  67. package/dist/{tool-executor-SVFq7IOR.d.ts → tool-executor-SiE1wlZo.d.ts} +9 -9
  68. package/dist/tools/index.d.ts +2 -2
  69. package/dist/tools/index.js.map +1 -1
  70. package/dist/types/index.d.ts +22 -21
  71. package/dist/types/index.js +7 -9
  72. package/dist/types/index.js.map +1 -1
  73. package/dist/utils/index.d.ts +30 -4
  74. package/dist/utils/index.js +50 -1
  75. package/dist/utils/index.js.map +1 -1
  76. package/dist/{worktree-manager-C4YIf1Fa.d.ts → worktree-manager-BjOFF6bt.d.ts} +1 -1
  77. package/dist/{wstack-paths-_NrRovdr.d.ts → wstack-paths-CMl_cYgq.d.ts} +8 -0
  78. package/package.json +1 -1
  79. package/skills/mailbox-bridge/SKILL.md +1 -0
  80. package/skills/plugin-author/SKILL.md +350 -0
  81. package/skills/sdd/SKILL.md +134 -134
  82. package/skills/skill-creator/SKILL.md +45 -7
  83. package/skills/wrongstack-mailbox/SKILL.md +40 -21
@@ -62,6 +62,17 @@ interface MailboxMessage {
62
62
  timestamp: string;
63
63
  /** ISO8601 — when the message was marked complete. */
64
64
  completedAt?: string | undefined;
65
+ /**
66
+ * ISO8601 — when the message was soft-deleted. When present, the
67
+ * default `Mailbox.query()` filter excludes the message from the
68
+ * normal inbox view; {@link GlobalMailbox.restore} clears the
69
+ * field to undo the delete. Hard deletes (removing the line from
70
+ * the JSONL) are reserved for the CLI and never happen via the
71
+ * server route handlers.
72
+ */
73
+ deletedAt?: string | undefined;
74
+ /** When the soft-delete happened, the agentId that issued it. */
75
+ deletedBy?: string | undefined;
65
76
  /** If this is a reply, the id of the parent message. */
66
77
  replyTo?: string | undefined;
67
78
  /** For assign-type messages — task context for agent discovery. */
@@ -154,6 +165,13 @@ interface MailboxQuery {
154
165
  limit?: number | undefined;
155
166
  /** ISO8601 — only messages after this timestamp. */
156
167
  since?: string | undefined;
168
+ /**
169
+ * Include soft-deleted messages (where `deletedAt` is set). When
170
+ * `false` (the default), soft-deleted messages are filtered out so
171
+ * the normal inbox view stays clean. The "trash" view passes
172
+ * `true` to surface them.
173
+ */
174
+ includeDeleted?: boolean | undefined;
157
175
  }
158
176
  /**
159
177
  * Normalize a recipient address. `"all"` (any casing) is an accepted
@@ -290,6 +308,24 @@ interface Mailbox {
290
308
  * read-modify-rewrite of the mailbox file for every call.
291
309
  */
292
310
  ackMany(input: MailboxAckBatchInput): Promise<MailboxMessage[]>;
311
+ /**
312
+ * Soft-delete a message. Sets `deletedAt` to the current timestamp
313
+ * and records the acting agent in `deletedBy`. Reversible via
314
+ * {@link restore}. The default `query()` filter hides the message
315
+ * once `deletedAt` is set; pass `includeDeleted: true` to see the
316
+ * trash.
317
+ *
318
+ * Phase 2 skeleton — the method signature is declared here so the
319
+ * WebUI client and the server route handler can compile against
320
+ * it; the implementation lands in the same PR.
321
+ */
322
+ softDelete(mailId: string, by: string): Promise<MailboxMessage | null>;
323
+ /**
324
+ * Undo a {@link softDelete}. Clears `deletedAt` and `deletedBy` on
325
+ * the message. No-op (returns the message as-is) if the message is
326
+ * not soft-deleted.
327
+ */
328
+ restore(mailId: string): Promise<MailboxMessage | null>;
293
329
  /** Get a snapshot of online/offline agents and their current tasks. */
294
330
  getAgentStatuses(): Promise<MailboxAgentStatus[]>;
295
331
  /**
@@ -302,6 +338,8 @@ interface Mailbox {
302
338
  * Subsequent calls are idempotent — they update lastSeenAt.
303
339
  */
304
340
  registerAgent(input: AgentRegistrationInput): Promise<void>;
341
+ /** Remove an agent from the registry entirely. Called on session shutdown. */
342
+ deregisterAgent(agentId: string): Promise<void>;
305
343
  /**
306
344
  * Update agent heartbeat and optional status fields.
307
345
  * Called periodically (every tool call / iteration).
@@ -1,6 +1,6 @@
1
- import { C as Compactor } from './compactor-D3BGw26y.js';
2
- import { M as Message, T as Tool } from './context-DPlA6kid.js';
3
- import { c as MCPServerConfig } from './config-DAOjriz9.js';
1
+ import { C as Compactor } from './compactor-U3agvUIG.js';
2
+ import { M as Message, T as Tool } from './tool-BkOgs_KL.js';
3
+ import { c as MCPServerConfig } from './config-Cr3312zc.js';
4
4
 
5
5
  type ContextManagerAction = 'check' | 'summary' | 'prune' | 'add_note' | 'compact' | 'repair';
6
6
  interface ContextManagerInput {
@@ -1,8 +1,8 @@
1
- export { D as DefaultModelsRegistry, a as DefaultModelsRegistryOptions, c as classifyFamily } from '../models-registry-5Ufn7f2m.js';
2
- export { C as CODEX_MODELS, a as CodexModelMeta, D as DefaultModeStore, L as LLMSelector, b as LLMSelectorOptions, M as ModeLoaderOptions, P as ProviderModelDescriptor, c as codexModelMeta, d as describeCatalogModel, l as loadProjectModes, e as loadUserModes, r as resolveProviderModelList } from '../provider-model-resolve-BpfXp3Jj.js';
3
- import { d as ModelMatrixEntry, P as ProviderConfig } from '../config-DAOjriz9.js';
4
- import '../context-DPlA6kid.js';
5
- import '../selector-Cq72C0Oy.js';
1
+ export { D as DefaultModelsRegistry, a as DefaultModelsRegistryOptions, c as classifyFamily } from '../models-registry-CLkoOcHk.js';
2
+ export { C as CODEX_MODELS, a as CodexModelMeta, D as DefaultModeStore, L as LLMSelector, b as LLMSelectorOptions, M as ModeLoaderOptions, P as ProviderModelDescriptor, c as codexModelMeta, d as describeCatalogModel, l as loadProjectModes, e as loadUserModes, r as resolveProviderModelList } from '../provider-model-resolve-CwQNZWt_.js';
3
+ import { d as ModelMatrixEntry, P as ProviderConfig } from '../config-Cr3312zc.js';
4
+ import '../tool-BkOgs_KL.js';
5
+ import '../selector-Dy-MzKp1.js';
6
6
  import '../mode-CZlO9iU1.js';
7
7
 
8
8
  /**