@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.
- package/dist/{agent-bridge-Cimv7bK7.d.ts → agent-bridge-4gc0vfW2.d.ts} +1 -1
- package/dist/{agent-subagent-runner-C658wj_c.d.ts → agent-subagent-runner-Dz-9kiE6.d.ts} +3 -3
- package/dist/{config-Koq6f3fs.d.ts → config-eSsrto5d.d.ts} +6 -0
- package/dist/coordination/index.d.ts +10 -10
- package/dist/coordination/index.js +5 -3
- package/dist/coordination/index.js.map +1 -1
- package/dist/defaults/index.d.ts +12 -12
- package/dist/defaults/index.js +8 -10
- package/dist/defaults/index.js.map +1 -1
- package/dist/execution/index.d.ts +7 -7
- package/dist/execution/index.js +5 -3
- package/dist/execution/index.js.map +1 -1
- package/dist/extension/index.d.ts +3 -3
- package/dist/{goal-preamble-CnbzyVvl.d.ts → goal-preamble-BjJpnLW4.d.ts} +4 -4
- package/dist/{index-BlMqh5GO.d.ts → index-Dy8OwfBD.d.ts} +2 -2
- package/dist/{index-C2eSNPsB.d.ts → index-IehiNryU.d.ts} +2 -2
- package/dist/index.d.ts +22 -22
- package/dist/index.js +18 -16
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/index.d.ts +3 -3
- package/dist/kernel/index.d.ts +3 -3
- package/dist/{mcp-servers-DFbirBv6.d.ts → mcp-servers-DfXxCASH.d.ts} +1 -1
- package/dist/models/index.d.ts +2 -2
- package/dist/{models-registry-CnJRjTXc.d.ts → models-registry-DpanBg8D.d.ts} +1 -1
- package/dist/{multi-agent-coordinator-60weDZoA.d.ts → multi-agent-coordinator-CnbEqpv0.d.ts} +1 -1
- package/dist/{null-fleet-bus-1068dEnr.d.ts → null-fleet-bus-Do1OLYpj.d.ts} +4 -4
- package/dist/{package-outdated-watcher-pzJ5w7y8.d.ts → package-outdated-watcher-CA5GGB4C.d.ts} +1 -1
- package/dist/{parallel-eternal-engine-DtG1fjc9.d.ts → parallel-eternal-engine-UZg1xOzE.d.ts} +4 -4
- package/dist/{path-resolver-CA1ULU0J.d.ts → path-resolver-BaP06Owy.d.ts} +1 -1
- package/dist/{pipeline-DsmlwTXu.d.ts → pipeline-D1n-gQI-.d.ts} +1 -1
- package/dist/{plan-templates-DPABrDvy.d.ts → plan-templates-BUVRY0pU.d.ts} +1 -1
- package/dist/sdd/index.d.ts +4 -4
- package/dist/sdd/index.js +6 -8
- package/dist/sdd/index.js.map +1 -1
- package/dist/storage/index.d.ts +5 -5
- package/dist/storage/index.js.map +1 -1
- package/dist/types/index.d.ts +10 -10
- package/dist/types/index.js +5 -3
- package/dist/types/index.js.map +1 -1
- package/dist/utils/index.d.ts +11 -2
- package/dist/utils/index.js +6 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
package/dist/utils/index.d.ts
CHANGED
|
@@ -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-
|
|
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 };
|
package/dist/utils/index.js
CHANGED
|
@@ -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
|