@wrongstack/core 0.282.0 → 0.282.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 (84) hide show
  1. package/README.md +1 -1
  2. package/dist/{agent-subagent-runner-Dksf0QVU.d.ts → agent-subagent-runner-DCczSoQj.d.ts} +6 -6
  3. package/dist/{config-BCAEJicb.d.ts → config-DkCbA3Bw.d.ts} +22 -0
  4. package/dist/coordination/index.d.ts +15 -15
  5. package/dist/coordination/index.js +802 -139
  6. package/dist/coordination/index.js.map +1 -1
  7. package/dist/{default-config-azFprTB3.d.ts → default-config-Buho8yge.d.ts} +1 -0
  8. package/dist/defaults/index.d.ts +18 -18
  9. package/dist/defaults/index.js +811 -119
  10. package/dist/defaults/index.js.map +1 -1
  11. package/dist/{events-CovDylaH.d.ts → events-BOv8h6I1.d.ts} +1 -1
  12. package/dist/execution/index.d.ts +9 -9
  13. package/dist/execution/index.js +8 -1
  14. package/dist/execution/index.js.map +1 -1
  15. package/dist/extension/index.d.ts +4 -4
  16. package/dist/{global-mailbox-CNfgvRw3.d.ts → global-mailbox-MDDFhLYh.d.ts} +1 -1
  17. package/dist/{goal-store-CBd749M4.d.ts → goal-store-BEmDmSKF.d.ts} +1 -1
  18. package/dist/hq/index.d.ts +4 -4
  19. package/dist/{index-D5HB7WkV.d.ts → index-Dd-PJJ8A.d.ts} +3 -3
  20. package/dist/index.d.ts +209 -30
  21. package/dist/index.js +29562 -28136
  22. package/dist/index.js.map +1 -1
  23. package/dist/infrastructure/index.d.ts +3 -3
  24. package/dist/infrastructure/index.js +8 -0
  25. package/dist/infrastructure/index.js.map +1 -1
  26. package/dist/kernel/index.d.ts +7 -7
  27. package/dist/kernel/index.js.map +1 -1
  28. package/dist/{mcp-servers-DJYwZXyH.d.ts → mcp-servers-BUx9A_AQ.d.ts} +1 -1
  29. package/dist/models/index.d.ts +4 -4
  30. package/dist/models/index.js +18 -20
  31. package/dist/models/index.js.map +1 -1
  32. package/dist/{multi-agent-coordinator-4DC31QWu.d.ts → multi-agent-coordinator-BRqtpn-a.d.ts} +1 -1
  33. package/dist/{null-fleet-bus-DuvA8PIR.d.ts → null-fleet-bus-BkptvIVo.d.ts} +7 -6
  34. package/dist/observability/index.d.ts +1 -1
  35. package/dist/{parallel-eternal-engine-BwcA0bAt.d.ts → parallel-eternal-engine-BXECuOVG.d.ts} +4 -4
  36. package/dist/{pipeline-DM-CPTUs.d.ts → pipeline-ixSFe5jg.d.ts} +2 -2
  37. package/dist/{provider-model-resolve-hNUbewMd.d.ts → provider-model-resolve-DIxKL_T-.d.ts} +1 -1
  38. package/dist/{provider-runner-Bz4GyUqo.d.ts → provider-runner-CJtCs1Rw.d.ts} +1 -1
  39. package/dist/sdd/index.d.ts +7 -7
  40. package/dist/sdd/index.js.map +1 -1
  41. package/dist/security/index.js +6 -0
  42. package/dist/security/index.js.map +1 -1
  43. package/dist/storage/index.d.ts +9 -9
  44. package/dist/storage/index.js +10 -1
  45. package/dist/storage/index.js.map +1 -1
  46. package/dist/{task-format-vGOIftmK.d.ts → task-format-GX0B1mMC.d.ts} +1 -1
  47. package/dist/{task-graph-u1q9Jkyk.d.ts → task-graph-CH3acNQ7.d.ts} +10 -1
  48. package/dist/{todos-checkpoint-addCdQ9f.d.ts → todos-checkpoint-Bw83WMh9.d.ts} +2 -2
  49. package/dist/{tool-executor-B3spV_Q6.d.ts → tool-executor-4mWN2vHW.d.ts} +7 -7
  50. package/dist/tools/index.d.ts +1 -1
  51. package/dist/tools/index.js +8 -0
  52. package/dist/tools/index.js.map +1 -1
  53. package/dist/types/index.d.ts +12 -12
  54. package/dist/types/index.js +22 -1
  55. package/dist/types/index.js.map +1 -1
  56. package/dist/utils/index.d.ts +5 -5
  57. package/dist/utils/index.js.map +1 -1
  58. package/dist/{worktree-manager-BBXdJq-Y.d.ts → worktree-manager-BrtjUFYk.d.ts} +1 -1
  59. package/instructions/leader-after-task.md +4 -4
  60. package/instructions/system.md +11 -0
  61. package/package.json +1 -1
  62. package/skills/api-design/SKILL.md +1 -1
  63. package/skills/audit-log/SKILL.md +3 -3
  64. package/skills/bug-hunter/SKILL.md +3 -3
  65. package/skills/chimera/SKILL.md +3 -3
  66. package/skills/docker-deploy/SKILL.md +1 -1
  67. package/skills/git-flow/SKILL.md +3 -3
  68. package/skills/mailbox-bridge/SKILL.md +1 -1
  69. package/skills/multi-agent/SKILL.md +3 -3
  70. package/skills/node-modern/SKILL.md +1 -1
  71. package/skills/observability/SKILL.md +1 -1
  72. package/skills/output-standards/SKILL.md +31 -30
  73. package/skills/output-standards/SKILL.save.md +5 -5
  74. package/skills/plugin-author/SKILL.md +1 -1
  75. package/skills/prompt-engineering/SKILL.md +1 -1
  76. package/skills/react-modern/SKILL.md +1 -1
  77. package/skills/refactor-planner/SKILL.md +3 -3
  78. package/skills/research-web/SKILL.md +1 -1
  79. package/skills/sdd/SKILL.md +1 -1
  80. package/skills/security-scanner/SKILL.md +3 -3
  81. package/skills/skill-creator/SKILL.md +1 -1
  82. package/skills/tech-stack/SKILL.md +3 -3
  83. package/skills/testing/SKILL.md +1 -1
  84. package/skills/typescript-strict/SKILL.md +1 -1
