@wrongstack/core 0.51.3 → 0.63.4

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 (62) hide show
  1. package/dist/{agent-bridge-CjbD-i7-.d.ts → agent-bridge-B5rxWrg3.d.ts} +1 -1
  2. package/dist/{agent-subagent-runner-DfvlBx5N.d.ts → agent-subagent-runner-Zc3f37Sg.d.ts} +3 -3
  3. package/dist/{compactor-D1RHFRmF.d.ts → compactor-0vjZ8KTk.d.ts} +1 -1
  4. package/dist/{config-ZRCf7sTu.d.ts → config-BdDuaZmB.d.ts} +143 -2
  5. package/dist/{context-7u93AcGD.d.ts → context-iFMEO2rN.d.ts} +9 -8
  6. package/dist/coordination/index.d.ts +12 -12
  7. package/dist/coordination/index.js.map +1 -1
  8. package/dist/defaults/index.d.ts +22 -22
  9. package/dist/defaults/index.js +285 -108
  10. package/dist/defaults/index.js.map +1 -1
  11. package/dist/{events-Bt44ikPN.d.ts → events-k8CHjcrN.d.ts} +20 -1
  12. package/dist/execution/index.d.ts +14 -14
  13. package/dist/execution/index.js +70 -10
  14. package/dist/execution/index.js.map +1 -1
  15. package/dist/extension/index.d.ts +7 -7
  16. package/dist/{goal-store-BeRsj7YX.d.ts → goal-store-iHltMi5n.d.ts} +1 -1
  17. package/dist/{index-mAWBdLyJ.d.ts → index-Bc6BiP5q.d.ts} +77 -6
  18. package/dist/{index-OzA1XjHL.d.ts → index-CWdW_CJt.d.ts} +10 -8
  19. package/dist/index.d.ts +58 -34
  20. package/dist/index.js +587 -100
  21. package/dist/index.js.map +1 -1
  22. package/dist/infrastructure/index.d.ts +6 -6
  23. package/dist/infrastructure/index.js +1 -1
  24. package/dist/infrastructure/index.js.map +1 -1
  25. package/dist/kernel/index.d.ts +9 -9
  26. package/dist/kernel/index.js +3 -1
  27. package/dist/kernel/index.js.map +1 -1
  28. package/dist/{mcp-servers-DONdo-XM.d.ts → mcp-servers-CwqQDMYy.d.ts} +3 -3
  29. package/dist/models/index.d.ts +3 -3
  30. package/dist/models/index.js +31 -16
  31. package/dist/models/index.js.map +1 -1
  32. package/dist/{models-registry-gwMAo6E3.d.ts → models-registry-Cuq1C8V9.d.ts} +7 -0
  33. package/dist/{multi-agent-Ba9Ni2hC.d.ts → multi-agent-SASYOrWA.d.ts} +2 -2
  34. package/dist/{multi-agent-coordinator-BuKq0q89.d.ts → multi-agent-coordinator-CNUJYq7U.d.ts} +2 -2
  35. package/dist/{null-fleet-bus-C0xd73YP.d.ts → null-fleet-bus-DRoJ0uOY.d.ts} +7 -7
  36. package/dist/observability/index.d.ts +2 -2
  37. package/dist/{path-resolver-nkmdiFgi.d.ts → path-resolver-C5sPVne8.d.ts} +2 -2
  38. package/dist/{permission-B6sldrSp.d.ts → permission-Ld-i5ugf.d.ts} +13 -1
  39. package/dist/{permission-policy-CtNscWOA.d.ts → permission-policy-CL-mPufp.d.ts} +14 -7
  40. package/dist/{plan-templates-BmDdJ7UL.d.ts → plan-templates-ThBHOjaM.d.ts} +4 -4
  41. package/dist/{provider-runner-BGro2qQB.d.ts → provider-runner-DJQa211J.d.ts} +3 -3
  42. package/dist/{retry-policy-KF18W4dg.d.ts → retry-policy-BfBScewS.d.ts} +1 -1
  43. package/dist/sdd/index.d.ts +9 -9
  44. package/dist/sdd/index.js +1 -1
  45. package/dist/sdd/index.js.map +1 -1
  46. package/dist/security/index.d.ts +3 -3
  47. package/dist/security/index.js +115 -13
  48. package/dist/security/index.js.map +1 -1
  49. package/dist/{selector-DmXxpFyM.d.ts → selector-DxhW7ML3.d.ts} +1 -1
  50. package/dist/{session-reader-bfgsy2a0.d.ts → session-reader-q2ThszgG.d.ts} +1 -1
  51. package/dist/storage/index.d.ts +6 -6
  52. package/dist/storage/index.js +57 -37
  53. package/dist/storage/index.js.map +1 -1
  54. package/dist/{system-prompt-CM6zOhd2.d.ts → system-prompt-7LHyBbIf.d.ts} +32 -2
  55. package/dist/{tool-executor-p4tP9tGF.d.ts → tool-executor-CIjpGaRA.d.ts} +5 -4
  56. package/dist/types/index.d.ts +15 -15
  57. package/dist/types/index.js +93 -22
  58. package/dist/types/index.js.map +1 -1
  59. package/dist/utils/index.d.ts +14 -2
  60. package/dist/utils/index.js +18 -1
  61. package/dist/utils/index.js.map +1 -1
  62. package/package.json +1 -1
