deepline 0.3.580 → 0.3.582
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/bundling-sources/shared_libs/observability/scheduled-jobs.json +4 -4
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +42 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +49 -11
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +13 -4
- package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +12 -0
- package/dist/bundling-sources/shared_libs/plays/sandbox-runtime-limits.ts +20 -0
- package/dist/cli/{agents-BF5VX5ZB.js → agents-2L73CJHH.js} +81 -39
- package/dist/cli/{agents-JRFTZE7G.mjs → agents-UAXDG4FS.mjs} +51 -9
- package/dist/cli/{auth-XJXZ64R4.mjs → auth-3B2QB4UH.mjs} +5 -5
- package/dist/cli/auth-ALBG5LF4.js +44 -0
- package/dist/cli/{billing-TXJBGP2I.mjs → billing-CPBRWG3M.mjs} +11 -11
- package/dist/cli/{billing-VGMTJI7W.js → billing-E7FO622G.js} +111 -111
- package/dist/cli/{chunk-IM322G7M.mjs → chunk-2K6EIL2D.mjs} +1 -1
- package/dist/cli/{chunk-3P4QZIJ5.mjs → chunk-3DVWSTAI.mjs} +1 -1
- package/dist/cli/{chunk-3OSNEWGR.js → chunk-3EOET5UB.js} +100 -100
- package/dist/cli/{chunk-GDBNH57Z.js → chunk-3HIJNXRB.js} +10 -10
- package/dist/cli/{chunk-H3B6QM6V.mjs → chunk-4TTEAUZV.mjs} +3 -3
- package/dist/cli/{chunk-7ORX33JX.mjs → chunk-4ZAWRCB6.mjs} +5 -5
- package/dist/cli/{chunk-2ZCFAUCV.js → chunk-5436ZJPH.js} +3 -3
- package/dist/cli/{chunk-5BPJW6X5.mjs → chunk-6NEMTKTA.mjs} +5 -5
- package/dist/cli/{chunk-LRZGS6RZ.mjs → chunk-7MMEW2WU.mjs} +1 -1
- package/dist/cli/{chunk-ZR7PDXIA.mjs → chunk-7QX5PCHP.mjs} +2 -2
- package/dist/cli/{chunk-BAXLPQTM.mjs → chunk-ABJZQHON.mjs} +4 -4
- package/dist/cli/{chunk-HEZ24K5F.js → chunk-CPZL6Z7D.js} +2 -2
- package/dist/cli/{chunk-D6I7QWOZ.js → chunk-CYZSHD66.js} +2 -2
- package/dist/cli/{chunk-IERWFFDB.mjs → chunk-D7J33HTK.mjs} +5 -5
- package/dist/cli/{chunk-LHV3HPAY.js → chunk-DI5MULNX.js} +26 -26
- package/dist/cli/{chunk-YY6EB252.js → chunk-DPLYQITT.js} +2 -2
- package/dist/cli/{chunk-SQBSK74D.mjs → chunk-DSHIB2XQ.mjs} +1 -1
- package/dist/cli/{chunk-TSOXJZSW.js → chunk-EB2YLLZJ.js} +41 -41
- package/dist/cli/{chunk-WJUAVMQC.js → chunk-EGH4JNJP.js} +8 -8
- package/dist/cli/{chunk-E2G2DNAB.js → chunk-EP3GZAHK.js} +7 -7
- package/dist/cli/{chunk-MBOPKQJF.js → chunk-FBSPHBAF.js} +1 -1
- package/dist/cli/{chunk-U4VCAECC.mjs → chunk-FWB3QR7W.mjs} +1 -1
- package/dist/cli/{chunk-MP6XUVAJ.mjs → chunk-G5YU6RJ4.mjs} +2 -2
- package/dist/cli/{chunk-V5NDHTBB.js → chunk-GZBXN56A.js} +23 -23
- package/dist/cli/{chunk-DQEHBAHL.js → chunk-H3KVMALU.js} +9 -9
- package/dist/cli/{chunk-COAAKSFX.js → chunk-HP6A3JCX.js} +5 -5
- package/dist/cli/{chunk-O7AWGIDD.mjs → chunk-I5J6HGVR.mjs} +2 -2
- package/dist/cli/{chunk-ANX3PYLT.js → chunk-ISN4F6AY.js} +13 -13
- package/dist/cli/{chunk-MEDA3STC.mjs → chunk-JD7P73ZW.mjs} +1 -1
- package/dist/cli/{chunk-GE4ZEMMA.mjs → chunk-JF4DUC2F.mjs} +2 -2
- package/dist/cli/{chunk-XQUVLYOL.js → chunk-JUZIMW4S.js} +7 -7
- package/dist/cli/{chunk-NV5IJ3NY.mjs → chunk-KDITCSPN.mjs} +21 -1
- package/dist/cli/{chunk-MCYZO3RB.js → chunk-KQEW3EAU.js} +16 -16
- package/dist/cli/{chunk-IG3CXIJY.mjs → chunk-LDMCTV2Z.mjs} +1 -1
- package/dist/cli/{chunk-VF3EGTHU.mjs → chunk-LHA45DNY.mjs} +3 -3
- package/dist/cli/{chunk-XFVJ3JNA.js → chunk-MRSYC74T.js} +5 -5
- package/dist/cli/{chunk-PFNYLTCZ.js → chunk-NJGXYYHN.js} +5 -5
- package/dist/cli/{chunk-3ZBPXNSW.mjs → chunk-NVHICORD.mjs} +2 -2
- package/dist/cli/{chunk-C6YXUGX2.mjs → chunk-NZR5PBNP.mjs} +3 -3
- package/dist/cli/{chunk-FCJJPEKN.mjs → chunk-OUFOJTEJ.mjs} +5 -5
- package/dist/cli/{chunk-7HOG3JZE.mjs → chunk-PNQVB4UD.mjs} +11 -11
- package/dist/cli/{chunk-VOQWPUIF.js → chunk-POYADK77.js} +20 -20
- package/dist/cli/{chunk-LC4ETCOA.mjs → chunk-RNZXMOA6.mjs} +2 -2
- package/dist/cli/{chunk-X5RXG6VS.mjs → chunk-ROUNT4NX.mjs} +1 -1
- package/dist/cli/{chunk-ZADJC22U.js → chunk-SKKRESFB.js} +3 -3
- package/dist/cli/{chunk-BK4Z62CF.mjs → chunk-SYWLWTWM.mjs} +4 -4
- package/dist/cli/{chunk-EI7KTESB.mjs → chunk-U2QQQNWW.mjs} +2 -2
- package/dist/cli/{chunk-URZPR54R.js → chunk-V54YQHPV.js} +6 -6
- package/dist/cli/{chunk-NNWEQDZR.js → chunk-VA35T3AF.js} +20 -20
- package/dist/cli/{chunk-HLMF53HZ.mjs → chunk-XYQMOXP4.mjs} +1 -1
- package/dist/cli/{chunk-AZTQJJH7.js → chunk-Y36SQMSN.js} +22 -2
- package/dist/cli/{chunk-R77IVVEZ.js → chunk-YPP436NM.js} +53 -53
- package/dist/cli/{chunk-Z6DERGHY.js → chunk-Z3IAEHID.js} +48 -48
- package/dist/cli/{chunk-GIZIWNL5.mjs → chunk-ZARGHLZZ.mjs} +1 -1
- package/dist/cli/{chunk-6VSUP4WN.js → chunk-ZH23XGJO.js} +4 -4
- package/dist/cli/{chunk-APJ7IPRT.js → chunk-ZL3O7F5J.js} +15 -15
- package/dist/cli/command-docs.js +4 -4
- package/dist/cli/command-docs.mjs +3 -3
- package/dist/cli/concurrent-runs-help-E3YMAO5Q.js +22 -0
- package/dist/cli/{concurrent-runs-help-DSUQRWZQ.mjs → concurrent-runs-help-UFNYQYU2.mjs} +6 -6
- package/dist/cli/{csv-QNXJBT5T.mjs → csv-QSDRGLQH.mjs} +4 -4
- package/dist/cli/{csv-HSHF6JYZ.js → csv-ZI5LYFHF.js} +13 -13
- package/dist/cli/{db-RAWY3SWS.mjs → db-WVWXNNMO.mjs} +6 -6
- package/dist/cli/{db-VHYWVLLU.js → db-ZDL6Q53U.js} +27 -27
- package/dist/cli/describe-QB5T47B3.js +50 -0
- package/dist/cli/{describe-WZOVHWAM.mjs → describe-UUQBKUVL.mjs} +18 -18
- package/dist/cli/{executions-QABOXV4K.mjs → executions-QN3OYJKT.mjs} +6 -6
- package/dist/cli/{executions-DQIFH4Z6.js → executions-SCGHTWTC.js} +8 -8
- package/dist/cli/{feedback-6IER2W4G.js → feedback-6QQ7ONLW.js} +14 -14
- package/dist/cli/{feedback-DW4O63DG.mjs → feedback-7QPHLXGU.mjs} +6 -6
- package/dist/cli/git-4FXTWHXT.js +26 -0
- package/dist/cli/{git-3NAPGZGR.mjs → git-HFPJX573.mjs} +5 -5
- package/dist/cli/index.js +150 -150
- package/dist/cli/index.mjs +49 -49
- package/dist/cli/{integrations-TSRUTENK.mjs → integrations-4SZ5O24P.mjs} +7 -7
- package/dist/cli/{integrations-5LHIBBXB.js → integrations-ND2HULSH.js} +29 -29
- package/dist/cli/{legacy-noops-S22XGYGN.js → legacy-noops-GQF6AYP5.js} +9 -9
- package/dist/cli/{legacy-noops-4N63A6H7.mjs → legacy-noops-WUP3TBR2.mjs} +6 -6
- package/dist/cli/{mcp-4EJHRRFV.mjs → mcp-3GUFYGCQ.mjs} +4 -4
- package/dist/cli/{mcp-JERBGJYE.js → mcp-L3YYVEU6.js} +24 -24
- package/dist/cli/{monitors-FF35CGC4.js → monitors-CVZZN5WG.js} +100 -100
- package/dist/cli/{monitors-7BTLBD6S.mjs → monitors-OFCVJSH5.mjs} +7 -7
- package/dist/cli/{org-QYIIBKA2.mjs → org-3DTAYA52.mjs} +6 -6
- package/dist/cli/{org-ADCDO7KU.js → org-MQ5AUN7I.js} +121 -121
- package/dist/cli/{outcomes-C5DIBG4Q.mjs → outcomes-42W24EXG.mjs} +6 -6
- package/dist/cli/{outcomes-2LW4GK2L.js → outcomes-MGDUYHUD.js} +14 -14
- package/dist/cli/{play-S5MZ2GRA.js → play-IMAD7QTV.js} +342 -342
- package/dist/cli/{play-DTTDTISL.mjs → play-PD45RNYZ.mjs} +21 -21
- package/dist/cli/{providers-AXOEFQ6Q.mjs → providers-DYKHG7NV.mjs} +6 -6
- package/dist/cli/{providers-N2IWEJBW.js → providers-WONHPTRG.js} +9 -9
- package/dist/cli/{quickstart-ADWSZBV6.mjs → quickstart-5QPGHLEX.mjs} +4 -4
- package/dist/cli/{quickstart-UC5AJZWU.js → quickstart-6AAFULGC.js} +6 -6
- package/dist/cli/{run-R2FVH3K6.mjs → run-4K6ZU7H7.mjs} +23 -23
- package/dist/cli/{run-6TDYUL7L.js → run-WOW7QO3W.js} +44 -44
- package/dist/cli/{search-GRHUFSLY.mjs → search-CKVFWVXQ.mjs} +7 -7
- package/dist/cli/search-YZIJS7QU.js +32 -0
- package/dist/cli/{search-output-O7NY3VMD.js → search-output-B5QE7ZNK.js} +6 -6
- package/dist/cli/{search-output-UPQNAFAF.mjs → search-output-WWB25JWA.mjs} +4 -4
- package/dist/cli/{secrets-NKAEJLIQ.mjs → secrets-SVZB6TSW.mjs} +6 -6
- package/dist/cli/{secrets-72GJHFER.js → secrets-WKIMR346.js} +15 -15
- package/dist/cli/{sessions-VIMF3UF5.mjs → sessions-P3QENG6T.mjs} +6 -6
- package/dist/cli/sessions-VQPGPXMU.js +23 -0
- package/dist/cli/{settings-HFAW5HIF.js → settings-UIFRGJW3.js} +85 -85
- package/dist/cli/{settings-KCQHBFNZ.mjs → settings-V5ABL6D2.mjs} +12 -12
- package/dist/cli/{setup-2MHWGEAD.js → setup-A5MIJU3S.js} +49 -49
- package/dist/cli/{setup-2ZD5ZIUH.mjs → setup-E67NJTEF.mjs} +9 -9
- package/dist/cli/skills-GTBK33MV.js +37 -0
- package/dist/cli/{skills-X2DZZG5P.mjs → skills-WLHOQ4DO.mjs} +7 -7
- package/dist/cli/{tools-KPTOWKD4.mjs → tools-EG4KL3BB.mjs} +17 -17
- package/dist/cli/tools-GPAIPRPQ.js +57 -0
- package/dist/cli/{update-6PMQCEUP.mjs → update-IPFBE6SA.mjs} +9 -9
- package/dist/cli/update-QLWS32WR.js +37 -0
- package/dist/cli/{views-VRZ5CTFL.mjs → views-XDN6SEWY.mjs} +6 -6
- package/dist/cli/{views-MNBHNO6C.js → views-ZIBY2RVB.js} +21 -21
- package/dist/cli/{workflow-SSMFO7YE.js → workflow-BLKPBRBT.js} +17 -17
- package/dist/cli/{workflow-7JUJWA5S.mjs → workflow-O2XPMOVL.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +120 -120
- package/dist/plays/bundle-play-file.mjs +1 -1
- 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-25MVD7TK.js +0 -44
- package/dist/cli/concurrent-runs-help-DEN63DUM.js +0 -22
- package/dist/cli/describe-YHZ2EGBQ.js +0 -50
- package/dist/cli/git-SQ2MAKAH.js +0 -26
- package/dist/cli/search-V7ANBX3J.js +0 -32
- package/dist/cli/sessions-EO6RTMUC.js +0 -23
- package/dist/cli/skills-ID6KKDLH.js +0 -37
- package/dist/cli/tools-7UY7GERW.js +0 -57
- package/dist/cli/update-T2RDLLSY.js +0 -37
- /package/dist/cli/{chunk-YGCKMI5P.js → chunk-2M3VVGMZ.js} +0 -0
- /package/dist/cli/{chunk-7I4B6V2S.mjs → chunk-VMGJIFSB.mjs} +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkJUZIMW4Sjs = require('./chunk-JUZIMW4S.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -11,11 +11,11 @@ var _chunkXQUVLYOLjs = require('./chunk-XQUVLYOL.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkZL3O7F5Jjs = require('./chunk-ZL3O7F5J.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk3HIJNXRBjs = require('./chunk-3HIJNXRB.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -57,29 +57,29 @@ var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
|
|
|
57
57
|
var _chunkHGFFYVXNjs = require('./chunk-HGFFYVXN.js');
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
var
|
|
60
|
+
var _chunkMRSYC74Tjs = require('./chunk-MRSYC74T.js');
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
var
|
|
63
|
+
var _chunkEGH4JNJPjs = require('./chunk-EGH4JNJP.js');
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _chunkGZBXN56Ajs = require('./chunk-GZBXN56A.js');
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
|
|
75
|
-
var
|
|
75
|
+
var _chunkCPZL6Z7Djs = require('./chunk-CPZL6Z7D.js');
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
|
|
82
|
-
var
|
|
82
|
+
var _chunkZ3IAEHIDjs = require('./chunk-Z3IAEHID.js');
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
|
|
@@ -88,12 +88,12 @@ var _chunkZ6DERGHYjs = require('./chunk-Z6DERGHY.js');
|
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
|
|
91
|
-
var
|
|
91
|
+
var _chunkVA35T3AFjs = require('./chunk-VA35T3AF.js');
|
|
92
92
|
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
|
|
96
|
-
var
|
|
96
|
+
var _chunk5436ZJPHjs = require('./chunk-5436ZJPH.js');
|
|
97
97
|
|
|
98
98
|
|
|
99
99
|
var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
|
|
@@ -202,10 +202,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
|
|
|
202
202
|
}
|
|
203
203
|
};
|
|
204
204
|
function pendingToolExecutionPath(input) {
|
|
205
|
-
const config =
|
|
205
|
+
const config = _chunk5436ZJPHjs.resolveConfig.call(void 0, );
|
|
206
206
|
const fingerprint = _crypto.createHash.call(void 0, "sha256").update(config.baseUrl).update("\0").update(_crypto.createHash.call(void 0, "sha256").update(config.apiKey).digest("hex")).update("\0").update(input.toolId).update("\0").update(_chunkCFJFUVX2js.stableStringify.call(void 0, input.params)).update("\0").update(input.responseIntent).digest("hex");
|
|
207
207
|
return _path.join.call(void 0,
|
|
208
|
-
|
|
208
|
+
_chunk5436ZJPHjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
|
|
209
209
|
`${PENDING_PREFIX}${fingerprint}.json`
|
|
210
210
|
);
|
|
211
211
|
}
|
|
@@ -589,13 +589,13 @@ function categoryEnumerationRender(summaries) {
|
|
|
589
589
|
};
|
|
590
590
|
}
|
|
591
591
|
async function listToolCategories(emitJson, compact) {
|
|
592
|
-
const client = new (0,
|
|
592
|
+
const client = new (0, _chunkMRSYC74Tjs.DeeplineClient)();
|
|
593
593
|
if (!emitJson) {
|
|
594
594
|
const summaries2 = (await client.listToolCategories()).map((category) => ({
|
|
595
595
|
...category,
|
|
596
596
|
description: describeToolCategory(category.name)
|
|
597
597
|
}));
|
|
598
|
-
|
|
598
|
+
_chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
|
|
599
599
|
{ categories: summaries2, render: categoryEnumerationRender(summaries2) },
|
|
600
600
|
{ json: false }
|
|
601
601
|
);
|
|
@@ -605,7 +605,7 @@ async function listToolCategories(emitJson, compact) {
|
|
|
605
605
|
const items = rawTools.map(toListedTool);
|
|
606
606
|
const summaries = aggregateCategorySummaries(rawTools);
|
|
607
607
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
608
|
-
|
|
608
|
+
_chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
|
|
609
609
|
{
|
|
610
610
|
tools: outputItems,
|
|
611
611
|
count: outputItems.length,
|
|
@@ -624,7 +624,7 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
624
624
|
const known = summaries.map((item) => item.name);
|
|
625
625
|
const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
|
|
626
626
|
if (emitJson) {
|
|
627
|
-
|
|
627
|
+
_chunkVA35T3AFjs.printJson.call(void 0, {
|
|
628
628
|
ok: false,
|
|
629
629
|
exitCode: 4,
|
|
630
630
|
code: "TOOL_CATEGORY_NOT_FOUND",
|
|
@@ -638,13 +638,13 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
638
638
|
const render = categoryEnumerationRender(summaries);
|
|
639
639
|
console.error(message);
|
|
640
640
|
console.error("");
|
|
641
|
-
console.error(
|
|
641
|
+
console.error(_chunkVA35T3AFjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
|
|
642
642
|
console.error("");
|
|
643
643
|
console.error(`Valid categories: ${known.join(", ")}`);
|
|
644
644
|
return 4;
|
|
645
645
|
}
|
|
646
646
|
async function listToolsInCategory(category, emitJson) {
|
|
647
|
-
const client = new (0,
|
|
647
|
+
const client = new (0, _chunkMRSYC74Tjs.DeeplineClient)();
|
|
648
648
|
const { tools: rawTools, categories } = await client.listToolsInCategory(category);
|
|
649
649
|
const summaries = categories.map((item) => ({
|
|
650
650
|
...item,
|
|
@@ -681,7 +681,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
681
681
|
}
|
|
682
682
|
]
|
|
683
683
|
};
|
|
684
|
-
|
|
684
|
+
_chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
|
|
685
685
|
{
|
|
686
686
|
category,
|
|
687
687
|
total: rows.length,
|
|
@@ -694,7 +694,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
694
694
|
return 0;
|
|
695
695
|
}
|
|
696
696
|
async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
|
|
697
|
-
const client = new (0,
|
|
697
|
+
const client = new (0, _chunkMRSYC74Tjs.DeeplineClient)();
|
|
698
698
|
const items = (await client.listTools({
|
|
699
699
|
categories: requestedCategories.join(","),
|
|
700
700
|
compact
|
|
@@ -723,7 +723,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
|
|
|
723
723
|
]
|
|
724
724
|
};
|
|
725
725
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
726
|
-
|
|
726
|
+
_chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
|
|
727
727
|
{
|
|
728
728
|
tools: outputItems,
|
|
729
729
|
count: outputItems.length,
|
|
@@ -742,13 +742,13 @@ async function listTools(category, options = {}) {
|
|
|
742
742
|
const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _12 => _12.trim, 'call', _13 => _13()]), () => ( ""));
|
|
743
743
|
const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
|
|
744
744
|
const compact = options.compact !== false;
|
|
745
|
-
const emitJson = options.json === true ||
|
|
745
|
+
const emitJson = options.json === true || _chunkVA35T3AFjs.shouldEmitJson.call(void 0, );
|
|
746
746
|
if (positional && flagCategories.length > 0) {
|
|
747
747
|
const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
|
|
748
748
|
if (!flagIsSameSingle) {
|
|
749
749
|
const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
|
|
750
750
|
if (emitJson) {
|
|
751
|
-
|
|
751
|
+
_chunkVA35T3AFjs.printJson.call(void 0, {
|
|
752
752
|
ok: false,
|
|
753
753
|
exitCode: 2,
|
|
754
754
|
code: "TOOL_LIST_CATEGORY_CONFLICT",
|
|
@@ -775,7 +775,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
775
775
|
console.error("Usage: deepline tools grep <query> [--json]");
|
|
776
776
|
return 1;
|
|
777
777
|
}
|
|
778
|
-
const client = new (0,
|
|
778
|
+
const client = new (0, _chunkMRSYC74Tjs.DeeplineClient)();
|
|
779
779
|
const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
|
|
780
780
|
const mode = _nullishCoalesce(options.mode, () => ( "all"));
|
|
781
781
|
const jsonOutput = options.json === true;
|
|
@@ -799,7 +799,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
799
799
|
query,
|
|
800
800
|
mode
|
|
801
801
|
}) : null;
|
|
802
|
-
|
|
802
|
+
_chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
|
|
803
803
|
{
|
|
804
804
|
tools: outputTools,
|
|
805
805
|
count: outputTools.length,
|
|
@@ -817,7 +817,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
817
817
|
} : {},
|
|
818
818
|
commandTemplates: TOOL_COMMAND_TEMPLATES
|
|
819
819
|
},
|
|
820
|
-
{ json: options.json ||
|
|
820
|
+
{ json: options.json || _chunkVA35T3AFjs.shouldEmitJson.call(void 0, ) }
|
|
821
821
|
);
|
|
822
822
|
return 0;
|
|
823
823
|
}
|
|
@@ -913,13 +913,13 @@ Output:
|
|
|
913
913
|
activity.
|
|
914
914
|
`
|
|
915
915
|
);
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
916
|
+
_chunkZL3O7F5Jjs.registerIntegrationBalanceCommand.call(void 0, tools, true);
|
|
917
|
+
_chunkZL3O7F5Jjs.registerWorkspaceConnectionListCommand.call(void 0, tools, "workspace-connections", true);
|
|
918
|
+
_chunkZL3O7F5Jjs.registerLegacyHubSpotMembersCommand.call(void 0, tools, true);
|
|
919
|
+
_chunkZL3O7F5Jjs.registerLegacyWorkspaceConnectionCommand.call(void 0, tools, true);
|
|
920
|
+
_chunkZL3O7F5Jjs.registerLegacyCalendarDelegationCommand.call(void 0, tools, true);
|
|
921
|
+
_chunkZL3O7F5Jjs.registerLegacyAvailabilityCalendarsCommand.call(void 0, tools, true);
|
|
922
|
+
_chunkZL3O7F5Jjs.registerIntegrationConnectCommand.call(void 0, tools, false, true);
|
|
923
923
|
tools.command("list [category]").description("Browse tool categories, or list every tool in a category.").addHelpText(
|
|
924
924
|
"after",
|
|
925
925
|
`
|
|
@@ -952,7 +952,7 @@ Examples:
|
|
|
952
952
|
json: Boolean(options.json)
|
|
953
953
|
});
|
|
954
954
|
});
|
|
955
|
-
|
|
955
|
+
_chunk3HIJNXRBjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
|
|
956
956
|
tools.command("grep <query>").description(
|
|
957
957
|
"Regex grep over tool ids, descriptions, categories, and input fields."
|
|
958
958
|
).addHelpText(
|
|
@@ -987,7 +987,7 @@ Examples:
|
|
|
987
987
|
});
|
|
988
988
|
const addToolMetadataCommand = (command) => {
|
|
989
989
|
let compatibilityMetadata;
|
|
990
|
-
|
|
990
|
+
_chunkGZBXN56Ajs.registerCompatibilityCatalog.call(void 0, command, () => ({
|
|
991
991
|
toolId: command.args[0],
|
|
992
992
|
acceptMetadata: (metadata) => {
|
|
993
993
|
compatibilityMetadata = metadata;
|
|
@@ -1057,7 +1057,7 @@ Examples:
|
|
|
1057
1057
|
process.exitCode = await narrowView();
|
|
1058
1058
|
return;
|
|
1059
1059
|
}
|
|
1060
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
1060
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-QB5T47B3.js")));
|
|
1061
1061
|
process.exitCode = await describeAnything(
|
|
1062
1062
|
toolId,
|
|
1063
1063
|
{
|
|
@@ -1072,7 +1072,7 @@ Examples:
|
|
|
1072
1072
|
});
|
|
1073
1073
|
};
|
|
1074
1074
|
addToolMetadataCommand(
|
|
1075
|
-
|
|
1075
|
+
_chunkJUZIMW4Sjs.addDescribeOptions.call(void 0,
|
|
1076
1076
|
tools.command("describe <toolId>", { hidden: true }).alias("get"),
|
|
1077
1077
|
{ json: false }
|
|
1078
1078
|
)
|
|
@@ -1141,7 +1141,7 @@ Examples:
|
|
|
1141
1141
|
options,
|
|
1142
1142
|
void 0,
|
|
1143
1143
|
true,
|
|
1144
|
-
|
|
1144
|
+
_chunkCPZL6Z7Djs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
1145
1145
|
);
|
|
1146
1146
|
}
|
|
1147
1147
|
);
|
|
@@ -1149,13 +1149,13 @@ Examples:
|
|
|
1149
1149
|
function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
1150
1150
|
let metadata;
|
|
1151
1151
|
const startedAt = performance.now();
|
|
1152
|
-
const baseUrl =
|
|
1153
|
-
|
|
1154
|
-
const result =
|
|
1152
|
+
const baseUrl = _chunk5436ZJPHjs.resolveConfig.call(void 0, ).baseUrl;
|
|
1153
|
+
_chunkCPZL6Z7Djs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
|
|
1154
|
+
const result = _chunkGZBXN56Ajs.runToolExecuteStage.call(void 0,
|
|
1155
1155
|
"SDK compatibility",
|
|
1156
|
-
() =>
|
|
1156
|
+
() => _chunkZ3IAEHIDjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
1157
1157
|
command: "tools execute",
|
|
1158
|
-
skillsVersion:
|
|
1158
|
+
skillsVersion: _chunk5436ZJPHjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
|
|
1159
1159
|
persistCache: false,
|
|
1160
1160
|
timeoutMs: TOOL_EXECUTE_PREFLIGHT_TIMEOUT_MS,
|
|
1161
1161
|
catalog: {
|
|
@@ -1169,7 +1169,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
|
1169
1169
|
})
|
|
1170
1170
|
).then(
|
|
1171
1171
|
(compatibility) => {
|
|
1172
|
-
|
|
1172
|
+
_chunkCPZL6Z7Djs.recordCliTrace.call(void 0, {
|
|
1173
1173
|
phase: "cli.tool_execute_compatibility_ready",
|
|
1174
1174
|
ms: performance.now() - startedAt,
|
|
1175
1175
|
ok: compatibility.error === null,
|
|
@@ -1178,7 +1178,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
|
1178
1178
|
return compatibility;
|
|
1179
1179
|
},
|
|
1180
1180
|
(error) => {
|
|
1181
|
-
|
|
1181
|
+
_chunkCPZL6Z7Djs.recordCliTrace.call(void 0, {
|
|
1182
1182
|
phase: "cli.tool_execute_compatibility_ready",
|
|
1183
1183
|
ms: performance.now() - startedAt,
|
|
1184
1184
|
ok: false
|
|
@@ -1193,7 +1193,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1193
1193
|
console.error("Usage: deepline tools describe <toolId> [--json]");
|
|
1194
1194
|
return 1;
|
|
1195
1195
|
}
|
|
1196
|
-
const client = new (0,
|
|
1196
|
+
const client = new (0, _chunkMRSYC74Tjs.DeeplineClient)();
|
|
1197
1197
|
let tool;
|
|
1198
1198
|
try {
|
|
1199
1199
|
tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
|
|
@@ -1252,7 +1252,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1252
1252
|
const lines = toolPricingOnlyLines(tool, toolId);
|
|
1253
1253
|
if (inferenceQuote)
|
|
1254
1254
|
lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
|
|
1255
|
-
|
|
1255
|
+
_chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
|
|
1256
1256
|
{
|
|
1257
1257
|
toolId: String(tool.toolId || toolId),
|
|
1258
1258
|
cost: _chunk3S5KFHQHjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
|
|
@@ -1275,7 +1275,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1275
1275
|
void 0,
|
|
1276
1276
|
seedToolListScript
|
|
1277
1277
|
);
|
|
1278
|
-
|
|
1278
|
+
_chunkVA35T3AFjs.printCompactJson.call(void 0, {
|
|
1279
1279
|
toolId: contract.toolId,
|
|
1280
1280
|
...options.schemaOnly ? {
|
|
1281
1281
|
inputSchema: contract.inputSchema,
|
|
@@ -1298,7 +1298,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1298
1298
|
return 0;
|
|
1299
1299
|
}
|
|
1300
1300
|
if (options.contractJson) {
|
|
1301
|
-
|
|
1301
|
+
_chunkVA35T3AFjs.printCompactJson.call(void 0, {
|
|
1302
1302
|
..._chunk3S5KFHQHjs.toolContractJsonForDescribe.call(void 0,
|
|
1303
1303
|
tool,
|
|
1304
1304
|
toolId,
|
|
@@ -1312,7 +1312,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1312
1312
|
}
|
|
1313
1313
|
const emitJson = options.json === true;
|
|
1314
1314
|
if (emitJson) {
|
|
1315
|
-
|
|
1315
|
+
_chunkVA35T3AFjs.printCompactJson.call(void 0, {
|
|
1316
1316
|
..._chunk3S5KFHQHjs.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
|
|
1317
1317
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1318
1318
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -2189,7 +2189,7 @@ function parseExecuteOptions(toolId, options, output) {
|
|
|
2189
2189
|
outputFormat = normalizeOutputFormat(options.outputFormat);
|
|
2190
2190
|
}
|
|
2191
2191
|
if (options.idempotencyKey !== void 0) {
|
|
2192
|
-
|
|
2192
|
+
_chunkEGH4JNJPjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
|
|
2193
2193
|
}
|
|
2194
2194
|
if (options.connection !== void 0 && (options.recover || options.idempotencyKey !== void 0)) {
|
|
2195
2195
|
throw new Error(
|
|
@@ -2580,7 +2580,7 @@ function writeToolReceipt(input) {
|
|
|
2580
2580
|
const billing = _chunk3S5KFHQHjs.recordField.call(void 0, envelope, "billing");
|
|
2581
2581
|
const charged = billing.credits_charged;
|
|
2582
2582
|
const credentialSource = _chunk3S5KFHQHjs.stringField.call(void 0, billing, "credential_source");
|
|
2583
|
-
|
|
2583
|
+
_chunkJUZIMW4Sjs.writeExecutionOutput.call(void 0,
|
|
2584
2584
|
{
|
|
2585
2585
|
id: _nullishCoalesce(input.key, () => ( jobId)),
|
|
2586
2586
|
status,
|
|
@@ -2612,8 +2612,8 @@ async function executeToolForReceipt(input) {
|
|
|
2612
2612
|
let retryKey = null;
|
|
2613
2613
|
let received = false;
|
|
2614
2614
|
try {
|
|
2615
|
-
const cliInvocationId = _nullishCoalesce(
|
|
2616
|
-
const client = new (0,
|
|
2615
|
+
const cliInvocationId = _nullishCoalesce(_chunkGZBXN56Ajs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkGZBXN56Ajs.beginToolExecuteCommand.call(void 0, )));
|
|
2616
|
+
const client = new (0, _chunkMRSYC74Tjs.DeeplineClient)();
|
|
2617
2617
|
const metadata = assertExecutableToolMetadata(
|
|
2618
2618
|
toolId,
|
|
2619
2619
|
await _asyncNullishCoalesce(input.metadata, async () => ( await client.getTool(toolId, { cliInvocationId })))
|
|
@@ -2635,9 +2635,9 @@ async function executeToolForReceipt(input) {
|
|
|
2635
2635
|
...input.timeoutMs !== void 0 ? { timeout: input.timeoutMs } : {},
|
|
2636
2636
|
..._optionalChain([metadata, 'access', _37 => _37.executionMetadata, 'optionalAccess', _38 => _38.retrySafeTransientHttp]) === true ? { maxRetries: 2, retryApiErrors: true } : {},
|
|
2637
2637
|
...idempotencyKey ? { idempotencyKey } : {},
|
|
2638
|
-
searchRef:
|
|
2638
|
+
searchRef: _chunk3HIJNXRBjs.recentSearchRef.call(void 0, toolId),
|
|
2639
2639
|
cliInvocationId,
|
|
2640
|
-
onResponseReceived:
|
|
2640
|
+
onResponseReceived: _chunkJUZIMW4Sjs.recordApiResponse
|
|
2641
2641
|
});
|
|
2642
2642
|
const response = await call(key).catch((error) => {
|
|
2643
2643
|
if (!key || !refusedRetryKey(error)) throw error;
|
|
@@ -2673,11 +2673,11 @@ async function executeToolForReceipt(input) {
|
|
|
2673
2673
|
if (received) throw error;
|
|
2674
2674
|
const outcomeKnown = answeredWithFailure(error);
|
|
2675
2675
|
if (outcomeKnown) _optionalChain([retryKey, 'optionalAccess', _39 => _39.discard, 'call', _40 => _40()]);
|
|
2676
|
-
|
|
2676
|
+
_chunkJUZIMW4Sjs.writeExecutionOutput.call(void 0,
|
|
2677
2677
|
{
|
|
2678
2678
|
id: outcomeKnown ? null : key,
|
|
2679
2679
|
status: "failed",
|
|
2680
|
-
error:
|
|
2680
|
+
error: _chunkVA35T3AFjs.errorToJsonPayload.call(void 0, error).error,
|
|
2681
2681
|
...key && !outcomeKnown ? {
|
|
2682
2682
|
next: {
|
|
2683
2683
|
retry: "Run the same command again: it picks up this call without paying twice."
|
|
@@ -2709,11 +2709,11 @@ function answeredWithFailure(error) {
|
|
|
2709
2709
|
!(error.code === "IDEMPOTENCY_NOT_SUPPORTED" && !serverBodyHasCode(_optionalChain([error, 'access', _43 => _43.details, 'optionalAccess', _44 => _44.response]), "IDEMPOTENCY_NOT_SUPPORTED"));
|
|
2710
2710
|
}
|
|
2711
2711
|
async function getToolExecutionReceipt(key, output) {
|
|
2712
|
-
const client = new (0,
|
|
2712
|
+
const client = new (0, _chunkMRSYC74Tjs.DeeplineClient)();
|
|
2713
2713
|
const execution = await client.executions.getByKey(key);
|
|
2714
2714
|
output.label = `${execution.toolId} (tool)`;
|
|
2715
2715
|
if (execution.response === void 0) {
|
|
2716
|
-
|
|
2716
|
+
_chunkJUZIMW4Sjs.writeExecutionOutput.call(void 0,
|
|
2717
2717
|
{
|
|
2718
2718
|
id: key,
|
|
2719
2719
|
status: execution.executionRecovery.state,
|
|
@@ -2742,19 +2742,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2742
2742
|
parsed = parseExecuteOptions(toolId, options, output);
|
|
2743
2743
|
} catch (error) {
|
|
2744
2744
|
if (wantsJson) {
|
|
2745
|
-
|
|
2745
|
+
_chunkVA35T3AFjs.printJsonError.call(void 0, error);
|
|
2746
2746
|
} else {
|
|
2747
2747
|
console.error(error instanceof Error ? error.message : String(error));
|
|
2748
2748
|
}
|
|
2749
2749
|
return error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
|
|
2750
2750
|
}
|
|
2751
|
-
const cliInvocationId = _nullishCoalesce(
|
|
2751
|
+
const cliInvocationId = _nullishCoalesce(_chunkGZBXN56Ajs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkGZBXN56Ajs.beginToolExecuteCommand.call(void 0, )));
|
|
2752
2752
|
const deferredCompatibility = deferCompatibility ? beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) : void 0;
|
|
2753
|
-
const tracing =
|
|
2753
|
+
const tracing = _chunkCPZL6Z7Djs.isCliTraceEnabled.call(void 0, );
|
|
2754
2754
|
const clientStartedAt = tracing ? performance.now() : void 0;
|
|
2755
|
-
const client = new (0,
|
|
2755
|
+
const client = new (0, _chunkMRSYC74Tjs.DeeplineClient)();
|
|
2756
2756
|
if (clientStartedAt !== void 0) {
|
|
2757
|
-
|
|
2757
|
+
_chunkCPZL6Z7Djs.recordCliTrace.call(void 0, {
|
|
2758
2758
|
phase: "cli.tool_execute_client_setup",
|
|
2759
2759
|
ms: performance.now() - clientStartedAt
|
|
2760
2760
|
});
|
|
@@ -2763,13 +2763,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2763
2763
|
const readMetadata = async () => {
|
|
2764
2764
|
if (metadata) return assertExecutableToolMetadata(parsed.toolId, metadata);
|
|
2765
2765
|
try {
|
|
2766
|
-
metadata = await
|
|
2766
|
+
metadata = await _chunkGZBXN56Ajs.runToolExecuteStage.call(void 0,
|
|
2767
2767
|
"tool metadata lookup",
|
|
2768
2768
|
() => client.getTool(parsed.toolId, { cliInvocationId })
|
|
2769
2769
|
);
|
|
2770
2770
|
} catch (error) {
|
|
2771
2771
|
if (isMissingToolMetadataError(error)) {
|
|
2772
|
-
const play = await
|
|
2772
|
+
const play = await _chunkGZBXN56Ajs.runToolExecuteStage.call(void 0,
|
|
2773
2773
|
"play alias lookup",
|
|
2774
2774
|
() => findPlayForToolId(client, parsed.toolId, cliInvocationId)
|
|
2775
2775
|
);
|
|
@@ -2792,7 +2792,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2792
2792
|
toolMetadata = await readMetadata();
|
|
2793
2793
|
} catch (error) {
|
|
2794
2794
|
if (error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2795
|
-
if (wantsJson)
|
|
2795
|
+
if (wantsJson) _chunkVA35T3AFjs.printJsonError.call(void 0, error);
|
|
2796
2796
|
else console.error(error.message);
|
|
2797
2797
|
return 2;
|
|
2798
2798
|
}
|
|
@@ -2820,7 +2820,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2820
2820
|
assertExecutableToolMetadata(parsed.toolId, metadata);
|
|
2821
2821
|
} catch (error) {
|
|
2822
2822
|
if (error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2823
|
-
if (wantsJson)
|
|
2823
|
+
if (wantsJson) _chunkVA35T3AFjs.printJsonError.call(void 0, error);
|
|
2824
2824
|
else console.error(error.message);
|
|
2825
2825
|
return 2;
|
|
2826
2826
|
}
|
|
@@ -2832,7 +2832,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2832
2832
|
metadata = await readMetadata();
|
|
2833
2833
|
} catch (error) {
|
|
2834
2834
|
if (error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2835
|
-
if (wantsJson)
|
|
2835
|
+
if (wantsJson) _chunkVA35T3AFjs.printJsonError.call(void 0, error);
|
|
2836
2836
|
else console.error(error.message);
|
|
2837
2837
|
return 2;
|
|
2838
2838
|
}
|
|
@@ -2848,7 +2848,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2848
2848
|
metadata = await readMetadata();
|
|
2849
2849
|
} catch (error) {
|
|
2850
2850
|
if (error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2851
|
-
if (wantsJson)
|
|
2851
|
+
if (wantsJson) _chunkVA35T3AFjs.printJsonError.call(void 0, error);
|
|
2852
2852
|
else console.error(error.message);
|
|
2853
2853
|
return 2;
|
|
2854
2854
|
}
|
|
@@ -2875,11 +2875,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2875
2875
|
...parsed.connection !== void 0 ? { connection: parsed.connection } : {},
|
|
2876
2876
|
...idempotencyKey ? { idempotencyKey } : {},
|
|
2877
2877
|
...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
|
|
2878
|
-
searchRef:
|
|
2878
|
+
searchRef: _chunk3HIJNXRBjs.recentSearchRef.call(void 0, parsed.toolId),
|
|
2879
2879
|
cliInvocationId,
|
|
2880
|
-
onResponseReceived:
|
|
2880
|
+
onResponseReceived: _chunkJUZIMW4Sjs.recordApiResponse,
|
|
2881
2881
|
...tracing ? {
|
|
2882
|
-
onServerTiming: (serverTiming) =>
|
|
2882
|
+
onServerTiming: (serverTiming) => _chunkCPZL6Z7Djs.recordCliTrace.call(void 0, {
|
|
2883
2883
|
phase: "tool_execute_server_timing",
|
|
2884
2884
|
cliInvocationId,
|
|
2885
2885
|
serverTiming,
|
|
@@ -2890,13 +2890,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2890
2890
|
let rawResponse;
|
|
2891
2891
|
let successfulCompatibilityResponse;
|
|
2892
2892
|
try {
|
|
2893
|
-
const executeResult = await
|
|
2893
|
+
const executeResult = await _chunkGZBXN56Ajs.runToolExecuteStage.call(void 0,
|
|
2894
2894
|
"execute request",
|
|
2895
2895
|
async () => {
|
|
2896
2896
|
try {
|
|
2897
2897
|
if (tracing) {
|
|
2898
2898
|
submissionStartedAt = performance.now();
|
|
2899
|
-
|
|
2899
|
+
_chunkCPZL6Z7Djs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
|
|
2900
2900
|
}
|
|
2901
2901
|
return await client.executeTool(parsed.toolId, parsed.params, {
|
|
2902
2902
|
...executeOptions,
|
|
@@ -2906,34 +2906,34 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2906
2906
|
} catch (error) {
|
|
2907
2907
|
if (parsed.connection !== void 0 || !(error instanceof _chunkLFQJW4S2js.DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
|
|
2908
2908
|
throw error;
|
|
2909
|
-
const baseUrl =
|
|
2909
|
+
const baseUrl = _chunk5436ZJPHjs.resolveConfig.call(void 0, ).baseUrl;
|
|
2910
2910
|
if (maintenancePolicy !== "off") {
|
|
2911
|
-
|
|
2911
|
+
_chunkZ3IAEHIDjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
2912
2912
|
}
|
|
2913
2913
|
const preflight = deferredCompatibility ? await deferredCompatibility.result.catch(() => null) : null;
|
|
2914
|
-
const compatibilityResponse = _optionalChain([preflight, 'optionalAccess', _50 => _50.live]) === true ? preflight.response : await
|
|
2914
|
+
const compatibilityResponse = _optionalChain([preflight, 'optionalAccess', _50 => _50.live]) === true ? preflight.response : await _chunkGZBXN56Ajs.runToolExecuteStage.call(void 0,
|
|
2915
2915
|
"SDK compatibility",
|
|
2916
|
-
() =>
|
|
2916
|
+
() => _chunkZ3IAEHIDjs.requireSdkCompatibility.call(void 0, baseUrl, {
|
|
2917
2917
|
command: "tools execute",
|
|
2918
|
-
skillsVersion:
|
|
2918
|
+
skillsVersion: _chunk5436ZJPHjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
|
|
2919
2919
|
persistCache: maintenancePolicy !== "off"
|
|
2920
2920
|
})
|
|
2921
2921
|
);
|
|
2922
2922
|
metadata = _nullishCoalesce(_optionalChain([deferredCompatibility, 'optionalAccess', _51 => _51.readMetadata, 'call', _52 => _52()]), () => ( metadata));
|
|
2923
|
-
if (maintenancePolicy !== "off" && await
|
|
2923
|
+
if (maintenancePolicy !== "off" && await _chunkGZBXN56Ajs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2924
2924
|
compatibilityResponse,
|
|
2925
2925
|
baseUrl,
|
|
2926
2926
|
maintenancePolicy
|
|
2927
2927
|
)) {
|
|
2928
2928
|
return void 0;
|
|
2929
2929
|
}
|
|
2930
|
-
|
|
2930
|
+
_chunkZ3IAEHIDjs.enforceSdkCompatibilityResponse.call(void 0, compatibilityResponse, {
|
|
2931
2931
|
quietAdvisory: wantsJson
|
|
2932
2932
|
});
|
|
2933
2933
|
if (maintenancePolicy !== "off") {
|
|
2934
|
-
await
|
|
2934
|
+
await _chunkGZBXN56Ajs.runToolExecuteStage.call(void 0,
|
|
2935
2935
|
"agent skills sync",
|
|
2936
|
-
() =>
|
|
2936
|
+
() => _chunkZ3IAEHIDjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
|
|
2937
2937
|
update: _optionalChain([compatibilityResponse, 'optionalAccess', _53 => _53.skills]),
|
|
2938
2938
|
mode: "detached"
|
|
2939
2939
|
})
|
|
@@ -2942,7 +2942,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2942
2942
|
const legacyMetadata = await readMetadata();
|
|
2943
2943
|
if (tracing) {
|
|
2944
2944
|
submissionStartedAt = performance.now();
|
|
2945
|
-
|
|
2945
|
+
_chunkCPZL6Z7Djs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
|
|
2946
2946
|
}
|
|
2947
2947
|
return client.executeTool(parsed.toolId, parsed.params, {
|
|
2948
2948
|
...executeOptions,
|
|
@@ -2965,8 +2965,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2965
2965
|
metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
|
|
2966
2966
|
const updateRequiredBeforeExecution = error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === "SDK_UPDATE_REQUIRED";
|
|
2967
2967
|
if (updateRequiredBeforeExecution && maintenancePolicy !== "off" && compatibility && !compatibility.error) {
|
|
2968
|
-
const baseUrl =
|
|
2969
|
-
if (await
|
|
2968
|
+
const baseUrl = _chunk5436ZJPHjs.resolveConfig.call(void 0, ).baseUrl;
|
|
2969
|
+
if (await _chunkGZBXN56Ajs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2970
2970
|
compatibility.response,
|
|
2971
2971
|
baseUrl,
|
|
2972
2972
|
maintenancePolicy
|
|
@@ -2990,7 +2990,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2990
2990
|
}
|
|
2991
2991
|
}
|
|
2992
2992
|
if (failure instanceof _chunkLFQJW4S2js.DeeplineError && failure.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2993
|
-
if (wantsJson)
|
|
2993
|
+
if (wantsJson) _chunkVA35T3AFjs.printJsonError.call(void 0, failure);
|
|
2994
2994
|
else console.error(failure.message);
|
|
2995
2995
|
return 2;
|
|
2996
2996
|
}
|
|
@@ -3017,9 +3017,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
3017
3017
|
successfulCompatibilityResponse = _nullishCoalesce(compatibilityResponse, () => ( void 0));
|
|
3018
3018
|
const autoUpdate = _optionalChain([compatibilityResponse, 'optionalAccess', _60 => _60.auto_update]);
|
|
3019
3019
|
if (maintenancePolicy !== "off" && compatibilityResponse && _optionalChain([autoUpdate, 'optionalAccess', _61 => _61.should_auto_update]) && !autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
3020
|
-
await
|
|
3020
|
+
await _chunkGZBXN56Ajs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
3021
3021
|
compatibilityResponse,
|
|
3022
|
-
|
|
3022
|
+
_chunk5436ZJPHjs.resolveConfig.call(void 0, ).baseUrl,
|
|
3023
3023
|
maintenancePolicy
|
|
3024
3024
|
);
|
|
3025
3025
|
}
|
|
@@ -3054,7 +3054,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
3054
3054
|
const { _metadata, ...execution } = rawResponse;
|
|
3055
3055
|
rawResponse = execution;
|
|
3056
3056
|
}
|
|
3057
|
-
const { listConversion, summary, baseEnvelope } = await
|
|
3057
|
+
const { listConversion, summary, baseEnvelope } = await _chunkGZBXN56Ajs.runToolExecuteStage.call(void 0,
|
|
3058
3058
|
"result formatting",
|
|
3059
3059
|
async () => {
|
|
3060
3060
|
const listConversion2 = _chunkHGFFYVXNjs.tryConvertToList.call(void 0, rawResponse, {
|
|
@@ -3089,9 +3089,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
3089
3089
|
}
|
|
3090
3090
|
skillsSyncAttempted = true;
|
|
3091
3091
|
try {
|
|
3092
|
-
await
|
|
3092
|
+
await _chunkGZBXN56Ajs.runToolExecuteStage.call(void 0,
|
|
3093
3093
|
"agent skills sync",
|
|
3094
|
-
() =>
|
|
3094
|
+
() => _chunkZ3IAEHIDjs.syncSdkSkillsIfNeeded.call(void 0, _chunk5436ZJPHjs.resolveConfig.call(void 0, ).baseUrl, {
|
|
3095
3095
|
update: deliveredCompatibilityResponse.skills,
|
|
3096
3096
|
mode: "detached"
|
|
3097
3097
|
})
|
|
@@ -3102,15 +3102,15 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
3102
3102
|
);
|
|
3103
3103
|
}
|
|
3104
3104
|
};
|
|
3105
|
-
const printDeliveredEnvelope = (envelope, options2 = {}) =>
|
|
3105
|
+
const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkVA35T3AFjs.printCommandEnvelope.call(void 0, envelope, {
|
|
3106
3106
|
...options2,
|
|
3107
3107
|
json: _nullishCoalesce(options2.json, () => ( wantsJson))
|
|
3108
3108
|
});
|
|
3109
3109
|
const printDeliveredJsonEnvelope = async (envelope, options2 = {}) => {
|
|
3110
3110
|
await syncSkillsForDeliveredOutput();
|
|
3111
|
-
|
|
3111
|
+
_chunkVA35T3AFjs.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
|
|
3112
3112
|
};
|
|
3113
|
-
const delivered = await
|
|
3113
|
+
const delivered = await _chunkGZBXN56Ajs.runToolExecuteStage.call(void 0, "output delivery", async () => {
|
|
3114
3114
|
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
|
|
3115
3115
|
await printDeliveredJsonEnvelope(baseEnvelope);
|
|
3116
3116
|
return true;
|
|
@@ -3139,7 +3139,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
3139
3139
|
`${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
|
|
3140
3140
|
);
|
|
3141
3141
|
if (wantsJson) {
|
|
3142
|
-
|
|
3142
|
+
_chunkVA35T3AFjs.printJsonError.call(void 0, error);
|
|
3143
3143
|
} else {
|
|
3144
3144
|
console.error(error.message);
|
|
3145
3145
|
}
|
|
@@ -3234,13 +3234,13 @@ inspect: ${inspection.inspect}
|
|
|
3234
3234
|
return true;
|
|
3235
3235
|
});
|
|
3236
3236
|
if (delivered) {
|
|
3237
|
-
await
|
|
3237
|
+
await _chunkGZBXN56Ajs.runToolExecuteStage.call(void 0,
|
|
3238
3238
|
"acknowledge delivery",
|
|
3239
3239
|
() => recovery.acknowledgeDelivery()
|
|
3240
3240
|
);
|
|
3241
3241
|
}
|
|
3242
3242
|
if (delivered && deliveredCompatibilityResponse && deliveredCompatibilityResponse.update_required !== true) {
|
|
3243
|
-
|
|
3243
|
+
_chunkZ3IAEHIDjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
|
|
3244
3244
|
quietAdvisory: wantsJson || maintenancePolicy === "off" || _optionalChain([deliveredCompatibilityResponse, 'access', _64 => _64.auto_update, 'optionalAccess', _65 => _65.should_auto_update]) === true
|
|
3245
3245
|
});
|
|
3246
3246
|
}
|