@@ -1,7 +1,7 @@
1
1
  import { C as Compactor } from './compactor-BxddyCFu.js';
2
2
  import { M as Message, g as Tool } from './tool-LVSLiE1s.js';
3
3
  import { L as Logger, a as LogLevel } from './logger-B63L5bTg.js';
4
- import { b as MCPServerConfig } from './config-BCAEJicb.js';
4
+ import { b as MCPServerConfig } from './config-DkCbA3Bw.js';
5
5
 
6
6
  type ContextManagerAction = 'check' | 'summary' | 'prune' | 'add_note' | 'compact' | 'repair';
7
7
  interface ContextManagerInput {
@@ -1,5 +1,5 @@
1
- export { C as CODEX_MODELS, a as CodexModelMeta, D as DefaultModeStore, b as DefaultModelsRegistry, c as DefaultModelsRegistryOptions, L as LLMSelector, d as LLMSelectorOptions, M as ModeLoaderOptions, P as ProviderModelDescriptor, e as classifyFamily, f as codexModelMeta, g as describeCatalogModel, l as loadProjectModes, h as loadUserModes, r as resolveProviderModelList } from '../provider-model-resolve-hNUbewMd.js';
2
- import { a as ModelMatrixEntry, P as ProviderConfig } from '../config-BCAEJicb.js';
1
+ export { C as CODEX_MODELS, a as CodexModelMeta, D as DefaultModeStore, b as DefaultModelsRegistry, c as DefaultModelsRegistryOptions, L as LLMSelector, d as LLMSelectorOptions, M as ModeLoaderOptions, P as ProviderModelDescriptor, e as classifyFamily, f as codexModelMeta, g as describeCatalogModel, l as loadProjectModes, h as loadUserModes, r as resolveProviderModelList } from '../provider-model-resolve-DIxKL_T-.js';
2
+ import { a as ModelMatrixEntry, P as ProviderConfig } from '../config-DkCbA3Bw.js';
3
3
  import '../tool-LVSLiE1s.js';
4
4
  import '../selector-Bx2HgUkU.js';
5
5
  import '../mode-CZlO9iU1.js';
@@ -20,7 +20,7 @@ import '../mode-CZlO9iU1.js';
20
20
  interface ModelProfile {
21
21
  /** Provider id (e.g. "anthropic", "openai"). */
22
22
  provider: string;
23
- /** Model id regex — matches partial ids (e.g. "claude-sonnet" matches "claude-sonnet-4-20250514"). */
23
+ /** Model id regex — matches partial ids for a model family. */
24
24
  pattern: RegExp;
25
25
  /** Human-readable model family name. */
26
26
  family: string;
@@ -72,7 +72,7 @@ declare function scoreModelForTask(profile: ModelProfile | undefined, taskType:
72
72
  * Usage:
73
73
  * const router = new ModelRouter({ matrix, config, profiles: MODEL_PROFILES });
74
74
  * const pick = router.pickForTask('security-scanner', 'Audit the auth module');
75
- * // → { provider: 'anthropic', model: 'claude-sonnet-...', reason: 'best-for security' }
75
+ * // → { provider: 'anthropic', model: 'matched-model', reason: 'best-for security' }
76
76
  */
77
77
 
78
78
  interface ModelIntelligenceEntry {
@@ -284,10 +284,19 @@ var FAMILY_BY_NPM = {
284
284
  "@ai-sdk/deepseek": "openai-compatible",
285
285
  "@ai-sdk/google": "google"
286
286
  };
287
+ var FAMILY_BY_PROVIDER_ID = {
288
+ "anthropic-oauth": "anthropic-oauth",
289
+ "github-copilot": "github-copilot",
290
+ "openai-codex": "openai-codex"
291
+ };
287
292
  function classifyFamily(npm) {
288
293
  if (!npm) return "unsupported";
289
294
  return FAMILY_BY_NPM[npm] ?? "unsupported";
290
295
  }
296
+ function classifyProviderFamily(p) {
297
+ const byNpm = classifyFamily(p.npm);
298
+ return byNpm !== "unsupported" ? byNpm : FAMILY_BY_PROVIDER_ID[p.id] ?? "unsupported";
299
+ }
291
300
  var DefaultModelsRegistry = class {
292
301
  /** Merged (base + overlay) payload — what every reader sees. */
293
302
  payload;
@@ -553,7 +562,7 @@ var DefaultModelsRegistry = class {
553
562
  return {
554
563
  id: p.id,
555
564
  name: p.name,
556
- family: classifyFamily(p.npm),
565
+ family: classifyProviderFamily(p),
557
566
  apiBase: p.api,
558
567
  envVars: p.env ?? [],
559
568
  doc: p.doc,
@@ -947,7 +956,14 @@ IMPORTANT: Total conversation (${totalTokens} tokens) exceeds budget (${effectiv
947
956
  raw = textBlocks.map((b) => b.text).join("\n").trim();
948
957
  } catch (err) {
949
958
  if (err instanceof Error) {
950
- console.warn("[LLMSelector] selector call failed, using recency fallback:", err.message);
959
+ console.warn(
960
+ JSON.stringify({
961
+ level: "warn",
962
+ event: "llm_selector.call_failed",
963
+ message: `selector call failed, using recency fallback: ${err.message}`,
964
+ timestamp: (/* @__PURE__ */ new Date()).toISOString()
965
+ })
966
+ );
951
967
  }
952
968
  return this.fallbackSelect(messages, effectiveBudget);
953
969
  } finally {
@@ -1135,15 +1151,6 @@ var MODEL_PROFILES = [
1135
1151
  costTier: "premium",
1136
1152
  speedTier: "slow"
1137
1153
  },
1138
- {
1139
- provider: "anthropic",
1140
- pattern: /claude-sonnet/i,
1141
- family: "Claude Sonnet",
1142
- strengths: ["coding", "balanced reasoning", "tool use", "fast iteration"],
1143
- bestFor: ["coding", "refactoring", "backend", "general"],
1144
- costTier: "standard",
1145
- speedTier: "fast"
1146
- },
1147
1154
  {
1148
1155
  provider: "anthropic",
1149
1156
  pattern: /claude-haiku/i,
@@ -1304,15 +1311,6 @@ var DEFAULT_PROFILES = [
1304
1311
  costTier: "premium",
1305
1312
  speedTier: "slow"
1306
1313
  },
1307
- {
1308
- provider: "anthropic",
1309
- pattern: /claude-sonnet/i,
1310
- family: "Claude Sonnet",
1311
- strengths: ["coding", "balanced"],
1312
- bestFor: ["coding", "general"],
1313
- costTier: "standard",
1314
- speedTier: "fast"
1315
- },
1316
1314
  {
1317
1315
  provider: "anthropic",
1318
1316
  pattern: /claude-haiku/i,