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
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkECIXZNSWjs = require('./chunk-ECIXZNSW.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkBSKPQB2Pjs = require('./chunk-BSKPQB2P.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkS3WQJ5VGjs = require('./chunk-S3WQJ5VG.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkDMNVM34Jjs = require('./chunk-DMNVM34J.js');
|
|
28
28
|
|
|
29
29
|
// src/cli/commands/skills.ts
|
|
30
30
|
var _child_process = require('child_process');
|
|
@@ -132,7 +132,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
132
132
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
133
133
|
}
|
|
134
134
|
function resolveLocalRoot() {
|
|
135
|
-
const target =
|
|
135
|
+
const target = _chunkS3WQJ5VGjs.resolveProjectPinTarget.call(void 0, );
|
|
136
136
|
if (!target.ok) {
|
|
137
137
|
throw new Error(
|
|
138
138
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -143,7 +143,7 @@ function resolveLocalRoot() {
|
|
|
143
143
|
return target.dir;
|
|
144
144
|
}
|
|
145
145
|
function detectSkillsAgents(input) {
|
|
146
|
-
const runtime = _nullishCoalesce(input.runtime, () => (
|
|
146
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunkDMNVM34Jjs.detectAgentRuntime.call(void 0, )));
|
|
147
147
|
const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
|
|
148
148
|
if (knownAgent) return [knownAgent];
|
|
149
149
|
const roots = [
|
|
@@ -158,11 +158,11 @@ function detectSkillsAgents(input) {
|
|
|
158
158
|
return detected.length > 0 ? detected : ["*"];
|
|
159
159
|
}
|
|
160
160
|
function skillsStatePathForScope(baseUrl, scope, root) {
|
|
161
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0,
|
|
161
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkS3WQJ5VGjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
|
|
162
162
|
}
|
|
163
163
|
function buildSkillsPlan(input) {
|
|
164
164
|
const scopeArgs = input.scope === "global" ? ["--global"] : [];
|
|
165
|
-
const legacyNames = [...
|
|
165
|
+
const legacyNames = [..._chunkECIXZNSWjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
|
|
166
166
|
(a, b) => a.localeCompare(b)
|
|
167
167
|
);
|
|
168
168
|
return {
|
|
@@ -176,7 +176,7 @@ function buildSkillsPlan(input) {
|
|
|
176
176
|
args: [
|
|
177
177
|
"exec",
|
|
178
178
|
"--yes",
|
|
179
|
-
`--package=${
|
|
179
|
+
`--package=${_chunkECIXZNSWjs.SKILLS_NPX_PACKAGE}`,
|
|
180
180
|
"--",
|
|
181
181
|
"skills",
|
|
182
182
|
"remove",
|
|
@@ -192,11 +192,11 @@ function buildSkillsPlan(input) {
|
|
|
192
192
|
args: [
|
|
193
193
|
"exec",
|
|
194
194
|
"--yes",
|
|
195
|
-
`--package=${
|
|
195
|
+
`--package=${_chunkECIXZNSWjs.SKILLS_NPX_PACKAGE}`,
|
|
196
196
|
"--",
|
|
197
197
|
"skills",
|
|
198
198
|
"add",
|
|
199
|
-
|
|
199
|
+
_chunkECIXZNSWjs.skillsSourceUrl.call(void 0, input.baseUrl),
|
|
200
200
|
"--agent",
|
|
201
201
|
...input.agents,
|
|
202
202
|
...scopeArgs,
|
|
@@ -233,7 +233,7 @@ function readSkillsInstallState(path) {
|
|
|
233
233
|
}
|
|
234
234
|
function runProcess(command, args, cwd) {
|
|
235
235
|
return new Promise((resolve, reject) => {
|
|
236
|
-
const plan =
|
|
236
|
+
const plan = _chunkECIXZNSWjs.resolveShellSpawn.call(void 0,
|
|
237
237
|
command,
|
|
238
238
|
args,
|
|
239
239
|
process.platform,
|
|
@@ -255,7 +255,7 @@ function runProcess(command, args, cwd) {
|
|
|
255
255
|
child.kill("SIGTERM");
|
|
256
256
|
reject(
|
|
257
257
|
new Error(
|
|
258
|
-
`${
|
|
258
|
+
`${_chunkECIXZNSWjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
|
|
259
259
|
)
|
|
260
260
|
);
|
|
261
261
|
}, SKILLS_PROCESS_TIMEOUT_MS);
|
|
@@ -266,7 +266,7 @@ function runProcess(command, args, cwd) {
|
|
|
266
266
|
child.once("close", (code) => {
|
|
267
267
|
clearTimeout(timeout);
|
|
268
268
|
if (code && stderr.trim()) {
|
|
269
|
-
process.stderr.write(`${
|
|
269
|
+
process.stderr.write(`${_chunkECIXZNSWjs.SKILLS_NPX_PACKAGE} exited ${code}.
|
|
270
270
|
`);
|
|
271
271
|
}
|
|
272
272
|
resolve(_nullishCoalesce(code, () => ( 1)));
|
|
@@ -280,7 +280,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
280
280
|
scope = normalizeScope(options.scope);
|
|
281
281
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
282
282
|
} catch (error) {
|
|
283
|
-
|
|
283
|
+
_chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
|
|
284
284
|
{
|
|
285
285
|
ok: false,
|
|
286
286
|
status: "failed",
|
|
@@ -292,22 +292,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
292
292
|
);
|
|
293
293
|
return 2;
|
|
294
294
|
}
|
|
295
|
-
const baseUrl =
|
|
295
|
+
const baseUrl = _chunkS3WQJ5VGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
296
296
|
const catalog = {
|
|
297
|
-
skillNames: [...
|
|
298
|
-
version:
|
|
297
|
+
skillNames: [..._chunkECIXZNSWjs.DEFAULT_SDK_SKILL_NAMES],
|
|
298
|
+
version: _chunkDMNVM34Jjs.SDK_VERSION
|
|
299
299
|
};
|
|
300
300
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
301
301
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
302
302
|
if (options.dryRun) {
|
|
303
|
-
|
|
303
|
+
_chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
|
|
304
304
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
305
305
|
{ json: options.json }
|
|
306
306
|
);
|
|
307
307
|
return 0;
|
|
308
308
|
}
|
|
309
|
-
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !
|
|
310
|
-
|
|
309
|
+
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkECIXZNSWjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
310
|
+
_chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
|
|
311
311
|
{
|
|
312
312
|
ok: true,
|
|
313
313
|
status: "current",
|
|
@@ -339,10 +339,10 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
339
339
|
}
|
|
340
340
|
if (scope === "local" && root) {
|
|
341
341
|
const managedNames = [
|
|
342
|
-
.../* @__PURE__ */ new Set([...plan.skillNames, ...
|
|
342
|
+
.../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkECIXZNSWjs.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
343
343
|
];
|
|
344
344
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
345
|
-
|
|
345
|
+
_chunkS3WQJ5VGjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
346
346
|
".deepline/",
|
|
347
347
|
...agentRoots.flatMap(
|
|
348
348
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -351,7 +351,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
351
351
|
}
|
|
352
352
|
let lease;
|
|
353
353
|
try {
|
|
354
|
-
lease = scope === "global" ? await
|
|
354
|
+
lease = scope === "global" ? await _chunkECIXZNSWjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
|
|
355
355
|
waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
|
|
356
356
|
onWait: () => process.stderr.write(
|
|
357
357
|
"Waiting for a background Deepline skills refresh to finish...\n"
|
|
@@ -359,8 +359,8 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
359
359
|
}) : { release: () => {
|
|
360
360
|
} };
|
|
361
361
|
} catch (error) {
|
|
362
|
-
if (!(error instanceof
|
|
363
|
-
|
|
362
|
+
if (!(error instanceof _chunkECIXZNSWjs.SkillsStateUnavailableError)) throw error;
|
|
363
|
+
_chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
|
|
364
364
|
{
|
|
365
365
|
ok: false,
|
|
366
366
|
status: "failed",
|
|
@@ -376,7 +376,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
376
376
|
return 5;
|
|
377
377
|
}
|
|
378
378
|
if (!lease) {
|
|
379
|
-
|
|
379
|
+
_chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
|
|
380
380
|
{
|
|
381
381
|
ok: false,
|
|
382
382
|
status: "failed",
|
|
@@ -385,7 +385,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
385
385
|
scope,
|
|
386
386
|
agents,
|
|
387
387
|
message: "A background Deepline skills refresh is still running for these agents.",
|
|
388
|
-
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${
|
|
388
|
+
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunkECIXZNSWjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
|
|
389
389
|
},
|
|
390
390
|
{ json: options.json }
|
|
391
391
|
);
|
|
@@ -434,7 +434,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
} catch (error) {
|
|
437
|
-
|
|
437
|
+
_chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
|
|
438
438
|
{
|
|
439
439
|
ok: false,
|
|
440
440
|
status: "failed",
|
|
@@ -450,7 +450,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
450
450
|
return 5;
|
|
451
451
|
}
|
|
452
452
|
if (missing.length > 0) {
|
|
453
|
-
|
|
453
|
+
_chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
|
|
454
454
|
{
|
|
455
455
|
ok: false,
|
|
456
456
|
status: "failed",
|
|
@@ -490,7 +490,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
490
490
|
{
|
|
491
491
|
schemaVersion: 1,
|
|
492
492
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
493
|
-
cliVersion:
|
|
493
|
+
cliVersion: _chunkDMNVM34Jjs.SDK_VERSION,
|
|
494
494
|
scope,
|
|
495
495
|
agents,
|
|
496
496
|
skillsVersion: plan.version,
|
|
@@ -503,9 +503,9 @@ async function runSkillsInstallWithLease(input) {
|
|
|
503
503
|
"utf8"
|
|
504
504
|
);
|
|
505
505
|
if (scope === "global") {
|
|
506
|
-
|
|
506
|
+
_chunkECIXZNSWjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
507
507
|
}
|
|
508
|
-
|
|
508
|
+
_chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
|
|
509
509
|
{
|
|
510
510
|
ok: true,
|
|
511
511
|
status: "complete",
|
|
@@ -536,7 +536,7 @@ function registerSkillsCommand(program) {
|
|
|
536
536
|
"after",
|
|
537
537
|
`
|
|
538
538
|
Notes:
|
|
539
|
-
This command reinstalls current Deepline-managed skills using ${
|
|
539
|
+
This command reinstalls current Deepline-managed skills using ${_chunkECIXZNSWjs.SKILLS_NPX_PACKAGE},
|
|
540
540
|
then removes legacy Deepline skill names. Local scope writes into the resolved
|
|
541
541
|
persistent project.
|
|
542
542
|
|
|
@@ -548,13 +548,13 @@ Examples:
|
|
|
548
548
|
).action(async (options) => {
|
|
549
549
|
process.exitCode = await runSkillsCommand(options);
|
|
550
550
|
});
|
|
551
|
-
program.command(
|
|
551
|
+
program.command(_chunkECIXZNSWjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
|
|
552
552
|
"--claim <token>",
|
|
553
553
|
"Owner token of the leases this child was started for."
|
|
554
554
|
).action(async (options) => {
|
|
555
555
|
const claim = _optionalChain([options, 'access', _5 => _5.claim, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]);
|
|
556
556
|
if (!claim) {
|
|
557
|
-
|
|
557
|
+
_chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
|
|
558
558
|
{
|
|
559
559
|
ok: false,
|
|
560
560
|
status: "failed",
|
|
@@ -567,7 +567,7 @@ Examples:
|
|
|
567
567
|
process.exitCode = 2;
|
|
568
568
|
return;
|
|
569
569
|
}
|
|
570
|
-
await
|
|
570
|
+
await _chunkECIXZNSWjs.syncSdkSkillsIfNeeded.call(void 0, _chunkS3WQJ5VGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
571
571
|
mode: "inline",
|
|
572
572
|
notices: "defer",
|
|
573
573
|
claim
|
|
@@ -74,11 +74,37 @@ function decodePlayRunPublicStatus(value) {
|
|
|
74
74
|
// src/plays/run-request.ts
|
|
75
75
|
var PLAY_RUN_START_PATH = "/api/v2/plays/run";
|
|
76
76
|
var CLI_PLAY_RUN_START_PATH = `${PLAY_RUN_START_PATH}/cli`;
|
|
77
|
+
var CLI_PLAY_RUN_CALLER_INTENT_V2_PATH = `${CLI_PLAY_RUN_START_PATH}/caller-intent-v2`;
|
|
77
78
|
var CLI_PLAY_RUN_SUPPORTED_HEADER = "x-deepline-cli-play-admission";
|
|
79
|
+
var CLI_PLAY_RUN_CALLER_INTENT_V2_SUPPORTED_HEADER = "x-deepline-cli-play-caller-intent-v2";
|
|
78
80
|
var PLAY_RUN_START_STREAM_PATH = `${PLAY_RUN_START_PATH}?stream=true`;
|
|
79
81
|
var CLI_PLAY_RUN_START_STREAM_PATH = `${CLI_PLAY_RUN_START_PATH}?stream=true`;
|
|
82
|
+
var CLI_PLAY_RUN_CALLER_INTENT_V2_START_STREAM_PATH = `${CLI_PLAY_RUN_CALLER_INTENT_V2_PATH}?stream=true`;
|
|
80
83
|
var PLAY_FILES_STAGE_PATH = "/api/v2/plays/files/stage";
|
|
81
84
|
var PLAY_FILES_STAGE_MINT_PATH = `${PLAY_FILES_STAGE_PATH}/mint`;
|
|
85
|
+
async function awaitWithAbort(value, signal) {
|
|
86
|
+
if (!signal) return await value;
|
|
87
|
+
signal.throwIfAborted();
|
|
88
|
+
let removeAbortListener = () => {
|
|
89
|
+
};
|
|
90
|
+
const aborted = new Promise((_resolve, reject) => {
|
|
91
|
+
const onAbort = () => {
|
|
92
|
+
reject(
|
|
93
|
+
signal.reason ?? Object.assign(new Error("Play admission was aborted."), {
|
|
94
|
+
name: "AbortError"
|
|
95
|
+
})
|
|
96
|
+
);
|
|
97
|
+
};
|
|
98
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
99
|
+
removeAbortListener = () => signal.removeEventListener("abort", onAbort);
|
|
100
|
+
if (signal.aborted) onAbort();
|
|
101
|
+
});
|
|
102
|
+
try {
|
|
103
|
+
return await Promise.race([Promise.resolve(value), aborted]);
|
|
104
|
+
} finally {
|
|
105
|
+
removeAbortListener();
|
|
106
|
+
}
|
|
107
|
+
}
|
|
82
108
|
var CliPlayAdmissionUnsupportedError = class extends DeeplineError {
|
|
83
109
|
constructor(status) {
|
|
84
110
|
super(
|
|
@@ -88,6 +114,15 @@ var CliPlayAdmissionUnsupportedError = class extends DeeplineError {
|
|
|
88
114
|
);
|
|
89
115
|
}
|
|
90
116
|
};
|
|
117
|
+
var CliPlayAdmissionCallerIntentV2UnsupportedError = class extends DeeplineError {
|
|
118
|
+
constructor(status) {
|
|
119
|
+
super(
|
|
120
|
+
"This server does not support versioned CLI Play admission.",
|
|
121
|
+
status,
|
|
122
|
+
"CLI_PLAY_CALLER_INTENT_V2_UNSUPPORTED"
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
};
|
|
91
126
|
function buildPlayRunStartBody(request) {
|
|
92
127
|
return {
|
|
93
128
|
...request.admissionOrgId ? { admissionOrgId: request.admissionOrgId } : {},
|
|
@@ -126,10 +161,27 @@ function buildPlayRunStartBody(request) {
|
|
|
126
161
|
};
|
|
127
162
|
}
|
|
128
163
|
async function preparePlayRunAdmission(http, request, onSubmission, options) {
|
|
129
|
-
const
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
164
|
+
const assertAdmissionActive = () => {
|
|
165
|
+
options?.signal?.throwIfAborted();
|
|
166
|
+
if (options?.deadlineAt !== void 0 && Date.now() >= options.deadlineAt) {
|
|
167
|
+
const error = new Error("Play admission exceeded its wait deadline.");
|
|
168
|
+
error.name = "AbortError";
|
|
169
|
+
throw error;
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
const callerIntentV2 = options?.callerIntentV2 === true;
|
|
173
|
+
if (callerIntentV2 && (onSubmission || request.maxTotalCredits !== void 0)) {
|
|
174
|
+
throw new DeeplineError(
|
|
175
|
+
"Versioned CLI Play admission requires a new, unjournaled run without a strict total budget.",
|
|
176
|
+
409,
|
|
177
|
+
"CLI_PLAY_CALLER_INTENT_V2_INELIGIBLE"
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
assertAdmissionActive();
|
|
181
|
+
const capability = callerIntentV2 ? null : options && Object.hasOwn(options, "admissionCapability") ? await awaitWithAbort(options.admissionCapability, options.signal) : await readPlayRunAdmissionCapability(http, options);
|
|
182
|
+
const supportsCallerIntent = callerIntentV2 || capability?.admissionContract === "caller-intent-v1";
|
|
183
|
+
assertAdmissionActive();
|
|
184
|
+
if (supportsCallerIntent && !callerIntentV2 && (!capability?.orgId || request.admissionOrgId && request.admissionOrgId !== capability.orgId)) {
|
|
133
185
|
throw new DeeplineError(
|
|
134
186
|
"The admission workspace could not be pinned to this request; execution was not submitted.",
|
|
135
187
|
409,
|
|
@@ -168,7 +220,7 @@ async function preparePlayRunAdmission(http, request, onSubmission, options) {
|
|
|
168
220
|
JSON.stringify(
|
|
169
221
|
buildPlayRunStartBody({
|
|
170
222
|
...request,
|
|
171
|
-
...supportsCallerIntent ? { admissionOrgId: capability.orgId } : {}
|
|
223
|
+
...supportsCallerIntent && !callerIntentV2 ? { admissionOrgId: capability.orgId } : {}
|
|
172
224
|
})
|
|
173
225
|
)
|
|
174
226
|
);
|
|
@@ -189,6 +241,7 @@ async function preparePlayRunAdmission(http, request, onSubmission, options) {
|
|
|
189
241
|
"PLAY_RUN_ADMISSION_RECOVERY_UNSUPPORTED"
|
|
190
242
|
);
|
|
191
243
|
}
|
|
244
|
+
assertAdmissionActive();
|
|
192
245
|
await onSubmission({
|
|
193
246
|
workflowId,
|
|
194
247
|
orgId: capability.orgId,
|
|
@@ -233,25 +286,44 @@ async function startPlayRun(http, request, headers, options) {
|
|
|
233
286
|
options?.onSubmission,
|
|
234
287
|
options
|
|
235
288
|
);
|
|
289
|
+
return submitPreparedPlayRunAdmission(
|
|
290
|
+
http,
|
|
291
|
+
submittedBody,
|
|
292
|
+
workflowId,
|
|
293
|
+
supportsCallerIntent,
|
|
294
|
+
headers,
|
|
295
|
+
options
|
|
296
|
+
);
|
|
297
|
+
}
|
|
298
|
+
async function submitPreparedPlayRunAdmission(http, submittedBody, workflowId, supportsCallerIntent, headers, options) {
|
|
236
299
|
let cliAdmissionSupported = false;
|
|
300
|
+
let callerIntentV2Supported = false;
|
|
237
301
|
let response;
|
|
238
302
|
try {
|
|
239
303
|
response = await http.post(
|
|
240
|
-
options?.cliAdmission ? CLI_PLAY_RUN_START_PATH : PLAY_RUN_START_PATH,
|
|
304
|
+
options?.callerIntentV2 ? CLI_PLAY_RUN_CALLER_INTENT_V2_PATH : options?.cliAdmission ? CLI_PLAY_RUN_START_PATH : PLAY_RUN_START_PATH,
|
|
241
305
|
submittedBody,
|
|
242
306
|
headers,
|
|
243
307
|
{
|
|
244
308
|
maxRetries: 0,
|
|
245
309
|
exactUrlOnly: true,
|
|
246
310
|
...options?.signal ? { signal: options.signal } : {},
|
|
247
|
-
...options?.cliAdmission ? {
|
|
311
|
+
...options?.cliAdmission || options?.callerIntentV2 ? {
|
|
248
312
|
onResponse: (response2) => {
|
|
249
313
|
cliAdmissionSupported = response2.headers.get(CLI_PLAY_RUN_SUPPORTED_HEADER) === "true";
|
|
314
|
+
callerIntentV2Supported = response2.headers.get(
|
|
315
|
+
CLI_PLAY_RUN_CALLER_INTENT_V2_SUPPORTED_HEADER
|
|
316
|
+
) === "true";
|
|
250
317
|
}
|
|
251
318
|
} : {}
|
|
252
319
|
}
|
|
253
320
|
);
|
|
254
321
|
} catch (error) {
|
|
322
|
+
if (options?.callerIntentV2 && !callerIntentV2Supported && error instanceof DeeplineError && (error.statusCode === 404 || error.statusCode === 405)) {
|
|
323
|
+
throw new CliPlayAdmissionCallerIntentV2UnsupportedError(
|
|
324
|
+
error.statusCode
|
|
325
|
+
);
|
|
326
|
+
}
|
|
255
327
|
if (options?.cliAdmission && !cliAdmissionSupported && error instanceof DeeplineError && (error.statusCode === 404 || error.statusCode === 405)) {
|
|
256
328
|
throw new CliPlayAdmissionUnsupportedError(error.statusCode);
|
|
257
329
|
}
|
|
@@ -277,6 +349,18 @@ async function startPlayRun(http, request, headers, options) {
|
|
|
277
349
|
}
|
|
278
350
|
throw error;
|
|
279
351
|
}
|
|
352
|
+
if (options?.callerIntentV2 && !callerIntentV2Supported) {
|
|
353
|
+
throw new DeeplineError(
|
|
354
|
+
"The versioned CLI Play admission response did not prove its contract. Inspect this run before submitting again.",
|
|
355
|
+
void 0,
|
|
356
|
+
"PLAY_RUN_ADMISSION_CONTRACT_UNKNOWN",
|
|
357
|
+
{
|
|
358
|
+
...workflowId ? { runId: workflowId, workflowId } : {},
|
|
359
|
+
admissionState: "unknown",
|
|
360
|
+
recoverySupported: supportsCallerIntent
|
|
361
|
+
}
|
|
362
|
+
);
|
|
363
|
+
}
|
|
280
364
|
const started = normalizePlayRunStart(response);
|
|
281
365
|
if (options?.cliAdmission && (!started.workflowId || started.workflowId === "pending")) {
|
|
282
366
|
throw new DeeplineError(
|
|
@@ -713,16 +797,21 @@ export {
|
|
|
713
797
|
decodePlayRunPublicStatus,
|
|
714
798
|
PLAY_RUN_START_PATH,
|
|
715
799
|
CLI_PLAY_RUN_START_PATH,
|
|
800
|
+
CLI_PLAY_RUN_CALLER_INTENT_V2_PATH,
|
|
716
801
|
CLI_PLAY_RUN_SUPPORTED_HEADER,
|
|
802
|
+
CLI_PLAY_RUN_CALLER_INTENT_V2_SUPPORTED_HEADER,
|
|
717
803
|
PLAY_RUN_START_STREAM_PATH,
|
|
718
804
|
CLI_PLAY_RUN_START_STREAM_PATH,
|
|
805
|
+
CLI_PLAY_RUN_CALLER_INTENT_V2_START_STREAM_PATH,
|
|
719
806
|
PLAY_FILES_STAGE_PATH,
|
|
720
807
|
PLAY_FILES_STAGE_MINT_PATH,
|
|
721
808
|
CliPlayAdmissionUnsupportedError,
|
|
809
|
+
CliPlayAdmissionCallerIntentV2UnsupportedError,
|
|
722
810
|
buildPlayRunStartBody,
|
|
723
811
|
preparePlayRunAdmission,
|
|
724
812
|
readPlayRunAdmissionCapability,
|
|
725
813
|
startPlayRun,
|
|
814
|
+
submitPreparedPlayRunAdmission,
|
|
726
815
|
isPlayRunPackage,
|
|
727
816
|
normalizePlayRunStart,
|
|
728
817
|
buildNamedPlayRunRequest,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk2ILND7XXjs = require('./chunk-2ILND7XX.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkNRNWPWBWjs = require('./chunk-NRNWPWBW.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkECIXZNSWjs = require('./chunk-ECIXZNSW.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkBSKPQB2Pjs = require('./chunk-BSKPQB2P.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkS3WQJ5VGjs = require('./chunk-S3WQJ5VG.js');
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
var _child_process = require('child_process');
|
|
@@ -495,7 +495,7 @@ function normalizedNpmPrefix(value) {
|
|
|
495
495
|
}
|
|
496
496
|
function resolveNpmGlobalPrefix(env) {
|
|
497
497
|
try {
|
|
498
|
-
const plan =
|
|
498
|
+
const plan = _chunkECIXZNSWjs.resolveShellSpawn.call(void 0,
|
|
499
499
|
"npm",
|
|
500
500
|
["prefix", "-g"],
|
|
501
501
|
process.platform,
|
|
@@ -556,8 +556,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
556
556
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
557
557
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
558
558
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
559
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
560
|
-
const npmGlobalInstallFlags =
|
|
559
|
+
const npmVersion = options.npmVersion === void 0 ? _chunk2ILND7XXjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
560
|
+
const npmGlobalInstallFlags = _chunk2ILND7XXjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
561
561
|
const args = installPrefix ? [
|
|
562
562
|
"install",
|
|
563
563
|
"-g",
|
|
@@ -567,7 +567,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
567
567
|
packageSpec
|
|
568
568
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
569
569
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
570
|
-
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
570
|
+
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkS3WQJ5VGjs.autoDetectBaseUrl.call(void 0, )
|
|
571
571
|
);
|
|
572
572
|
return {
|
|
573
573
|
kind: "npm-global",
|
|
@@ -816,7 +816,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
816
816
|
function runCommand(command, args, env = process.env) {
|
|
817
817
|
return new Promise((resolveResult) => {
|
|
818
818
|
let output = "";
|
|
819
|
-
const plan =
|
|
819
|
+
const plan = _chunkECIXZNSWjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
820
820
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
821
821
|
stdio: ["inherit", "pipe", "pipe"],
|
|
822
822
|
shell: plan.shell,
|
|
@@ -1199,14 +1199,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1199
1199
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1200
1200
|
}
|
|
1201
1201
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1202
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1202
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkS3WQJ5VGjs.autoDetectBaseUrl));
|
|
1203
1203
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1204
1204
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1205
1205
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1206
1206
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1207
1207
|
process.stdout.write = (() => true);
|
|
1208
1208
|
try {
|
|
1209
|
-
const exitCode = await
|
|
1209
|
+
const exitCode = await _chunkNRNWPWBWjs.runSkillsCommand.call(void 0, { json: true });
|
|
1210
1210
|
if (exitCode !== 0) {
|
|
1211
1211
|
throw new Error(
|
|
1212
1212
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1277,11 +1277,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1277
1277
|
]
|
|
1278
1278
|
};
|
|
1279
1279
|
if (options.json && !options.executeWithJson) {
|
|
1280
|
-
|
|
1280
|
+
_chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1281
1281
|
return 0;
|
|
1282
1282
|
}
|
|
1283
1283
|
if (options.printCommand) {
|
|
1284
|
-
|
|
1284
|
+
_chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
|
|
1285
1285
|
{
|
|
1286
1286
|
...plan,
|
|
1287
1287
|
render: {
|
|
@@ -1294,7 +1294,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1294
1294
|
return 0;
|
|
1295
1295
|
}
|
|
1296
1296
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1297
|
-
|
|
1297
|
+
_chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1298
1298
|
return 0;
|
|
1299
1299
|
}
|
|
1300
1300
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills
|
|
|
1324
1324
|
);
|
|
1325
1325
|
}
|
|
1326
1326
|
if (options.executeWithJson && options.json) {
|
|
1327
|
-
|
|
1327
|
+
_chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
|
|
1328
1328
|
{
|
|
1329
1329
|
ok: true,
|
|
1330
1330
|
pinnedVersion
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-5AEDYVB6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3DYU3JQN.mjs";
|
|
7
7
|
import {
|
|
8
8
|
printCommandEnvelope
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-L352NOE3.mjs";
|
|
10
10
|
import {
|
|
11
11
|
resolveConfig,
|
|
12
12
|
sdkCliStateDirPath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-G5PI3RNT.mjs";
|
|
14
14
|
|
|
15
15
|
// src/cli/commands/search.ts
|
|
16
16
|
import { Option } from "commander";
|
|
@@ -132,7 +132,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
132
132
|
});
|
|
133
133
|
if (searchRef) rememberSearchRef(searchRef);
|
|
134
134
|
pointAtDescribe(result);
|
|
135
|
-
const { renderSearchResults } = await import("./search-output-
|
|
135
|
+
const { renderSearchResults } = await import("./search-output-QKKRD4MF.mjs");
|
|
136
136
|
printCommandEnvelope(result, {
|
|
137
137
|
json: options.json === true,
|
|
138
138
|
text: renderSearchResults(result, summaryWidth)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkDMNVM34Jjs = require('./chunk-DMNVM34J.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
@@ -711,7 +711,7 @@ function readSkillsVersionFile(path) {
|
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
713
|
function resolveAutoSyncSkillAgents() {
|
|
714
|
-
switch (
|
|
714
|
+
switch (_chunkDMNVM34Jjs.detectAgentRuntime.call(void 0, )) {
|
|
715
715
|
case "codex":
|
|
716
716
|
return ["codex"];
|
|
717
717
|
case "claude_code":
|
|
@@ -781,7 +781,7 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
|
|
|
781
781
|
}
|
|
782
782
|
|
|
783
783
|
// src/http.ts
|
|
784
|
-
var HttpClient2 = class extends
|
|
784
|
+
var HttpClient2 = class extends _chunkDMNVM34Jjs.HttpClient {
|
|
785
785
|
constructor(config) {
|
|
786
786
|
super(config, readSdkSkillsLocalVersion);
|
|
787
787
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-E73JXJA3.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UPHXGZCE.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CW6TAQBF.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-L352NOE3.mjs";
|
|
14
14
|
import {
|
|
15
15
|
autoDetectBaseUrl
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-G5PI3RNT.mjs";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
import { spawn, spawnSync } from "child_process";
|