@wrongstack/core 0.277.1 → 0.280.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 (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
@@ -1,6 +1,7 @@
1
1
  import { M as MetricsSink, d as MetricLabels, f as MetricsSnapshot, H as HealthRegistry, a as HealthCheck, A as AggregateHealth, T as Tracer, S as Span } from '../observability-D-HZN_mF.js';
2
- import { E as EventBus } from '../brain-CCfuEOdp.js';
3
- import '../context-DPlA6kid.js';
2
+ import { E as EventBus } from '../events-Bs2fmldo.js';
3
+ import '../tool-BkOgs_KL.js';
4
+ import '../permission-Dx6dIqS2.js';
4
5
 
5
6
  /**
6
7
  * In-memory metrics sink. Suitable for embedded use, tests, and /metrics
@@ -1,6 +1,6 @@
1
- import { E as EventBus } from './brain-CCfuEOdp.js';
2
- import { M as ModelsRegistry, b as ResolvedModel } from './config-DAOjriz9.js';
3
- import { e as TokenCounter, U as Usage, f as CacheStats } from './context-DPlA6kid.js';
1
+ import { E as EventBus } from './events-Bs2fmldo.js';
2
+ import { M as ModelsRegistry, b as ResolvedModel } from './config-Cr3312zc.js';
3
+ import { f as TokenCounter, U as Usage, g as CacheStats } from './tool-BkOgs_KL.js';
4
4
  import { P as PathResolver } from './path-resolver-CPRj4bFY.js';
5
5
 
6
6
  /**
@@ -1,9 +1,4 @@
1
- import { T as Tool, C as Context, h as Permission } from './context-DPlA6kid.js';
2
-
3
- interface SecretScrubber {
4
- scrub(text: string): string;
5
- scrubObject<T>(obj: T): T;
6
- }
1
+ import { e as Permission, T as Tool, C as Context } from './tool-BkOgs_KL.js';
7
2
 
8
3
  interface TrustPolicy {
9
4
  [toolNameOrPattern: string]: {
@@ -68,4 +63,4 @@ interface PermissionPolicy {
68
63
  setPromptDelegate?(delegate: ((tool: Tool, input: unknown, suggestedPattern: string) => Promise<'yes' | 'no' | 'always' | 'deny'>) | undefined): void;
69
64
  }
70
65
 
71
- export type { PermissionPolicy as P, SecretScrubber as S, TrustPolicy as T, PermissionDecision as a };
66
+ export type { PermissionPolicy as P, TrustPolicy as T, PermissionDecision as a };
@@ -1,6 +1,6 @@
1
- import { T as Tool, C as Context } from './context-DPlA6kid.js';
1
+ import { T as Tool, C as Context } from './tool-BkOgs_KL.js';
2
2
  import { I as InputReader } from './input-reader-E-ffP2ee.js';
3
- import { P as PermissionPolicy, a as PermissionDecision } from './permission-DbsGOA1C.js';
3
+ import { P as PermissionPolicy, a as PermissionDecision } from './permission-Dx6dIqS2.js';
4
4
 
5
5
  interface PermissionPolicyOptions {
6
6
  trustFile: string;
@@ -1,6 +1,6 @@
1
- import { T as Tool, r as TextBlock, i as ContentBlock } from './context-DPlA6kid.js';
2
- import { a as MailboxAgentStatus } from './mailbox-types-DTl7bRH3.js';
3
- import { H as HookEvent, f as HookMatcher, I as InProcessHook, S as ShellHook, g as HookEntry, T as ToolResultRenderMode } from './config-DAOjriz9.js';
1
+ import { T as Tool, s as TextBlock, i as ContentBlock } from './tool-BkOgs_KL.js';
2
+ import { a as MailboxAgentStatus } from './mailbox-types-BGZWrYTJ.js';
3
+ import { H as HookEvent, f as HookMatcher, I as InProcessHook, S as ShellHook, g as HookEntry, T as ToolResultRenderMode } from './config-Cr3312zc.js';
4
4
 
5
5
  /** Model capabilities relevant to prompt composition. */
6
6
  interface ModelCapabilities {
@@ -162,7 +162,12 @@ declare class Container {
162
162
  has<T>(token: Token<T>): boolean;
163
163
  /**
164
164
  * Resolve a token if it is bound, otherwise return undefined.
165
- * Unlike resolve(), this does not throw if the token is unbound.
165
+ * Unlike `resolve()`, this does not throw if the token is unbound.
166
+ *
167
+ * Single map lookup — `has()` + `resolve()` would walk the entries
168
+ * map twice. The bound check is folded into the resolve path so a
169
+ * non-existent token can never enter the `resolving` cycle-detection
170
+ * set.
166
171
  */
167
172
  safeResolve<T>(token: Token<T>): T | undefined;
168
173
  ownerOf<T>(token: Token<T>): string | undefined;
@@ -1,7 +1,7 @@
1
- import { P as Provider, M as Message } from './context-DPlA6kid.js';
2
- import { M as MessageSelector, S as SelectorResult } from './selector-Cq72C0Oy.js';
1
+ import { P as Provider, M as Message } from './tool-BkOgs_KL.js';
2
+ import { M as MessageSelector, S as SelectorResult } from './selector-Dy-MzKp1.js';
3
3
  import { M as ModeStore, a as ModeConfig, b as Mode } from './mode-CZlO9iU1.js';
4
- import { e as ModelsDevModel, R as ResolvedProvider } from './config-DAOjriz9.js';
4
+ import { e as ModelsDevModel, R as ResolvedProvider } from './config-Cr3312zc.js';
5
5
 
6
6
  /**
7
7
  * Offline **floor** for the ChatGPT "Sign in with ChatGPT" (`openai-codex`)
@@ -1,8 +1,8 @@
1
- import { E as EventBus } from './brain-CCfuEOdp.js';
1
+ import { E as EventBus } from './events-Bs2fmldo.js';
2
2
  import { L as Logger } from './logger-B63L5bTg.js';
3
3
  import { T as Tracer } from './observability-D-HZN_mF.js';
4
- import { P as Provider, c as Request, C as Context, d as Response } from './context-DPlA6kid.js';
5
- import { R as RetryPolicy } from './retry-policy-Git9WF6d.js';
4
+ import { P as Provider, c as Request, C as Context, d as Response } from './tool-BkOgs_KL.js';
5
+ import { R as RetryPolicy } from './retry-policy-D4feSLk3.js';
6
6
 
7
7
  /**
8
8
  * Options passed to a ProviderRunner when calling the provider.
@@ -1,4 +1,4 @@
1
- import { C as Context, d as Response, g as ProviderError } from './context-DPlA6kid.js';
1
+ import { C as Context, d as Response, h as ProviderError } from './tool-BkOgs_KL.js';
2
2
 
3
3
  type RecoveryDecision = {
4
4
  /**
@@ -1,17 +1,18 @@
1
1
  import { h as Specification, e as SpecStatus, S as SpecAnalysis, g as SpecValidationResult, f as SpecTemplate, b as SpecRequirement } from '../spec-TBi3Jr6T.js';
2
2
  import { d as TaskGraph, e as TaskNode, i as TaskFilter, j as TaskSort, c as TaskProgress, T as TaskType, a as TaskPriority } from '../task-graph-u1q9Jkyk.js';
3
- import { E as EventBus, B as BrainArbiter } from '../brain-CCfuEOdp.js';
4
- import { h as Agent, i as AgentFactory, g as TaskResult, D as DoneCondition } from '../agent-subagent-runner-BimKihiC.js';
5
- import { W as WorktreeManager } from '../worktree-manager-C4YIf1Fa.js';
6
- import '../context-DPlA6kid.js';
7
- import '../index-DJXj-dcr.js';
3
+ import { E as EventBus, B as BrainArbiter } from '../events-Bs2fmldo.js';
4
+ import { h as Agent, i as AgentFactory, g as TaskResult, D as DoneCondition } from '../agent-subagent-runner-PoqNKiR4.js';
5
+ import { W as WorktreeManager } from '../worktree-manager-BjOFF6bt.js';
6
+ import '../tool-BkOgs_KL.js';
7
+ import '../permission-Dx6dIqS2.js';
8
+ import '../index-kidebiDh.js';
8
9
  import '../logger-B63L5bTg.js';
9
- import '../pipeline-CEjBjzVA.js';
10
- import '../mailbox-types-DTl7bRH3.js';
11
- import '../config-DAOjriz9.js';
10
+ import '../pipeline-BwAP21_4.js';
11
+ import '../mailbox-types-BGZWrYTJ.js';
12
+ import '../config-Cr3312zc.js';
12
13
  import '../observability-D-HZN_mF.js';
13
- import '../permission-DbsGOA1C.js';
14
- import '../retry-policy-Git9WF6d.js';
14
+ import '../secret-scrubber-3MHDDAtm.js';
15
+ import '../retry-policy-D4feSLk3.js';
15
16
 
16
17
  interface TaskStore {
17
18
  saveGraph(graph: TaskGraph): Promise<void>;
package/dist/sdd/index.js CHANGED
@@ -7039,7 +7039,7 @@ var SddParallelRun = class {
7039
7039
  disabledTools: ["delegate"],
7040
7040
  ...model ? { model } : {},
7041
7041
  ...provider ? { provider } : {},
7042
- ...fallbackModels && fallbackModels.length ? { fallbackModels } : {}
7042
+ ...fallbackModels?.length ? { fallbackModels } : {}
7043
7043
  });
7044
7044
  if (!spawnResult.subagentId) {
7045
7045
  throw new SddError({
@@ -9149,7 +9149,7 @@ function readBundledInstructionText(relativePath) {
9149
9149
  function renderInstructionTemplate(template, values) {
9150
9150
  return template.replace(
9151
9151
  /\{\{\s*([a-zA-Z0-9_.-]+)\s*\}\}/g,
9152
- (match, key) => Object.prototype.hasOwnProperty.call(values, key) ? values[key] ?? "" : match
9152
+ (match, key) => Object.hasOwn(values, key) ? values[key] ?? "" : match
9153
9153
  );
9154
9154
  }
9155
9155
  function instructionRootCandidates() {