deepline 0.3.483 → 0.3.485
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 +91 -30
- package/dist/bundling-sources/sdk/src/compat.ts +13 -0
- package/dist/bundling-sources/sdk/src/plays/client-core.ts +4 -1
- package/dist/bundling-sources/sdk/src/plays/run-request.ts +143 -9
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +31 -4
- package/dist/bundling-sources/sdk/src/tool-calls.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +7 -1
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +100 -9
- package/dist/bundling-sources/shared_libs/play-data-plane/sheet-column-storage.ts +32 -3
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +126 -41
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +231 -25
- package/dist/bundling-sources/shared_libs/play-runtime/daytona-runtime-config.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machines.ts +130 -19
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-registry.ts +105 -0
- package/dist/bundling-sources/shared_libs/play-runtime/execute-server-timing.ts +4 -2
- package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +194 -56
- package/dist/bundling-sources/shared_libs/play-runtime/log-provenance.ts +11 -6
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/job.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/ports.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/postgres-adapter.ts +2 -1
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +30 -0
- package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +195 -2
- package/dist/bundling-sources/shared_libs/play-runtime/run-failure.ts +20 -1
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger-projection-contract.ts +15 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-snapshot-stream.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +102 -23
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/progress-sidecar.ts +9 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-control-transport.ts +25 -5
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +133 -82
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +58 -16
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-sandbox-absence.ts +171 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-session-execution.ts +69 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +100 -40
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/types.ts +8 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +67 -9
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-incident-drills.ts +5 -5
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-store-adapter.ts +6 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sheet-errors.ts +14 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sheet-row-writer.ts +87 -31
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/contract.ts +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/index.ts +19 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/runner-backend-adapter.ts +14 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +204 -6
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +39 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/ambiguous-modal-create-state.ts +21 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/compute-billing-job-state.ts +23 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/integration-operation-value-retirement-state.ts +25 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/integration-operation-value-retirement.ts +15 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/outbox-repair-operation-state.ts +30 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/play-run-recovery.ts +12 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +26 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-scope.ts +44 -15
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +60 -11
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +743 -70
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +6 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +34 -34
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/sandbox-cleanup-job-state.ts +23 -0
- package/dist/bundling-sources/shared_libs/play-runtime/suspension.ts +12 -0
- package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +21 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +1 -1
- package/dist/bundling-sources/shared_libs/plays/source-authoring-edition.ts +1 -1
- package/dist/bundling-sources/shared_libs/product-notifications/destination-state.ts +93 -0
- package/dist/cli/auth-ABZBH55L.js +43 -0
- package/dist/cli/{auth-2NXF6Q3Q.mjs → auth-OWMUENCU.mjs} +5 -5
- package/dist/cli/{billing-5PW4L5WD.js → billing-2FMNQGOX.js} +80 -80
- package/dist/cli/{billing-W2Y4EOZP.mjs → billing-JX4H3VFF.mjs} +7 -7
- package/dist/cli/{chunk-UGBZ6MCR.js → chunk-2ILND7XX.js} +2 -2
- package/dist/cli/{chunk-25IGCYJP.mjs → chunk-2ZEQ43B7.mjs} +3 -3
- package/dist/cli/{chunk-J7S3DJB4.mjs → chunk-3DBW6C7M.mjs} +13 -4
- package/dist/cli/{chunk-7APXZ3CX.mjs → chunk-3DYU3JQN.mjs} +2 -2
- package/dist/cli/{chunk-VFEW53L5.js → chunk-3OF7NSGR.js} +322 -294
- package/dist/cli/{chunk-UDF2CY4D.mjs → chunk-3Z24NKW7.mjs} +62 -34
- package/dist/cli/{chunk-62XGOB2D.js → chunk-5DCQWQCP.js} +26 -26
- package/dist/cli/{chunk-4X23YY2E.mjs → chunk-62PJ6PK7.mjs} +5 -5
- package/dist/cli/{chunk-YL64JIQ7.mjs → chunk-676NZ7K4.mjs} +1 -1
- package/dist/cli/{chunk-T5GZZJ7O.js → chunk-775AZTO7.js} +323 -247
- package/dist/cli/{chunk-C3LJSOQ6.mjs → chunk-ACTUAZYP.mjs} +5 -5
- package/dist/cli/{chunk-R2OR4RHV.js → chunk-AFADYKFE.js} +8 -8
- package/dist/cli/{chunk-GVAENVIG.js → chunk-AUQQVDAB.js} +110 -21
- package/dist/cli/{chunk-GONUMUBM.js → chunk-BSKPQB2P.js} +7 -7
- package/dist/cli/chunk-C6QWRSMQ.js +42 -0
- package/dist/cli/{chunk-AK7UKQ5R.js → chunk-CSBMKHTV.js} +5 -5
- package/dist/cli/{chunk-PRL7EKJZ.mjs → chunk-CW6TAQBF.mjs} +15 -4
- package/dist/cli/{chunk-75IIHFN6.js → chunk-DMNVM34J.js} +5 -4
- package/dist/cli/{chunk-IEV5UWPN.mjs → chunk-E73JXJA3.mjs} +1 -1
- package/dist/cli/{chunk-DS455RPF.js → chunk-EC2CVPN5.js} +3 -3
- package/dist/cli/{chunk-B7HQL77V.js → chunk-ECIXZNSW.js} +87 -76
- package/dist/cli/{chunk-JJSLEMQQ.mjs → chunk-FJY6K3BG.mjs} +93 -17
- package/dist/cli/{chunk-FK47YUPC.mjs → chunk-G5PI3RNT.mjs} +1 -1
- package/dist/cli/{chunk-GRE3ID5E.mjs → chunk-GHHJWCMD.mjs} +2 -1
- package/dist/cli/{chunk-2JWG2H2N.js → chunk-HKGXGGIV.js} +1 -1
- package/dist/cli/{chunk-2MKX3HV3.js → chunk-IHMYIHF4.js} +5 -5
- package/dist/cli/{chunk-SD7QWZTV.mjs → chunk-INW22YP7.mjs} +1 -1
- package/dist/cli/{chunk-OWUZKXE7.mjs → chunk-J7EENGKJ.mjs} +1 -1
- package/dist/cli/{chunk-AWAFYRFV.mjs → chunk-JD6HKNKD.mjs} +1 -1
- package/dist/cli/{chunk-UY7OXFVU.js → chunk-JQXUWYWX.js} +13 -13
- package/dist/cli/{chunk-GGJQ4HJW.mjs → chunk-KZTNNLIL.mjs} +2 -2
- package/dist/cli/{chunk-NREZRYPU.mjs → chunk-L352NOE3.mjs} +2 -2
- package/dist/cli/{chunk-WI2HNYQX.js → chunk-L7IQ3DFH.js} +53 -53
- package/dist/cli/{chunk-4IOY2SCQ.js → chunk-LOX3BISD.js} +4 -4
- package/dist/cli/{chunk-XRIQN6EP.js → chunk-NKPTM7SK.js} +7 -7
- package/dist/cli/{chunk-5ICAG4RE.js → chunk-NLRTFJGH.js} +14 -14
- package/dist/cli/{chunk-WKB6Y43W.js → chunk-NRNWPWBW.js} +37 -37
- package/dist/cli/{chunk-HNRELVCS.mjs → chunk-ONONSV2Q.mjs} +96 -7
- package/dist/cli/{chunk-MYB6JVSD.js → chunk-OW4OTEFF.js} +16 -16
- package/dist/cli/{chunk-ISP7ZENV.mjs → chunk-RZE5I2XJ.mjs} +4 -4
- package/dist/cli/{chunk-5LHU7NUS.js → chunk-S3WQJ5VG.js} +3 -3
- package/dist/cli/{chunk-EDMCD7MX.mjs → chunk-SR6S4EYG.mjs} +5 -5
- package/dist/cli/{chunk-2T4OSJEH.js → chunk-T4G2T5DS.js} +21 -21
- package/dist/cli/{chunk-EGHYGTJM.mjs → chunk-TMCC7ORQ.mjs} +1 -1
- package/dist/cli/{chunk-SCPFOH5Z.mjs → chunk-TSCUWWTM.mjs} +1 -1
- package/dist/cli/{chunk-7TKLISLM.js → chunk-TVW6USSG.js} +3 -3
- package/dist/cli/{chunk-QSYA6VE4.js → chunk-U6WEGDD3.js} +2 -2
- package/dist/cli/{chunk-FGEC5SWP.mjs → chunk-UPHXGZCE.mjs} +4 -4
- package/dist/cli/{chunk-5JCXS4MP.js → chunk-UQ3LQ6IF.js} +5 -5
- package/dist/cli/{chunk-JYEZ6BWX.mjs → chunk-VZYTLWOM.mjs} +2 -2
- package/dist/cli/{chunk-FAZTLYJO.mjs → chunk-W33OL4F2.mjs} +2 -2
- package/dist/cli/{chunk-ZM2YPJQJ.js → chunk-XK5DMLZE.js} +5 -1
- package/dist/cli/{chunk-LJ5747UC.mjs → chunk-XRDXNAAY.mjs} +5 -1
- package/dist/cli/{chunk-S24CK3CJ.mjs → chunk-YDA3PMKK.mjs} +3 -3
- package/dist/cli/{csv-EKEFLUIW.js → csv-HFEQPGNY.js} +13 -13
- package/dist/cli/{csv-DIFVIR23.mjs → csv-OHF3Y5KB.mjs} +4 -4
- package/dist/cli/{db-DOW4EVEU.mjs → db-M456OUXD.mjs} +7 -7
- package/dist/cli/{db-S7DDRUHX.js → db-VLQKCYQS.js} +28 -28
- package/dist/cli/describe-CP35DZ5Z.js +49 -0
- package/dist/cli/{describe-KSZFOWKV.mjs → describe-M6VXFYVL.mjs} +21 -21
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-CAG7YC5K.mjs → executions-4FGRBPJF.mjs} +7 -7
- package/dist/cli/{executions-3DU5IXB6.js → executions-GKINJZI6.js} +9 -9
- package/dist/cli/{feedback-BQMPTE47.mjs → feedback-D2WMGK3V.mjs} +4 -4
- package/dist/cli/{feedback-I65JMCP2.js → feedback-ZH5K7WV7.js} +8 -8
- package/dist/cli/git-IDALMZDN.js +25 -0
- package/dist/cli/{git-UQUCD7XZ.mjs → git-OCIJ5ME4.mjs} +5 -5
- package/dist/cli/index.js +142 -139
- package/dist/cli/index.mjs +45 -42
- package/dist/cli/{legacy-noops-OLNT2BG5.js → legacy-noops-QNIVP7LO.js} +8 -8
- package/dist/cli/{legacy-noops-JXKLHUI3.mjs → legacy-noops-V6Q2X34P.mjs} +5 -5
- package/dist/cli/{monitors-DLTHHAFQ.mjs → monitors-2USHTG5G.mjs} +8 -8
- package/dist/cli/{monitors-Z5X56AZN.js → monitors-5DNK7W2K.js} +92 -92
- package/dist/cli/{org-XBHJLKUG.js → org-RPGM5AN4.js} +73 -73
- package/dist/cli/{org-6EZZHD3M.mjs → org-TL2YPYSE.mjs} +7 -7
- package/dist/cli/{pages-XVJ34SCN.js → pages-PNUKPFWV.js} +18 -18
- package/dist/cli/{pages-MYXROSVK.mjs → pages-XDEW6EE3.mjs} +7 -7
- package/dist/cli/{play-ACC4T2XQ.js → play-F5LHRKV5.js} +858 -632
- package/dist/cli/{play-5PV4LAHE.mjs → play-WINNQ4HZ.mjs} +372 -146
- package/dist/cli/{providers-JCI3KNE4.js → providers-BD4IS5U5.js} +10 -10
- package/dist/cli/{providers-2DLUGIFF.mjs → providers-PXGL3FRE.mjs} +7 -7
- package/dist/cli/{quickstart-PDSQEDLD.js → quickstart-7LVF6HZF.js} +6 -6
- package/dist/cli/{quickstart-NSL3C76K.mjs → quickstart-XTH3UQWZ.mjs} +4 -4
- package/dist/cli/{run-X5MXCM4P.mjs → run-MBMUENR7.mjs} +26 -26
- package/dist/cli/{run-UCFMHOQC.js → run-NH2BAWPA.js} +41 -41
- package/dist/cli/{search-RPEMXV6N.mjs → search-BMRWBV66.mjs} +8 -8
- package/dist/cli/search-R3MQJQMT.js +32 -0
- package/dist/cli/{search-output-MZH3HLVE.js → search-output-5NNT337U.js} +22 -16
- package/dist/cli/{search-output-6UO47B7G.mjs → search-output-QKKRD4MF.mjs} +14 -8
- package/dist/cli/{secrets-NLEQURD3.mjs → secrets-AWEXBTJV.mjs} +7 -7
- package/dist/cli/{secrets-UFBASYGY.js → secrets-KQSTOREN.js} +16 -16
- package/dist/cli/{sessions-JYH4DBEE.js → sessions-DSPLZYCJ.js} +6 -6
- package/dist/cli/{sessions-3ALFLWVU.mjs → sessions-RO25Q67X.mjs} +5 -5
- package/dist/cli/{settings-MQYKNAMB.js → settings-7JXIKNKI.js} +79 -79
- package/dist/cli/{settings-YPRILREA.mjs → settings-JMGXGK4Z.mjs} +12 -12
- package/dist/cli/{setup-5IGSHH4E.js → setup-5QFAQQRW.js} +47 -47
- package/dist/cli/{setup-DK4GM227.mjs → setup-ZQZ47FHB.mjs} +9 -9
- package/dist/cli/skills-EDZXY7DV.js +33 -0
- package/dist/cli/{skills-KYBZH3IT.mjs → skills-W3H2DL56.mjs} +7 -7
- package/dist/cli/{tools-4B2MHNBN.mjs → tools-2BZCVNBS.mjs} +19 -19
- package/dist/cli/tools-2EY2ETCZ.js +56 -0
- package/dist/cli/{update-S6VEO7NB.mjs → update-GAWYMGAW.mjs} +9 -9
- package/dist/cli/update-UKDQKNBY.js +33 -0
- package/dist/cli/{workflow-KXZZYFEF.mjs → workflow-M6LLHQ2I.mjs} +8 -8
- package/dist/cli/{workflow-FU2XVPUK.js → workflow-ZPTDFPKW.js} +18 -18
- package/dist/{client-DJ3r8VQJ.d.mts → client-BkbDHRIg.d.mts} +1 -1
- package/dist/{client-JPSNljtj.d.ts → client-D3hVHXjK.d.ts} +1 -1
- package/dist/{client-core-3SJlNsKU.d.mts → client-core-BZoSMKcY.d.mts} +30 -15
- package/dist/{client-core-rCoQ5Xz3.d.ts → client-core-DUdVqO_m.d.ts} +30 -15
- package/dist/{compiler-manifest-gkO9ZkVg.d.mts → compiler-manifest-BFTwq1HI.d.mts} +1 -1
- package/dist/{compiler-manifest-gkO9ZkVg.d.ts → compiler-manifest-BFTwq1HI.d.ts} +1 -1
- package/dist/{errors-Cc92LKH-.d.ts → errors-c3pMsylw.d.ts} +1 -1
- package/dist/{errors-CeCCOKSA.d.mts → errors-w31ybrQM.d.mts} +1 -1
- package/dist/{index-DJQKdV76.d.ts → index-CQ-15-QL.d.ts} +1 -1
- package/dist/{index-DsqWJL3Q.d.mts → index-DvNtxucX.d.mts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +10 -10
- package/dist/index.mjs +7 -7
- package/dist/install-integrity.json +123 -116
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +2 -2
- 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/plays/run-request.js +12 -2
- package/dist/plays/run-request.mjs +11 -1
- 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 +6 -6
- package/dist/server.mjs +4 -4
- package/package.json +1 -1
- package/dist/cli/auth-JHQKM6QY.js +0 -43
- package/dist/cli/chunk-PHDEQ6W3.js +0 -33
- package/dist/cli/describe-RXYQCJRR.js +0 -49
- package/dist/cli/git-ADIABNMQ.js +0 -25
- package/dist/cli/search-YILJZD36.js +0 -32
- package/dist/cli/skills-I4IUZN3U.js +0 -33
- package/dist/cli/tools-NLZR7ABS.js +0 -56
- package/dist/cli/update-RVDEUJTE.js +0 -33
|
@@ -5,8 +5,10 @@ import {
|
|
|
5
5
|
providerMetaFromToolResponseRawV2
|
|
6
6
|
} from "./chunk-L2VKAASU.mjs";
|
|
7
7
|
import {
|
|
8
|
+
CLI_PLAY_RUN_CALLER_INTENT_V2_START_STREAM_PATH,
|
|
8
9
|
CLI_PLAY_RUN_START_STREAM_PATH,
|
|
9
10
|
CLI_PLAY_RUN_SUPPORTED_HEADER,
|
|
11
|
+
CliPlayAdmissionCallerIntentV2UnsupportedError,
|
|
10
12
|
CliPlayAdmissionUnsupportedError,
|
|
11
13
|
PLAY_RUN_START_STREAM_PATH,
|
|
12
14
|
decodePlayRunPublicStatus,
|
|
@@ -16,8 +18,9 @@ import {
|
|
|
16
18
|
preparePlayRunAdmission,
|
|
17
19
|
readPlayRunAdmissionCapability,
|
|
18
20
|
stagePlayFiles,
|
|
19
|
-
startPlayRun
|
|
20
|
-
|
|
21
|
+
startPlayRun,
|
|
22
|
+
submitPreparedPlayRunAdmission
|
|
23
|
+
} from "./chunk-ONONSV2Q.mjs";
|
|
21
24
|
import {
|
|
22
25
|
describePlayDetail,
|
|
23
26
|
describePlayListItem
|
|
@@ -28,7 +31,7 @@ import {
|
|
|
28
31
|
RETAINED_PIPELINE_RECEIVERS_HEADER,
|
|
29
32
|
RUNTIME_ENVIRONMENT_TOKEN_HEADER,
|
|
30
33
|
SDK_API_MAJOR
|
|
31
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-GHHJWCMD.mjs";
|
|
32
35
|
import {
|
|
33
36
|
CustomerDbQueryOutcomeUnknownError
|
|
34
37
|
} from "./chunk-4QF2K7TM.mjs";
|
|
@@ -1114,7 +1117,8 @@ var PlayClient = class {
|
|
|
1114
1117
|
}
|
|
1115
1118
|
const query = params.size > 0 ? `?${params.toString()}` : "";
|
|
1116
1119
|
const response = await this.http.get(
|
|
1117
|
-
`/api/v2/runs/${encodeURIComponent(workflowId)}${query}
|
|
1120
|
+
`/api/v2/runs/${encodeURIComponent(workflowId)}${query}`,
|
|
1121
|
+
options?.runStatus === true ? { headers: { "x-deepline-run-status": "1" } } : void 0
|
|
1118
1122
|
);
|
|
1119
1123
|
return normalizePlayStatus(response);
|
|
1120
1124
|
}
|
|
@@ -1308,7 +1312,7 @@ function classifyLegacyLogLine(line) {
|
|
|
1308
1312
|
if (/^\[perf\] runtime receipt\b/i.test(message)) {
|
|
1309
1313
|
return "receipt";
|
|
1310
1314
|
}
|
|
1311
|
-
if (/^\[perf\]/i.test(message) || /^\[runtime\.(?:phase_summary|logs|log_transport)\]/i.test(message) || /\[worker\] picked up run\b/.test(message) || /\[worker\] heartbeat\b/.test(message) || /\[worker\] progress completedRows=\d+ totalRows=\d+ rowUpdates=\d+/.test(
|
|
1315
|
+
if (/^\[perf-trace\]/i.test(message) || /^\[perf\]/i.test(message) || /^\[runtime\.(?:phase_summary|logs|log_transport)\]/i.test(message) || /\[worker\] picked up run\b/.test(message) || /\[worker\] heartbeat\b/.test(message) || /\[worker\] progress completedRows=\d+ totalRows=\d+ rowUpdates=\d+/.test(
|
|
1312
1316
|
message
|
|
1313
1317
|
) || /\[worker\] step started\b/.test(message) || /\[worker\] Preparing run files\b/.test(message) || /\[worker\] Run files ready\b/.test(message) || /\[worker\] Runtime ready\b/.test(message) || /\[worker\] Sandbox (?:starting|create start|create done|workspace ready|upload start|runner uploaded)\b/.test(
|
|
1314
1318
|
message
|
|
@@ -2896,8 +2900,9 @@ function diffPlayRunStreamEvents(input) {
|
|
|
2896
2900
|
|
|
2897
2901
|
// src/runs/watch-polling.ts
|
|
2898
2902
|
var RUN_WATCH_POLL_INTERVAL_MS = 2e3;
|
|
2899
|
-
var RUN_WATCH_STARTUP_POLL_INTERVAL_MS =
|
|
2903
|
+
var RUN_WATCH_STARTUP_POLL_INTERVAL_MS = 300;
|
|
2900
2904
|
var RUN_WATCH_STARTUP_WINDOW_MS = 6e3;
|
|
2905
|
+
var TERMINAL_LOG_PROJECTION_RETRY_LIMIT = 3;
|
|
2901
2906
|
function waitForNextPoll(ms, signal) {
|
|
2902
2907
|
if (signal?.aborted) {
|
|
2903
2908
|
return Promise.resolve(false);
|
|
@@ -2990,6 +2995,7 @@ async function* watchRunEvents(options) {
|
|
|
2990
2995
|
let consecutiveFailures = 0;
|
|
2991
2996
|
let outageNoticeSent = false;
|
|
2992
2997
|
let pollCount = 0;
|
|
2998
|
+
let terminalLogProjectionRetries = 0;
|
|
2993
2999
|
while (!signal?.aborted) {
|
|
2994
3000
|
const pollStartedAt = Date.now();
|
|
2995
3001
|
const poll = ++pollCount;
|
|
@@ -3067,6 +3073,23 @@ async function* watchRunEvents(options) {
|
|
|
3067
3073
|
outageNoticeSent = false;
|
|
3068
3074
|
}
|
|
3069
3075
|
consecutiveFailures = 0;
|
|
3076
|
+
const terminalLogsPending = isTerminalPlayRunLiveStatus(snapshot.status) && snapshot.logsUnavailable && !options.omitTerminalLogs;
|
|
3077
|
+
if (terminalLogsPending) {
|
|
3078
|
+
if (terminalLogProjectionRetries < TERMINAL_LOG_PROJECTION_RETRY_LIMIT) {
|
|
3079
|
+
terminalLogProjectionRetries += 1;
|
|
3080
|
+
const remaining2 = Math.max(
|
|
3081
|
+
0,
|
|
3082
|
+
pollIntervalMs - (Date.now() - pollStartedAt)
|
|
3083
|
+
);
|
|
3084
|
+
if (!await waitForNextPoll(remaining2, signal)) return;
|
|
3085
|
+
continue;
|
|
3086
|
+
}
|
|
3087
|
+
options.onNotice?.(
|
|
3088
|
+
`[watch] terminal status is complete, but final logs are unavailable in this watch; fetch retained logs with deepline runs logs ${runId}`
|
|
3089
|
+
);
|
|
3090
|
+
} else {
|
|
3091
|
+
terminalLogProjectionRetries = 0;
|
|
3092
|
+
}
|
|
3070
3093
|
if (terminalStatus) {
|
|
3071
3094
|
await options.terminalStatus?.onStatus(terminalStatus, snapshot.status);
|
|
3072
3095
|
}
|
|
@@ -3969,17 +3992,22 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
3969
3992
|
this.http,
|
|
3970
3993
|
resolved.request,
|
|
3971
3994
|
options?.onSubmission,
|
|
3972
|
-
|
|
3973
|
-
...options && Object.hasOwn(options, "admissionCapability") ? { admissionCapability: options.admissionCapability } : {}
|
|
3974
|
-
}
|
|
3995
|
+
options
|
|
3975
3996
|
);
|
|
3976
3997
|
const bodyJson = JSON.stringify(prepared.body);
|
|
3977
|
-
const
|
|
3998
|
+
const runtimeHeaders = runtimeSelectionHeaders(
|
|
3999
|
+
resolved.runtime,
|
|
4000
|
+
this.environment
|
|
4001
|
+
);
|
|
4002
|
+
const headers = options?.cliAdmission ? {
|
|
4003
|
+
...runtimeHeaders,
|
|
4004
|
+
"X-Deepline-API-Major": String(SDK_API_MAJOR)
|
|
4005
|
+
} : runtimeHeaders;
|
|
3978
4006
|
const http = this.http;
|
|
3979
4007
|
let submitted = false;
|
|
3980
4008
|
return {
|
|
3981
4009
|
...prepared,
|
|
3982
|
-
async
|
|
4010
|
+
async start(startOptions) {
|
|
3983
4011
|
if (submitted && !prepared.supportsCallerIntent) {
|
|
3984
4012
|
throw new DeeplineError(
|
|
3985
4013
|
"This server has not enabled caller-owned admission recovery. Do not retry an ambiguous start.",
|
|
@@ -3988,15 +4016,56 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
3988
4016
|
);
|
|
3989
4017
|
}
|
|
3990
4018
|
if (submitted) {
|
|
3991
|
-
|
|
4019
|
+
if (!options?.callerIntentV2) {
|
|
4020
|
+
await preparePlayRunAdmission(
|
|
4021
|
+
http,
|
|
4022
|
+
JSON.parse(bodyJson),
|
|
4023
|
+
void 0,
|
|
4024
|
+
{ signal: startOptions?.signal ?? options?.signal }
|
|
4025
|
+
);
|
|
4026
|
+
}
|
|
4027
|
+
}
|
|
4028
|
+
submitted = true;
|
|
4029
|
+
try {
|
|
4030
|
+
return await submitPreparedPlayRunAdmission(
|
|
3992
4031
|
http,
|
|
3993
4032
|
JSON.parse(bodyJson),
|
|
3994
|
-
|
|
3995
|
-
|
|
4033
|
+
prepared.workflowId,
|
|
4034
|
+
prepared.supportsCallerIntent,
|
|
4035
|
+
headers,
|
|
4036
|
+
{
|
|
4037
|
+
cliAdmission: startOptions?.cliAdmission ?? options?.cliAdmission,
|
|
4038
|
+
callerIntentV2: options?.callerIntentV2,
|
|
4039
|
+
signal: startOptions?.signal ?? options?.signal
|
|
4040
|
+
}
|
|
4041
|
+
);
|
|
4042
|
+
} catch (error) {
|
|
4043
|
+
if (error instanceof CliPlayAdmissionUnsupportedError || error instanceof CliPlayAdmissionCallerIntentV2UnsupportedError) {
|
|
4044
|
+
submitted = false;
|
|
4045
|
+
}
|
|
4046
|
+
throw error;
|
|
4047
|
+
}
|
|
4048
|
+
},
|
|
4049
|
+
async *startStream(streamOptions) {
|
|
4050
|
+
if (submitted && !prepared.supportsCallerIntent) {
|
|
4051
|
+
throw new DeeplineError(
|
|
4052
|
+
"This server has not enabled caller-owned admission recovery. Do not retry an ambiguous start.",
|
|
4053
|
+
409,
|
|
4054
|
+
"PLAY_RUN_ADMISSION_RECOVERY_UNSUPPORTED"
|
|
3996
4055
|
);
|
|
3997
4056
|
}
|
|
4057
|
+
if (submitted) {
|
|
4058
|
+
if (!options?.callerIntentV2) {
|
|
4059
|
+
await preparePlayRunAdmission(
|
|
4060
|
+
http,
|
|
4061
|
+
JSON.parse(bodyJson),
|
|
4062
|
+
void 0,
|
|
4063
|
+
{ signal: streamOptions?.signal }
|
|
4064
|
+
);
|
|
4065
|
+
}
|
|
4066
|
+
}
|
|
3998
4067
|
submitted = true;
|
|
3999
|
-
const streamPath = options?.cliAdmission ? CLI_PLAY_RUN_START_STREAM_PATH : PLAY_RUN_START_STREAM_PATH;
|
|
4068
|
+
const streamPath = options?.callerIntentV2 ? CLI_PLAY_RUN_CALLER_INTENT_V2_START_STREAM_PATH : options?.cliAdmission ? CLI_PLAY_RUN_START_STREAM_PATH : PLAY_RUN_START_STREAM_PATH;
|
|
4000
4069
|
let cliAdmissionSupported = false;
|
|
4001
4070
|
try {
|
|
4002
4071
|
for await (const event of http.streamSse(streamPath, {
|
|
@@ -4015,6 +4084,13 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
4015
4084
|
}
|
|
4016
4085
|
} catch (error) {
|
|
4017
4086
|
if (options?.cliAdmission && !cliAdmissionSupported && error instanceof DeeplineError && (error.statusCode === 404 || error.statusCode === 405)) {
|
|
4087
|
+
if (options.callerIntentV2) {
|
|
4088
|
+
submitted = false;
|
|
4089
|
+
throw new CliPlayAdmissionCallerIntentV2UnsupportedError(
|
|
4090
|
+
error.statusCode
|
|
4091
|
+
);
|
|
4092
|
+
}
|
|
4093
|
+
submitted = false;
|
|
4018
4094
|
throw new CliPlayAdmissionUnsupportedError(error.statusCode);
|
|
4019
4095
|
}
|
|
4020
4096
|
throw error;
|
|
@@ -4027,8 +4103,8 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
4027
4103
|
* preparation so the network round trip can overlap with compilation.
|
|
4028
4104
|
* @internal
|
|
4029
4105
|
*/
|
|
4030
|
-
async prefetchPlayRunAdmissionCapability() {
|
|
4031
|
-
return readPlayRunAdmissionCapability(this.http);
|
|
4106
|
+
async prefetchPlayRunAdmissionCapability(options) {
|
|
4107
|
+
return readPlayRunAdmissionCapability(this.http, options);
|
|
4032
4108
|
}
|
|
4033
4109
|
/**
|
|
4034
4110
|
* Submit a play run through the legacy event response.
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
17
17
|
import {
|
|
18
18
|
SDK_RELEASE
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-TSCUWWTM.mjs";
|
|
20
20
|
|
|
21
21
|
// src/version.ts
|
|
22
22
|
var SDK_VERSION = SDK_RELEASE.version;
|
|
@@ -126,6 +126,7 @@ var PREFERRED_RECEIPT_GATEWAY_MACHINE_ID_HEADER = "x-deepline-preferred-receipt-
|
|
|
126
126
|
var SYNTHETIC_RUN_HEADER = "x-deepline-synthetic-run";
|
|
127
127
|
|
|
128
128
|
// ../play-runtime/test-runtime-seams.ts
|
|
129
|
+
import { createHash } from "crypto";
|
|
129
130
|
var PLAY_RUNTIME_TEST_FAULT_HEADER = "x-deepline-test-fault";
|
|
130
131
|
var MAX_RUNTIME_TEST_POLICY_MS = 10 * 6e4;
|
|
131
132
|
var MAX_RUNNER_HEARTBEAT_SILENCE_MS = 10 * 6e4;
|
|
@@ -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.485",
|
|
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,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk775AZTO7js = require('./chunk-775AZTO7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkS3WQJ5VGjs = require('./chunk-S3WQJ5VG.js');
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
|
-
var DeeplineClient2 = class extends
|
|
10
|
+
var DeeplineClient2 = class extends _chunk775AZTO7js.DeeplineClient {
|
|
11
11
|
constructor(options) {
|
|
12
|
-
const config =
|
|
13
|
-
super(config, new (0,
|
|
12
|
+
const config = _chunkS3WQJ5VGjs.resolveConfig.call(void 0, options);
|
|
13
|
+
super(config, new (0, _chunkS3WQJ5VGjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk3OF7NSGRjs = require('./chunk-3OF7NSGR.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkTVW6USSGjs = require('./chunk-TVW6USSG.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkCSBMKHTVjs = require('./chunk-CSBMKHTV.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
var _chunkIAYSWZDJjs = require('./chunk-IAYSWZDJ.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkIHMYIHF4js = require('./chunk-IHMYIHF4.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkBSKPQB2Pjs = require('./chunk-BSKPQB2P.js');
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/describe.ts
|
|
23
23
|
var _fs = require('fs');
|
|
@@ -26,16 +26,16 @@ function nothingNamed(name) {
|
|
|
26
26
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
27
27
|
}
|
|
28
28
|
function findNamed2(name, options) {
|
|
29
|
-
return
|
|
29
|
+
return _chunkCSBMKHTVjs.findNamed.call(void 0, name, options, _chunkCSBMKHTVjs.describeLookupsFor.call(void 0, new (0, _chunkIHMYIHF4js.DeeplineClient)()));
|
|
30
30
|
}
|
|
31
31
|
async function describeAnything(name, options, onMissing) {
|
|
32
|
-
const client = new (0,
|
|
33
|
-
const lookups =
|
|
34
|
-
const outcome = await
|
|
32
|
+
const client = new (0, _chunkIHMYIHF4js.DeeplineClient)();
|
|
33
|
+
const lookups = _chunkCSBMKHTVjs.describeLookupsFor.call(void 0, client);
|
|
34
|
+
const outcome = await _chunkCSBMKHTVjs.describeName.call(void 0, name, options, {
|
|
35
35
|
...lookups,
|
|
36
36
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
37
37
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
38
|
-
seedStarterScript:
|
|
38
|
+
seedStarterScript: _chunk3OF7NSGRjs.seedToolListScript
|
|
39
39
|
});
|
|
40
40
|
if (outcome.status === "missing") {
|
|
41
41
|
if (onMissing) return onMissing();
|
|
@@ -60,18 +60,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
60
60
|
` : text;
|
|
61
61
|
_fs.writeFileSync.call(void 0, path, content);
|
|
62
62
|
const bytes = Buffer.byteLength(content);
|
|
63
|
-
|
|
63
|
+
_chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
|
|
64
64
|
{ path, bytes },
|
|
65
65
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
66
66
|
` }
|
|
67
67
|
);
|
|
68
68
|
return 0;
|
|
69
69
|
}
|
|
70
|
-
|
|
70
|
+
_chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
71
71
|
return 0;
|
|
72
72
|
}
|
|
73
73
|
function registerDescribeCommand(program) {
|
|
74
|
-
|
|
74
|
+
_chunkTVW6USSGjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
75
75
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
76
76
|
).addHelpText(
|
|
77
77
|
"after",
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-L352NOE3.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-G5PI3RNT.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
HttpClient,
|
|
3
3
|
resolveCliCommandContext,
|
|
4
4
|
resolveConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-G5PI3RNT.mjs";
|
|
6
6
|
import {
|
|
7
7
|
detectAgentRuntime
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GHHJWCMD.mjs";
|
|
9
9
|
import {
|
|
10
10
|
DeeplineError,
|
|
11
11
|
serializeToolExecutionFailure
|