deepline 0.3.438 → 0.3.440
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/client.ts +23 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-execution-relay.ts +8 -4
- package/dist/cli/{auth-UDRY6ZL5.mjs → auth-KBORTFO6.mjs} +4 -4
- package/dist/cli/auth-LXI5K7V6.js +40 -0
- package/dist/cli/{billing-7QTUCC3F.js → billing-RE5WN7IQ.js} +73 -73
- package/dist/cli/{billing-3PTMADUE.mjs → billing-VJSUCB5I.mjs} +4 -4
- package/dist/cli/{chunk-R4MGS7YD.mjs → chunk-2GNX6SCO.mjs} +24 -0
- package/dist/cli/{chunk-GSDUURVH.mjs → chunk-42YHEY2R.mjs} +2 -2
- package/dist/cli/{chunk-3BQVWQXZ.js → chunk-4GHEUG6W.js} +20 -20
- package/dist/cli/{chunk-K4WKKNGY.js → chunk-4RKPT6IE.js} +2 -2
- package/dist/cli/{chunk-3ZGIJPAC.js → chunk-ATTUUPIU.js} +8 -8
- package/dist/cli/{chunk-S5AVEKTO.js → chunk-BBYGXP2I.js} +6 -6
- package/dist/cli/{chunk-CLDL6HJ4.js → chunk-CI56TXRS.js} +35 -35
- package/dist/cli/{chunk-CO67TF3J.mjs → chunk-CWFN7MUU.mjs} +42 -10
- package/dist/cli/{chunk-K4EHBVYV.js → chunk-DM6Q634K.js} +24 -0
- package/dist/cli/{chunk-IREQVEGX.js → chunk-EPABMF45.js} +6 -6
- package/dist/cli/{chunk-GIRJGHC3.js → chunk-FGTKAXRJ.js} +93 -80
- package/dist/cli/{chunk-3G2MZM7B.js → chunk-GFEWNYQ4.js} +2 -2
- package/dist/cli/{chunk-MOVWT3Z3.js → chunk-GJI7C2OU.js} +8 -8
- package/dist/cli/{chunk-64GPTXJV.mjs → chunk-GOHOTLUV.mjs} +3 -3
- package/dist/cli/{chunk-QUAV2FSK.mjs → chunk-GRAEERVE.mjs} +3 -3
- package/dist/cli/{chunk-QG7LM24G.mjs → chunk-GWC7OBRD.mjs} +2 -2
- package/dist/cli/{chunk-EBGHNXSH.js → chunk-HNMQSS7P.js} +1 -1
- package/dist/cli/{chunk-2OTCHLWC.mjs → chunk-K23LXA4N.mjs} +1 -1
- package/dist/cli/{chunk-ODGVHGHI.js → chunk-M6WSQZHP.js} +52 -52
- package/dist/cli/{chunk-SJBJYNJ3.mjs → chunk-NIR2UK5V.mjs} +1 -1
- package/dist/cli/{chunk-AGX3XMPN.mjs → chunk-O7PC3VOI.mjs} +1 -1
- package/dist/cli/{chunk-KQJMCYFP.js → chunk-OOVQITRM.js} +50 -50
- package/dist/cli/{chunk-2KDFL6IV.mjs → chunk-OX5JAD3D.mjs} +4 -4
- package/dist/cli/{chunk-GBIWLNWI.mjs → chunk-PCNOULRB.mjs} +14 -1
- package/dist/cli/{chunk-IAQ73HVZ.js → chunk-R2P756BJ.js} +16 -16
- package/dist/cli/{chunk-PEFUJDEQ.mjs → chunk-R7GGDUOM.mjs} +3 -3
- package/dist/cli/{chunk-3G7KUJ63.mjs → chunk-RAJP44MZ.mjs} +1 -1
- package/dist/cli/{chunk-LZRYLCV3.mjs → chunk-T6XBX45B.mjs} +5 -5
- package/dist/cli/{chunk-HWTAT726.js → chunk-V2ZITVZA.js} +26 -26
- package/dist/cli/{chunk-ALWQKQQ6.mjs → chunk-V74O7X2X.mjs} +2 -2
- package/dist/cli/{chunk-OSQEFBQA.js → chunk-VXQQZV4A.js} +4 -4
- package/dist/cli/{chunk-G6HUOVZ4.mjs → chunk-XL4FJX7J.mjs} +1 -1
- package/dist/cli/{chunk-OVLP7546.js → chunk-Z7SKBAOU.js} +113 -81
- package/dist/cli/{chunk-DGGQXHAO.mjs → chunk-ZLD46RSR.mjs} +2 -2
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-K5PMPLNS.js → csv-L64ECPD5.js} +12 -12
- package/dist/cli/{csv-ZU2VMGYN.mjs → csv-MP3WOYPE.mjs} +3 -3
- package/dist/cli/{db-GJR5NDMX.mjs → db-FOV7GHXS.mjs} +4 -4
- package/dist/cli/{db-7CZ73PYG.js → db-RZJK6LGN.js} +25 -25
- package/dist/cli/{describe-NS2RAE5K.mjs → describe-R2BEQHVZ.mjs} +12 -12
- package/dist/cli/{describe-YNVJ76T6.js → describe-WWENJAG2.js} +16 -16
- package/dist/cli/describe-core.d.mts +1 -1
- package/dist/cli/describe-core.d.ts +1 -1
- package/dist/cli/{executions-EKWO3HR7.js → executions-3LFEK56I.js} +6 -6
- package/dist/cli/{executions-7VW6WOHA.mjs → executions-C5WO6TGN.mjs} +4 -4
- package/dist/cli/{feedback-DTMRRZNI.js → feedback-EMWUZ4LV.js} +7 -7
- package/dist/cli/{feedback-I4AKIIFP.mjs → feedback-K6OAZUQ4.mjs} +3 -3
- package/dist/cli/git-2BW2UDK6.js +24 -0
- package/dist/cli/{git-H7RW4ILW.mjs → git-DJLL3OCZ.mjs} +4 -4
- package/dist/cli/index.js +135 -135
- package/dist/cli/index.mjs +37 -37
- package/dist/cli/{legacy-noops-BJCSECN6.js → legacy-noops-57SRSZ7M.js} +7 -7
- package/dist/cli/{legacy-noops-2LJGABEO.mjs → legacy-noops-EAJG56KP.mjs} +4 -4
- package/dist/cli/{monitors-75ZYK5QN.mjs → monitors-FHTQ6227.mjs} +4 -4
- package/dist/cli/{monitors-YXIETS5O.js → monitors-OI57AAIG.js} +84 -84
- package/dist/cli/{org-TIQTG57G.js → org-26EHPBKF.js} +66 -66
- package/dist/cli/{org-5BYA54D5.mjs → org-YGHFZTWJ.mjs} +4 -4
- package/dist/cli/{play-3HDMONS3.mjs → play-KBKWTIXK.mjs} +10 -10
- package/dist/cli/{play-MG6PQTZX.js → play-PXGYS4DH.js} +283 -283
- package/dist/cli/{providers-VTU5QFEY.js → providers-IZYBWI6M.js} +7 -7
- package/dist/cli/{providers-ZRI33AVX.mjs → providers-YPFEVK5C.mjs} +4 -4
- package/dist/cli/{quickstart-E2GZQ7C5.js → quickstart-RBCTFLI3.js} +5 -5
- package/dist/cli/{quickstart-GLKJVPGF.mjs → quickstart-SJ2M56CV.mjs} +3 -3
- package/dist/cli/search-5CFJRSGN.js +30 -0
- package/dist/cli/{search-WA7MLHXA.mjs → search-PSPZTTKR.mjs} +5 -5
- package/dist/cli/{secrets-UZCAPRNH.mjs → secrets-BCS4FE5D.mjs} +4 -4
- package/dist/cli/{secrets-FJ2FFPR6.js → secrets-XIWKYXGD.js} +13 -13
- package/dist/cli/{sessions-RGT3OFG3.mjs → sessions-L3UEERFX.mjs} +4 -4
- package/dist/cli/{sessions-GSB77ETF.js → sessions-YX2AJF5I.js} +5 -5
- package/dist/cli/{settings-5TWU54SW.mjs → settings-SFFP7AR5.mjs} +8 -8
- package/dist/cli/{settings-LOFO3Z7X.js → settings-X2GMYBE7.js} +75 -75
- package/dist/cli/{setup-HUAD7RTY.js → setup-4ERUKDQ5.js} +42 -42
- package/dist/cli/{setup-ECTNKMOF.mjs → setup-QIHAXFBL.mjs} +7 -7
- package/dist/cli/{skills-APEJV5NK.mjs → skills-BYNSDIKJ.mjs} +5 -5
- package/dist/cli/skills-EOPZVMJS.js +29 -0
- package/dist/cli/{tools-56FHN4LC.mjs → tools-PQSMCIA7.mjs} +12 -12
- package/dist/cli/tools-UEZW4OD7.js +44 -0
- package/dist/cli/update-6TOZCQ4Y.js +31 -0
- package/dist/cli/{update-HEN6P35K.mjs → update-BI4E6UXI.mjs} +7 -7
- package/dist/cli/{workflow-VYCNZHZ7.js → workflow-52P63K65.js} +15 -15
- package/dist/cli/{workflow-P7XPHC5B.mjs → workflow-PMRFMZVP.mjs} +5 -5
- package/dist/{client-uX4RCcOS.d.ts → client-9nH8tx4R.d.ts} +9 -0
- package/dist/{client-jgdWPXpp.d.mts → client-Doml68vC.d.mts} +9 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +82 -82
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +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/package.json +1 -1
- package/dist/cli/auth-7MV6G26U.js +0 -40
- package/dist/cli/git-F7XXAE3T.js +0 -24
- package/dist/cli/search-FWZCKD3Y.js +0 -30
- package/dist/cli/skills-M6AIJHCI.js +0 -29
- package/dist/cli/tools-4CNXP3XD.js +0 -44
- package/dist/cli/update-US3AAEVC.js +0 -31
|
@@ -5,7 +5,7 @@ var _chunkGXOQRZXGjs = require('./chunk-GXOQRZXG.js');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkGJI7C2OUjs = require('./chunk-GJI7C2OU.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -45,7 +45,7 @@ var _chunkHGFFYVXNjs = require('./chunk-HGFFYVXN.js');
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
var
|
|
48
|
+
var _chunkFGTKAXRJjs = require('./chunk-FGTKAXRJ.js');
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
|
|
@@ -55,18 +55,18 @@ var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
|
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
var
|
|
58
|
+
var _chunk4GHEUG6Wjs = require('./chunk-4GHEUG6W.js');
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
var
|
|
63
|
+
var _chunk4RKPT6IEjs = require('./chunk-4RKPT6IE.js');
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
var
|
|
69
|
+
var _chunkM6WSQZHPjs = require('./chunk-M6WSQZHP.js');
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
|
|
@@ -74,12 +74,12 @@ var _chunkODGVHGHIjs = require('./chunk-ODGVHGHI.js');
|
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
var
|
|
77
|
+
var _chunkBBYGXP2Ijs = require('./chunk-BBYGXP2I.js');
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
|
|
82
|
-
var
|
|
82
|
+
var _chunkVXQQZV4Ajs = require('./chunk-VXQQZV4A.js');
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
|
|
@@ -158,10 +158,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
|
|
|
158
158
|
}
|
|
159
159
|
};
|
|
160
160
|
function pendingToolExecutionPath(input) {
|
|
161
|
-
const config =
|
|
161
|
+
const config = _chunkVXQQZV4Ajs.resolveConfig.call(void 0, );
|
|
162
162
|
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");
|
|
163
163
|
return _path.join.call(void 0,
|
|
164
|
-
|
|
164
|
+
_chunkVXQQZV4Ajs.sdkCliStateDirPath.call(void 0, config.baseUrl),
|
|
165
165
|
`pending-tool-execution-${fingerprint}.json`
|
|
166
166
|
);
|
|
167
167
|
}
|
|
@@ -437,13 +437,13 @@ function categoryEnumerationRender(summaries) {
|
|
|
437
437
|
};
|
|
438
438
|
}
|
|
439
439
|
async function listToolCategories(emitJson, compact) {
|
|
440
|
-
const client = new (0,
|
|
440
|
+
const client = new (0, _chunkFGTKAXRJjs.DeeplineClient)();
|
|
441
441
|
if (!emitJson) {
|
|
442
442
|
const summaries2 = (await client.listToolCategories()).map((category) => ({
|
|
443
443
|
...category,
|
|
444
444
|
description: describeToolCategory(category.name)
|
|
445
445
|
}));
|
|
446
|
-
|
|
446
|
+
_chunkBBYGXP2Ijs.printCommandEnvelope.call(void 0,
|
|
447
447
|
{ categories: summaries2, render: categoryEnumerationRender(summaries2) },
|
|
448
448
|
{ json: false }
|
|
449
449
|
);
|
|
@@ -453,7 +453,7 @@ async function listToolCategories(emitJson, compact) {
|
|
|
453
453
|
const items = rawTools.map(toListedTool);
|
|
454
454
|
const summaries = aggregateCategorySummaries(rawTools);
|
|
455
455
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
456
|
-
|
|
456
|
+
_chunkBBYGXP2Ijs.printCommandEnvelope.call(void 0,
|
|
457
457
|
{
|
|
458
458
|
tools: outputItems,
|
|
459
459
|
count: outputItems.length,
|
|
@@ -472,7 +472,7 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
472
472
|
const known = summaries.map((item) => item.name);
|
|
473
473
|
const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
|
|
474
474
|
if (emitJson) {
|
|
475
|
-
|
|
475
|
+
_chunkBBYGXP2Ijs.printJson.call(void 0, {
|
|
476
476
|
ok: false,
|
|
477
477
|
exitCode: 4,
|
|
478
478
|
code: "TOOL_CATEGORY_NOT_FOUND",
|
|
@@ -486,13 +486,13 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
486
486
|
const render = categoryEnumerationRender(summaries);
|
|
487
487
|
console.error(message);
|
|
488
488
|
console.error("");
|
|
489
|
-
console.error(
|
|
489
|
+
console.error(_chunkBBYGXP2Ijs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
|
|
490
490
|
console.error("");
|
|
491
491
|
console.error(`Valid categories: ${known.join(", ")}`);
|
|
492
492
|
return 4;
|
|
493
493
|
}
|
|
494
494
|
async function listToolsInCategory(category, emitJson) {
|
|
495
|
-
const client = new (0,
|
|
495
|
+
const client = new (0, _chunkFGTKAXRJjs.DeeplineClient)();
|
|
496
496
|
const { tools: rawTools, categories } = await client.listToolsInCategory(category);
|
|
497
497
|
const summaries = categories.map((item) => ({
|
|
498
498
|
...item,
|
|
@@ -528,7 +528,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
528
528
|
}
|
|
529
529
|
]
|
|
530
530
|
};
|
|
531
|
-
|
|
531
|
+
_chunkBBYGXP2Ijs.printCommandEnvelope.call(void 0,
|
|
532
532
|
{
|
|
533
533
|
category,
|
|
534
534
|
total: rows.length,
|
|
@@ -541,7 +541,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
541
541
|
return 0;
|
|
542
542
|
}
|
|
543
543
|
async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
|
|
544
|
-
const client = new (0,
|
|
544
|
+
const client = new (0, _chunkFGTKAXRJjs.DeeplineClient)();
|
|
545
545
|
const items = (await client.listTools({
|
|
546
546
|
categories: requestedCategories.join(","),
|
|
547
547
|
compact
|
|
@@ -570,7 +570,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
|
|
|
570
570
|
]
|
|
571
571
|
};
|
|
572
572
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
573
|
-
|
|
573
|
+
_chunkBBYGXP2Ijs.printCommandEnvelope.call(void 0,
|
|
574
574
|
{
|
|
575
575
|
tools: outputItems,
|
|
576
576
|
count: outputItems.length,
|
|
@@ -589,13 +589,13 @@ async function listTools(category, options = {}) {
|
|
|
589
589
|
const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]), () => ( ""));
|
|
590
590
|
const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
|
|
591
591
|
const compact = options.compact !== false;
|
|
592
|
-
const emitJson = options.json === true ||
|
|
592
|
+
const emitJson = options.json === true || _chunkBBYGXP2Ijs.shouldEmitJson.call(void 0, );
|
|
593
593
|
if (positional && flagCategories.length > 0) {
|
|
594
594
|
const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
|
|
595
595
|
if (!flagIsSameSingle) {
|
|
596
596
|
const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
|
|
597
597
|
if (emitJson) {
|
|
598
|
-
|
|
598
|
+
_chunkBBYGXP2Ijs.printJson.call(void 0, {
|
|
599
599
|
ok: false,
|
|
600
600
|
exitCode: 2,
|
|
601
601
|
code: "TOOL_LIST_CATEGORY_CONFLICT",
|
|
@@ -622,7 +622,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
622
622
|
console.error("Usage: deepline tools grep <query> [--json]");
|
|
623
623
|
return 1;
|
|
624
624
|
}
|
|
625
|
-
const client = new (0,
|
|
625
|
+
const client = new (0, _chunkFGTKAXRJjs.DeeplineClient)();
|
|
626
626
|
const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
|
|
627
627
|
const mode = _nullishCoalesce(options.mode, () => ( "all"));
|
|
628
628
|
const jsonOutput = options.json === true;
|
|
@@ -646,7 +646,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
646
646
|
query,
|
|
647
647
|
mode
|
|
648
648
|
}) : null;
|
|
649
|
-
|
|
649
|
+
_chunkBBYGXP2Ijs.printCommandEnvelope.call(void 0,
|
|
650
650
|
{
|
|
651
651
|
tools: outputTools,
|
|
652
652
|
count: outputTools.length,
|
|
@@ -664,7 +664,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
664
664
|
} : {},
|
|
665
665
|
commandTemplates: TOOL_COMMAND_TEMPLATES
|
|
666
666
|
},
|
|
667
|
-
{ json: options.json ||
|
|
667
|
+
{ json: options.json || _chunkBBYGXP2Ijs.shouldEmitJson.call(void 0, ) }
|
|
668
668
|
);
|
|
669
669
|
return 0;
|
|
670
670
|
}
|
|
@@ -760,12 +760,44 @@ Output:
|
|
|
760
760
|
`
|
|
761
761
|
);
|
|
762
762
|
tools.command("connect <provider>").description(
|
|
763
|
-
"
|
|
764
|
-
).
|
|
763
|
+
"Connect a provider with credentials or OAuth (owner/admin required)."
|
|
764
|
+
).option(
|
|
765
765
|
"--credentials-file <path>",
|
|
766
766
|
"JSON object of credential field names and string values; keep this file private"
|
|
767
|
+
).option("--oauth", "Return an OAuth authorization URL").option("--preset <id>", "Server-defined access preset (HubSpot only)").option("--scopes <scopes>", "Comma-separated OAuth scopes").option(
|
|
768
|
+
"--optional-scopes <scopes>",
|
|
769
|
+
"Comma-separated optional OAuth scopes"
|
|
767
770
|
).option("--json", "Emit a confirmation without credential values").action(
|
|
768
771
|
async (provider, options) => {
|
|
772
|
+
if (options.oauth) {
|
|
773
|
+
if (options.credentialsFile)
|
|
774
|
+
throw new Error("Use --oauth or --credentials-file, not both.");
|
|
775
|
+
if (options.preset !== void 0 && (options.scopes !== void 0 || options.optionalScopes !== void 0))
|
|
776
|
+
throw new Error("Use --preset or individual scopes, not both.");
|
|
777
|
+
const splitScopes = (value) => value.split(",").map((scope) => scope.trim()).filter(Boolean);
|
|
778
|
+
const result2 = await new (0, _chunkFGTKAXRJjs.DeeplineClient)().startIntegrationOAuth(
|
|
779
|
+
provider,
|
|
780
|
+
{
|
|
781
|
+
...options.preset !== void 0 ? { preset: options.preset } : {},
|
|
782
|
+
...options.scopes !== void 0 ? { scopes: splitScopes(options.scopes) } : {},
|
|
783
|
+
...options.optionalScopes !== void 0 ? { optionalScopes: splitScopes(options.optionalScopes) } : {}
|
|
784
|
+
}
|
|
785
|
+
);
|
|
786
|
+
if (!result2.ok || typeof result2.redirect_url !== "string" || !result2.redirect_url)
|
|
787
|
+
throw new Error(
|
|
788
|
+
"The API did not return an OAuth authorization URL."
|
|
789
|
+
);
|
|
790
|
+
if (_chunkBBYGXP2Ijs.shouldEmitJson.call(void 0, options.json))
|
|
791
|
+
console.log(
|
|
792
|
+
JSON.stringify({ provider, redirect_url: result2.redirect_url })
|
|
793
|
+
);
|
|
794
|
+
else console.log(result2.redirect_url);
|
|
795
|
+
return;
|
|
796
|
+
}
|
|
797
|
+
if (!options.credentialsFile || options.preset !== void 0 || options.scopes !== void 0 || options.optionalScopes !== void 0)
|
|
798
|
+
throw new Error(
|
|
799
|
+
"Use --credentials-file to save credentials, or --oauth to request access."
|
|
800
|
+
);
|
|
769
801
|
let credentials;
|
|
770
802
|
try {
|
|
771
803
|
credentials = JSON.parse(
|
|
@@ -781,7 +813,7 @@ Output:
|
|
|
781
813
|
"--credentials-file must contain a nonempty JSON object of string credential values."
|
|
782
814
|
);
|
|
783
815
|
}
|
|
784
|
-
const result = await new (0,
|
|
816
|
+
const result = await new (0, _chunkFGTKAXRJjs.DeeplineClient)().setIntegrationCredentials(
|
|
785
817
|
provider,
|
|
786
818
|
credentials
|
|
787
819
|
);
|
|
@@ -791,7 +823,7 @@ Output:
|
|
|
791
823
|
);
|
|
792
824
|
}
|
|
793
825
|
const confirmation = { provider, credential_saved: true };
|
|
794
|
-
if (
|
|
826
|
+
if (_chunkBBYGXP2Ijs.shouldEmitJson.call(void 0, options.json))
|
|
795
827
|
console.log(JSON.stringify(confirmation));
|
|
796
828
|
else
|
|
797
829
|
console.log(
|
|
@@ -831,7 +863,7 @@ Examples:
|
|
|
831
863
|
json: Boolean(options.json)
|
|
832
864
|
});
|
|
833
865
|
});
|
|
834
|
-
|
|
866
|
+
_chunkGJI7C2OUjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
|
|
835
867
|
tools.command("grep <query>").description(
|
|
836
868
|
"Regex grep over tool ids, descriptions, categories, and input fields."
|
|
837
869
|
).addHelpText(
|
|
@@ -866,7 +898,7 @@ Examples:
|
|
|
866
898
|
});
|
|
867
899
|
const addToolMetadataCommand = (command) => {
|
|
868
900
|
let compatibilityMetadata;
|
|
869
|
-
|
|
901
|
+
_chunk4GHEUG6Wjs.registerCompatibilityCatalog.call(void 0, command, () => ({
|
|
870
902
|
toolId: command.args[0],
|
|
871
903
|
acceptMetadata: (metadata) => {
|
|
872
904
|
compatibilityMetadata = metadata;
|
|
@@ -936,7 +968,7 @@ Examples:
|
|
|
936
968
|
process.exitCode = await narrowView();
|
|
937
969
|
return;
|
|
938
970
|
}
|
|
939
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
971
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-WWENJAG2.js")));
|
|
940
972
|
process.exitCode = await describeAnything(
|
|
941
973
|
toolId,
|
|
942
974
|
{
|
|
@@ -1020,7 +1052,7 @@ Examples:
|
|
|
1020
1052
|
options,
|
|
1021
1053
|
void 0,
|
|
1022
1054
|
true,
|
|
1023
|
-
|
|
1055
|
+
_chunk4RKPT6IEjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
1024
1056
|
);
|
|
1025
1057
|
}
|
|
1026
1058
|
);
|
|
@@ -1028,13 +1060,13 @@ Examples:
|
|
|
1028
1060
|
function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
1029
1061
|
let metadata;
|
|
1030
1062
|
const startedAt = performance.now();
|
|
1031
|
-
const baseUrl =
|
|
1032
|
-
|
|
1033
|
-
const result =
|
|
1063
|
+
const baseUrl = _chunkVXQQZV4Ajs.resolveConfig.call(void 0, ).baseUrl;
|
|
1064
|
+
_chunk4RKPT6IEjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
|
|
1065
|
+
const result = _chunk4GHEUG6Wjs.runToolExecuteStage.call(void 0,
|
|
1034
1066
|
"SDK compatibility",
|
|
1035
|
-
() =>
|
|
1067
|
+
() => _chunkM6WSQZHPjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
1036
1068
|
command: "tools execute",
|
|
1037
|
-
skillsVersion:
|
|
1069
|
+
skillsVersion: _chunkVXQQZV4Ajs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
|
|
1038
1070
|
persistCache: false,
|
|
1039
1071
|
timeoutMs: TOOL_EXECUTE_PREFLIGHT_TIMEOUT_MS,
|
|
1040
1072
|
catalog: {
|
|
@@ -1048,7 +1080,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
|
1048
1080
|
})
|
|
1049
1081
|
).then(
|
|
1050
1082
|
(compatibility) => {
|
|
1051
|
-
|
|
1083
|
+
_chunk4RKPT6IEjs.recordCliTrace.call(void 0, {
|
|
1052
1084
|
phase: "cli.tool_execute_compatibility_ready",
|
|
1053
1085
|
ms: performance.now() - startedAt,
|
|
1054
1086
|
ok: compatibility.error === null,
|
|
@@ -1057,7 +1089,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
|
1057
1089
|
return compatibility;
|
|
1058
1090
|
},
|
|
1059
1091
|
(error) => {
|
|
1060
|
-
|
|
1092
|
+
_chunk4RKPT6IEjs.recordCliTrace.call(void 0, {
|
|
1061
1093
|
phase: "cli.tool_execute_compatibility_ready",
|
|
1062
1094
|
ms: performance.now() - startedAt,
|
|
1063
1095
|
ok: false
|
|
@@ -1072,7 +1104,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1072
1104
|
console.error("Usage: deepline tools describe <toolId> [--json]");
|
|
1073
1105
|
return 1;
|
|
1074
1106
|
}
|
|
1075
|
-
const client = new (0,
|
|
1107
|
+
const client = new (0, _chunkFGTKAXRJjs.DeeplineClient)();
|
|
1076
1108
|
let tool;
|
|
1077
1109
|
try {
|
|
1078
1110
|
tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
|
|
@@ -1126,7 +1158,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1126
1158
|
const lines = toolPricingOnlyLines(tool, toolId);
|
|
1127
1159
|
if (inferenceQuote)
|
|
1128
1160
|
lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
|
|
1129
|
-
|
|
1161
|
+
_chunkBBYGXP2Ijs.printCommandEnvelope.call(void 0,
|
|
1130
1162
|
{
|
|
1131
1163
|
toolId: String(tool.toolId || toolId),
|
|
1132
1164
|
cost: _chunkZM2YPJQJjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
|
|
@@ -1149,7 +1181,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1149
1181
|
void 0,
|
|
1150
1182
|
seedToolListScript
|
|
1151
1183
|
);
|
|
1152
|
-
|
|
1184
|
+
_chunkBBYGXP2Ijs.printCompactJson.call(void 0, {
|
|
1153
1185
|
toolId: contract.toolId,
|
|
1154
1186
|
...options.schemaOnly ? {
|
|
1155
1187
|
inputSchema: contract.inputSchema,
|
|
@@ -1172,7 +1204,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1172
1204
|
return 0;
|
|
1173
1205
|
}
|
|
1174
1206
|
if (options.contractJson) {
|
|
1175
|
-
|
|
1207
|
+
_chunkBBYGXP2Ijs.printCompactJson.call(void 0, {
|
|
1176
1208
|
..._chunkR2QWSSAGjs.toolContractJsonForDescribe.call(void 0,
|
|
1177
1209
|
tool,
|
|
1178
1210
|
toolId,
|
|
@@ -1186,7 +1218,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1186
1218
|
}
|
|
1187
1219
|
const emitJson = options.json === true;
|
|
1188
1220
|
if (emitJson) {
|
|
1189
|
-
|
|
1221
|
+
_chunkBBYGXP2Ijs.printCompactJson.call(void 0, {
|
|
1190
1222
|
..._chunkR2QWSSAGjs.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
|
|
1191
1223
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1192
1224
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -2047,7 +2079,7 @@ function parseExecuteOptions(toolId, options, output) {
|
|
|
2047
2079
|
outputFormat = normalizeOutputFormat(options.outputFormat);
|
|
2048
2080
|
}
|
|
2049
2081
|
if (options.idempotencyKey !== void 0) {
|
|
2050
|
-
|
|
2082
|
+
_chunkFGTKAXRJjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
|
|
2051
2083
|
}
|
|
2052
2084
|
if (options.recoveryTimeoutMs !== void 0) {
|
|
2053
2085
|
const parsed = Number(options.recoveryTimeoutMs);
|
|
@@ -2368,19 +2400,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2368
2400
|
parsed = parseExecuteOptions(toolId, options, output);
|
|
2369
2401
|
} catch (error) {
|
|
2370
2402
|
if (wantsJson) {
|
|
2371
|
-
|
|
2403
|
+
_chunkBBYGXP2Ijs.printJsonError.call(void 0, error);
|
|
2372
2404
|
} else {
|
|
2373
2405
|
console.error(error instanceof Error ? error.message : String(error));
|
|
2374
2406
|
}
|
|
2375
2407
|
return error instanceof _chunkPPDBRJRWjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
|
|
2376
2408
|
}
|
|
2377
|
-
const cliInvocationId = _nullishCoalesce(
|
|
2409
|
+
const cliInvocationId = _nullishCoalesce(_chunk4GHEUG6Wjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunk4GHEUG6Wjs.beginToolExecuteCommand.call(void 0, )));
|
|
2378
2410
|
const deferredCompatibility = deferCompatibility ? beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) : void 0;
|
|
2379
|
-
const tracing =
|
|
2411
|
+
const tracing = _chunk4RKPT6IEjs.isCliTraceEnabled.call(void 0, );
|
|
2380
2412
|
const clientStartedAt = tracing ? performance.now() : void 0;
|
|
2381
|
-
const client = new (0,
|
|
2413
|
+
const client = new (0, _chunkFGTKAXRJjs.DeeplineClient)();
|
|
2382
2414
|
if (clientStartedAt !== void 0) {
|
|
2383
|
-
|
|
2415
|
+
_chunk4RKPT6IEjs.recordCliTrace.call(void 0, {
|
|
2384
2416
|
phase: "cli.tool_execute_client_setup",
|
|
2385
2417
|
ms: performance.now() - clientStartedAt
|
|
2386
2418
|
});
|
|
@@ -2389,13 +2421,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2389
2421
|
const readMetadata = async () => {
|
|
2390
2422
|
if (metadata) return metadata;
|
|
2391
2423
|
try {
|
|
2392
|
-
metadata = await
|
|
2424
|
+
metadata = await _chunk4GHEUG6Wjs.runToolExecuteStage.call(void 0,
|
|
2393
2425
|
"tool metadata lookup",
|
|
2394
2426
|
() => client.getTool(parsed.toolId, { cliInvocationId })
|
|
2395
2427
|
);
|
|
2396
2428
|
} catch (error) {
|
|
2397
2429
|
if (isMissingToolMetadataError(error)) {
|
|
2398
|
-
const play = await
|
|
2430
|
+
const play = await _chunk4GHEUG6Wjs.runToolExecuteStage.call(void 0,
|
|
2399
2431
|
"play alias lookup",
|
|
2400
2432
|
() => findPlayForToolId(client, parsed.toolId, cliInvocationId)
|
|
2401
2433
|
);
|
|
@@ -2434,7 +2466,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2434
2466
|
metadata = await readMetadata();
|
|
2435
2467
|
} catch (error) {
|
|
2436
2468
|
if (error instanceof _chunkPPDBRJRWjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2437
|
-
if (wantsJson)
|
|
2469
|
+
if (wantsJson) _chunkBBYGXP2Ijs.printJsonError.call(void 0, error);
|
|
2438
2470
|
else console.error(error.message);
|
|
2439
2471
|
return 2;
|
|
2440
2472
|
}
|
|
@@ -2450,7 +2482,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2450
2482
|
metadata = await readMetadata();
|
|
2451
2483
|
} catch (error) {
|
|
2452
2484
|
if (error instanceof _chunkPPDBRJRWjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2453
|
-
if (wantsJson)
|
|
2485
|
+
if (wantsJson) _chunkBBYGXP2Ijs.printJsonError.call(void 0, error);
|
|
2454
2486
|
else console.error(error.message);
|
|
2455
2487
|
return 2;
|
|
2456
2488
|
}
|
|
@@ -2476,11 +2508,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2476
2508
|
responseIntent,
|
|
2477
2509
|
...idempotencyKey ? { idempotencyKey } : {},
|
|
2478
2510
|
...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
|
|
2479
|
-
searchRef:
|
|
2511
|
+
searchRef: _chunkGJI7C2OUjs.recentSearchRef.call(void 0, ),
|
|
2480
2512
|
cliInvocationId,
|
|
2481
2513
|
onResponseReceived: _chunkGXOQRZXGjs.recordApiResponse,
|
|
2482
2514
|
...tracing ? {
|
|
2483
|
-
onServerTiming: (serverTiming) =>
|
|
2515
|
+
onServerTiming: (serverTiming) => _chunk4RKPT6IEjs.recordCliTrace.call(void 0, {
|
|
2484
2516
|
phase: "tool_execute_server_timing",
|
|
2485
2517
|
cliInvocationId,
|
|
2486
2518
|
serverTiming,
|
|
@@ -2491,13 +2523,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2491
2523
|
let rawResponse;
|
|
2492
2524
|
let successfulCompatibilityResponse;
|
|
2493
2525
|
try {
|
|
2494
|
-
const executeResult = await
|
|
2526
|
+
const executeResult = await _chunk4GHEUG6Wjs.runToolExecuteStage.call(void 0,
|
|
2495
2527
|
"execute request",
|
|
2496
2528
|
async () => {
|
|
2497
2529
|
try {
|
|
2498
2530
|
if (tracing) {
|
|
2499
2531
|
submissionStartedAt = performance.now();
|
|
2500
|
-
|
|
2532
|
+
_chunk4RKPT6IEjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
|
|
2501
2533
|
}
|
|
2502
2534
|
return await client.executeTool(parsed.toolId, parsed.params, {
|
|
2503
2535
|
...executeOptions,
|
|
@@ -2506,34 +2538,34 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2506
2538
|
} catch (error) {
|
|
2507
2539
|
if (!(error instanceof _chunkPPDBRJRWjs.DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
|
|
2508
2540
|
throw error;
|
|
2509
|
-
const baseUrl =
|
|
2541
|
+
const baseUrl = _chunkVXQQZV4Ajs.resolveConfig.call(void 0, ).baseUrl;
|
|
2510
2542
|
if (maintenancePolicy !== "off") {
|
|
2511
|
-
|
|
2543
|
+
_chunkM6WSQZHPjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
2512
2544
|
}
|
|
2513
|
-
const compatibility = deferredCompatibility ? await deferredCompatibility.result : await
|
|
2545
|
+
const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunk4GHEUG6Wjs.runToolExecuteStage.call(void 0,
|
|
2514
2546
|
"SDK compatibility",
|
|
2515
|
-
() =>
|
|
2547
|
+
() => _chunkM6WSQZHPjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
2516
2548
|
command: "tools execute",
|
|
2517
|
-
skillsVersion:
|
|
2549
|
+
skillsVersion: _chunkVXQQZV4Ajs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
|
|
2518
2550
|
persistCache: maintenancePolicy !== "off"
|
|
2519
2551
|
})
|
|
2520
2552
|
);
|
|
2521
2553
|
if (compatibility.error) throw compatibility.error;
|
|
2522
2554
|
metadata = _nullishCoalesce(_optionalChain([deferredCompatibility, 'optionalAccess', _28 => _28.readMetadata, 'call', _29 => _29()]), () => ( metadata));
|
|
2523
|
-
if (maintenancePolicy !== "off" && await
|
|
2555
|
+
if (maintenancePolicy !== "off" && await _chunk4GHEUG6Wjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2524
2556
|
compatibility.response,
|
|
2525
2557
|
baseUrl,
|
|
2526
2558
|
maintenancePolicy
|
|
2527
2559
|
)) {
|
|
2528
2560
|
return void 0;
|
|
2529
2561
|
}
|
|
2530
|
-
|
|
2562
|
+
_chunkM6WSQZHPjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
2531
2563
|
quietAdvisory: wantsJson
|
|
2532
2564
|
});
|
|
2533
2565
|
if (maintenancePolicy !== "off") {
|
|
2534
|
-
await
|
|
2566
|
+
await _chunk4GHEUG6Wjs.runToolExecuteStage.call(void 0,
|
|
2535
2567
|
"agent skills sync",
|
|
2536
|
-
() =>
|
|
2568
|
+
() => _chunkM6WSQZHPjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
|
|
2537
2569
|
update: _optionalChain([compatibility, 'access', _30 => _30.response, 'optionalAccess', _31 => _31.skills]),
|
|
2538
2570
|
mode: "detached"
|
|
2539
2571
|
})
|
|
@@ -2542,7 +2574,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2542
2574
|
const legacyMetadata = await readMetadata();
|
|
2543
2575
|
if (tracing) {
|
|
2544
2576
|
submissionStartedAt = performance.now();
|
|
2545
|
-
|
|
2577
|
+
_chunk4RKPT6IEjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
|
|
2546
2578
|
}
|
|
2547
2579
|
return client.executeTool(parsed.toolId, parsed.params, {
|
|
2548
2580
|
...executeOptions,
|
|
@@ -2563,8 +2595,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2563
2595
|
metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
|
|
2564
2596
|
const updateRequiredBeforeExecution = error instanceof _chunkPPDBRJRWjs.DeeplineError && error.code === "SDK_UPDATE_REQUIRED";
|
|
2565
2597
|
if (updateRequiredBeforeExecution && maintenancePolicy !== "off" && compatibility && !compatibility.error) {
|
|
2566
|
-
const baseUrl =
|
|
2567
|
-
if (await
|
|
2598
|
+
const baseUrl = _chunkVXQQZV4Ajs.resolveConfig.call(void 0, ).baseUrl;
|
|
2599
|
+
if (await _chunk4GHEUG6Wjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2568
2600
|
compatibility.response,
|
|
2569
2601
|
baseUrl,
|
|
2570
2602
|
maintenancePolicy
|
|
@@ -2583,7 +2615,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2583
2615
|
failure = diagnosticError;
|
|
2584
2616
|
}
|
|
2585
2617
|
if (failure instanceof _chunkPPDBRJRWjs.DeeplineError && failure.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2586
|
-
if (wantsJson)
|
|
2618
|
+
if (wantsJson) _chunkBBYGXP2Ijs.printJsonError.call(void 0, failure);
|
|
2587
2619
|
else console.error(failure.message);
|
|
2588
2620
|
return 2;
|
|
2589
2621
|
}
|
|
@@ -2610,9 +2642,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2610
2642
|
successfulCompatibilityResponse = _nullishCoalesce(compatibilityResponse, () => ( void 0));
|
|
2611
2643
|
const autoUpdate = _optionalChain([compatibilityResponse, 'optionalAccess', _37 => _37.auto_update]);
|
|
2612
2644
|
if (maintenancePolicy !== "off" && compatibilityResponse && _optionalChain([autoUpdate, 'optionalAccess', _38 => _38.should_auto_update]) && !autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
2613
|
-
await
|
|
2645
|
+
await _chunk4GHEUG6Wjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2614
2646
|
compatibilityResponse,
|
|
2615
|
-
|
|
2647
|
+
_chunkVXQQZV4Ajs.resolveConfig.call(void 0, ).baseUrl,
|
|
2616
2648
|
maintenancePolicy
|
|
2617
2649
|
);
|
|
2618
2650
|
}
|
|
@@ -2647,7 +2679,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2647
2679
|
const { _metadata, ...execution } = rawResponse;
|
|
2648
2680
|
rawResponse = execution;
|
|
2649
2681
|
}
|
|
2650
|
-
const { listConversion, summary, baseEnvelope } = await
|
|
2682
|
+
const { listConversion, summary, baseEnvelope } = await _chunk4GHEUG6Wjs.runToolExecuteStage.call(void 0,
|
|
2651
2683
|
"result formatting",
|
|
2652
2684
|
async () => {
|
|
2653
2685
|
const listConversion2 = _chunkHGFFYVXNjs.tryConvertToList.call(void 0, rawResponse, {
|
|
@@ -2682,9 +2714,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2682
2714
|
}
|
|
2683
2715
|
skillsSyncAttempted = true;
|
|
2684
2716
|
try {
|
|
2685
|
-
await
|
|
2717
|
+
await _chunk4GHEUG6Wjs.runToolExecuteStage.call(void 0,
|
|
2686
2718
|
"agent skills sync",
|
|
2687
|
-
() =>
|
|
2719
|
+
() => _chunkM6WSQZHPjs.syncSdkSkillsIfNeeded.call(void 0, _chunkVXQQZV4Ajs.resolveConfig.call(void 0, ).baseUrl, {
|
|
2688
2720
|
update: deliveredCompatibilityResponse.skills,
|
|
2689
2721
|
mode: "detached"
|
|
2690
2722
|
})
|
|
@@ -2695,15 +2727,15 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2695
2727
|
);
|
|
2696
2728
|
}
|
|
2697
2729
|
};
|
|
2698
|
-
const printDeliveredEnvelope = (envelope, options2 = {}) =>
|
|
2730
|
+
const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkBBYGXP2Ijs.printCommandEnvelope.call(void 0, envelope, {
|
|
2699
2731
|
...options2,
|
|
2700
2732
|
json: _nullishCoalesce(options2.json, () => ( wantsJson))
|
|
2701
2733
|
});
|
|
2702
2734
|
const printDeliveredJsonEnvelope = async (envelope, options2 = {}) => {
|
|
2703
2735
|
await syncSkillsForDeliveredOutput();
|
|
2704
|
-
|
|
2736
|
+
_chunkBBYGXP2Ijs.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
|
|
2705
2737
|
};
|
|
2706
|
-
const delivered = await
|
|
2738
|
+
const delivered = await _chunk4GHEUG6Wjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
|
|
2707
2739
|
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
|
|
2708
2740
|
await printDeliveredJsonEnvelope(baseEnvelope);
|
|
2709
2741
|
return true;
|
|
@@ -2732,7 +2764,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2732
2764
|
`${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
|
|
2733
2765
|
);
|
|
2734
2766
|
if (wantsJson) {
|
|
2735
|
-
|
|
2767
|
+
_chunkBBYGXP2Ijs.printJsonError.call(void 0, error);
|
|
2736
2768
|
} else {
|
|
2737
2769
|
console.error(error.message);
|
|
2738
2770
|
}
|
|
@@ -2827,13 +2859,13 @@ inspect: ${inspection.inspect}
|
|
|
2827
2859
|
return true;
|
|
2828
2860
|
});
|
|
2829
2861
|
if (delivered) {
|
|
2830
|
-
await
|
|
2862
|
+
await _chunk4GHEUG6Wjs.runToolExecuteStage.call(void 0,
|
|
2831
2863
|
"acknowledge delivery",
|
|
2832
2864
|
() => recovery.acknowledgeDelivery()
|
|
2833
2865
|
);
|
|
2834
2866
|
}
|
|
2835
2867
|
if (delivered && deliveredCompatibilityResponse && deliveredCompatibilityResponse.update_required !== true) {
|
|
2836
|
-
|
|
2868
|
+
_chunkM6WSQZHPjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
|
|
2837
2869
|
quietAdvisory: wantsJson || maintenancePolicy === "off" || _optionalChain([deliveredCompatibilityResponse, 'access', _40 => _40.auto_update, 'optionalAccess', _41 => _41.should_auto_update]) === true
|
|
2838
2870
|
});
|
|
2839
2871
|
}
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-K23LXA4N.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
saveHostEnvValues,
|
|
26
26
|
saveProjectDeeplineEnvValues,
|
|
27
27
|
storedHostApiKey
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-XL4FJX7J.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
import {
|
package/dist/cli/command-docs.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkDM6Q634Kjs = require('./chunk-DM6Q634K.js');
|
|
10
10
|
require('./chunk-COGTRVWW.js');
|
|
11
11
|
|
|
12
12
|
|
|
@@ -16,4 +16,4 @@ require('./chunk-COGTRVWW.js');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
exports.CLI_DOC_SURFACE =
|
|
19
|
+
exports.CLI_DOC_SURFACE = _chunkDM6Q634Kjs.CLI_DOC_SURFACE; exports.COMMAND_DOCS = _chunkDM6Q634Kjs.COMMAND_DOCS; exports.commandDocKey = _chunkDM6Q634Kjs.commandDocKey; exports.helpDetailFromArgv = _chunkDM6Q634Kjs.helpDetailFromArgv; exports.renderActionExplanation = _chunkDM6Q634Kjs.renderActionExplanation; exports.renderCommandExplanation = _chunkDM6Q634Kjs.renderCommandExplanation; exports.renderDocText = _chunkDM6Q634Kjs.renderDocText;
|