@wrongstack/core 0.236.0 → 0.255.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 (49) hide show
  1. package/dist/{agent-bridge-Cimv7bK7.d.ts → agent-bridge-l_DsFEbr.d.ts} +1 -1
  2. package/dist/{agent-subagent-runner-C658wj_c.d.ts → agent-subagent-runner-DhYLgAJo.d.ts} +4 -4
  3. package/dist/{brain-sCZ3lCjq.d.ts → brain-BaQsRNka.d.ts} +17 -0
  4. package/dist/{config-Koq6f3fs.d.ts → config-eSsrto5d.d.ts} +6 -0
  5. package/dist/coordination/index.d.ts +11 -11
  6. package/dist/coordination/index.js +137 -3
  7. package/dist/coordination/index.js.map +1 -1
  8. package/dist/defaults/index.d.ts +14 -14
  9. package/dist/defaults/index.js +8 -10
  10. package/dist/defaults/index.js.map +1 -1
  11. package/dist/execution/index.d.ts +8 -8
  12. package/dist/execution/index.js +5 -3
  13. package/dist/execution/index.js.map +1 -1
  14. package/dist/extension/index.d.ts +4 -4
  15. package/dist/{goal-preamble-CnbzyVvl.d.ts → goal-preamble-BgoPmZ8l.d.ts} +5 -5
  16. package/dist/{index-BlMqh5GO.d.ts → index-BilZMsOK.d.ts} +4 -4
  17. package/dist/{index-C2eSNPsB.d.ts → index-Csoc_bKs.d.ts} +3 -3
  18. package/dist/index.d.ts +26 -26
  19. package/dist/index.js +168 -19
  20. package/dist/index.js.map +1 -1
  21. package/dist/infrastructure/index.d.ts +4 -4
  22. package/dist/infrastructure/index.js +12 -0
  23. package/dist/infrastructure/index.js.map +1 -1
  24. package/dist/kernel/index.d.ts +5 -5
  25. package/dist/kernel/index.js.map +1 -1
  26. package/dist/{mcp-servers-DFbirBv6.d.ts → mcp-servers-DfXxCASH.d.ts} +1 -1
  27. package/dist/models/index.d.ts +2 -2
  28. package/dist/{models-registry-CnJRjTXc.d.ts → models-registry-DpanBg8D.d.ts} +1 -1
  29. package/dist/{multi-agent-coordinator-60weDZoA.d.ts → multi-agent-coordinator-Bs-M0Mo6.d.ts} +1 -1
  30. package/dist/{null-fleet-bus-1068dEnr.d.ts → null-fleet-bus-CWdU1_cO.d.ts} +5 -5
  31. package/dist/observability/index.d.ts +1 -1
  32. package/dist/{package-outdated-watcher-pzJ5w7y8.d.ts → package-outdated-watcher-Dz-eNZlQ.d.ts} +23 -2
  33. package/dist/{parallel-eternal-engine-DtG1fjc9.d.ts → parallel-eternal-engine-CAMabk-X.d.ts} +5 -5
  34. package/dist/{path-resolver-CA1ULU0J.d.ts → path-resolver-B7VjhUHq.d.ts} +2 -2
  35. package/dist/{pipeline-DsmlwTXu.d.ts → pipeline-Bxa3wDcy.d.ts} +42 -2
  36. package/dist/{plan-templates-DPABrDvy.d.ts → plan-templates-D3guWwTi.d.ts} +2 -2
  37. package/dist/{provider-runner-D0HgUqwV.d.ts → provider-runner-C8_e4Lo1.d.ts} +1 -1
  38. package/dist/sdd/index.d.ts +5 -5
  39. package/dist/sdd/index.js +6 -8
  40. package/dist/sdd/index.js.map +1 -1
  41. package/dist/storage/index.d.ts +6 -6
  42. package/dist/storage/index.js.map +1 -1
  43. package/dist/types/index.d.ts +12 -12
  44. package/dist/types/index.js +17 -3
  45. package/dist/types/index.js.map +1 -1
  46. package/dist/utils/index.d.ts +11 -2
  47. package/dist/utils/index.js +8 -1
  48. package/dist/utils/index.js.map +1 -1
  49. package/package.json +2 -2
@@ -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) {
@@ -833,8 +838,10 @@ function buildChildEnv(optsOrSessionId) {
833
838
  );
834
839
  }
835
840
  const out = {};
841
+ const nodeEnvDefaulted = process.env["WRONGSTACK_NODE_ENV_DEFAULTED"] === "1";
836
842
  for (const [k, v] of Object.entries(process.env)) {
837
843
  if (v === void 0) continue;
844
+ if (nodeEnvDefaulted && (k === "NODE_ENV" || k === "WRONGSTACK_NODE_ENV_DEFAULTED")) continue;
838
845
  if (passthrough) {
839
846
  out[k] = v;
840
847
  continue;
@@ -1651,6 +1658,6 @@ function mergeCustomModelDefs(providerCustomModels, configModels) {
1651
1658
  return out;
1652
1659
  }
1653
1660
 
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 };
1661
+ 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
1662
  //# sourceMappingURL=index.js.map
1656
1663
  //# sourceMappingURL=index.js.map