@wrongstack/core 0.236.0 → 0.250.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 (43) hide show
  1. package/dist/{agent-bridge-Cimv7bK7.d.ts → agent-bridge-4gc0vfW2.d.ts} +1 -1
  2. package/dist/{agent-subagent-runner-C658wj_c.d.ts → agent-subagent-runner-Dz-9kiE6.d.ts} +3 -3
  3. package/dist/{config-Koq6f3fs.d.ts → config-eSsrto5d.d.ts} +6 -0
  4. package/dist/coordination/index.d.ts +10 -10
  5. package/dist/coordination/index.js +5 -3
  6. package/dist/coordination/index.js.map +1 -1
  7. package/dist/defaults/index.d.ts +12 -12
  8. package/dist/defaults/index.js +8 -10
  9. package/dist/defaults/index.js.map +1 -1
  10. package/dist/execution/index.d.ts +7 -7
  11. package/dist/execution/index.js +5 -3
  12. package/dist/execution/index.js.map +1 -1
  13. package/dist/extension/index.d.ts +3 -3
  14. package/dist/{goal-preamble-CnbzyVvl.d.ts → goal-preamble-BjJpnLW4.d.ts} +4 -4
  15. package/dist/{index-BlMqh5GO.d.ts → index-Dy8OwfBD.d.ts} +2 -2
  16. package/dist/{index-C2eSNPsB.d.ts → index-IehiNryU.d.ts} +2 -2
  17. package/dist/index.d.ts +22 -22
  18. package/dist/index.js +18 -16
  19. package/dist/index.js.map +1 -1
  20. package/dist/infrastructure/index.d.ts +3 -3
  21. package/dist/kernel/index.d.ts +3 -3
  22. package/dist/{mcp-servers-DFbirBv6.d.ts → mcp-servers-DfXxCASH.d.ts} +1 -1
  23. package/dist/models/index.d.ts +2 -2
  24. package/dist/{models-registry-CnJRjTXc.d.ts → models-registry-DpanBg8D.d.ts} +1 -1
  25. package/dist/{multi-agent-coordinator-60weDZoA.d.ts → multi-agent-coordinator-CnbEqpv0.d.ts} +1 -1
  26. package/dist/{null-fleet-bus-1068dEnr.d.ts → null-fleet-bus-Do1OLYpj.d.ts} +4 -4
  27. package/dist/{package-outdated-watcher-pzJ5w7y8.d.ts → package-outdated-watcher-CA5GGB4C.d.ts} +1 -1
  28. package/dist/{parallel-eternal-engine-DtG1fjc9.d.ts → parallel-eternal-engine-UZg1xOzE.d.ts} +4 -4
  29. package/dist/{path-resolver-CA1ULU0J.d.ts → path-resolver-BaP06Owy.d.ts} +1 -1
  30. package/dist/{pipeline-DsmlwTXu.d.ts → pipeline-D1n-gQI-.d.ts} +1 -1
  31. package/dist/{plan-templates-DPABrDvy.d.ts → plan-templates-BUVRY0pU.d.ts} +1 -1
  32. package/dist/sdd/index.d.ts +4 -4
  33. package/dist/sdd/index.js +6 -8
  34. package/dist/sdd/index.js.map +1 -1
  35. package/dist/storage/index.d.ts +5 -5
  36. package/dist/storage/index.js.map +1 -1
  37. package/dist/types/index.d.ts +10 -10
  38. package/dist/types/index.js +5 -3
  39. package/dist/types/index.js.map +1 -1
  40. package/dist/utils/index.d.ts +11 -2
  41. package/dist/utils/index.js +6 -1
  42. package/dist/utils/index.js.map +1 -1
  43. package/package.json +1 -1
@@ -2,7 +2,7 @@ import { s as TodoItem, M as Message, J as JSONSchema } from '../context-CLz3z_E
2
2
  export { T as TaskItem, c as computeTaskItemProgress, f as formatTaskList, a as formatTaskProgress } from '../task-format-vGOIftmK.js';
