deepline 0.3.502 → 0.3.504
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/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/http-error-response.ts +35 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-public-aliases.ts +13 -0
- package/dist/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 +18 -0
- 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/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/protocol.ts +4 -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 +38 -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-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 +1432 -157
- 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/cli/{auth-EFHLOVG4.mjs → auth-3L5AA5AX.mjs} +5 -5
- package/dist/cli/auth-UPK4IIIN.js +43 -0
- package/dist/cli/{billing-Q5XKEYPP.mjs → billing-E7EASVPO.mjs} +19 -12
- package/dist/cli/{billing-SKT2VE34.js → billing-HOGXVE2V.js} +92 -85
- package/dist/cli/{chunk-L5CTJY74.mjs → chunk-22OCKCYS.mjs} +2 -2
- package/dist/cli/{chunk-YWOQYYYS.mjs → chunk-2ABRDH3B.mjs} +2 -2
- package/dist/cli/{chunk-IL666WJE.js → chunk-2W77YCKH.js} +5 -5
- package/dist/cli/{chunk-2MVIS2UI.mjs → chunk-3MLFFWDM.mjs} +2 -2
- package/dist/cli/{chunk-HMZF2CSP.mjs → chunk-4CC67XH5.mjs} +2 -2
- package/dist/cli/{chunk-NXVYLX3F.mjs → chunk-5CHBIJIM.mjs} +10 -6
- package/dist/cli/chunk-5LUF4LAR.mjs +209 -0
- package/dist/cli/{chunk-JL6H4H3G.js → chunk-5Z6EULD5.js} +6 -6
- package/dist/cli/{chunk-32YQBJON.js → chunk-67OI26OE.js} +7 -7
- package/dist/cli/{chunk-LA3UYRVZ.js → chunk-6JNBMTCZ.js} +1 -1
- package/dist/cli/{chunk-DYHTXGLX.js → chunk-6SMR7LU7.js} +2 -2
- package/dist/cli/{chunk-OFBLT2LQ.mjs → chunk-7F4OEHQK.mjs} +1 -1
- package/dist/cli/{chunk-DRBD4IYQ.mjs → chunk-7MJYZ33I.mjs} +2 -6
- package/dist/cli/{chunk-UOANF3DR.js → chunk-7P2QVMBP.js} +26 -7
- package/dist/cli/{chunk-GINKIZ7S.js → chunk-A6LA42JY.js} +16 -16
- package/dist/cli/{chunk-FVM4PS5Q.js → chunk-BN5VKY4X.js} +25 -12
- package/dist/cli/{chunk-Z2H7OQ6E.mjs → chunk-BTWUNKKX.mjs} +2 -2
- package/dist/cli/{chunk-R5F7JXT4.mjs → chunk-BX45XMXZ.mjs} +2 -2
- package/dist/cli/{chunk-NKLM4J4X.mjs → chunk-DEAJVQEG.mjs} +1 -1
- package/dist/cli/{chunk-JFBJLNBI.js → chunk-FISP4LCK.js} +53 -53
- package/dist/cli/{chunk-OEUMXKR5.js → chunk-FTRVCIGC.js} +26 -26
- package/dist/cli/{chunk-YL2CCF6T.mjs → chunk-GGBXNQCR.mjs} +4 -4
- package/dist/cli/{chunk-YPTZJ7LO.js → chunk-GJ2DA35C.js} +100 -17
- package/dist/cli/{chunk-2S2F6YSI.js → chunk-GRAGUYIE.js} +41 -41
- package/dist/cli/{chunk-2JS3H6H6.mjs → chunk-HUX5DZO6.mjs} +3 -3
- package/dist/cli/{chunk-4CCMD7QM.mjs → chunk-IGNQKOWT.mjs} +32 -15
- package/dist/cli/{chunk-WKFAX2K7.js → chunk-IPAMOMGP.js} +21 -21
- package/dist/cli/{chunk-SAW3FBCA.mjs → chunk-ITJ7NB2D.mjs} +6 -0
- package/dist/cli/{chunk-Q3NM6ZL3.js → chunk-JPR2546F.js} +23 -21
- package/dist/cli/{chunk-X5MGQ7UT.js → chunk-KCKAFTPY.js} +10 -10
- package/dist/cli/{chunk-TAK3MVXY.js → chunk-KGUGNEKL.js} +284 -267
- package/dist/cli/{chunk-OVZOMSH2.js → chunk-LHXYCZYO.js} +8 -8
- package/dist/cli/{chunk-QOJBRCAS.js → chunk-MJTK6Q3G.js} +3 -3
- package/dist/cli/{chunk-MYUISF3P.mjs → chunk-MLMWM5DV.mjs} +5 -5
- package/dist/cli/{chunk-JO5FFSR7.js → chunk-NTLBZUHD.js} +6 -0
- package/dist/cli/{chunk-MP5QY4A2.mjs → chunk-NZ7Z7WNM.mjs} +2 -2
- package/dist/cli/{chunk-HIVRCTDR.mjs → chunk-OX2D6BG4.mjs} +20 -1
- package/dist/cli/{chunk-YDXEXVBV.js → chunk-QKKU2FH4.js} +7 -7
- package/dist/cli/{chunk-3KEZVGGV.mjs → chunk-QOLX2O2S.mjs} +4 -4
- package/dist/cli/{chunk-JFUXUSKB.mjs → chunk-R2VZVHJP.mjs} +15 -2
- package/dist/cli/chunk-R7J7CJPZ.js +209 -0
- package/dist/cli/{chunk-XMKUJ44Z.js → chunk-SMSQVRHE.js} +5 -5
- package/dist/cli/{chunk-54QXWK3C.mjs → chunk-SVFTZTCI.mjs} +1 -1
- package/dist/cli/{chunk-FWDAEWCD.js → chunk-TMQUMILM.js} +19 -23
- package/dist/cli/{chunk-TFFJ2PRN.mjs → chunk-UFYJTRSF.mjs} +98 -15
- package/dist/cli/{chunk-EUWRKWT4.js → chunk-UJMBG5JU.js} +5 -4
- package/dist/cli/{chunk-DKAMCJIT.js → chunk-USTJEEND.js} +17 -13
- package/dist/cli/{chunk-AJL2Q6IQ.js → chunk-UXQQPMYO.js} +2 -2
- package/dist/cli/{chunk-7ZYSXSJJ.mjs → chunk-VJVJWZ6I.mjs} +5 -5
- package/dist/cli/{chunk-JLYDLK6X.js → chunk-WBIDPDKJ.js} +3 -3
- package/dist/cli/{chunk-QNELA7SX.js → chunk-WZSFIJMG.js} +53 -53
- package/dist/cli/{chunk-NZXB27TP.mjs → chunk-XHZSPMNC.mjs} +4 -4
- package/dist/cli/{chunk-W5CHE5Q2.mjs → chunk-Y6XKCEPK.mjs} +1 -1
- package/dist/cli/{chunk-4WTC5SSN.mjs → chunk-Y7VEHKID.mjs} +10 -8
- package/dist/cli/{chunk-3MJSWVQ2.mjs → chunk-YOQ2NNDO.mjs} +2 -1
- package/dist/cli/{chunk-ZNB6GR3P.mjs → chunk-Z6FXUDIL.mjs} +1 -1
- package/dist/cli/command-docs.d.mts +2 -1
- package/dist/cli/command-docs.d.ts +2 -1
- package/dist/cli/command-docs.js +6 -2
- package/dist/cli/command-docs.mjs +5 -1
- package/dist/cli/{csv-OXGSCV75.js → csv-2XWGPITO.js} +13 -13
- package/dist/cli/{csv-6AEPKKCO.mjs → csv-433JEHLQ.mjs} +4 -4
- package/dist/cli/{db-K3KRK4CZ.mjs → db-K747DH43.mjs} +6 -6
- package/dist/cli/{db-6NVHDUZY.js → db-PJJMD4VH.js} +27 -27
- package/dist/cli/describe-OYS7LZJD.js +49 -0
- package/dist/cli/{describe-P3ZJS7TQ.mjs → describe-VEDDYW4P.mjs} +20 -20
- 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 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-2C2FFG52.js → executions-HM5T72H6.js} +8 -8
- package/dist/cli/{executions-I7XW6WWK.mjs → executions-JWRX3XCT.mjs} +6 -6
- package/dist/cli/{feedback-47B57A5Y.js → feedback-34UG4BO3.js} +8 -8
- package/dist/cli/{feedback-RSTNBJAI.mjs → feedback-MNSIA63Y.mjs} +4 -4
- package/dist/cli/git-5YQJSJFR.js +25 -0
- package/dist/cli/{git-3G5AFKBT.mjs → git-ZKEOXV3A.mjs} +5 -5
- package/dist/cli/index.js +144 -142
- package/dist/cli/index.mjs +44 -42
- package/dist/cli/{legacy-noops-NQ262TKL.mjs → legacy-noops-5M4T4ZVT.mjs} +5 -5
- package/dist/cli/{legacy-noops-P665PBG4.js → legacy-noops-YXSI4FVU.js} +8 -8
- package/dist/cli/{monitors-KUPZODZS.mjs → monitors-C65OC4AW.mjs} +7 -7
- package/dist/cli/{monitors-IPWAD7LS.js → monitors-O25GDOYE.js} +95 -95
- package/dist/cli/{org-WFC3N672.js → org-2GSPLY2A.js} +72 -72
- package/dist/cli/{org-ZCQGEM3L.mjs → org-ZRMG5NS2.mjs} +6 -6
- package/dist/cli/{pages-N5BNC67L.js → pages-45DPADK6.js} +18 -18
- package/dist/cli/{pages-VE66IU7B.mjs → pages-TZZUFBRO.mjs} +6 -6
- package/dist/cli/{play-EIMDIAJB.mjs → play-3D7HH273.mjs} +138 -226
- package/dist/cli/{play-NKIRJSKX.js → play-RCGMND6X.js} +454 -542
- package/dist/cli/{providers-XU3AGY2F.js → providers-3N3ECMTY.js} +9 -9
- package/dist/cli/{providers-KDTJ63ED.mjs → providers-PSAKV6CJ.mjs} +6 -6
- package/dist/cli/{quickstart-TXFXUODF.mjs → quickstart-2A35SMGC.mjs} +4 -4
- package/dist/cli/{quickstart-OSCHOSXU.js → quickstart-6R6AIXM6.js} +6 -6
- package/dist/cli/{run-ODGML35U.mjs → run-F3TLDGUO.mjs} +25 -25
- package/dist/cli/{run-ET2KVTPK.js → run-F6ZXTASZ.js} +44 -44
- package/dist/cli/{search-DK67K6PR.mjs → search-CZLCY3D2.mjs} +7 -7
- package/dist/cli/search-R5VEWJO2.js +32 -0
- package/dist/cli/{search-output-6SOKQTCW.mjs → search-output-MQTSTLN5.mjs} +5 -5
- package/dist/cli/{search-output-KXP4FA62.js → search-output-R5XDNILW.js} +7 -7
- package/dist/cli/{secrets-C6SYTMU7.mjs → secrets-D3GF4B2Z.mjs} +6 -6
- package/dist/cli/{secrets-WPS6NMNK.js → secrets-DCJYHDSY.js} +15 -15
- package/dist/cli/{sessions-PXVOH34X.mjs → sessions-QGEQ2UYZ.mjs} +5 -5
- package/dist/cli/{sessions-IP562J5Z.js → sessions-Z4JYJSDP.js} +6 -6
- package/dist/cli/{settings-FBUQGYVJ.mjs → settings-G7QEXA4N.mjs} +11 -11
- package/dist/cli/{settings-SUDUIVMY.js → settings-UVXXAT4A.js} +78 -78
- package/dist/cli/{setup-I5H6IOEY.js → setup-5I42W7D4.js} +49 -49
- package/dist/cli/{setup-JSIMTR73.mjs → setup-QHJU3DUI.mjs} +9 -9
- package/dist/cli/{skills-FJQ3LX6N.mjs → skills-5LRF4UKX.mjs} +7 -7
- package/dist/cli/skills-FB6TV52O.js +36 -0
- package/dist/cli/tools-L2364RPA.js +56 -0
- package/dist/cli/{tools-IGBK4BVE.mjs → tools-PUT6STVG.mjs} +18 -18
- package/dist/cli/{update-7MTT6F5K.mjs → update-CJ2GA64X.mjs} +9 -9
- package/dist/cli/update-ESYJGYVZ.js +34 -0
- package/dist/cli/{workflow-PM2J2OU3.mjs → workflow-HVEWRTXD.mjs} +7 -7
- package/dist/cli/{workflow-UX3ZX6BQ.js → workflow-O67MEBCP.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.mts → compiler-manifest-DaJrA2KV.d.mts} +1 -1
- package/dist/{compiler-manifest-DlXDyndN.d.ts → 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 +125 -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 +12 -5
- 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-VM3IKP5F.js +0 -43
- package/dist/cli/describe-JOUAXXPE.js +0 -49
- package/dist/cli/git-OPKIC6JQ.js +0 -25
- package/dist/cli/search-6U54Y3OK.js +0 -32
- package/dist/cli/skills-VHININXC.js +0 -36
- package/dist/cli/tools-XMBMHVKF.js +0 -56
- package/dist/cli/update-H7JVW43I.js +0 -34
|
@@ -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 _chunkMJTK6Q3Gjs = require('./chunk-MJTK6Q3G.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ var _chunkQOJBRCASjs = require('./chunk-QOJBRCAS.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkWBIDPDKJjs = require('./chunk-WBIDPDKJ.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -20,13 +20,13 @@ var _chunkJLYDLK6Xjs = require('./chunk-JLYDLK6X.js');
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkUJMBG5JUjs = require('./chunk-UJMBG5JU.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunk6JNBMTCZjs = require('./chunk-6JNBMTCZ.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, _chunkWBIDPDKJjs.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: _chunkUJMBG5JUjs.SDK_VERSION,
|
|
73
|
+
apiContract: _chunkUJMBG5JUjs.SDK_API_CONTRACT,
|
|
74
|
+
apiMajor: _chunkUJMBG5JUjs.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: _chunkUJMBG5JUjs.SDK_VERSION,
|
|
83
|
+
apiContract: _chunkUJMBG5JUjs.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, _chunkWBIDPDKJjs.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", _chunkUJMBG5JUjs.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(_chunk6JNBMTCZjs.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
|
+
..._chunkUJMBG5JUjs.deploymentProtectionHeaders.call(void 0, ),
|
|
216
|
+
"User-Agent": `deepline-ts-sdk/${_chunkUJMBG5JUjs.SDK_VERSION}`,
|
|
217
|
+
"X-Deepline-SDK-Version": _chunkUJMBG5JUjs.SDK_VERSION,
|
|
218
|
+
"X-Deepline-API-Major": String(_chunkUJMBG5JUjs.SDK_API_MAJOR),
|
|
219
|
+
"X-Deepline-API-Contract": _chunkUJMBG5JUjs.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 ${_chunkWBIDPDKJjs.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: _chunkUJMBG5JUjs.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 = _chunkUJMBG5JUjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
457
457
|
return {
|
|
458
|
-
...
|
|
458
|
+
..._chunkUJMBG5JUjs.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/${_chunkUJMBG5JUjs.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": _chunkUJMBG5JUjs.detectAgentRuntime.call(void 0, ),
|
|
466
|
+
"X-Deepline-CLI-Version": _chunkUJMBG5JUjs.SDK_VERSION,
|
|
467
|
+
"X-Deepline-SDK-Version": _chunkUJMBG5JUjs.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 = _chunkWBIDPDKJjs.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: _chunkUJMBG5JUjs.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: _chunkUJMBG5JUjs.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 = _chunkWBIDPDKJjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
663
|
+
const apiKey = _chunkWBIDPDKJjs.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, () => ( _chunkWBIDPDKJjs.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 (_chunkUJMBG5JUjs.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, _chunkWBIDPDKJjs.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 = _chunkWBIDPDKJjs.skillsAgentPathSegment;
|
|
887
887
|
function sortedLeaseAgents(agents) {
|
|
888
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
888
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunkWBIDPDKJjs.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
|
+
_chunkWBIDPDKJjs.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 ${_chunkWBIDPDKJjs.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
|
+
_chunkWBIDPDKJjs.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() || _chunkWBIDPDKJjs.hasActivePluginSkills.call(void 0, )) return;
|
|
1172
|
+
const agents = _chunkWBIDPDKJjs.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
|
+
_chunkWBIDPDKJjs.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, _chunkWBIDPDKJjs.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 === _chunkWBIDPDKJjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkWBIDPDKJjs.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: _chunkUJMBG5JUjs.SDK_VERSION },
|
|
1463
1463
|
skills: {
|
|
1464
1464
|
version: localVersion,
|
|
1465
|
-
capability:
|
|
1465
|
+
capability: _chunk6JNBMTCZjs.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
|
+
_chunkWBIDPDKJjs.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 = _chunkWBIDPDKJjs.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 = _chunkMJTK6Q3Gjs.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 = _chunkWBIDPDKJjs.hasActivePluginSkills.call(void 0, );
|
|
1736
1736
|
if (usingPluginSkills) {
|
|
1737
1737
|
return;
|
|
1738
1738
|
}
|
|
1739
|
-
const agents =
|
|
1739
|
+
const agents = _chunkWBIDPDKJjs.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 = _chunkWBIDPDKJjs.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 (!_chunkWBIDPDKJjs.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-DEAJVQEG.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-Y6XKCEPK.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-YOQ2NNDO.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-7F4OEHQK.mjs";
|
|
30
30
|
|
|
31
31
|
// src/compat.ts
|
|
32
32
|
import { randomUUID } from "crypto";
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seedToolListScript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IGNQKOWT.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addDescribeOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-22OCKCYS.mjs";
|
|
7
7
|
import {
|
|
8
8
|
describeLookupsFor,
|
|
9
9
|
describeName,
|
|
10
10
|
findNamed
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7MJYZ33I.mjs";
|
|
12
12
|
import {
|
|
13
13
|
SCHEMA_LINE_LIMIT
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ITJ7NB2D.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineClient
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2ABRDH3B.mjs";
|
|
18
18
|
import {
|
|
19
19
|
failureReportHeaders,
|
|
20
20
|
isFailureReportingDisabled
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XHZSPMNC.mjs";
|
|
22
22
|
import {
|
|
23
23
|
printCommandEnvelope
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-3MLFFWDM.mjs";
|
|
25
25
|
import {
|
|
26
26
|
autoDetectBaseUrl,
|
|
27
27
|
resolveApiKeyForBaseUrl
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-Y6XKCEPK.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/describe.ts
|
|
31
31
|
import { writeFileSync } from "fs";
|
|
@@ -120,6 +120,8 @@ When a name is taken twice:
|
|
|
120
120
|
What it prints:
|
|
121
121
|
The same sections for every kind: what it is, cost, inputs, outputs, then
|
|
122
122
|
an example of running it from the CLI and from inside a play.
|
|
123
|
+
Tools missing provider credentials show the connection step, including the
|
|
124
|
+
dashboard link and command when available.
|
|
123
125
|
|
|
124
126
|
Examples in the output:
|
|
125
127
|
(default) required inputs filled in, first output read
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
17
17
|
import {
|
|
18
18
|
SDK_RELEASE
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-7F4OEHQK.mjs";
|
|
20
20
|
|
|
21
21
|
// src/version.ts
|
|
22
22
|
var SDK_VERSION = SDK_RELEASE.version;
|
|
@@ -130,6 +130,7 @@ import { createHash } from "crypto";
|
|
|
130
130
|
var PLAY_RUNTIME_TEST_FAULT_HEADER = "x-deepline-test-fault";
|
|
131
131
|
var MAX_RUNTIME_TEST_POLICY_MS = 10 * 6e4;
|
|
132
132
|
var MAX_RUNNER_HEARTBEAT_SILENCE_MS = 10 * 6e4;
|
|
133
|
+
var FENCE_COMMIT_ABANDON_MAX_MS = 10 * 6e4;
|
|
133
134
|
|
|
134
135
|
// ../integration-contracts/execute-retry-contract.ts
|
|
135
136
|
var EXECUTE_RETRY_POLICY_HEADER = "x-deepline-execute-retry-policy";
|
|
@@ -32,6 +32,7 @@ type CommandDoc = {
|
|
|
32
32
|
rolloutFeature?: string;
|
|
33
33
|
};
|
|
34
34
|
type HelpDetail = 'quiet' | 'core' | 'verbose';
|
|
35
|
+
declare const PLAY_RUNTIME_PRICING_NOTE: string;
|
|
35
36
|
declare const COMMAND_DOCS: Record<string, CommandDoc>;
|
|
36
37
|
/** The command path (without the program name) for a commander command. */
|
|
37
38
|
declare function commandDocKey(command: {
|
|
@@ -75,4 +76,4 @@ declare function renderDocText(text: string, surface: DocSurface): string;
|
|
|
75
76
|
/** One command's explanation for one surface; '' when it has no entry. */
|
|
76
77
|
declare function renderActionExplanation(key: string, detail: Exclude<HelpDetail, 'quiet'>, surface: DocSurface): string;
|
|
77
78
|
|
|
78
|
-
export { CLI_DOC_SURFACE, COMMAND_DOCS, type CommandDoc, type DocSurface, type HelpDetail, commandDocKey, helpDetailFromArgv, renderActionExplanation, renderCommandExplanation, renderDocText };
|
|
79
|
+
export { CLI_DOC_SURFACE, COMMAND_DOCS, type CommandDoc, type DocSurface, type HelpDetail, PLAY_RUNTIME_PRICING_NOTE, commandDocKey, helpDetailFromArgv, renderActionExplanation, renderCommandExplanation, renderDocText };
|
|
@@ -32,6 +32,7 @@ type CommandDoc = {
|
|
|
32
32
|
rolloutFeature?: string;
|
|
33
33
|
};
|
|
34
34
|
type HelpDetail = 'quiet' | 'core' | 'verbose';
|
|
35
|
+
declare const PLAY_RUNTIME_PRICING_NOTE: string;
|
|
35
36
|
declare const COMMAND_DOCS: Record<string, CommandDoc>;
|
|
36
37
|
/** The command path (without the program name) for a commander command. */
|
|
37
38
|
declare function commandDocKey(command: {
|
|
@@ -75,4 +76,4 @@ declare function renderDocText(text: string, surface: DocSurface): string;
|
|
|
75
76
|
/** One command's explanation for one surface; '' when it has no entry. */
|
|
76
77
|
declare function renderActionExplanation(key: string, detail: Exclude<HelpDetail, 'quiet'>, surface: DocSurface): string;
|
|
77
78
|
|
|
78
|
-
export { CLI_DOC_SURFACE, COMMAND_DOCS, type CommandDoc, type DocSurface, type HelpDetail, commandDocKey, helpDetailFromArgv, renderActionExplanation, renderCommandExplanation, renderDocText };
|
|
79
|
+
export { CLI_DOC_SURFACE, COMMAND_DOCS, type CommandDoc, type DocSurface, type HelpDetail, PLAY_RUNTIME_PRICING_NOTE, commandDocKey, helpDetailFromArgv, renderActionExplanation, renderCommandExplanation, renderDocText };
|
package/dist/cli/command-docs.js
CHANGED
|
@@ -6,7 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
|
|
10
|
+
var _chunkGJ2DA35Cjs = require('./chunk-GJ2DA35C.js');
|
|
11
|
+
require('./chunk-R7J7CJPZ.js');
|
|
12
|
+
require('./chunk-YGCKMI5P.js');
|
|
10
13
|
require('./chunk-COGTRVWW.js');
|
|
11
14
|
|
|
12
15
|
|
|
@@ -16,4 +19,5 @@ require('./chunk-COGTRVWW.js');
|
|
|
16
19
|
|
|
17
20
|
|
|
18
21
|
|
|
19
|
-
|
|
22
|
+
|
|
23
|
+
exports.CLI_DOC_SURFACE = _chunkGJ2DA35Cjs.CLI_DOC_SURFACE; exports.COMMAND_DOCS = _chunkGJ2DA35Cjs.COMMAND_DOCS; exports.PLAY_RUNTIME_PRICING_NOTE = _chunkGJ2DA35Cjs.PLAY_RUNTIME_PRICING_NOTE; exports.commandDocKey = _chunkGJ2DA35Cjs.commandDocKey; exports.helpDetailFromArgv = _chunkGJ2DA35Cjs.helpDetailFromArgv; exports.renderActionExplanation = _chunkGJ2DA35Cjs.renderActionExplanation; exports.renderCommandExplanation = _chunkGJ2DA35Cjs.renderCommandExplanation; exports.renderDocText = _chunkGJ2DA35Cjs.renderDocText;
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CLI_DOC_SURFACE,
|
|
3
3
|
COMMAND_DOCS,
|
|
4
|
+
PLAY_RUNTIME_PRICING_NOTE,
|
|
4
5
|
commandDocKey,
|
|
5
6
|
helpDetailFromArgv,
|
|
6
7
|
renderActionExplanation,
|
|
7
8
|
renderCommandExplanation,
|
|
8
9
|
renderDocText
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UFYJTRSF.mjs";
|
|
11
|
+
import "./chunk-5LUF4LAR.mjs";
|
|
12
|
+
import "./chunk-7I4B6V2S.mjs";
|
|
10
13
|
import "./chunk-KRD6H754.mjs";
|
|
11
14
|
export {
|
|
12
15
|
CLI_DOC_SURFACE,
|
|
13
16
|
COMMAND_DOCS,
|
|
17
|
+
PLAY_RUNTIME_PRICING_NOTE,
|
|
14
18
|
commandDocKey,
|
|
15
19
|
helpDetailFromArgv,
|
|
16
20
|
renderActionExplanation,
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
7
|
+
var _chunkQKKU2FH4js = require('./chunk-QKKU2FH4.js');
|
|
8
|
+
require('./chunk-WBIDPDKJ.js');
|
|
9
|
+
require('./chunk-UJMBG5JU.js');
|
|
10
10
|
require('./chunk-ALJJRZNJ.js');
|
|
11
11
|
require('./chunk-XNYIZMNQ.js');
|
|
12
12
|
require('./chunk-DIAWYWT5.js');
|
|
13
|
-
require('./chunk-
|
|
13
|
+
require('./chunk-6JNBMTCZ.js');
|
|
14
14
|
require('./chunk-OG64RBAC.js');
|
|
15
15
|
require('./chunk-COGTRVWW.js');
|
|
16
16
|
|
|
@@ -128,7 +128,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
128
128
|
column.length,
|
|
129
129
|
...rows.map((row) => {
|
|
130
130
|
const value = _nullishCoalesce(row[column], () => ( ""));
|
|
131
|
-
return (verbose ? value :
|
|
131
|
+
return (verbose ? value : _chunkQKKU2FH4js.clip.call(void 0, value, 42)).length;
|
|
132
132
|
})
|
|
133
133
|
)
|
|
134
134
|
])
|
|
@@ -138,7 +138,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
138
138
|
const body = rows.map(
|
|
139
139
|
(row) => columns.map((column) => {
|
|
140
140
|
const raw = _nullishCoalesce(row[column], () => ( ""));
|
|
141
|
-
const display = verbose ? raw :
|
|
141
|
+
const display = verbose ? raw : _chunkQKKU2FH4js.clip.call(void 0, raw, 42);
|
|
142
142
|
return display.padEnd(widths[column]);
|
|
143
143
|
}).join(" | ")
|
|
144
144
|
);
|
|
@@ -158,7 +158,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
158
158
|
{ exitCode: 2 }
|
|
159
159
|
);
|
|
160
160
|
}
|
|
161
|
-
const allRows =
|
|
161
|
+
const allRows = _chunkQKKU2FH4js.readCsvRows.call(void 0, csvPath);
|
|
162
162
|
const [rowStart, rowEnd] = parseRowRange(options.rows);
|
|
163
163
|
const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
|
|
164
164
|
const { rows: selected, columns } = selectColumns(
|
|
@@ -171,7 +171,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
171
171
|
if (options.summary) {
|
|
172
172
|
const summaries = summarizeColumns(selected, columns);
|
|
173
173
|
if (format === "json") {
|
|
174
|
-
|
|
174
|
+
_chunkQKKU2FH4js.printJson.call(void 0, {
|
|
175
175
|
rows: summaries,
|
|
176
176
|
total_rows: selected.length,
|
|
177
177
|
source_total_rows: allRows.length
|
|
@@ -180,7 +180,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
180
180
|
}
|
|
181
181
|
const displayRows = summaryDisplayRows(summaries);
|
|
182
182
|
if (format === "csv") {
|
|
183
|
-
process.stdout.write(
|
|
183
|
+
process.stdout.write(_chunkQKKU2FH4js.csvStringFromRows.call(void 0, displayRows));
|
|
184
184
|
return;
|
|
185
185
|
}
|
|
186
186
|
process.stdout.write(
|
|
@@ -195,7 +195,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
195
195
|
return;
|
|
196
196
|
}
|
|
197
197
|
if (format === "json") {
|
|
198
|
-
|
|
198
|
+
_chunkQKKU2FH4js.printJson.call(void 0, {
|
|
199
199
|
rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
|
|
200
200
|
});
|
|
201
201
|
return;
|
|
@@ -438,7 +438,7 @@ async function handleCsvRenderStart(options) {
|
|
|
438
438
|
if (log) {
|
|
439
439
|
detail = `
|
|
440
440
|
CSV render log:
|
|
441
|
-
${
|
|
441
|
+
${_chunkQKKU2FH4js.clip.call(void 0, log, 2e3)}`;
|
|
442
442
|
}
|
|
443
443
|
} catch (e7) {
|
|
444
444
|
}
|
|
@@ -489,7 +489,7 @@ async function handleCsvRenderStatus(options) {
|
|
|
489
489
|
if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
|
|
490
490
|
if (payload.url) lines.push(`Render URL: ${payload.url}`);
|
|
491
491
|
lines.push(`Render Health: ${payload.health_status}`);
|
|
492
|
-
|
|
492
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0, payload, {
|
|
493
493
|
json: options.json,
|
|
494
494
|
text: `${lines.join("\n")}
|
|
495
495
|
`
|
|
@@ -525,7 +525,7 @@ async function handleCsvRenderStop(options) {
|
|
|
525
525
|
};
|
|
526
526
|
const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
|
|
527
527
|
` : "No running CSV render process found.\n";
|
|
528
|
-
|
|
528
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
529
529
|
}
|
|
530
530
|
async function handleCsvRender(action, options) {
|
|
531
531
|
const normalized = _nullishCoalesce(action, () => ( "start"));
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
printCommandEnvelope,
|
|
5
5
|
printJson,
|
|
6
6
|
readCsvRows
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-3MLFFWDM.mjs";
|
|
8
|
+
import "./chunk-Y6XKCEPK.mjs";
|
|
9
|
+
import "./chunk-YOQ2NNDO.mjs";
|
|
10
10
|
import "./chunk-4QF2K7TM.mjs";
|
|
11
11
|
import "./chunk-DLIRSHV6.mjs";
|
|
12
12
|
import "./chunk-HBL4PM5Q.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-7F4OEHQK.mjs";
|
|
14
14
|
import "./chunk-WZYKRD7T.mjs";
|
|
15
15
|
import "./chunk-KRD6H754.mjs";
|
|
16
16
|
|