deepline 0.3.530 → 0.3.532
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/monitors/fleets/limits.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +10 -8
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +95 -9
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +7 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-execution-relay.ts +139 -35
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-receipt-gateway.ts +438 -38
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/runtime-topology.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machine-lifecycle.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-transient-retry.ts +279 -20
- package/dist/bundling-sources/shared_libs/play-runtime/durable-summary-events.ts +615 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +16 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +26 -8
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +27 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-call-retry-facts.ts +317 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +129 -39
- package/dist/cli/auth-7YWTPQSQ.js +43 -0
- package/dist/cli/{auth-LRWNDQFT.mjs → auth-ZB3NN4E7.mjs} +5 -5
- package/dist/cli/{billing-5FDPWGCG.js → billing-32EF4HJM.js} +82 -82
- package/dist/cli/{billing-7T73MRYF.mjs → billing-5GGO7DQS.mjs} +7 -7
- package/dist/cli/{chunk-7WGMCOM6.js → chunk-2T7YE5UH.js} +2 -2
- package/dist/cli/{chunk-L4QR7CYL.js → chunk-2ZGZBN6D.js} +14 -14
- package/dist/cli/{chunk-J6XSBTEX.mjs → chunk-3NUYO5QO.mjs} +1 -1
- package/dist/cli/{chunk-MVF7ZBJX.mjs → chunk-47UF3DDN.mjs} +1 -1
- package/dist/cli/{chunk-2FLODRM2.js → chunk-4S3ONSLF.js} +13 -13
- package/dist/cli/{chunk-4WPIORJX.js → chunk-64CEFPF4.js} +1 -1
- package/dist/cli/{chunk-QI2LKPW5.mjs → chunk-6LBD6G6U.mjs} +2 -2
- package/dist/cli/{chunk-WWLIDAVT.js → chunk-7S3DJFW5.js} +11 -11
- package/dist/cli/{chunk-BVY4QRVT.mjs → chunk-AOAXIJL2.mjs} +82 -31
- package/dist/cli/{chunk-KUHH7RW4.js → chunk-AQHMHYXX.js} +44 -44
- package/dist/cli/{chunk-WAWOMHWO.mjs → chunk-B77ZRM6M.mjs} +2 -2
- package/dist/cli/{chunk-5B37ER3C.js → chunk-BQ2KAFVQ.js} +3 -3
- package/dist/cli/{chunk-VQMGCNX2.mjs → chunk-C6VCDDDD.mjs} +5 -5
- package/dist/cli/{chunk-3MAHDV5C.mjs → chunk-CRWX26LR.mjs} +1 -1
- package/dist/cli/{chunk-7E7CP5KA.js → chunk-CSMLW5VE.js} +4 -4
- package/dist/cli/{chunk-HCWPX2UP.mjs → chunk-DSNTHXR7.mjs} +2 -2
- package/dist/cli/{chunk-4VQ63Y6S.mjs → chunk-EJLCIQA4.mjs} +5 -5
- package/dist/cli/{chunk-7FCD34YS.mjs → chunk-EVXRQXNV.mjs} +3 -2
- package/dist/cli/{chunk-K4Y6CNFV.mjs → chunk-F2YLC4ZG.mjs} +1 -1
- package/dist/cli/{chunk-YI7QOP6L.js → chunk-FU4MMUGM.js} +16 -16
- package/dist/cli/{chunk-6NG3FRJB.mjs → chunk-GABQIZJR.mjs} +5 -5
- package/dist/cli/{chunk-V4EK7ZZX.js → chunk-GBVTSWL3.js} +98 -98
- package/dist/cli/{chunk-WYI3VMTO.js → chunk-H6OYTU2Y.js} +6 -6
- package/dist/cli/{chunk-C44RZGM5.js → chunk-HR2RDDAC.js} +26 -26
- package/dist/cli/{chunk-XNWS2WJG.mjs → chunk-HREGFD2I.mjs} +1 -1
- package/dist/cli/{chunk-GW76IDID.js → chunk-JJSJ47CA.js} +22 -22
- package/dist/cli/{chunk-32NTC5UD.js → chunk-KEE57BF2.js} +7 -7
- package/dist/cli/{chunk-SJQ7Z3NI.js → chunk-KQW27FSR.js} +132 -81
- package/dist/cli/{chunk-D7Y7I4EE.js → chunk-L5V5SLI7.js} +2 -2
- package/dist/cli/{chunk-VKVLJTW5.js → chunk-MHTKWZM3.js} +9 -9
- package/dist/cli/{chunk-EADHDZW2.js → chunk-NBIDYAN6.js} +6 -6
- package/dist/cli/{chunk-E6L3NEFV.js → chunk-NQDUXVBK.js} +41 -41
- package/dist/cli/{chunk-QWEPCX6L.mjs → chunk-O2A4C4WP.mjs} +2 -2
- package/dist/cli/{chunk-KEXGBXUG.js → chunk-O7JU5GUR.js} +5 -5
- package/dist/cli/{chunk-MVFKZQ7E.js → chunk-QZINISXP.js} +3 -3
- package/dist/cli/{chunk-YVLPGYRS.mjs → chunk-RRCSFOF3.mjs} +1 -1
- package/dist/cli/{chunk-A5MYJM4K.mjs → chunk-S2HHY26V.mjs} +2 -2
- package/dist/cli/{chunk-M4Q4LEMM.js → chunk-SMDX4BM5.js} +2 -2
- package/dist/cli/{chunk-5KX3TWBK.mjs → chunk-T2QY36E3.mjs} +1 -1
- package/dist/cli/{chunk-OUM2V7R6.mjs → chunk-TFWREZYG.mjs} +6 -6
- package/dist/cli/{chunk-QQ4LNSY5.mjs → chunk-THQPLSJD.mjs} +1 -1
- package/dist/cli/{chunk-MHR3XVJD.js → chunk-TS6XF2QP.js} +5 -5
- package/dist/cli/{chunk-WL6GAZBD.js → chunk-V6LUMGVI.js} +3 -2
- package/dist/cli/{chunk-5DJUNUHN.mjs → chunk-VCRCMK7M.mjs} +5 -5
- package/dist/cli/{chunk-VYSQ76RP.js → chunk-VHHD5D44.js} +7 -7
- package/dist/cli/{chunk-KI63L5H3.mjs → chunk-VIC2MI4W.mjs} +2 -2
- package/dist/cli/{chunk-ERMDXXP5.mjs → chunk-VN432I4S.mjs} +1 -1
- package/dist/cli/{chunk-LNZILMVK.mjs → chunk-VWEDIFHT.mjs} +4 -4
- package/dist/cli/{chunk-I2YXEHDO.mjs → chunk-VZKCZO4J.mjs} +3 -3
- package/dist/cli/{chunk-2LKVNWRA.mjs → chunk-W5KSUNTE.mjs} +10 -10
- package/dist/cli/{chunk-X547OW3I.js → chunk-WU33X2QL.js} +16 -16
- package/dist/cli/{chunk-2FLRKNME.mjs → chunk-YM6JAKYP.mjs} +2 -2
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-EFIEDJA2.js → csv-4JBCPMEH.js} +13 -13
- package/dist/cli/{csv-VY2S7KKV.mjs → csv-LM44ZFL3.mjs} +4 -4
- package/dist/cli/{db-D32CBDTN.mjs → db-IFJEGJ6M.mjs} +6 -6
- package/dist/cli/{db-3DLI5TYW.js → db-UVNXGK6L.js} +27 -27
- package/dist/cli/describe-AF73GGH6.js +50 -0
- package/dist/cli/{describe-6MYKK2P3.mjs → describe-TWTOPGII.mjs} +18 -18
- package/dist/cli/{executions-QG3DEEY3.js → executions-3I6RU7AO.js} +8 -8
- package/dist/cli/{executions-U6TPX4RX.mjs → executions-NEV2P5MX.mjs} +6 -6
- package/dist/cli/{feedback-YZ6H4VMQ.mjs → feedback-IO5ZAWKK.mjs} +6 -6
- package/dist/cli/{feedback-ZSPW6NXL.js → feedback-NHO56EWZ.js} +14 -14
- package/dist/cli/git-AOKC6WL3.js +25 -0
- package/dist/cli/{git-ENN72IK4.mjs → git-MQISNZ5F.mjs} +5 -5
- package/dist/cli/index.js +145 -145
- package/dist/cli/index.mjs +44 -44
- package/dist/cli/{legacy-noops-MNA6LWJU.mjs → legacy-noops-DNRJHNQB.mjs} +6 -6
- package/dist/cli/{legacy-noops-Q6EVYIGN.js → legacy-noops-SLAQE7HN.js} +9 -9
- package/dist/cli/{monitors-BUH54HXJ.js → monitors-JRNATYS2.js} +100 -100
- package/dist/cli/{monitors-KENWEEWC.mjs → monitors-NAX7SUAR.mjs} +7 -7
- package/dist/cli/{org-HWOHKYP3.mjs → org-34VCNPUD.mjs} +6 -6
- package/dist/cli/{org-AHWQJMV7.js → org-BHOREX5D.js} +86 -86
- package/dist/cli/{pages-Z5R7NYEF.js → pages-GB337AQG.js} +18 -18
- package/dist/cli/{pages-I7DYTCW6.mjs → pages-ZWVHNJOE.mjs} +6 -6
- package/dist/cli/{play-3LXZB4ED.js → play-DAUQ7OAO.js} +317 -317
- package/dist/cli/{play-ET7CRVWJ.mjs → play-GJ7OEYSB.mjs} +18 -18
- package/dist/cli/{providers-GZSAZVHZ.mjs → providers-KA2RKD6E.mjs} +6 -6
- package/dist/cli/{providers-ZV2E7NGX.js → providers-W7QY5FUK.js} +9 -9
- package/dist/cli/{quickstart-5746NBS2.mjs → quickstart-7KOAL3BD.mjs} +4 -4
- package/dist/cli/{quickstart-VJZAT4RY.js → quickstart-D4DPUR7R.js} +6 -6
- package/dist/cli/{run-WOQ6XMTT.mjs → run-AYJSQED7.mjs} +23 -23
- package/dist/cli/{run-WGUAVYZC.js → run-QFVN2WUQ.js} +41 -41
- package/dist/cli/search-JVCK5AB4.js +33 -0
- package/dist/cli/{search-NNPFJYEW.mjs → search-MEE7OV2B.mjs} +8 -8
- package/dist/cli/{search-output-65HDEEFS.mjs → search-output-G36JH6D6.mjs} +4 -4
- package/dist/cli/{search-output-K4ISMPKD.js → search-output-OW6UPOI6.js} +6 -6
- package/dist/cli/{secrets-NBKGWMF4.js → secrets-CJJQJUJC.js} +15 -15
- package/dist/cli/{secrets-RK44OV3X.mjs → secrets-OFNYIJT6.mjs} +6 -6
- package/dist/cli/{sessions-ULQJJN3J.mjs → sessions-B6VCVU4Z.mjs} +6 -6
- package/dist/cli/sessions-DXN6BQ7Q.js +22 -0
- package/dist/cli/{settings-IHNA7X3Y.js → settings-H4Q524LF.js} +86 -86
- package/dist/cli/{settings-V5ZRL2EF.mjs → settings-PPFLSXDP.mjs} +13 -13
- package/dist/cli/{setup-HTEBFMOQ.js → setup-SJAM7XHR.js} +78 -63
- package/dist/cli/{setup-54VZPJGM.mjs → setup-WI3WDRRE.mjs} +28 -13
- package/dist/cli/skills-6MNJK2VQ.js +37 -0
- package/dist/cli/{skills-3FCPWMHX.mjs → skills-QSRYGMG2.mjs} +8 -8
- package/dist/cli/tools-OT43MSZE.js +57 -0
- package/dist/cli/{tools-2NTDNUQT.mjs → tools-RUC4ULAD.mjs} +17 -17
- package/dist/cli/{update-25MTBTGU.mjs → update-DPWNL2UB.mjs} +10 -10
- package/dist/cli/update-PHOSO3TL.js +35 -0
- package/dist/cli/{views-37K4JNNS.js → views-CVDVQALA.js} +18 -18
- package/dist/cli/{views-OBE5LUSW.mjs → views-JP66QRA3.mjs} +6 -6
- package/dist/cli/{workflow-6YTIHHJH.js → workflow-JM6JUI7I.js} +17 -17
- package/dist/cli/{workflow-HAPCL4K6.mjs → workflow-MVTX2PY3.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +108 -106
- 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-QFIXECQV.js +0 -43
- package/dist/cli/describe-U6HM52X6.js +0 -50
- package/dist/cli/git-OBV73OVY.js +0 -25
- package/dist/cli/search-IGHNMXI4.js +0 -33
- package/dist/cli/sessions-ZJNV4SEL.js +0 -22
- package/dist/cli/skills-ZCJ6FOOK.js +0 -37
- package/dist/cli/tools-Q75XC2BS.js +0 -57
- package/dist/cli/update-3G3GO7IE.js +0 -35
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkH6OYTU2Yjs = require('./chunk-H6OYTU2Y.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk7S3DJFW5js = require('./chunk-7S3DJFW5.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -46,10 +46,10 @@ var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
|
|
|
46
46
|
var _chunkHGFFYVXNjs = require('./chunk-HGFFYVXN.js');
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
var
|
|
49
|
+
var _chunkO7JU5GURjs = require('./chunk-O7JU5GUR.js');
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
var
|
|
52
|
+
var _chunkVHHD5D44js = require('./chunk-VHHD5D44.js');
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
|
|
@@ -59,18 +59,18 @@ var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunkJJSJ47CAjs = require('./chunk-JJSJ47CA.js');
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
|
|
67
|
-
var
|
|
67
|
+
var _chunkSMDX4BM5js = require('./chunk-SMDX4BM5.js');
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
var
|
|
73
|
+
var _chunkAQHMHYXXjs = require('./chunk-AQHMHYXX.js');
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
|
|
@@ -78,12 +78,12 @@ var _chunkKUHH7RW4js = require('./chunk-KUHH7RW4.js');
|
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
|
|
81
|
-
var
|
|
81
|
+
var _chunkKEE57BF2js = require('./chunk-KEE57BF2.js');
|
|
82
82
|
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
|
|
86
|
-
var
|
|
86
|
+
var _chunkBQ2KAFVQjs = require('./chunk-BQ2KAFVQ.js');
|
|
87
87
|
|
|
88
88
|
|
|
89
89
|
var _chunkSQWET4SLjs = require('./chunk-SQWET4SL.js');
|
|
@@ -189,10 +189,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
|
|
|
189
189
|
}
|
|
190
190
|
};
|
|
191
191
|
function pendingToolExecutionPath(input) {
|
|
192
|
-
const config =
|
|
192
|
+
const config = _chunkBQ2KAFVQjs.resolveConfig.call(void 0, );
|
|
193
193
|
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(_chunkXDVT3GOMjs.stableStringify.call(void 0, input.params)).update("\0").update(input.responseIntent).digest("hex");
|
|
194
194
|
return _path.join.call(void 0,
|
|
195
|
-
|
|
195
|
+
_chunkBQ2KAFVQjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
|
|
196
196
|
`${PENDING_PREFIX}${fingerprint}.json`
|
|
197
197
|
);
|
|
198
198
|
}
|
|
@@ -506,13 +506,13 @@ function categoryEnumerationRender(summaries) {
|
|
|
506
506
|
};
|
|
507
507
|
}
|
|
508
508
|
async function listToolCategories(emitJson, compact) {
|
|
509
|
-
const client = new (0,
|
|
509
|
+
const client = new (0, _chunkO7JU5GURjs.DeeplineClient)();
|
|
510
510
|
if (!emitJson) {
|
|
511
511
|
const summaries2 = (await client.listToolCategories()).map((category) => ({
|
|
512
512
|
...category,
|
|
513
513
|
description: describeToolCategory(category.name)
|
|
514
514
|
}));
|
|
515
|
-
|
|
515
|
+
_chunkKEE57BF2js.printCommandEnvelope.call(void 0,
|
|
516
516
|
{ categories: summaries2, render: categoryEnumerationRender(summaries2) },
|
|
517
517
|
{ json: false }
|
|
518
518
|
);
|
|
@@ -522,7 +522,7 @@ async function listToolCategories(emitJson, compact) {
|
|
|
522
522
|
const items = rawTools.map(toListedTool);
|
|
523
523
|
const summaries = aggregateCategorySummaries(rawTools);
|
|
524
524
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
525
|
-
|
|
525
|
+
_chunkKEE57BF2js.printCommandEnvelope.call(void 0,
|
|
526
526
|
{
|
|
527
527
|
tools: outputItems,
|
|
528
528
|
count: outputItems.length,
|
|
@@ -541,7 +541,7 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
541
541
|
const known = summaries.map((item) => item.name);
|
|
542
542
|
const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
|
|
543
543
|
if (emitJson) {
|
|
544
|
-
|
|
544
|
+
_chunkKEE57BF2js.printJson.call(void 0, {
|
|
545
545
|
ok: false,
|
|
546
546
|
exitCode: 4,
|
|
547
547
|
code: "TOOL_CATEGORY_NOT_FOUND",
|
|
@@ -555,13 +555,13 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
555
555
|
const render = categoryEnumerationRender(summaries);
|
|
556
556
|
console.error(message);
|
|
557
557
|
console.error("");
|
|
558
|
-
console.error(
|
|
558
|
+
console.error(_chunkKEE57BF2js.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
|
|
559
559
|
console.error("");
|
|
560
560
|
console.error(`Valid categories: ${known.join(", ")}`);
|
|
561
561
|
return 4;
|
|
562
562
|
}
|
|
563
563
|
async function listToolsInCategory(category, emitJson) {
|
|
564
|
-
const client = new (0,
|
|
564
|
+
const client = new (0, _chunkO7JU5GURjs.DeeplineClient)();
|
|
565
565
|
const { tools: rawTools, categories } = await client.listToolsInCategory(category);
|
|
566
566
|
const summaries = categories.map((item) => ({
|
|
567
567
|
...item,
|
|
@@ -597,7 +597,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
597
597
|
}
|
|
598
598
|
]
|
|
599
599
|
};
|
|
600
|
-
|
|
600
|
+
_chunkKEE57BF2js.printCommandEnvelope.call(void 0,
|
|
601
601
|
{
|
|
602
602
|
category,
|
|
603
603
|
total: rows.length,
|
|
@@ -610,7 +610,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
610
610
|
return 0;
|
|
611
611
|
}
|
|
612
612
|
async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
|
|
613
|
-
const client = new (0,
|
|
613
|
+
const client = new (0, _chunkO7JU5GURjs.DeeplineClient)();
|
|
614
614
|
const items = (await client.listTools({
|
|
615
615
|
categories: requestedCategories.join(","),
|
|
616
616
|
compact
|
|
@@ -639,7 +639,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
|
|
|
639
639
|
]
|
|
640
640
|
};
|
|
641
641
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
642
|
-
|
|
642
|
+
_chunkKEE57BF2js.printCommandEnvelope.call(void 0,
|
|
643
643
|
{
|
|
644
644
|
tools: outputItems,
|
|
645
645
|
count: outputItems.length,
|
|
@@ -658,13 +658,13 @@ async function listTools(category, options = {}) {
|
|
|
658
658
|
const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]), () => ( ""));
|
|
659
659
|
const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
|
|
660
660
|
const compact = options.compact !== false;
|
|
661
|
-
const emitJson = options.json === true ||
|
|
661
|
+
const emitJson = options.json === true || _chunkKEE57BF2js.shouldEmitJson.call(void 0, );
|
|
662
662
|
if (positional && flagCategories.length > 0) {
|
|
663
663
|
const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
|
|
664
664
|
if (!flagIsSameSingle) {
|
|
665
665
|
const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
|
|
666
666
|
if (emitJson) {
|
|
667
|
-
|
|
667
|
+
_chunkKEE57BF2js.printJson.call(void 0, {
|
|
668
668
|
ok: false,
|
|
669
669
|
exitCode: 2,
|
|
670
670
|
code: "TOOL_LIST_CATEGORY_CONFLICT",
|
|
@@ -691,7 +691,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
691
691
|
console.error("Usage: deepline tools grep <query> [--json]");
|
|
692
692
|
return 1;
|
|
693
693
|
}
|
|
694
|
-
const client = new (0,
|
|
694
|
+
const client = new (0, _chunkO7JU5GURjs.DeeplineClient)();
|
|
695
695
|
const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
|
|
696
696
|
const mode = _nullishCoalesce(options.mode, () => ( "all"));
|
|
697
697
|
const jsonOutput = options.json === true;
|
|
@@ -715,7 +715,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
715
715
|
query,
|
|
716
716
|
mode
|
|
717
717
|
}) : null;
|
|
718
|
-
|
|
718
|
+
_chunkKEE57BF2js.printCommandEnvelope.call(void 0,
|
|
719
719
|
{
|
|
720
720
|
tools: outputTools,
|
|
721
721
|
count: outputTools.length,
|
|
@@ -733,7 +733,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
733
733
|
} : {},
|
|
734
734
|
commandTemplates: TOOL_COMMAND_TEMPLATES
|
|
735
735
|
},
|
|
736
|
-
{ json: options.json ||
|
|
736
|
+
{ json: options.json || _chunkKEE57BF2js.shouldEmitJson.call(void 0, ) }
|
|
737
737
|
);
|
|
738
738
|
return 0;
|
|
739
739
|
}
|
|
@@ -832,10 +832,10 @@ Output:
|
|
|
832
832
|
tools.command("balance <provider>").description(
|
|
833
833
|
"Read a fresh balance using this workspace\u2019s own provider connection (LeadMagic)."
|
|
834
834
|
).option("--json", "Print the balance and observation timestamp as JSON").action(async (provider, options) => {
|
|
835
|
-
const balance = await new (0,
|
|
835
|
+
const balance = await new (0, _chunkO7JU5GURjs.DeeplineClient)().getIntegrationBalance(
|
|
836
836
|
provider
|
|
837
837
|
);
|
|
838
|
-
if (
|
|
838
|
+
if (_chunkKEE57BF2js.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(balance));
|
|
839
839
|
else
|
|
840
840
|
console.log(
|
|
841
841
|
`${balance.provider}: ${balance.balance.value} ${balance.unit} (observed ${balance.observedAt})`
|
|
@@ -860,10 +860,10 @@ Output:
|
|
|
860
860
|
).option("--json", "Print JSON without credential values").action(
|
|
861
861
|
async (provider, options) => {
|
|
862
862
|
if (options.link) {
|
|
863
|
-
const link = await new (0,
|
|
863
|
+
const link = await new (0, _chunkO7JU5GURjs.DeeplineClient)().getIntegrationConnectLink(
|
|
864
864
|
provider
|
|
865
865
|
);
|
|
866
|
-
if (
|
|
866
|
+
if (_chunkKEE57BF2js.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(link));
|
|
867
867
|
else console.log(link.connect_url);
|
|
868
868
|
return;
|
|
869
869
|
}
|
|
@@ -873,7 +873,7 @@ Output:
|
|
|
873
873
|
if (options.preset !== void 0 && (options.scopes !== void 0 || options.optionalScopes !== void 0))
|
|
874
874
|
throw new Error("Use --preset or individual scopes, not both.");
|
|
875
875
|
const splitScopes = (value) => value.split(",").map((scope) => scope.trim()).filter(Boolean);
|
|
876
|
-
const result2 = await new (0,
|
|
876
|
+
const result2 = await new (0, _chunkO7JU5GURjs.DeeplineClient)().startIntegrationOAuth(
|
|
877
877
|
provider,
|
|
878
878
|
{
|
|
879
879
|
...options.preset !== void 0 ? { preset: options.preset } : {},
|
|
@@ -885,7 +885,7 @@ Output:
|
|
|
885
885
|
throw new Error(
|
|
886
886
|
"The API did not return an OAuth authorization URL."
|
|
887
887
|
);
|
|
888
|
-
if (
|
|
888
|
+
if (_chunkKEE57BF2js.shouldEmitJson.call(void 0, options.json))
|
|
889
889
|
console.log(
|
|
890
890
|
JSON.stringify({ provider, redirect_url: result2.redirect_url })
|
|
891
891
|
);
|
|
@@ -911,7 +911,7 @@ Output:
|
|
|
911
911
|
"--credentials-file must contain a nonempty JSON object of string credential values."
|
|
912
912
|
);
|
|
913
913
|
}
|
|
914
|
-
const result = await new (0,
|
|
914
|
+
const result = await new (0, _chunkO7JU5GURjs.DeeplineClient)().setIntegrationCredentials(
|
|
915
915
|
provider,
|
|
916
916
|
credentials
|
|
917
917
|
);
|
|
@@ -921,7 +921,7 @@ Output:
|
|
|
921
921
|
);
|
|
922
922
|
}
|
|
923
923
|
const confirmation = { provider, credential_saved: true };
|
|
924
|
-
if (
|
|
924
|
+
if (_chunkKEE57BF2js.shouldEmitJson.call(void 0, options.json))
|
|
925
925
|
console.log(JSON.stringify(confirmation));
|
|
926
926
|
else
|
|
927
927
|
console.log(
|
|
@@ -961,7 +961,7 @@ Examples:
|
|
|
961
961
|
json: Boolean(options.json)
|
|
962
962
|
});
|
|
963
963
|
});
|
|
964
|
-
|
|
964
|
+
_chunk7S3DJFW5js.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
|
|
965
965
|
tools.command("grep <query>").description(
|
|
966
966
|
"Regex grep over tool ids, descriptions, categories, and input fields."
|
|
967
967
|
).addHelpText(
|
|
@@ -996,7 +996,7 @@ Examples:
|
|
|
996
996
|
});
|
|
997
997
|
const addToolMetadataCommand = (command) => {
|
|
998
998
|
let compatibilityMetadata;
|
|
999
|
-
|
|
999
|
+
_chunkJJSJ47CAjs.registerCompatibilityCatalog.call(void 0, command, () => ({
|
|
1000
1000
|
toolId: command.args[0],
|
|
1001
1001
|
acceptMetadata: (metadata) => {
|
|
1002
1002
|
compatibilityMetadata = metadata;
|
|
@@ -1066,7 +1066,7 @@ Examples:
|
|
|
1066
1066
|
process.exitCode = await narrowView();
|
|
1067
1067
|
return;
|
|
1068
1068
|
}
|
|
1069
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
1069
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-AF73GGH6.js")));
|
|
1070
1070
|
process.exitCode = await describeAnything(
|
|
1071
1071
|
toolId,
|
|
1072
1072
|
{
|
|
@@ -1081,7 +1081,7 @@ Examples:
|
|
|
1081
1081
|
});
|
|
1082
1082
|
};
|
|
1083
1083
|
addToolMetadataCommand(
|
|
1084
|
-
|
|
1084
|
+
_chunkH6OYTU2Yjs.addDescribeOptions.call(void 0,
|
|
1085
1085
|
tools.command("describe <toolId>", { hidden: true }).alias("get"),
|
|
1086
1086
|
{ json: false }
|
|
1087
1087
|
)
|
|
@@ -1150,7 +1150,7 @@ Examples:
|
|
|
1150
1150
|
options,
|
|
1151
1151
|
void 0,
|
|
1152
1152
|
true,
|
|
1153
|
-
|
|
1153
|
+
_chunkSMDX4BM5js.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
1154
1154
|
);
|
|
1155
1155
|
}
|
|
1156
1156
|
);
|
|
@@ -1158,13 +1158,13 @@ Examples:
|
|
|
1158
1158
|
function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
1159
1159
|
let metadata;
|
|
1160
1160
|
const startedAt = performance.now();
|
|
1161
|
-
const baseUrl =
|
|
1162
|
-
|
|
1163
|
-
const result =
|
|
1161
|
+
const baseUrl = _chunkBQ2KAFVQjs.resolveConfig.call(void 0, ).baseUrl;
|
|
1162
|
+
_chunkSMDX4BM5js.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
|
|
1163
|
+
const result = _chunkJJSJ47CAjs.runToolExecuteStage.call(void 0,
|
|
1164
1164
|
"SDK compatibility",
|
|
1165
|
-
() =>
|
|
1165
|
+
() => _chunkAQHMHYXXjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
1166
1166
|
command: "tools execute",
|
|
1167
|
-
skillsVersion:
|
|
1167
|
+
skillsVersion: _chunkBQ2KAFVQjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
|
|
1168
1168
|
persistCache: false,
|
|
1169
1169
|
timeoutMs: TOOL_EXECUTE_PREFLIGHT_TIMEOUT_MS,
|
|
1170
1170
|
catalog: {
|
|
@@ -1178,7 +1178,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
|
1178
1178
|
})
|
|
1179
1179
|
).then(
|
|
1180
1180
|
(compatibility) => {
|
|
1181
|
-
|
|
1181
|
+
_chunkSMDX4BM5js.recordCliTrace.call(void 0, {
|
|
1182
1182
|
phase: "cli.tool_execute_compatibility_ready",
|
|
1183
1183
|
ms: performance.now() - startedAt,
|
|
1184
1184
|
ok: compatibility.error === null,
|
|
@@ -1187,7 +1187,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
|
1187
1187
|
return compatibility;
|
|
1188
1188
|
},
|
|
1189
1189
|
(error) => {
|
|
1190
|
-
|
|
1190
|
+
_chunkSMDX4BM5js.recordCliTrace.call(void 0, {
|
|
1191
1191
|
phase: "cli.tool_execute_compatibility_ready",
|
|
1192
1192
|
ms: performance.now() - startedAt,
|
|
1193
1193
|
ok: false
|
|
@@ -1202,7 +1202,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1202
1202
|
console.error("Usage: deepline tools describe <toolId> [--json]");
|
|
1203
1203
|
return 1;
|
|
1204
1204
|
}
|
|
1205
|
-
const client = new (0,
|
|
1205
|
+
const client = new (0, _chunkO7JU5GURjs.DeeplineClient)();
|
|
1206
1206
|
let tool;
|
|
1207
1207
|
try {
|
|
1208
1208
|
tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
|
|
@@ -1256,7 +1256,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1256
1256
|
const lines = toolPricingOnlyLines(tool, toolId);
|
|
1257
1257
|
if (inferenceQuote)
|
|
1258
1258
|
lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
|
|
1259
|
-
|
|
1259
|
+
_chunkKEE57BF2js.printCommandEnvelope.call(void 0,
|
|
1260
1260
|
{
|
|
1261
1261
|
toolId: String(tool.toolId || toolId),
|
|
1262
1262
|
cost: _chunkZS2WHWWLjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
|
|
@@ -1279,7 +1279,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1279
1279
|
void 0,
|
|
1280
1280
|
seedToolListScript
|
|
1281
1281
|
);
|
|
1282
|
-
|
|
1282
|
+
_chunkKEE57BF2js.printCompactJson.call(void 0, {
|
|
1283
1283
|
toolId: contract.toolId,
|
|
1284
1284
|
...options.schemaOnly ? {
|
|
1285
1285
|
inputSchema: contract.inputSchema,
|
|
@@ -1302,7 +1302,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1302
1302
|
return 0;
|
|
1303
1303
|
}
|
|
1304
1304
|
if (options.contractJson) {
|
|
1305
|
-
|
|
1305
|
+
_chunkKEE57BF2js.printCompactJson.call(void 0, {
|
|
1306
1306
|
..._chunkZS2WHWWLjs.toolContractJsonForDescribe.call(void 0,
|
|
1307
1307
|
tool,
|
|
1308
1308
|
toolId,
|
|
@@ -1316,7 +1316,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1316
1316
|
}
|
|
1317
1317
|
const emitJson = options.json === true;
|
|
1318
1318
|
if (emitJson) {
|
|
1319
|
-
|
|
1319
|
+
_chunkKEE57BF2js.printCompactJson.call(void 0, {
|
|
1320
1320
|
..._chunkZS2WHWWLjs.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
|
|
1321
1321
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1322
1322
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -2179,7 +2179,7 @@ function parseExecuteOptions(toolId, options, output) {
|
|
|
2179
2179
|
outputFormat = normalizeOutputFormat(options.outputFormat);
|
|
2180
2180
|
}
|
|
2181
2181
|
if (options.idempotencyKey !== void 0) {
|
|
2182
|
-
|
|
2182
|
+
_chunkVHHD5D44js.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
|
|
2183
2183
|
}
|
|
2184
2184
|
if (options.recoveryTimeoutMs !== void 0) {
|
|
2185
2185
|
const parsed = Number(options.recoveryTimeoutMs);
|
|
@@ -2558,7 +2558,7 @@ function writeToolReceipt(input) {
|
|
|
2558
2558
|
const data = Object.hasOwn(toolResponse, "rawV2") ? toolResponse.rawV2 : Object.hasOwn(toolResponse, "raw") ? toolResponse.raw : Object.hasOwn(envelope, "output") ? envelope.output : Object.hasOwn(envelope, "result") ? envelope.result : response;
|
|
2559
2559
|
const status = typeof envelope.status === "string" ? envelope.status : "completed";
|
|
2560
2560
|
const charged = _chunkZS2WHWWLjs.recordField.call(void 0, envelope, "billing").credits_charged;
|
|
2561
|
-
|
|
2561
|
+
_chunkH6OYTU2Yjs.writeExecutionOutput.call(void 0,
|
|
2562
2562
|
{
|
|
2563
2563
|
id: _nullishCoalesce(input.key, () => ( jobId)),
|
|
2564
2564
|
status,
|
|
@@ -2589,8 +2589,8 @@ async function executeToolForReceipt(input) {
|
|
|
2589
2589
|
let retryKey = null;
|
|
2590
2590
|
let received = false;
|
|
2591
2591
|
try {
|
|
2592
|
-
const cliInvocationId = _nullishCoalesce(
|
|
2593
|
-
const client = new (0,
|
|
2592
|
+
const cliInvocationId = _nullishCoalesce(_chunkJJSJ47CAjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkJJSJ47CAjs.beginToolExecuteCommand.call(void 0, )));
|
|
2593
|
+
const client = new (0, _chunkO7JU5GURjs.DeeplineClient)();
|
|
2594
2594
|
const metadata = assertExecutableToolMetadata(
|
|
2595
2595
|
toolId,
|
|
2596
2596
|
await _asyncNullishCoalesce(input.metadata, async () => ( await client.getTool(toolId, { cliInvocationId })))
|
|
@@ -2611,9 +2611,9 @@ async function executeToolForReceipt(input) {
|
|
|
2611
2611
|
...input.timeoutMs !== void 0 ? { timeout: input.timeoutMs } : {},
|
|
2612
2612
|
..._optionalChain([metadata, 'access', _35 => _35.executionMetadata, 'optionalAccess', _36 => _36.retrySafeTransientHttp]) === true ? { maxRetries: 2, retryApiErrors: true } : {},
|
|
2613
2613
|
...key ? { idempotencyKey: key } : {},
|
|
2614
|
-
searchRef:
|
|
2614
|
+
searchRef: _chunk7S3DJFW5js.recentSearchRef.call(void 0, toolId),
|
|
2615
2615
|
cliInvocationId,
|
|
2616
|
-
onResponseReceived:
|
|
2616
|
+
onResponseReceived: _chunkH6OYTU2Yjs.recordApiResponse
|
|
2617
2617
|
}).catch((error) => {
|
|
2618
2618
|
const guidance = toolGuidanceLines(metadata.guidance);
|
|
2619
2619
|
if (guidance.length)
|
|
@@ -2636,7 +2636,7 @@ async function executeToolForReceipt(input) {
|
|
|
2636
2636
|
if (received) throw error;
|
|
2637
2637
|
const outcomeKnown = answeredWithFailure(error);
|
|
2638
2638
|
if (outcomeKnown) _optionalChain([retryKey, 'optionalAccess', _37 => _37.discard, 'call', _38 => _38()]);
|
|
2639
|
-
|
|
2639
|
+
_chunkH6OYTU2Yjs.writeExecutionOutput.call(void 0,
|
|
2640
2640
|
{
|
|
2641
2641
|
id: outcomeKnown ? null : key,
|
|
2642
2642
|
status: "failed",
|
|
@@ -2660,11 +2660,11 @@ function answeredWithFailure(error) {
|
|
|
2660
2660
|
error.statusCode !== 408 && error.code !== "EXECUTION_OUTCOME_UNKNOWN";
|
|
2661
2661
|
}
|
|
2662
2662
|
async function getToolExecutionReceipt(key, output) {
|
|
2663
|
-
const client = new (0,
|
|
2663
|
+
const client = new (0, _chunkO7JU5GURjs.DeeplineClient)();
|
|
2664
2664
|
const execution = await client.executions.getByKey(key);
|
|
2665
2665
|
output.label = `${execution.toolId} (tool)`;
|
|
2666
2666
|
if (execution.response === void 0) {
|
|
2667
|
-
|
|
2667
|
+
_chunkH6OYTU2Yjs.writeExecutionOutput.call(void 0,
|
|
2668
2668
|
{
|
|
2669
2669
|
id: key,
|
|
2670
2670
|
status: execution.executionRecovery.state,
|
|
@@ -2693,19 +2693,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2693
2693
|
parsed = parseExecuteOptions(toolId, options, output);
|
|
2694
2694
|
} catch (error) {
|
|
2695
2695
|
if (wantsJson) {
|
|
2696
|
-
|
|
2696
|
+
_chunkKEE57BF2js.printJsonError.call(void 0, error);
|
|
2697
2697
|
} else {
|
|
2698
2698
|
console.error(error instanceof Error ? error.message : String(error));
|
|
2699
2699
|
}
|
|
2700
2700
|
return error instanceof _chunkSQWET4SLjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
|
|
2701
2701
|
}
|
|
2702
|
-
const cliInvocationId = _nullishCoalesce(
|
|
2702
|
+
const cliInvocationId = _nullishCoalesce(_chunkJJSJ47CAjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkJJSJ47CAjs.beginToolExecuteCommand.call(void 0, )));
|
|
2703
2703
|
const deferredCompatibility = deferCompatibility ? beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) : void 0;
|
|
2704
|
-
const tracing =
|
|
2704
|
+
const tracing = _chunkSMDX4BM5js.isCliTraceEnabled.call(void 0, );
|
|
2705
2705
|
const clientStartedAt = tracing ? performance.now() : void 0;
|
|
2706
|
-
const client = new (0,
|
|
2706
|
+
const client = new (0, _chunkO7JU5GURjs.DeeplineClient)();
|
|
2707
2707
|
if (clientStartedAt !== void 0) {
|
|
2708
|
-
|
|
2708
|
+
_chunkSMDX4BM5js.recordCliTrace.call(void 0, {
|
|
2709
2709
|
phase: "cli.tool_execute_client_setup",
|
|
2710
2710
|
ms: performance.now() - clientStartedAt
|
|
2711
2711
|
});
|
|
@@ -2714,13 +2714,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2714
2714
|
const readMetadata = async () => {
|
|
2715
2715
|
if (metadata) return assertExecutableToolMetadata(parsed.toolId, metadata);
|
|
2716
2716
|
try {
|
|
2717
|
-
metadata = await
|
|
2717
|
+
metadata = await _chunkJJSJ47CAjs.runToolExecuteStage.call(void 0,
|
|
2718
2718
|
"tool metadata lookup",
|
|
2719
2719
|
() => client.getTool(parsed.toolId, { cliInvocationId })
|
|
2720
2720
|
);
|
|
2721
2721
|
} catch (error) {
|
|
2722
2722
|
if (isMissingToolMetadataError(error)) {
|
|
2723
|
-
const play = await
|
|
2723
|
+
const play = await _chunkJJSJ47CAjs.runToolExecuteStage.call(void 0,
|
|
2724
2724
|
"play alias lookup",
|
|
2725
2725
|
() => findPlayForToolId(client, parsed.toolId, cliInvocationId)
|
|
2726
2726
|
);
|
|
@@ -2749,7 +2749,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2749
2749
|
assertExecutableToolMetadata(parsed.toolId, metadata);
|
|
2750
2750
|
} catch (error) {
|
|
2751
2751
|
if (error instanceof _chunkSQWET4SLjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2752
|
-
if (wantsJson)
|
|
2752
|
+
if (wantsJson) _chunkKEE57BF2js.printJsonError.call(void 0, error);
|
|
2753
2753
|
else console.error(error.message);
|
|
2754
2754
|
return 2;
|
|
2755
2755
|
}
|
|
@@ -2761,7 +2761,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2761
2761
|
metadata = await readMetadata();
|
|
2762
2762
|
} catch (error) {
|
|
2763
2763
|
if (error instanceof _chunkSQWET4SLjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2764
|
-
if (wantsJson)
|
|
2764
|
+
if (wantsJson) _chunkKEE57BF2js.printJsonError.call(void 0, error);
|
|
2765
2765
|
else console.error(error.message);
|
|
2766
2766
|
return 2;
|
|
2767
2767
|
}
|
|
@@ -2777,7 +2777,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2777
2777
|
metadata = await readMetadata();
|
|
2778
2778
|
} catch (error) {
|
|
2779
2779
|
if (error instanceof _chunkSQWET4SLjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2780
|
-
if (wantsJson)
|
|
2780
|
+
if (wantsJson) _chunkKEE57BF2js.printJsonError.call(void 0, error);
|
|
2781
2781
|
else console.error(error.message);
|
|
2782
2782
|
return 2;
|
|
2783
2783
|
}
|
|
@@ -2803,11 +2803,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2803
2803
|
responseIntent,
|
|
2804
2804
|
...idempotencyKey ? { idempotencyKey } : {},
|
|
2805
2805
|
...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
|
|
2806
|
-
searchRef:
|
|
2806
|
+
searchRef: _chunk7S3DJFW5js.recentSearchRef.call(void 0, parsed.toolId),
|
|
2807
2807
|
cliInvocationId,
|
|
2808
|
-
onResponseReceived:
|
|
2808
|
+
onResponseReceived: _chunkH6OYTU2Yjs.recordApiResponse,
|
|
2809
2809
|
...tracing ? {
|
|
2810
|
-
onServerTiming: (serverTiming) =>
|
|
2810
|
+
onServerTiming: (serverTiming) => _chunkSMDX4BM5js.recordCliTrace.call(void 0, {
|
|
2811
2811
|
phase: "tool_execute_server_timing",
|
|
2812
2812
|
cliInvocationId,
|
|
2813
2813
|
serverTiming,
|
|
@@ -2818,13 +2818,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2818
2818
|
let rawResponse;
|
|
2819
2819
|
let successfulCompatibilityResponse;
|
|
2820
2820
|
try {
|
|
2821
|
-
const executeResult = await
|
|
2821
|
+
const executeResult = await _chunkJJSJ47CAjs.runToolExecuteStage.call(void 0,
|
|
2822
2822
|
"execute request",
|
|
2823
2823
|
async () => {
|
|
2824
2824
|
try {
|
|
2825
2825
|
if (tracing) {
|
|
2826
2826
|
submissionStartedAt = performance.now();
|
|
2827
|
-
|
|
2827
|
+
_chunkSMDX4BM5js.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
|
|
2828
2828
|
}
|
|
2829
2829
|
return await client.executeTool(parsed.toolId, parsed.params, {
|
|
2830
2830
|
...executeOptions,
|
|
@@ -2834,34 +2834,34 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2834
2834
|
} catch (error) {
|
|
2835
2835
|
if (!(error instanceof _chunkSQWET4SLjs.DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
|
|
2836
2836
|
throw error;
|
|
2837
|
-
const baseUrl =
|
|
2837
|
+
const baseUrl = _chunkBQ2KAFVQjs.resolveConfig.call(void 0, ).baseUrl;
|
|
2838
2838
|
if (maintenancePolicy !== "off") {
|
|
2839
|
-
|
|
2839
|
+
_chunkAQHMHYXXjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
2840
2840
|
}
|
|
2841
|
-
const compatibility = deferredCompatibility ? await deferredCompatibility.result : await
|
|
2841
|
+
const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunkJJSJ47CAjs.runToolExecuteStage.call(void 0,
|
|
2842
2842
|
"SDK compatibility",
|
|
2843
|
-
() =>
|
|
2843
|
+
() => _chunkAQHMHYXXjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
2844
2844
|
command: "tools execute",
|
|
2845
|
-
skillsVersion:
|
|
2845
|
+
skillsVersion: _chunkBQ2KAFVQjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
|
|
2846
2846
|
persistCache: maintenancePolicy !== "off"
|
|
2847
2847
|
})
|
|
2848
2848
|
);
|
|
2849
2849
|
if (compatibility.error) throw compatibility.error;
|
|
2850
2850
|
metadata = _nullishCoalesce(_optionalChain([deferredCompatibility, 'optionalAccess', _44 => _44.readMetadata, 'call', _45 => _45()]), () => ( metadata));
|
|
2851
|
-
if (maintenancePolicy !== "off" && await
|
|
2851
|
+
if (maintenancePolicy !== "off" && await _chunkJJSJ47CAjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2852
2852
|
compatibility.response,
|
|
2853
2853
|
baseUrl,
|
|
2854
2854
|
maintenancePolicy
|
|
2855
2855
|
)) {
|
|
2856
2856
|
return void 0;
|
|
2857
2857
|
}
|
|
2858
|
-
|
|
2858
|
+
_chunkAQHMHYXXjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
2859
2859
|
quietAdvisory: wantsJson
|
|
2860
2860
|
});
|
|
2861
2861
|
if (maintenancePolicy !== "off") {
|
|
2862
|
-
await
|
|
2862
|
+
await _chunkJJSJ47CAjs.runToolExecuteStage.call(void 0,
|
|
2863
2863
|
"agent skills sync",
|
|
2864
|
-
() =>
|
|
2864
|
+
() => _chunkAQHMHYXXjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
|
|
2865
2865
|
update: _optionalChain([compatibility, 'access', _46 => _46.response, 'optionalAccess', _47 => _47.skills]),
|
|
2866
2866
|
mode: "detached"
|
|
2867
2867
|
})
|
|
@@ -2870,7 +2870,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2870
2870
|
const legacyMetadata = await readMetadata();
|
|
2871
2871
|
if (tracing) {
|
|
2872
2872
|
submissionStartedAt = performance.now();
|
|
2873
|
-
|
|
2873
|
+
_chunkSMDX4BM5js.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
|
|
2874
2874
|
}
|
|
2875
2875
|
return client.executeTool(parsed.toolId, parsed.params, {
|
|
2876
2876
|
...executeOptions,
|
|
@@ -2893,8 +2893,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2893
2893
|
metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
|
|
2894
2894
|
const updateRequiredBeforeExecution = error instanceof _chunkSQWET4SLjs.DeeplineError && error.code === "SDK_UPDATE_REQUIRED";
|
|
2895
2895
|
if (updateRequiredBeforeExecution && maintenancePolicy !== "off" && compatibility && !compatibility.error) {
|
|
2896
|
-
const baseUrl =
|
|
2897
|
-
if (await
|
|
2896
|
+
const baseUrl = _chunkBQ2KAFVQjs.resolveConfig.call(void 0, ).baseUrl;
|
|
2897
|
+
if (await _chunkJJSJ47CAjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2898
2898
|
compatibility.response,
|
|
2899
2899
|
baseUrl,
|
|
2900
2900
|
maintenancePolicy
|
|
@@ -2918,7 +2918,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2918
2918
|
}
|
|
2919
2919
|
}
|
|
2920
2920
|
if (failure instanceof _chunkSQWET4SLjs.DeeplineError && failure.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2921
|
-
if (wantsJson)
|
|
2921
|
+
if (wantsJson) _chunkKEE57BF2js.printJsonError.call(void 0, failure);
|
|
2922
2922
|
else console.error(failure.message);
|
|
2923
2923
|
return 2;
|
|
2924
2924
|
}
|
|
@@ -2945,9 +2945,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2945
2945
|
successfulCompatibilityResponse = _nullishCoalesce(compatibilityResponse, () => ( void 0));
|
|
2946
2946
|
const autoUpdate = _optionalChain([compatibilityResponse, 'optionalAccess', _54 => _54.auto_update]);
|
|
2947
2947
|
if (maintenancePolicy !== "off" && compatibilityResponse && _optionalChain([autoUpdate, 'optionalAccess', _55 => _55.should_auto_update]) && !autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
2948
|
-
await
|
|
2948
|
+
await _chunkJJSJ47CAjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2949
2949
|
compatibilityResponse,
|
|
2950
|
-
|
|
2950
|
+
_chunkBQ2KAFVQjs.resolveConfig.call(void 0, ).baseUrl,
|
|
2951
2951
|
maintenancePolicy
|
|
2952
2952
|
);
|
|
2953
2953
|
}
|
|
@@ -2982,7 +2982,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2982
2982
|
const { _metadata, ...execution } = rawResponse;
|
|
2983
2983
|
rawResponse = execution;
|
|
2984
2984
|
}
|
|
2985
|
-
const { listConversion, summary, baseEnvelope } = await
|
|
2985
|
+
const { listConversion, summary, baseEnvelope } = await _chunkJJSJ47CAjs.runToolExecuteStage.call(void 0,
|
|
2986
2986
|
"result formatting",
|
|
2987
2987
|
async () => {
|
|
2988
2988
|
const listConversion2 = _chunkHGFFYVXNjs.tryConvertToList.call(void 0, rawResponse, {
|
|
@@ -3017,9 +3017,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
3017
3017
|
}
|
|
3018
3018
|
skillsSyncAttempted = true;
|
|
3019
3019
|
try {
|
|
3020
|
-
await
|
|
3020
|
+
await _chunkJJSJ47CAjs.runToolExecuteStage.call(void 0,
|
|
3021
3021
|
"agent skills sync",
|
|
3022
|
-
() =>
|
|
3022
|
+
() => _chunkAQHMHYXXjs.syncSdkSkillsIfNeeded.call(void 0, _chunkBQ2KAFVQjs.resolveConfig.call(void 0, ).baseUrl, {
|
|
3023
3023
|
update: deliveredCompatibilityResponse.skills,
|
|
3024
3024
|
mode: "detached"
|
|
3025
3025
|
})
|
|
@@ -3030,15 +3030,15 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
3030
3030
|
);
|
|
3031
3031
|
}
|
|
3032
3032
|
};
|
|
3033
|
-
const printDeliveredEnvelope = (envelope, options2 = {}) =>
|
|
3033
|
+
const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkKEE57BF2js.printCommandEnvelope.call(void 0, envelope, {
|
|
3034
3034
|
...options2,
|
|
3035
3035
|
json: _nullishCoalesce(options2.json, () => ( wantsJson))
|
|
3036
3036
|
});
|
|
3037
3037
|
const printDeliveredJsonEnvelope = async (envelope, options2 = {}) => {
|
|
3038
3038
|
await syncSkillsForDeliveredOutput();
|
|
3039
|
-
|
|
3039
|
+
_chunkKEE57BF2js.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
|
|
3040
3040
|
};
|
|
3041
|
-
const delivered = await
|
|
3041
|
+
const delivered = await _chunkJJSJ47CAjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
|
|
3042
3042
|
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
|
|
3043
3043
|
await printDeliveredJsonEnvelope(baseEnvelope);
|
|
3044
3044
|
return true;
|
|
@@ -3067,7 +3067,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
3067
3067
|
`${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
|
|
3068
3068
|
);
|
|
3069
3069
|
if (wantsJson) {
|
|
3070
|
-
|
|
3070
|
+
_chunkKEE57BF2js.printJsonError.call(void 0, error);
|
|
3071
3071
|
} else {
|
|
3072
3072
|
console.error(error.message);
|
|
3073
3073
|
}
|
|
@@ -3162,13 +3162,13 @@ inspect: ${inspection.inspect}
|
|
|
3162
3162
|
return true;
|
|
3163
3163
|
});
|
|
3164
3164
|
if (delivered) {
|
|
3165
|
-
await
|
|
3165
|
+
await _chunkJJSJ47CAjs.runToolExecuteStage.call(void 0,
|
|
3166
3166
|
"acknowledge delivery",
|
|
3167
3167
|
() => recovery.acknowledgeDelivery()
|
|
3168
3168
|
);
|
|
3169
3169
|
}
|
|
3170
3170
|
if (delivered && deliveredCompatibilityResponse && deliveredCompatibilityResponse.update_required !== true) {
|
|
3171
|
-
|
|
3171
|
+
_chunkAQHMHYXXjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
|
|
3172
3172
|
quietAdvisory: wantsJson || maintenancePolicy === "off" || _optionalChain([deliveredCompatibilityResponse, 'access', _58 => _58.auto_update, 'optionalAccess', _59 => _59.should_auto_update]) === true
|
|
3173
3173
|
});
|
|
3174
3174
|
}
|