@@ -1,6 +1,7 @@
1
- import { N as TodoItem, M as Message, J as JSONSchema } from '../context-7u93AcGD.js';
1
+ import { N as TodoItem, M as Message, J as JSONSchema } from '../context-iFMEO2rN.js';
2
2
  export { W as WstackPathOptions, a as WstackPaths, p as projectHash, r as resolveWstackPaths } from '../wstack-paths-eMXnY1_X.js';
3
3
  import { M as ModelsDevPayload } from '../models-registry-BcYJDKLm.js';
4
+ import { k as CustomModelDefinition } from '../config-BdDuaZmB.js';
4
5
 
5
6
  interface AtomicWriteOptions {
6
7
  mode?: number;
@@ -477,4 +478,15 @@ declare function completePartialObject(s: string): string;
477
478
  */
478
479
  declare function mergeModelsPayload(base: ModelsDevPayload, overlay: ModelsDevPayload): ModelsDevPayload;
479
480
 
480
- export { type AtomicWriteOptions, type BuildChildEnvOptions, type CompileFail, type CompileResult, type MessageRepairReport, type MessageRepairResult, type NewlineStyle, type RequestTokenBreakdown, type SafeParseResult, type ToolOutputSerializerOptions, type UnifiedDiffOptions, type ValidationError, type ValidationResult, atomicWrite, buildChildEnv, color, compileGlob, compileUserRegex, completePartialObject, createToolOutputSerializer, detectNewlineStyle, ensureDir, estimateRequestTokens, estimateRequestTokensCalibrated, estimateTextTokens, estimateToolDefTokens, estimateToolInputTokens, estimateToolResultTokens, expandGlob, formatTodosList, getCalibrationState, getTermSize, isInteractive, isStdinTTY, isStdoutTTY, matchAny, matchGlob, mergeModelsPayload, normalizeToLf, onResize, recordActualUsage, repairToolUseAdjacency, resetCalibration, safeParse, safeStringify, sanitizeJsonString, setRawMode, stripAnsi, toStyle, unifiedDiff, validateAgainstSchema, writeErr, writeOut };
481
+ /**
482
+ * Merge per-provider `customModels` into top-level `configModels`.
483
+ *
484
+ * Keys present in `configModels` always win over `providerCustomModels`
485
+ * when the same model id appears in both places. This lets the user
486
+ * override provider-attached definitions from the top-level config.
487
+ *
488
+ * Pure: never mutates its inputs.
489
+ */
490
+ declare function mergeCustomModelDefs(providerCustomModels: Record<string, CustomModelDefinition> | undefined, configModels: Record<string, CustomModelDefinition> | undefined): Record<string, CustomModelDefinition> | undefined;
491
+
492
+ export { type AtomicWriteOptions, type BuildChildEnvOptions, type CompileFail, type CompileResult, type MessageRepairReport, type MessageRepairResult, type NewlineStyle, type RequestTokenBreakdown, type SafeParseResult, type ToolOutputSerializerOptions, type UnifiedDiffOptions, type ValidationError, type ValidationResult, atomicWrite, buildChildEnv, color, compileGlob, compileUserRegex, completePartialObject, createToolOutputSerializer, detectNewlineStyle, ensureDir, estimateRequestTokens, estimateRequestTokensCalibrated, estimateTextTokens, estimateToolDefTokens, estimateToolInputTokens, estimateToolResultTokens, expandGlob, formatTodosList, getCalibrationState, getTermSize, isInteractive, isStdinTTY, isStdoutTTY, matchAny, matchGlob, mergeCustomModelDefs, mergeModelsPayload, normalizeToLf, onResize, recordActualUsage, repairToolUseAdjacency, resetCalibration, safeParse, safeStringify, sanitizeJsonString, setRawMode, stripAnsi, toStyle, unifiedDiff, validateAgainstSchema, writeErr, writeOut };
@@ -1328,6 +1328,23 @@ function stripUndefined(obj) {
1328
1328
  return out;
1329
1329
  }
1330
1330
 
1331
- export { atomicWrite, buildChildEnv, color, compileGlob, compileUserRegex, completePartialObject, createToolOutputSerializer, detectNewlineStyle, ensureDir, estimateRequestTokens, estimateRequestTokensCalibrated, estimateTextTokens, estimateToolDefTokens, estimateToolInputTokens, estimateToolResultTokens, expandGlob, formatTodosList, getCalibrationState, getTermSize, isInteractive, isStdinTTY, isStdoutTTY, matchAny, matchGlob, mergeModelsPayload, normalizeToLf, onResize, projectHash, recordActualUsage, repairToolUseAdjacency, resetCalibration, resolveWstackPaths, safeParse, safeStringify, sanitizeJsonString, setRawMode, stripAnsi, toStyle, unifiedDiff, validateAgainstSchema, writeErr, writeOut };
1331
+ // src/utils/merge-custom-models.ts
1332
+ function mergeCustomModelDefs(providerCustomModels, configModels) {
1333
+ const out = {};
1334
+ if (providerCustomModels) {
1335
+ for (const [id, def] of Object.entries(providerCustomModels)) {
1336
+ out[id] = { ...def };
1337
+ }
1338
+ }
1339
+ if (configModels) {
1340
+ for (const [id, def] of Object.entries(configModels)) {
1341
+ out[id] = { ...def };
1342
+ }
1343
+ }
1344
+ if (Object.keys(out).length === 0) return void 0;
1345
+ return out;
1346
+ }
1347
+
1348
+ export { atomicWrite, buildChildEnv, color, compileGlob, compileUserRegex, completePartialObject, createToolOutputSerializer, detectNewlineStyle, ensureDir, estimateRequestTokens, estimateRequestTokensCalibrated, estimateTextTokens, estimateToolDefTokens, estimateToolInputTokens, estimateToolResultTokens, expandGlob, formatTodosList, getCalibrationState, getTermSize, isInteractive, isStdinTTY, isStdoutTTY, matchAny, matchGlob, mergeCustomModelDefs, mergeModelsPayload, normalizeToLf, onResize, projectHash, recordActualUsage, repairToolUseAdjacency, resetCalibration, resolveWstackPaths, safeParse, safeStringify, sanitizeJsonString, setRawMode, stripAnsi, toStyle, unifiedDiff, validateAgainstSchema, writeErr, writeOut };
1332
1349
  //# sourceMappingURL=index.js.map
1333
1350
  //# sourceMappingURL=index.js.map