deepline 0.1.239 → 0.1.240
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/bundling-sources/sdk/src/release.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +27 -7
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +8 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +12 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +5 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-session-execution.ts +30 -4
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +41 -0
- package/dist/bundling-sources/shared_libs/play-runtime/secret-redaction.ts +5 -1
- package/dist/cli/index.js +3 -3
- package/dist/cli/index.mjs +3 -3
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
|
@@ -110,10 +110,10 @@ export const SDK_RELEASE = {
|
|
|
110
110
|
// silently materializing them as unmatched results.
|
|
111
111
|
// 0.1.220 deprecates SDK CLI versions below 0.1.219 and updates them
|
|
112
112
|
// automatically without blocking their current command.
|
|
113
|
-
version: '0.1.
|
|
113
|
+
version: '0.1.240',
|
|
114
114
|
apiContract: '2026-06-dataset-handle-results-hard-cutover',
|
|
115
115
|
supportPolicy: {
|
|
116
|
-
latest: '0.1.
|
|
116
|
+
latest: '0.1.240',
|
|
117
117
|
minimumSupported: '0.1.53',
|
|
118
118
|
deprecatedBelow: '0.1.219',
|
|
119
119
|
commandMinimumSupported: [
|
|
@@ -5852,6 +5852,10 @@ export class PlayContextImpl {
|
|
|
5852
5852
|
for (const wake of waiters) wake();
|
|
5853
5853
|
}
|
|
5854
5854
|
|
|
5855
|
+
private toolBatchDispatcherNowMs(): number {
|
|
5856
|
+
return this.#options.toolBatchDispatcherClock?.nowMs() ?? Date.now();
|
|
5857
|
+
}
|
|
5858
|
+
|
|
5855
5859
|
private enqueueToolCall(request: ToolCallRequest): void {
|
|
5856
5860
|
if (this.toolDispatcherFailure != null) {
|
|
5857
5861
|
const resolver = this.toolCallResolvers.get(request.callId);
|
|
@@ -5864,7 +5868,10 @@ export class PlayContextImpl {
|
|
|
5864
5868
|
this.toolCallQueue.push(request);
|
|
5865
5869
|
const batchKey = this.toolBatchCoalesceKey(request);
|
|
5866
5870
|
if (batchKey && !this.toolBatchQueuedAtByKey.has(batchKey)) {
|
|
5867
|
-
this.toolBatchQueuedAtByKey.set(
|
|
5871
|
+
this.toolBatchQueuedAtByKey.set(
|
|
5872
|
+
batchKey,
|
|
5873
|
+
this.toolBatchDispatcherNowMs(),
|
|
5874
|
+
);
|
|
5868
5875
|
}
|
|
5869
5876
|
this.wakeToolDispatcher();
|
|
5870
5877
|
}
|
|
@@ -5941,15 +5948,26 @@ export class PlayContextImpl {
|
|
|
5941
5948
|
|
|
5942
5949
|
private waitForToolDispatcherWake(deadlineMs: number | null): Promise<void> {
|
|
5943
5950
|
return new Promise((resolve) => {
|
|
5944
|
-
let
|
|
5951
|
+
let cancelDeadline: (() => void) | null = null;
|
|
5945
5952
|
const wake = () => {
|
|
5946
|
-
|
|
5953
|
+
cancelDeadline?.();
|
|
5954
|
+
cancelDeadline = null;
|
|
5947
5955
|
this.toolDispatcherWakeWaiters.delete(wake);
|
|
5948
5956
|
resolve();
|
|
5949
5957
|
};
|
|
5950
5958
|
this.toolDispatcherWakeWaiters.add(wake);
|
|
5951
5959
|
if (deadlineMs != null) {
|
|
5952
|
-
|
|
5960
|
+
const delayMs = Math.max(
|
|
5961
|
+
0,
|
|
5962
|
+
deadlineMs - this.toolBatchDispatcherNowMs(),
|
|
5963
|
+
);
|
|
5964
|
+
const clock = this.#options.toolBatchDispatcherClock;
|
|
5965
|
+
if (clock) {
|
|
5966
|
+
cancelDeadline = clock.schedule(delayMs, wake);
|
|
5967
|
+
} else {
|
|
5968
|
+
const timer = setTimeout(wake, delayMs);
|
|
5969
|
+
cancelDeadline = () => clearTimeout(timer);
|
|
5970
|
+
}
|
|
5953
5971
|
}
|
|
5954
5972
|
});
|
|
5955
5973
|
}
|
|
@@ -5977,7 +5995,9 @@ export class PlayContextImpl {
|
|
|
5977
5995
|
throw this.toolDispatcherFailure;
|
|
5978
5996
|
}
|
|
5979
5997
|
|
|
5980
|
-
const dispatchable = this.takeDispatchableToolCalls(
|
|
5998
|
+
const dispatchable = this.takeDispatchableToolCalls(
|
|
5999
|
+
this.toolBatchDispatcherNowMs(),
|
|
6000
|
+
);
|
|
5981
6001
|
if (dispatchable.requests.length > 0) {
|
|
5982
6002
|
pass += 1;
|
|
5983
6003
|
this.log(` Batch pass ${pass}`);
|
|
@@ -6688,8 +6708,8 @@ export class PlayContextImpl {
|
|
|
6688
6708
|
rowScopeKey ? `@${rowScopeKey}` : ''
|
|
6689
6709
|
}`;
|
|
6690
6710
|
if (rowScope) {
|
|
6691
|
-
const namespaces =
|
|
6692
|
-
|
|
6711
|
+
const namespaces = (rowScope.inlineChildInvocationNamespaces ??=
|
|
6712
|
+
new Set<string>());
|
|
6693
6713
|
namespaces.add(namespace);
|
|
6694
6714
|
if (namespaces.size > MAX_INLINE_CHILD_INVOCATIONS_PER_ROW) {
|
|
6695
6715
|
throw new Error(
|
|
@@ -680,6 +680,14 @@ export interface ContextOptions {
|
|
|
680
680
|
getBatchOperationStrategy?: (
|
|
681
681
|
operation: string,
|
|
682
682
|
) => AnyBatchOperationStrategy | null;
|
|
683
|
+
/**
|
|
684
|
+
* Internal deterministic clock for fixed-window dispatcher tests. Runtime
|
|
685
|
+
* adapters omit this and use the system clock.
|
|
686
|
+
*/
|
|
687
|
+
toolBatchDispatcherClock?: {
|
|
688
|
+
nowMs: () => number;
|
|
689
|
+
schedule: (delayMs: number, wake: () => void) => () => void;
|
|
690
|
+
};
|
|
683
691
|
// How long batchable calls wait for same-key row continuations before
|
|
684
692
|
// dispatching, measured from the first queued item. Defaults to 5ms in
|
|
685
693
|
// production; tests override it to a large value to make coalescing
|
|
@@ -1055,7 +1055,12 @@ export function reducePlayRunLedgerEvent(
|
|
|
1055
1055
|
if (ignoreNonTerminalAfterStickyTerminal) {
|
|
1056
1056
|
return withTiming(base);
|
|
1057
1057
|
}
|
|
1058
|
-
|
|
1058
|
+
// Scheduler wait/resume events own the active lifecycle once a run is
|
|
1059
|
+
// parked. Worker registration can arrive later through an independent
|
|
1060
|
+
// ledger append lane; replaying that older `run.created` fact must not
|
|
1061
|
+
// make an externally-waiting run look active again.
|
|
1062
|
+
const createdStatus =
|
|
1063
|
+
base.status === 'waiting' ? 'waiting' : (event.status ?? base.status);
|
|
1059
1064
|
return withTiming({
|
|
1060
1065
|
...base,
|
|
1061
1066
|
playName: event.playName ?? base.playName ?? null,
|
|
@@ -1075,7 +1080,9 @@ export function reducePlayRunLedgerEvent(
|
|
|
1075
1080
|
playName: event.playName ?? base.playName ?? null,
|
|
1076
1081
|
status: isTerminalPlayRunLedgerStatus(base.status)
|
|
1077
1082
|
? base.status
|
|
1078
|
-
: '
|
|
1083
|
+
: base.status === 'waiting'
|
|
1084
|
+
? 'waiting'
|
|
1085
|
+
: 'running',
|
|
1079
1086
|
startedAt: base.startedAt ?? occurredAt,
|
|
1080
1087
|
});
|
|
1081
1088
|
case 'run.waiting':
|
|
@@ -1200,7 +1207,9 @@ export function reducePlayRunLedgerEvent(
|
|
|
1200
1207
|
...base,
|
|
1201
1208
|
status: isTerminalPlayRunLedgerStatus(base.status)
|
|
1202
1209
|
? base.status
|
|
1203
|
-
: '
|
|
1210
|
+
: base.status === 'waiting'
|
|
1211
|
+
? 'waiting'
|
|
1212
|
+
: 'running',
|
|
1204
1213
|
startedAt: base.startedAt ?? occurredAt,
|
|
1205
1214
|
orderedStepIds: appendOrderedStepId(base, event.stepId),
|
|
1206
1215
|
stepsById: { ...base.stepsById, [event.stepId]: nextStep },
|
|
@@ -32,6 +32,7 @@ export type StagedDaytonaPayload = {
|
|
|
32
32
|
workDir: string;
|
|
33
33
|
command: string;
|
|
34
34
|
readyPath: string;
|
|
35
|
+
startAckPath: string;
|
|
35
36
|
outputPath: string;
|
|
36
37
|
exitCodePath: string;
|
|
37
38
|
progressEventPath: string;
|
|
@@ -389,6 +390,7 @@ export async function stageDaytonaRunnerPayload(input: {
|
|
|
389
390
|
const outputPath = `${workDir}/deepline-play-output-${randomUUID()}.log`;
|
|
390
391
|
const exitCodePath = `${workDir}/deepline-play-exit-${randomUUID()}.txt`;
|
|
391
392
|
const readyPath = `${workDir}/deepline-play-ready-${randomUUID()}.json`;
|
|
393
|
+
const startAckPath = `${workDir}/deepline-play-start-ack-${randomUUID()}.json`;
|
|
392
394
|
const progressEventPath = `${workDir}/deepline-play-progress-${randomUUID()}.jsonl`;
|
|
393
395
|
const runnerTraceEnv =
|
|
394
396
|
process.env.DEEPLINE_RUNTIME_RECEIPT_TRACE === '1'
|
|
@@ -401,18 +403,19 @@ export async function stageDaytonaRunnerPayload(input: {
|
|
|
401
403
|
artifactCodePath,
|
|
402
404
|
artifactSourceMapPath,
|
|
403
405
|
crashPusherPath,
|
|
404
|
-
})} && DEEPLINE_PLAY_RUNNER_READY_PATH=${shellQuote(readyPath)} DEEPLINE_PLAY_RUNNER_PROGRESS_EVENT_PATH=${shellQuote(progressEventPath)} DEEPLINE_PLAY_RUNNER_STDOUT_EVENT_MODE=compact ${runnerTraceEnv}node ${shellQuote(runnerPath)} ${shellQuote(configPath)}`;
|
|
406
|
+
})} && DEEPLINE_PLAY_RUNNER_READY_PATH=${shellQuote(readyPath)} DEEPLINE_PLAY_RUNNER_START_ACK_PATH=${shellQuote(startAckPath)} DEEPLINE_PLAY_RUNNER_PROGRESS_EVENT_PATH=${shellQuote(progressEventPath)} DEEPLINE_PLAY_RUNNER_STDOUT_EVENT_MODE=compact ${runnerTraceEnv}node ${shellQuote(runnerPath)} ${shellQuote(configPath)}`;
|
|
405
407
|
// Crash-containment epilogue: runs UNCONDITIONALLY after the runner exits and
|
|
406
408
|
// pushes the parsed (or synthesized) terminal to the gateway so the parked
|
|
407
409
|
// worker wakes within seconds of ANY runner death — process.exit abuse, OOM
|
|
408
410
|
// SIGKILL, or a crash before the in-process push. Idempotent against a
|
|
409
411
|
// successful in-runner push (terminals are first-write-wins).
|
|
410
|
-
const command = `rm -f ${shellQuote(outputPath)} ${shellQuote(exitCodePath)} ${shellQuote(readyPath)} ${shellQuote(progressEventPath)} ${shellQuote(`${progressEventPath}.*`)}; ( ${runnerCommand} ) > ${shellQuote(outputPath)} 2>&1; code=$?; printf '%s' "$code" > ${shellQuote(exitCodePath)}; node ${shellQuote(crashPusherPath)} ${shellQuote(configPath)} "$code" ${shellQuote(outputPath)} >> ${shellQuote(outputPath)} 2>&1 || true; printf 'deepline runner output captured: %s\\n' ${shellQuote(outputPath)}; exit "$code"`;
|
|
412
|
+
const command = `rm -f ${shellQuote(outputPath)} ${shellQuote(exitCodePath)} ${shellQuote(readyPath)} ${shellQuote(startAckPath)} ${shellQuote(progressEventPath)} ${shellQuote(`${progressEventPath}.*`)}; ( ${runnerCommand} ) > ${shellQuote(outputPath)} 2>&1; code=$?; printf '%s' "$code" > ${shellQuote(exitCodePath)}; node ${shellQuote(crashPusherPath)} ${shellQuote(configPath)} "$code" ${shellQuote(outputPath)} >> ${shellQuote(outputPath)} 2>&1 || true; printf 'deepline runner output captured: %s\\n' ${shellQuote(outputPath)}; exit "$code"`;
|
|
411
413
|
|
|
412
414
|
return {
|
|
413
415
|
workDir: input.workDir,
|
|
414
416
|
command,
|
|
415
417
|
readyPath,
|
|
418
|
+
startAckPath,
|
|
416
419
|
outputPath,
|
|
417
420
|
exitCodePath,
|
|
418
421
|
progressEventPath,
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { DaytonaSandbox } from './daytona-lifecycle';
|
|
2
2
|
|
|
3
3
|
export type DetachedDaytonaStartupDiagnostic = {
|
|
4
|
+
readyMarkerObserved: boolean;
|
|
5
|
+
startAcknowledgementAttempted: boolean;
|
|
4
6
|
commandFound: boolean;
|
|
5
7
|
exitCode: number | null;
|
|
6
8
|
sessionFound: boolean;
|
|
@@ -51,6 +53,8 @@ export async function inspectDetachedDaytonaStartup(input: {
|
|
|
51
53
|
}): Promise<DetachedDaytonaStartupDiagnostic> {
|
|
52
54
|
const errors: string[] = [];
|
|
53
55
|
const diagnostic: DetachedDaytonaStartupDiagnostic = {
|
|
56
|
+
readyMarkerObserved: false,
|
|
57
|
+
startAcknowledgementAttempted: false,
|
|
54
58
|
commandFound: false,
|
|
55
59
|
exitCode: null,
|
|
56
60
|
sessionFound: false,
|
|
@@ -119,7 +123,10 @@ export const DAYTONA_RUNNER_READY_TIMEOUT_MS = 60_000;
|
|
|
119
123
|
const DAYTONA_RUNNER_READY_POLL_MS = 250;
|
|
120
124
|
|
|
121
125
|
export class DaytonaRunnerInitializationError extends Error {
|
|
122
|
-
constructor(
|
|
126
|
+
constructor(
|
|
127
|
+
message: string,
|
|
128
|
+
readonly startupDiagnostic: DetachedDaytonaStartupDiagnostic,
|
|
129
|
+
) {
|
|
123
130
|
super(message);
|
|
124
131
|
this.name = 'DaytonaRunnerInitializationError';
|
|
125
132
|
}
|
|
@@ -163,6 +170,7 @@ export async function confirmDetachedDaytonaRunnerReady(input: {
|
|
|
163
170
|
sessionId: string;
|
|
164
171
|
cmdId: string;
|
|
165
172
|
readyPath: string;
|
|
173
|
+
startAckPath: string;
|
|
166
174
|
exitCodePath: string;
|
|
167
175
|
timeoutMs?: number;
|
|
168
176
|
pollMs?: number;
|
|
@@ -180,6 +188,8 @@ export async function confirmDetachedDaytonaRunnerReady(input: {
|
|
|
180
188
|
const pollMs = Math.max(1, input.pollMs ?? DAYTONA_RUNNER_READY_POLL_MS);
|
|
181
189
|
const deadline = now() + timeoutMs;
|
|
182
190
|
let markerDiagnosis = 'ready_marker_unavailable';
|
|
191
|
+
let readyMarkerObserved = false;
|
|
192
|
+
let startAcknowledgementAttempted = false;
|
|
183
193
|
|
|
184
194
|
while (now() < deadline) {
|
|
185
195
|
try {
|
|
@@ -187,8 +197,21 @@ export async function confirmDetachedDaytonaRunnerReady(input: {
|
|
|
187
197
|
const parsed = JSON.parse(marker.toString('utf-8')) as {
|
|
188
198
|
ready?: unknown;
|
|
189
199
|
};
|
|
190
|
-
if (parsed.ready === true)
|
|
191
|
-
|
|
200
|
+
if (parsed.ready === true) {
|
|
201
|
+
readyMarkerObserved = true;
|
|
202
|
+
startAcknowledgementAttempted = true;
|
|
203
|
+
try {
|
|
204
|
+
await input.sandbox.fs.uploadFile(
|
|
205
|
+
Buffer.from('{"start":true}', 'utf-8'),
|
|
206
|
+
input.startAckPath,
|
|
207
|
+
);
|
|
208
|
+
return;
|
|
209
|
+
} catch {
|
|
210
|
+
markerDiagnosis = 'start_ack_unavailable';
|
|
211
|
+
}
|
|
212
|
+
} else {
|
|
213
|
+
markerDiagnosis = 'ready_marker_invalid';
|
|
214
|
+
}
|
|
192
215
|
} catch {
|
|
193
216
|
markerDiagnosis = 'ready_marker_unavailable';
|
|
194
217
|
}
|
|
@@ -201,9 +224,12 @@ export async function confirmDetachedDaytonaRunnerReady(input: {
|
|
|
201
224
|
cmdId: input.cmdId,
|
|
202
225
|
exitCodePath: input.exitCodePath,
|
|
203
226
|
});
|
|
227
|
+
diagnostic.readyMarkerObserved = readyMarkerObserved;
|
|
228
|
+
diagnostic.startAcknowledgementAttempted = startAcknowledgementAttempted;
|
|
204
229
|
const oomIndicated =
|
|
205
230
|
diagnostic.exitCode === 137 || diagnostic.exitCodeFile === 137;
|
|
206
231
|
throw new DaytonaRunnerInitializationError(
|
|
207
|
-
`RUNTIME_SANDBOX_START_FAILED: Daytona accepted detached command ${input.cmdId} in sandbox ${input.sandbox.id}, but the play runner did not materialize and establish receipt-gateway liveness within ${timeoutMs}ms. Marker diagnosis: ${markerDiagnosis}. Daytona diagnosis: ${JSON.stringify(diagnostic)}. OOM is ${oomIndicated ? 'indicated by exit code 137' : 'not confirmed by the available Daytona evidence'}. The
|
|
232
|
+
`RUNTIME_SANDBOX_START_FAILED: Daytona accepted detached command ${input.cmdId} in sandbox ${input.sandbox.id}, but the play runner did not materialize and establish receipt-gateway liveness within ${timeoutMs}ms. Marker diagnosis: ${markerDiagnosis}. Daytona diagnosis: ${JSON.stringify(diagnostic)}. OOM is ${oomIndicated ? 'indicated by exit code 137' : 'not confirmed by the available Daytona evidence'}. The worker will not park this runner; the failed runner was stopped and was not retried in place.`,
|
|
233
|
+
diagnostic,
|
|
208
234
|
);
|
|
209
235
|
}
|
|
@@ -474,6 +474,27 @@ function isRetryableDaytonaInfrastructureFailure(error: unknown): boolean {
|
|
|
474
474
|
return DAYTONA_INFRASTRUCTURE_RETRY_PATTERN.test(message);
|
|
475
475
|
}
|
|
476
476
|
|
|
477
|
+
function isRetryableUnstartedDaytonaRunner(
|
|
478
|
+
error: unknown,
|
|
479
|
+
): error is DaytonaRunnerInitializationError {
|
|
480
|
+
if (!(error instanceof DaytonaRunnerInitializationError)) return false;
|
|
481
|
+
const diagnostic = error.startupDiagnostic;
|
|
482
|
+
// The ready fence runs before any customer play code. If Daytona accepted
|
|
483
|
+
// the command but the worker never observed its ready marker, the runner
|
|
484
|
+
// cannot pass the reverse start-ack fence and customer code cannot begin.
|
|
485
|
+
// Terminate that sandbox and retry once on a fresh one even when its Node
|
|
486
|
+
// process is still alive. Do not retry after a start acknowledgement was
|
|
487
|
+
// attempted (its write outcome may be ambiguous), or after a runner exit.
|
|
488
|
+
return (
|
|
489
|
+
diagnostic.commandFound &&
|
|
490
|
+
diagnostic.sessionFound &&
|
|
491
|
+
diagnostic.exitCode === null &&
|
|
492
|
+
diagnostic.exitCodeFile === null &&
|
|
493
|
+
!diagnostic.readyMarkerObserved &&
|
|
494
|
+
!diagnostic.startAcknowledgementAttempted
|
|
495
|
+
);
|
|
496
|
+
}
|
|
497
|
+
|
|
477
498
|
function prepareDaytonaExecution(
|
|
478
499
|
input: PlayRunnerPrepareInput,
|
|
479
500
|
callbacks: Parameters<PlayRunnerBackend['execute']>[1],
|
|
@@ -819,6 +840,7 @@ export const daytonaPlayRunnerBackend: PlayRunnerBackend = {
|
|
|
819
840
|
sessionId: start.sessionId,
|
|
820
841
|
cmdId: start.cmdId,
|
|
821
842
|
readyPath: stagedPayload.readyPath,
|
|
843
|
+
startAckPath: stagedPayload.startAckPath,
|
|
822
844
|
exitCodePath: stagedPayload.exitCodePath,
|
|
823
845
|
}),
|
|
824
846
|
cancellationPromise,
|
|
@@ -868,6 +890,25 @@ export const daytonaPlayRunnerBackend: PlayRunnerBackend = {
|
|
|
868
890
|
onCancel();
|
|
869
891
|
throw new Error(DAYTONA_CANCELLED_ERROR);
|
|
870
892
|
}
|
|
893
|
+
if (
|
|
894
|
+
executionAttempt < DAYTONA_RUNTIME_INITIALIZATION_MAX_ATTEMPTS &&
|
|
895
|
+
isRetryableUnstartedDaytonaRunner(error)
|
|
896
|
+
) {
|
|
897
|
+
emitDaytonaStage(callbacks, config.context, 'execute:retry', {
|
|
898
|
+
sandboxId: sandboxForAttempt?.id ?? null,
|
|
899
|
+
attempt: executionAttempt + 1,
|
|
900
|
+
reason: 'runner_startup_not_live',
|
|
901
|
+
error: error.message,
|
|
902
|
+
elapsedMs: Date.now() - startedAt,
|
|
903
|
+
});
|
|
904
|
+
if (sandboxForAttempt) {
|
|
905
|
+
activeAcquiredResource!.billingEndedAt = Date.now();
|
|
906
|
+
await reportRetiringRuntimeResource(activeAcquiredResource!);
|
|
907
|
+
sandboxCleanup.stashActiveSandboxForRetry();
|
|
908
|
+
}
|
|
909
|
+
acquiredSandboxPromise = sandboxLifecycle.createFreshSandbox();
|
|
910
|
+
continue;
|
|
911
|
+
}
|
|
871
912
|
if (
|
|
872
913
|
executionAttempt < DAYTONA_INFRASTRUCTURE_MAX_ATTEMPTS &&
|
|
873
914
|
isRetryableDaytonaInfrastructureFailure(error)
|
|
@@ -2,7 +2,11 @@ export const SECRET_REDACTION_PLACEHOLDER = '[REDACTED_SECRET]';
|
|
|
2
2
|
|
|
3
3
|
const BEARER_TOKEN_RE = /\bBearer\s+[A-Za-z0-9._~+/=-]{12,}\b/g;
|
|
4
4
|
const BASIC_CREDENTIAL_RE = /\bBasic\s+[A-Za-z0-9+/]{4,}={0,2}\b/g;
|
|
5
|
-
|
|
5
|
+
// Bound each segment so V8 cannot recursively backtrack across a multi-megabyte
|
|
6
|
+
// opaque receipt value that contains no dots. Real executor/provider JWT
|
|
7
|
+
// segments are far smaller; 16 KiB per segment still leaves ample headroom.
|
|
8
|
+
const JWT_RE =
|
|
9
|
+
/\b[A-Za-z0-9_-]{8,16384}\.[A-Za-z0-9_-]{1,16384}\.[A-Za-z0-9_-]{8,16384}\b/g;
|
|
6
10
|
const PRIVATE_KEY_RE =
|
|
7
11
|
/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g;
|
|
8
12
|
const SENSITIVE_FIELD_NAME =
|
package/dist/cli/index.js
CHANGED
|
@@ -627,10 +627,10 @@ var SDK_RELEASE = {
|
|
|
627
627
|
// silently materializing them as unmatched results.
|
|
628
628
|
// 0.1.220 deprecates SDK CLI versions below 0.1.219 and updates them
|
|
629
629
|
// automatically without blocking their current command.
|
|
630
|
-
version: "0.1.
|
|
630
|
+
version: "0.1.240",
|
|
631
631
|
apiContract: "2026-06-dataset-handle-results-hard-cutover",
|
|
632
632
|
supportPolicy: {
|
|
633
|
-
latest: "0.1.
|
|
633
|
+
latest: "0.1.240",
|
|
634
634
|
minimumSupported: "0.1.53",
|
|
635
635
|
deprecatedBelow: "0.1.219",
|
|
636
636
|
commandMinimumSupported: [
|
|
@@ -1371,7 +1371,7 @@ function normalizePlayRunLedgerTerminalSource(value) {
|
|
|
1371
1371
|
var SECRET_REDACTION_PLACEHOLDER = "[REDACTED_SECRET]";
|
|
1372
1372
|
var BEARER_TOKEN_RE = /\bBearer\s+[A-Za-z0-9._~+/=-]{12,}\b/g;
|
|
1373
1373
|
var BASIC_CREDENTIAL_RE = /\bBasic\s+[A-Za-z0-9+/]{4,}={0,2}\b/g;
|
|
1374
|
-
var JWT_RE = /\b[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{1,}\.[A-Za-z0-9_-]{8,}\b/g;
|
|
1374
|
+
var JWT_RE = /\b[A-Za-z0-9_-]{8,16384}\.[A-Za-z0-9_-]{1,16384}\.[A-Za-z0-9_-]{8,16384}\b/g;
|
|
1375
1375
|
var PRIVATE_KEY_RE = /-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g;
|
|
1376
1376
|
var SENSITIVE_FIELD_NAME = "authorization|cookie|password|(?:client[_-]?)?secret|(?:access|refresh)[_-]?token|(?:x[_-]?)?api[_-]?key|private[_-]?key|token|credentials";
|
|
1377
1377
|
var COMMON_SECRET_RE = /\b(?:[prs]k_(?:live|test)_|(?:pat|ghp|github_pat)_|xox[baprs]-)[A-Za-z0-9_./+=:-]{12,}\b/gi;
|
package/dist/cli/index.mjs
CHANGED
|
@@ -612,10 +612,10 @@ var SDK_RELEASE = {
|
|
|
612
612
|
// silently materializing them as unmatched results.
|
|
613
613
|
// 0.1.220 deprecates SDK CLI versions below 0.1.219 and updates them
|
|
614
614
|
// automatically without blocking their current command.
|
|
615
|
-
version: "0.1.
|
|
615
|
+
version: "0.1.240",
|
|
616
616
|
apiContract: "2026-06-dataset-handle-results-hard-cutover",
|
|
617
617
|
supportPolicy: {
|
|
618
|
-
latest: "0.1.
|
|
618
|
+
latest: "0.1.240",
|
|
619
619
|
minimumSupported: "0.1.53",
|
|
620
620
|
deprecatedBelow: "0.1.219",
|
|
621
621
|
commandMinimumSupported: [
|
|
@@ -1356,7 +1356,7 @@ function normalizePlayRunLedgerTerminalSource(value) {
|
|
|
1356
1356
|
var SECRET_REDACTION_PLACEHOLDER = "[REDACTED_SECRET]";
|
|
1357
1357
|
var BEARER_TOKEN_RE = /\bBearer\s+[A-Za-z0-9._~+/=-]{12,}\b/g;
|
|
1358
1358
|
var BASIC_CREDENTIAL_RE = /\bBasic\s+[A-Za-z0-9+/]{4,}={0,2}\b/g;
|
|
1359
|
-
var JWT_RE = /\b[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{1,}\.[A-Za-z0-9_-]{8,}\b/g;
|
|
1359
|
+
var JWT_RE = /\b[A-Za-z0-9_-]{8,16384}\.[A-Za-z0-9_-]{1,16384}\.[A-Za-z0-9_-]{8,16384}\b/g;
|
|
1360
1360
|
var PRIVATE_KEY_RE = /-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g;
|
|
1361
1361
|
var SENSITIVE_FIELD_NAME = "authorization|cookie|password|(?:client[_-]?)?secret|(?:access|refresh)[_-]?token|(?:x[_-]?)?api[_-]?key|private[_-]?key|token|credentials";
|
|
1362
1362
|
var COMMON_SECRET_RE = /\b(?:[prs]k_(?:live|test)_|(?:pat|ghp|github_pat)_|xox[baprs]-)[A-Za-z0-9_./+=:-]{12,}\b/gi;
|
package/dist/index.js
CHANGED
|
@@ -426,10 +426,10 @@ var SDK_RELEASE = {
|
|
|
426
426
|
// silently materializing them as unmatched results.
|
|
427
427
|
// 0.1.220 deprecates SDK CLI versions below 0.1.219 and updates them
|
|
428
428
|
// automatically without blocking their current command.
|
|
429
|
-
version: "0.1.
|
|
429
|
+
version: "0.1.240",
|
|
430
430
|
apiContract: "2026-06-dataset-handle-results-hard-cutover",
|
|
431
431
|
supportPolicy: {
|
|
432
|
-
latest: "0.1.
|
|
432
|
+
latest: "0.1.240",
|
|
433
433
|
minimumSupported: "0.1.53",
|
|
434
434
|
deprecatedBelow: "0.1.219",
|
|
435
435
|
commandMinimumSupported: [
|
|
@@ -1170,7 +1170,7 @@ function normalizePlayRunLedgerTerminalSource(value) {
|
|
|
1170
1170
|
var SECRET_REDACTION_PLACEHOLDER = "[REDACTED_SECRET]";
|
|
1171
1171
|
var BEARER_TOKEN_RE = /\bBearer\s+[A-Za-z0-9._~+/=-]{12,}\b/g;
|
|
1172
1172
|
var BASIC_CREDENTIAL_RE = /\bBasic\s+[A-Za-z0-9+/]{4,}={0,2}\b/g;
|
|
1173
|
-
var JWT_RE = /\b[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{1,}\.[A-Za-z0-9_-]{8,}\b/g;
|
|
1173
|
+
var JWT_RE = /\b[A-Za-z0-9_-]{8,16384}\.[A-Za-z0-9_-]{1,16384}\.[A-Za-z0-9_-]{8,16384}\b/g;
|
|
1174
1174
|
var PRIVATE_KEY_RE = /-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g;
|
|
1175
1175
|
var SENSITIVE_FIELD_NAME = "authorization|cookie|password|(?:client[_-]?)?secret|(?:access|refresh)[_-]?token|(?:x[_-]?)?api[_-]?key|private[_-]?key|token|credentials";
|
|
1176
1176
|
var COMMON_SECRET_RE = /\b(?:[prs]k_(?:live|test)_|(?:pat|ghp|github_pat)_|xox[baprs]-)[A-Za-z0-9_./+=:-]{12,}\b/gi;
|
package/dist/index.mjs
CHANGED
|
@@ -356,10 +356,10 @@ var SDK_RELEASE = {
|
|
|
356
356
|
// silently materializing them as unmatched results.
|
|
357
357
|
// 0.1.220 deprecates SDK CLI versions below 0.1.219 and updates them
|
|
358
358
|
// automatically without blocking their current command.
|
|
359
|
-
version: "0.1.
|
|
359
|
+
version: "0.1.240",
|
|
360
360
|
apiContract: "2026-06-dataset-handle-results-hard-cutover",
|
|
361
361
|
supportPolicy: {
|
|
362
|
-
latest: "0.1.
|
|
362
|
+
latest: "0.1.240",
|
|
363
363
|
minimumSupported: "0.1.53",
|
|
364
364
|
deprecatedBelow: "0.1.219",
|
|
365
365
|
commandMinimumSupported: [
|
|
@@ -1100,7 +1100,7 @@ function normalizePlayRunLedgerTerminalSource(value) {
|
|
|
1100
1100
|
var SECRET_REDACTION_PLACEHOLDER = "[REDACTED_SECRET]";
|
|
1101
1101
|
var BEARER_TOKEN_RE = /\bBearer\s+[A-Za-z0-9._~+/=-]{12,}\b/g;
|
|
1102
1102
|
var BASIC_CREDENTIAL_RE = /\bBasic\s+[A-Za-z0-9+/]{4,}={0,2}\b/g;
|
|
1103
|
-
var JWT_RE = /\b[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{1,}\.[A-Za-z0-9_-]{8,}\b/g;
|
|
1103
|
+
var JWT_RE = /\b[A-Za-z0-9_-]{8,16384}\.[A-Za-z0-9_-]{1,16384}\.[A-Za-z0-9_-]{8,16384}\b/g;
|
|
1104
1104
|
var PRIVATE_KEY_RE = /-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g;
|
|
1105
1105
|
var SENSITIVE_FIELD_NAME = "authorization|cookie|password|(?:client[_-]?)?secret|(?:access|refresh)[_-]?token|(?:x[_-]?)?api[_-]?key|private[_-]?key|token|credentials";
|
|
1106
1106
|
var COMMON_SECRET_RE = /\b(?:[prs]k_(?:live|test)_|(?:pat|ghp|github_pat)_|xox[baprs]-)[A-Za-z0-9_./+=:-]{12,}\b/gi;
|