deepline 0.3.503 → 0.3.504
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 +1 -1
- package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +35 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-public-aliases.ts +13 -0
- package/dist/cli/{auth-IC4WLSE3.mjs → auth-3L5AA5AX.mjs} +5 -5
- package/dist/cli/auth-UPK4IIIN.js +43 -0
- package/dist/cli/{billing-2VOV64SD.mjs → billing-E7EASVPO.mjs} +19 -12
- package/dist/cli/{billing-LWQOII22.js → billing-HOGXVE2V.js} +92 -85
- package/dist/cli/{chunk-FHJ54BHH.mjs → chunk-22OCKCYS.mjs} +1 -1
- package/dist/cli/{chunk-D27HP3HS.mjs → chunk-2ABRDH3B.mjs} +2 -2
- package/dist/cli/{chunk-WHP3FJ7T.js → chunk-2W77YCKH.js} +5 -5
- package/dist/cli/{chunk-KGLVATEB.mjs → chunk-3MLFFWDM.mjs} +2 -2
- package/dist/cli/{chunk-K7NFFQFU.mjs → chunk-4CC67XH5.mjs} +2 -2
- package/dist/cli/{chunk-DPI5OYVU.mjs → chunk-5CHBIJIM.mjs} +2 -2
- package/dist/cli/chunk-5LUF4LAR.mjs +209 -0
- package/dist/cli/{chunk-A2C6ONWA.js → chunk-5Z6EULD5.js} +6 -6
- package/dist/cli/{chunk-33JUK73X.js → chunk-67OI26OE.js} +7 -7
- package/dist/cli/{chunk-IIP46RVC.js → chunk-6JNBMTCZ.js} +1 -1
- package/dist/cli/{chunk-HRTDCXHI.js → chunk-6SMR7LU7.js} +2 -2
- package/dist/cli/{chunk-7HEDCIR3.mjs → chunk-7F4OEHQK.mjs} +1 -1
- package/dist/cli/{chunk-C5RQTTLP.js → chunk-7P2QVMBP.js} +7 -7
- package/dist/cli/{chunk-MJQOG4TZ.js → chunk-A6LA42JY.js} +16 -16
- package/dist/cli/{chunk-XYZZZLN6.mjs → chunk-BTWUNKKX.mjs} +2 -2
- package/dist/cli/{chunk-EDMV4JT5.mjs → chunk-BX45XMXZ.mjs} +2 -2
- package/dist/cli/{chunk-GIHNEYBG.mjs → chunk-DEAJVQEG.mjs} +1 -1
- package/dist/cli/{chunk-2K2QBLYO.js → chunk-FISP4LCK.js} +53 -53
- package/dist/cli/{chunk-26RSSTCF.js → chunk-FTRVCIGC.js} +26 -26
- package/dist/cli/{chunk-JJVN7OIX.mjs → chunk-GGBXNQCR.mjs} +4 -4
- package/dist/cli/{chunk-4IIYSBEP.js → chunk-GJ2DA35C.js} +30 -4
- package/dist/cli/{chunk-RVOBFO7C.js → chunk-GRAGUYIE.js} +41 -41
- package/dist/cli/{chunk-ZEQPCEV4.mjs → chunk-HUX5DZO6.mjs} +3 -3
- package/dist/cli/{chunk-6XTE6C3W.mjs → chunk-IGNQKOWT.mjs} +10 -10
- package/dist/cli/{chunk-FVDTERO2.js → chunk-IPAMOMGP.js} +21 -21
- package/dist/cli/{chunk-FZHOWPSN.js → chunk-JPR2546F.js} +16 -16
- package/dist/cli/{chunk-3CXHK4TW.js → chunk-KCKAFTPY.js} +6 -6
- package/dist/cli/{chunk-2626LTU3.js → chunk-KGUGNEKL.js} +96 -96
- package/dist/cli/{chunk-QIEYEY6Z.js → chunk-LHXYCZYO.js} +8 -8
- package/dist/cli/{chunk-PVA3MWCO.js → chunk-MJTK6Q3G.js} +3 -3
- package/dist/cli/{chunk-EQ3WMKFY.mjs → chunk-MLMWM5DV.mjs} +5 -5
- package/dist/cli/{chunk-VC5B462T.mjs → chunk-NZ7Z7WNM.mjs} +2 -2
- package/dist/cli/{chunk-5GI6NKOE.mjs → chunk-OX2D6BG4.mjs} +1 -1
- package/dist/cli/{chunk-F73PD2XD.js → chunk-QKKU2FH4.js} +7 -7
- package/dist/cli/{chunk-URZNSJE2.mjs → chunk-QOLX2O2S.mjs} +4 -4
- package/dist/cli/chunk-R7J7CJPZ.js +209 -0
- package/dist/cli/{chunk-TCQYWZFS.js → chunk-SMSQVRHE.js} +5 -5
- package/dist/cli/{chunk-J6RBOLK7.mjs → chunk-SVFTZTCI.mjs} +1 -1
- package/dist/cli/{chunk-5M5WSFRZ.mjs → chunk-UFYJTRSF.mjs} +28 -2
- package/dist/cli/{chunk-FIUTDSJX.js → chunk-UJMBG5JU.js} +4 -4
- package/dist/cli/{chunk-AARF4SOW.js → chunk-USTJEEND.js} +9 -9
- package/dist/cli/{chunk-YXGPMTAK.js → chunk-UXQQPMYO.js} +2 -2
- package/dist/cli/{chunk-GLZBFBJS.mjs → chunk-VJVJWZ6I.mjs} +5 -5
- package/dist/cli/{chunk-HS63YBT5.js → chunk-WBIDPDKJ.js} +3 -3
- package/dist/cli/{chunk-B3X4YWQ6.js → chunk-WZSFIJMG.js} +53 -53
- package/dist/cli/{chunk-BI2Q45SY.mjs → chunk-XHZSPMNC.mjs} +4 -4
- package/dist/cli/{chunk-L3TZV625.mjs → chunk-Y6XKCEPK.mjs} +1 -1
- package/dist/cli/{chunk-JPDD4Y53.mjs → chunk-Y7VEHKID.mjs} +6 -6
- package/dist/cli/{chunk-KPBBT6OS.mjs → chunk-YOQ2NNDO.mjs} +1 -1
- package/dist/cli/{chunk-WS274KID.mjs → chunk-Z6FXUDIL.mjs} +1 -1
- package/dist/cli/command-docs.d.mts +2 -1
- package/dist/cli/command-docs.d.ts +2 -1
- package/dist/cli/command-docs.js +6 -2
- package/dist/cli/command-docs.mjs +5 -1
- package/dist/cli/{csv-NEWCNOSZ.js → csv-2XWGPITO.js} +13 -13
- package/dist/cli/{csv-2TXOI3UE.mjs → csv-433JEHLQ.mjs} +4 -4
- package/dist/cli/{db-PX7EQEIG.mjs → db-K747DH43.mjs} +6 -6
- package/dist/cli/{db-J3IJS4OG.js → db-PJJMD4VH.js} +27 -27
- package/dist/cli/describe-OYS7LZJD.js +49 -0
- package/dist/cli/{describe-GQHGTZSL.mjs → describe-VEDDYW4P.mjs} +17 -17
- package/dist/cli/{executions-RO3TJUXL.js → executions-HM5T72H6.js} +8 -8
- package/dist/cli/{executions-FFKK24RY.mjs → executions-JWRX3XCT.mjs} +6 -6
- package/dist/cli/{feedback-XRR4HIS6.js → feedback-34UG4BO3.js} +8 -8
- package/dist/cli/{feedback-ZTO56SRL.mjs → feedback-MNSIA63Y.mjs} +4 -4
- package/dist/cli/git-5YQJSJFR.js +25 -0
- package/dist/cli/{git-FIPBVFYZ.mjs → git-ZKEOXV3A.mjs} +5 -5
- package/dist/cli/index.js +143 -141
- package/dist/cli/index.mjs +43 -41
- package/dist/cli/{legacy-noops-AMD2NWHF.mjs → legacy-noops-5M4T4ZVT.mjs} +5 -5
- package/dist/cli/{legacy-noops-MTBBGM27.js → legacy-noops-YXSI4FVU.js} +8 -8
- package/dist/cli/{monitors-24LDKDJX.mjs → monitors-C65OC4AW.mjs} +7 -7
- package/dist/cli/{monitors-42PIGLBF.js → monitors-O25GDOYE.js} +95 -95
- package/dist/cli/{org-GQMCA3MN.js → org-2GSPLY2A.js} +72 -72
- package/dist/cli/{org-4B7SCFRL.mjs → org-ZRMG5NS2.mjs} +6 -6
- package/dist/cli/{pages-RL2M62GJ.js → pages-45DPADK6.js} +18 -18
- package/dist/cli/{pages-PD5EGL2R.mjs → pages-TZZUFBRO.mjs} +6 -6
- package/dist/cli/{play-5V54VTUR.mjs → play-3D7HH273.mjs} +23 -217
- package/dist/cli/{play-FST6ZAHW.js → play-RCGMND6X.js} +323 -517
- package/dist/cli/{providers-HBUUPN7J.js → providers-3N3ECMTY.js} +9 -9
- package/dist/cli/{providers-N5YVCKPL.mjs → providers-PSAKV6CJ.mjs} +6 -6
- package/dist/cli/{quickstart-NJDDVTQR.mjs → quickstart-2A35SMGC.mjs} +4 -4
- package/dist/cli/{quickstart-4QIQNSHG.js → quickstart-6R6AIXM6.js} +6 -6
- package/dist/cli/{run-JHI5MTHD.mjs → run-F3TLDGUO.mjs} +22 -22
- package/dist/cli/{run-FGOKCG4J.js → run-F6ZXTASZ.js} +40 -40
- package/dist/cli/{search-EWIZBIY2.mjs → search-CZLCY3D2.mjs} +7 -7
- package/dist/cli/search-R5VEWJO2.js +32 -0
- package/dist/cli/{search-output-NAK3MWBH.mjs → search-output-MQTSTLN5.mjs} +4 -4
- package/dist/cli/{search-output-TMQTRC2W.js → search-output-R5XDNILW.js} +6 -6
- package/dist/cli/{secrets-ONQVW5SR.mjs → secrets-D3GF4B2Z.mjs} +6 -6
- package/dist/cli/{secrets-5TSUEOJB.js → secrets-DCJYHDSY.js} +15 -15
- package/dist/cli/{sessions-B7F5O3ZR.mjs → sessions-QGEQ2UYZ.mjs} +5 -5
- package/dist/cli/{sessions-BSGE5EET.js → sessions-Z4JYJSDP.js} +6 -6
- package/dist/cli/{settings-SGGFQV5R.mjs → settings-G7QEXA4N.mjs} +11 -11
- package/dist/cli/{settings-47LARBRU.js → settings-UVXXAT4A.js} +78 -78
- package/dist/cli/{setup-BNFZFXO6.js → setup-5I42W7D4.js} +49 -49
- package/dist/cli/{setup-ATGNXQUK.mjs → setup-QHJU3DUI.mjs} +9 -9
- package/dist/cli/{skills-CIMBRM5R.mjs → skills-5LRF4UKX.mjs} +7 -7
- package/dist/cli/skills-FB6TV52O.js +36 -0
- package/dist/cli/tools-L2364RPA.js +56 -0
- package/dist/cli/{tools-DTDXAULX.mjs → tools-PUT6STVG.mjs} +16 -16
- package/dist/cli/{update-EOIJBJCO.mjs → update-CJ2GA64X.mjs} +9 -9
- package/dist/cli/update-ESYJGYVZ.js +34 -0
- package/dist/cli/{workflow-IWXUJPWY.mjs → workflow-HVEWRTXD.mjs} +7 -7
- package/dist/cli/{workflow-V5VKPICQ.js → workflow-O67MEBCP.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +102 -100
- package/dist/plays/bundle-play-file.mjs +4 -4
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-ZCMSXZO4.js +0 -43
- package/dist/cli/describe-LE7EZCL4.js +0 -49
- package/dist/cli/git-26AH4XIO.js +0 -25
- package/dist/cli/search-CTKSEVSO.js +0 -32
- package/dist/cli/skills-6RD25MVM.js +0 -36
- package/dist/cli/tools-TDZH4XHS.js +0 -56
- package/dist/cli/update-Y32VT4VL.js +0 -34
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
parsePlayRunHeaderFlag,
|
|
6
6
|
parsePlayRunOptions,
|
|
7
7
|
resolvePlayRunCliOptions
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5CHBIJIM.mjs";
|
|
9
9
|
import {
|
|
10
10
|
ExecutionOutputError,
|
|
11
11
|
TABLE_EXPORT_ERROR_COLUMN,
|
|
@@ -18,15 +18,15 @@ import {
|
|
|
18
18
|
underscoreKeysLast,
|
|
19
19
|
writeExecutionOutput,
|
|
20
20
|
writeRunDatasetCsv
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-22OCKCYS.mjs";
|
|
22
22
|
import {
|
|
23
23
|
registerDeprecatedSearchCommand
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QOLX2O2S.mjs";
|
|
25
25
|
import "./chunk-5AEDYVB6.mjs";
|
|
26
26
|
import {
|
|
27
27
|
handleDeploymentGet,
|
|
28
28
|
handleDeploymentsList
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-BTWUNKKX.mjs";
|
|
30
30
|
import {
|
|
31
31
|
buildPlayDashboardUrl,
|
|
32
32
|
buildPlayRunUrl
|
|
@@ -42,14 +42,6 @@ import {
|
|
|
42
42
|
listPlayFileExports,
|
|
43
43
|
parsePlaySourceForAnalysis
|
|
44
44
|
} from "./chunk-GBAT5NMI.mjs";
|
|
45
|
-
import {
|
|
46
|
-
MAX_PLAY_SANDBOX_RUNTIME_LIMITS,
|
|
47
|
-
PLAY_SANDBOX_SIZE_LIMITS,
|
|
48
|
-
STANDARD_PLAY_SANDBOX_RUNTIME_LIMITS,
|
|
49
|
-
modalSandboxMemoryLimitGiBForPlay,
|
|
50
|
-
playSandboxSizeForLimits,
|
|
51
|
-
resolvePlaySandboxRuntimeLimits
|
|
52
|
-
} from "./chunk-7I4B6V2S.mjs";
|
|
53
45
|
import {
|
|
54
46
|
resolveEnabledExecutionProfile
|
|
55
47
|
} from "./chunk-F6QV42MC.mjs";
|
|
@@ -59,10 +51,10 @@ import {
|
|
|
59
51
|
import {
|
|
60
52
|
pinLocalPlayImports,
|
|
61
53
|
planLocalPlayExecution
|
|
62
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-BX45XMXZ.mjs";
|
|
63
55
|
import {
|
|
64
56
|
DeeplineClient
|
|
65
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-2ABRDH3B.mjs";
|
|
66
58
|
import {
|
|
67
59
|
RUN_EVENT_SEARCH_KIND_VALUES,
|
|
68
60
|
RunEventQueryInputError,
|
|
@@ -75,7 +67,7 @@ import {
|
|
|
75
67
|
normalizePlayStatus,
|
|
76
68
|
normalizeRunEventOperationRequest,
|
|
77
69
|
parseLogLevel
|
|
78
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-OX2D6BG4.mjs";
|
|
79
71
|
import "./chunk-L2VKAASU.mjs";
|
|
80
72
|
import {
|
|
81
73
|
CSV_DATA_INPUT_KEY,
|
|
@@ -98,18 +90,24 @@ import "./chunk-BMCRTI6Z.mjs";
|
|
|
98
90
|
import {
|
|
99
91
|
checkPlayRunCompatibility,
|
|
100
92
|
usesCliPlayAdmission
|
|
101
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-4CC67XH5.mjs";
|
|
102
94
|
import {
|
|
103
95
|
isCliTraceEnabled,
|
|
104
96
|
recordCliTrace,
|
|
105
97
|
resolveCliMaintenancePolicy,
|
|
106
98
|
traceCliSpan
|
|
107
|
-
} from "./chunk-
|
|
108
|
-
import "./chunk-
|
|
99
|
+
} from "./chunk-Z6FXUDIL.mjs";
|
|
100
|
+
import "./chunk-XHZSPMNC.mjs";
|
|
109
101
|
import {
|
|
110
102
|
createCliProgress,
|
|
111
103
|
getActiveCliProgress
|
|
112
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-DEAJVQEG.mjs";
|
|
105
|
+
import {
|
|
106
|
+
formatNonStandardSandboxRuntimeWarning
|
|
107
|
+
} from "./chunk-5LUF4LAR.mjs";
|
|
108
|
+
import {
|
|
109
|
+
resolvePlaySandboxRuntimeLimits
|
|
110
|
+
} from "./chunk-7I4B6V2S.mjs";
|
|
113
111
|
import {
|
|
114
112
|
argsWantJson,
|
|
115
113
|
describeArgs,
|
|
@@ -123,17 +121,17 @@ import {
|
|
|
123
121
|
printJsonError,
|
|
124
122
|
renderCommandEnvelopeText,
|
|
125
123
|
shouldEmitJson
|
|
126
|
-
} from "./chunk-
|
|
127
|
-
import "./chunk-
|
|
124
|
+
} from "./chunk-3MLFFWDM.mjs";
|
|
125
|
+
import "./chunk-Y6XKCEPK.mjs";
|
|
128
126
|
import {
|
|
129
127
|
fetchWithDeploymentProtection
|
|
130
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-YOQ2NNDO.mjs";
|
|
131
129
|
import "./chunk-4QF2K7TM.mjs";
|
|
132
130
|
import "./chunk-DLIRSHV6.mjs";
|
|
133
131
|
import {
|
|
134
132
|
DeeplineError
|
|
135
133
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
136
|
-
import "./chunk-
|
|
134
|
+
import "./chunk-7F4OEHQK.mjs";
|
|
137
135
|
import "./chunk-WZYKRD7T.mjs";
|
|
138
136
|
import {
|
|
139
137
|
__commonJS,
|
|
@@ -5281,198 +5279,6 @@ ${hint}`;
|
|
|
5281
5279
|
});
|
|
5282
5280
|
}
|
|
5283
5281
|
|
|
5284
|
-
// ../play-runtime/worker-api-types.ts
|
|
5285
|
-
var DAYTONA_COMPUTE_PRICING_USD = {
|
|
5286
|
-
vcpuSecond: 14e-6,
|
|
5287
|
-
memoryGiBSecond: 45e-7,
|
|
5288
|
-
storageGiBSecond: 3e-8,
|
|
5289
|
-
includedStorageGiB: 5
|
|
5290
|
-
};
|
|
5291
|
-
var MODAL_SANDBOX_COMPUTE_PRICING_USD = {
|
|
5292
|
-
physicalCoreSecond: 3942e-8,
|
|
5293
|
-
memoryGiBSecond: 667e-8
|
|
5294
|
-
};
|
|
5295
|
-
var MODAL_SANDBOX_CPU_CORES = 0.5;
|
|
5296
|
-
function modalSandboxResourcesForPlay(input) {
|
|
5297
|
-
return {
|
|
5298
|
-
physicalCpuCores: MODAL_SANDBOX_CPU_CORES * input.cpu,
|
|
5299
|
-
memoryMiB: input.memoryGiB * 1024
|
|
5300
|
-
};
|
|
5301
|
-
}
|
|
5302
|
-
function roundUsd(amount) {
|
|
5303
|
-
return Number(Math.max(0, amount).toFixed(12));
|
|
5304
|
-
}
|
|
5305
|
-
function sandboxSizeMetadata(cpu, memoryGiB) {
|
|
5306
|
-
const entry = Object.entries(PLAY_SANDBOX_SIZE_LIMITS).find(
|
|
5307
|
-
([, limits]) => limits.cpu === cpu && limits.memoryGiB === memoryGiB
|
|
5308
|
-
);
|
|
5309
|
-
return entry ? { sandboxSize: entry[0] } : {};
|
|
5310
|
-
}
|
|
5311
|
-
function runtimeLimitMetadata(maxBillingDurationSeconds, observedWallTimeSeconds) {
|
|
5312
|
-
if (typeof maxBillingDurationSeconds !== "number" || !Number.isFinite(maxBillingDurationSeconds) || maxBillingDurationSeconds <= 0) {
|
|
5313
|
-
return {};
|
|
5314
|
-
}
|
|
5315
|
-
return {
|
|
5316
|
-
maxBillingDurationSeconds,
|
|
5317
|
-
...typeof observedWallTimeSeconds === "number" && Number.isFinite(observedWallTimeSeconds) ? { observedWallTimeSeconds: Math.max(0, observedWallTimeSeconds) } : {}
|
|
5318
|
-
};
|
|
5319
|
-
}
|
|
5320
|
-
function resolveDaytonaSandboxComputeItem(input) {
|
|
5321
|
-
const billableSeconds = Math.max(1, Math.ceil(input.wallTimeSeconds));
|
|
5322
|
-
const cpu = Math.max(0, input.cpu);
|
|
5323
|
-
const memoryGiB = Math.max(0, input.memoryGiB);
|
|
5324
|
-
const billableDiskGiB = Math.max(
|
|
5325
|
-
0,
|
|
5326
|
-
input.diskGiB - DAYTONA_COMPUTE_PRICING_USD.includedStorageGiB
|
|
5327
|
-
);
|
|
5328
|
-
const providerCostUsd = roundUsd(
|
|
5329
|
-
billableSeconds * (cpu * DAYTONA_COMPUTE_PRICING_USD.vcpuSecond + memoryGiB * DAYTONA_COMPUTE_PRICING_USD.memoryGiBSecond + billableDiskGiB * DAYTONA_COMPUTE_PRICING_USD.storageGiBSecond)
|
|
5330
|
-
);
|
|
5331
|
-
return {
|
|
5332
|
-
itemId: input.itemId,
|
|
5333
|
-
source: input.source ?? "daytona",
|
|
5334
|
-
unit: "sandbox_second",
|
|
5335
|
-
units: billableSeconds,
|
|
5336
|
-
providerCostUsd,
|
|
5337
|
-
metadata: {
|
|
5338
|
-
...sandboxSizeMetadata(cpu, memoryGiB),
|
|
5339
|
-
sandboxId: input.sandboxId ?? null,
|
|
5340
|
-
cpu,
|
|
5341
|
-
memoryGiB,
|
|
5342
|
-
diskGiB: Math.max(0, input.diskGiB),
|
|
5343
|
-
billableDiskGiB,
|
|
5344
|
-
startedAt: input.startedAt,
|
|
5345
|
-
endedAt: input.endedAt,
|
|
5346
|
-
...runtimeLimitMetadata(
|
|
5347
|
-
input.maxBillingDurationSeconds,
|
|
5348
|
-
input.observedWallTimeSeconds
|
|
5349
|
-
)
|
|
5350
|
-
}
|
|
5351
|
-
};
|
|
5352
|
-
}
|
|
5353
|
-
function resolveModalSandboxComputeItem(input) {
|
|
5354
|
-
const billableSeconds = Math.max(1, Math.ceil(input.wallTimeSeconds));
|
|
5355
|
-
const physicalCpuCores = Math.max(0, input.physicalCpuCores);
|
|
5356
|
-
const memoryGiB = Math.max(0, input.memoryGiB);
|
|
5357
|
-
const providerCostUsd = roundUsd(
|
|
5358
|
-
billableSeconds * (physicalCpuCores * MODAL_SANDBOX_COMPUTE_PRICING_USD.physicalCoreSecond + memoryGiB * MODAL_SANDBOX_COMPUTE_PRICING_USD.memoryGiBSecond)
|
|
5359
|
-
);
|
|
5360
|
-
return {
|
|
5361
|
-
itemId: input.itemId,
|
|
5362
|
-
source: "modal",
|
|
5363
|
-
unit: "sandbox_second",
|
|
5364
|
-
units: billableSeconds,
|
|
5365
|
-
providerCostUsd,
|
|
5366
|
-
metadata: {
|
|
5367
|
-
...sandboxSizeMetadata(
|
|
5368
|
-
physicalCpuCores / MODAL_SANDBOX_CPU_CORES,
|
|
5369
|
-
memoryGiB
|
|
5370
|
-
),
|
|
5371
|
-
sandboxId: input.sandboxId ?? null,
|
|
5372
|
-
physicalCpuCores,
|
|
5373
|
-
memoryGiB,
|
|
5374
|
-
...input.memoryLimitGiB === void 0 ? {} : {
|
|
5375
|
-
memoryLimitGiB: input.memoryLimitGiB,
|
|
5376
|
-
// The Preview evaluation preserves the existing compute price.
|
|
5377
|
-
// Sampled burst cost is diagnostic until provider billing can be
|
|
5378
|
-
// reconciled; a hard ceiling is never presented as actual usage.
|
|
5379
|
-
costBasis: "reserved_resources"
|
|
5380
|
-
},
|
|
5381
|
-
startedAt: input.startedAt,
|
|
5382
|
-
endedAt: input.endedAt,
|
|
5383
|
-
...runtimeLimitMetadata(
|
|
5384
|
-
input.maxBillingDurationSeconds,
|
|
5385
|
-
input.observedWallTimeSeconds
|
|
5386
|
-
)
|
|
5387
|
-
}
|
|
5388
|
-
};
|
|
5389
|
-
}
|
|
5390
|
-
|
|
5391
|
-
// ../play-runtime/runtime-constants.ts
|
|
5392
|
-
var STANDARD_PLAY_RUNTIME_LIMIT_SECONDS = 30 * 60;
|
|
5393
|
-
var PLAY_RUNNER_TERMINAL_GRACE_SECONDS = 90;
|
|
5394
|
-
var PLAY_RUNNER_STARTUP_GRACE_SECONDS = 4 * 60;
|
|
5395
|
-
var SANDBOX_NETWORK_CUT_MAX_MS = 11 * 6e4;
|
|
5396
|
-
var RUNNER_GATEWAY_CONNECTION_RETRY_BUDGET_MS = SANDBOX_NETWORK_CUT_MAX_MS + 6e4;
|
|
5397
|
-
var PLAY_RUNNER_TIMEOUT_SECONDS = 40 * 60;
|
|
5398
|
-
var WORKFLOW_EXECUTOR_TOKEN_TTL_SECONDS = MAX_PLAY_SANDBOX_RUNTIME_LIMITS.timeoutSeconds + (PLAY_RUNNER_TIMEOUT_SECONDS - STANDARD_PLAY_RUNTIME_LIMIT_SECONDS);
|
|
5399
|
-
|
|
5400
|
-
// ../billing/compute-pricing-contract.ts
|
|
5401
|
-
var COMPUTE_BILLING_MARKUP_MULTIPLIER = 5;
|
|
5402
|
-
var DEFAULT_USD_PER_CUSTOMER_CREDIT = 0.1;
|
|
5403
|
-
var DEFAULT_PROVIDER_MARKUP_MULTIPLIER = 1.4;
|
|
5404
|
-
var MAX_SANDBOX_COMPUTE_BILLING_SECONDS = 60 * 60;
|
|
5405
|
-
var MAX_SANDBOX_COMPUTE_PROVIDER_COST_USD = Math.max(
|
|
5406
|
-
...Object.values(PLAY_SANDBOX_SIZE_LIMITS).flatMap((profile) => {
|
|
5407
|
-
const modalResources = modalSandboxResourcesForPlay(profile);
|
|
5408
|
-
return [
|
|
5409
|
-
resolveDaytonaSandboxComputeItem({
|
|
5410
|
-
itemId: "billing-cap",
|
|
5411
|
-
wallTimeSeconds: MAX_SANDBOX_COMPUTE_BILLING_SECONDS,
|
|
5412
|
-
cpu: profile.cpu,
|
|
5413
|
-
memoryGiB: profile.memoryGiB,
|
|
5414
|
-
diskGiB: profile.diskGiB
|
|
5415
|
-
}).providerCostUsd,
|
|
5416
|
-
resolveModalSandboxComputeItem({
|
|
5417
|
-
itemId: "billing-cap",
|
|
5418
|
-
wallTimeSeconds: MAX_SANDBOX_COMPUTE_BILLING_SECONDS,
|
|
5419
|
-
physicalCpuCores: modalResources.physicalCpuCores,
|
|
5420
|
-
memoryGiB: profile.memoryGiB
|
|
5421
|
-
}).providerCostUsd
|
|
5422
|
-
];
|
|
5423
|
-
})
|
|
5424
|
-
);
|
|
5425
|
-
function roundUpCredits(value) {
|
|
5426
|
-
if (!Number.isFinite(value) || value <= 0) return 0;
|
|
5427
|
-
return Math.ceil(value * 100) / 100;
|
|
5428
|
-
}
|
|
5429
|
-
function maximumPlaySandboxBillingSeconds(limits) {
|
|
5430
|
-
return Math.min(
|
|
5431
|
-
limits.timeoutSeconds + PLAY_RUNNER_TERMINAL_GRACE_SECONDS,
|
|
5432
|
-
MAX_SANDBOX_COMPUTE_BILLING_SECONDS
|
|
5433
|
-
);
|
|
5434
|
-
}
|
|
5435
|
-
function estimateDaytonaMaximumComputeCredits(limits) {
|
|
5436
|
-
const item = resolveDaytonaSandboxComputeItem({
|
|
5437
|
-
itemId: "estimate",
|
|
5438
|
-
wallTimeSeconds: maximumPlaySandboxBillingSeconds(limits),
|
|
5439
|
-
cpu: limits.cpu,
|
|
5440
|
-
memoryGiB: limits.memoryGiB,
|
|
5441
|
-
diskGiB: limits.diskGiB
|
|
5442
|
-
});
|
|
5443
|
-
return roundUpCredits(
|
|
5444
|
-
item.providerCostUsd * COMPUTE_BILLING_MARKUP_MULTIPLIER * DEFAULT_PROVIDER_MARKUP_MULTIPLIER / DEFAULT_USD_PER_CUSTOMER_CREDIT
|
|
5445
|
-
);
|
|
5446
|
-
}
|
|
5447
|
-
function estimateModalMaximumComputeCredits(limits, elasticMemory = false) {
|
|
5448
|
-
const resources = modalSandboxResourcesForPlay(limits);
|
|
5449
|
-
const item = resolveModalSandboxComputeItem({
|
|
5450
|
-
itemId: "estimate",
|
|
5451
|
-
wallTimeSeconds: maximumPlaySandboxBillingSeconds(limits),
|
|
5452
|
-
physicalCpuCores: resources.physicalCpuCores,
|
|
5453
|
-
memoryGiB: elasticMemory ? modalSandboxMemoryLimitGiBForPlay(limits) : limits.memoryGiB
|
|
5454
|
-
});
|
|
5455
|
-
return roundUpCredits(
|
|
5456
|
-
item.providerCostUsd * COMPUTE_BILLING_MARKUP_MULTIPLIER * DEFAULT_PROVIDER_MARKUP_MULTIPLIER / DEFAULT_USD_PER_CUSTOMER_CREDIT
|
|
5457
|
-
);
|
|
5458
|
-
}
|
|
5459
|
-
function estimateMaximumSandboxComputeCredits(limits, elasticMemory = false) {
|
|
5460
|
-
return Math.max(
|
|
5461
|
-
estimateDaytonaMaximumComputeCredits(limits),
|
|
5462
|
-
estimateModalMaximumComputeCredits(limits, elasticMemory)
|
|
5463
|
-
);
|
|
5464
|
-
}
|
|
5465
|
-
function formatNonStandardSandboxRuntimeWarning(limits) {
|
|
5466
|
-
const size = playSandboxSizeForLimits(limits);
|
|
5467
|
-
if (!size) return null;
|
|
5468
|
-
if (size === "standard" && limits.timeoutSeconds <= STANDARD_PLAY_SANDBOX_RUNTIME_LIMITS.timeoutSeconds) {
|
|
5469
|
-
return null;
|
|
5470
|
-
}
|
|
5471
|
-
const maximumComputeCredits = estimateMaximumSandboxComputeCredits(limits);
|
|
5472
|
-
const quotedTimeout = `${Math.ceil(limits.timeoutSeconds / 60)}m`;
|
|
5473
|
-
return `This Play requests the ${size} sandbox for up to ${limits.timeoutSeconds}s (${limits.memoryGiB}GiB memory, ${limits.cpu} CPU, ${limits.diskGiB}GiB disk). Resource-based pricing estimate: ${maximumComputeCredits.toFixed(2)} Deepline credits. Workspace plan pricing can differ. Run deepline billing quote --sandbox-timeout ${quotedTimeout} --sandbox-size ${size} for your workspace's session ceiling.`;
|
|
5474
|
-
}
|
|
5475
|
-
|
|
5476
5282
|
// ../play-runtime/internal-step-ids.ts
|
|
5477
5283
|
var INTERNAL_GLUE_NODE_ID_PREFIX = "run_javascript:";
|
|
5478
5284
|
function isInternalGlueStepId(stepId) {
|
|
@@ -16731,7 +16537,7 @@ Examples:
|
|
|
16731
16537
|
process.exitCode = await ownView();
|
|
16732
16538
|
return;
|
|
16733
16539
|
}
|
|
16734
|
-
const { describeAnything } = await import("./describe-
|
|
16540
|
+
const { describeAnything } = await import("./describe-VEDDYW4P.mjs");
|
|
16735
16541
|
process.exitCode = await describeAnything(
|
|
16736
16542
|
name,
|
|
16737
16543
|
{
|
|
@@ -17069,7 +16875,7 @@ Examples:
|
|
|
17069
16875
|
new Option2("--log-failed", "Attach terminal-failure logs").hideHelp()
|
|
17070
16876
|
).action(async (runId, options) => {
|
|
17071
16877
|
if (TOOL_EXECUTION_ID.test(runId)) {
|
|
17072
|
-
const { getToolExecutionReceipt } = await import("./tools-
|
|
16878
|
+
const { getToolExecutionReceipt } = await import("./tools-PUT6STVG.mjs");
|
|
17073
16879
|
process.exitCode = await getToolExecutionReceipt(runId, {
|
|
17074
16880
|
receiptJson: options.json !== void 0
|
|
17075
16881
|
});
|