deepline 0.3.466 → 0.3.468
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 +41 -2
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +325 -44
- package/dist/bundling-sources/shared_libs/plays/field-catalog.ts +15 -0
- package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +51 -6
- package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +37 -1
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +2 -1
- package/dist/bundling-sources/shared_libs/product-notifications/default-policy.ts +22 -1
- package/dist/cli/{auth-HYIPYSKK.mjs → auth-CXQRTOBC.mjs} +5 -5
- package/dist/cli/auth-MDWIVGZQ.js +41 -0
- package/dist/cli/{billing-5S6SGBUP.mjs → billing-HDKO5VQI.mjs} +44 -6
- package/dist/cli/{billing-NG62QGPT.js → billing-JSIPTXM6.js} +115 -77
- package/dist/cli/{chunk-EOKUL6XS.js → chunk-2NE3LCEA.js} +5 -5
- package/dist/cli/{chunk-22BKA2QL.js → chunk-37Z2W7OS.js} +26 -26
- package/dist/cli/{chunk-7YDN6AEK.mjs → chunk-3RGWTKK3.mjs} +10 -0
- package/dist/cli/{chunk-LDEJ4NUP.js → chunk-54CKAYKK.js} +13 -13
- package/dist/cli/{chunk-RGRSUMN6.js → chunk-54SVGPMK.js} +5 -5
- package/dist/cli/{chunk-B7BNWOG6.js → chunk-5RXVB6UK.js} +3 -3
- package/dist/cli/{chunk-QMHBWFU5.mjs → chunk-6PN2RUXL.mjs} +1 -1
- package/dist/cli/{chunk-MTH7WIE3.js → chunk-747ZYPXB.js} +53 -53
- package/dist/cli/{chunk-UHAKSLL2.mjs → chunk-7PBIHKB4.mjs} +11 -1
- package/dist/cli/{chunk-R2SQN2CD.js → chunk-AXTZID4V.js} +6 -6
- package/dist/cli/{chunk-IEQPOBTK.mjs → chunk-CHD7NMZD.mjs} +1 -1
- package/dist/cli/{chunk-V27TVT7P.mjs → chunk-CXYMJSRQ.mjs} +1 -1
- package/dist/cli/{chunk-NJ6KQLMO.mjs → chunk-DDUCF63F.mjs} +11 -11
- package/dist/cli/{chunk-CMXFOZVG.js → chunk-DQHMXKDT.js} +258 -258
- package/dist/cli/{chunk-ZBWKWMSH.js → chunk-ECY6QP3M.js} +16 -16
- package/dist/cli/{chunk-H5MYPDO2.mjs → chunk-EOWMLNCV.mjs} +1 -1
- package/dist/cli/{chunk-YHPUJI7G.mjs → chunk-ERQJLYIS.mjs} +5 -5
- package/dist/cli/{chunk-A7MWUG5H.js → chunk-EXXXRDCC.js} +1 -1
- package/dist/cli/{chunk-5EUJKY3G.mjs → chunk-F3YSH2CY.mjs} +3 -3
- package/dist/cli/{chunk-7IWYO475.js → chunk-F52TY2QC.js} +21 -21
- package/dist/cli/{chunk-QZKSG7XZ.js → chunk-FLH4D33O.js} +36 -36
- package/dist/cli/{chunk-QWMXP2IP.mjs → chunk-FPFBYOR6.mjs} +2 -2
- package/dist/cli/{chunk-OGCAGZXO.mjs → chunk-FVYAEBGO.mjs} +23 -2
- package/dist/cli/{chunk-F6H74EFB.mjs → chunk-GCHTTVC7.mjs} +2 -2
- package/dist/cli/{chunk-HIMV32ZX.js → chunk-HNP5V5BN.js} +23 -2
- package/dist/cli/{chunk-PEUWKPY4.js → chunk-LQ2KVMOD.js} +4 -4
- package/dist/cli/{chunk-6CYRIFZ3.mjs → chunk-NOQRM7LV.mjs} +2 -2
- package/dist/cli/{chunk-JLZKF7EY.js → chunk-NPZBE64X.js} +11 -1
- package/dist/cli/{chunk-VSEKVRAP.mjs → chunk-NZQPALPW.mjs} +2 -2
- package/dist/cli/{chunk-NYNNNOJW.js → chunk-OAF5U6SN.js} +51 -51
- package/dist/cli/{chunk-46YQQOTC.mjs → chunk-PZZNEIE3.mjs} +5 -5
- package/dist/cli/{chunk-6R36QIG4.mjs → chunk-Q7NNU6KB.mjs} +4 -4
- package/dist/cli/{chunk-VVCMP45C.js → chunk-QI2LOENC.js} +3 -3
- package/dist/cli/{chunk-RCMT6AZ5.mjs → chunk-QKGHYF7A.mjs} +1 -1
- package/dist/cli/{chunk-OB5NON4G.js → chunk-QWJ3V3GI.js} +8 -8
- package/dist/cli/{chunk-4QJ63YHC.js → chunk-RSMFUWCP.js} +8 -8
- package/dist/cli/{chunk-WKOWXTDR.mjs → chunk-SFWU7IJJ.mjs} +2 -2
- package/dist/cli/{chunk-L3U44YVO.js → chunk-T5GRG37B.js} +5 -5
- package/dist/cli/{chunk-JLE5UYZV.mjs → chunk-TNOTKGZC.mjs} +2 -2
- package/dist/cli/{chunk-RSXOGXGX.mjs → chunk-TVDBGEVP.mjs} +1 -1
- package/dist/cli/{chunk-SWUSDFG2.js → chunk-U37BWQZH.js} +9 -9
- package/dist/cli/{chunk-7QITO7XO.mjs → chunk-UA42Q7R3.mjs} +4 -4
- package/dist/cli/{chunk-QTTYIPFY.mjs → chunk-UNLLMHY7.mjs} +1 -1
- package/dist/cli/{chunk-FWHRCZET.mjs → chunk-UU4GMU7A.mjs} +5 -5
- package/dist/cli/{chunk-6P4OYABU.js → chunk-V6OMS7E2.js} +6 -6
- package/dist/cli/{chunk-RRCVAVM7.js → chunk-VPCS5KOF.js} +2 -2
- package/dist/cli/{chunk-SQFBLBYC.mjs → chunk-WNS5YEZN.mjs} +2 -2
- package/dist/cli/{chunk-MUQAKLBP.mjs → chunk-X3RAGNNZ.mjs} +1 -1
- package/dist/cli/{chunk-W4XWGNW4.mjs → chunk-X4U763KU.mjs} +3 -3
- package/dist/cli/{chunk-I2TCWIW2.mjs → chunk-XSX6TJUA.mjs} +1 -1
- package/dist/cli/{chunk-HOFXQYRF.js → chunk-YD2KV7RT.js} +7 -7
- package/dist/cli/{chunk-NQH7E3F2.js → chunk-YI6TIURR.js} +3 -3
- package/dist/cli/{chunk-5BEKJUOK.js → chunk-ZA6UUGOZ.js} +2 -2
- package/dist/cli/{chunk-3DVJ2IPG.js → chunk-ZJRHPVJU.js} +183 -173
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-AD2DLLLL.js → csv-EIXI4D7F.js} +13 -13
- package/dist/cli/{csv-ZGZX2IIP.mjs → csv-H2656YID.mjs} +4 -4
- package/dist/cli/{db-NBY4LHAY.js → db-7AQJE7CP.js} +27 -27
- package/dist/cli/{db-LUFEKPEK.mjs → db-CABNKWAS.mjs} +6 -6
- package/dist/cli/{describe-MLXMC47U.mjs → describe-5RUFO5ZR.mjs} +20 -20
- package/dist/cli/describe-ODBO2AMO.js +48 -0
- 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-JKVWM3P4.mjs → executions-4GUJEBEC.mjs} +6 -6
- package/dist/cli/{executions-HDJMKNBR.js → executions-OHOBXCPD.js} +8 -8
- package/dist/cli/{feedback-VXMP7HDF.js → feedback-JIJWTK2H.js} +8 -8
- package/dist/cli/{feedback-7E5Z4ZO5.mjs → feedback-N3CSL3OV.mjs} +4 -4
- package/dist/cli/git-TWNEROIX.js +25 -0
- package/dist/cli/{git-UFMRAGMY.mjs → git-Z5DTMOAQ.mjs} +5 -5
- package/dist/cli/index.js +139 -139
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-BDULCVGD.mjs → legacy-noops-XTLI64KX.mjs} +5 -5
- package/dist/cli/{legacy-noops-4QKREY4K.js → legacy-noops-ZEJRXMTS.js} +8 -8
- package/dist/cli/{monitors-S6TDJYCK.mjs → monitors-3MDJEWZB.mjs} +7 -7
- package/dist/cli/{monitors-LNNSTELC.js → monitors-E3TTJB3S.js} +91 -91
- package/dist/cli/{org-OWM3IGOK.js → org-722NMZ4T.js} +113 -72
- package/dist/cli/{org-EEEMWKQ2.mjs → org-AJUXWQ6P.mjs} +51 -10
- package/dist/cli/{pages-7JF6AKDI.js → pages-CPCWTTPD.js} +17 -17
- package/dist/cli/{pages-ZYYMQUDX.mjs → pages-Y6AC7PBJ.mjs} +6 -6
- package/dist/cli/{play-WLAFXAHR.js → play-ACQ54HNN.js} +305 -305
- package/dist/cli/{play-5Z3E7KL6.mjs → play-TYHP7UNL.mjs} +18 -18
- package/dist/cli/{providers-JUT7IYD3.mjs → providers-BSXILLKJ.mjs} +6 -6
- package/dist/cli/{providers-TTDFQQU2.js → providers-UDG7V7WU.js} +9 -9
- package/dist/cli/{quickstart-P4TL4NWJ.mjs → quickstart-66MNFG2G.mjs} +4 -4
- package/dist/cli/{quickstart-OZYEGICI.js → quickstart-ZW7VOPFN.js} +6 -6
- package/dist/cli/{run-CM6OZUBR.mjs → run-JSAI5PRF.mjs} +25 -25
- package/dist/cli/{run-BYGE4LUB.js → run-KPS3O2VA.js} +40 -40
- package/dist/cli/{search-RZRJ73YL.mjs → search-GQGB3JIE.mjs} +7 -7
- package/dist/cli/search-JUXEQ5HQ.js +32 -0
- package/dist/cli/{secrets-DHI6ZMKE.mjs → secrets-LGGKGT3A.mjs} +6 -6
- package/dist/cli/{secrets-XLTN3SCL.js → secrets-UVQKUCBM.js} +15 -15
- package/dist/cli/{sessions-MZD5WZBT.mjs → sessions-JYPDKPVA.mjs} +5 -5
- package/dist/cli/{sessions-6NCQQXVK.js → sessions-MPZ42HUS.js} +6 -6
- package/dist/cli/{settings-S6GQ4XFZ.mjs → settings-5UVSGJ72.mjs} +11 -11
- package/dist/cli/{settings-JJH72W5V.js → settings-E7VTIIRT.js} +78 -78
- package/dist/cli/{setup-ZJ4G54XN.mjs → setup-FM6VKRER.mjs} +9 -9
- package/dist/cli/{setup-3BIOG6N2.js → setup-NQ5BQ3ZY.js} +44 -44
- package/dist/cli/skills-OLIMNV35.js +31 -0
- package/dist/cli/{skills-FBH4REPB.mjs → skills-WOCXEASX.mjs} +7 -7
- package/dist/cli/tools-IZNJT6RU.js +55 -0
- package/dist/cli/{tools-J6YGZTD5.mjs → tools-QZRDZS45.mjs} +18 -18
- package/dist/cli/update-4JVVAYI4.js +33 -0
- package/dist/cli/{update-6CSRALIQ.mjs → update-OW2FEGGG.mjs} +9 -9
- package/dist/cli/{workflow-2ETKYSJV.js → workflow-QJM2ELOS.js} +17 -17
- package/dist/cli/{workflow-3ATSB7HQ.mjs → workflow-QRGUHBKL.mjs} +7 -7
- package/dist/{client-BClp2yrq.d.ts → client-B3tlWsw7.d.ts} +1 -1
- package/dist/{client-ADFHNtFM.d.mts → client-CdJR18SJ.d.mts} +1 -1
- package/dist/{client-core-DWLmmJWo.d.mts → client-core-ByJD7QXj.d.mts} +24 -2
- package/dist/{client-core-BFU73Ttw.d.ts → client-core-CxHBKfE5.d.ts} +24 -2
- package/dist/{compiler-manifest-Cs17yO-H.d.ts → compiler-manifest-D5dARg3M.d.mts} +64 -10
- package/dist/{compiler-manifest-Cs17yO-H.d.mts → compiler-manifest-D5dARg3M.d.ts} +64 -10
- package/dist/{errors-Dee-QpVS.d.ts → errors-BtHHzWL8.d.ts} +1 -1
- package/dist/{errors-qNfvQuRB.d.mts → errors-BveMVPwA.d.mts} +1 -1
- package/dist/{index-BTqNNXmC.d.mts → index-BboApDGD.d.mts} +1 -1
- package/dist/{index-DXTh1Lxe.d.ts → index-C6sovoYP.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +277 -76
- package/dist/index.mjs +239 -38
- 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-Y3UTWD3W.js +0 -41
- package/dist/cli/describe-Z66CQESH.js +0 -48
- package/dist/cli/git-NNSJKW3V.js +0 -25
- package/dist/cli/search-RIG4LTCS.js +0 -32
- package/dist/cli/skills-ODISCL7S.js +0 -31
- package/dist/cli/tools-IHBHDI4P.js +0 -55
- package/dist/cli/update-5O3HDR5O.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 _chunkVPCS5KOFjs = require('./chunk-VPCS5KOF.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkFLH4D33Ojs = require('./chunk-FLH4D33O.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk747ZYPXBjs = require('./chunk-747ZYPXB.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkYD2KV7RTjs = require('./chunk-YD2KV7RT.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkYI6TIURRjs = require('./chunk-YI6TIURR.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 = _chunk747ZYPXBjs.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 ? _chunkVPCS5KOFjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
560
|
+
const npmGlobalInstallFlags = _chunkVPCS5KOFjs.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()]) || _chunkYI6TIURRjs.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 = _chunk747ZYPXBjs.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, () => ( _chunkYI6TIURRjs.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 _chunkFLH4D33Ojs.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
|
+
_chunkYD2KV7RTjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1281
1281
|
return 0;
|
|
1282
1282
|
}
|
|
1283
1283
|
if (options.printCommand) {
|
|
1284
|
-
|
|
1284
|
+
_chunkYD2KV7RTjs.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
|
+
_chunkYD2KV7RTjs.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
|
+
_chunkYD2KV7RTjs.printCommandEnvelope.call(void 0,
|
|
1328
1328
|
{
|
|
1329
1329
|
ok: true,
|
|
1330
1330
|
pinnedVersion
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PZZNEIE3.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Q7NNU6KB.mjs";
|
|
11
11
|
import {
|
|
12
12
|
addJsonNotice,
|
|
13
13
|
isJsonOutputMode
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NOQRM7LV.mjs";
|
|
15
15
|
import {
|
|
16
16
|
resolveApiKeyForBaseUrl
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TVDBGEVP.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_VERSION
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CHD7NMZD.mjs";
|
|
21
21
|
|
|
22
22
|
// src/cli/compatibility-catalog.ts
|
|
23
23
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.468",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-LJ5747UC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GCHTTVC7.mjs";
|
|
7
7
|
import {
|
|
8
8
|
printCommandEnvelope,
|
|
9
9
|
renderCommandEnvelopeText
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NOQRM7LV.mjs";
|
|
11
11
|
import {
|
|
12
12
|
resolveConfig,
|
|
13
13
|
sdkCliStateDirPath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TVDBGEVP.mjs";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__toESM
|
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkECY6QP3Mjs = require('./chunk-ECY6QP3M.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk747ZYPXBjs = require('./chunk-747ZYPXB.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkYD2KV7RTjs = require('./chunk-YD2KV7RT.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkYI6TIURRjs = require('./chunk-YI6TIURR.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkLQ2KVMODjs = require('./chunk-LQ2KVMOD.js');
|
|
21
21
|
|
|
22
22
|
// src/cli/compatibility-catalog.ts
|
|
23
23
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -44,7 +44,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
44
44
|
async function reportAutoUpdateEvent(input) {
|
|
45
45
|
let apiKey = "";
|
|
46
46
|
try {
|
|
47
|
-
apiKey =
|
|
47
|
+
apiKey = _chunkYI6TIURRjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
48
48
|
} catch (e2) {
|
|
49
49
|
return;
|
|
50
50
|
}
|
|
@@ -60,15 +60,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
60
60
|
headers: {
|
|
61
61
|
Authorization: `Bearer ${apiKey}`,
|
|
62
62
|
"Content-Type": "application/json",
|
|
63
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
63
|
+
"User-Agent": `deepline-ts-sdk/${_chunkLQ2KVMODjs.SDK_VERSION}`,
|
|
64
64
|
"X-Deepline-Client-Family": "sdk",
|
|
65
65
|
"X-Deepline-CLI-Family": "sdk",
|
|
66
|
-
"X-Deepline-CLI-Version":
|
|
67
|
-
"X-Deepline-SDK-Version":
|
|
66
|
+
"X-Deepline-CLI-Version": _chunkLQ2KVMODjs.SDK_VERSION,
|
|
67
|
+
"X-Deepline-SDK-Version": _chunkLQ2KVMODjs.SDK_VERSION
|
|
68
68
|
},
|
|
69
69
|
body: JSON.stringify({
|
|
70
70
|
event: input.event,
|
|
71
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
71
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkLQ2KVMODjs.SDK_VERSION,
|
|
72
72
|
target_version: input.response.latest,
|
|
73
73
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
74
74
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -87,13 +87,13 @@ function envTruthy(name) {
|
|
|
87
87
|
return value === "1" || value === "true" || value === "yes";
|
|
88
88
|
}
|
|
89
89
|
function shouldSkipSelfUpdate(policy) {
|
|
90
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
90
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkECY6QP3Mjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunk747ZYPXBjs.isCiEnvironment.call(void 0, );
|
|
91
91
|
}
|
|
92
92
|
function isDowngradeAutoUpdateResponse(response) {
|
|
93
93
|
const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
|
|
94
|
-
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) ||
|
|
94
|
+
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkLQ2KVMODjs.SDK_VERSION;
|
|
95
95
|
if (!target) return false;
|
|
96
|
-
return
|
|
96
|
+
return _chunkECY6QP3Mjs.compareUpdateVersions.call(void 0, target, current) < 0;
|
|
97
97
|
}
|
|
98
98
|
function relaunchCurrentCommand(plan, runtime = {}) {
|
|
99
99
|
return new Promise((resolve) => {
|
|
@@ -146,7 +146,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
146
146
|
}
|
|
147
147
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
148
148
|
const target = response.latest;
|
|
149
|
-
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) ||
|
|
149
|
+
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkLQ2KVMODjs.SDK_VERSION;
|
|
150
150
|
process.stderr.write(
|
|
151
151
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
152
152
|
`
|
|
@@ -154,21 +154,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
154
154
|
return false;
|
|
155
155
|
}
|
|
156
156
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
157
|
-
const plan =
|
|
157
|
+
const plan = _chunkECY6QP3Mjs.resolveUpdatePlan.call(void 0, {
|
|
158
158
|
packageSpec,
|
|
159
159
|
requireVerifiedNpmOwnership: true,
|
|
160
160
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
161
161
|
});
|
|
162
|
-
if (!
|
|
162
|
+
if (!_chunkECY6QP3Mjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
163
163
|
return false;
|
|
164
164
|
}
|
|
165
165
|
if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
166
166
|
deferredAutoUpdate = async () => {
|
|
167
167
|
await applyAutoUpdate(response, baseUrl, plan, "next_command");
|
|
168
168
|
};
|
|
169
|
-
if (
|
|
169
|
+
if (_chunkYD2KV7RTjs.isJsonOutputMode.call(void 0, )) {
|
|
170
170
|
const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
|
|
171
|
-
|
|
171
|
+
_chunkYD2KV7RTjs.addJsonNotice.call(void 0, {
|
|
172
172
|
code: "sdk_update_queued",
|
|
173
173
|
message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
|
|
174
174
|
});
|
|
@@ -181,7 +181,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
181
181
|
return true;
|
|
182
182
|
}
|
|
183
183
|
async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
184
|
-
if (!
|
|
184
|
+
if (!_chunkECY6QP3Mjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
|
|
185
185
|
const autoUpdate = response.auto_update;
|
|
186
186
|
const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
|
|
187
187
|
process.stderr.write(
|
|
@@ -194,7 +194,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
194
194
|
event: "started",
|
|
195
195
|
installKind: plan.kind
|
|
196
196
|
});
|
|
197
|
-
const updateResult = await
|
|
197
|
+
const updateResult = await _chunkECY6QP3Mjs.runAutomaticUpdatePlan.call(void 0, plan);
|
|
198
198
|
if (updateResult.status === "skipped_previous_failure") {
|
|
199
199
|
void reportAutoUpdateEvent({
|
|
200
200
|
baseUrl,
|
|
@@ -245,7 +245,7 @@ var _crypto = require('crypto');
|
|
|
245
245
|
var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
|
|
246
246
|
var activeToolExecuteCommand = null;
|
|
247
247
|
function progressLine(line) {
|
|
248
|
-
if (!
|
|
248
|
+
if (!_chunkYD2KV7RTjs.isJsonOutputMode.call(void 0, )) console.error(line);
|
|
249
249
|
}
|
|
250
250
|
function beginToolExecuteCommand() {
|
|
251
251
|
if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
|
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk747ZYPXBjs = require('./chunk-747ZYPXB.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkYD2KV7RTjs = require('./chunk-YD2KV7RT.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkYI6TIURRjs = require('./chunk-YI6TIURR.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkLQ2KVMODjs = require('./chunk-LQ2KVMOD.js');
|
|
28
28
|
|
|
29
29
|
// src/cli/commands/skills.ts
|
|
30
30
|
var _child_process = require('child_process');
|
|
@@ -77,7 +77,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
77
77
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
78
78
|
}
|
|
79
79
|
function resolveLocalRoot() {
|
|
80
|
-
const target =
|
|
80
|
+
const target = _chunkYI6TIURRjs.resolveProjectPinTarget.call(void 0, );
|
|
81
81
|
if (!target.ok) {
|
|
82
82
|
throw new Error(
|
|
83
83
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -88,7 +88,7 @@ function resolveLocalRoot() {
|
|
|
88
88
|
return target.dir;
|
|
89
89
|
}
|
|
90
90
|
function detectSkillsAgents(input) {
|
|
91
|
-
const runtime = _nullishCoalesce(input.runtime, () => (
|
|
91
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunkLQ2KVMODjs.detectAgentRuntime.call(void 0, )));
|
|
92
92
|
const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
|
|
93
93
|
if (knownAgent) return [knownAgent];
|
|
94
94
|
const roots = [
|
|
@@ -103,11 +103,11 @@ function detectSkillsAgents(input) {
|
|
|
103
103
|
return detected.length > 0 ? detected : ["*"];
|
|
104
104
|
}
|
|
105
105
|
function skillsStatePathForScope(baseUrl, scope, root) {
|
|
106
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0,
|
|
106
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkYI6TIURRjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
|
|
107
107
|
}
|
|
108
108
|
function buildSkillsPlan(input) {
|
|
109
109
|
const scopeArgs = input.scope === "global" ? ["--global"] : [];
|
|
110
|
-
const legacyNames = [...
|
|
110
|
+
const legacyNames = [..._chunk747ZYPXBjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
|
|
111
111
|
(a, b) => a.localeCompare(b)
|
|
112
112
|
);
|
|
113
113
|
return {
|
|
@@ -121,7 +121,7 @@ function buildSkillsPlan(input) {
|
|
|
121
121
|
args: [
|
|
122
122
|
"exec",
|
|
123
123
|
"--yes",
|
|
124
|
-
`--package=${
|
|
124
|
+
`--package=${_chunk747ZYPXBjs.SKILLS_NPX_PACKAGE}`,
|
|
125
125
|
"--",
|
|
126
126
|
"skills",
|
|
127
127
|
"remove",
|
|
@@ -137,11 +137,11 @@ function buildSkillsPlan(input) {
|
|
|
137
137
|
args: [
|
|
138
138
|
"exec",
|
|
139
139
|
"--yes",
|
|
140
|
-
`--package=${
|
|
140
|
+
`--package=${_chunk747ZYPXBjs.SKILLS_NPX_PACKAGE}`,
|
|
141
141
|
"--",
|
|
142
142
|
"skills",
|
|
143
143
|
"add",
|
|
144
|
-
|
|
144
|
+
_chunk747ZYPXBjs.skillsSourceUrl.call(void 0, input.baseUrl),
|
|
145
145
|
"--agent",
|
|
146
146
|
...input.agents,
|
|
147
147
|
...scopeArgs,
|
|
@@ -178,7 +178,7 @@ function readSkillsInstallState(path) {
|
|
|
178
178
|
}
|
|
179
179
|
function runProcess(command, args, cwd) {
|
|
180
180
|
return new Promise((resolve, reject) => {
|
|
181
|
-
const plan =
|
|
181
|
+
const plan = _chunk747ZYPXBjs.resolveShellSpawn.call(void 0,
|
|
182
182
|
command,
|
|
183
183
|
args,
|
|
184
184
|
process.platform,
|
|
@@ -200,7 +200,7 @@ function runProcess(command, args, cwd) {
|
|
|
200
200
|
child.kill("SIGTERM");
|
|
201
201
|
reject(
|
|
202
202
|
new Error(
|
|
203
|
-
`${
|
|
203
|
+
`${_chunk747ZYPXBjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
|
|
204
204
|
)
|
|
205
205
|
);
|
|
206
206
|
}, SKILLS_PROCESS_TIMEOUT_MS);
|
|
@@ -211,7 +211,7 @@ function runProcess(command, args, cwd) {
|
|
|
211
211
|
child.once("close", (code) => {
|
|
212
212
|
clearTimeout(timeout);
|
|
213
213
|
if (code && stderr.trim()) {
|
|
214
|
-
process.stderr.write(`${
|
|
214
|
+
process.stderr.write(`${_chunk747ZYPXBjs.SKILLS_NPX_PACKAGE} exited ${code}.
|
|
215
215
|
`);
|
|
216
216
|
}
|
|
217
217
|
resolve(_nullishCoalesce(code, () => ( 1)));
|
|
@@ -225,7 +225,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
225
225
|
scope = normalizeScope(options.scope);
|
|
226
226
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
227
227
|
} catch (error) {
|
|
228
|
-
|
|
228
|
+
_chunkYD2KV7RTjs.printCommandEnvelope.call(void 0,
|
|
229
229
|
{
|
|
230
230
|
ok: false,
|
|
231
231
|
status: "failed",
|
|
@@ -237,22 +237,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
237
237
|
);
|
|
238
238
|
return 2;
|
|
239
239
|
}
|
|
240
|
-
const baseUrl =
|
|
240
|
+
const baseUrl = _chunkYI6TIURRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
241
241
|
const catalog = {
|
|
242
|
-
skillNames: [...
|
|
243
|
-
version:
|
|
242
|
+
skillNames: [..._chunk747ZYPXBjs.DEFAULT_SDK_SKILL_NAMES],
|
|
243
|
+
version: _chunkLQ2KVMODjs.SDK_VERSION
|
|
244
244
|
};
|
|
245
245
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
246
246
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
247
247
|
if (options.dryRun) {
|
|
248
|
-
|
|
248
|
+
_chunkYD2KV7RTjs.printCommandEnvelope.call(void 0,
|
|
249
249
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
250
250
|
{ json: options.json }
|
|
251
251
|
);
|
|
252
252
|
return 0;
|
|
253
253
|
}
|
|
254
|
-
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !
|
|
255
|
-
|
|
254
|
+
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunk747ZYPXBjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
255
|
+
_chunkYD2KV7RTjs.printCommandEnvelope.call(void 0,
|
|
256
256
|
{
|
|
257
257
|
ok: true,
|
|
258
258
|
status: "current",
|
|
@@ -284,10 +284,10 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
284
284
|
}
|
|
285
285
|
if (scope === "local" && root) {
|
|
286
286
|
const managedNames = [
|
|
287
|
-
.../* @__PURE__ */ new Set([...plan.skillNames, ...
|
|
287
|
+
.../* @__PURE__ */ new Set([...plan.skillNames, ..._chunk747ZYPXBjs.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
288
288
|
];
|
|
289
289
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
290
|
-
|
|
290
|
+
_chunkYI6TIURRjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
291
291
|
".deepline/",
|
|
292
292
|
...agentRoots.flatMap(
|
|
293
293
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -296,7 +296,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
296
296
|
}
|
|
297
297
|
let lease;
|
|
298
298
|
try {
|
|
299
|
-
lease = scope === "global" ? await
|
|
299
|
+
lease = scope === "global" ? await _chunk747ZYPXBjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
|
|
300
300
|
waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
|
|
301
301
|
onWait: () => process.stderr.write(
|
|
302
302
|
"Waiting for a background Deepline skills refresh to finish...\n"
|
|
@@ -304,8 +304,8 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
304
304
|
}) : { release: () => {
|
|
305
305
|
} };
|
|
306
306
|
} catch (error) {
|
|
307
|
-
if (!(error instanceof
|
|
308
|
-
|
|
307
|
+
if (!(error instanceof _chunk747ZYPXBjs.SkillsStateUnavailableError)) throw error;
|
|
308
|
+
_chunkYD2KV7RTjs.printCommandEnvelope.call(void 0,
|
|
309
309
|
{
|
|
310
310
|
ok: false,
|
|
311
311
|
status: "failed",
|
|
@@ -321,7 +321,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
321
321
|
return 5;
|
|
322
322
|
}
|
|
323
323
|
if (!lease) {
|
|
324
|
-
|
|
324
|
+
_chunkYD2KV7RTjs.printCommandEnvelope.call(void 0,
|
|
325
325
|
{
|
|
326
326
|
ok: false,
|
|
327
327
|
status: "failed",
|
|
@@ -330,7 +330,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
330
330
|
scope,
|
|
331
331
|
agents,
|
|
332
332
|
message: "A background Deepline skills refresh is still running for these agents.",
|
|
333
|
-
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${
|
|
333
|
+
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunk747ZYPXBjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
|
|
334
334
|
},
|
|
335
335
|
{ json: options.json }
|
|
336
336
|
);
|
|
@@ -367,7 +367,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
367
367
|
throw new Error("Could not install the current Deepline skills.");
|
|
368
368
|
}
|
|
369
369
|
} catch (error) {
|
|
370
|
-
|
|
370
|
+
_chunkYD2KV7RTjs.printCommandEnvelope.call(void 0,
|
|
371
371
|
{
|
|
372
372
|
ok: false,
|
|
373
373
|
status: "failed",
|
|
@@ -406,7 +406,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
406
406
|
{
|
|
407
407
|
schemaVersion: 1,
|
|
408
408
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
409
|
-
cliVersion:
|
|
409
|
+
cliVersion: _chunkLQ2KVMODjs.SDK_VERSION,
|
|
410
410
|
scope,
|
|
411
411
|
agents,
|
|
412
412
|
skillsVersion: plan.version,
|
|
@@ -419,9 +419,9 @@ async function runSkillsInstallWithLease(input) {
|
|
|
419
419
|
"utf8"
|
|
420
420
|
);
|
|
421
421
|
if (scope === "global") {
|
|
422
|
-
|
|
422
|
+
_chunk747ZYPXBjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
423
423
|
}
|
|
424
|
-
|
|
424
|
+
_chunkYD2KV7RTjs.printCommandEnvelope.call(void 0,
|
|
425
425
|
{
|
|
426
426
|
ok: true,
|
|
427
427
|
status: "complete",
|
|
@@ -452,7 +452,7 @@ function registerSkillsCommand(program) {
|
|
|
452
452
|
"after",
|
|
453
453
|
`
|
|
454
454
|
Notes:
|
|
455
|
-
This command reinstalls current Deepline-managed skills using ${
|
|
455
|
+
This command reinstalls current Deepline-managed skills using ${_chunk747ZYPXBjs.SKILLS_NPX_PACKAGE},
|
|
456
456
|
then removes legacy Deepline skill names. Local scope writes into the resolved
|
|
457
457
|
persistent project.
|
|
458
458
|
|
|
@@ -464,13 +464,13 @@ Examples:
|
|
|
464
464
|
).action(async (options) => {
|
|
465
465
|
process.exitCode = await runSkillsCommand(options);
|
|
466
466
|
});
|
|
467
|
-
program.command(
|
|
467
|
+
program.command(_chunk747ZYPXBjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
|
|
468
468
|
"--claim <token>",
|
|
469
469
|
"Owner token of the leases this child was started for."
|
|
470
470
|
).action(async (options) => {
|
|
471
471
|
const claim = _optionalChain([options, 'access', _ => _.claim, 'optionalAccess', _2 => _2.trim, 'call', _3 => _3()]);
|
|
472
472
|
if (!claim) {
|
|
473
|
-
|
|
473
|
+
_chunkYD2KV7RTjs.printCommandEnvelope.call(void 0,
|
|
474
474
|
{
|
|
475
475
|
ok: false,
|
|
476
476
|
status: "failed",
|
|
@@ -483,7 +483,7 @@ Examples:
|
|
|
483
483
|
process.exitCode = 2;
|
|
484
484
|
return;
|
|
485
485
|
}
|
|
486
|
-
await
|
|
486
|
+
await _chunk747ZYPXBjs.syncSdkSkillsIfNeeded.call(void 0, _chunkYI6TIURRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
487
487
|
mode: "inline",
|
|
488
488
|
notices: "defer",
|
|
489
489
|
claim
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NOQRM7LV.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CHD7NMZD.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -39,6 +39,23 @@ Conventions (apply to every tool):
|
|
|
39
39
|
]]
|
|
40
40
|
`;
|
|
41
41
|
var COMMAND_DOCS = {
|
|
42
|
+
"org members list": {
|
|
43
|
+
core: `Purpose: List one page of members in the authenticated workspace.
|
|
44
|
+
Input: Optional --cursor from the previous page.
|
|
45
|
+
Output: members (id, userId, role, effective grants) and cursor (null at the end).
|
|
46
|
+
Cost: Does not spend credits.`
|
|
47
|
+
},
|
|
48
|
+
"org members set-grants": {
|
|
49
|
+
core: `Purpose: Replace a workspace member's grants. Requires an admin grant.
|
|
50
|
+
Input: a member id from org members list, followed by one or more grants:
|
|
51
|
+
read (explicitly read-only tools), run (any tool and existing Plays; cannot create or edit Plays), admin (tools and workspace management), member (existing access, including Play authoring).
|
|
52
|
+
Example: deepline org members set-grants <member-id> read
|
|
53
|
+
Multiple grants are additive. Run includes read; admin includes both and can create, edit, and publish Plays.
|
|
54
|
+
Existing member roles retain their permissions, including Play authoring. Only owners may change ownership,
|
|
55
|
+
and the last owner cannot be removed. Read-only tools may still spend credits.
|
|
56
|
+
Output: ok, memberId, and the stored role.
|
|
57
|
+
Cost: This command does not spend credits.`
|
|
58
|
+
},
|
|
42
59
|
"": {
|
|
43
60
|
core: `
|
|
44
61
|
[[cli:
|
|
@@ -776,10 +793,14 @@ Authoring rules:
|
|
|
776
793
|
completed operation receipt can still recover that operation after resume.
|
|
777
794
|
Read
|
|
778
795
|
results the way [[cli:describe]][[mcp:deepline_describe_tool]] lists them:
|
|
779
|
-
result.fields.<name>.value for a
|
|
780
|
-
|
|
796
|
+
result.fields.<name>.value for a value whose meaning is known, also by
|
|
797
|
+
field id (result.fields.person.email.value). .value throws when there are
|
|
798
|
+
several; .values is always an array;
|
|
781
799
|
result.extractedValues.<name>.get() for other declared values. Anything
|
|
782
800
|
else is in result.response, the provider's response with its nesting kept.
|
|
801
|
+
For a list, result.rows() gives one record per item, in the same format
|
|
802
|
+
for every tool: row.fields.email.value, and row.response for the rest.
|
|
803
|
+
Name the list when the tool declares several: result.rows('people').
|
|
783
804
|
Reuse before rebuilding: deepline.runPlay(key, 'prebuilt/<name>', input,
|
|
784
805
|
{ description }) runs a
|
|
785
806
|
prebuilt as one stage. Independent calls run together with Promise.all;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7PBIHKB4.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TVDBGEVP.mjs";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
10
|
var DeeplineClient2 = class extends DeeplineClient {
|