3
3
  export { a as WstackPathOptions, W as WstackPaths, p as projectHash, b as projectSlug, r as resolveWstackPaths, w as wstackGlobalRoot } from '../wstack-paths-CJjEwPXn.js';
4
4
  export { expectDefined } from './expect-defined.js';
5
- import { a as ModelsDevPayload, t as CustomModelDefinition } from '../config-Koq6f3fs.js';
5
+ import { a as ModelsDevPayload, t as CustomModelDefinition } from '../config-eSsrto5d.js';
6
6
  export { a as TaskPriority, b as TaskStatus, T as TaskType } from '../task-graph-u1q9Jkyk.js';
7
7
 
8
8
  interface AtomicWriteOptions {
@@ -209,6 +209,15 @@ declare function writeErr(s: string, stream?: NodeJS.WriteStream): boolean;
209
209
  */
210
210
  declare function formatTodosList(todos: TodoItem[]): string;
211
211
 
212
+ /**
213
+ * String utilities shared across the WrongStack codebase.
214
+ */
215
+ /**
216
+ * Truncate a string to at most `max` characters, appending an ellipsis if it
217
+ * was longer. Returns the original string unchanged when it fits.
218
+ */
219
+ declare function truncate(s: string, max: number): string;
220
+
212
221
  declare function compileGlob(pattern: string): RegExp;
213
222
  declare function matchGlob(pattern: string, input: string): boolean;
214
223
  declare function matchAny(patterns: string[], input: string): boolean;
@@ -593,4 +602,4 @@ declare function mergeModelsPayload(base: ModelsDevPayload, overlay: ModelsDevPa
593
602
  */
594
603
  declare function mergeCustomModelDefs(providerCustomModels: Record<string, CustomModelDefinition> | undefined, configModels: Record<string, CustomModelDefinition> | undefined): Record<string, CustomModelDefinition> | undefined;
595
604
 
596
- export { type AtomicWriteOptions, type BuildChildEnvOptions, type CompileFail, type CompileResult, type DeepMergeOptions, FORBIDDEN_PROTO_KEYS, type FileLockOptions, type MessageRepairReport, type MessageRepairResult, type NewlineStyle, type OutputLineGuard, type RequestTokenBreakdown, type SafeParseResult, type ToolOutputSerializerOptions, type UnifiedDiffOptions, type ValidationError, type ValidationResult, assertNever, atomicWrite, buildChildEnv, color, compileGlob, compileUserRegex, completePartialObject, computeMessageTokens, createToolOutputSerializer, deepMerge, detectNewlineStyle, ensureDir, estimateMessageTokens, estimateRequestTokens, estimateRequestTokensCalibrated, estimateTextTokens, estimateToolDefTokens, estimateToolInputTokens, estimateToolResultTokens, expandGlob, formatTodosList, getCalibrationState, getTermSize, isInteractive, isPrimitiveArray, isStdinTTY, isStdoutTTY, matchAny, matchGlob, mergeCustomModelDefs, mergeModelsPayload, normalizeToLf, onResize, recordActualUsage, repairToolUseAdjacency, resetCalibration, safeParse, safeStringify, sanitizeJsonString, setOutputLineGuard, setRawMode, sleep, stripAnsi, toStyle, unifiedDiff, validateAgainstSchema, withFileLock, writeErr, writeOut };
605
+ export { type AtomicWriteOptions, type BuildChildEnvOptions, type CompileFail, type CompileResult, type DeepMergeOptions, FORBIDDEN_PROTO_KEYS, type FileLockOptions, type MessageRepairReport, type MessageRepairResult, type NewlineStyle, type OutputLineGuard, type RequestTokenBreakdown, type SafeParseResult, type ToolOutputSerializerOptions, type UnifiedDiffOptions, type ValidationError, type ValidationResult, assertNever, atomicWrite, buildChildEnv, color, compileGlob, compileUserRegex, completePartialObject, computeMessageTokens, createToolOutputSerializer, deepMerge, detectNewlineStyle, ensureDir, estimateMessageTokens, estimateRequestTokens, estimateRequestTokensCalibrated, estimateTextTokens, estimateToolDefTokens, estimateToolInputTokens, estimateToolResultTokens, expandGlob, formatTodosList, getCalibrationState, getTermSize, isInteractive, isPrimitiveArray, isStdinTTY, isStdoutTTY, matchAny, matchGlob, mergeCustomModelDefs, mergeModelsPayload, normalizeToLf, onResize, recordActualUsage, repairToolUseAdjacency, resetCalibration, safeParse, safeStringify, sanitizeJsonString, setOutputLineGuard, setRawMode, sleep, stripAnsi, toStyle, truncate, unifiedDiff, validateAgainstSchema, withFileLock, writeErr, writeOut };
@@ -473,6 +473,11 @@ function formatTaskList(tasks) {
473
473
  return lines.join("\n");
474
474
  }
475
475
 
476
+ // src/utils/string.ts
477
+ function truncate(s, max) {
478
+ return s.length <= max ? s : `${s.slice(0, max - 1)}\u2026`;
479
+ }
480
+
476
481
  // src/utils/expect-defined.ts
477
482
  function expectDefined(value, label) {
478
483
  if (value === null || value === void 0) {
@@ -1651,6 +1656,6 @@ function mergeCustomModelDefs(providerCustomModels, configModels) {
1651
1656
  return out;
1652
1657
  }
1653
1658
 
1654
- export { FORBIDDEN_PROTO_KEYS, assertNever, atomicWrite, buildChildEnv, color, compileGlob, compileUserRegex, completePartialObject, computeMessageTokens, computeTaskItemProgress, createToolOutputSerializer, deepMerge, detectNewlineStyle, ensureDir, estimateMessageTokens, estimateRequestTokens, estimateRequestTokensCalibrated, estimateTextTokens, estimateToolDefTokens, estimateToolInputTokens, estimateToolResultTokens, expandGlob, expectDefined, formatTaskList, formatTaskProgress, formatTodosList, getCalibrationState, getTermSize, isInteractive, isPrimitiveArray, isStdinTTY, isStdoutTTY, matchAny, matchGlob, mergeCustomModelDefs, mergeModelsPayload, normalizeToLf, onResize, projectHash, projectSlug, recordActualUsage, repairToolUseAdjacency, resetCalibration, resolveWstackPaths, safeParse, safeStringify, sanitizeJsonString, setOutputLineGuard, setRawMode, sleep, stripAnsi, toStyle, unifiedDiff, validateAgainstSchema, withFileLock, writeErr, writeOut, wstackGlobalRoot };
1659
+ export { FORBIDDEN_PROTO_KEYS, assertNever, atomicWrite, buildChildEnv, color, compileGlob, compileUserRegex, completePartialObject, computeMessageTokens, computeTaskItemProgress, createToolOutputSerializer, deepMerge, detectNewlineStyle, ensureDir, estimateMessageTokens, estimateRequestTokens, estimateRequestTokensCalibrated, estimateTextTokens, estimateToolDefTokens, estimateToolInputTokens, estimateToolResultTokens, expandGlob, expectDefined, formatTaskList, formatTaskProgress, formatTodosList, getCalibrationState, getTermSize, isInteractive, isPrimitiveArray, isStdinTTY, isStdoutTTY, matchAny, matchGlob, mergeCustomModelDefs, mergeModelsPayload, normalizeToLf, onResize, projectHash, projectSlug, recordActualUsage, repairToolUseAdjacency, resetCalibration, resolveWstackPaths, safeParse, safeStringify, sanitizeJsonString, setOutputLineGuard, setRawMode, sleep, stripAnsi, toStyle, truncate, unifiedDiff, validateAgainstSchema, withFileLock, writeErr, writeOut, wstackGlobalRoot };
1655
1660
  //# sourceMappingURL=index.js.map
1656
1661
  //# sourceMappingURL=index.js.map