stitchkit 0.130.0 → 0.131.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/CHANGELOG.md +48 -0
- package/dist/agent-executor/acp/v1-connect.d.ts +40 -26
- package/dist/agent-executor/acp/v1-connect.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-driver.d.ts +10 -4
- package/dist/agent-executor/acp/v1-driver.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-handlers.d.ts +6 -2
- package/dist/agent-executor/acp/v1-handlers.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-probe.d.ts +38 -0
- package/dist/agent-executor/acp/v1-probe.d.ts.map +1 -0
- package/dist/agent-executor/acp/v1-protocol.d.ts +15 -0
- package/dist/agent-executor/acp/v1-protocol.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-session.d.ts +9 -7
- package/dist/agent-executor/acp/v1-session.d.ts.map +1 -1
- package/dist/agent-executor/claude/cli-driver.d.ts +7 -7
- package/dist/agent-executor/claude/cli-driver.d.ts.map +1 -1
- package/dist/agent-executor/claude/limits.d.ts +6 -4
- package/dist/agent-executor/claude/limits.d.ts.map +1 -1
- package/dist/agent-executor/claude/session.d.ts +3 -3
- package/dist/agent-executor/claude/session.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/controls.d.ts +1 -0
- package/dist/agent-executor/claude-sdk/controls.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/driver.d.ts +51 -50
- package/dist/agent-executor/claude-sdk/driver.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/probe.d.ts +3 -3
- package/dist/agent-executor/claude-sdk/probe.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/query-loop.d.ts +2 -1
- package/dist/agent-executor/claude-sdk/query-loop.d.ts.map +1 -1
- package/dist/agent-executor/codex/classify.d.ts.map +1 -1
- package/dist/agent-executor/codex/connect.d.ts +9 -7
- package/dist/agent-executor/codex/connect.d.ts.map +1 -1
- package/dist/agent-executor/codex/control-client.d.ts +112 -87
- package/dist/agent-executor/codex/control-client.d.ts.map +1 -1
- package/dist/agent-executor/codex/control-read-methods.d.ts +7 -0
- package/dist/agent-executor/codex/control-read-methods.d.ts.map +1 -0
- package/dist/agent-executor/codex/driver.d.ts +42 -31
- package/dist/agent-executor/codex/driver.d.ts.map +1 -1
- package/dist/agent-executor/codex/event-routing.d.ts +14 -0
- package/dist/agent-executor/codex/event-routing.d.ts.map +1 -0
- package/dist/agent-executor/codex/handlers.d.ts +9 -4
- package/dist/agent-executor/codex/handlers.d.ts.map +1 -1
- package/dist/agent-executor/codex/limits.d.ts +9 -3
- package/dist/agent-executor/codex/limits.d.ts.map +1 -1
- package/dist/agent-executor/codex/notifications.d.ts +183 -0
- package/dist/agent-executor/codex/notifications.d.ts.map +1 -0
- package/dist/agent-executor/codex/pagination.d.ts +54 -0
- package/dist/agent-executor/codex/pagination.d.ts.map +1 -0
- package/dist/agent-executor/codex/protocol.d.ts +586 -144
- package/dist/agent-executor/codex/protocol.d.ts.map +1 -1
- package/dist/agent-executor/codex/request-answers.d.ts +4 -2
- package/dist/agent-executor/codex/request-answers.d.ts.map +1 -1
- package/dist/agent-executor/codex/responses.d.ts +855 -0
- package/dist/agent-executor/codex/responses.d.ts.map +1 -0
- package/dist/agent-executor/codex/session-bind.d.ts +410 -0
- package/dist/agent-executor/codex/session-bind.d.ts.map +1 -0
- package/dist/agent-executor/codex/session-controls.d.ts +21 -169
- package/dist/agent-executor/codex/session-controls.d.ts.map +1 -1
- package/dist/agent-executor/codex/session-types.d.ts +190 -0
- package/dist/agent-executor/codex/session-types.d.ts.map +1 -0
- package/dist/agent-executor/codex/session.d.ts +5 -53
- package/dist/agent-executor/codex/session.d.ts.map +1 -1
- package/dist/agent-executor/codex/shared-server.d.ts +7 -5
- package/dist/agent-executor/codex/shared-server.d.ts.map +1 -1
- package/dist/agent-executor/codex/shared-thread.d.ts +8 -8
- package/dist/agent-executor/codex/shared-thread.d.ts.map +1 -1
- package/dist/agent-executor/codex/thread-controls.d.ts +61 -36
- package/dist/agent-executor/codex/thread-controls.d.ts.map +1 -1
- package/dist/agent-executor/codex/thread-list-query.d.ts +5 -0
- package/dist/agent-executor/codex/thread-list-query.d.ts.map +1 -0
- package/dist/agent-executor/codex/thread-open.d.ts +66 -0
- package/dist/agent-executor/codex/thread-open.d.ts.map +1 -0
- package/dist/agent-executor/codex/turn-input.d.ts +25 -7
- package/dist/agent-executor/codex/turn-input.d.ts.map +1 -1
- package/dist/agent-executor/codex/unix-socket-target.d.ts +12 -3
- package/dist/agent-executor/codex/unix-socket-target.d.ts.map +1 -1
- package/dist/agent-executor/codex/ws-frame.d.ts +4 -1
- package/dist/agent-executor/codex/ws-frame.d.ts.map +1 -1
- package/dist/agent-executor/contract.d.ts +3 -1
- package/dist/agent-executor/contract.d.ts.map +1 -1
- package/dist/agent-executor/engine-process.d.ts +4 -4
- package/dist/agent-executor/engine-process.d.ts.map +1 -1
- package/dist/agent-executor/engine.d.ts +3 -3
- package/dist/agent-executor/engine.d.ts.map +1 -1
- package/dist/agent-executor/handoff.d.ts.map +1 -1
- package/dist/agent-executor/hello.d.ts +7 -0
- package/dist/agent-executor/hello.d.ts.map +1 -1
- package/dist/agent-executor/json-rpc-peer.d.ts +9 -4
- package/dist/agent-executor/json-rpc-peer.d.ts.map +1 -1
- package/dist/agent-executor/leases.d.ts +1 -1
- package/dist/agent-executor/leases.d.ts.map +1 -1
- package/dist/agent-executor/plan-limits.d.ts +12 -1
- package/dist/agent-executor/plan-limits.d.ts.map +1 -1
- package/dist/agent-executor/profile.d.ts +7 -0
- package/dist/agent-executor/profile.d.ts.map +1 -1
- package/dist/agent-executor/session-primitives.d.ts +8 -0
- package/dist/agent-executor/session-primitives.d.ts.map +1 -1
- package/dist/agent-executor/testing/consumer-stubs.d.ts +45 -0
- package/dist/agent-executor/testing/consumer-stubs.d.ts.map +1 -0
- package/dist/agent-executor/testing/fake-claude-sdk-query.d.ts +88 -0
- package/dist/agent-executor/testing/fake-claude-sdk-query.d.ts.map +1 -0
- package/dist/agent-executor/testing/fake-codex-app-server.d.ts +56 -0
- package/dist/agent-executor/testing/fake-codex-app-server.d.ts.map +1 -0
- package/dist/agent-executor/testing/fixtures.d.ts +26 -0
- package/dist/agent-executor/testing/fixtures.d.ts.map +1 -0
- package/dist/agent-executor/testing/replay-driver.d.ts +8 -8
- package/dist/agent-executor/testing/replay-driver.d.ts.map +1 -1
- package/dist/agent-executor/testing/replay-runner.d.ts +3 -2
- package/dist/agent-executor/testing/replay-runner.d.ts.map +1 -1
- package/dist/agent-executor/testing/replay-transcript.d.ts +5 -3
- package/dist/agent-executor/testing/replay-transcript.d.ts.map +1 -1
- package/dist/agent-runtime/branch-observations.d.ts +5 -5
- package/dist/entrypoints/agent-executor/acp.d.ts +2 -1
- package/dist/entrypoints/agent-executor/acp.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/acp.js +284 -82
- package/dist/entrypoints/agent-executor/claude-sdk.d.ts +4 -0
- package/dist/entrypoints/agent-executor/claude-sdk.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/claude-sdk.js +58 -32
- package/dist/entrypoints/agent-executor/claude.d.ts +2 -2
- package/dist/entrypoints/agent-executor/claude.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/claude.js +25 -20
- package/dist/entrypoints/agent-executor/codex.d.ts +11 -6
- package/dist/entrypoints/agent-executor/codex.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/codex.js +2223 -1803
- package/dist/entrypoints/agent-executor/testing.d.ts +4 -0
- package/dist/entrypoints/agent-executor/testing.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/testing.js +880 -18
- package/dist/entrypoints/agent-executor.d.ts +3 -3
- package/dist/entrypoints/agent-executor.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor.js +42 -8
- package/dist/entrypoints/process.js +3 -3
- package/dist/{index-jrn3prgm.js → index-32vaajec.js} +29 -4
- package/dist/{index-p1qmpq0p.js → index-64e9p079.js} +92 -56
- package/dist/{index-dbp6xemn.js → index-g2d9kws8.js} +199 -3
- package/dist/index-gm9yz82v.js +56 -0
- package/dist/index-j15dhkda.js +749 -0
- package/dist/{index-1q0n6zek.js → index-kwsr7j5k.js} +84 -44
- package/llms/agent-executor-acp.txt +5 -5
- package/llms/agent-executor-claude-sdk.txt +3 -1
- package/llms/agent-executor-claude.txt +2 -2
- package/llms/agent-executor-codex.txt +13 -10
- package/llms/agent-executor-testing.txt +5 -1
- package/llms/agent-executor.txt +4 -4
- package/llms/stitchkit.txt +75 -74
- package/llms/{upgrading-0.128.0-0.130.0.txt → upgrading-0.128.0-0.131.0.txt} +56 -3
- package/llms/upgrading.txt +1 -1
- package/llms-full.txt +160 -97
- package/llms.txt +8 -8
- package/package.json +3 -3
- package/dist/index-2s8sy57y.js +0 -229
|
@@ -7,10 +7,10 @@ export { advanceExecutorConnection, canAcceptTurn, type ExecutorConnectionEvent,
|
|
|
7
7
|
export { buildContextHandoff, withInlineHandoffContext, } from '../agent-executor/handoff.js';
|
|
8
8
|
export { ContextHandoffBudgetSchema, ContextHandoffClearEntrySchema, type ContextHandoffEntry, ContextHandoffEntrySchema, type ContextHandoffInput, ContextHandoffInputSchema, ContextHandoffMessageEntrySchema, type ContextHandoffResult, ContextHandoffResultSchema, type ContextHandoffSelectedItem, ContextHandoffSelectedItemSchema, ContextHandoffStrategySchema, type ContextHandoffStructuredItem, ContextHandoffStructuredItemSchema, type InlineHandoffComposition, } from '../agent-executor/handoff-schemas.js';
|
|
9
9
|
export { type ExecutorDriverCapabilities, ExecutorDriverCapabilitiesSchema, type ExecutorEngine, type ExecutorEngineInfo, ExecutorEngineInfoSchema, ExecutorEngineSchema, type ExecutorHello, type ExecutorHelloAck, ExecutorHelloAckSchema, ExecutorHelloSchema, type ExecutorProfile, ExecutorProfileSchema, ExecutorReconcileSchema, ExecutorResumableTurnSchema, type PlanLimits, PlanLimitsSchema, type PlanWindow, PlanWindowSchema, } from '../agent-executor/hello.js';
|
|
10
|
-
export { createJsonRpcPeer, JSON_RPC_LOCAL_TIMEOUT, JSON_RPC_METHOD_NOT_FOUND, JsonRpcError, type JsonRpcHeader, type JsonRpcPeer, type JsonRpcPeerConfig, type JsonRpcValue, } from '../agent-executor/json-rpc-peer.js';
|
|
10
|
+
export { createJsonRpcPeer, JSON_RPC_LOCAL_TIMEOUT, JSON_RPC_METHOD_NOT_FOUND, JsonRpcError, type JsonRpcHeader, type JsonRpcPeer, type JsonRpcPeerConfig, JsonRpcRecordSchema, type JsonRpcValue, JsonRpcValueSchema, } from '../agent-executor/json-rpc-peer.js';
|
|
11
11
|
export { createExecutorLeases, ExecutorLeaseRefusal, type ExecutorLeaseState, ExecutorLeaseStateSchema, type ExecutorLeaseStateStore, memoryExecutorLeaseStore, } from '../agent-executor/leases.js';
|
|
12
|
-
export { mergeRateLimitEvent, planLimitsDue, planLimitsReadFailed, planWindowExpired, } from '../agent-executor/plan-limits.js';
|
|
13
|
-
export { CREDENTIAL_VARIABLES, type ExecutorProfileConfig, ExecutorProfileConfigSchema, engineEnvironment, helloProfile, ownCredentials, } from '../agent-executor/profile.js';
|
|
12
|
+
export { mergeRateLimitEvent, planLimitsDue, planLimitsReadFailed, planWindowDurationMins, planWindowExpired, } from '../agent-executor/plan-limits.js';
|
|
13
|
+
export { CREDENTIAL_VARIABLES, EXECUTOR_ENV_KEY_PATTERN, type ExecutorProfileConfig, ExecutorProfileConfigSchema, engineEnvironment, helloProfile, ownCredentials, sanitizeProfileEnv, } from '../agent-executor/profile.js';
|
|
14
14
|
export { projectExecutorDeltas } from '../agent-executor/projection.js';
|
|
15
15
|
export { canAdvanceTurnPhase, isTerminalTurnPhase } from '../agent-executor/turn-phases.js';
|
|
16
16
|
export { type ExecutorDelta, ExecutorDeltaSchema, type ExecutorErrorKind, ExecutorErrorKindSchema, type ExecutorModelUsage, ExecutorModelUsageSchema, ExecutorRawSchema, type ExecutorStartupPhase, ExecutorStartupPhaseSchema, ExecutorStatusDeltaSchema, type ExecutorThreadDisposition, ExecutorThreadDispositionSchema, type ExecutorTokenUsage, ExecutorTokenUsageSchema, } from '../agent-executor/vocabulary.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-executor.d.ts","sourceRoot":"","sources":["../../src/entrypoints/agent-executor.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,2BAA2B,GAC5B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,KAAK,eAAe,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAChF,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,KAAK,aAAa,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAC1F,OAAO,EACL,eAAe,EACf,KAAK,gBAAgB,EACrB,sBAAsB,EACtB,KAAK,WAAW,EAChB,iBAAiB,EACjB,KAAK,WAAW,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,KAAK,SAAS,EACd,eAAe,EACf,KAAK,SAAS,EACd,eAAe,EACf,KAAK,UAAU,EACf,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,yBAAyB,EACzB,aAAa,EACb,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,2BAA2B,GAC5B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,mBAAmB,EACnB,wBAAwB,GACzB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,0BAA0B,EAC1B,8BAA8B,EAC9B,KAAK,mBAAmB,EACxB,yBAAyB,EACzB,KAAK,mBAAmB,EACxB,yBAAyB,EACzB,gCAAgC,EAChC,KAAK,oBAAoB,EACzB,0BAA0B,EAC1B,KAAK,0BAA0B,EAC/B,gCAAgC,EAChC,4BAA4B,EAC5B,KAAK,4BAA4B,EACjC,kCAAkC,EAClC,KAAK,wBAAwB,GAC9B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,KAAK,0BAA0B,EAC/B,gCAAgC,EAChC,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,wBAAwB,EACxB,oBAAoB,EACpB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,KAAK,eAAe,EACpB,qBAAqB,EACrB,uBAAuB,EACvB,2BAA2B,EAC3B,KAAK,UAAU,EACf,gBAAgB,EAChB,KAAK,UAAU,EACf,gBAAgB,GACjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,yBAAyB,EACzB,YAAY,EACZ,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"agent-executor.d.ts","sourceRoot":"","sources":["../../src/entrypoints/agent-executor.ts"],"names":[],"mappings":"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"}
|
|
@@ -41,21 +41,26 @@ import {
|
|
|
41
41
|
ExecutorResumableTurnSchema2,
|
|
42
42
|
ExecutorHelloSchema2,
|
|
43
43
|
ExecutorHelloAckSchema2,
|
|
44
|
+
EXECUTOR_ENV_KEY_PATTERN2,
|
|
45
|
+
sanitizeProfileEnv2,
|
|
44
46
|
ExecutorProfileConfigSchema2,
|
|
45
47
|
CREDENTIAL_VARIABLES2,
|
|
46
48
|
engineEnvironment2,
|
|
47
49
|
ownCredentials2,
|
|
48
50
|
helloProfile2
|
|
49
|
-
} from "../index-
|
|
51
|
+
} from "../index-g2d9kws8.js";
|
|
50
52
|
import"../index-v59pxmf1.js";
|
|
51
53
|
import"../index-qa2jjb65.js";
|
|
52
54
|
import"../index-6kec3b14.js";
|
|
53
55
|
import {
|
|
56
|
+
JsonRpcValueSchema2,
|
|
57
|
+
JsonRpcRecordSchema2,
|
|
54
58
|
JsonRpcError2,
|
|
55
59
|
JSON_RPC_METHOD_NOT_FOUND2,
|
|
56
60
|
JSON_RPC_LOCAL_TIMEOUT2,
|
|
57
61
|
createJsonRpcPeer2
|
|
58
|
-
} from "../index-
|
|
62
|
+
} from "../index-kwsr7j5k.js";
|
|
63
|
+
import"../index-09f7w2qq.js";
|
|
59
64
|
import {
|
|
60
65
|
spawnEngineProcess2
|
|
61
66
|
} from "../index-rxh3qy4x.js";
|
|
@@ -66,10 +71,12 @@ import {
|
|
|
66
71
|
} from "../index-x5ayy5bn.js";
|
|
67
72
|
import {
|
|
68
73
|
planWindowExpired2,
|
|
74
|
+
planWindowDurationMins2,
|
|
69
75
|
planLimitsDue2,
|
|
70
76
|
planLimitsReadFailed2,
|
|
71
77
|
mergeRateLimitEvent2
|
|
72
|
-
} from "../index-
|
|
78
|
+
} from "../index-32vaajec.js";
|
|
79
|
+
import"../index-pzhqydxb.js";
|
|
73
80
|
import {
|
|
74
81
|
AppError2
|
|
75
82
|
} from "../index-9pv126eh.js";
|
|
@@ -382,6 +389,23 @@ function computeEffectiveTokenCap(budget) {
|
|
|
382
389
|
const available = Math.max(0, window - used - reserve);
|
|
383
390
|
return Math.min(budget.maxTokens, available);
|
|
384
391
|
}
|
|
392
|
+
function widestOmittedIds(prepared, limit) {
|
|
393
|
+
if (limit === 0)
|
|
394
|
+
return [];
|
|
395
|
+
const widest = [];
|
|
396
|
+
const trim = () => {
|
|
397
|
+
widest.sort((a, b) => b.width - a.width);
|
|
398
|
+
if (widest.length > limit)
|
|
399
|
+
widest.length = limit;
|
|
400
|
+
};
|
|
401
|
+
for (const { item } of prepared) {
|
|
402
|
+
widest.push({ id: item.id, width: worstCaseSerializedBytes(item.id) });
|
|
403
|
+
if (widest.length === 2 * limit)
|
|
404
|
+
trim();
|
|
405
|
+
}
|
|
406
|
+
trim();
|
|
407
|
+
return widest.map((candidate) => candidate.id);
|
|
408
|
+
}
|
|
385
409
|
function buildContextHandoff(rawInput) {
|
|
386
410
|
const input = ContextHandoffInputSchema.parse(rawInput);
|
|
387
411
|
const resolved = resolveCandidateEntries(input.entries, input.strategy);
|
|
@@ -427,7 +451,7 @@ function buildContextHandoff(rawInput) {
|
|
|
427
451
|
const tokenCap = computeEffectiveTokenCap(input.budget);
|
|
428
452
|
const byteCap = Math.min(input.budget.maxBytes, tokenCap * 4);
|
|
429
453
|
const maxOmittedCap = input.budget.maxOmittedIds ?? HANDOFF_LIMITS.defaultMaxOmittedIds;
|
|
430
|
-
const widestOmitted = prepared
|
|
454
|
+
const widestOmitted = widestOmittedIds(prepared, maxOmittedCap);
|
|
431
455
|
const omittedClauseCap = Math.floor(byteCap / 8);
|
|
432
456
|
while (widestOmitted.length > 0 && worstCaseSerializedBytes(formatOmittedClause(widestOmitted, prepared.length)) > omittedClauseCap) {
|
|
433
457
|
widestOmitted.pop();
|
|
@@ -444,7 +468,7 @@ function buildContextHandoff(rawInput) {
|
|
|
444
468
|
const baseStructuredBytes = utf8ByteLength(JSON.stringify([headerStructuredItem(reservedHeader)]));
|
|
445
469
|
const baseBytes = Math.max(baseInlineBytes, baseStructuredBytes);
|
|
446
470
|
if (tokenCap === 0 || baseBytes > input.budget.maxBytes || estimateTokensFromBytes(baseBytes) > tokenCap) {
|
|
447
|
-
const omittedIds = omittedListLimit === 0 ? [] : prepared.map((entry) => entry.item.id)
|
|
471
|
+
const omittedIds = omittedListLimit === 0 ? [] : prepared.slice(-omittedListLimit).map((entry) => entry.item.id);
|
|
448
472
|
return {
|
|
449
473
|
strategy: resolved.strategy,
|
|
450
474
|
selectedItems: [],
|
|
@@ -480,9 +504,14 @@ function buildContextHandoff(rawInput) {
|
|
|
480
504
|
}
|
|
481
505
|
const selectedPrepared = prepared.filter((_, index) => selectedIndices.has(index));
|
|
482
506
|
const selectedItems = selectedPrepared.map((entry) => entry.item);
|
|
483
|
-
const
|
|
484
|
-
const omittedItemIds =
|
|
485
|
-
|
|
507
|
+
const omittedTotal = prepared.length - selectedItems.length;
|
|
508
|
+
const omittedItemIds = [];
|
|
509
|
+
for (let index = prepared.length - 1;index >= 0 && omittedItemIds.length < omittedListLimit; index--) {
|
|
510
|
+
const entry = prepared[index];
|
|
511
|
+
if (entry !== undefined && !selectedIndices.has(index))
|
|
512
|
+
omittedItemIds.push(entry.item.id);
|
|
513
|
+
}
|
|
514
|
+
omittedItemIds.reverse();
|
|
486
515
|
const assemble = (ids) => {
|
|
487
516
|
const header = formatHeader({
|
|
488
517
|
strategy: resolved.strategy,
|
|
@@ -782,6 +811,7 @@ export {
|
|
|
782
811
|
ContextHandoffSelectedItemSchema,
|
|
783
812
|
ContextHandoffStrategySchema,
|
|
784
813
|
ContextHandoffStructuredItemSchema,
|
|
814
|
+
EXECUTOR_ENV_KEY_PATTERN2 as EXECUTOR_ENV_KEY_PATTERN,
|
|
785
815
|
EXECUTOR_ERRORS2 as EXECUTOR_ERRORS,
|
|
786
816
|
ExecutorDeltaSchema2 as ExecutorDeltaSchema,
|
|
787
817
|
ExecutorDriverCapabilitiesSchema2 as ExecutorDriverCapabilitiesSchema,
|
|
@@ -807,6 +837,8 @@ export {
|
|
|
807
837
|
JSON_RPC_LOCAL_TIMEOUT2 as JSON_RPC_LOCAL_TIMEOUT,
|
|
808
838
|
JSON_RPC_METHOD_NOT_FOUND2 as JSON_RPC_METHOD_NOT_FOUND,
|
|
809
839
|
JsonRpcError2 as JsonRpcError,
|
|
840
|
+
JsonRpcRecordSchema2 as JsonRpcRecordSchema,
|
|
841
|
+
JsonRpcValueSchema2 as JsonRpcValueSchema,
|
|
810
842
|
PlanLimitsSchema2 as PlanLimitsSchema,
|
|
811
843
|
PlanWindowSchema2 as PlanWindowSchema,
|
|
812
844
|
ThreadClaimSchema2 as ThreadClaimSchema,
|
|
@@ -836,8 +868,10 @@ export {
|
|
|
836
868
|
ownCredentials2 as ownCredentials,
|
|
837
869
|
planLimitsDue2 as planLimitsDue,
|
|
838
870
|
planLimitsReadFailed2 as planLimitsReadFailed,
|
|
871
|
+
planWindowDurationMins2 as planWindowDurationMins,
|
|
839
872
|
planWindowExpired2 as planWindowExpired,
|
|
840
873
|
projectExecutorDeltas2 as projectExecutorDeltas,
|
|
874
|
+
sanitizeProfileEnv2 as sanitizeProfileEnv,
|
|
841
875
|
spawnEngineProcess2 as spawnEngineProcess,
|
|
842
876
|
withInlineHandoffContext
|
|
843
877
|
};
|
|
@@ -14,12 +14,12 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
normalizeError2
|
|
16
16
|
} from "../index-akf0xkrm.js";
|
|
17
|
-
import {
|
|
18
|
-
runNativeCommand2
|
|
19
|
-
} from "../index-pzhqydxb.js";
|
|
20
17
|
import {
|
|
21
18
|
streamNativeCommand2
|
|
22
19
|
} from "../index-3fym4j8n.js";
|
|
20
|
+
import {
|
|
21
|
+
runNativeCommand2
|
|
22
|
+
} from "../index-pzhqydxb.js";
|
|
23
23
|
import {
|
|
24
24
|
StreamLineLimitError2,
|
|
25
25
|
readBoundedUtf8Lines
|
|
@@ -1,18 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PlanWindowSchema2,
|
|
3
|
-
PlanLimitsSchema2
|
|
4
|
-
|
|
3
|
+
PlanLimitsSchema2,
|
|
4
|
+
clampPlanName
|
|
5
|
+
} from "./index-g2d9kws8.js";
|
|
6
|
+
import {
|
|
7
|
+
isPositiveSafeInteger
|
|
8
|
+
} from "./index-gr0kxymw.js";
|
|
5
9
|
|
|
6
10
|
// src/agent-executor/plan-limits.ts
|
|
11
|
+
var MINUTES_SUFFIX = /:([1-9]\d*)m(?::|$)/;
|
|
7
12
|
function planWindowExpired2(window, now) {
|
|
8
13
|
return window.resetsAt !== undefined && Date.parse(window.resetsAt) <= now.getTime();
|
|
9
14
|
}
|
|
15
|
+
function planWindowDurationMins2(window) {
|
|
16
|
+
if (window.windowDurationMins !== undefined)
|
|
17
|
+
return window.windowDurationMins;
|
|
18
|
+
if (window.name === "five_hour" || window.name.startsWith("five_hour_"))
|
|
19
|
+
return 300;
|
|
20
|
+
if (window.name === "seven_day" || window.name.startsWith("seven_day_") || window.name === "weekly") {
|
|
21
|
+
return 10080;
|
|
22
|
+
}
|
|
23
|
+
const match = MINUTES_SUFFIX.exec(window.name);
|
|
24
|
+
if (match?.[1] !== undefined) {
|
|
25
|
+
const parsed = Number(match[1]);
|
|
26
|
+
if (isPositiveSafeInteger(parsed))
|
|
27
|
+
return parsed;
|
|
28
|
+
}
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
10
31
|
function planLimitsDue2(input) {
|
|
11
32
|
if (!Number.isFinite(input.maxAgeMs) || input.maxAgeMs < 0) {
|
|
12
33
|
throw new RangeError(`planLimitsDue maxAgeMs must be a finite non-negative number, received ${input.maxAgeMs}`);
|
|
13
34
|
}
|
|
14
35
|
if (input.limits === undefined)
|
|
15
36
|
return true;
|
|
37
|
+
if (input.limits.answer !== "known" && input.limits.error === undefined)
|
|
38
|
+
return false;
|
|
16
39
|
if (input.limits.windows.some((window) => planWindowExpired2(window, input.now)))
|
|
17
40
|
return true;
|
|
18
41
|
return input.now.getTime() - Date.parse(input.limits.observedAt) >= input.maxAgeMs;
|
|
@@ -30,11 +53,13 @@ function mergeRateLimitEvent2(input) {
|
|
|
30
53
|
for (const window of input.windows)
|
|
31
54
|
merged.set(window.name, PlanWindowSchema2.parse(window));
|
|
32
55
|
const all = [...merged.values()].sort((a, b) => a.name.localeCompare(b.name));
|
|
56
|
+
const plan = clampPlanName(input.plan) ?? input.previous?.plan;
|
|
33
57
|
return PlanLimitsSchema2.parse({
|
|
34
58
|
answer: all.length > 0 ? "known" : input.previous?.answer ?? "unpublished",
|
|
35
59
|
windows: all,
|
|
36
|
-
observedAt: input.now.toISOString()
|
|
60
|
+
observedAt: input.now.toISOString(),
|
|
61
|
+
...plan !== undefined && { plan }
|
|
37
62
|
});
|
|
38
63
|
}
|
|
39
64
|
|
|
40
|
-
export { planWindowExpired2, planLimitsDue2, planLimitsReadFailed2, mergeRateLimitEvent2 };
|
|
65
|
+
export { planWindowExpired2, planWindowDurationMins2, planLimitsDue2, planLimitsReadFailed2, mergeRateLimitEvent2 };
|
|
@@ -2,20 +2,22 @@ import {
|
|
|
2
2
|
InteractionReplySchema2,
|
|
3
3
|
PlanWindowSchema2,
|
|
4
4
|
PlanLimitsSchema2,
|
|
5
|
-
engineProfile
|
|
6
|
-
} from "./index-dbp6xemn.js";
|
|
7
|
-
import {
|
|
5
|
+
engineProfile,
|
|
8
6
|
nonEmptyString,
|
|
7
|
+
clampPlanName,
|
|
9
8
|
epochSecondsToIso,
|
|
10
9
|
safeJsonValue,
|
|
11
10
|
clampUniqueWindowName
|
|
12
|
-
} from "./index-
|
|
11
|
+
} from "./index-g2d9kws8.js";
|
|
13
12
|
import {
|
|
14
13
|
isSupportedImageMediaType
|
|
15
14
|
} from "./index-y0a4gt1s.js";
|
|
16
15
|
import {
|
|
17
16
|
errnoOf
|
|
18
17
|
} from "./index-jj9228tt.js";
|
|
18
|
+
import {
|
|
19
|
+
isRecord
|
|
20
|
+
} from "./index-ps3djm8d.js";
|
|
19
21
|
|
|
20
22
|
// src/agent-executor/claude/classify.ts
|
|
21
23
|
import { z as z3 } from "zod";
|
|
@@ -1038,13 +1040,83 @@ var FIXED_USAGE_WINDOWS = [
|
|
|
1038
1040
|
"seven_day_opus",
|
|
1039
1041
|
"seven_day_sonnet"
|
|
1040
1042
|
];
|
|
1043
|
+
var FIXED_USAGE_WINDOW_SET = new Set(FIXED_USAGE_WINDOWS);
|
|
1044
|
+
var SKIPPED_USAGE_KEYS = new Set([
|
|
1045
|
+
"extra_usage",
|
|
1046
|
+
"limits",
|
|
1047
|
+
"spend",
|
|
1048
|
+
"model_scoped",
|
|
1049
|
+
"subscription_type",
|
|
1050
|
+
"rate_limits_available",
|
|
1051
|
+
"rate_limits"
|
|
1052
|
+
]);
|
|
1041
1053
|
function parseIsoReset(value) {
|
|
1042
1054
|
if (typeof value !== "string")
|
|
1043
1055
|
return;
|
|
1044
1056
|
const parsed = PlanWindowSchema2.shape.resetsAt.safeParse(value);
|
|
1045
1057
|
return parsed.success ? parsed.data : undefined;
|
|
1046
1058
|
}
|
|
1047
|
-
function
|
|
1059
|
+
function appendUsageBucket(windows, seenNames, key, rawEntry) {
|
|
1060
|
+
if (windows.length >= MAX_PLAN_WINDOWS || !isRecord(rawEntry))
|
|
1061
|
+
return;
|
|
1062
|
+
const entryParsed = ClaudeUsageWindowSchema.safeParse(rawEntry);
|
|
1063
|
+
if (!entryParsed.success)
|
|
1064
|
+
return;
|
|
1065
|
+
const entry = entryParsed.data;
|
|
1066
|
+
if (entry.utilization == null || !Number.isFinite(entry.utilization))
|
|
1067
|
+
return;
|
|
1068
|
+
const trimmedKey = nonEmptyString(key)?.trim();
|
|
1069
|
+
if (trimmedKey === undefined)
|
|
1070
|
+
return;
|
|
1071
|
+
const resetsAt = parseIsoReset(entry.resets_at);
|
|
1072
|
+
const name = clampUniqueWindowName(trimmedKey, "", seenNames, key, MAX_WINDOW_NAME_CHARS);
|
|
1073
|
+
windows.push(PlanWindowSchema2.parse({
|
|
1074
|
+
name,
|
|
1075
|
+
usedPercent: Math.min(100, entry.utilization),
|
|
1076
|
+
...resetsAt !== undefined && { resetsAt }
|
|
1077
|
+
}));
|
|
1078
|
+
}
|
|
1079
|
+
function extractUsageWindows(bucketMap) {
|
|
1080
|
+
const windows = [];
|
|
1081
|
+
const seenNames = new Set;
|
|
1082
|
+
for (const key of FIXED_USAGE_WINDOWS) {
|
|
1083
|
+
if (windows.length >= MAX_PLAN_WINDOWS)
|
|
1084
|
+
break;
|
|
1085
|
+
if (key in bucketMap)
|
|
1086
|
+
appendUsageBucket(windows, seenNames, key, bucketMap[key]);
|
|
1087
|
+
}
|
|
1088
|
+
for (const key of Object.keys(bucketMap).sort((a, b) => a.localeCompare(b))) {
|
|
1089
|
+
if (windows.length >= MAX_PLAN_WINDOWS)
|
|
1090
|
+
break;
|
|
1091
|
+
if (FIXED_USAGE_WINDOW_SET.has(key) || SKIPPED_USAGE_KEYS.has(key))
|
|
1092
|
+
continue;
|
|
1093
|
+
appendUsageBucket(windows, seenNames, key, bucketMap[key]);
|
|
1094
|
+
}
|
|
1095
|
+
const modelScoped = bucketMap.model_scoped;
|
|
1096
|
+
if (Array.isArray(modelScoped)) {
|
|
1097
|
+
for (let index = 0;index < modelScoped.length; index += 1) {
|
|
1098
|
+
if (windows.length >= MAX_PLAN_WINDOWS)
|
|
1099
|
+
break;
|
|
1100
|
+
const entry = ClaudeModelScopedWindowSchema.safeParse(modelScoped[index]);
|
|
1101
|
+
if (!entry.success)
|
|
1102
|
+
continue;
|
|
1103
|
+
const { display_name, utilization, resets_at } = entry.data;
|
|
1104
|
+
const label = nonEmptyString(display_name)?.trim().slice(0, MAX_WINDOW_NAME_CHARS);
|
|
1105
|
+
if (label === undefined || utilization == null || !Number.isFinite(utilization))
|
|
1106
|
+
continue;
|
|
1107
|
+
const name = clampUniqueWindowName(`model:${label}`, "", seenNames, `model:${display_name ?? label}:${index}`, MAX_WINDOW_NAME_CHARS);
|
|
1108
|
+
const resetsAt = parseIsoReset(resets_at);
|
|
1109
|
+
windows.push(PlanWindowSchema2.parse({
|
|
1110
|
+
name,
|
|
1111
|
+
usedPercent: Math.min(100, utilization),
|
|
1112
|
+
...resetsAt !== undefined && { resetsAt },
|
|
1113
|
+
label
|
|
1114
|
+
}));
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
return windows;
|
|
1118
|
+
}
|
|
1119
|
+
function claudeUsagePlanLimits2(raw, now = new Date) {
|
|
1048
1120
|
const parsed = ClaudeUsageResponseSchema.safeParse(raw);
|
|
1049
1121
|
if (!parsed.success) {
|
|
1050
1122
|
return PlanLimitsSchema2.parse({
|
|
@@ -1054,60 +1126,24 @@ function claudeUsagePlanLimits(raw, now) {
|
|
|
1054
1126
|
});
|
|
1055
1127
|
}
|
|
1056
1128
|
const { subscription_type, rate_limits_available, rate_limits } = parsed.data;
|
|
1129
|
+
const plan = clampPlanName(subscription_type, MAX_WINDOW_NAME_CHARS);
|
|
1130
|
+
const isEnvelope = isRecord(raw) && (("rate_limits" in raw) || ("rate_limits_available" in raw));
|
|
1057
1131
|
if (rate_limits_available === false) {
|
|
1058
1132
|
return PlanLimitsSchema2.parse({
|
|
1059
|
-
answer:
|
|
1133
|
+
answer: plan !== undefined ? "unpublished" : "no-plan-limit",
|
|
1060
1134
|
windows: [],
|
|
1061
|
-
observedAt: now.toISOString()
|
|
1135
|
+
observedAt: now.toISOString(),
|
|
1136
|
+
...plan !== undefined && { plan }
|
|
1062
1137
|
});
|
|
1063
1138
|
}
|
|
1064
|
-
const
|
|
1065
|
-
const
|
|
1066
|
-
|
|
1067
|
-
for (const key of FIXED_USAGE_WINDOWS) {
|
|
1068
|
-
if (windows.length >= MAX_PLAN_WINDOWS)
|
|
1069
|
-
break;
|
|
1070
|
-
const entryParsed = ClaudeUsageWindowSchema.safeParse(rate_limits[key]);
|
|
1071
|
-
if (!entryParsed.success)
|
|
1072
|
-
continue;
|
|
1073
|
-
const entry = entryParsed.data;
|
|
1074
|
-
if (entry.utilization == null || !Number.isFinite(entry.utilization))
|
|
1075
|
-
continue;
|
|
1076
|
-
const resetsAt = parseIsoReset(entry.resets_at);
|
|
1077
|
-
seenNames.add(key);
|
|
1078
|
-
windows.push(PlanWindowSchema2.parse({
|
|
1079
|
-
name: key,
|
|
1080
|
-
usedPercent: Math.min(100, entry.utilization),
|
|
1081
|
-
...resetsAt !== undefined && { resetsAt }
|
|
1082
|
-
}));
|
|
1083
|
-
}
|
|
1084
|
-
const modelScoped = rate_limits.model_scoped;
|
|
1085
|
-
if (Array.isArray(modelScoped)) {
|
|
1086
|
-
for (let index = 0;index < modelScoped.length; index += 1) {
|
|
1087
|
-
if (windows.length >= MAX_PLAN_WINDOWS)
|
|
1088
|
-
break;
|
|
1089
|
-
const entry = ClaudeModelScopedWindowSchema.safeParse(modelScoped[index]);
|
|
1090
|
-
if (!entry.success)
|
|
1091
|
-
continue;
|
|
1092
|
-
const { display_name, utilization, resets_at } = entry.data;
|
|
1093
|
-
const label = nonEmptyString(display_name)?.trim().slice(0, MAX_WINDOW_NAME_CHARS);
|
|
1094
|
-
if (label === undefined || utilization == null || !Number.isFinite(utilization))
|
|
1095
|
-
continue;
|
|
1096
|
-
const name = clampUniqueWindowName(`model:${label}`, "", seenNames, `model:${display_name ?? label}:${index}`, MAX_WINDOW_NAME_CHARS);
|
|
1097
|
-
const resetsAt = parseIsoReset(resets_at);
|
|
1098
|
-
windows.push(PlanWindowSchema2.parse({
|
|
1099
|
-
name,
|
|
1100
|
-
usedPercent: Math.min(100, utilization),
|
|
1101
|
-
...resetsAt !== undefined && { resetsAt },
|
|
1102
|
-
label
|
|
1103
|
-
}));
|
|
1104
|
-
}
|
|
1105
|
-
}
|
|
1106
|
-
}
|
|
1139
|
+
const bucketMap = isEnvelope ? isRecord(rate_limits) ? rate_limits : undefined : isRecord(raw) ? raw : undefined;
|
|
1140
|
+
const windows = bucketMap !== undefined ? extractUsageWindows(bucketMap) : [];
|
|
1141
|
+
const answer = windows.length > 0 ? "known" : "unpublished";
|
|
1107
1142
|
return PlanLimitsSchema2.parse({
|
|
1108
|
-
answer
|
|
1143
|
+
answer,
|
|
1109
1144
|
windows,
|
|
1110
|
-
observedAt: now.toISOString()
|
|
1145
|
+
observedAt: now.toISOString(),
|
|
1146
|
+
...plan !== undefined && { plan }
|
|
1111
1147
|
});
|
|
1112
1148
|
}
|
|
1113
1149
|
function claudePlanWindows2(info) {
|
|
@@ -1196,7 +1232,7 @@ function classifyTranscriptLine(bytes, uuid) {
|
|
|
1196
1232
|
return "invalid";
|
|
1197
1233
|
return recordUuid === uuid ? "match" : "other";
|
|
1198
1234
|
}
|
|
1199
|
-
async function
|
|
1235
|
+
async function claudeTranscriptHasUuid2(path, uuid) {
|
|
1200
1236
|
let handle;
|
|
1201
1237
|
try {
|
|
1202
1238
|
handle = await open(path, "r");
|
|
@@ -1288,13 +1324,13 @@ async function claudeTranscriptExists(path) {
|
|
|
1288
1324
|
await handle.close();
|
|
1289
1325
|
return true;
|
|
1290
1326
|
}
|
|
1291
|
-
async function
|
|
1327
|
+
async function findTranscriptInput2(engine, input) {
|
|
1292
1328
|
const profile = engineProfile(engine, input.profile);
|
|
1293
|
-
return
|
|
1329
|
+
return claudeTranscriptHasUuid2(claudeTranscriptPath2({
|
|
1294
1330
|
home: profile.home,
|
|
1295
1331
|
cwd: input.cwd,
|
|
1296
1332
|
sessionId: input.nativeThreadId
|
|
1297
1333
|
}), input.clientId);
|
|
1298
1334
|
}
|
|
1299
1335
|
|
|
1300
|
-
export { ClaudeTaskUsageSchema2, ClaudeRuntimeEventSchema2, claudeUserContent, claudeUserMessage, resolveClaudePermissionReply, claudePermissionResponse, claudeControlError, claudeInterrupt, newClaudeTurnState, classifyClaudeRecord,
|
|
1336
|
+
export { ClaudeTaskUsageSchema2, ClaudeRuntimeEventSchema2, claudeUserContent, claudeUserMessage, resolveClaudePermissionReply, claudePermissionResponse, claudeControlError, claudeInterrupt, newClaudeTurnState, classifyClaudeRecord, claudeUsagePlanLimits2, claudePlanWindows2, claudeTranscriptPath2, claudeTranscriptHasUuid2, claudeTranscriptExists, findTranscriptInput2 };
|