deepline 0.3.501 → 0.3.503
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 +26 -0
- package/dist/bundling-sources/sdk/src/index.ts +1 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +9 -0
- package/dist/bundling-sources/shared_libs/monitors/starter-templates.ts +0 -8
- package/dist/bundling-sources/shared_libs/observability/dlq.ts +174 -0
- package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
- package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +20 -2
- package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +20 -0
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +62 -2
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +667 -62
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +55 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/vercel-fly-rollback-alignment.ts +29 -14
- package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +20 -2
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +46 -0
- package/dist/bundling-sources/shared_libs/play-runtime/execution-gateway-invocation-fence.ts +80 -4
- package/dist/bundling-sources/shared_libs/play-runtime/fixture-egress-fetch.ts +95 -0
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +292 -45
- package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +15 -0
- package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-http-request.ts +7 -3
- package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-semantics.ts +31 -1
- package/dist/bundling-sources/shared_libs/play-runtime/post-code-recovery-policy.ts +231 -0
- package/dist/bundling-sources/shared_libs/play-runtime/prebuilt-result-quality.ts +264 -0
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-ending-event.ts +55 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +126 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +70 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +2 -9
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +51 -19
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/local-process.ts +9 -4
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-actions.ts +12 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-oidc.ts +30 -8
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-incident-drills.ts +42 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +7 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-store-adapter.ts +26 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +13 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-deadline-reconciliation.ts +53 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +631 -19
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-inventory.ts +719 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-sql.ts +206 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/latest-cache-result.ts +83 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +1453 -160
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +61 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +29 -8
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-queue-health.ts +27 -2
- package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +45 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +129 -14
- package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +2 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +10 -1
- package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +2 -0
- package/dist/cli/{auth-6ECHXOI4.mjs → auth-IC4WLSE3.mjs} +5 -5
- package/dist/cli/auth-ZCMSXZO4.js +43 -0
- package/dist/cli/{billing-75NZYRXA.mjs → billing-2VOV64SD.mjs} +6 -6
- package/dist/cli/{billing-QRR7O6BD.js → billing-LWQOII22.js} +79 -79
- package/dist/cli/{chunk-N2TJJNCW.js → chunk-2626LTU3.js} +291 -273
- package/dist/cli/{chunk-VL72UKNW.js → chunk-26RSSTCF.js} +26 -26
- package/dist/cli/{chunk-HDKXSHGA.js → chunk-2K2QBLYO.js} +53 -53
- package/dist/cli/{chunk-463ZOO2L.js → chunk-33JUK73X.js} +7 -7
- package/dist/cli/{chunk-KTOAJP4N.js → chunk-3CXHK4TW.js} +10 -10
- package/dist/cli/{chunk-YPTZJ7LO.js → chunk-4IIYSBEP.js} +70 -13
- package/dist/cli/{chunk-VTDAJZIJ.mjs → chunk-5GI6NKOE.mjs} +20 -1
- package/dist/cli/{chunk-TFFJ2PRN.mjs → chunk-5M5WSFRZ.mjs} +70 -13
- package/dist/cli/{chunk-5S7MLAI7.mjs → chunk-6XTE6C3W.mjs} +41 -23
- package/dist/cli/{chunk-7L6QNHUL.mjs → chunk-7HEDCIR3.mjs} +1 -1
- package/dist/cli/{chunk-C5R3UH5V.mjs → chunk-7MJYZ33I.mjs} +2 -6
- package/dist/cli/{chunk-TOE7LHEA.js → chunk-A2C6ONWA.js} +6 -6
- package/dist/cli/{chunk-QQ3JJYE2.js → chunk-AARF4SOW.js} +17 -13
- package/dist/cli/{chunk-APAHMCGR.js → chunk-B3X4YWQ6.js} +53 -53
- package/dist/cli/{chunk-J74N375S.mjs → chunk-BI2Q45SY.mjs} +4 -4
- package/dist/cli/{chunk-GBICEYUA.js → chunk-BN5VKY4X.js} +141 -20
- package/dist/cli/{chunk-UR7JOSLT.js → chunk-C5RQTTLP.js} +26 -7
- package/dist/cli/{chunk-ZUOKIBLJ.mjs → chunk-D27HP3HS.mjs} +2 -2
- package/dist/cli/{chunk-UJRN6YP6.mjs → chunk-DPI5OYVU.mjs} +10 -6
- package/dist/cli/{chunk-MSLXAVVK.mjs → chunk-EDMV4JT5.mjs} +2 -2
- package/dist/cli/{chunk-ZUQHQGC5.mjs → chunk-EQ3WMKFY.mjs} +5 -5
- package/dist/cli/{chunk-5X4AUFYW.js → chunk-F73PD2XD.js} +7 -7
- package/dist/cli/{chunk-O3DDVP7Z.mjs → chunk-FHJ54BHH.mjs} +2 -2
- package/dist/cli/{chunk-SV2TEZ2M.js → chunk-FIUTDSJX.js} +5 -4
- package/dist/cli/{chunk-W6JTHVPF.js → chunk-FVDTERO2.js} +21 -21
- package/dist/cli/{chunk-CJJ7JBM2.js → chunk-FZHOWPSN.js} +23 -21
- package/dist/cli/{chunk-WJUDAHIQ.mjs → chunk-GIHNEYBG.mjs} +1 -1
- package/dist/cli/{chunk-V5NHEYU7.mjs → chunk-GLZBFBJS.mjs} +5 -5
- package/dist/cli/{chunk-VVEMPC2I.js → chunk-HRTDCXHI.js} +2 -2
- package/dist/cli/{chunk-BOFCF4L7.js → chunk-HS63YBT5.js} +3 -3
- package/dist/cli/{chunk-4OXHLTCP.js → chunk-IIP46RVC.js} +1 -1
- package/dist/cli/{chunk-SAW3FBCA.mjs → chunk-ITJ7NB2D.mjs} +6 -0
- package/dist/cli/{chunk-NA3J3F2Z.mjs → chunk-J6RBOLK7.mjs} +1 -1
- package/dist/cli/{chunk-PXIF74UJ.mjs → chunk-JJVN7OIX.mjs} +4 -4
- package/dist/cli/{chunk-T7E3XEPG.mjs → chunk-JPDD4Y53.mjs} +10 -8
- package/dist/cli/{chunk-OKOXB3LY.mjs → chunk-K7NFFQFU.mjs} +2 -2
- package/dist/cli/{chunk-66XDYH5T.mjs → chunk-KGLVATEB.mjs} +2 -2
- package/dist/cli/{chunk-EHVFBD36.mjs → chunk-KPBBT6OS.mjs} +2 -1
- package/dist/cli/{chunk-MADTHS56.mjs → chunk-L3TZV625.mjs} +1 -1
- package/dist/cli/{chunk-FS7XYDOF.js → chunk-MJQOG4TZ.js} +16 -16
- package/dist/cli/{chunk-JO5FFSR7.js → chunk-NTLBZUHD.js} +6 -0
- package/dist/cli/{chunk-EKZQ5LQO.js → chunk-PVA3MWCO.js} +3 -3
- package/dist/cli/{chunk-PNF2ZU4R.js → chunk-QIEYEY6Z.js} +8 -8
- package/dist/cli/{chunk-KSHAFYYG.mjs → chunk-R2VZVHJP.mjs} +127 -6
- package/dist/cli/{chunk-XEBFJ2PH.js → chunk-RVOBFO7C.js} +41 -41
- package/dist/cli/{chunk-RU5ROUFO.js → chunk-TCQYWZFS.js} +5 -5
- package/dist/cli/{chunk-I42EOZKQ.js → chunk-TMQUMILM.js} +19 -23
- package/dist/cli/{chunk-EOO7OSS4.mjs → chunk-URZNSJE2.mjs} +4 -4
- package/dist/cli/{chunk-Z6AUOV7D.mjs → chunk-VC5B462T.mjs} +2 -2
- package/dist/cli/{chunk-EKF4DKUA.js → chunk-WHP3FJ7T.js} +5 -5
- package/dist/cli/{chunk-VD2374K7.mjs → chunk-WS274KID.mjs} +1 -1
- package/dist/cli/{chunk-T4U245E4.mjs → chunk-XYZZZLN6.mjs} +2 -2
- package/dist/cli/{chunk-J6SVNKRP.js → chunk-YXGPMTAK.js} +2 -2
- package/dist/cli/{chunk-RFV7PPLS.mjs → chunk-ZEQPCEV4.mjs} +3 -3
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-RZJ4SOIL.mjs → csv-2TXOI3UE.mjs} +4 -4
- package/dist/cli/{csv-JXX2LXK5.js → csv-NEWCNOSZ.js} +13 -13
- package/dist/cli/{db-T2KJNONM.js → db-J3IJS4OG.js} +27 -27
- package/dist/cli/{db-MUTT2NWI.mjs → db-PX7EQEIG.mjs} +6 -6
- package/dist/cli/{describe-K3UMAAVO.mjs → describe-GQHGTZSL.mjs} +20 -21
- package/dist/cli/describe-LE7EZCL4.js +49 -0
- package/dist/cli/describe-core.d.mts +8 -4
- package/dist/cli/describe-core.d.ts +8 -4
- package/dist/cli/describe-core.js +4 -5
- package/dist/cli/describe-core.mjs +3 -4
- package/dist/cli/{executions-PHS4R2OX.mjs → executions-FFKK24RY.mjs} +6 -6
- package/dist/cli/{executions-7HSLDRHR.js → executions-RO3TJUXL.js} +8 -8
- package/dist/cli/{feedback-BJZRM637.js → feedback-XRR4HIS6.js} +8 -8
- package/dist/cli/{feedback-RWMDCIDF.mjs → feedback-ZTO56SRL.mjs} +4 -4
- package/dist/cli/git-26AH4XIO.js +25 -0
- package/dist/cli/{git-YW6VHYZG.mjs → git-FIPBVFYZ.mjs} +5 -5
- package/dist/cli/index.js +142 -142
- package/dist/cli/index.mjs +42 -42
- package/dist/cli/{legacy-noops-5UBSUPGG.mjs → legacy-noops-AMD2NWHF.mjs} +5 -5
- package/dist/cli/{legacy-noops-2WUV2XD7.js → legacy-noops-MTBBGM27.js} +8 -8
- package/dist/cli/{monitors-HWOQO3OK.mjs → monitors-24LDKDJX.mjs} +7 -7
- package/dist/cli/{monitors-YZZRKSTG.js → monitors-42PIGLBF.js} +95 -95
- package/dist/cli/{org-NCXT6RB4.mjs → org-4B7SCFRL.mjs} +6 -6
- package/dist/cli/{org-JY7HLHBA.js → org-GQMCA3MN.js} +72 -72
- package/dist/cli/{pages-QJO53QAT.mjs → pages-PD5EGL2R.mjs} +6 -6
- package/dist/cli/{pages-6ZOHXL6X.js → pages-RL2M62GJ.js} +18 -18
- package/dist/cli/{play-SQRS7JN3.mjs → play-5V54VTUR.mjs} +132 -26
- package/dist/cli/{play-TAYGSR35.js → play-FST6ZAHW.js} +447 -341
- package/dist/cli/{providers-4Q5LOIQ5.js → providers-HBUUPN7J.js} +9 -9
- package/dist/cli/{providers-3IR3N5DT.mjs → providers-N5YVCKPL.mjs} +6 -6
- package/dist/cli/{quickstart-ITNUZENY.js → quickstart-4QIQNSHG.js} +6 -6
- package/dist/cli/{quickstart-KCZCYO6B.mjs → quickstart-NJDDVTQR.mjs} +4 -4
- package/dist/cli/{run-YQ57LMKN.js → run-FGOKCG4J.js} +44 -45
- package/dist/cli/{run-JCWRWDSK.mjs → run-JHI5MTHD.mjs} +25 -26
- package/dist/cli/search-CTKSEVSO.js +32 -0
- package/dist/cli/{search-FUM27HQP.mjs → search-EWIZBIY2.mjs} +7 -7
- package/dist/cli/{search-output-EWEYT34M.mjs → search-output-NAK3MWBH.mjs} +53 -75
- package/dist/cli/{search-output-XAMWKRJH.js → search-output-TMQTRC2W.js} +58 -80
- package/dist/cli/{secrets-2IRRRZBL.js → secrets-5TSUEOJB.js} +15 -15
- package/dist/cli/{secrets-YTI4IAKR.mjs → secrets-ONQVW5SR.mjs} +6 -6
- package/dist/cli/{sessions-EFS4KUPF.mjs → sessions-B7F5O3ZR.mjs} +5 -5
- package/dist/cli/{sessions-HWTRDXBQ.js → sessions-BSGE5EET.js} +6 -6
- package/dist/cli/{settings-FRVEIOKR.js → settings-47LARBRU.js} +78 -78
- package/dist/cli/{settings-NTOO42DY.mjs → settings-SGGFQV5R.mjs} +11 -11
- package/dist/cli/{setup-PAVQPALX.mjs → setup-ATGNXQUK.mjs} +9 -9
- package/dist/cli/{setup-6ZIOAE2V.js → setup-BNFZFXO6.js} +49 -49
- package/dist/cli/skills-6RD25MVM.js +36 -0
- package/dist/cli/{skills-3O3XTPUM.mjs → skills-CIMBRM5R.mjs} +7 -7
- package/dist/cli/{tools-7QSB65UL.mjs → tools-DTDXAULX.mjs} +18 -19
- package/dist/cli/tools-TDZH4XHS.js +56 -0
- package/dist/cli/{update-T6CYS5ZT.mjs → update-EOIJBJCO.mjs} +9 -9
- package/dist/cli/update-Y32VT4VL.js +34 -0
- package/dist/cli/{workflow-OMSXZ73T.mjs → workflow-IWXUJPWY.mjs} +7 -7
- package/dist/cli/{workflow-4KMJBMGX.js → workflow-V5VKPICQ.js} +17 -17
- package/dist/{client-Bn8FwKGO.d.ts → client-CIwenMFS.d.ts} +1 -1
- package/dist/{client-CfNRmjLK.d.mts → client-DYAfJpaN.d.mts} +1 -1
- package/dist/{client-core-B91EV0WS.d.ts → client-core-CRjtyMAI.d.ts} +25 -2
- package/dist/{client-core-BG8Cgrmk.d.mts → client-core-DlzP8vEs.d.mts} +25 -2
- package/dist/{compiler-manifest-DlXDyndN.d.ts → compiler-manifest-DaJrA2KV.d.mts} +1 -1
- package/dist/{compiler-manifest-DlXDyndN.d.mts → compiler-manifest-DaJrA2KV.d.ts} +1 -1
- package/dist/{errors-BtriA2ld.d.mts → errors-BKnSYueU.d.mts} +1 -1
- package/dist/{errors-DmcLykM7.d.ts → errors-KLga4bLr.d.ts} +1 -1
- package/dist/{index-DI0sR_fX.d.mts → index-C-8AFpWy.d.mts} +1 -1
- package/dist/{index--Jw-slHY.d.ts → index-C5nAZ-VS.d.ts} +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 +124 -118
- 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 +8 -1
- 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-VP7PMXKQ.js +0 -43
- package/dist/cli/chunk-XK5DMLZE.js +0 -111
- package/dist/cli/chunk-XRDXNAAY.mjs +0 -111
- package/dist/cli/describe-SEXUJLE4.js +0 -50
- package/dist/cli/git-VNS7UQWN.js +0 -25
- package/dist/cli/search-I425FRTK.js +0 -32
- package/dist/cli/skills-6ZNMO2PR.js +0 -36
- package/dist/cli/tools-DPV2JES6.js +0 -57
- package/dist/cli/update-Q5GUDEAW.js +0 -34
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkC5RQTTLPjs = require('./chunk-C5RQTTLP.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkRNSHCJMEjs = require('./chunk-RNSHCJME.js');
|
|
@@ -11,7 +11,7 @@ var _chunkRNSHCJMEjs = require('./chunk-RNSHCJME.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkF73PD2XDjs = require('./chunk-F73PD2XD.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
@@ -458,7 +458,9 @@ var PLAY_RUN_RESERVED_BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
|
|
|
458
458
|
"--debug",
|
|
459
459
|
"--full",
|
|
460
460
|
"--force",
|
|
461
|
+
"--from-start",
|
|
461
462
|
"--force-tool-refresh",
|
|
463
|
+
"--refresh-cache",
|
|
462
464
|
"--open",
|
|
463
465
|
"--debug-map-latency"
|
|
464
466
|
]);
|
|
@@ -579,7 +581,7 @@ function parseInputFlagValue(raw) {
|
|
|
579
581
|
return raw;
|
|
580
582
|
}
|
|
581
583
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
582
|
-
const selection =
|
|
584
|
+
const selection = _chunkF73PD2XDjs.parseJsonFields.call(void 0, args, "run");
|
|
583
585
|
args = selection.args;
|
|
584
586
|
const usage = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and deepline.dataset guidance.";
|
|
585
587
|
let filePath = null;
|
|
@@ -591,10 +593,10 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
591
593
|
let revisionSelector = null;
|
|
592
594
|
const watch = !args.includes("--no-wait");
|
|
593
595
|
const dryRun = args.includes("--dry-run");
|
|
594
|
-
let jsonOutput = dryRun ?
|
|
596
|
+
let jsonOutput = dryRun ? _chunkF73PD2XDjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkF73PD2XDjs.argsWantJson.call(void 0, args);
|
|
595
597
|
const fullJson = args.includes("--full");
|
|
596
|
-
const force = args.includes("--force");
|
|
597
|
-
const forceToolRefresh = args.includes("--force-tool-refresh");
|
|
598
|
+
const force = args.includes("--force") || args.includes("--from-start");
|
|
599
|
+
const forceToolRefresh = args.includes("--force-tool-refresh") || args.includes("--refresh-cache");
|
|
598
600
|
const open = args.includes("--open");
|
|
599
601
|
const debugMapLatency = args.includes("--debug-map-latency");
|
|
600
602
|
let logLevel = "info";
|
|
@@ -654,7 +656,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
654
656
|
"--log-level requires one of: debug, info, warn, error."
|
|
655
657
|
);
|
|
656
658
|
}
|
|
657
|
-
const parsed =
|
|
659
|
+
const parsed = _chunkC5RQTTLPjs.parseLogLevel.call(void 0, value);
|
|
658
660
|
if (!parsed) {
|
|
659
661
|
throw new Error(
|
|
660
662
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -972,7 +974,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
972
974
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
973
975
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
974
976
|
);
|
|
975
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
977
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkC5RQTTLPjs.parseLogLevel.call(void 0, options.logLevel);
|
|
976
978
|
if (!logLevel)
|
|
977
979
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
978
980
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -986,13 +988,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
986
988
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
987
989
|
logLevel = "debug";
|
|
988
990
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
989
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
990
|
-
[...fullJson ? ["--full"] : [], ...
|
|
991
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkF73PD2XDjs.parseJsonFields.call(void 0,
|
|
992
|
+
[...fullJson ? ["--full"] : [], ..._chunkF73PD2XDjs.jsonFieldArgs.call(void 0, options.json)],
|
|
991
993
|
"run"
|
|
992
994
|
).fields;
|
|
993
995
|
const watch = options.wait === false ? false : base.watch;
|
|
994
996
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
995
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
997
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkF73PD2XDjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
996
998
|
const verboseLogs = Boolean(
|
|
997
999
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
998
1000
|
);
|
|
@@ -1017,8 +1019,10 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
1017
1019
|
fullJson,
|
|
1018
1020
|
jsonFields,
|
|
1019
1021
|
waitTimeoutMs,
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
+
// The new names are aliases: an explicit legacy value still wins, exactly
|
|
1023
|
+
// as before, and an unset option inherits the base run's choice.
|
|
1024
|
+
force: _nullishCoalesce(_nullishCoalesce(options.force, () => ( (options.fromStart || void 0))), () => ( base.force)),
|
|
1025
|
+
forceToolRefresh: _nullishCoalesce(_nullishCoalesce(options.forceToolRefresh, () => ( (options.refreshCache || void 0))), () => ( base.forceToolRefresh)),
|
|
1022
1026
|
maxConcurrentExternalCalls: externalCalls,
|
|
1023
1027
|
maxConcurrentRows: rows,
|
|
1024
1028
|
maxCredits,
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
var
|
|
3
|
+
var _chunkPVA3MWCOjs = require('./chunk-PVA3MWCO.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ var _chunkEKZQ5LQOjs = require('./chunk-EKZQ5LQO.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkHS63YBT5js = require('./chunk-HS63YBT5.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -20,13 +20,13 @@ var _chunkBOFCF4L7js = require('./chunk-BOFCF4L7.js');
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkFIUTDSJXjs = require('./chunk-FIUTDSJX.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkIIP46RVCjs = require('./chunk-IIP46RVC.js');
|
|
30
30
|
|
|
31
31
|
// src/compat.ts
|
|
32
32
|
var _crypto = require('crypto');
|
|
@@ -61,7 +61,7 @@ function shouldSkipCompatibilityCheck() {
|
|
|
61
61
|
return value === "1" || value === "true" || value === "yes";
|
|
62
62
|
}
|
|
63
63
|
function sdkCompatibilityCachePath(baseUrl, homeDir = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.HOME, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || _os.homedir.call(void 0, )) {
|
|
64
|
-
return _path.join.call(void 0,
|
|
64
|
+
return _path.join.call(void 0, _chunkHS63YBT5js.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
|
|
65
65
|
}
|
|
66
66
|
function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'access', _11 => _11.env, 'access', _12 => _12.HOME, 'optionalAccess', _13 => _13.trim, 'call', _14 => _14()]) || _os.homedir.call(void 0, )) {
|
|
67
67
|
return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
|
|
@@ -69,9 +69,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
|
|
|
69
69
|
function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
70
70
|
return JSON.stringify({
|
|
71
71
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
72
|
-
version:
|
|
73
|
-
apiContract:
|
|
74
|
-
apiMajor:
|
|
72
|
+
version: _chunkFIUTDSJXjs.SDK_VERSION,
|
|
73
|
+
apiContract: _chunkFIUTDSJXjs.SDK_API_CONTRACT,
|
|
74
|
+
apiMajor: _chunkFIUTDSJXjs.SDK_API_MAJOR,
|
|
75
75
|
command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
|
|
76
76
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
77
77
|
});
|
|
@@ -79,8 +79,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
|
79
79
|
function legacyCompatibilityCacheKey(baseUrl, command) {
|
|
80
80
|
return JSON.stringify({
|
|
81
81
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
82
|
-
version:
|
|
83
|
-
apiContract:
|
|
82
|
+
version: _chunkFIUTDSJXjs.SDK_VERSION,
|
|
83
|
+
apiContract: _chunkFIUTDSJXjs.SDK_API_CONTRACT,
|
|
84
84
|
command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
|
|
85
85
|
});
|
|
86
86
|
}
|
|
@@ -105,7 +105,7 @@ function isSavedWithin(savedAt, windowMs, now) {
|
|
|
105
105
|
}
|
|
106
106
|
var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
107
107
|
function claimUpdateAdvisory(baseUrl, now = Date.now()) {
|
|
108
|
-
const path = _path.join.call(void 0,
|
|
108
|
+
const path = _path.join.call(void 0, _chunkHS63YBT5js.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
|
|
109
109
|
try {
|
|
110
110
|
const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
|
|
111
111
|
if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
|
|
@@ -192,7 +192,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
192
192
|
);
|
|
193
193
|
try {
|
|
194
194
|
const url = new URL("/api/v2/sdk/compat", baseUrl);
|
|
195
|
-
url.searchParams.set("version",
|
|
195
|
+
url.searchParams.set("version", _chunkFIUTDSJXjs.SDK_VERSION);
|
|
196
196
|
if (_optionalChain([options, 'access', _34 => _34.command, 'optionalAccess', _35 => _35.trim, 'call', _36 => _36()])) {
|
|
197
197
|
url.searchParams.set("command", options.command.trim());
|
|
198
198
|
}
|
|
@@ -200,7 +200,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
200
200
|
url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
|
|
201
201
|
url.searchParams.set(
|
|
202
202
|
"skills_cli_capability",
|
|
203
|
-
String(
|
|
203
|
+
String(_chunkIIP46RVCjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
|
|
204
204
|
);
|
|
205
205
|
}
|
|
206
206
|
if (options.catalog) {
|
|
@@ -212,14 +212,14 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
212
212
|
const response = await fetch(url, {
|
|
213
213
|
method: "GET",
|
|
214
214
|
headers: {
|
|
215
|
-
...
|
|
216
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
217
|
-
"X-Deepline-SDK-Version":
|
|
218
|
-
"X-Deepline-API-Major": String(
|
|
219
|
-
"X-Deepline-API-Contract":
|
|
215
|
+
..._chunkFIUTDSJXjs.deploymentProtectionHeaders.call(void 0, ),
|
|
216
|
+
"User-Agent": `deepline-ts-sdk/${_chunkFIUTDSJXjs.SDK_VERSION}`,
|
|
217
|
+
"X-Deepline-SDK-Version": _chunkFIUTDSJXjs.SDK_VERSION,
|
|
218
|
+
"X-Deepline-API-Major": String(_chunkFIUTDSJXjs.SDK_API_MAJOR),
|
|
219
|
+
"X-Deepline-API-Contract": _chunkFIUTDSJXjs.SDK_API_CONTRACT,
|
|
220
220
|
"X-Deepline-CLI-Update-Preferences": "1",
|
|
221
221
|
"X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
|
|
222
|
-
...options.catalog ? { Authorization: `Bearer ${
|
|
222
|
+
...options.catalog ? { Authorization: `Bearer ${_chunkHS63YBT5js.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
|
|
223
223
|
..._optionalChain([options, 'access', _37 => _37.catalog, 'optionalAccess', _38 => _38.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
|
|
224
224
|
},
|
|
225
225
|
signal: controller.signal
|
|
@@ -432,7 +432,7 @@ function buildEnvironmentContext() {
|
|
|
432
432
|
node_version: process.version,
|
|
433
433
|
runtime: "Node.js",
|
|
434
434
|
hostname: _os.hostname.call(void 0, ),
|
|
435
|
-
agent_runtime:
|
|
435
|
+
agent_runtime: _chunkFIUTDSJXjs.detectAgentRuntime.call(void 0, )
|
|
436
436
|
};
|
|
437
437
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
438
438
|
const normalized = _optionalChain([process, 'access', _57 => _57.env, 'access', _58 => _58[key], 'optionalAccess', _59 => _59.trim, 'call', _60 => _60()]);
|
|
@@ -453,18 +453,18 @@ function buildEnvironmentContext() {
|
|
|
453
453
|
return context;
|
|
454
454
|
}
|
|
455
455
|
function failureReportHeaders(apiKey) {
|
|
456
|
-
const agentSessionId =
|
|
456
|
+
const agentSessionId = _chunkFIUTDSJXjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
457
457
|
return {
|
|
458
|
-
...
|
|
458
|
+
..._chunkFIUTDSJXjs.deploymentProtectionHeaders.call(void 0, ),
|
|
459
459
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
|
|
460
460
|
Authorization: `Bearer ${apiKey}`,
|
|
461
461
|
"Content-Type": "application/json",
|
|
462
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
462
|
+
"User-Agent": `deepline-ts-sdk/${_chunkFIUTDSJXjs.SDK_VERSION}`,
|
|
463
463
|
"X-Deepline-Client-Family": "sdk",
|
|
464
464
|
"X-Deepline-CLI-Family": "sdk",
|
|
465
|
-
"X-Deepline-Agent-Runtime":
|
|
466
|
-
"X-Deepline-CLI-Version":
|
|
467
|
-
"X-Deepline-SDK-Version":
|
|
465
|
+
"X-Deepline-Agent-Runtime": _chunkFIUTDSJXjs.detectAgentRuntime.call(void 0, ),
|
|
466
|
+
"X-Deepline-CLI-Version": _chunkFIUTDSJXjs.SDK_VERSION,
|
|
467
|
+
"X-Deepline-SDK-Version": _chunkFIUTDSJXjs.SDK_VERSION
|
|
468
468
|
};
|
|
469
469
|
}
|
|
470
470
|
async function postFailureReport(input) {
|
|
@@ -492,7 +492,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
492
492
|
if (isFailureReportingDisabled()) return false;
|
|
493
493
|
let apiKey = "";
|
|
494
494
|
try {
|
|
495
|
-
apiKey =
|
|
495
|
+
apiKey = _chunkHS63YBT5js.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
496
496
|
} catch (e8) {
|
|
497
497
|
return false;
|
|
498
498
|
}
|
|
@@ -519,7 +519,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
519
519
|
failure_code: failureCode2,
|
|
520
520
|
failure_stage: failureStage,
|
|
521
521
|
error_body: "Automatic Deepline skills installation failed.",
|
|
522
|
-
cli_version:
|
|
522
|
+
cli_version: _chunkFIUTDSJXjs.SDK_VERSION,
|
|
523
523
|
context: {
|
|
524
524
|
environment: buildEnvironmentContext(),
|
|
525
525
|
skills_sync: {
|
|
@@ -639,7 +639,7 @@ function buildFailureReport(input) {
|
|
|
639
639
|
failure_kind: failureKind,
|
|
640
640
|
failure_code: code,
|
|
641
641
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
642
|
-
cli_version:
|
|
642
|
+
cli_version: _chunkFIUTDSJXjs.SDK_VERSION,
|
|
643
643
|
context: {
|
|
644
644
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
645
645
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -659,8 +659,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
659
659
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
660
660
|
const exitCode = resolvedExitCode(input);
|
|
661
661
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
662
|
-
const baseUrl =
|
|
663
|
-
const apiKey =
|
|
662
|
+
const baseUrl = _chunkHS63YBT5js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
663
|
+
const apiKey = _chunkHS63YBT5js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
664
664
|
if (!apiKey) return false;
|
|
665
665
|
return postFailureReport({
|
|
666
666
|
baseUrl,
|
|
@@ -770,7 +770,7 @@ function skillsSourceUrl(baseUrl) {
|
|
|
770
770
|
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
771
771
|
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
772
772
|
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
773
|
-
const agents = _nullishCoalesce(options.agents, () => (
|
|
773
|
+
const agents = _nullishCoalesce(options.agents, () => ( _chunkHS63YBT5js.DEFAULT_SKILL_AGENTS));
|
|
774
774
|
const values = {
|
|
775
775
|
skills_index_url: skillsIndexUrl(baseUrl),
|
|
776
776
|
skills_source_url: skillsSourceUrl(baseUrl),
|
|
@@ -872,25 +872,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
|
|
|
872
872
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
873
873
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
874
874
|
function shouldSkipSkillsSync() {
|
|
875
|
-
if (
|
|
875
|
+
if (_chunkFIUTDSJXjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
876
876
|
return true;
|
|
877
877
|
}
|
|
878
878
|
const value = _optionalChain([process, 'access', _81 => _81.env, 'access', _82 => _82.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _83 => _83.trim, 'call', _84 => _84(), 'access', _85 => _85.toLowerCase, 'call', _86 => _86()]);
|
|
879
879
|
return value === "1" || value === "true" || value === "yes" || value === "on";
|
|
880
880
|
}
|
|
881
881
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
882
|
-
return _path.join.call(void 0,
|
|
882
|
+
return _path.join.call(void 0, _chunkHS63YBT5js.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
883
883
|
}
|
|
884
884
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
885
885
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
886
|
-
var agentLeaseSegment =
|
|
886
|
+
var agentLeaseSegment = _chunkHS63YBT5js.skillsAgentPathSegment;
|
|
887
887
|
function sortedLeaseAgents(agents) {
|
|
888
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
888
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunkHS63YBT5js.KNOWN_SKILL_AGENTS] : agents;
|
|
889
889
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
890
890
|
}
|
|
891
891
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
892
892
|
return _path.join.call(void 0,
|
|
893
|
-
|
|
893
|
+
_chunkHS63YBT5js.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
894
894
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
895
895
|
);
|
|
896
896
|
}
|
|
@@ -1049,7 +1049,7 @@ var SkillsStateUnavailableError = class extends Error {
|
|
|
1049
1049
|
constructor(baseUrl, error) {
|
|
1050
1050
|
const detail = error instanceof Error ? error.message : String(error);
|
|
1051
1051
|
super(
|
|
1052
|
-
`Could not save skills state in ${
|
|
1052
|
+
`Could not save skills state in ${_chunkHS63YBT5js.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
|
|
1053
1053
|
);
|
|
1054
1054
|
this.name = "SkillsStateUnavailableError";
|
|
1055
1055
|
}
|
|
@@ -1134,7 +1134,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
1134
1134
|
}
|
|
1135
1135
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
1136
1136
|
return _path.join.call(void 0,
|
|
1137
|
-
|
|
1137
|
+
_chunkHS63YBT5js.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1138
1138
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
1139
1139
|
);
|
|
1140
1140
|
}
|
|
@@ -1168,8 +1168,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
1168
1168
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
1169
1169
|
}
|
|
1170
1170
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
1171
|
-
if (shouldSkipSkillsSync() ||
|
|
1172
|
-
const agents =
|
|
1171
|
+
if (shouldSkipSkillsSync() || _chunkHS63YBT5js.hasActivePluginSkills.call(void 0, )) return;
|
|
1172
|
+
const agents = _chunkHS63YBT5js.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1173
1173
|
if (agents.length === 0) return;
|
|
1174
1174
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1175
1175
|
}
|
|
@@ -1185,7 +1185,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
|
|
|
1185
1185
|
}
|
|
1186
1186
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
1187
1187
|
return _path.join.call(void 0,
|
|
1188
|
-
|
|
1188
|
+
_chunkHS63YBT5js.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1189
1189
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
1190
1190
|
);
|
|
1191
1191
|
}
|
|
@@ -1214,7 +1214,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
1214
1214
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
1215
1215
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
1216
1216
|
const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
|
|
1217
|
-
const manualCommand = _optionalChain([probes, 'optionalAccess', _90 => _90.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames,
|
|
1217
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _90 => _90.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkHS63YBT5js.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
1218
1218
|
const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _91 => _91.bunx]) === "missing" && probes.npx === "missing" ? "neither `bunx` nor `npx` was found on PATH. Make one available." : `installer version check failed for ${Object.entries(_nullishCoalesce(probes, () => ( {}))).filter(([, result]) => result === "failed").map(([command]) => `\`${command}\``).join(" and ")}. Check those commands with --version.`;
|
|
1219
1219
|
notice(
|
|
1220
1220
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
@@ -1302,7 +1302,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
1302
1302
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
1303
1303
|
}
|
|
1304
1304
|
function isDefaultAgentSet(agents) {
|
|
1305
|
-
return agents.length ===
|
|
1305
|
+
return agents.length === _chunkHS63YBT5js.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkHS63YBT5js.DEFAULT_SKILL_AGENTS[index]);
|
|
1306
1306
|
}
|
|
1307
1307
|
function safeSkillFilePath(value) {
|
|
1308
1308
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1459,10 +1459,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
|
|
|
1459
1459
|
method: "POST",
|
|
1460
1460
|
headers: { "Content-Type": "application/json" },
|
|
1461
1461
|
body: JSON.stringify({
|
|
1462
|
-
sdk_cli: { version:
|
|
1462
|
+
sdk_cli: { version: _chunkFIUTDSJXjs.SDK_VERSION },
|
|
1463
1463
|
skills: {
|
|
1464
1464
|
version: localVersion,
|
|
1465
|
-
capability:
|
|
1465
|
+
capability: _chunkIIP46RVCjs.SDK_RELEASE.packageCapabilities.skillsGuidance
|
|
1466
1466
|
}
|
|
1467
1467
|
}),
|
|
1468
1468
|
signal: controller.signal
|
|
@@ -1501,7 +1501,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1501
1501
|
}
|
|
1502
1502
|
function noInstallerProbePath(baseUrl) {
|
|
1503
1503
|
return _path.join.call(void 0,
|
|
1504
|
-
|
|
1504
|
+
_chunkHS63YBT5js.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1505
1505
|
"skills-sync-no-installer-unknown.json"
|
|
1506
1506
|
);
|
|
1507
1507
|
}
|
|
@@ -1580,7 +1580,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1580
1580
|
function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
|
|
1581
1581
|
return resolveShellSpawn(install.command, install.args, platform2);
|
|
1582
1582
|
}
|
|
1583
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1583
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkHS63YBT5js.DEFAULT_SKILL_AGENTS, knownProbes) {
|
|
1584
1584
|
const commands = [];
|
|
1585
1585
|
const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
|
|
1586
1586
|
if (probes.bunx === "available") {
|
|
@@ -1722,7 +1722,7 @@ function runLegacySkillsCleanup(agents) {
|
|
|
1722
1722
|
}
|
|
1723
1723
|
}
|
|
1724
1724
|
function writeSdkSkillsStatusLine(line) {
|
|
1725
|
-
const progress =
|
|
1725
|
+
const progress = _chunkPVA3MWCOjs.getActiveCliProgress.call(void 0, );
|
|
1726
1726
|
if (progress) {
|
|
1727
1727
|
progress.writeLine(line);
|
|
1728
1728
|
return;
|
|
@@ -1732,11 +1732,11 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1732
1732
|
}
|
|
1733
1733
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1734
1734
|
if (shouldSkipSkillsSync()) return;
|
|
1735
|
-
const usingPluginSkills =
|
|
1735
|
+
const usingPluginSkills = _chunkHS63YBT5js.hasActivePluginSkills.call(void 0, );
|
|
1736
1736
|
if (usingPluginSkills) {
|
|
1737
1737
|
return;
|
|
1738
1738
|
}
|
|
1739
|
-
const agents =
|
|
1739
|
+
const agents = _chunkHS63YBT5js.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1740
1740
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1741
1741
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1742
1742
|
}
|
|
@@ -1764,7 +1764,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1764
1764
|
return;
|
|
1765
1765
|
}
|
|
1766
1766
|
try {
|
|
1767
|
-
const localVersion =
|
|
1767
|
+
const localVersion = _chunkHS63YBT5js.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1768
1768
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1769
1769
|
needsUpdate: options.update.needs_update,
|
|
1770
1770
|
remoteVersion: options.update.remote.version
|
|
@@ -1930,7 +1930,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1930
1930
|
}
|
|
1931
1931
|
}
|
|
1932
1932
|
runLegacySkillsCleanup(agents);
|
|
1933
|
-
if (!
|
|
1933
|
+
if (!_chunkHS63YBT5js.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
1934
1934
|
notice(
|
|
1935
1935
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
1936
1936
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GIHNEYBG.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_SKILL_AGENTS,
|
|
6
6
|
KNOWN_SKILL_AGENTS,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
sdkCliStateDirPath,
|
|
13
13
|
skillsAgentPathSegment,
|
|
14
14
|
writeSdkSkillsLocalVersion
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-L3TZV625.mjs";
|
|
16
16
|
import {
|
|
17
17
|
SDK_API_CONTRACT,
|
|
18
18
|
SDK_API_MAJOR,
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
agentSessionIdFromEnvironment,
|
|
21
21
|
deploymentProtectionHeaders,
|
|
22
22
|
detectAgentRuntime
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-KPBBT6OS.mjs";
|
|
24
24
|
import {
|
|
25
25
|
DeeplineError
|
|
26
26
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
27
27
|
import {
|
|
28
28
|
SDK_RELEASE
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-7HEDCIR3.mjs";
|
|
30
30
|
|
|
31
31
|
// src/compat.ts
|
|
32
32
|
import { randomUUID } from "crypto";
|