deepline 0.1.232 → 0.1.234
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/apps/play-runner-workers/src/entry.ts +1 -0
- package/dist/bundling-sources/sdk/src/release.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +2 -1
- package/dist/bundling-sources/shared_libs/play-runtime/suspension.ts +3 -3
- package/dist/bundling-sources/shared_libs/plays/artifact-transport.ts +9 -1
- package/dist/cli/index.js +29 -6
- package/dist/cli/index.mjs +29 -6
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
|
@@ -108,10 +108,10 @@ export const SDK_RELEASE = {
|
|
|
108
108
|
// 0.1.175 ships loud `deepline enrich` empty-waterfall reporting.
|
|
109
109
|
// 0.1.220 deprecates SDK CLI versions below 0.1.219 and updates them
|
|
110
110
|
// automatically without blocking their current command.
|
|
111
|
-
version: '0.1.
|
|
111
|
+
version: '0.1.234',
|
|
112
112
|
apiContract: '2026-06-dataset-handle-results-hard-cutover',
|
|
113
113
|
supportPolicy: {
|
|
114
|
-
latest: '0.1.
|
|
114
|
+
latest: '0.1.234',
|
|
115
115
|
minimumSupported: '0.1.53',
|
|
116
116
|
deprecatedBelow: '0.1.219',
|
|
117
117
|
commandMinimumSupported: [
|
|
@@ -171,6 +171,8 @@ export interface RunnerPushExecutionConfig {
|
|
|
171
171
|
leaseSeconds: number;
|
|
172
172
|
/** The run the runner heartbeats. Must match the executor token's run scope. */
|
|
173
173
|
runId: string;
|
|
174
|
+
/** Unique identity for this detached runner leg within a scheduler attempt. */
|
|
175
|
+
runnerIncarnation: string;
|
|
174
176
|
}
|
|
175
177
|
|
|
176
178
|
export interface PlayRunnerExecutionConfig {
|
|
@@ -841,8 +841,9 @@ export const daytonaPlayRunnerBackend: PlayRunnerBackend = {
|
|
|
841
841
|
status: 'suspended',
|
|
842
842
|
suspension: {
|
|
843
843
|
kind: 'detached_runner',
|
|
844
|
-
boundaryId: `detached-runner:${push.runId}:${runnerAttempt}`,
|
|
844
|
+
boundaryId: `detached-runner:${push.runId}:${runnerAttempt}:${push.runnerIncarnation}`,
|
|
845
845
|
runnerAttempt,
|
|
846
|
+
runnerIncarnation: push.runnerIncarnation,
|
|
846
847
|
sandboxId: sandbox.id,
|
|
847
848
|
sessionId: start.sessionId,
|
|
848
849
|
cmdId: start.cmdId,
|
|
@@ -28,10 +28,10 @@ export type PlayExecutionSuspension =
|
|
|
28
28
|
*/
|
|
29
29
|
kind: 'detached_runner';
|
|
30
30
|
boundaryId: string;
|
|
31
|
-
/** Attempt generation whose executor token the detached runner holds
|
|
32
|
-
* the key under which its pushed terminal is recorded and its wake event
|
|
33
|
-
* is named. */
|
|
31
|
+
/** Attempt generation whose executor token the detached runner holds. */
|
|
34
32
|
runnerAttempt: number;
|
|
33
|
+
/** Fences its result and wake from earlier/later legs in the attempt. */
|
|
34
|
+
runnerIncarnation: string;
|
|
35
35
|
sandboxId: string;
|
|
36
36
|
sessionId: string;
|
|
37
37
|
cmdId: string;
|
|
@@ -3,12 +3,20 @@ import type { PlayBundleArtifact } from './artifact-types';
|
|
|
3
3
|
const INLINE_SOURCE_MAP_PATTERN =
|
|
4
4
|
/\r?\n?\/\/# sourceMappingURL=data:application\/json;base64,[A-Za-z0-9+/=]+\s*$/;
|
|
5
5
|
|
|
6
|
-
export function
|
|
6
|
+
export function stripInlineSourceMapFromArtifact(
|
|
7
7
|
artifact: PlayBundleArtifact,
|
|
8
8
|
): PlayBundleArtifact {
|
|
9
9
|
return {
|
|
10
10
|
...artifact,
|
|
11
11
|
bundledCode: artifact.bundledCode.replace(INLINE_SOURCE_MAP_PATTERN, ''),
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function compactPlayArtifactForRuntimeTransport(
|
|
16
|
+
artifact: PlayBundleArtifact,
|
|
17
|
+
): PlayBundleArtifact {
|
|
18
|
+
return {
|
|
19
|
+
...stripInlineSourceMapFromArtifact(artifact),
|
|
12
20
|
sourceMap: '',
|
|
13
21
|
};
|
|
14
22
|
}
|
package/dist/cli/index.js
CHANGED
|
@@ -625,10 +625,10 @@ var SDK_RELEASE = {
|
|
|
625
625
|
// 0.1.175 ships loud `deepline enrich` empty-waterfall reporting.
|
|
626
626
|
// 0.1.220 deprecates SDK CLI versions below 0.1.219 and updates them
|
|
627
627
|
// automatically without blocking their current command.
|
|
628
|
-
version: "0.1.
|
|
628
|
+
version: "0.1.234",
|
|
629
629
|
apiContract: "2026-06-dataset-handle-results-hard-cutover",
|
|
630
630
|
supportPolicy: {
|
|
631
|
-
latest: "0.1.
|
|
631
|
+
latest: "0.1.234",
|
|
632
632
|
minimumSupported: "0.1.53",
|
|
633
633
|
deprecatedBelow: "0.1.219",
|
|
634
634
|
commandMinimumSupported: [
|
|
@@ -6136,6 +6136,7 @@ var SUBSCRIPTION_STATUS_NEXT_COMMAND = "deepline billing subscription status --j
|
|
|
6136
6136
|
var SUBSCRIPTION_CANCEL_PATH = "/api/v2/billing/subscription/cancel";
|
|
6137
6137
|
var BILLING_TOP_UP_PATH = "/api/v2/billing/top-up";
|
|
6138
6138
|
var DEFAULT_BALANCE_RECOVERY_CREDITS = 100;
|
|
6139
|
+
var BILLING_HISTORY_EXPORT_LIMIT = 5e3;
|
|
6139
6140
|
function billingFailureFromError(error, options) {
|
|
6140
6141
|
if (error instanceof AuthError) {
|
|
6141
6142
|
return {
|
|
@@ -6510,10 +6511,32 @@ async function handleHistory(options) {
|
|
|
6510
6511
|
"1y": 31536e3
|
|
6511
6512
|
};
|
|
6512
6513
|
const sinceAt = Math.max(0, Math.floor(Date.now() / 1e3) - windows[options.time]) * 1e3;
|
|
6513
|
-
const
|
|
6514
|
-
|
|
6515
|
-
)
|
|
6516
|
-
|
|
6514
|
+
const entries = [];
|
|
6515
|
+
let cursor = null;
|
|
6516
|
+
while (entries.length < BILLING_HISTORY_EXPORT_LIMIT) {
|
|
6517
|
+
const params = new URLSearchParams({
|
|
6518
|
+
since_at: String(sinceAt),
|
|
6519
|
+
limit: String(BILLING_HISTORY_EXPORT_LIMIT - entries.length)
|
|
6520
|
+
});
|
|
6521
|
+
if (cursor !== null) params.set("cursor", cursor);
|
|
6522
|
+
const payload = await http2.get(
|
|
6523
|
+
`/api/v2/billing/ledger?${params.toString()}`
|
|
6524
|
+
);
|
|
6525
|
+
if (Array.isArray(payload.entries)) {
|
|
6526
|
+
entries.push(
|
|
6527
|
+
...payload.entries.slice(
|
|
6528
|
+
0,
|
|
6529
|
+
BILLING_HISTORY_EXPORT_LIMIT - entries.length
|
|
6530
|
+
)
|
|
6531
|
+
);
|
|
6532
|
+
}
|
|
6533
|
+
const nextCursor = typeof payload.next_cursor === "string" && payload.next_cursor.length > 0 ? payload.next_cursor : null;
|
|
6534
|
+
if (payload.has_more !== true || nextCursor === null) break;
|
|
6535
|
+
if (nextCursor === cursor) {
|
|
6536
|
+
throw new Error("Billing history pagination cursor did not advance");
|
|
6537
|
+
}
|
|
6538
|
+
cursor = nextCursor;
|
|
6539
|
+
}
|
|
6517
6540
|
const rows = entries.map(ledgerApiEntryToRow);
|
|
6518
6541
|
const outputPath = await writeCsvRowsFile(
|
|
6519
6542
|
`billing-history-${options.time}`,
|
package/dist/cli/index.mjs
CHANGED
|
@@ -610,10 +610,10 @@ var SDK_RELEASE = {
|
|
|
610
610
|
// 0.1.175 ships loud `deepline enrich` empty-waterfall reporting.
|
|
611
611
|
// 0.1.220 deprecates SDK CLI versions below 0.1.219 and updates them
|
|
612
612
|
// automatically without blocking their current command.
|
|
613
|
-
version: "0.1.
|
|
613
|
+
version: "0.1.234",
|
|
614
614
|
apiContract: "2026-06-dataset-handle-results-hard-cutover",
|
|
615
615
|
supportPolicy: {
|
|
616
|
-
latest: "0.1.
|
|
616
|
+
latest: "0.1.234",
|
|
617
617
|
minimumSupported: "0.1.53",
|
|
618
618
|
deprecatedBelow: "0.1.219",
|
|
619
619
|
commandMinimumSupported: [
|
|
@@ -6133,6 +6133,7 @@ var SUBSCRIPTION_STATUS_NEXT_COMMAND = "deepline billing subscription status --j
|
|
|
6133
6133
|
var SUBSCRIPTION_CANCEL_PATH = "/api/v2/billing/subscription/cancel";
|
|
6134
6134
|
var BILLING_TOP_UP_PATH = "/api/v2/billing/top-up";
|
|
6135
6135
|
var DEFAULT_BALANCE_RECOVERY_CREDITS = 100;
|
|
6136
|
+
var BILLING_HISTORY_EXPORT_LIMIT = 5e3;
|
|
6136
6137
|
function billingFailureFromError(error, options) {
|
|
6137
6138
|
if (error instanceof AuthError) {
|
|
6138
6139
|
return {
|
|
@@ -6507,10 +6508,32 @@ async function handleHistory(options) {
|
|
|
6507
6508
|
"1y": 31536e3
|
|
6508
6509
|
};
|
|
6509
6510
|
const sinceAt = Math.max(0, Math.floor(Date.now() / 1e3) - windows[options.time]) * 1e3;
|
|
6510
|
-
const
|
|
6511
|
-
|
|
6512
|
-
)
|
|
6513
|
-
|
|
6511
|
+
const entries = [];
|
|
6512
|
+
let cursor = null;
|
|
6513
|
+
while (entries.length < BILLING_HISTORY_EXPORT_LIMIT) {
|
|
6514
|
+
const params = new URLSearchParams({
|
|
6515
|
+
since_at: String(sinceAt),
|
|
6516
|
+
limit: String(BILLING_HISTORY_EXPORT_LIMIT - entries.length)
|
|
6517
|
+
});
|
|
6518
|
+
if (cursor !== null) params.set("cursor", cursor);
|
|
6519
|
+
const payload = await http2.get(
|
|
6520
|
+
`/api/v2/billing/ledger?${params.toString()}`
|
|
6521
|
+
);
|
|
6522
|
+
if (Array.isArray(payload.entries)) {
|
|
6523
|
+
entries.push(
|
|
6524
|
+
...payload.entries.slice(
|
|
6525
|
+
0,
|
|
6526
|
+
BILLING_HISTORY_EXPORT_LIMIT - entries.length
|
|
6527
|
+
)
|
|
6528
|
+
);
|
|
6529
|
+
}
|
|
6530
|
+
const nextCursor = typeof payload.next_cursor === "string" && payload.next_cursor.length > 0 ? payload.next_cursor : null;
|
|
6531
|
+
if (payload.has_more !== true || nextCursor === null) break;
|
|
6532
|
+
if (nextCursor === cursor) {
|
|
6533
|
+
throw new Error("Billing history pagination cursor did not advance");
|
|
6534
|
+
}
|
|
6535
|
+
cursor = nextCursor;
|
|
6536
|
+
}
|
|
6514
6537
|
const rows = entries.map(ledgerApiEntryToRow);
|
|
6515
6538
|
const outputPath = await writeCsvRowsFile(
|
|
6516
6539
|
`billing-history-${options.time}`,
|
package/dist/index.js
CHANGED
|
@@ -424,10 +424,10 @@ var SDK_RELEASE = {
|
|
|
424
424
|
// 0.1.175 ships loud `deepline enrich` empty-waterfall reporting.
|
|
425
425
|
// 0.1.220 deprecates SDK CLI versions below 0.1.219 and updates them
|
|
426
426
|
// automatically without blocking their current command.
|
|
427
|
-
version: "0.1.
|
|
427
|
+
version: "0.1.234",
|
|
428
428
|
apiContract: "2026-06-dataset-handle-results-hard-cutover",
|
|
429
429
|
supportPolicy: {
|
|
430
|
-
latest: "0.1.
|
|
430
|
+
latest: "0.1.234",
|
|
431
431
|
minimumSupported: "0.1.53",
|
|
432
432
|
deprecatedBelow: "0.1.219",
|
|
433
433
|
commandMinimumSupported: [
|
package/dist/index.mjs
CHANGED
|
@@ -354,10 +354,10 @@ var SDK_RELEASE = {
|
|
|
354
354
|
// 0.1.175 ships loud `deepline enrich` empty-waterfall reporting.
|
|
355
355
|
// 0.1.220 deprecates SDK CLI versions below 0.1.219 and updates them
|
|
356
356
|
// automatically without blocking their current command.
|
|
357
|
-
version: "0.1.
|
|
357
|
+
version: "0.1.234",
|
|
358
358
|
apiContract: "2026-06-dataset-handle-results-hard-cutover",
|
|
359
359
|
supportPolicy: {
|
|
360
|
-
latest: "0.1.
|
|
360
|
+
latest: "0.1.234",
|
|
361
361
|
minimumSupported: "0.1.53",
|
|
362
362
|
deprecatedBelow: "0.1.219",
|
|
363
363
|
commandMinimumSupported: [
|