deepline 0.3.462 → 0.3.464
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/play.ts +3 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/billing/tamradar.ts +17 -17
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +2 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-upstream-identity.ts +28 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +16 -2
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +12 -9
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +115 -7
- package/dist/bundling-sources/shared_libs/plays/field-catalog.ts +353 -52
- package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +63 -3
- package/dist/cli/{auth-JDLEY7VU.mjs → auth-GMSI6QWR.mjs} +5 -5
- package/dist/cli/auth-P4E7M3AV.js +41 -0
- package/dist/cli/{billing-SDHLBLMV.mjs → billing-6G2RFLM7.mjs} +6 -6
- package/dist/cli/{billing-HXAXB3XZ.js → billing-MGH36CNP.js} +77 -77
- package/dist/cli/{chunk-UAJFWWZE.js → chunk-2RFTOESC.js} +5 -5
- package/dist/cli/{chunk-VFGVXXZP.js → chunk-3AIMFE3Z.js} +36 -36
- package/dist/cli/{chunk-O2RX5A66.mjs → chunk-3MKRAI6R.mjs} +5 -5
- package/dist/cli/{chunk-7MJ6VI2T.mjs → chunk-44BEFU62.mjs} +2 -2
- package/dist/cli/{chunk-7VZHXVOQ.js → chunk-4XNXFHG6.js} +1 -1
- package/dist/cli/{chunk-D6DXOUTO.mjs → chunk-5CKIO7KA.mjs} +1 -1
- package/dist/cli/{chunk-XANRM3QA.js → chunk-5XIGEYYK.js} +6 -6
- package/dist/cli/{chunk-NHRWZPWZ.mjs → chunk-6A7OH2PV.mjs} +2 -2
- package/dist/cli/{chunk-4KQ6SIBC.mjs → chunk-6COF5LIE.mjs} +2 -2
- package/dist/cli/{chunk-S6UAJR6V.mjs → chunk-6E2KNNTD.mjs} +2 -2
- package/dist/cli/{chunk-S42YIQNE.mjs → chunk-6KDOO7IM.mjs} +4 -4
- package/dist/cli/{chunk-5LEAXRHV.js → chunk-6P4OYABU.js} +54 -226
- package/dist/cli/chunk-7YDN6AEK.mjs +649 -0
- package/dist/cli/{chunk-HUB3CCM2.js → chunk-ACZLDP7L.js} +3 -3
- package/dist/cli/{chunk-BGTPIMSM.js → chunk-BMUDQMYE.js} +6 -6
- package/dist/cli/{chunk-6NNVJDVR.mjs → chunk-CUZVOPPY.mjs} +3 -3
- package/dist/cli/{chunk-ZUK6LIJB.mjs → chunk-DO3FSI4C.mjs} +1 -1
- package/dist/cli/{chunk-NBLSCHKK.js → chunk-E4QJKJH6.js} +51 -51
- package/dist/cli/{chunk-ZGQSFYD2.js → chunk-EQNJUG3N.js} +53 -53
- package/dist/cli/{chunk-GEGW5HPZ.js → chunk-FEWZT4RV.js} +21 -21
- package/dist/cli/{chunk-QJZ6WNWD.js → chunk-FVAB2JRO.js} +8 -8
- package/dist/cli/{chunk-Y4DPU4OM.js → chunk-GVJVBBGV.js} +3 -3
- package/dist/cli/{chunk-MUUQZIOF.mjs → chunk-HGUHBLX5.mjs} +3 -3
- package/dist/cli/{chunk-6PMCRYDA.js → chunk-HIMV32ZX.js} +6 -4
- package/dist/cli/{chunk-MSY22NQW.mjs → chunk-I2TCWIW2.mjs} +44 -216
- package/dist/cli/{chunk-XZAFIOUQ.mjs → chunk-J327QVQV.mjs} +1 -1
- package/dist/cli/chunk-JLZKF7EY.js +649 -0
- package/dist/cli/{chunk-7LFIMWMW.js → chunk-K3BARC72.js} +2 -2
- package/dist/cli/{chunk-LROWFPGN.js → chunk-K4DVRQTY.js} +16 -16
- package/dist/cli/{chunk-XQCTG5OO.js → chunk-L3U44YVO.js} +5 -5
- package/dist/cli/{chunk-CKSOY47X.mjs → chunk-M4QVY6RW.mjs} +2 -2
- package/dist/cli/{chunk-6RNQGWFD.mjs → chunk-MP3O4ISC.mjs} +1 -1
- package/dist/cli/{chunk-PHSEINNH.mjs → chunk-MQNBOSQP.mjs} +5 -5
- package/dist/cli/{chunk-TKAQR3IB.mjs → chunk-MUQAKLBP.mjs} +1 -1
- package/dist/cli/{chunk-YT5EODJO.js → chunk-NI3QFUK7.js} +4 -4
- package/dist/cli/{chunk-PKHVSIJG.mjs → chunk-O4AOYLZE.mjs} +2 -2
- package/dist/cli/{chunk-3ACMRZRV.js → chunk-O4ZMADW4.js} +7 -7
- package/dist/cli/{chunk-V3MEA7NB.mjs → chunk-OA7IIOLW.mjs} +4 -4
- package/dist/cli/{chunk-VPHN2HAL.mjs → chunk-OGCAGZXO.mjs} +6 -4
- package/dist/cli/{chunk-LFXLQEZN.mjs → chunk-PPQL5F4P.mjs} +1 -1
- package/dist/cli/{chunk-WIY6U6GD.mjs → chunk-RFOQRCMW.mjs} +5 -5
- package/dist/cli/{chunk-FKVYR3QA.mjs → chunk-TMVBBGSK.mjs} +1 -1
- package/dist/cli/{chunk-EM4TXCCI.js → chunk-TU3M7UXJ.js} +13 -13
- package/dist/cli/{chunk-AT636LLU.mjs → chunk-UM363DQF.mjs} +2 -2
- package/dist/cli/{chunk-V335HGX5.js → chunk-UOAHDEAI.js} +9 -9
- package/dist/cli/{chunk-UDRPEZ5F.mjs → chunk-VQHEMZ33.mjs} +1 -1
- package/dist/cli/{chunk-3KZCFOZ6.mjs → chunk-VYDOPASG.mjs} +1 -1
- package/dist/cli/{chunk-ULK7JGGI.js → chunk-VZX4P5FT.js} +258 -258
- package/dist/cli/{chunk-OPJAJBD4.js → chunk-WLIFUH6W.js} +8 -8
- package/dist/cli/{chunk-OMQ23IXL.js → chunk-X3XJ6ZSJ.js} +2 -2
- package/dist/cli/{chunk-7U3XNPOA.mjs → chunk-XMDBN2K7.mjs} +11 -11
- package/dist/cli/{chunk-7SWNPNML.js → chunk-ZAB6KCZW.js} +3 -3
- package/dist/cli/{chunk-JF3TLIMQ.js → chunk-ZIMCLWEW.js} +5 -5
- package/dist/cli/{chunk-I6VHOU5O.js → chunk-ZQERHPZA.js} +26 -26
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-L54JS7TF.mjs → csv-4ZVMBOCK.mjs} +4 -4
- package/dist/cli/{csv-C56GSCEU.js → csv-W2JPV57R.js} +13 -13
- package/dist/cli/{db-MOGRMZTA.js → db-6YNFDHEW.js} +27 -27
- package/dist/cli/{db-YVBUW2DX.mjs → db-TVK6BLRB.mjs} +6 -6
- package/dist/cli/describe-APW5TWBT.js +48 -0
- package/dist/cli/{describe-NLZKKT7C.mjs → describe-JFN4ECPO.mjs} +20 -20
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-ZBGSTT37.mjs → executions-2FK4FFKE.mjs} +6 -6
- package/dist/cli/{executions-A7L4ULPP.js → executions-J4CAN7RB.js} +8 -8
- package/dist/cli/{feedback-G6GU37FD.mjs → feedback-EYRRLA2P.mjs} +4 -4
- package/dist/cli/{feedback-OHLY7RYD.js → feedback-NOO4OM4U.js} +8 -8
- package/dist/cli/{git-PKZW3QD5.mjs → git-D3Q4JKBC.mjs} +5 -5
- package/dist/cli/git-FPF6DT43.js +25 -0
- package/dist/cli/index.js +139 -139
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-5LM3D724.js → legacy-noops-5ZGRKSN3.js} +8 -8
- package/dist/cli/{legacy-noops-LJJYG6YA.mjs → legacy-noops-SUFJWBLZ.mjs} +5 -5
- package/dist/cli/{monitors-UX3H5DC2.js → monitors-3QFJZA6Z.js} +91 -91
- package/dist/cli/{monitors-72QV4ALO.mjs → monitors-IRDIIR6J.mjs} +7 -7
- package/dist/cli/{org-IF7ISUVB.js → org-275OJJ7W.js} +68 -68
- package/dist/cli/{org-6RRRKOCP.mjs → org-2VA2FSMG.mjs} +6 -6
- package/dist/cli/{pages-3SU3HKL7.js → pages-SPRBOZRA.js} +17 -17
- package/dist/cli/{pages-DXDYYKEK.mjs → pages-WCUEBFYU.mjs} +6 -6
- package/dist/cli/{play-AHASKRLA.mjs → play-7UL5H6QU.mjs} +18 -18
- package/dist/cli/{play-EUIUVLUH.js → play-NMHUWBET.js} +305 -305
- package/dist/cli/{providers-V5WU4VXJ.js → providers-72LUJEAT.js} +9 -9
- package/dist/cli/{providers-GWGE3WY3.mjs → providers-WSCKV557.mjs} +6 -6
- package/dist/cli/{quickstart-OXKQ5ZST.mjs → quickstart-K4LAKJKJ.mjs} +4 -4
- package/dist/cli/{quickstart-QP65I5PF.js → quickstart-XSUUAE2Y.js} +6 -6
- package/dist/cli/{run-F3FTYS56.js → run-MLV2CLW7.js} +40 -40
- package/dist/cli/{run-6MM72IGL.mjs → run-R2MOXXHH.mjs} +25 -25
- package/dist/cli/search-AYFUV6YV.js +32 -0
- package/dist/cli/{search-ZMEBVJZB.mjs → search-WHJZNWKE.mjs} +7 -7
- package/dist/cli/{secrets-ACND5N6A.js → secrets-7PXFBOFY.js} +15 -15
- package/dist/cli/{secrets-XRCJFF3L.mjs → secrets-YGVOFLI5.mjs} +6 -6
- package/dist/cli/{sessions-ZGRJPCFF.js → sessions-ASXXZI42.js} +6 -6
- package/dist/cli/{sessions-RTK3CEW6.mjs → sessions-G7I54W4L.mjs} +5 -5
- package/dist/cli/{settings-XDRBPRDE.mjs → settings-4GFO6JYO.mjs} +11 -11
- package/dist/cli/{settings-PD5KWQQZ.js → settings-RTEBMDPC.js} +78 -78
- package/dist/cli/{setup-3HPYAOCC.mjs → setup-4RJGKSDC.mjs} +9 -9
- package/dist/cli/{setup-E2Q6PXHC.js → setup-A6V2MJK7.js} +44 -44
- package/dist/cli/{skills-OOQFMPOV.mjs → skills-432W6EGS.mjs} +7 -7
- package/dist/cli/skills-GOQECD7H.js +31 -0
- package/dist/cli/tools-JXYN7WOE.js +55 -0
- package/dist/cli/{tools-C5ZT3UIC.mjs → tools-SABREK3C.mjs} +18 -18
- package/dist/cli/update-BSB4TJER.js +33 -0
- package/dist/cli/{update-ZWJTADIW.mjs → update-F7NO5RDW.mjs} +9 -9
- package/dist/cli/{workflow-23NMPAJ7.mjs → workflow-F4N7CFUX.mjs} +7 -7
- package/dist/cli/{workflow-TCXU5YJV.js → workflow-TF6YDWTM.js} +17 -17
- package/dist/{client-DTwnz_AW.d.mts → client-ADFHNtFM.d.mts} +1 -1
- package/dist/{client-DS2IWYZF.d.ts → client-BClp2yrq.d.ts} +1 -1
- package/dist/{client-core-B_6HAIBy.d.ts → client-core-BFU73Ttw.d.ts} +1 -1
- package/dist/{client-core-DzBSlY1U.d.mts → client-core-DWLmmJWo.d.mts} +1 -1
- package/dist/{compiler-manifest-Dcyd3-Zd.d.mts → compiler-manifest-Cs17yO-H.d.mts} +321 -3
- package/dist/{compiler-manifest-Dcyd3-Zd.d.ts → compiler-manifest-Cs17yO-H.d.ts} +321 -3
- package/dist/{errors-yQwfgrcX.d.ts → errors-Dee-QpVS.d.ts} +1 -1
- package/dist/{errors-d-sTrZhe.d.mts → errors-qNfvQuRB.d.mts} +1 -1
- package/dist/{index-C6oXchjN.d.mts → index-BTqNNXmC.d.mts} +1 -1
- package/dist/{index-P56zy_z5.d.ts → index-DXTh1Lxe.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +81 -14
- package/dist/index.mjs +77 -10
- package/dist/install-integrity.json +114 -114
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- 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-UXKY6TCC.js +0 -41
- package/dist/cli/chunk-NA4T3B62.js +0 -286
- package/dist/cli/chunk-TXZVVBQZ.mjs +0 -286
- package/dist/cli/describe-KYEULWPG.js +0 -48
- package/dist/cli/git-P76N4NDQ.js +0 -25
- package/dist/cli/search-OYKOOI7A.js +0 -32
- package/dist/cli/skills-XYWV52KB.js +0 -31
- package/dist/cli/tools-ASCDZJCK.js +0 -55
- package/dist/cli/update-5RQSEIFM.js +0 -33
|
@@ -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 _chunkX3XJ6ZSJjs = require('./chunk-X3XJ6ZSJ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk3AIMFE3Zjs = require('./chunk-3AIMFE3Z.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkEQNJUG3Njs = require('./chunk-EQNJUG3N.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkO4ZMADW4js = require('./chunk-O4ZMADW4.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkGVJVBBGVjs = require('./chunk-GVJVBBGV.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 = _chunkEQNJUG3Njs.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 ? _chunkX3XJ6ZSJjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
560
|
+
const npmGlobalInstallFlags = _chunkX3XJ6ZSJjs.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()]) || _chunkGVJVBBGVjs.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 = _chunkEQNJUG3Njs.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, () => ( _chunkGVJVBBGVjs.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 _chunk3AIMFE3Zjs.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
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1281
1281
|
return 0;
|
|
1282
1282
|
}
|
|
1283
1283
|
if (options.printCommand) {
|
|
1284
|
-
|
|
1284
|
+
_chunkO4ZMADW4js.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
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1298
1298
|
return 0;
|
|
1299
1299
|
}
|
|
1300
1300
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills
|
|
|
1324
1324
|
);
|
|
1325
1325
|
}
|
|
1326
1326
|
if (options.executeWithJson && options.json) {
|
|
1327
|
-
|
|
1327
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
1328
1328
|
{
|
|
1329
1329
|
ok: true,
|
|
1330
1330
|
pinnedVersion
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk6P4OYABUjs = require('./chunk-6P4OYABU.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
|
+
..._chunk6P4OYABUjs.formatModelDescription.call(void 0, model).trimEnd().split("\n")
|
|
35
35
|
]
|
|
36
36
|
};
|
|
37
37
|
},
|
|
@@ -131,18 +131,18 @@ async function findNamed(reference, options, lookups) {
|
|
|
131
131
|
const features = toolFeatures(record);
|
|
132
132
|
return {
|
|
133
133
|
described: {
|
|
134
|
-
...
|
|
134
|
+
..._chunk6P4OYABUjs.describedTool.call(void 0, record, name),
|
|
135
135
|
// Shown when the tool runs only on your own credentials; otherwise
|
|
136
136
|
// it is a feature, described with --feature byok.
|
|
137
137
|
..._optionalChain([byok, 'optionalAccess', _3 => _3.required]) === true ? { byok } : {},
|
|
138
138
|
...features.length ? { features: features.map(({ view: _view, ...feature }) => feature) } : {}
|
|
139
139
|
},
|
|
140
|
-
record:
|
|
140
|
+
record: _chunk6P4OYABUjs.toolMetadataJsonForDescribe.call(void 0,
|
|
141
141
|
record,
|
|
142
142
|
name,
|
|
143
143
|
lookups.seedStarterScript
|
|
144
144
|
),
|
|
145
|
-
schemas:
|
|
145
|
+
schemas: _chunk6P4OYABUjs.publicToolSchemas.call(void 0, record),
|
|
146
146
|
feature: (featureName, value) => {
|
|
147
147
|
const feature = features.find(({ name: name2 }) => name2 === featureName);
|
|
148
148
|
return feature ? describeFeature(record, feature, value, {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PPQL5F4P.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6KDOO7IM.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VYDOPASG.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OA7IIOLW.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6KDOO7IM.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6A7OH2PV.mjs";
|
|
14
14
|
import {
|
|
15
15
|
autoDetectBaseUrl
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-5CKIO7KA.mjs";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -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 _chunk4XNXFHG6js = require('./chunk-4XNXFHG6.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 = _chunk4XNXFHG6js.SDK_RELEASE.version;
|
|
23
|
+
var SDK_API_MAJOR = _chunk4XNXFHG6js.SDK_RELEASE.contracts.api.currentMajor;
|
|
24
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunk4XNXFHG6js.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');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PlayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VQHEMZ33.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5CKIO7KA.mjs";
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkGVJVBBGVjs = require('./chunk-GVJVBBGV.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkNI3QFUK7js = require('./chunk-NI3QFUK7.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -290,8 +290,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
290
290
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
291
291
|
var defaultBrowserCommandRunner = childProcess;
|
|
292
292
|
function getAuthedHttpClient() {
|
|
293
|
-
const config =
|
|
294
|
-
return { config, http: new (0,
|
|
293
|
+
const config = _chunkGVJVBBGVjs.resolveConfig.call(void 0, );
|
|
294
|
+
return { config, http: new (0, _chunkGVJVBBGVjs.HttpClient)(config) };
|
|
295
295
|
}
|
|
296
296
|
function stableOsUserId() {
|
|
297
297
|
try {
|
|
@@ -631,7 +631,7 @@ function collectLocalEnvInfo() {
|
|
|
631
631
|
os: `${process.platform} ${process.arch}`,
|
|
632
632
|
node_version: process.version,
|
|
633
633
|
home_dir: homeDir,
|
|
634
|
-
agent_runtime:
|
|
634
|
+
agent_runtime: _chunkNI3QFUK7js.detectAgentRuntime.call(void 0, )
|
|
635
635
|
};
|
|
636
636
|
const env = process.env;
|
|
637
637
|
const optional = {
|
|
@@ -878,9 +878,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
878
878
|
}
|
|
879
879
|
function withAgentCommandContext(value) {
|
|
880
880
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
881
|
-
return
|
|
881
|
+
return _chunkNI3QFUK7js.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
882
882
|
...valueRecord,
|
|
883
|
-
command_context:
|
|
883
|
+
command_context: _chunkGVJVBBGVjs.resolveCliCommandContext.call(void 0, )
|
|
884
884
|
} : value;
|
|
885
885
|
}
|
|
886
886
|
function printJson(value, fields) {
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6KDOO7IM.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6A7OH2PV.mjs";
|
|
18
18
|
import {
|
|
19
19
|
autoDetectBaseUrl,
|
|
20
20
|
ensureProjectPrivatePathsIgnored,
|
|
21
21
|
resolveProjectPinTarget,
|
|
22
22
|
sdkCliStateDirPath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-5CKIO7KA.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
detectAgentRuntime
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-MP3O4ISC.mjs";
|
|
28
28
|
|
|
29
29
|
// src/cli/commands/skills.ts
|
|
30
30
|
import { spawn } from "child_process";
|
|
@@ -774,10 +774,12 @@ Authoring rules:
|
|
|
774
774
|
0 for fresh logical work, a positive integer for the maximum reusable
|
|
775
775
|
result age in seconds, or null for indefinite result reuse. A matching
|
|
776
776
|
completed operation receipt can still recover that operation after resume.
|
|
777
|
-
Read
|
|
778
|
-
|
|
779
|
-
result.
|
|
780
|
-
|
|
777
|
+
Read
|
|
778
|
+
results the way [[cli:describe]][[mcp:deepline_describe_tool]] lists them:
|
|
779
|
+
result.fields.<name>.value for a declared list or a value whose meaning
|
|
780
|
+
is known, also by field id (result.fields.person.email.value);
|
|
781
|
+
result.extractedValues.<name>.get() for other declared values. Anything
|
|
782
|
+
else is in result.response, the provider's response with its nesting kept.
|
|
781
783
|
Reuse before rebuilding: deepline.runPlay(key, 'prebuilt/<name>', input,
|
|
782
784
|
{ description }) runs a
|
|
783
785
|
prebuilt as one stage. Independent calls run together with Promise.all;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seedToolListScript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XMDBN2K7.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addDescribeOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TMVBBGSK.mjs";
|
|
7
7
|
import {
|
|
8
8
|
describeLookupsFor,
|
|
9
9
|
describeName,
|
|
10
10
|
findNamed
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MUQAKLBP.mjs";
|
|
12
12
|
import {
|
|
13
13
|
SCHEMA_LINE_LIMIT
|
|
14
14
|
} from "./chunk-JVHOS3K3.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineClient
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-44BEFU62.mjs";
|
|
18
18
|
import {
|
|
19
19
|
printCommandEnvelope
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-6A7OH2PV.mjs";
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/describe.ts
|
|
23
23
|
import { writeFileSync } from "fs";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkVZX4P5FTjs = require('./chunk-VZX4P5FT.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkZAB6KCZWjs = require('./chunk-ZAB6KCZW.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkL3U44YVOjs = require('./chunk-L3U44YVO.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
var _chunkIAYSWZDJjs = require('./chunk-IAYSWZDJ.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkZIMCLWEWjs = require('./chunk-ZIMCLWEW.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkO4ZMADW4js = require('./chunk-O4ZMADW4.js');
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/describe.ts
|
|
23
23
|
var _fs = require('fs');
|
|
@@ -26,16 +26,16 @@ function nothingNamed(name) {
|
|
|
26
26
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
27
27
|
}
|
|
28
28
|
function findNamed2(name, options) {
|
|
29
|
-
return
|
|
29
|
+
return _chunkL3U44YVOjs.findNamed.call(void 0, name, options, _chunkL3U44YVOjs.describeLookupsFor.call(void 0, new (0, _chunkZIMCLWEWjs.DeeplineClient)()));
|
|
30
30
|
}
|
|
31
31
|
async function describeAnything(name, options, onMissing) {
|
|
32
|
-
const client = new (0,
|
|
33
|
-
const lookups =
|
|
34
|
-
const outcome = await
|
|
32
|
+
const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
|
|
33
|
+
const lookups = _chunkL3U44YVOjs.describeLookupsFor.call(void 0, client);
|
|
34
|
+
const outcome = await _chunkL3U44YVOjs.describeName.call(void 0, name, options, {
|
|
35
35
|
...lookups,
|
|
36
36
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
37
37
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
38
|
-
seedStarterScript:
|
|
38
|
+
seedStarterScript: _chunkVZX4P5FTjs.seedToolListScript
|
|
39
39
|
});
|
|
40
40
|
if (outcome.status === "missing") {
|
|
41
41
|
if (onMissing) return onMissing();
|
|
@@ -60,18 +60,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
60
60
|
` : text;
|
|
61
61
|
_fs.writeFileSync.call(void 0, path, content);
|
|
62
62
|
const bytes = Buffer.byteLength(content);
|
|
63
|
-
|
|
63
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
64
64
|
{ path, bytes },
|
|
65
65
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
66
66
|
` }
|
|
67
67
|
);
|
|
68
68
|
return 0;
|
|
69
69
|
}
|
|
70
|
-
|
|
70
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
71
71
|
return 0;
|
|
72
72
|
}
|
|
73
73
|
function registerDescribeCommand(program) {
|
|
74
|
-
|
|
74
|
+
_chunkZAB6KCZWjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
75
75
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
76
76
|
).addHelpText(
|
|
77
77
|
"after",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6A7OH2PV.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MP3O4ISC.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkBMUDQMYEjs = require('./chunk-BMUDQMYE.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkJKVRBCZLjs = require('./chunk-JKVRBCZL.js');
|
|
@@ -11,7 +11,7 @@ var _chunkJKVRBCZLjs = require('./chunk-JKVRBCZL.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkO4ZMADW4js = require('./chunk-O4ZMADW4.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 = _chunkO4ZMADW4js.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 ? _chunkO4ZMADW4js.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkO4ZMADW4js.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 = _chunkBMUDQMYEjs.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.`
|
|
@@ -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 : _chunkBMUDQMYEjs.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 : _chunkO4ZMADW4js.parseJsonFields.call(void 0,
|
|
990
|
+
[...fullJson ? ["--full"] : [], ..._chunkO4ZMADW4js.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 || _chunkO4ZMADW4js.argsWantJson.call(void 0, []) : explicitJson;
|
|
996
996
|
const verboseLogs = Boolean(
|
|
997
997
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
998
998
|
);
|