@wrongstack/core 0.119.1 → 0.141.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-PRAbEX-9.d.ts → agent-bridge-r9y6gdn4.d.ts} +1 -1
- package/dist/{agent-subagent-runner-DXWImnNV.d.ts → agent-subagent-runner-1GeQE_L0.d.ts} +7 -7
- package/dist/{brain-NZZqL8sn.d.ts → brain-Cp_3GIS2.d.ts} +14 -3
- package/dist/{compactor-C3stu664.d.ts → compactor-BueGt7LG.d.ts} +9 -1
- package/dist/{config-DZV9VK9n.d.ts → config-BaVThgnT.d.ts} +1 -1
- package/dist/{context-hvXINa6a.d.ts → context-C7G_MtLV.d.ts} +7 -0
- package/dist/coordination/index.d.ts +12 -12
- package/dist/coordination/index.js +31 -17
- package/dist/coordination/index.js.map +1 -1
- package/dist/defaults/index.d.ts +24 -24
- package/dist/defaults/index.js +638 -681
- package/dist/defaults/index.js.map +1 -1
- package/dist/execution/index.d.ts +14 -14
- package/dist/execution/index.js +326 -317
- package/dist/execution/index.js.map +1 -1
- package/dist/extension/index.d.ts +6 -6
- package/dist/{goal-preamble-COpt55W8.d.ts → goal-preamble-iuIUTQwk.d.ts} +47 -17
- package/dist/{index-Cj3le7TI.d.ts → index-BZdezm3g.d.ts} +8 -8
- package/dist/{index-4VVHuTZF.d.ts → index-CPweVoFM.d.ts} +5 -5
- package/dist/index.d.ts +47 -47
- package/dist/index.js +455 -503
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/index.d.ts +6 -6
- package/dist/infrastructure/index.js +64 -19
- package/dist/infrastructure/index.js.map +1 -1
- package/dist/kernel/index.d.ts +9 -9
- package/dist/kernel/index.js.map +1 -1
- package/dist/{llm-selector-Bmx4PsVM.d.ts → llm-selector-CP72f1lC.d.ts} +2 -2
- package/dist/{mcp-servers-CofNHOqn.d.ts → mcp-servers-Bl5LTvQg.d.ts} +3 -3
- package/dist/models/index.d.ts +5 -5
- package/dist/models/index.js +53 -20
- package/dist/models/index.js.map +1 -1
- package/dist/{models-registry-BzlsjKcy.d.ts → models-registry-D90K9UnM.d.ts} +1 -1
- package/dist/{multi-agent-coordinator-CmDmUgq2.d.ts → multi-agent-coordinator-QWEzJDlm.d.ts} +1 -1
- package/dist/{null-fleet-bus-CyH2YqP4.d.ts → null-fleet-bus-BUyfqh23.d.ts} +13 -10
- package/dist/observability/index.d.ts +2 -2
- package/dist/{parallel-eternal-engine-uxVm4y4V.d.ts → parallel-eternal-engine-Dj2SYzha.d.ts} +24 -11
- package/dist/{path-resolver-gfoGxpdd.d.ts → path-resolver-DRjQBkoO.d.ts} +3 -3
- package/dist/{permission-DhLrgA30.d.ts → permission-B7nKnEvQ.d.ts} +1 -1
- package/dist/{permission-policy-DGOvne7i.d.ts → permission-policy-8-6zBmfA.d.ts} +2 -13
- package/dist/{pipeline-CqF7uju2.d.ts → pipeline-BG7UgbDc.d.ts} +2 -2
- package/dist/{plan-templates-DoKhzenv.d.ts → plan-templates-CkKNPU3I.d.ts} +5 -5
- package/dist/{provider-runner-BPlI5sPZ.d.ts → provider-runner-BNpuIyOL.d.ts} +3 -3
- package/dist/{retry-policy-B4Q-FZgE.d.ts → retry-policy-rutAfVeR.d.ts} +1 -1
- package/dist/sdd/index.d.ts +8 -8
- package/dist/sdd/index.js +10 -1
- package/dist/sdd/index.js.map +1 -1
- package/dist/{secret-vault-B7GnL6o9.d.ts → secret-vault-BTcC_T5v.d.ts} +3 -2
- package/dist/security/index.d.ts +5 -7
- package/dist/security/index.js +4 -35
- package/dist/security/index.js.map +1 -1
- package/dist/{selector-BakeMnWR.d.ts → selector-4vDFZKt3.d.ts} +1 -1
- package/dist/{session-event-bridge-DE5Oekwx.d.ts → session-event-bridge-DWlvglC2.d.ts} +2 -2
- package/dist/{session-reader-DFC81-4p.d.ts → session-reader-BAtCxdaw.d.ts} +1 -1
- package/dist/storage/index.d.ts +13 -13
- package/dist/storage/index.js +98 -101
- package/dist/storage/index.js.map +1 -1
- package/dist/types/index.d.ts +18 -18
- package/dist/types/index.js +152 -102
- package/dist/types/index.js.map +1 -1
- package/dist/utils/index.d.ts +37 -13
- package/dist/utils/index.js +60 -32
- package/dist/utils/index.js.map +1 -1
- package/package.json +2 -2
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { s as TodoItem, M as Message, J as JSONSchema } from '../context-
|
|
1
|
+
import { s as TodoItem, M as Message, J as JSONSchema } from '../context-C7G_MtLV.js';
|
|
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 } from '../wstack-paths-DD50Omgn.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-BaVThgnT.js';
|
|
6
6
|
export { a as TaskPriority, b as TaskStatus, T as TaskType } from '../task-graph-u1q9Jkyk.js';
|
|
7
7
|
|
|
8
8
|
interface AtomicWriteOptions {
|
|
@@ -261,6 +261,20 @@ declare function buildChildEnv(optsOrSessionId?: BuildChildEnvOptions | string):
|
|
|
261
261
|
* and an abortable variant can be introduced without a codebase-wide hunt. */
|
|
262
262
|
declare function sleep(ms: number): Promise<void>;
|
|
263
263
|
|
|
264
|
+
/**
|
|
265
|
+
* Exhaustiveness check for discriminated union switches.
|
|
266
|
+
* Place in the `default` branch of a switch over a union type
|
|
267
|
+
* to get a compile-time error when a new variant is added.
|
|
268
|
+
*
|
|
269
|
+
* @example
|
|
270
|
+
* switch (block.type) {
|
|
271
|
+
* case 'text': return renderText(block);
|
|
272
|
+
* case 'tool_use': return renderToolUse(block);
|
|
273
|
+
* default: return assertNever(block);
|
|
274
|
+
* }
|
|
275
|
+
*/
|
|
276
|
+
declare function assertNever(x: never, message?: string): never;
|
|
277
|
+
|
|
264
278
|
/**
|
|
265
279
|
* Tool output serialization utilities.
|
|
266
280
|
* Extracted from Agent.executeTools to allow reuse and consistent output handling.
|
|
@@ -292,6 +306,13 @@ declare function estimateToolResultTokens(content: string | unknown): number;
|
|
|
292
306
|
* Estimate tokens for a text block.
|
|
293
307
|
*/
|
|
294
308
|
declare function estimateTextTokens(text: string): number;
|
|
309
|
+
/**
|
|
310
|
+
* Estimate tokens for an array of messages (text + tool I/O), using the shared
|
|
311
|
+
* 3.5 chars/token basis. This is the single canonical message-array estimator —
|
|
312
|
+
* compactors, the context_manager tool, and the `/context` display all route
|
|
313
|
+
* through it so the number a user sees matches the number compaction decides on.
|
|
314
|
+
*/
|
|
315
|
+
declare function estimateMessageTokens(messages: readonly Message[]): number;
|
|
295
316
|
/**
|
|
296
317
|
* Rough estimate of tokens in a tool definition (name + description + schema).
|
|
297
318
|
* Accounts for the JSON-serialized inputSchema which is sent to the API
|
|
@@ -324,7 +345,7 @@ declare function estimateRequestTokens(messages: unknown, systemPrompt: unknown,
|
|
|
324
345
|
name: string;
|
|
325
346
|
description?: string | undefined;
|
|
326
347
|
inputSchema: unknown;
|
|
327
|
-
}[]): RequestTokenBreakdown;
|
|
348
|
+
}[], calibrationKey?: string): RequestTokenBreakdown;
|
|
328
349
|
/**
|
|
329
350
|
* Record the actual API input token count after a provider call so
|
|
330
351
|
* `estimateRequestTokensCalibrated` can self-correct on subsequent calls.
|
|
@@ -334,15 +355,17 @@ declare function estimateRequestTokens(messages: unknown, systemPrompt: unknown,
|
|
|
334
355
|
* also calls `estimateRequestTokens` between the pre-flight and this call
|
|
335
356
|
* (e.g. audit logging in agent.ts).
|
|
336
357
|
*
|
|
337
|
-
* When `estimatedInputTokens` is omitted, falls back to
|
|
338
|
-
* for backward compatibility with callers that don't have the
|
|
358
|
+
* When `estimatedInputTokens` is omitted, falls back to the keyed bucket's
|
|
359
|
+
* `prevEst` for backward compatibility with callers that don't have the
|
|
360
|
+
* pre-flight value. `calibrationKey` selects the per-(provider,model) bucket
|
|
361
|
+
* (defaults to the shared global bucket).
|
|
339
362
|
*/
|
|
340
|
-
declare function recordActualUsage(actualInputTokens: number, estimatedInputTokens?: number): void;
|
|
363
|
+
declare function recordActualUsage(actualInputTokens: number, estimatedInputTokens?: number, calibrationKey?: string): void;
|
|
341
364
|
/**
|
|
342
|
-
* Returns the current calibration state. Exposed for debugging
|
|
343
|
-
* tests — not needed by normal callers.
|
|
365
|
+
* Returns the current calibration state for a bucket. Exposed for debugging
|
|
366
|
+
* and tests — not needed by normal callers.
|
|
344
367
|
*/
|
|
345
|
-
declare function getCalibrationState(): {
|
|
368
|
+
declare function getCalibrationState(calibrationKey?: string): {
|
|
346
369
|
ratio: number;
|
|
347
370
|
count: number;
|
|
348
371
|
calibrated: boolean;
|
|
@@ -360,12 +383,13 @@ declare function estimateRequestTokensCalibrated(messages: unknown, systemPrompt
|
|
|
360
383
|
name: string;
|
|
361
384
|
description?: string | undefined;
|
|
362
385
|
inputSchema: unknown;
|
|
363
|
-
}[]): RequestTokenBreakdown;
|
|
386
|
+
}[], calibrationKey?: string): RequestTokenBreakdown;
|
|
364
387
|
/**
|
|
365
388
|
* Resets calibration state. Primarily for tests that run in the same
|
|
366
|
-
* process and need a clean slate between suites.
|
|
389
|
+
* process and need a clean slate between suites. With no argument it clears
|
|
390
|
+
* every bucket (including the global one); pass a key to reset just that bucket.
|
|
367
391
|
*/
|
|
368
|
-
declare function resetCalibration(): void;
|
|
392
|
+
declare function resetCalibration(calibrationKey?: string): void;
|
|
369
393
|
|
|
370
394
|
interface MessageRepairReport {
|
|
371
395
|
changed: boolean;
|
|
@@ -493,4 +517,4 @@ declare function mergeModelsPayload(base: ModelsDevPayload, overlay: ModelsDevPa
|
|
|
493
517
|
*/
|
|
494
518
|
declare function mergeCustomModelDefs(providerCustomModels: Record<string, CustomModelDefinition> | undefined, configModels: Record<string, CustomModelDefinition> | undefined): Record<string, CustomModelDefinition> | undefined;
|
|
495
519
|
|
|
496
|
-
export { type AtomicWriteOptions, type BuildChildEnvOptions, type CompileFail, type CompileResult, type FileLockOptions, type MessageRepairReport, type MessageRepairResult, type NewlineStyle, type OutputLineGuard, 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, setOutputLineGuard, setRawMode, sleep, stripAnsi, toStyle, unifiedDiff, validateAgainstSchema, withFileLock, writeErr, writeOut };
|
|
520
|
+
export { type AtomicWriteOptions, type BuildChildEnvOptions, type CompileFail, type CompileResult, 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, createToolOutputSerializer, detectNewlineStyle, ensureDir, estimateMessageTokens, 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, setOutputLineGuard, setRawMode, sleep, stripAnsi, toStyle, unifiedDiff, validateAgainstSchema, withFileLock, writeErr, writeOut };
|
package/dist/utils/index.js
CHANGED
|
@@ -855,6 +855,13 @@ function sleep(ms) {
|
|
|
855
855
|
return new Promise((resolve3) => setTimeout(resolve3, ms));
|
|
856
856
|
}
|
|
857
857
|
|
|
858
|
+
// src/utils/assert-never.ts
|
|
859
|
+
function assertNever(x, message) {
|
|
860
|
+
throw new Error(
|
|
861
|
+
message ?? `Unhandled case: ${JSON.stringify(x)}`
|
|
862
|
+
);
|
|
863
|
+
}
|
|
864
|
+
|
|
858
865
|
// src/utils/tool-output-serializer.ts
|
|
859
866
|
function createToolOutputSerializer(opts = {}) {
|
|
860
867
|
const capBytes = opts.perIterationOutputCapBytes ?? 1e5;
|
|
@@ -901,16 +908,17 @@ function createToolOutputSerializer(opts = {}) {
|
|
|
901
908
|
|
|
902
909
|
// src/utils/token-estimate.ts
|
|
903
910
|
var RoughTokenEstimate = (text, charsPerToken = 3.5) => Math.max(1, Math.ceil(text.length / charsPerToken));
|
|
904
|
-
var
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
911
|
+
var CAL_ALPHA = 0.3;
|
|
912
|
+
var CALIBRATION_GLOBAL_KEY = "__global__";
|
|
913
|
+
var _cals = /* @__PURE__ */ new Map();
|
|
914
|
+
function calState(key) {
|
|
915
|
+
let state = _cals.get(key);
|
|
916
|
+
if (!state) {
|
|
917
|
+
state = { ratio: 1, count: 0, prevEst: 0 };
|
|
918
|
+
_cals.set(key, state);
|
|
919
|
+
}
|
|
920
|
+
return state;
|
|
921
|
+
}
|
|
914
922
|
var MIN_SAMPLES_FOR_CALIBRATION = 3;
|
|
915
923
|
var ESTIMATE_CACHE = /* @__PURE__ */ new Map();
|
|
916
924
|
var ESTIMATE_CACHE_MAX_SIZE = 1e4;
|
|
@@ -943,10 +951,25 @@ function estimateToolResultTokens(content) {
|
|
|
943
951
|
function estimateTextTokens(text) {
|
|
944
952
|
return RoughTokenEstimate(text);
|
|
945
953
|
}
|
|
954
|
+
function estimateMessageTokens(messages) {
|
|
955
|
+
let total = 0;
|
|
956
|
+
for (const m of messages) {
|
|
957
|
+
if (typeof m.content === "string") {
|
|
958
|
+
total += estimateTextTokens(m.content);
|
|
959
|
+
} else {
|
|
960
|
+
for (const b of m.content) {
|
|
961
|
+
if (b.type === "text") total += estimateTextTokens(b.text);
|
|
962
|
+
else if (b.type === "tool_use") total += estimateToolInputTokens(b.input);
|
|
963
|
+
else if (b.type === "tool_result") total += estimateToolResultTokens(b.content);
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
return total;
|
|
968
|
+
}
|
|
946
969
|
function estimateToolDefTokens(tool) {
|
|
947
970
|
return RoughTokenEstimate(tool.name) + RoughTokenEstimate(tool.description ?? "") + RoughTokenEstimate(JSON.stringify(tool.inputSchema));
|
|
948
971
|
}
|
|
949
|
-
function estimateRequestTokens(messages, systemPrompt, tools) {
|
|
972
|
+
function estimateRequestTokens(messages, systemPrompt, tools, calibrationKey = CALIBRATION_GLOBAL_KEY) {
|
|
950
973
|
let messagesTokens = 0;
|
|
951
974
|
if (typeof messages === "string") {
|
|
952
975
|
messagesTokens = RoughTokenEstimate(messages);
|
|
@@ -985,7 +1008,7 @@ function estimateRequestTokens(messages, systemPrompt, tools) {
|
|
|
985
1008
|
toolsTokens += estimateToolDefTokens(t);
|
|
986
1009
|
}
|
|
987
1010
|
const total = messagesTokens + systemTokens + toolsTokens;
|
|
988
|
-
|
|
1011
|
+
calState(calibrationKey).prevEst = total;
|
|
989
1012
|
return {
|
|
990
1013
|
messages: messagesTokens,
|
|
991
1014
|
systemPrompt: systemTokens,
|
|
@@ -993,30 +1016,33 @@ function estimateRequestTokens(messages, systemPrompt, tools) {
|
|
|
993
1016
|
total
|
|
994
1017
|
};
|
|
995
1018
|
}
|
|
996
|
-
function recordActualUsage(actualInputTokens, estimatedInputTokens) {
|
|
1019
|
+
function recordActualUsage(actualInputTokens, estimatedInputTokens, calibrationKey = CALIBRATION_GLOBAL_KEY) {
|
|
997
1020
|
if (actualInputTokens <= 0) return;
|
|
998
|
-
const
|
|
1021
|
+
const cal = calState(calibrationKey);
|
|
1022
|
+
const est = estimatedInputTokens ?? cal.prevEst;
|
|
999
1023
|
if (est <= 0) return;
|
|
1000
1024
|
const sampleRatio = actualInputTokens / est;
|
|
1001
|
-
if (
|
|
1002
|
-
|
|
1025
|
+
if (cal.count === 0) {
|
|
1026
|
+
cal.ratio = sampleRatio;
|
|
1003
1027
|
} else {
|
|
1004
|
-
|
|
1028
|
+
cal.ratio = CAL_ALPHA * sampleRatio + (1 - CAL_ALPHA) * cal.ratio;
|
|
1005
1029
|
}
|
|
1006
|
-
|
|
1007
|
-
|
|
1030
|
+
cal.ratio = Math.min(1.5, Math.max(0.5, cal.ratio));
|
|
1031
|
+
cal.count++;
|
|
1008
1032
|
}
|
|
1009
|
-
function getCalibrationState() {
|
|
1033
|
+
function getCalibrationState(calibrationKey = CALIBRATION_GLOBAL_KEY) {
|
|
1034
|
+
const cal = calState(calibrationKey);
|
|
1010
1035
|
return {
|
|
1011
|
-
ratio:
|
|
1012
|
-
count:
|
|
1013
|
-
calibrated:
|
|
1036
|
+
ratio: cal.ratio,
|
|
1037
|
+
count: cal.count,
|
|
1038
|
+
calibrated: cal.count >= MIN_SAMPLES_FOR_CALIBRATION
|
|
1014
1039
|
};
|
|
1015
1040
|
}
|
|
1016
|
-
function estimateRequestTokensCalibrated(messages, systemPrompt, tools) {
|
|
1017
|
-
const result = estimateRequestTokens(messages, systemPrompt, tools);
|
|
1018
|
-
|
|
1019
|
-
|
|
1041
|
+
function estimateRequestTokensCalibrated(messages, systemPrompt, tools, calibrationKey = CALIBRATION_GLOBAL_KEY) {
|
|
1042
|
+
const result = estimateRequestTokens(messages, systemPrompt, tools, calibrationKey);
|
|
1043
|
+
const cal = calState(calibrationKey);
|
|
1044
|
+
if (cal.count >= MIN_SAMPLES_FOR_CALIBRATION) {
|
|
1045
|
+
const safeRatio = Math.min(1.5, Math.max(0.5, cal.ratio));
|
|
1020
1046
|
return {
|
|
1021
1047
|
messages: Math.round(result.messages * safeRatio),
|
|
1022
1048
|
systemPrompt: Math.round(result.systemPrompt * safeRatio),
|
|
@@ -1026,10 +1052,12 @@ function estimateRequestTokensCalibrated(messages, systemPrompt, tools) {
|
|
|
1026
1052
|
}
|
|
1027
1053
|
return result;
|
|
1028
1054
|
}
|
|
1029
|
-
function resetCalibration() {
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1055
|
+
function resetCalibration(calibrationKey) {
|
|
1056
|
+
if (calibrationKey === void 0) {
|
|
1057
|
+
_cals.clear();
|
|
1058
|
+
return;
|
|
1059
|
+
}
|
|
1060
|
+
_cals.delete(calibrationKey);
|
|
1033
1061
|
}
|
|
1034
1062
|
|
|
1035
1063
|
// src/utils/message-invariants.ts
|
|
@@ -1538,6 +1566,6 @@ function mergeCustomModelDefs(providerCustomModels, configModels) {
|
|
|
1538
1566
|
return out;
|
|
1539
1567
|
}
|
|
1540
1568
|
|
|
1541
|
-
export { atomicWrite, buildChildEnv, color, compileGlob, compileUserRegex, completePartialObject, computeTaskItemProgress, createToolOutputSerializer, detectNewlineStyle, ensureDir, estimateRequestTokens, estimateRequestTokensCalibrated, estimateTextTokens, estimateToolDefTokens, estimateToolInputTokens, estimateToolResultTokens, expandGlob, expectDefined, formatTaskList, formatTaskProgress, formatTodosList, getCalibrationState, getTermSize, isInteractive, 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 };
|
|
1569
|
+
export { assertNever, atomicWrite, buildChildEnv, color, compileGlob, compileUserRegex, completePartialObject, computeTaskItemProgress, createToolOutputSerializer, detectNewlineStyle, ensureDir, estimateMessageTokens, estimateRequestTokens, estimateRequestTokensCalibrated, estimateTextTokens, estimateToolDefTokens, estimateToolInputTokens, estimateToolResultTokens, expandGlob, expectDefined, formatTaskList, formatTaskProgress, formatTodosList, getCalibrationState, getTermSize, isInteractive, 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 };
|
|
1542
1570
|
//# sourceMappingURL=index.js.map
|
|
1543
1571
|
//# sourceMappingURL=index.js.map
|