deepline 0.3.553 → 0.3.554
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/release.ts +1 -1
- package/dist/cli/{auth-I3QAU4RV.mjs → auth-HJUNW7T2.mjs} +5 -5
- package/dist/cli/auth-SP6SKZJZ.js +44 -0
- package/dist/cli/{billing-YGFFVAIC.js → billing-4TSA5HEC.js} +102 -102
- package/dist/cli/{billing-3IC54OQQ.mjs → billing-SJYRJAQ2.mjs} +9 -9
- package/dist/cli/{chunk-2B5B5KAW.js → chunk-2HMN5H54.js} +53 -50
- package/dist/cli/{chunk-72V4PDH5.mjs → chunk-2ORPFQUA.mjs} +3 -3
- package/dist/cli/{chunk-BVDKFS2T.js → chunk-2OVHNHCF.js} +2 -2
- package/dist/cli/{chunk-Z7AOIHFE.mjs → chunk-33WRQSQ2.mjs} +4 -0
- package/dist/cli/{chunk-HVI55MTK.js → chunk-3IKGZ4CG.js} +20 -10
- package/dist/cli/{chunk-INEMTYMT.mjs → chunk-3Z4VFCXO.mjs} +7 -7
- package/dist/cli/{chunk-HEBO3XNZ.js → chunk-4DOFGIEJ.js} +12 -12
- package/dist/cli/{chunk-LFOERUQY.mjs → chunk-52Q5KETX.mjs} +1 -1
- package/dist/cli/{chunk-AGLR6QVN.js → chunk-5CYZHOKI.js} +4 -4
- package/dist/cli/{chunk-HSJ6X2AQ.mjs → chunk-62AUAWQV.mjs} +4 -4
- package/dist/cli/{chunk-NDNHYONK.mjs → chunk-62HWJXST.mjs} +2 -2
- package/dist/cli/{chunk-QI5S5HWB.mjs → chunk-6EXOAT6T.mjs} +2 -2
- package/dist/cli/{chunk-Y6SP3JMI.js → chunk-7OWI736E.js} +30 -30
- package/dist/cli/{chunk-DZA7RFGL.mjs → chunk-B6HO2XWH.mjs} +13 -13
- package/dist/cli/{chunk-A7DLBE5K.mjs → chunk-BOZAP2EM.mjs} +10 -7
- package/dist/cli/chunk-BVXIGOBZ.js +32 -0
- package/dist/cli/{chunk-QG6JIWUL.mjs → chunk-D6Z6POKE.mjs} +5 -5
- package/dist/cli/{chunk-4BFTDNHU.mjs → chunk-DSKSFFK2.mjs} +1 -1
- package/dist/cli/{chunk-JLGP5XAJ.js → chunk-DUBXUAAO.js} +5 -5
- package/dist/cli/{chunk-IMX7J4DU.js → chunk-E74KGKFZ.js} +5 -5
- package/dist/cli/{chunk-YUA6HA6D.js → chunk-ECHKAC7M.js} +2 -2
- package/dist/cli/{chunk-IH6GDNKW.js → chunk-EN5NHCCQ.js} +17 -17
- package/dist/cli/{chunk-CAEBJOYU.mjs → chunk-F7CMRKSK.mjs} +1 -1
- package/dist/cli/{chunk-SBH4CKPN.js → chunk-FBAFX43W.js} +10 -10
- package/dist/cli/{chunk-GAVZ4EOD.mjs → chunk-FXQ3JKE3.mjs} +1 -1
- package/dist/cli/{chunk-55F6HNOY.mjs → chunk-GA2M3G3Y.mjs} +4 -4
- package/dist/cli/{chunk-Q6Z6N3A7.js → chunk-GHT2NDL7.js} +9 -9
- package/dist/cli/{chunk-WOCHZCUJ.js → chunk-GRZENGNE.js} +2 -2
- package/dist/cli/{chunk-7O6J6A7P.js → chunk-IVZKMJUK.js} +4 -0
- package/dist/cli/{chunk-SG3LUONJ.mjs → chunk-KVBQY4ST.mjs} +2 -2
- package/dist/cli/{chunk-AGIQDA2T.mjs → chunk-KZHBDMGF.mjs} +2 -2
- package/dist/cli/{chunk-TFEXSHPM.js → chunk-LY5MMXFF.js} +28 -14
- package/dist/cli/{chunk-RTV4RF7N.js → chunk-M7STM3MZ.js} +26 -26
- package/dist/cli/{chunk-7GEMELKI.js → chunk-OPTV7D2V.js} +431 -330
- package/dist/cli/{chunk-CACFJODG.js → chunk-OVEYWO4H.js} +8 -8
- package/dist/cli/{chunk-4HYNMXXF.mjs → chunk-PC2FTUCP.mjs} +2 -2
- package/dist/cli/{chunk-4747TPLV.js → chunk-PQQMPUCZ.js} +3 -3
- package/dist/cli/{chunk-45OAVGU6.mjs → chunk-Q7ACILL2.mjs} +2 -2
- package/dist/cli/{chunk-RMNOZKRI.mjs → chunk-RBBTCYQB.mjs} +3 -3
- package/dist/cli/{chunk-7YRJ5UC4.js → chunk-RTHMGSZX.js} +20 -20
- package/dist/cli/{chunk-OTV2UUKW.mjs → chunk-S6W6SJ6E.mjs} +1 -1
- package/dist/cli/chunk-STXDSVQZ.mjs +32 -0
- package/dist/cli/{chunk-UEVKMZLR.mjs → chunk-TGUQET3O.mjs} +14 -4
- package/dist/cli/{chunk-74RES4DS.js → chunk-TJ6HLN56.js} +5 -5
- package/dist/cli/{chunk-IUOGII7D.js → chunk-TOO3YM5N.js} +6 -6
- package/dist/cli/{chunk-UVQJYV76.mjs → chunk-UBBYHB2B.mjs} +2 -2
- package/dist/cli/{chunk-AGICYWGN.mjs → chunk-UC4BDZKI.mjs} +2 -2
- package/dist/cli/{chunk-6NE3RRRY.js → chunk-UNNOZKRT.js} +1 -1
- package/dist/cli/{chunk-FM7LPUPA.js → chunk-UOT7HPBH.js} +41 -41
- package/dist/cli/{chunk-DP2VH7CO.js → chunk-UYCZFQYQ.js} +11 -11
- package/dist/cli/{chunk-MLABYI4M.js → chunk-VIUUTEHY.js} +3 -3
- package/dist/cli/{chunk-LH5PZKER.mjs → chunk-VLO5NFH2.mjs} +1 -1
- package/dist/cli/{chunk-JJGWHITQ.mjs → chunk-VQ75KX7G.mjs} +2 -2
- package/dist/cli/{chunk-3NTP2OSG.js → chunk-VV4XGZ24.js} +13 -13
- package/dist/cli/{chunk-LRDHPOZW.js → chunk-W6CZDTIR.js} +53 -53
- package/dist/cli/{chunk-7SERLBNR.js → chunk-WL7P32PI.js} +20 -20
- package/dist/cli/{chunk-4SMCFQ23.mjs → chunk-XD3MFTHA.mjs} +1 -1
- package/dist/cli/{chunk-E7WZOX2A.mjs → chunk-XFZX6FNM.mjs} +20 -6
- package/dist/cli/{chunk-DP64MD6U.mjs → chunk-XU6QNM4D.mjs} +1 -1
- package/dist/cli/{chunk-TN4TY6TT.mjs → chunk-YCOGPOUX.mjs} +2 -2
- package/dist/cli/{chunk-XLIHTJVM.js → chunk-YQKCH4R7.js} +20 -20
- package/dist/cli/{chunk-Z6XPSHKM.mjs → chunk-YY55NYAH.mjs} +133 -32
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{concurrent-runs-help-DNV2X5AZ.mjs → concurrent-runs-help-O3Q5IPLF.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-ZFRZWX5V.js +22 -0
- package/dist/cli/{csv-SA6ELJY6.js → csv-4ZQ2RATI.js} +13 -13
- package/dist/cli/{csv-ZXZGHWOM.mjs → csv-Y3BFPEM6.mjs} +4 -4
- package/dist/cli/{db-A54SP6AD.mjs → db-3JYY4JNN.mjs} +7 -7
- package/dist/cli/{db-JHFEIQBU.js → db-VEIFS4M7.js} +29 -29
- package/dist/cli/describe-EVJ4MFVU.mjs +50 -0
- package/dist/cli/describe-FG625QPF.js +50 -0
- package/dist/cli/describe-core.js +5 -5
- package/dist/cli/describe-core.mjs +4 -4
- package/dist/cli/{executions-TLFZRHBJ.js → executions-HPZXOOVX.js} +8 -8
- package/dist/cli/{executions-HL2M2DFU.mjs → executions-PCXZKEHM.mjs} +6 -6
- package/dist/cli/{feedback-QMBTNXVG.mjs → feedback-Y6VKZNY6.mjs} +6 -6
- package/dist/cli/{feedback-5UEX5UZK.js → feedback-ZKFHFVL6.js} +14 -14
- package/dist/cli/git-RUBMALLH.js +26 -0
- package/dist/cli/{git-LKGXVIVC.mjs → git-UMPR2QYC.mjs} +5 -5
- package/dist/cli/index.js +147 -147
- package/dist/cli/index.mjs +46 -46
- package/dist/cli/{integrations-6RUTLMN7.js → integrations-3GQCTRTF.js} +15 -15
- package/dist/cli/{integrations-FGGRVUJ7.mjs → integrations-V3TM6XAB.mjs} +7 -7
- package/dist/cli/{legacy-noops-YIPRMVXZ.mjs → legacy-noops-JZBUD7ZE.mjs} +6 -6
- package/dist/cli/{legacy-noops-J3Z7QRWZ.js → legacy-noops-VYCO7NGW.js} +9 -9
- package/dist/cli/{mcp-6LWFP7RW.js → mcp-4OIWTCE6.js} +24 -24
- package/dist/cli/{mcp-CHDYFO7F.mjs → mcp-PH4KZ76P.mjs} +4 -4
- package/dist/cli/{monitors-STM6A7OU.js → monitors-E2A6VPBY.js} +100 -100
- package/dist/cli/{monitors-UGRY2BXI.mjs → monitors-SSMGIDGX.mjs} +7 -7
- package/dist/cli/{org-3SYOUQCX.mjs → org-SFDKSK5D.mjs} +6 -6
- package/dist/cli/{org-ZOBSNSIB.js → org-WUDZGWBT.js} +121 -121
- package/dist/cli/{outcomes-Z3P2JE67.mjs → outcomes-QT7LQBPK.mjs} +6 -6
- package/dist/cli/{outcomes-H4YYAT5X.js → outcomes-Y7SZTLSL.js} +14 -14
- package/dist/cli/{play-SN5YWLS7.mjs → play-EK7KSFPL.mjs} +21 -21
- package/dist/cli/{play-SM4CW2GS.js → play-GDNHCRRR.js} +372 -372
- package/dist/cli/{providers-WZ4YBR5Y.mjs → providers-FVZLRXAU.mjs} +6 -6
- package/dist/cli/{providers-WZARYMCF.js → providers-ZKOSECLV.js} +9 -9
- package/dist/cli/{quickstart-PS4YHQJ6.js → quickstart-KSDKIXYD.js} +6 -6
- package/dist/cli/{quickstart-2575BNKA.mjs → quickstart-UJZ6PIQV.mjs} +4 -4
- package/dist/cli/{run-ZUHCZOJS.mjs → run-E7MZ7P35.mjs} +30 -28
- package/dist/cli/{run-FLZ6OTM7.js → run-PD2BBG6S.js} +51 -49
- package/dist/cli/search-TKSPTPHA.js +32 -0
- package/dist/cli/{search-HLPPKQEO.mjs → search-VTFUFTOY.mjs} +7 -7
- package/dist/cli/{search-output-RXJLU36B.js → search-output-G2AGDCOY.js} +9 -9
- package/dist/cli/{search-output-PDAXNOGP.mjs → search-output-PFVXQCWA.mjs} +6 -6
- package/dist/cli/{secrets-CGELYQ3H.mjs → secrets-7CIMEMX7.mjs} +6 -6
- package/dist/cli/{secrets-QJNG7G2Y.js → secrets-BCOQ4U7U.js} +15 -15
- package/dist/cli/sessions-4CO556VD.js +23 -0
- package/dist/cli/{sessions-ELMWVR4M.mjs → sessions-IUCQZEF7.mjs} +6 -6
- package/dist/cli/{settings-RR3LZXL7.mjs → settings-KZN62UQK.mjs} +12 -12
- package/dist/cli/{settings-44I44P5F.js → settings-REL4736M.js} +85 -85
- package/dist/cli/{setup-KGWRWH4B.mjs → setup-2P7OG3OU.mjs} +11 -14
- package/dist/cli/{setup-KTEYOCJO.js → setup-2XIVBBCS.js} +51 -54
- package/dist/cli/skills-JYT5DEY6.js +37 -0
- package/dist/cli/{skills-FPRID2I5.mjs → skills-VIGNDJKI.mjs} +7 -7
- package/dist/cli/tools-NTVUQ2TG.js +57 -0
- package/dist/cli/{tools-PI4WMDLY.mjs → tools-W3QT5EJY.mjs} +20 -20
- package/dist/cli/{update-VJOJAZ7B.mjs → update-GZVBVMY3.mjs} +9 -9
- package/dist/cli/update-TWJZPUZM.js +37 -0
- package/dist/cli/{views-OVPSINZO.mjs → views-BOGEH424.mjs} +6 -6
- package/dist/cli/{views-NTUOLNQU.js → views-TOLJNLSV.js} +21 -21
- package/dist/cli/{workflow-2UDYDM6F.js → workflow-ENWFRK5M.js} +17 -17
- package/dist/cli/{workflow-7OEFNXZC.mjs → workflow-VDG2FDQV.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +122 -122
- 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.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-MQCN7WGZ.js +0 -44
- package/dist/cli/chunk-AID3OYVJ.js +0 -8
- package/dist/cli/chunk-OVDNJAJN.mjs +0 -8
- package/dist/cli/concurrent-runs-help-CFJH4KXV.js +0 -22
- package/dist/cli/describe-PHQ33AGS.mjs +0 -50
- package/dist/cli/describe-RHJ4XRFI.js +0 -50
- package/dist/cli/git-4JWOOHBG.js +0 -26
- package/dist/cli/search-JJWVHR3N.js +0 -32
- package/dist/cli/sessions-DHTBT2GN.js +0 -23
- package/dist/cli/skills-EPZPEXI2.js +0 -37
- package/dist/cli/tools-IGQQ5TML.js +0 -57
- package/dist/cli/update-4RNCVYGE.js +0 -37
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
concurrentRunsLine
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-Q7ACILL2.mjs";
|
|
4
|
+
import "./chunk-2ORPFQUA.mjs";
|
|
5
5
|
import {
|
|
6
6
|
DeeplineClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6EXOAT6T.mjs";
|
|
8
8
|
import {
|
|
9
9
|
PUBLIC_PLAN_SKUS,
|
|
10
10
|
iterateCursorPages,
|
|
11
11
|
requireBillingIdempotencyKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VLO5NFH2.mjs";
|
|
13
13
|
import "./chunk-FZHMNK6F.mjs";
|
|
14
14
|
import "./chunk-5TYLSS4Q.mjs";
|
|
15
15
|
import "./chunk-PSX3WHIH.mjs";
|
|
16
16
|
import {
|
|
17
17
|
PLAY_RUNTIME_PRICING_NOTE
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-33WRQSQ2.mjs";
|
|
19
19
|
import {
|
|
20
20
|
PRICING_PAGE_NOTE
|
|
21
21
|
} from "./chunk-2RIKOPIM.mjs";
|
|
@@ -32,9 +32,9 @@ import {
|
|
|
32
32
|
openInBrowser,
|
|
33
33
|
printCommandEnvelope,
|
|
34
34
|
shouldEmitJson
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-UC4BDZKI.mjs";
|
|
36
|
+
import "./chunk-52Q5KETX.mjs";
|
|
37
|
+
import "./chunk-S6W6SJ6E.mjs";
|
|
38
38
|
import {
|
|
39
39
|
AuthError,
|
|
40
40
|
ConfigError
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
DeeplineError
|
|
45
45
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
46
46
|
import "./chunk-2MGZAI54.mjs";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-FXQ3JKE3.mjs";
|
|
48
48
|
import "./chunk-WZYKRD7T.mjs";
|
|
49
49
|
import "./chunk-KRD6H754.mjs";
|
|
50
50
|
|
|
@@ -1,9 +1,9 @@
|
|
|
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 _chunkPQQMPUCZjs = require('./chunk-PQQMPUCZ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkYQKCH4R7js = require('./chunk-YQKCH4R7.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -18,20 +18,20 @@ var _chunkXLIHTJVMjs = require('./chunk-XLIHTJVM.js');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkVIUUTEHYjs = require('./chunk-VIUUTEHY.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunk5CYZHOKIjs = require('./chunk-5CYZHOKI.js');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkUNNOZKRTjs = require('./chunk-UNNOZKRT.js');
|
|
35
35
|
|
|
36
36
|
// src/compat.ts
|
|
37
37
|
var _crypto = require('crypto');
|
|
@@ -66,7 +66,7 @@ function shouldSkipCompatibilityCheck() {
|
|
|
66
66
|
return value === "1" || value === "true" || value === "yes";
|
|
67
67
|
}
|
|
68
68
|
function sdkCompatibilityCachePath(baseUrl, homeDir = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.HOME, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || _os.homedir.call(void 0, )) {
|
|
69
|
-
return _path.join.call(void 0,
|
|
69
|
+
return _path.join.call(void 0, _chunkVIUUTEHYjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
|
|
70
70
|
}
|
|
71
71
|
function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'access', _11 => _11.env, 'access', _12 => _12.HOME, 'optionalAccess', _13 => _13.trim, 'call', _14 => _14()]) || _os.homedir.call(void 0, )) {
|
|
72
72
|
return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
|
|
@@ -74,9 +74,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
|
|
|
74
74
|
function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
75
75
|
return JSON.stringify({
|
|
76
76
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
77
|
-
version:
|
|
78
|
-
apiContract:
|
|
79
|
-
apiMajor:
|
|
77
|
+
version: _chunk5CYZHOKIjs.SDK_VERSION,
|
|
78
|
+
apiContract: _chunk5CYZHOKIjs.SDK_API_CONTRACT,
|
|
79
|
+
apiMajor: _chunk5CYZHOKIjs.SDK_API_MAJOR,
|
|
80
80
|
command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
|
|
81
81
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
82
82
|
});
|
|
@@ -84,8 +84,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
|
84
84
|
function legacyCompatibilityCacheKey(baseUrl, command) {
|
|
85
85
|
return JSON.stringify({
|
|
86
86
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
87
|
-
version:
|
|
88
|
-
apiContract:
|
|
87
|
+
version: _chunk5CYZHOKIjs.SDK_VERSION,
|
|
88
|
+
apiContract: _chunk5CYZHOKIjs.SDK_API_CONTRACT,
|
|
89
89
|
command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
|
|
90
90
|
});
|
|
91
91
|
}
|
|
@@ -110,7 +110,7 @@ function isSavedWithin(savedAt, windowMs, now) {
|
|
|
110
110
|
}
|
|
111
111
|
var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
112
112
|
function claimUpdateAdvisory(baseUrl, now = Date.now()) {
|
|
113
|
-
const path = _path.join.call(void 0,
|
|
113
|
+
const path = _path.join.call(void 0, _chunkVIUUTEHYjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
|
|
114
114
|
try {
|
|
115
115
|
const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
|
|
116
116
|
if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
|
|
@@ -195,7 +195,7 @@ async function attemptSdkCompatibility(baseUrl, options, timeoutMs) {
|
|
|
195
195
|
const timeout = setTimeout(() => controller.abort(), timeoutMs);
|
|
196
196
|
try {
|
|
197
197
|
const url = new URL("/api/v2/sdk/compat", baseUrl);
|
|
198
|
-
url.searchParams.set("version",
|
|
198
|
+
url.searchParams.set("version", _chunk5CYZHOKIjs.SDK_VERSION);
|
|
199
199
|
if (_optionalChain([options, 'access', _34 => _34.command, 'optionalAccess', _35 => _35.trim, 'call', _36 => _36()])) {
|
|
200
200
|
url.searchParams.set("command", options.command.trim());
|
|
201
201
|
}
|
|
@@ -203,7 +203,7 @@ async function attemptSdkCompatibility(baseUrl, options, timeoutMs) {
|
|
|
203
203
|
url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
|
|
204
204
|
url.searchParams.set(
|
|
205
205
|
"skills_cli_capability",
|
|
206
|
-
String(
|
|
206
|
+
String(_chunkUNNOZKRTjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
|
|
207
207
|
);
|
|
208
208
|
}
|
|
209
209
|
if (options.catalog) {
|
|
@@ -215,14 +215,14 @@ async function attemptSdkCompatibility(baseUrl, options, timeoutMs) {
|
|
|
215
215
|
const response = await fetch(url, {
|
|
216
216
|
method: "GET",
|
|
217
217
|
headers: {
|
|
218
|
-
...
|
|
219
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
220
|
-
"X-Deepline-SDK-Version":
|
|
221
|
-
"X-Deepline-API-Major": String(
|
|
222
|
-
"X-Deepline-API-Contract":
|
|
218
|
+
..._chunk5CYZHOKIjs.deploymentProtectionHeaders.call(void 0, ),
|
|
219
|
+
"User-Agent": `deepline-ts-sdk/${_chunk5CYZHOKIjs.SDK_VERSION}`,
|
|
220
|
+
"X-Deepline-SDK-Version": _chunk5CYZHOKIjs.SDK_VERSION,
|
|
221
|
+
"X-Deepline-API-Major": String(_chunk5CYZHOKIjs.SDK_API_MAJOR),
|
|
222
|
+
"X-Deepline-API-Contract": _chunk5CYZHOKIjs.SDK_API_CONTRACT,
|
|
223
223
|
"X-Deepline-CLI-Update-Preferences": "1",
|
|
224
224
|
"X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
|
|
225
|
-
...options.catalog ? { Authorization: `Bearer ${
|
|
225
|
+
...options.catalog ? { Authorization: `Bearer ${_chunkVIUUTEHYjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
|
|
226
226
|
..._optionalChain([options, 'access', _37 => _37.catalog, 'optionalAccess', _38 => _38.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
|
|
227
227
|
},
|
|
228
228
|
signal: controller.signal
|
|
@@ -238,7 +238,7 @@ async function attemptSdkCompatibility(baseUrl, options, timeoutMs) {
|
|
|
238
238
|
if (!raw || typeof raw.ok !== "boolean" || typeof raw.status !== "string") {
|
|
239
239
|
return {
|
|
240
240
|
ok: false,
|
|
241
|
-
transient:
|
|
241
|
+
transient: _chunkVIUUTEHYjs.TRANSIENT_HTTP_STATUSES.has(response.status),
|
|
242
242
|
error: new Error(
|
|
243
243
|
`SDK compatibility endpoint returned a non-policy response (HTTP ${response.status}).`
|
|
244
244
|
)
|
|
@@ -309,8 +309,8 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
309
309
|
}
|
|
310
310
|
async function requireSdkCompatibility(baseUrl, options = {}) {
|
|
311
311
|
if (shouldSkipCompatibilityCheck()) return null;
|
|
312
|
-
const maxRetries = _nullishCoalesce(options.maxRetries, () => (
|
|
313
|
-
const backoffMs = _nullishCoalesce(options.backoffMs, () => (
|
|
312
|
+
const maxRetries = _nullishCoalesce(options.maxRetries, () => ( _chunkVIUUTEHYjs.DEFAULT_MAX_RETRIES));
|
|
313
|
+
const backoffMs = _nullishCoalesce(options.backoffMs, () => ( _chunkVIUUTEHYjs.defaultRetryBackoffMs));
|
|
314
314
|
let attempt;
|
|
315
315
|
let attempts = 0;
|
|
316
316
|
for (; ; ) {
|
|
@@ -318,7 +318,7 @@ async function requireSdkCompatibility(baseUrl, options = {}) {
|
|
|
318
318
|
attempt = await attemptSdkCompatibility(
|
|
319
319
|
baseUrl,
|
|
320
320
|
options,
|
|
321
|
-
_nullishCoalesce(options.attemptTimeoutMs, () => (
|
|
321
|
+
_nullishCoalesce(options.attemptTimeoutMs, () => ( _chunkVIUUTEHYjs.DEFAULT_TIMEOUT))
|
|
322
322
|
);
|
|
323
323
|
if (attempt.ok) return acceptSdkCompatibility(baseUrl, options, attempt);
|
|
324
324
|
if (!attempt.transient || attempts > maxRetries) break;
|
|
@@ -467,7 +467,7 @@ function skillsSourceUrl(baseUrl) {
|
|
|
467
467
|
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
468
468
|
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
469
469
|
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
470
|
-
const agents = _nullishCoalesce(options.agents, () => (
|
|
470
|
+
const agents = _nullishCoalesce(options.agents, () => ( _chunkVIUUTEHYjs.DEFAULT_SKILL_AGENTS));
|
|
471
471
|
const values = {
|
|
472
472
|
skills_index_url: skillsIndexUrl(baseUrl),
|
|
473
473
|
skills_source_url: skillsSourceUrl(baseUrl),
|
|
@@ -524,8 +524,11 @@ function resolveShellSpawn(command, args, platform = process.platform, env = pro
|
|
|
524
524
|
return { command: executable, args: [...args], shell: false };
|
|
525
525
|
}
|
|
526
526
|
return {
|
|
527
|
-
command:
|
|
528
|
-
|
|
527
|
+
command: [
|
|
528
|
+
escapeCmdCommand(executable),
|
|
529
|
+
...args.map((arg) => escapeCmdArgument(arg))
|
|
530
|
+
].join(" "),
|
|
531
|
+
args: [],
|
|
529
532
|
shell: true
|
|
530
533
|
};
|
|
531
534
|
}
|
|
@@ -595,25 +598,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
|
|
|
595
598
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
596
599
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
597
600
|
function shouldSkipSkillsSync() {
|
|
598
|
-
if (
|
|
601
|
+
if (_chunk5CYZHOKIjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
599
602
|
return true;
|
|
600
603
|
}
|
|
601
604
|
const value = _optionalChain([process, 'access', _62 => _62.env, 'access', _63 => _63.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _64 => _64.trim, 'call', _65 => _65(), 'access', _66 => _66.toLowerCase, 'call', _67 => _67()]);
|
|
602
605
|
return value === "1" || value === "true" || value === "yes" || value === "on" || !isCliSkillsSyncEnabled();
|
|
603
606
|
}
|
|
604
607
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
605
|
-
return _path.join.call(void 0,
|
|
608
|
+
return _path.join.call(void 0, _chunkVIUUTEHYjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
606
609
|
}
|
|
607
610
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
608
611
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
609
|
-
var agentLeaseSegment =
|
|
612
|
+
var agentLeaseSegment = _chunkVIUUTEHYjs.skillsAgentPathSegment;
|
|
610
613
|
function sortedLeaseAgents(agents) {
|
|
611
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
614
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunkVIUUTEHYjs.KNOWN_SKILL_AGENTS] : agents;
|
|
612
615
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
613
616
|
}
|
|
614
617
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
615
618
|
return _path.join.call(void 0,
|
|
616
|
-
|
|
619
|
+
_chunkVIUUTEHYjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
617
620
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
618
621
|
);
|
|
619
622
|
}
|
|
@@ -772,7 +775,7 @@ var SkillsStateUnavailableError = class extends Error {
|
|
|
772
775
|
constructor(baseUrl, error) {
|
|
773
776
|
const detail = error instanceof Error ? error.message : String(error);
|
|
774
777
|
super(
|
|
775
|
-
`Could not save skills state in ${
|
|
778
|
+
`Could not save skills state in ${_chunkVIUUTEHYjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
|
|
776
779
|
);
|
|
777
780
|
this.name = "SkillsStateUnavailableError";
|
|
778
781
|
}
|
|
@@ -857,7 +860,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
857
860
|
}
|
|
858
861
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
859
862
|
return _path.join.call(void 0,
|
|
860
|
-
|
|
863
|
+
_chunkVIUUTEHYjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
861
864
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
862
865
|
);
|
|
863
866
|
}
|
|
@@ -891,8 +894,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
891
894
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
892
895
|
}
|
|
893
896
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
894
|
-
if (shouldSkipSkillsSync() ||
|
|
895
|
-
const agents =
|
|
897
|
+
if (shouldSkipSkillsSync() || _chunkVIUUTEHYjs.hasActivePluginSkills.call(void 0, )) return;
|
|
898
|
+
const agents = _chunkVIUUTEHYjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
896
899
|
if (agents.length === 0) return;
|
|
897
900
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
898
901
|
}
|
|
@@ -915,7 +918,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError, sidecarPath) {
|
|
|
915
918
|
}
|
|
916
919
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
917
920
|
return _path.join.call(void 0,
|
|
918
|
-
|
|
921
|
+
_chunkVIUUTEHYjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
919
922
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
920
923
|
);
|
|
921
924
|
}
|
|
@@ -944,7 +947,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
944
947
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
945
948
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
946
949
|
const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
|
|
947
|
-
const manualCommand = _optionalChain([probes, 'optionalAccess', _71 => _71.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames,
|
|
950
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _71 => _71.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkVIUUTEHYjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
948
951
|
const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _72 => _72.bunx]) === "missing" && probes.npx === "missing" ? "neither `bunx` nor `npx` was found on PATH. Make one available." : `installer version check failed for ${Object.entries(_nullishCoalesce(probes, () => ( {}))).filter(([, result]) => result === "failed").map(([command]) => `\`${command}\``).join(" and ")}. Check those commands with --version.`;
|
|
949
952
|
notice(
|
|
950
953
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
@@ -1032,7 +1035,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
1032
1035
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
1033
1036
|
}
|
|
1034
1037
|
function isDefaultAgentSet(agents) {
|
|
1035
|
-
return agents.length ===
|
|
1038
|
+
return agents.length === _chunkVIUUTEHYjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkVIUUTEHYjs.DEFAULT_SKILL_AGENTS[index]);
|
|
1036
1039
|
}
|
|
1037
1040
|
function safeSkillFilePath(value) {
|
|
1038
1041
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1189,10 +1192,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
|
|
|
1189
1192
|
method: "POST",
|
|
1190
1193
|
headers: { "Content-Type": "application/json" },
|
|
1191
1194
|
body: JSON.stringify({
|
|
1192
|
-
sdk_cli: { version:
|
|
1195
|
+
sdk_cli: { version: _chunk5CYZHOKIjs.SDK_VERSION },
|
|
1193
1196
|
skills: {
|
|
1194
1197
|
version: localVersion,
|
|
1195
|
-
capability:
|
|
1198
|
+
capability: _chunkUNNOZKRTjs.SDK_RELEASE.packageCapabilities.skillsGuidance
|
|
1196
1199
|
}
|
|
1197
1200
|
}),
|
|
1198
1201
|
signal: controller.signal
|
|
@@ -1231,7 +1234,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1231
1234
|
}
|
|
1232
1235
|
function noInstallerProbePath(baseUrl) {
|
|
1233
1236
|
return _path.join.call(void 0,
|
|
1234
|
-
|
|
1237
|
+
_chunkVIUUTEHYjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1235
1238
|
"skills-sync-no-installer-unknown.json"
|
|
1236
1239
|
);
|
|
1237
1240
|
}
|
|
@@ -1311,7 +1314,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1311
1314
|
function resolveSkillsInstallSpawn(install, platform = process.platform) {
|
|
1312
1315
|
return resolveShellSpawn(install.command, install.args, platform);
|
|
1313
1316
|
}
|
|
1314
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1317
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkVIUUTEHYjs.DEFAULT_SKILL_AGENTS, knownProbes) {
|
|
1315
1318
|
const commands = [];
|
|
1316
1319
|
const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
|
|
1317
1320
|
if (probes.bunx === "available") {
|
|
@@ -1455,7 +1458,7 @@ function runLegacySkillsCleanup(agents) {
|
|
|
1455
1458
|
}
|
|
1456
1459
|
}
|
|
1457
1460
|
function writeSdkSkillsStatusLine(line) {
|
|
1458
|
-
const progress =
|
|
1461
|
+
const progress = _chunkPQQMPUCZjs.getActiveCliProgress.call(void 0, );
|
|
1459
1462
|
if (progress) {
|
|
1460
1463
|
progress.writeLine(line);
|
|
1461
1464
|
return;
|
|
@@ -1466,11 +1469,11 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1466
1469
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1467
1470
|
const skip = shouldSkipSkillsSync();
|
|
1468
1471
|
if (skip && !options.claim) return;
|
|
1469
|
-
const usingPluginSkills =
|
|
1472
|
+
const usingPluginSkills = _chunkVIUUTEHYjs.hasActivePluginSkills.call(void 0, );
|
|
1470
1473
|
if (usingPluginSkills) {
|
|
1471
1474
|
return;
|
|
1472
1475
|
}
|
|
1473
|
-
const agents =
|
|
1476
|
+
const agents = _chunkVIUUTEHYjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1474
1477
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1475
1478
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1476
1479
|
}
|
|
@@ -1507,7 +1510,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1507
1510
|
return;
|
|
1508
1511
|
}
|
|
1509
1512
|
try {
|
|
1510
|
-
const localVersion =
|
|
1513
|
+
const localVersion = _chunkVIUUTEHYjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1511
1514
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1512
1515
|
needsUpdate: options.update.needs_update,
|
|
1513
1516
|
remoteVersion: options.update.remote.version
|
|
@@ -1629,7 +1632,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1629
1632
|
update.remoteVersion,
|
|
1630
1633
|
agents
|
|
1631
1634
|
);
|
|
1632
|
-
void
|
|
1635
|
+
void _chunkYQKCH4R7js.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
|
|
1633
1636
|
baseUrl,
|
|
1634
1637
|
remoteSkillsVersion: update.remoteVersion,
|
|
1635
1638
|
agents,
|
|
@@ -1660,7 +1663,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1660
1663
|
notice(
|
|
1661
1664
|
publishedFailure ? `Deepline could not verify the published skills: ${detail}. The local version remains stale; it will retry automatically on a later command.` : `Deepline agent-skills refresh could not verify the five installed targets: ${detail}. The local version remains stale. After fixing the install, remove ${failedSkillsSyncPath(baseUrl, agents)} to retry this version automatically.`
|
|
1662
1665
|
);
|
|
1663
|
-
void
|
|
1666
|
+
void _chunkYQKCH4R7js.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
|
|
1664
1667
|
baseUrl,
|
|
1665
1668
|
remoteSkillsVersion: update.remoteVersion,
|
|
1666
1669
|
agents,
|
|
@@ -1673,7 +1676,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1673
1676
|
}
|
|
1674
1677
|
}
|
|
1675
1678
|
runLegacySkillsCleanup(agents);
|
|
1676
|
-
if (!
|
|
1679
|
+
if (!_chunkVIUUTEHYjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
1677
1680
|
notice(
|
|
1678
1681
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
1679
1682
|
);
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UC4BDZKI.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -22,14 +22,14 @@ import {
|
|
|
22
22
|
saveHostEnvValues,
|
|
23
23
|
saveProjectDeeplineEnvValues,
|
|
24
24
|
storedHostApiKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-52Q5KETX.mjs";
|
|
26
26
|
import {
|
|
27
27
|
SDK_API_CONTRACT,
|
|
28
28
|
SDK_VERSION,
|
|
29
29
|
connectionFailureMessage,
|
|
30
30
|
detectAgentRuntime,
|
|
31
31
|
networkCauseCode
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-S6W6SJ6E.mjs";
|
|
33
33
|
import {
|
|
34
34
|
DeeplineError
|
|
35
35
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkYQKCH4R7js = require('./chunk-YQKCH4R7.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/feedback-preferences.ts
|
|
6
6
|
|
|
@@ -57,7 +57,7 @@ function rejectRestrictedFeedback(options) {
|
|
|
57
57
|
const code = restriction === "off" ? "FEEDBACK_DISABLED" : "FEEDBACK_APPROVAL_REQUIRED";
|
|
58
58
|
const message = restriction === "off" ? 'Feedback is in mode "off". Do not ask the user if they want to send feedback. Use --requested only if they explicitly request it without being prompted.' : "Ask the user if they wish to send feedback. If they agree, rerun the send command with --requested. To change the setting, run deepline settings feedback --help. Agents must get user approval before turning feedback on.";
|
|
59
59
|
if (options.json) {
|
|
60
|
-
|
|
60
|
+
_chunkYQKCH4R7js.printCommandEnvelope.call(void 0,
|
|
61
61
|
{ ok: false, code, exitCode: 2, message },
|
|
62
62
|
{ json: true }
|
|
63
63
|
);
|
|
@@ -1041,6 +1041,10 @@ Input:
|
|
|
1041
1041
|
--input '{"email":"a@b.com"}' inline JSON object
|
|
1042
1042
|
--input @input.json read the JSON object from a file
|
|
1043
1043
|
-p email=a@b.com one key=value per -p, repeatable
|
|
1044
|
+
A -p value is text unless the tool's input schema types it as a boolean or
|
|
1045
|
+
number: -p only_verified_email=true sends true. Windows: cmd.exe has no
|
|
1046
|
+
single quotes and Windows PowerShell 5.1 strips the quotes inside JSON, so
|
|
1047
|
+
use --input "@input.json" there (PowerShell reads a bare @ as splatting).
|
|
1044
1048
|
--payload is an alias of --input. There is no --payload-file flag; use
|
|
1045
1049
|
@path. --out <file.csv> writes row-shaped output to a CSV file.
|
|
1046
1050
|
--connection <name> selects an org authorization for supported
|
|
@@ -2,7 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkLY5MMXFFjs = require('./chunk-LY5MMXFF.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _chunkBVXIGOBZjs = require('./chunk-BVXIGOBZ.js');
|
|
6
11
|
|
|
7
12
|
|
|
8
13
|
var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
|
|
@@ -168,11 +173,16 @@ function playReferenceForTool(tool) {
|
|
|
168
173
|
function playSearchCommandForToolId(toolId) {
|
|
169
174
|
return `deepline search ${JSON.stringify(toolId.replace(/_/g, " "))}`;
|
|
170
175
|
}
|
|
171
|
-
function playRunCommandForTool(tool, toolId, input) {
|
|
176
|
+
function playRunCommandForTool(tool, toolId, input, platform = process.platform) {
|
|
172
177
|
const playReference = playReferenceForTool(tool);
|
|
173
178
|
if (!playReference) return playSearchCommandForToolId(toolId);
|
|
174
|
-
|
|
175
|
-
|
|
179
|
+
if (input === void 0) {
|
|
180
|
+
return `deepline run ${playReference} ${_chunkBVXIGOBZjs.examplePlaceholderInput.call(void 0, platform)}`;
|
|
181
|
+
}
|
|
182
|
+
const { argument, file } = _chunkBVXIGOBZjs.exampleJsonInput.call(void 0, JSON.stringify(input), platform);
|
|
183
|
+
const command = `deepline run ${playReference} ${argument}`;
|
|
184
|
+
return file ? `${_chunkBVXIGOBZjs.exampleInputFileLine.call(void 0, file)}
|
|
185
|
+
${command}` : command;
|
|
176
186
|
}
|
|
177
187
|
function toolContractJsonForDescribe(tool, requestedToolId, authoringContractEdition, seedStarterScript) {
|
|
178
188
|
const toolId = String(tool.toolId || requestedToolId);
|
|
@@ -304,7 +314,7 @@ function extractorValueType(name) {
|
|
|
304
314
|
}
|
|
305
315
|
const named = NAMED_VALUE_SHAPES[definition.valueKind];
|
|
306
316
|
if (!named) return { type: "string" };
|
|
307
|
-
const { type, fields } =
|
|
317
|
+
const { type, fields } = _chunkLY5MMXFFjs.schemaField.call(void 0, name, named.schema, true);
|
|
308
318
|
return { type, ...fields ? { fields } : {}, shape: named.shape };
|
|
309
319
|
}
|
|
310
320
|
function jsonSchemaOf(wrapper) {
|
|
@@ -364,7 +374,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
364
374
|
// The server's public monitor pricing sends `display`.
|
|
365
375
|
cost: stringField(pricing, "display", "displayText") || void 0,
|
|
366
376
|
guidance: [],
|
|
367
|
-
inputs:
|
|
377
|
+
inputs: _chunkLY5MMXFFjs.schemaFields.call(void 0,
|
|
368
378
|
recordField(tool, "payload_schema", "payloadSchema")
|
|
369
379
|
),
|
|
370
380
|
outputs: [],
|
|
@@ -401,7 +411,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
401
411
|
(path) => path.replace(/^toolResponse\.raw\./, "")
|
|
402
412
|
);
|
|
403
413
|
const node = roots.flatMap((root) => paths.map((path) => schemaNodeAt(root, path))).find(isRecord);
|
|
404
|
-
const { fields, ...typed } =
|
|
414
|
+
const { fields, ...typed } = _chunkLY5MMXFFjs.schemaField.call(void 0, name, node, true);
|
|
405
415
|
const valueType = stringField(_nullishCoalesce(details.get(name), () => ( {})), "valueType");
|
|
406
416
|
const deepline = kind === "extractedValues" ? extractorValueType(name) : void 0;
|
|
407
417
|
const known = typed.type !== "unknown" ? void 0 : kind === "extractedLists" ? { type: "object[]" } : deepline;
|
|
@@ -470,7 +480,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
470
480
|
],
|
|
471
481
|
rateLimit: withPlanRateLimit(
|
|
472
482
|
recordField(recordField(tool, "pricing"), "benefit").requestsPerMinute,
|
|
473
|
-
|
|
483
|
+
_chunkLY5MMXFFjs.rateLimitSummary.call(void 0,
|
|
474
484
|
recordField(contract, "executionMetadata").configuredRateLimits
|
|
475
485
|
)
|
|
476
486
|
),
|
|
@@ -480,9 +490,9 @@ function describedTool(tool, requestedToolId) {
|
|
|
480
490
|
...connectCommand && !_optionalChain([tool, 'access', _5 => _5.auth, 'optionalAccess', _6 => _6.connectionRequired]) ? { connectCommand } : {},
|
|
481
491
|
...tool.auth ? { auth: tool.auth } : {},
|
|
482
492
|
...tool.toolUsage ? { toolUsage: tool.toolUsage } : {},
|
|
483
|
-
inputs:
|
|
493
|
+
inputs: _chunkLY5MMXFFjs.schemaFields.call(void 0, inputSchema),
|
|
484
494
|
outputs: [...lists, ...values].map(({ field }) => field),
|
|
485
|
-
rawResponse:
|
|
495
|
+
rawResponse: _chunkLY5MMXFFjs.schemaFields.call(void 0, outputSchema),
|
|
486
496
|
runner: playReference ? { via: "play", reference: playReference } : { via: "tool", toolId: String(contract.toolId), inputSchema }
|
|
487
497
|
};
|
|
488
498
|
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seedToolListScript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YY55NYAH.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addDescribeOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KVBQY4ST.mjs";
|
|
7
7
|
import {
|
|
8
8
|
describeLookupsFor,
|
|
9
9
|
describeName,
|
|
10
10
|
findNamed
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PC2FTUCP.mjs";
|
|
12
12
|
import {
|
|
13
13
|
SCHEMA_LINE_LIMIT
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XFZX6FNM.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineClient
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6EXOAT6T.mjs";
|
|
18
18
|
import {
|
|
19
19
|
failureReportHeaders,
|
|
20
20
|
isFailureReportingDisabled,
|
|
21
21
|
printCommandEnvelope
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-UC4BDZKI.mjs";
|
|
23
23
|
import {
|
|
24
24
|
autoDetectBaseUrl,
|
|
25
25
|
resolveApiKeyForBaseUrl
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-52Q5KETX.mjs";
|
|
27
27
|
|
|
28
28
|
// src/cli/commands/describe.ts
|
|
29
29
|
import { writeFileSync } from "fs";
|