deepline 0.3.500 → 0.3.502
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/plays/client-core.ts +45 -7
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +20 -2
- package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +155 -0
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +7 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +2 -1
- 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-invocation-fence.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +54 -1
- package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +12 -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 +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-identity.ts +56 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +53 -10
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-heartbeat.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-progress-push.ts +1 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-terminal-push.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +9 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +31 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +74 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-runtime-watchdog.ts +226 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api-paths.ts +41 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +5 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-app-transport.ts +374 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +5 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-environment.ts +49 -9
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-oidc.ts +55 -11
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-profile.ts +12 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-sandbox-credential.ts +338 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-staging.ts +417 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +15 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +184 -11
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +17 -3
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/gateway-progress-registry.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +18 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +198 -20
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-gateway-attempt.ts +81 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-gateway-staging-journal.ts +708 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-gateway-staging-teardown.ts +160 -0
- package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +4 -0
- package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +2 -0
- package/dist/cli/{auth-WK3FDPRP.mjs → auth-EFHLOVG4.mjs} +5 -5
- package/dist/cli/auth-VM3IKP5F.js +43 -0
- package/dist/cli/{billing-O3LVKXE7.mjs → billing-Q5XKEYPP.mjs} +8 -8
- package/dist/cli/{billing-K7UHZUF4.js → billing-SKT2VE34.js} +81 -81
- package/dist/cli/{chunk-4CJWOLOS.mjs → chunk-2JS3H6H6.mjs} +3 -3
- package/dist/cli/{chunk-CIV5GJAE.mjs → chunk-2MVIS2UI.mjs} +2 -2
- package/dist/cli/{chunk-LNMY2T5S.js → chunk-2S2F6YSI.js} +41 -41
- package/dist/cli/{chunk-RAZ3TMOS.js → chunk-32YQBJON.js} +7 -7
- package/dist/cli/{chunk-JHNFUCVT.mjs → chunk-3KEZVGGV.mjs} +4 -4
- package/dist/cli/{chunk-5JXGYSXH.mjs → chunk-3MJSWVQ2.mjs} +1 -1
- package/dist/cli/{chunk-5TVY5OEH.mjs → chunk-4CCMD7QM.mjs} +21 -20
- package/dist/cli/{chunk-T4AGTOKQ.mjs → chunk-4WTC5SSN.mjs} +7 -7
- package/dist/cli/{chunk-XCBOOB73.mjs → chunk-54QXWK3C.mjs} +1 -1
- package/dist/cli/{chunk-5AC7NUQN.mjs → chunk-7ZYSXSJJ.mjs} +5 -5
- package/dist/cli/{chunk-PHGMC33I.js → chunk-AJL2Q6IQ.js} +2 -2
- package/dist/cli/{chunk-UBKA33KY.mjs → chunk-BMCRTI6Z.mjs} +22 -1
- package/dist/cli/{chunk-74VKLBJD.js → chunk-DKAMCJIT.js} +14 -14
- package/dist/cli/{chunk-C5R3UH5V.mjs → chunk-DRBD4IYQ.mjs} +1 -1
- package/dist/cli/{chunk-Z5LE7NXM.js → chunk-DYHTXGLX.js} +2 -2
- package/dist/cli/{chunk-TOGCDNMH.js → chunk-EUWRKWT4.js} +4 -4
- package/dist/cli/{chunk-GBICEYUA.js → chunk-FVM4PS5Q.js} +116 -8
- package/dist/cli/{chunk-I42EOZKQ.js → chunk-FWDAEWCD.js} +5 -5
- package/dist/cli/{chunk-GOO4VI5M.js → chunk-GINKIZ7S.js} +16 -16
- package/dist/cli/{chunk-56QAHX2K.mjs → chunk-HIVRCTDR.mjs} +90 -30
- package/dist/cli/{chunk-XUOZYAP5.mjs → chunk-HMZF2CSP.mjs} +2 -2
- package/dist/cli/{chunk-5KAZGZG7.js → chunk-IL666WJE.js} +5 -5
- package/dist/cli/{chunk-G3NA4R7M.js → chunk-JFBJLNBI.js} +53 -53
- package/dist/cli/{chunk-KSHAFYYG.mjs → chunk-JFUXUSKB.mjs} +112 -4
- package/dist/cli/{chunk-RHE4YI4H.js → chunk-JL6H4H3G.js} +6 -6
- package/dist/cli/{chunk-K3BHKRMS.js → chunk-JLYDLK6X.js} +3 -3
- package/dist/cli/{chunk-QRKCCY4L.mjs → chunk-L5CTJY74.mjs} +1 -1
- package/dist/cli/{chunk-W64Y7GE7.js → chunk-LA3UYRVZ.js} +1 -1
- package/dist/cli/{chunk-HI2BFS5S.mjs → chunk-MP5QY4A2.mjs} +2 -2
- package/dist/cli/{chunk-V7MZYIA7.mjs → chunk-MYUISF3P.mjs} +5 -5
- package/dist/cli/{chunk-CS2AEAD6.mjs → chunk-N4TR6QRI.mjs} +1 -1
- package/dist/cli/{chunk-C7355NMU.mjs → chunk-NKLM4J4X.mjs} +1 -1
- package/dist/cli/{chunk-FJZUG633.mjs → chunk-NXVYLX3F.mjs} +3 -3
- package/dist/cli/{chunk-L7X6ADNM.mjs → chunk-NZXB27TP.mjs} +4 -4
- package/dist/cli/{chunk-VLCY4F6E.js → chunk-OEUMXKR5.js} +26 -26
- package/dist/cli/{chunk-SRS2D27G.mjs → chunk-OFBLT2LQ.mjs} +1 -1
- package/dist/cli/{chunk-SNPZ2QWL.js → chunk-OVZOMSH2.js} +8 -8
- package/dist/cli/{chunk-KEBNXJSK.js → chunk-Q3NM6ZL3.js} +19 -19
- package/dist/cli/{chunk-GBRI644Y.js → chunk-QNELA7SX.js} +53 -53
- package/dist/cli/{chunk-IX2DPYIV.js → chunk-QOJBRCAS.js} +3 -3
- package/dist/cli/{chunk-IZ6YWXIK.mjs → chunk-R5F7JXT4.mjs} +2 -2
- package/dist/cli/{chunk-EQR5O2D2.js → chunk-RNSHCJME.js} +3 -3
- package/dist/cli/{chunk-Q2FXZ4Z5.js → chunk-TAK3MVXY.js} +272 -271
- package/dist/cli/{chunk-BIE57V6K.js → chunk-UOANF3DR.js} +360 -300
- package/dist/cli/{chunk-CBZTKDXW.mjs → chunk-W5CHE5Q2.mjs} +1 -1
- package/dist/cli/{chunk-U5GFP26N.js → chunk-WKFAX2K7.js} +21 -21
- package/dist/cli/{chunk-XDVT3GOM.js → chunk-WSGXBROE.js} +22 -1
- package/dist/cli/{chunk-X7ODM2LK.js → chunk-X5MGQ7UT.js} +6 -6
- package/dist/cli/{chunk-REIKJREB.js → chunk-XMKUJ44Z.js} +5 -5
- package/dist/cli/{chunk-SNJNPRIV.js → chunk-YDXEXVBV.js} +7 -7
- package/dist/cli/{chunk-X5SO7RV5.mjs → chunk-YL2CCF6T.mjs} +4 -4
- package/dist/cli/{chunk-VPVEPGYS.mjs → chunk-YWOQYYYS.mjs} +2 -2
- package/dist/cli/{chunk-MAHLIWOF.mjs → chunk-Z2H7OQ6E.mjs} +2 -2
- package/dist/cli/{chunk-PGRPNRP6.mjs → chunk-ZNB6GR3P.mjs} +1 -1
- package/dist/cli/{csv-DEUOSTEB.mjs → csv-6AEPKKCO.mjs} +4 -4
- package/dist/cli/{csv-MWCWNIBJ.js → csv-OXGSCV75.js} +13 -13
- package/dist/cli/{db-Q6IRXTTG.js → db-6NVHDUZY.js} +29 -29
- package/dist/cli/{db-QM5R5BRY.mjs → db-K3KRK4CZ.mjs} +8 -8
- package/dist/cli/describe-JOUAXXPE.js +49 -0
- package/dist/cli/describe-P3ZJS7TQ.mjs +49 -0
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/describe-core.js +3 -4
- package/dist/cli/describe-core.mjs +2 -3
- package/dist/cli/{executions-DCCDXSQI.js → executions-2C2FFG52.js} +10 -10
- package/dist/cli/{executions-SWBKFCY2.mjs → executions-I7XW6WWK.mjs} +8 -8
- package/dist/cli/{feedback-EU3EYF4V.js → feedback-47B57A5Y.js} +8 -8
- package/dist/cli/{feedback-Q27HN3SB.mjs → feedback-RSTNBJAI.mjs} +4 -4
- package/dist/cli/{git-SEQFTQ4N.mjs → git-3G5AFKBT.mjs} +5 -5
- package/dist/cli/git-OPKIC6JQ.js +25 -0
- package/dist/cli/index.js +137 -137
- package/dist/cli/index.mjs +40 -40
- package/dist/cli/{legacy-noops-XKH4VREG.mjs → legacy-noops-NQ262TKL.mjs} +5 -5
- package/dist/cli/{legacy-noops-LCQDEVA3.js → legacy-noops-P665PBG4.js} +8 -8
- package/dist/cli/{monitors-DJCID6X5.js → monitors-IPWAD7LS.js} +97 -97
- package/dist/cli/{monitors-4XWBV46I.mjs → monitors-KUPZODZS.mjs} +9 -9
- package/dist/cli/{org-BU4FG5PN.js → org-WFC3N672.js} +74 -74
- package/dist/cli/{org-PSBGXBRW.mjs → org-ZCQGEM3L.mjs} +8 -8
- package/dist/cli/{pages-3PHJYXYB.js → pages-N5BNC67L.js} +20 -20
- package/dist/cli/{pages-7QLXLJGQ.mjs → pages-VE66IU7B.mjs} +8 -8
- package/dist/cli/{play-4OLYXRCG.mjs → play-EIMDIAJB.mjs} +20 -20
- package/dist/cli/{play-S3CWPQKB.js → play-NKIRJSKX.js} +336 -336
- package/dist/cli/{providers-JT7C2QTC.mjs → providers-KDTJ63ED.mjs} +8 -8
- package/dist/cli/{providers-U4JUMLB2.js → providers-XU3AGY2F.js} +11 -11
- package/dist/cli/{quickstart-OUSMXLYZ.js → quickstart-OSCHOSXU.js} +6 -6
- package/dist/cli/{quickstart-DQF5CF2I.mjs → quickstart-TXFXUODF.mjs} +4 -4
- package/dist/cli/{run-6XXHLB4X.js → run-ET2KVTPK.js} +45 -46
- package/dist/cli/{run-RECNI77K.mjs → run-ODGML35U.mjs} +26 -27
- package/dist/cli/run-identity-HFYABUJS.js +31 -0
- package/dist/cli/{run-identity-MRNCEGV2.mjs → run-identity-MNRZS2N3.mjs} +9 -3
- package/dist/cli/search-6U54Y3OK.js +32 -0
- package/dist/cli/{search-JN7K3GC6.mjs → search-DK67K6PR.mjs} +9 -9
- package/dist/cli/{search-output-L6PC5SPM.mjs → search-output-6SOKQTCW.mjs} +53 -75
- package/dist/cli/{search-output-JGNYXDWZ.js → search-output-KXP4FA62.js} +58 -80
- package/dist/cli/{secrets-UOXZWHBY.mjs → secrets-C6SYTMU7.mjs} +8 -8
- package/dist/cli/{secrets-TX6PCZ77.js → secrets-WPS6NMNK.js} +17 -17
- package/dist/cli/{sessions-GCEIX4KB.js → sessions-IP562J5Z.js} +6 -6
- package/dist/cli/{sessions-DTE733EH.mjs → sessions-PXVOH34X.mjs} +5 -5
- package/dist/cli/{settings-ZGIMRCTC.mjs → settings-FBUQGYVJ.mjs} +13 -13
- package/dist/cli/{settings-UGXSDHR5.js → settings-SUDUIVMY.js} +80 -80
- package/dist/cli/{setup-JYB6Z376.js → setup-I5H6IOEY.js} +49 -49
- package/dist/cli/{setup-UT7AO53D.mjs → setup-JSIMTR73.mjs} +9 -9
- package/dist/cli/{skills-4QJCMN7J.mjs → skills-FJQ3LX6N.mjs} +7 -7
- package/dist/cli/skills-VHININXC.js +36 -0
- package/dist/cli/{tools-RGNXIAA6.mjs → tools-IGBK4BVE.mjs} +19 -20
- package/dist/cli/tools-XMBMHVKF.js +56 -0
- package/dist/cli/{update-Q62EVSXZ.mjs → update-7MTT6F5K.mjs} +9 -9
- package/dist/cli/update-H7JVW43I.js +34 -0
- package/dist/cli/{workflow-YNIOWM7J.mjs → workflow-PM2J2OU3.mjs} +9 -9
- package/dist/cli/{workflow-GENV47RD.js → workflow-UX3ZX6BQ.js} +19 -19
- package/dist/{client-Cj3UqrCZ.d.ts → client-Bn8FwKGO.d.ts} +1 -1
- package/dist/{client-DSCTVVRj.d.mts → client-CfNRmjLK.d.mts} +1 -1
- package/dist/{client-core-dI4KTuWS.d.ts → client-core-B91EV0WS.d.ts} +19 -0
- package/dist/{client-core-B-8DTIN1.d.mts → client-core-BG8Cgrmk.d.mts} +19 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +19 -19
- package/dist/index.mjs +8 -8
- package/dist/install-integrity.json +119 -114
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/plays/run-request.js +3 -3
- package/dist/plays/run-request.mjs +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 +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +7 -7
- package/dist/server.mjs +5 -5
- package/package.json +1 -1
- package/dist/cli/auth-H4PCVUN3.js +0 -43
- package/dist/cli/chunk-XK5DMLZE.js +0 -111
- package/dist/cli/chunk-XRDXNAAY.mjs +0 -111
- package/dist/cli/describe-BZ544347.js +0 -50
- package/dist/cli/describe-CQZ7TBOG.mjs +0 -50
- package/dist/cli/git-NW6BAXX2.js +0 -25
- package/dist/cli/run-identity-G257GQED.js +0 -25
- package/dist/cli/search-BIQ62ZBE.js +0 -32
- package/dist/cli/skills-53LCPB5R.js +0 -36
- package/dist/cli/tools-HKJK6UNJ.js +0 -57
- package/dist/cli/update-QMZSFTFZ.js +0 -34
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkUOANF3DRjs = require('./chunk-UOANF3DR.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkRNSHCJMEjs = require('./chunk-RNSHCJME.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkYDXEXVBVjs = require('./chunk-YDXEXVBV.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
@@ -579,7 +579,7 @@ function parseInputFlagValue(raw) {
|
|
|
579
579
|
return raw;
|
|
580
580
|
}
|
|
581
581
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
582
|
-
const selection =
|
|
582
|
+
const selection = _chunkYDXEXVBVjs.parseJsonFields.call(void 0, args, "run");
|
|
583
583
|
args = selection.args;
|
|
584
584
|
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
585
|
let filePath = null;
|
|
@@ -591,7 +591,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
591
591
|
let revisionSelector = null;
|
|
592
592
|
const watch = !args.includes("--no-wait");
|
|
593
593
|
const dryRun = args.includes("--dry-run");
|
|
594
|
-
let jsonOutput = dryRun ?
|
|
594
|
+
let jsonOutput = dryRun ? _chunkYDXEXVBVjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkYDXEXVBVjs.argsWantJson.call(void 0, args);
|
|
595
595
|
const fullJson = args.includes("--full");
|
|
596
596
|
const force = args.includes("--force");
|
|
597
597
|
const forceToolRefresh = args.includes("--force-tool-refresh");
|
|
@@ -654,7 +654,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
654
654
|
"--log-level requires one of: debug, info, warn, error."
|
|
655
655
|
);
|
|
656
656
|
}
|
|
657
|
-
const parsed =
|
|
657
|
+
const parsed = _chunkUOANF3DRjs.parseLogLevel.call(void 0, value);
|
|
658
658
|
if (!parsed) {
|
|
659
659
|
throw new Error(
|
|
660
660
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -778,12 +778,12 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
778
778
|
}
|
|
779
779
|
if (arg === "--debug" && args[index + 1] && !args[index + 1].startsWith("--")) {
|
|
780
780
|
input ??= {};
|
|
781
|
-
|
|
781
|
+
_chunkRNSHCJMEjs.setDottedInputValue.call(void 0, input, "debug", parseInputFlagValue(args[++index]));
|
|
782
782
|
continue;
|
|
783
783
|
}
|
|
784
784
|
if (arg.startsWith("--debug=")) {
|
|
785
785
|
input ??= {};
|
|
786
|
-
|
|
786
|
+
_chunkRNSHCJMEjs.setDottedInputValue.call(void 0,
|
|
787
787
|
input,
|
|
788
788
|
"debug",
|
|
789
789
|
parseInputFlagValue(arg.slice("--debug=".length))
|
|
@@ -811,7 +811,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
811
811
|
if (arg.startsWith("--")) {
|
|
812
812
|
const { path, value } = parseInputFieldFlag(arg, args[index + 1]);
|
|
813
813
|
input ??= {};
|
|
814
|
-
|
|
814
|
+
_chunkRNSHCJMEjs.setDottedInputValue.call(void 0, input, path, parseInputFlagValue(value));
|
|
815
815
|
if (!arg.includes("=")) {
|
|
816
816
|
index += 1;
|
|
817
817
|
}
|
|
@@ -900,7 +900,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
900
900
|
let initialInput = options.input === void 0 ? null : parseJsonInput(options.input);
|
|
901
901
|
if (typeof options.debug === "string") {
|
|
902
902
|
initialInput ??= {};
|
|
903
|
-
|
|
903
|
+
_chunkRNSHCJMEjs.setDottedInputValue.call(void 0,
|
|
904
904
|
initialInput,
|
|
905
905
|
"debug",
|
|
906
906
|
parseInputFlagValue(options.debug)
|
|
@@ -972,7 +972,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
972
972
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
973
973
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
974
974
|
);
|
|
975
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
975
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkUOANF3DRjs.parseLogLevel.call(void 0, options.logLevel);
|
|
976
976
|
if (!logLevel)
|
|
977
977
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
978
978
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -986,13 +986,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
986
986
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
987
987
|
logLevel = "debug";
|
|
988
988
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
989
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
990
|
-
[...fullJson ? ["--full"] : [], ...
|
|
989
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkYDXEXVBVjs.parseJsonFields.call(void 0,
|
|
990
|
+
[...fullJson ? ["--full"] : [], ..._chunkYDXEXVBVjs.jsonFieldArgs.call(void 0, options.json)],
|
|
991
991
|
"run"
|
|
992
992
|
).fields;
|
|
993
993
|
const watch = options.wait === false ? false : base.watch;
|
|
994
994
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
995
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
995
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkYDXEXVBVjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
996
996
|
const verboseLogs = Boolean(
|
|
997
997
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
998
998
|
);
|
|
@@ -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 _chunkQNELA7SXjs = require('./chunk-QNELA7SX.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/npm-script-policy.ts
|
|
6
6
|
var _child_process = require('child_process');
|
|
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
|
|
|
13
13
|
}
|
|
14
14
|
function readNpmVersion(env) {
|
|
15
15
|
try {
|
|
16
|
-
const plan =
|
|
16
|
+
const plan = _chunkQNELA7SXjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
|
|
17
17
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
18
18
|
encoding: "utf8",
|
|
19
19
|
env,
|
|
@@ -16,12 +16,12 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
16
16
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkLA3UYRVZjs = require('./chunk-LA3UYRVZ.js');
|
|
20
20
|
|
|
21
21
|
// src/version.ts
|
|
22
|
-
var SDK_VERSION =
|
|
23
|
-
var SDK_API_MAJOR =
|
|
24
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
22
|
+
var SDK_VERSION = _chunkLA3UYRVZjs.SDK_RELEASE.version;
|
|
23
|
+
var SDK_API_MAJOR = _chunkLA3UYRVZjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
24
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkLA3UYRVZjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
25
25
|
|
|
26
26
|
// src/agent-runtime.ts
|
|
27
27
|
var _os = require('os');
|
|
@@ -5,10 +5,6 @@
|
|
|
5
5
|
var _chunkJO5FFSR7js = require('./chunk-JO5FFSR7.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
var _chunkXK5DMLZEjs = require('./chunk-XK5DMLZE.js');
|
|
10
|
-
|
|
11
|
-
|
|
12
8
|
var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
|
|
13
9
|
|
|
14
10
|
|
|
@@ -18,6 +14,116 @@ var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
|
|
|
18
14
|
|
|
19
15
|
var _chunkBLMB4N63js = require('./chunk-BLMB4N63.js');
|
|
20
16
|
|
|
17
|
+
// src/cli/tool-description.ts
|
|
18
|
+
function observedMaxText(pricing) {
|
|
19
|
+
const max = recordValue(recordValue(pricing).observedMax);
|
|
20
|
+
if (typeof max.creditsPerCall !== "number" || max.creditsPerCall <= 0)
|
|
21
|
+
return "";
|
|
22
|
+
const avg = typeof max.avgCreditsPerCall === "number" && typeof max.sampleCount === "number" ? `${max.avgCreditsPerCall} avg, ` : "";
|
|
23
|
+
const calls = avg && typeof max.sampleCount === "number" ? `${max.sampleCount} observed, ` : "";
|
|
24
|
+
return `observed ${avg}${max.creditsPerCall} max credits/call (${calls}last ${String(max.windowDays)} days)`;
|
|
25
|
+
}
|
|
26
|
+
var Capability = class _Capability {
|
|
27
|
+
#catalogEntry;
|
|
28
|
+
constructor(catalogEntry) {
|
|
29
|
+
this.#catalogEntry = catalogEntry;
|
|
30
|
+
}
|
|
31
|
+
static fromCatalogEntry(catalogEntry) {
|
|
32
|
+
return new _Capability(catalogEntry);
|
|
33
|
+
}
|
|
34
|
+
describe() {
|
|
35
|
+
return CapabilityDescription.fromCatalogEntry(this.#catalogEntry);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var CapabilityDescription = class _CapabilityDescription {
|
|
39
|
+
#catalogEntry;
|
|
40
|
+
constructor(catalogEntry) {
|
|
41
|
+
this.#catalogEntry = catalogEntry;
|
|
42
|
+
}
|
|
43
|
+
static fromCatalogEntry(catalogEntry) {
|
|
44
|
+
return new _CapabilityDescription(catalogEntry);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The customer price already resolved by the catalog. This intentionally
|
|
48
|
+
* omits provider-price fields, even when a catalog Adapter carried them.
|
|
49
|
+
*/
|
|
50
|
+
customerCost() {
|
|
51
|
+
const legacyCost = recordValue(this.#catalogEntry.cost);
|
|
52
|
+
const pricing = recordValue(this.#catalogEntry.pricing);
|
|
53
|
+
const unit = stringValue(pricing.unit);
|
|
54
|
+
const legacyPricingModel = stringValue(
|
|
55
|
+
_nullishCoalesce(legacyCost.pricingModel, () => ( legacyCost.pricing_model))
|
|
56
|
+
);
|
|
57
|
+
const pricingModel = unit === "call" ? "fixed" : unit === "result" || unit === "page" ? `per_${unit}` : unit === "usage" ? "provider_usage" : legacyPricingModel;
|
|
58
|
+
const canonicalCredits = pricingNumber(
|
|
59
|
+
pricing,
|
|
60
|
+
"creditsPerUnit",
|
|
61
|
+
"credits_per_unit",
|
|
62
|
+
_nullishCoalesce(this.#catalogEntry.deeplineCreditsPerPricingUnit, () => ( this.#catalogEntry.deepline_credits_per_pricing_unit))
|
|
63
|
+
);
|
|
64
|
+
const canonicalUsd = pricingNumber(
|
|
65
|
+
pricing,
|
|
66
|
+
"usdPerUnit",
|
|
67
|
+
"usd_per_unit",
|
|
68
|
+
_nullishCoalesce(this.#catalogEntry.deeplineUsdPerPricingUnit, () => ( this.#catalogEntry.deepline_usd_per_pricing_unit))
|
|
69
|
+
);
|
|
70
|
+
const billingSource = stringValue(
|
|
71
|
+
_nullishCoalesce(this.#catalogEntry.billingSource, () => ( this.#catalogEntry.billing_source))
|
|
72
|
+
);
|
|
73
|
+
const billingSourceLabel = stringValue(
|
|
74
|
+
_nullishCoalesce(this.#catalogEntry.billingSourceLabel, () => ( this.#catalogEntry.billing_source_label))
|
|
75
|
+
);
|
|
76
|
+
const isFree = billingSource === "free";
|
|
77
|
+
const displayText = stringValue(
|
|
78
|
+
_nullishCoalesce(pricing.displayText, () => ( pricing.display_text))
|
|
79
|
+
);
|
|
80
|
+
const summary = stringValue(pricing.summary);
|
|
81
|
+
const showManagedPricing = !isFree && billingSource !== "own_provider_credentials";
|
|
82
|
+
const details = !isFree && Array.isArray(pricing.details) ? pricing.details.filter(
|
|
83
|
+
(value) => typeof value === "string"
|
|
84
|
+
) : [];
|
|
85
|
+
return {
|
|
86
|
+
pricingModel: pricingModel || null,
|
|
87
|
+
unit: unit || null,
|
|
88
|
+
displayText: isFree ? "Free" : displayText,
|
|
89
|
+
summary: isFree ? null : summary,
|
|
90
|
+
billingMode: stringValue(
|
|
91
|
+
_nullishCoalesce(legacyCost.billingMode, () => ( legacyCost.billing_mode))
|
|
92
|
+
),
|
|
93
|
+
billingSource,
|
|
94
|
+
billingSourceLabel,
|
|
95
|
+
deeplineCreditsPerPricingUnit: isFree ? 0 : canonicalCredits,
|
|
96
|
+
deeplineUsdPerPricingUnit: isFree ? 0 : canonicalUsd,
|
|
97
|
+
...pricing.estimatedRange && showManagedPricing ? {
|
|
98
|
+
estimatedRange: pricing.estimatedRange
|
|
99
|
+
} : {},
|
|
100
|
+
...pricing.observedReference && showManagedPricing ? {
|
|
101
|
+
observedReference: pricing.observedReference
|
|
102
|
+
} : {},
|
|
103
|
+
...details.length || showManagedPricing && (pricing.estimatedRange || pricing.observedReference) ? { details } : {},
|
|
104
|
+
...pricing.observedMax && showManagedPricing ? {
|
|
105
|
+
observedMax: pricing.observedMax
|
|
106
|
+
} : {}
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
function recordValue(value) {
|
|
111
|
+
return value && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
112
|
+
}
|
|
113
|
+
function stringValue(value) {
|
|
114
|
+
return typeof value === "string" && value.trim() ? value : null;
|
|
115
|
+
}
|
|
116
|
+
function numberValue(value) {
|
|
117
|
+
return typeof value === "number" && Number.isFinite(value) ? value : null;
|
|
118
|
+
}
|
|
119
|
+
function pricingNumber(pricing, canonicalKey, aliasKey, legacyValue) {
|
|
120
|
+
for (const key of [canonicalKey, aliasKey]) {
|
|
121
|
+
if (Object.prototype.hasOwnProperty.call(pricing, key))
|
|
122
|
+
return numberValue(pricing[key]);
|
|
123
|
+
}
|
|
124
|
+
return numberValue(legacyValue);
|
|
125
|
+
}
|
|
126
|
+
|
|
21
127
|
// src/cli/described-tool.ts
|
|
22
128
|
function isPlayLikeTool(tool) {
|
|
23
129
|
const record = tool;
|
|
@@ -74,7 +180,7 @@ function toolContractJsonForDescribe(tool, requestedToolId, authoringContractEdi
|
|
|
74
180
|
const extractedValues = extractionContractEntries(
|
|
75
181
|
arrayField(toolExecutionResult, "extractedValues", "extracted_values")
|
|
76
182
|
);
|
|
77
|
-
const pricing =
|
|
183
|
+
const pricing = Capability.fromCatalogEntry(tool).describe().customerCost();
|
|
78
184
|
const executionMetadataRecord = recordField(
|
|
79
185
|
tool,
|
|
80
186
|
"executionMetadata",
|
|
@@ -298,7 +404,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
298
404
|
stringField(cost, "displayText"),
|
|
299
405
|
// "Free (free)" says the same thing twice.
|
|
300
406
|
billing.toLowerCase() === stringField(cost, "displayText").toLowerCase() ? "" : billing && `(${billing})`,
|
|
301
|
-
|
|
407
|
+
observedMaxText(cost) && `\u2014 ${observedMaxText(cost)}`
|
|
302
408
|
].filter(Boolean).join(" ") || void 0,
|
|
303
409
|
guidance: [
|
|
304
410
|
...contract.deprecated === true ? [`Deprecated. ${stringField(deprecation, "message")}`.trim()] : [],
|
|
@@ -395,7 +501,7 @@ function toolMetadataJsonForDescribe(tool, requestedToolId, seedStarterScript) {
|
|
|
395
501
|
} = tool;
|
|
396
502
|
const outputSchemaRecord = recordField(tool, "outputSchema", "output_schema");
|
|
397
503
|
return {
|
|
398
|
-
cost:
|
|
504
|
+
cost: Capability.fromCatalogEntry(tool).describe().customerCost(),
|
|
399
505
|
...publicTool,
|
|
400
506
|
toolId,
|
|
401
507
|
provider: tool.provider,
|
|
@@ -762,4 +868,6 @@ function arrayField2(value, key) {
|
|
|
762
868
|
|
|
763
869
|
|
|
764
870
|
|
|
765
|
-
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
exports.observedMaxText = observedMaxText; exports.Capability = Capability; exports.isPlayLikeTool = isPlayLikeTool; exports.isMonitorTypeTool = isMonitorTypeTool; exports.playReferenceForTool = playReferenceForTool; exports.playSearchCommandForToolId = playSearchCommandForToolId; exports.playRunCommandForTool = playRunCommandForTool; exports.toolContractJsonForDescribe = toolContractJsonForDescribe; exports.publicToolSchemas = publicToolSchemas; exports.describedTool = describedTool; exports.samplePayloadForInputFields = samplePayloadForInputFields; exports.playResultExpression = playResultExpression; exports.toolMetadataJsonForDescribe = toolMetadataJsonForDescribe; exports.toolInputFieldsForDisplay = toolInputFieldsForDisplay; exports.toolOutputFieldsForDisplay = toolOutputFieldsForDisplay; exports.recursiveToolInputFieldsForDisplay = recursiveToolInputFieldsForDisplay; exports.isRecord = isRecord; exports.stringField = stringField; exports.arrayField = arrayField; exports.recordField = recordField; exports.formatModelDescription = formatModelDescription;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkFVM4PS5Qjs = require('./chunk-FVM4PS5Q.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -31,7 +31,7 @@ var VIEWS = {
|
|
|
31
31
|
details: model,
|
|
32
32
|
lines: [
|
|
33
33
|
...unlisted,
|
|
34
|
-
...
|
|
34
|
+
..._chunkFVM4PS5Qjs.formatModelDescription.call(void 0, model).trimEnd().split("\n")
|
|
35
35
|
]
|
|
36
36
|
};
|
|
37
37
|
},
|
|
@@ -148,18 +148,18 @@ async function findNamed(reference, options, lookups) {
|
|
|
148
148
|
const features = toolFeatures(record);
|
|
149
149
|
return {
|
|
150
150
|
described: {
|
|
151
|
-
...
|
|
151
|
+
..._chunkFVM4PS5Qjs.describedTool.call(void 0, record, name),
|
|
152
152
|
// Shown when the tool runs only on your own credentials; otherwise
|
|
153
153
|
// it is a feature, described with --feature byok.
|
|
154
154
|
..._optionalChain([byok, 'optionalAccess', _3 => _3.required]) === true ? { byok } : {},
|
|
155
155
|
...features.length ? { features: features.map(({ view: _view, ...feature }) => feature) } : {}
|
|
156
156
|
},
|
|
157
|
-
record:
|
|
157
|
+
record: _chunkFVM4PS5Qjs.toolMetadataJsonForDescribe.call(void 0,
|
|
158
158
|
record,
|
|
159
159
|
name,
|
|
160
160
|
lookups.seedStarterScript
|
|
161
161
|
),
|
|
162
|
-
schemas:
|
|
162
|
+
schemas: _chunkFVM4PS5Qjs.publicToolSchemas.call(void 0, record),
|
|
163
163
|
feature: (featureName, value) => {
|
|
164
164
|
const feature = features.find(({ name: name2 }) => name2 === featureName);
|
|
165
165
|
return feature ? describeFeature(record, feature, value, {
|
|
@@ -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 _chunkDYHTXGLXjs = require('./chunk-DYHTXGLX.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk2S2F6YSIjs = require('./chunk-2S2F6YSI.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkQNELA7SXjs = require('./chunk-QNELA7SX.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkYDXEXVBVjs = require('./chunk-YDXEXVBV.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkJLYDLK6Xjs = require('./chunk-JLYDLK6X.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 = _chunkQNELA7SXjs.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 ? _chunkDYHTXGLXjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
560
|
+
const npmGlobalInstallFlags = _chunkDYHTXGLXjs.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()]) || _chunkJLYDLK6Xjs.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 = _chunkQNELA7SXjs.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, () => ( _chunkJLYDLK6Xjs.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 _chunk2S2F6YSIjs.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
|
+
_chunkYDXEXVBVjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1281
1281
|
return 0;
|
|
1282
1282
|
}
|
|
1283
1283
|
if (options.printCommand) {
|
|
1284
|
-
|
|
1284
|
+
_chunkYDXEXVBVjs.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
|
+
_chunkYDXEXVBVjs.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 install
|
|
|
1324
1324
|
);
|
|
1325
1325
|
}
|
|
1326
1326
|
if (options.executeWithJson && options.json) {
|
|
1327
|
-
|
|
1327
|
+
_chunkYDXEXVBVjs.printCommandEnvelope.call(void 0,
|
|
1328
1328
|
{
|
|
1329
1329
|
ok: true,
|
|
1330
1330
|
pinnedVersion
|