deepline 0.3.536 → 0.3.538
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/client-core.ts +22 -5
- package/dist/bundling-sources/sdk/src/index.ts +2 -0
- package/dist/bundling-sources/sdk/src/plays/client-core.ts +18 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +33 -4
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +36 -0
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/baked-runner-image.ts +330 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +717 -133
- package/dist/bundling-sources/shared_libs/play-runtime/coordinator-headers.ts +7 -0
- package/dist/bundling-sources/shared_libs/play-runtime/daytona-payload-contract.ts +22 -1
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +123 -0
- package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +480 -0
- package/dist/bundling-sources/shared_libs/play-runtime/fixture-egress-fetch.ts +24 -16
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +293 -53
- package/dist/bundling-sources/shared_libs/play-runtime/governor/block-reserving-budget-state-backend.ts +57 -2
- package/dist/bundling-sources/shared_libs/play-runtime/governor/budget-state-backend.ts +43 -0
- package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +141 -9
- package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/modal-runtime-config.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/modal-supervisor-sidecar.ts +556 -0
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +27 -0
- package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +19 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +54 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-snapshot-stream.ts +5 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +155 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/relay-connection-counter.ts +103 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-heartbeat.ts +75 -6
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-terminal-push.ts +59 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +544 -73
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-runtime-watchdog.ts +8 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/detached-runner-readiness-pacing.ts +19 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +2390 -110
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-flow.ts +42 -8
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-read-through.ts +287 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-finish.ts +606 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-writer.ts +274 -119
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-traffic-policy.ts +54 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-work-counters.ts +10 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +15 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-play-run-task.ts +18 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +18 -4
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +219 -7
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-claim-affinity.ts +340 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/play-run-recovery.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +10 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +623 -7
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +340 -5
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runner-push.ts +61 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +2 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +269 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +238 -5
- package/dist/bundling-sources/shared_libs/play-runtime/startup-read-tool-ids.ts +47 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-call/runtime-step-receipts-adapter.ts +5 -4
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +11 -0
- package/dist/cli/auth-4WEVLYK4.js +43 -0
- package/dist/cli/{auth-KCTCUO7P.mjs → auth-KYH7N7RQ.mjs} +5 -5
- package/dist/cli/{billing-4VBGZ3CT.js → billing-4KTUVZ4S.js} +114 -90
- package/dist/cli/{billing-OOJHKLNS.mjs → billing-WK346KAI.mjs} +31 -7
- package/dist/cli/{chunk-4E5JXZ3W.js → chunk-25RGHJQL.js} +15 -15
- package/dist/cli/{chunk-MSP4DTSD.js → chunk-34PLG5OE.js} +13 -13
- package/dist/cli/{chunk-DQHUJMCL.mjs → chunk-35OCRH5C.mjs} +5 -5
- package/dist/cli/{chunk-2B4IOGFD.js → chunk-3I5TU5XE.js} +292 -279
- package/dist/cli/{chunk-Z7UIOGW4.mjs → chunk-4KZF6OYY.mjs} +3 -3
- package/dist/cli/{chunk-2YWJS76L.mjs → chunk-4NEOGPKD.mjs} +1 -1
- package/dist/cli/{chunk-LZXZQPA2.mjs → chunk-4WQR4DG4.mjs} +1 -1
- package/dist/cli/{chunk-KWYGWO4Y.js → chunk-5VSPRRTI.js} +7 -7
- package/dist/cli/{chunk-ANUKBZ6W.mjs → chunk-6JG3MRTM.mjs} +2 -2
- package/dist/cli/{chunk-VBDZIMWD.js → chunk-6SLQLWWL.js} +26 -26
- package/dist/cli/{chunk-E24UGPGG.mjs → chunk-7XDJKIM2.mjs} +4 -4
- package/dist/cli/{chunk-OUDTOMZC.mjs → chunk-A6E7TCK2.mjs} +5 -5
- package/dist/cli/{chunk-ZZ4MF2GI.js → chunk-ADLDU2QG.js} +6 -6
- package/dist/cli/{chunk-XVZRJJDS.mjs → chunk-ALARRSMZ.mjs} +3 -3
- package/dist/cli/{chunk-HWDKRN7L.js → chunk-B2BTBHX2.js} +3 -3
- package/dist/cli/{chunk-ZISEH7OL.js → chunk-BBS2BLPV.js} +16 -16
- package/dist/cli/{chunk-YRLAUGQY.mjs → chunk-CLO562KG.mjs} +3 -1
- package/dist/cli/{chunk-CXTW7SRW.mjs → chunk-E7D37PLM.mjs} +8 -0
- package/dist/cli/{chunk-SLPJ3LXI.js → chunk-ESX3H7Q7.js} +22 -22
- package/dist/cli/{chunk-AB2GBOD4.mjs → chunk-FJ5KPGCS.mjs} +10 -10
- package/dist/cli/{chunk-DUYAMLOC.mjs → chunk-FWE37N2P.mjs} +1 -1
- package/dist/cli/{chunk-3PCYV6ZJ.mjs → chunk-ICTA5ICE.mjs} +1 -1
- package/dist/cli/{chunk-ZILSRDIN.js → chunk-IMLFB66A.js} +3 -3
- package/dist/cli/{chunk-PNY3BWHP.mjs → chunk-IP3XJTWA.mjs} +2 -2
- package/dist/cli/{chunk-6VUGBQZQ.js → chunk-JCLRSMUP.js} +5 -5
- package/dist/cli/{chunk-YBMHOH6H.mjs → chunk-JPEBKN3K.mjs} +2 -2
- package/dist/cli/{chunk-GF32SBST.mjs → chunk-JTOV5RUA.mjs} +1 -1
- package/dist/cli/{chunk-Q5CXV3E3.js → chunk-KCUQNH4K.js} +2 -2
- package/dist/cli/{chunk-DA2I2M7D.mjs → chunk-KNIYEZVV.mjs} +2 -2
- package/dist/cli/{chunk-CWSLUNA6.js → chunk-LPTBHNGB.js} +7 -5
- package/dist/cli/{chunk-WC5M3JXE.mjs → chunk-M3NCXGNN.mjs} +2 -2
- package/dist/cli/{chunk-TX5TUHJN.js → chunk-MNBIGX6O.js} +10 -10
- package/dist/cli/{chunk-ZEV2Y56V.js → chunk-MYSPQUAO.js} +44 -44
- package/dist/cli/{chunk-KPQHUVYW.mjs → chunk-N2BCPZVR.mjs} +5 -5
- package/dist/cli/{chunk-XBAH3TKU.js → chunk-N5HSG4OV.js} +5 -5
- package/dist/cli/{chunk-GTVZKY3F.js → chunk-O765M4LT.js} +2 -2
- package/dist/cli/{chunk-2FCSUOYN.js → chunk-OOLBE6FR.js} +53 -53
- package/dist/cli/{chunk-W7AEIGZR.js → chunk-P3DP56HB.js} +41 -41
- package/dist/cli/{chunk-LN6RXDTB.js → chunk-PQKD5DMT.js} +19 -19
- package/dist/cli/{chunk-GHLDCLSC.mjs → chunk-T6GPTJ5F.mjs} +1 -1
- package/dist/cli/{chunk-XJD2GYUP.mjs → chunk-TWWYCJJW.mjs} +5 -5
- package/dist/cli/{chunk-BASLYGXK.mjs → chunk-UE7JHAZ2.mjs} +29 -16
- package/dist/cli/{chunk-Q4MNUOS4.js → chunk-UEZNIPFO.js} +107 -107
- package/dist/cli/{chunk-RVSSQPQO.mjs → chunk-VCHV4LS3.mjs} +1 -1
- package/dist/cli/{chunk-LDGZFDUB.js → chunk-VIFLWQXS.js} +2 -2
- package/dist/cli/{chunk-6BBGUQJJ.js → chunk-XTYHZEJ2.js} +8 -0
- package/dist/cli/{chunk-CIDN5K23.js → chunk-YQURGSRB.js} +1 -1
- package/dist/cli/{chunk-Y2NTPYGS.js → chunk-YZ2ZPHWR.js} +9 -9
- package/dist/cli/{chunk-HAJQGP5V.mjs → chunk-ZDLDCXY3.mjs} +2 -2
- package/dist/cli/{chunk-JUHDJNSI.mjs → chunk-ZU6JBRV5.mjs} +4 -4
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-P3HLK4GO.mjs → csv-2YKLUKDR.mjs} +4 -4
- package/dist/cli/{csv-2V2DIFNG.js → csv-LM7FBECI.js} +13 -13
- package/dist/cli/{db-ZYOY3QRQ.mjs → db-234UBWJH.mjs} +6 -6
- package/dist/cli/{db-MREAQVW6.js → db-5PMA4IVW.js} +27 -27
- package/dist/cli/describe-C7GOSGYB.js +49 -0
- package/dist/cli/{describe-IKZFOADR.mjs → describe-W26LW5O7.mjs} +17 -17
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-H5IJ7QSQ.js → executions-3S736GXX.js} +8 -8
- package/dist/cli/{executions-KTSY5M34.mjs → executions-GD7GXTJM.mjs} +6 -6
- package/dist/cli/{feedback-724QK3Z5.js → feedback-BUWTDY4R.js} +14 -14
- package/dist/cli/{feedback-WWJRIXEU.mjs → feedback-GBV5HJJZ.mjs} +6 -6
- package/dist/cli/git-YG36MROC.js +25 -0
- package/dist/cli/{git-R5VRG7X6.mjs → git-YXJGTDQL.mjs} +5 -5
- package/dist/cli/index.js +143 -143
- package/dist/cli/index.mjs +42 -42
- package/dist/cli/{legacy-noops-PWZ5XLAO.mjs → legacy-noops-UJM6GBNP.mjs} +6 -6
- package/dist/cli/{legacy-noops-C6GDEGPU.js → legacy-noops-ZSF64V2U.js} +9 -9
- package/dist/cli/{monitors-WQSKMHAP.mjs → monitors-UERUQ6CT.mjs} +7 -7
- package/dist/cli/{monitors-VAVQ4WCE.js → monitors-XQ2GNH6D.js} +100 -100
- package/dist/cli/{org-MAL4QPVF.mjs → org-CP4VLH6M.mjs} +6 -6
- package/dist/cli/{org-CWWRWXZQ.js → org-IF6MPVNR.js} +86 -86
- package/dist/cli/{play-WJOWK5PQ.js → play-2NHQO5MO.js} +317 -317
- package/dist/cli/{play-ILW6MSNG.mjs → play-ZWDYYVPI.mjs} +17 -17
- package/dist/cli/{providers-4V2NMLZZ.mjs → providers-2CVIATU4.mjs} +6 -6
- package/dist/cli/{providers-W662ANCH.js → providers-LOPXQN56.js} +9 -9
- package/dist/cli/{quickstart-C22BR743.mjs → quickstart-KVCFXLID.mjs} +4 -4
- package/dist/cli/{quickstart-BW6EBUYX.js → quickstart-N4WDEQZY.js} +6 -6
- package/dist/cli/{run-KW7KW4FX.js → run-BDT5LK3I.js} +42 -42
- package/dist/cli/{run-SPAU5IMW.mjs → run-RUXHYWLF.mjs} +22 -22
- package/dist/cli/search-ATDDVADT.js +32 -0
- package/dist/cli/{search-XPC75HLM.mjs → search-BFUTNPA5.mjs} +7 -7
- package/dist/cli/{search-output-VJYE7USJ.js → search-output-CTXI2QZU.js} +6 -6
- package/dist/cli/{search-output-JKYJSEPM.mjs → search-output-WUGH4PZA.mjs} +4 -4
- package/dist/cli/{secrets-YB57KGSB.js → secrets-BZJZYFOU.js} +15 -15
- package/dist/cli/{secrets-OJG73GXQ.mjs → secrets-Z4XQVTC6.mjs} +6 -6
- package/dist/cli/sessions-HNU35AFM.js +22 -0
- package/dist/cli/{sessions-7ZL37BW4.mjs → sessions-VZXR3MQZ.mjs} +6 -6
- package/dist/cli/{settings-RKSQB7FA.mjs → settings-VYEZFR4L.mjs} +12 -12
- package/dist/cli/{settings-A7DD2ZYE.js → settings-WBYA4JMM.js} +85 -85
- package/dist/cli/{setup-S3K5YU62.js → setup-FS2RMSS2.js} +49 -49
- package/dist/cli/{setup-NXDUTITY.mjs → setup-H7KCI4SO.mjs} +9 -9
- package/dist/cli/skills-VPIURCAZ.js +36 -0
- package/dist/cli/{skills-VMFAIDO6.mjs → skills-YQNSJUUG.mjs} +7 -7
- package/dist/cli/tools-273GS5HU.js +56 -0
- package/dist/cli/{tools-52NTHBSJ.mjs → tools-ZF6SVEGW.mjs} +16 -16
- package/dist/cli/{update-SAKBEKMV.mjs → update-RKQNNJM4.mjs} +9 -9
- package/dist/cli/update-TOD3XY55.js +34 -0
- package/dist/cli/{views-ACRV7MD6.mjs → views-JHHOTWDU.mjs} +6 -6
- package/dist/cli/{views-C3GJOBDG.js → views-KN7FEDGT.js} +21 -21
- package/dist/cli/{workflow-ZNWCZEGN.js → workflow-2WHSKTTV.js} +17 -17
- package/dist/cli/{workflow-CS22E7TC.mjs → workflow-AAYLCLWA.mjs} +7 -7
- package/dist/{client-BlLYQDNo.d.mts → client-D0uDBybG.d.mts} +1 -1
- package/dist/{client-DSQlkIDO.d.ts → client-DZTnAv4B.d.ts} +1 -1
- package/dist/{client-core-rX7n2H8U.d.mts → client-core-BhWf8Y1b.d.mts} +15 -2
- package/dist/{client-core-CDwapXy5.d.ts → client-core-og3AP1LL.d.ts} +15 -2
- package/dist/{compiler-manifest-BHNC4RL-.d.mts → compiler-manifest-Bes3OVA3.d.mts} +1 -1
- package/dist/{compiler-manifest-BHNC4RL-.d.ts → compiler-manifest-Bes3OVA3.d.ts} +1 -1
- package/dist/{errors-lhtIWG5Z.d.ts → errors-BJm4lLWc.d.ts} +1 -1
- package/dist/{errors-D7sPXrvB.d.mts → errors-Dc5r42ks.d.mts} +1 -1
- package/dist/{index-CQTBHXHr.d.ts → index-BfV7mRPF.d.ts} +1 -1
- package/dist/{index-NaDZq2xf.d.mts → index-DTkiz_Ur.d.mts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +120 -112
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- 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.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-6XQKFOLG.js +0 -43
- package/dist/cli/describe-WW3OQRLP.js +0 -49
- package/dist/cli/git-PHYRD56H.js +0 -25
- package/dist/cli/search-HLE54W5G.js +0 -32
- package/dist/cli/sessions-VEBYZIEU.js +0 -22
- package/dist/cli/skills-NVQ744CN.js +0 -36
- package/dist/cli/tools-SBDUL3WB.js +0 -56
- package/dist/cli/update-HHVFZPCV.js +0 -34
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkIMLFB66Ajs = require('./chunk-IMLFB66A.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkLPTBHNGBjs = require('./chunk-LPTBHNGB.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -330,7 +330,7 @@ function buildEnvironmentContext() {
|
|
|
330
330
|
node_version: process.version,
|
|
331
331
|
runtime: "Node.js",
|
|
332
332
|
hostname: _os.hostname.call(void 0, ),
|
|
333
|
-
agent_runtime:
|
|
333
|
+
agent_runtime: _chunkLPTBHNGBjs.detectAgentRuntime.call(void 0, )
|
|
334
334
|
};
|
|
335
335
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
336
336
|
const normalized = _optionalChain([process, 'access', _6 => _6.env, 'access', _7 => _7[key], 'optionalAccess', _8 => _8.trim, 'call', _9 => _9()]);
|
|
@@ -351,18 +351,18 @@ function buildEnvironmentContext() {
|
|
|
351
351
|
return context;
|
|
352
352
|
}
|
|
353
353
|
function failureReportHeaders(apiKey) {
|
|
354
|
-
const agentSessionId =
|
|
354
|
+
const agentSessionId = _chunkLPTBHNGBjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
355
355
|
return {
|
|
356
|
-
...
|
|
356
|
+
..._chunkLPTBHNGBjs.deploymentProtectionHeaders.call(void 0, ),
|
|
357
357
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
|
|
358
358
|
Authorization: `Bearer ${apiKey}`,
|
|
359
359
|
"Content-Type": "application/json",
|
|
360
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
360
|
+
"User-Agent": `deepline-ts-sdk/${_chunkLPTBHNGBjs.SDK_VERSION}`,
|
|
361
361
|
"X-Deepline-Client-Family": "sdk",
|
|
362
362
|
"X-Deepline-CLI-Family": "sdk",
|
|
363
|
-
"X-Deepline-Agent-Runtime":
|
|
364
|
-
"X-Deepline-CLI-Version":
|
|
365
|
-
"X-Deepline-SDK-Version":
|
|
363
|
+
"X-Deepline-Agent-Runtime": _chunkLPTBHNGBjs.detectAgentRuntime.call(void 0, ),
|
|
364
|
+
"X-Deepline-CLI-Version": _chunkLPTBHNGBjs.SDK_VERSION,
|
|
365
|
+
"X-Deepline-SDK-Version": _chunkLPTBHNGBjs.SDK_VERSION
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
368
|
async function postFailureReport(input) {
|
|
@@ -390,7 +390,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
390
390
|
if (isFailureReportingDisabled()) return false;
|
|
391
391
|
let apiKey = "";
|
|
392
392
|
try {
|
|
393
|
-
apiKey =
|
|
393
|
+
apiKey = _chunkIMLFB66Ajs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
394
394
|
} catch (e2) {
|
|
395
395
|
return false;
|
|
396
396
|
}
|
|
@@ -417,7 +417,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
417
417
|
failure_code: failureCode2,
|
|
418
418
|
failure_stage: failureStage,
|
|
419
419
|
error_body: "Automatic Deepline skills installation failed.",
|
|
420
|
-
cli_version:
|
|
420
|
+
cli_version: _chunkLPTBHNGBjs.SDK_VERSION,
|
|
421
421
|
context: {
|
|
422
422
|
environment: buildEnvironmentContext(),
|
|
423
423
|
skills_sync: {
|
|
@@ -537,7 +537,7 @@ function buildFailureReport(input) {
|
|
|
537
537
|
failure_kind: failureKind,
|
|
538
538
|
failure_code: code,
|
|
539
539
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
540
|
-
cli_version:
|
|
540
|
+
cli_version: _chunkLPTBHNGBjs.SDK_VERSION,
|
|
541
541
|
context: {
|
|
542
542
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
543
543
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -557,8 +557,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
557
557
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
558
558
|
const exitCode = resolvedExitCode(input);
|
|
559
559
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
560
|
-
const baseUrl =
|
|
561
|
-
const apiKey =
|
|
560
|
+
const baseUrl = _chunkIMLFB66Ajs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
561
|
+
const apiKey = _chunkIMLFB66Ajs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
562
562
|
if (!apiKey) return false;
|
|
563
563
|
return postFailureReport({
|
|
564
564
|
baseUrl,
|
|
@@ -682,8 +682,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
682
682
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
683
683
|
var defaultBrowserCommandRunner = childProcess;
|
|
684
684
|
function getAuthedHttpClient() {
|
|
685
|
-
const config =
|
|
686
|
-
return { config, http: new (0,
|
|
685
|
+
const config = _chunkIMLFB66Ajs.resolveConfig.call(void 0, );
|
|
686
|
+
return { config, http: new (0, _chunkIMLFB66Ajs.HttpClient)(config) };
|
|
687
687
|
}
|
|
688
688
|
function stableOsUserId() {
|
|
689
689
|
try {
|
|
@@ -1023,7 +1023,7 @@ function collectLocalEnvInfo() {
|
|
|
1023
1023
|
os: `${process.platform} ${process.arch}`,
|
|
1024
1024
|
node_version: process.version,
|
|
1025
1025
|
home_dir: homeDir,
|
|
1026
|
-
agent_runtime:
|
|
1026
|
+
agent_runtime: _chunkLPTBHNGBjs.detectAgentRuntime.call(void 0, )
|
|
1027
1027
|
};
|
|
1028
1028
|
const env = process.env;
|
|
1029
1029
|
const optional = {
|
|
@@ -1270,9 +1270,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
1270
1270
|
}
|
|
1271
1271
|
function withAgentCommandContext(value) {
|
|
1272
1272
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
1273
|
-
return
|
|
1273
|
+
return _chunkLPTBHNGBjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
1274
1274
|
...valueRecord,
|
|
1275
|
-
command_context:
|
|
1275
|
+
command_context: _chunkIMLFB66Ajs.resolveCliCommandContext.call(void 0, )
|
|
1276
1276
|
} : value;
|
|
1277
1277
|
}
|
|
1278
1278
|
function printJson(value, fields) {
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.538",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JTOV5RUA.mjs";
|
|
4
4
|
import {
|
|
5
5
|
maybeReportAutomaticSkillsSyncFailure
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6JG3MRTM.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_SKILL_AGENTS,
|
|
9
9
|
KNOWN_SKILL_AGENTS,
|
|
@@ -14,17 +14,17 @@ import {
|
|
|
14
14
|
sdkCliStateDirPath,
|
|
15
15
|
skillsAgentPathSegment,
|
|
16
16
|
writeSdkSkillsLocalVersion
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ICTA5ICE.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_API_CONTRACT,
|
|
20
20
|
SDK_API_MAJOR,
|
|
21
21
|
SDK_VERSION,
|
|
22
22
|
deploymentProtectionHeaders,
|
|
23
23
|
detectAgentRuntime
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-CLO562KG.mjs";
|
|
25
25
|
import {
|
|
26
26
|
SDK_RELEASE
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-T6GPTJ5F.mjs";
|
|
28
28
|
|
|
29
29
|
// src/compat.ts
|
|
30
30
|
import { randomUUID } from "crypto";
|
|
@@ -28,10 +28,11 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER,
|
|
30
30
|
COORDINATOR_INTERNAL_TOKEN_HEADER,
|
|
31
|
+
EXPERIMENT_SWITCHES_HEADER,
|
|
31
32
|
RETAINED_PIPELINE_RECEIVERS_HEADER,
|
|
32
33
|
RUNTIME_ENVIRONMENT_TOKEN_HEADER,
|
|
33
34
|
SDK_API_MAJOR
|
|
34
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-CLO562KG.mjs";
|
|
35
36
|
import {
|
|
36
37
|
CustomerDbQueryOutcomeUnknownError
|
|
37
38
|
} from "./chunk-CQBIO6HW.mjs";
|
|
@@ -1064,6 +1065,12 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
1064
1065
|
...receivers ? { [RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1065
1066
|
};
|
|
1066
1067
|
}
|
|
1068
|
+
function playRunStartHeaders(runtime, env) {
|
|
1069
|
+
const headers = runtimeSelectionHeaders(runtime, env);
|
|
1070
|
+
const experimentSwitches = env.DEEPLINE_EXPERIMENT_SWITCHES?.trim();
|
|
1071
|
+
if (!experimentSwitches) return headers;
|
|
1072
|
+
return { ...headers, [EXPERIMENT_SWITCHES_HEADER]: experimentSwitches };
|
|
1073
|
+
}
|
|
1067
1074
|
function normalizeTestPolicyOverrides(value, source) {
|
|
1068
1075
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
1069
1076
|
return value;
|
|
@@ -1128,7 +1135,7 @@ var PlayClient = class {
|
|
|
1128
1135
|
}
|
|
1129
1136
|
async startPlayRun(request, options) {
|
|
1130
1137
|
const resolved = resolveStartPlayRunRequest(request, this.environment);
|
|
1131
|
-
const headers =
|
|
1138
|
+
const headers = playRunStartHeaders(resolved.runtime, this.environment);
|
|
1132
1139
|
return startPlayRun(
|
|
1133
1140
|
this.http,
|
|
1134
1141
|
resolved.request,
|
|
@@ -2931,6 +2938,8 @@ function diffPlayRunStreamEvents(input) {
|
|
|
2931
2938
|
var RUN_WATCH_POLL_INTERVAL_MS = 2e3;
|
|
2932
2939
|
var RUN_WATCH_STARTUP_POLL_INTERVAL_MS = 300;
|
|
2933
2940
|
var RUN_WATCH_STARTUP_WINDOW_MS = 6e3;
|
|
2941
|
+
var RUN_WATCH_SERVER_WAIT_MS = 0;
|
|
2942
|
+
var RUN_WATCH_SERVER_WAIT_FROM_START = false;
|
|
2934
2943
|
var TERMINAL_LOG_PROJECTION_RETRY_LIMIT = 3;
|
|
2935
2944
|
function waitForNextPoll(ms, signal) {
|
|
2936
2945
|
if (signal?.aborted) {
|
|
@@ -3028,7 +3037,9 @@ async function* watchRunEvents(options) {
|
|
|
3028
3037
|
while (!signal?.aborted) {
|
|
3029
3038
|
const pollStartedAt = Date.now();
|
|
3030
3039
|
const poll = ++pollCount;
|
|
3031
|
-
const
|
|
3040
|
+
const pastStartup = pollStartedAt - watchStartedAt >= RUN_WATCH_STARTUP_WINDOW_MS;
|
|
3041
|
+
const serverWaitMs = options.pollIntervalMs === void 0 && options.deferLogs && (pastStartup || RUN_WATCH_SERVER_WAIT_FROM_START) && RUN_WATCH_SERVER_WAIT_MS > 0 ? RUN_WATCH_SERVER_WAIT_MS : 0;
|
|
3042
|
+
const pollIntervalMs = options.pollIntervalMs ?? (serverWaitMs > 0 ? 0 : pastStartup ? RUN_WATCH_POLL_INTERVAL_MS : RUN_WATCH_STARTUP_POLL_INTERVAL_MS);
|
|
3032
3043
|
let snapshot;
|
|
3033
3044
|
let terminalStatus;
|
|
3034
3045
|
let responseStatus;
|
|
@@ -3048,15 +3059,18 @@ async function* watchRunEvents(options) {
|
|
|
3048
3059
|
}
|
|
3049
3060
|
};
|
|
3050
3061
|
try {
|
|
3051
|
-
const response = await http.get(
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3062
|
+
const response = await http.get(
|
|
3063
|
+
serverWaitMs > 0 ? `${path}&waitForTerminalMs=${serverWaitMs}` : path,
|
|
3064
|
+
{
|
|
3065
|
+
signal,
|
|
3066
|
+
...options.onPoll ? {
|
|
3067
|
+
onResponse: (response2) => {
|
|
3068
|
+
responseStatus = response2.status;
|
|
3069
|
+
serverTiming = response2.headers.get("server-timing") ?? void 0;
|
|
3070
|
+
}
|
|
3071
|
+
} : {}
|
|
3072
|
+
}
|
|
3073
|
+
);
|
|
3060
3074
|
const parsed = readSnapshotResponse(response, runId);
|
|
3061
3075
|
terminalStatus = parsed.terminalStatus;
|
|
3062
3076
|
snapshot = options.deferLogs ? parsed.snapshot : await backfillRotatedLogTail({
|
|
@@ -3537,6 +3551,7 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
3537
3551
|
usageEvent: (requestId) => this.getBillingUsageEvent(requestId),
|
|
3538
3552
|
usageEvents: (options) => this.getBillingUsageEvents(options),
|
|
3539
3553
|
usage: (options) => this.getBillingUsage(options),
|
|
3554
|
+
reuse: () => this.http.get("/api/v2/usage/reuse"),
|
|
3540
3555
|
targetPlans: (options) => this.getTargetBillingPlans(options),
|
|
3541
3556
|
targetStatus: () => this.getTargetBillingStatus(),
|
|
3542
3557
|
autoRecharge: {
|
|
@@ -3745,9 +3760,7 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
3745
3760
|
}
|
|
3746
3761
|
/** The view's share links, newest first. Their tokens are never returned. */
|
|
3747
3762
|
async listViewShareLinks(id) {
|
|
3748
|
-
return await this.http.get(
|
|
3749
|
-
`/api/v2/views/${encodeURIComponent(id)}/links`
|
|
3750
|
-
);
|
|
3763
|
+
return await this.http.get(`/api/v2/views/${encodeURIComponent(id)}/links`);
|
|
3751
3764
|
}
|
|
3752
3765
|
/**
|
|
3753
3766
|
* Create a share link. `url` in the result is the only copy of the link;
|
|
@@ -4136,7 +4149,7 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
4136
4149
|
options
|
|
4137
4150
|
);
|
|
4138
4151
|
const bodyJson = JSON.stringify(prepared.body);
|
|
4139
|
-
const runtimeHeaders =
|
|
4152
|
+
const runtimeHeaders = playRunStartHeaders(
|
|
4140
4153
|
resolved.runtime,
|
|
4141
4154
|
this.environment
|
|
4142
4155
|
);
|