deepline 0.3.368 → 0.3.369
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 +7 -1
- package/dist/cli/{auth-RUWM7VTH.mjs → auth-F5YPFL6L.mjs} +4 -4
- package/dist/cli/auth-L3ZF67G5.js +33 -0
- package/dist/cli/{billing-PLBQKLDK.js → billing-3HHLCETY.js} +73 -73
- package/dist/cli/{billing-WSS57VQY.mjs → billing-LNO6FPPM.mjs} +4 -4
- package/dist/cli/{chunk-GTC2KAZQ.js → chunk-2AENFV3B.js} +4 -4
- package/dist/cli/{chunk-GHZUH33K.mjs → chunk-4RVNJQ7D.mjs} +6 -1
- package/dist/cli/{chunk-EZUGGC5A.mjs → chunk-5IXQ6VP4.mjs} +1 -1
- package/dist/cli/{chunk-YCJMDCTH.js → chunk-6A3GNWSU.js} +8 -8
- package/dist/cli/{chunk-NZHVJB2W.js → chunk-74XTRGY5.js} +2 -2
- package/dist/cli/{chunk-IG7OYVS7.mjs → chunk-COEBGYBW.mjs} +6 -6
- package/dist/cli/{chunk-S3MDB6SI.mjs → chunk-EJC3INZD.mjs} +1 -1
- package/dist/cli/{chunk-SNENR3BL.js → chunk-ERMXQOIV.js} +6 -6
- package/dist/cli/{chunk-HZT2Y7WB.js → chunk-FXVRQHJC.js} +15 -15
- package/dist/cli/{chunk-PU53IS6H.mjs → chunk-H4N6FMJ5.mjs} +2 -2
- package/dist/cli/{chunk-OTI7CDLE.mjs → chunk-JGLIB4JN.mjs} +5 -5
- package/dist/cli/{chunk-DZOEDNSU.js → chunk-KGZRUGL7.js} +9 -9
- package/dist/cli/{chunk-S4Y7B2O3.js → chunk-KR5NWPWI.js} +6 -1
- package/dist/cli/{chunk-A2OLR6DK.mjs → chunk-KU4X5TWN.mjs} +2 -2
- package/dist/cli/{chunk-7AWSYT7H.js → chunk-LH3BV773.js} +8 -8
- package/dist/cli/{chunk-GJO4H3NN.js → chunk-OEQC4QLU.js} +60 -60
- package/dist/cli/{chunk-BKEYQHJ2.js → chunk-P7W5OMQ6.js} +50 -50
- package/dist/cli/{chunk-AUWKAVXB.js → chunk-PRMAO43X.js} +51 -51
- package/dist/cli/{chunk-7PQTQSJY.mjs → chunk-RIT4UED6.mjs} +3 -3
- package/dist/cli/{chunk-XUMWO4ST.mjs → chunk-SDOPEZYS.mjs} +4 -4
- package/dist/cli/{chunk-ZS2YQ4YK.mjs → chunk-TRRFXE4X.mjs} +2 -2
- package/dist/cli/{chunk-LEZWRLB3.mjs → chunk-U5VEW7LL.mjs} +1 -1
- package/dist/cli/{chunk-THO6F53F.mjs → chunk-VUYCB2RY.mjs} +1 -1
- package/dist/cli/{chunk-2YOKZW46.js → chunk-X6FNDFTD.js} +26 -26
- package/dist/cli/{chunk-27QA6Q4G.js → chunk-XH3EIQAZ.js} +224 -224
- package/dist/cli/{chunk-ENGMDXHN.mjs → chunk-YCLPW7QO.mjs} +2 -2
- package/dist/cli/client-HL2AHZPQ.js +20 -0
- package/dist/cli/{client-JJEEIOIL.mjs → client-HURLYTDV.mjs} +3 -3
- package/dist/cli/{csv-EPNNU27J.js → csv-BZ7QNGLU.js} +12 -12
- package/dist/cli/{csv-75D36YRA.mjs → csv-ZECPS6DF.mjs} +3 -3
- package/dist/cli/{db-6HYSGMLN.mjs → db-EUNDS5UG.mjs} +4 -4
- package/dist/cli/{db-SWNKJUU5.js → db-JXLCCIML.js} +29 -29
- package/dist/cli/{describe-XMUHTICA.js → describe-DNDL3TC6.js} +15 -15
- package/dist/cli/{describe-N2KSBPOR.mjs → describe-L6LADCXI.mjs} +8 -8
- package/dist/cli/{executions-3ESWUDHH.js → executions-GPKPWEHO.js} +6 -6
- package/dist/cli/{executions-WHSG2JGN.mjs → executions-GRCD2GHT.mjs} +4 -4
- package/dist/cli/{feedback-2VHTJXU7.mjs → feedback-5WG2HNZ6.mjs} +3 -3
- package/dist/cli/{feedback-CGZE7L7A.js → feedback-VJCNBYVQ.js} +7 -7
- package/dist/cli/{git-IG4J5OUT.mjs → git-3G5Q4TPI.mjs} +4 -4
- package/dist/cli/git-MSJ6SFLT.js +23 -0
- package/dist/cli/index.js +82 -82
- package/dist/cli/index.mjs +32 -32
- package/dist/cli/{legacy-noops-7WXL7PB3.mjs → legacy-noops-7WLCNXLD.mjs} +4 -4
- package/dist/cli/{legacy-noops-QF7S6JJB.js → legacy-noops-YAO3LDPI.js} +7 -7
- package/dist/cli/{monitors-6XYT53X6.js → monitors-MQ6KNDOH.js} +85 -85
- package/dist/cli/{monitors-QS4QFORU.mjs → monitors-NRQN7M3A.mjs} +4 -4
- package/dist/cli/{org-NLR3D3M7.js → org-TGKGLAB4.js} +64 -64
- package/dist/cli/{org-5IGU7FES.mjs → org-X46ICV24.mjs} +4 -4
- package/dist/cli/{play-JVENSY4T.mjs → play-PCLCMTVK.mjs} +7 -7
- package/dist/cli/play-TJBPVFUK.js +153 -0
- package/dist/cli/{providers-T4GCIOTW.js → providers-IPH3TV6J.js} +7 -7
- package/dist/cli/{providers-RSVO5U4E.mjs → providers-T2S532QL.mjs} +4 -4
- package/dist/cli/{quickstart-ZDFOKNYW.mjs → quickstart-6CO5FGYE.mjs} +3 -3
- package/dist/cli/{quickstart-IHAG5QZ6.js → quickstart-GXFHMZL7.js} +5 -5
- package/dist/cli/search-34MPYWVW.js +26 -0
- package/dist/cli/{search-ZGEYJSMF.mjs → search-6HML4FB2.mjs} +5 -5
- package/dist/cli/{secrets-DVTEZCPE.js → secrets-J6T743DQ.js} +13 -13
- package/dist/cli/{secrets-OQZRZBP6.mjs → secrets-KCNIINW5.mjs} +4 -4
- package/dist/cli/{sessions-XYEG53JJ.js → sessions-ABXL2OZV.js} +5 -5
- package/dist/cli/{sessions-XM7PFJL2.mjs → sessions-FQHM34TD.mjs} +4 -4
- package/dist/cli/{settings-TKXYRYYH.mjs → settings-3UXXWUZ3.mjs} +7 -7
- package/dist/cli/{settings-NWEBQOX4.js → settings-HB5DSAUW.js} +74 -74
- package/dist/cli/{setup-3UD5TDRJ.mjs → setup-2MOBCKAB.mjs} +6 -6
- package/dist/cli/{setup-JRU6VGFQ.js → setup-TMJJLEYX.js} +41 -41
- package/dist/cli/skills-D3IIQSUK.js +28 -0
- package/dist/cli/{skills-GLLMNOCY.mjs → skills-LWS7PNTF.mjs} +4 -4
- package/dist/cli/{tools-VXXAMH2X.mjs → tools-TIUE2AK7.mjs} +6 -6
- package/dist/cli/tools-XWUSCNVK.js +40 -0
- package/dist/cli/update-7O5MXP5K.js +28 -0
- package/dist/cli/{update-UCGMUUDQ.mjs → update-IYXAP5MI.mjs} +6 -6
- package/dist/cli/{workflow-BGGKNZTG.mjs → workflow-3CVYOEKJ.mjs} +5 -5
- package/dist/cli/{workflow-G2UU7WTU.js → workflow-SGF3DFKJ.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +74 -74
- package/dist/release.d.mts +5 -1
- package/dist/release.d.ts +5 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-NJ6RE6XQ.js +0 -33
- package/dist/cli/client-UPKWYV32.js +0 -20
- package/dist/cli/git-WPEOAE72.js +0 -23
- package/dist/cli/play-3ECRZYD5.js +0 -153
- package/dist/cli/search-RYLADJUK.js +0 -26
- package/dist/cli/skills-PZQDJJWN.js +0 -28
- package/dist/cli/tools-WYXBAUMT.js +0 -40
- package/dist/cli/update-WM6SOME3.js +0 -28
|
@@ -13,7 +13,7 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkLH3BV773js = require('./chunk-LH3BV773.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
@@ -28,7 +28,7 @@ var _chunk5O4B6AUNjs = require('./chunk-5O4B6AUN.js');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkKGZRUGL7js = require('./chunk-KGZRUGL7.js');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
@@ -42,11 +42,11 @@ var _chunkQJBJZVG6js = require('./chunk-QJBJZVG6.js');
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
var
|
|
45
|
+
var _chunkERMXQOIVjs = require('./chunk-ERMXQOIV.js');
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
var
|
|
49
|
+
var _chunk2AENFV3Bjs = require('./chunk-2AENFV3B.js');
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -91,10 +91,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
|
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
93
|
function pendingToolExecutionPath(input) {
|
|
94
|
-
const config =
|
|
94
|
+
const config = _chunk2AENFV3Bjs.resolveConfig.call(void 0, );
|
|
95
95
|
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(_chunkNXDRDJ4Kjs.stableStringify.call(void 0, input.params)).update("\0").update(input.responseIntent).digest("hex");
|
|
96
96
|
return _path.join.call(void 0,
|
|
97
|
-
|
|
97
|
+
_chunk2AENFV3Bjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
|
|
98
98
|
`pending-tool-execution-${fingerprint}.json`
|
|
99
99
|
);
|
|
100
100
|
}
|
|
@@ -442,12 +442,12 @@ function categoryEnumerationRender(summaries) {
|
|
|
442
442
|
};
|
|
443
443
|
}
|
|
444
444
|
async function listToolCategories(emitJson, compact) {
|
|
445
|
-
const client = new (0,
|
|
445
|
+
const client = new (0, _chunkKGZRUGL7js.DeeplineClient)();
|
|
446
446
|
const rawTools = await client.listTools({ compact });
|
|
447
447
|
const items = rawTools.map(toListedTool);
|
|
448
448
|
const summaries = aggregateCategorySummaries(rawTools);
|
|
449
449
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
450
|
-
|
|
450
|
+
_chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
|
|
451
451
|
{
|
|
452
452
|
tools: outputItems,
|
|
453
453
|
count: outputItems.length,
|
|
@@ -466,7 +466,7 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
466
466
|
const known = summaries.map((item) => item.name);
|
|
467
467
|
const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
|
|
468
468
|
if (emitJson) {
|
|
469
|
-
|
|
469
|
+
_chunkERMXQOIVjs.printJson.call(void 0, {
|
|
470
470
|
ok: false,
|
|
471
471
|
exitCode: 4,
|
|
472
472
|
code: "TOOL_CATEGORY_NOT_FOUND",
|
|
@@ -480,13 +480,13 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
480
480
|
const render = categoryEnumerationRender(summaries);
|
|
481
481
|
console.error(message);
|
|
482
482
|
console.error("");
|
|
483
|
-
console.error(
|
|
483
|
+
console.error(_chunkERMXQOIVjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
|
|
484
484
|
console.error("");
|
|
485
485
|
console.error(`Valid categories: ${known.join(", ")}`);
|
|
486
486
|
return 4;
|
|
487
487
|
}
|
|
488
488
|
async function listToolsInCategory(category, emitJson) {
|
|
489
|
-
const client = new (0,
|
|
489
|
+
const client = new (0, _chunkKGZRUGL7js.DeeplineClient)();
|
|
490
490
|
const rawTools = await client.listTools({
|
|
491
491
|
categories: category,
|
|
492
492
|
compact: false
|
|
@@ -523,7 +523,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
523
523
|
}
|
|
524
524
|
]
|
|
525
525
|
};
|
|
526
|
-
|
|
526
|
+
_chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
|
|
527
527
|
{
|
|
528
528
|
category,
|
|
529
529
|
total: rows.length,
|
|
@@ -536,7 +536,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
536
536
|
return 0;
|
|
537
537
|
}
|
|
538
538
|
async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
|
|
539
|
-
const client = new (0,
|
|
539
|
+
const client = new (0, _chunkKGZRUGL7js.DeeplineClient)();
|
|
540
540
|
const items = (await client.listTools({
|
|
541
541
|
categories: requestedCategories.join(","),
|
|
542
542
|
compact
|
|
@@ -565,7 +565,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
|
|
|
565
565
|
]
|
|
566
566
|
};
|
|
567
567
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
568
|
-
|
|
568
|
+
_chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
|
|
569
569
|
{
|
|
570
570
|
tools: outputItems,
|
|
571
571
|
count: outputItems.length,
|
|
@@ -584,13 +584,13 @@ async function listTools(category, options = {}) {
|
|
|
584
584
|
const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]), () => ( ""));
|
|
585
585
|
const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
|
|
586
586
|
const compact = options.compact !== false;
|
|
587
|
-
const emitJson = options.json === true ||
|
|
587
|
+
const emitJson = options.json === true || _chunkERMXQOIVjs.shouldEmitJson.call(void 0, );
|
|
588
588
|
if (positional && flagCategories.length > 0) {
|
|
589
589
|
const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
|
|
590
590
|
if (!flagIsSameSingle) {
|
|
591
591
|
const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
|
|
592
592
|
if (emitJson) {
|
|
593
|
-
|
|
593
|
+
_chunkERMXQOIVjs.printJson.call(void 0, {
|
|
594
594
|
ok: false,
|
|
595
595
|
exitCode: 2,
|
|
596
596
|
code: "TOOL_LIST_CATEGORY_CONFLICT",
|
|
@@ -617,7 +617,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
617
617
|
console.error("Usage: deepline tools grep <query> [--json]");
|
|
618
618
|
return 1;
|
|
619
619
|
}
|
|
620
|
-
const client = new (0,
|
|
620
|
+
const client = new (0, _chunkKGZRUGL7js.DeeplineClient)();
|
|
621
621
|
const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
|
|
622
622
|
const mode = _nullishCoalesce(options.mode, () => ( "all"));
|
|
623
623
|
const jsonOutput = options.json === true;
|
|
@@ -660,7 +660,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
660
660
|
query,
|
|
661
661
|
mode
|
|
662
662
|
}) : null;
|
|
663
|
-
|
|
663
|
+
_chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
|
|
664
664
|
{
|
|
665
665
|
tools: outputTools,
|
|
666
666
|
count: outputTools.length,
|
|
@@ -678,7 +678,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
678
678
|
} : {},
|
|
679
679
|
commandTemplates: TOOL_COMMAND_TEMPLATES
|
|
680
680
|
},
|
|
681
|
-
{ json: options.json ||
|
|
681
|
+
{ json: options.json || _chunkERMXQOIVjs.shouldEmitJson.call(void 0, ) }
|
|
682
682
|
);
|
|
683
683
|
return 0;
|
|
684
684
|
}
|
|
@@ -834,7 +834,7 @@ Examples:
|
|
|
834
834
|
json: Boolean(options.json)
|
|
835
835
|
});
|
|
836
836
|
});
|
|
837
|
-
|
|
837
|
+
_chunkLH3BV773js.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
|
|
838
838
|
tools.command("grep <query>").description(
|
|
839
839
|
"Literal grep over tool ids, descriptions, categories, and input fields."
|
|
840
840
|
).addHelpText(
|
|
@@ -936,7 +936,7 @@ Examples:
|
|
|
936
936
|
process.exitCode = await narrowView();
|
|
937
937
|
return;
|
|
938
938
|
}
|
|
939
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
939
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-DNDL3TC6.js")));
|
|
940
940
|
process.exitCode = await describeAnything(
|
|
941
941
|
toolId,
|
|
942
942
|
{ ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
|
|
@@ -1018,7 +1018,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1018
1018
|
console.error("Usage: deepline tools describe <toolId> [--json]");
|
|
1019
1019
|
return 1;
|
|
1020
1020
|
}
|
|
1021
|
-
const client = new (0,
|
|
1021
|
+
const client = new (0, _chunkKGZRUGL7js.DeeplineClient)();
|
|
1022
1022
|
let tool;
|
|
1023
1023
|
try {
|
|
1024
1024
|
tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
|
|
@@ -1072,10 +1072,10 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1072
1072
|
const lines = toolPricingOnlyLines(tool, toolId);
|
|
1073
1073
|
if (inferenceQuote)
|
|
1074
1074
|
lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
|
|
1075
|
-
|
|
1075
|
+
_chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
|
|
1076
1076
|
{
|
|
1077
1077
|
toolId: String(tool.toolId || toolId),
|
|
1078
|
-
cost:
|
|
1078
|
+
cost: _chunkLH3BV773js.Capability.fromCatalogEntry(tool).describe().customerCost(),
|
|
1079
1079
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1080
1080
|
...isMonitorTypeTool(tool) ? { pricing: recordField(tool, "pricing") } : {},
|
|
1081
1081
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -1090,7 +1090,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1090
1090
|
}
|
|
1091
1091
|
if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !isMonitorTypeTool(tool) && !isPlayLikeTool(tool) && (options.json || options.contractJson)) {
|
|
1092
1092
|
const contract = toolContractJsonForDescribe(tool, toolId);
|
|
1093
|
-
|
|
1093
|
+
_chunkERMXQOIVjs.printCompactJson.call(void 0, {
|
|
1094
1094
|
toolId: contract.toolId,
|
|
1095
1095
|
...options.schemaOnly ? {
|
|
1096
1096
|
inputSchema: contract.inputSchema,
|
|
@@ -1113,7 +1113,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1113
1113
|
return 0;
|
|
1114
1114
|
}
|
|
1115
1115
|
if (options.contractJson) {
|
|
1116
|
-
|
|
1116
|
+
_chunkERMXQOIVjs.printCompactJson.call(void 0, {
|
|
1117
1117
|
...toolContractJsonForDescribe(tool, toolId),
|
|
1118
1118
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1119
1119
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -1122,7 +1122,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1122
1122
|
}
|
|
1123
1123
|
const emitJson = options.json === true;
|
|
1124
1124
|
if (emitJson) {
|
|
1125
|
-
|
|
1125
|
+
_chunkERMXQOIVjs.printCompactJson.call(void 0, {
|
|
1126
1126
|
...toolMetadataJsonForDescribe(tool, toolId),
|
|
1127
1127
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1128
1128
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -1199,7 +1199,7 @@ function toolContractJsonForDescribe(tool, requestedToolId, authoringContractEdi
|
|
|
1199
1199
|
const extractedValues = extractionContractEntries(
|
|
1200
1200
|
arrayField2(toolExecutionResult, "extractedValues", "extracted_values")
|
|
1201
1201
|
);
|
|
1202
|
-
const pricing =
|
|
1202
|
+
const pricing = _chunkLH3BV773js.Capability.fromCatalogEntry(tool).describe().customerCost();
|
|
1203
1203
|
const executionMetadataRecord = recordField(
|
|
1204
1204
|
tool,
|
|
1205
1205
|
"executionMetadata",
|
|
@@ -1494,7 +1494,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
1494
1494
|
stringField2(cost, "displayText"),
|
|
1495
1495
|
// "Free (free)" says the same thing twice.
|
|
1496
1496
|
billing.toLowerCase() === stringField2(cost, "displayText").toLowerCase() ? "" : billing && `(${billing})`,
|
|
1497
|
-
|
|
1497
|
+
_chunkLH3BV773js.observedMaxText.call(void 0, cost) && `\u2014 ${_chunkLH3BV773js.observedMaxText.call(void 0, cost)}`
|
|
1498
1498
|
].filter(Boolean).join(" ") || void 0,
|
|
1499
1499
|
guidance: [
|
|
1500
1500
|
...contract.deprecated === true ? [`Deprecated. ${stringField2(deprecation, "message")}`.trim()] : [],
|
|
@@ -1631,7 +1631,7 @@ function toolPricingOnlyLines(tool, requestedToolId, options = {}) {
|
|
|
1631
1631
|
return monitorTypePricingLines(tool);
|
|
1632
1632
|
}
|
|
1633
1633
|
const toolId = String(tool.toolId || requestedToolId);
|
|
1634
|
-
const cost =
|
|
1634
|
+
const cost = _chunkLH3BV773js.Capability.fromCatalogEntry(tool).describe().customerCost();
|
|
1635
1635
|
const pricingModel = stringField2(cost, "pricingModel") || "unknown";
|
|
1636
1636
|
const billing = stringField2(cost, "billingSourceLabel") || stringField2(cost, "billingSource") || stringField2(cost, "billingMode") || "unknown";
|
|
1637
1637
|
const explicitUnit = stringField2(cost, "unit");
|
|
@@ -1643,7 +1643,7 @@ function toolPricingOnlyLines(tool, requestedToolId, options = {}) {
|
|
|
1643
1643
|
const price = displayText || summary || (credits !== null ? `${formatDecimal(credits)} Deepline credits${usd !== null ? ` / ${formatUsd(usd)}` : ""} per ${unit}` : "pricing unavailable");
|
|
1644
1644
|
return [
|
|
1645
1645
|
`${_nullishCoalesce(options.heading, () => ( `Pricing: ${toolId}`))}: ${price}`,
|
|
1646
|
-
...
|
|
1646
|
+
..._chunkLH3BV773js.observedMaxText.call(void 0, cost) ? [` ${_chunkLH3BV773js.observedMaxText.call(void 0, cost)}`] : [],
|
|
1647
1647
|
...cost.observedReference || cost.estimatedRange ? [
|
|
1648
1648
|
...summary ? [` ${summary}`] : [],
|
|
1649
1649
|
...(_nullishCoalesce(cost.details, () => ( []))).map((detail) => ` ${detail}`)
|
|
@@ -1921,7 +1921,7 @@ function toolMetadataJsonForDescribe(tool, requestedToolId) {
|
|
|
1921
1921
|
} = tool;
|
|
1922
1922
|
const outputSchemaRecord = recordField(tool, "outputSchema", "output_schema");
|
|
1923
1923
|
return {
|
|
1924
|
-
cost:
|
|
1924
|
+
cost: _chunkLH3BV773js.Capability.fromCatalogEntry(tool).describe().customerCost(),
|
|
1925
1925
|
...publicTool,
|
|
1926
1926
|
toolId,
|
|
1927
1927
|
provider: tool.provider,
|
|
@@ -2535,7 +2535,7 @@ function parseExecuteOptions(toolId, options, output) {
|
|
|
2535
2535
|
outputFormat = normalizeOutputFormat(options.outputFormat);
|
|
2536
2536
|
}
|
|
2537
2537
|
if (options.idempotencyKey !== void 0) {
|
|
2538
|
-
|
|
2538
|
+
_chunkKGZRUGL7js.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
|
|
2539
2539
|
}
|
|
2540
2540
|
if (options.recoveryTimeoutMs !== void 0) {
|
|
2541
2541
|
const parsed = Number(options.recoveryTimeoutMs);
|
|
@@ -2846,20 +2846,20 @@ function buildToolExecuteRowArtifactEnvelope(input) {
|
|
|
2846
2846
|
}
|
|
2847
2847
|
async function executeTool(toolId, options) {
|
|
2848
2848
|
const output = toolExecuteJsonOption(options.json);
|
|
2849
|
-
const wantsJson =
|
|
2849
|
+
const wantsJson = _chunkERMXQOIVjs.shouldEmitJson.call(void 0, output.requested);
|
|
2850
2850
|
let parsed;
|
|
2851
2851
|
try {
|
|
2852
2852
|
parsed = parseExecuteOptions(toolId, options, output);
|
|
2853
2853
|
} catch (error) {
|
|
2854
2854
|
if (wantsJson) {
|
|
2855
|
-
|
|
2855
|
+
_chunkERMXQOIVjs.printJsonError.call(void 0, error);
|
|
2856
2856
|
} else {
|
|
2857
2857
|
console.error(error instanceof Error ? error.message : String(error));
|
|
2858
2858
|
}
|
|
2859
2859
|
return error instanceof _chunk7P5AA3SNjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
|
|
2860
2860
|
}
|
|
2861
2861
|
const cliInvocationId = _nullishCoalesce(_chunkQJBJZVG6js.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkQJBJZVG6js.beginToolExecuteCommand.call(void 0, )));
|
|
2862
|
-
const client = new (0,
|
|
2862
|
+
const client = new (0, _chunkKGZRUGL7js.DeeplineClient)();
|
|
2863
2863
|
let metadata;
|
|
2864
2864
|
try {
|
|
2865
2865
|
metadata = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0,
|
|
@@ -2874,7 +2874,7 @@ async function executeTool(toolId, options) {
|
|
|
2874
2874
|
);
|
|
2875
2875
|
if (play) {
|
|
2876
2876
|
if (wantsJson) {
|
|
2877
|
-
|
|
2877
|
+
_chunkERMXQOIVjs.printJsonError.call(void 0,
|
|
2878
2878
|
new Error(playAliasToolErrorMessage(parsed.toolId, play))
|
|
2879
2879
|
);
|
|
2880
2880
|
} else {
|
|
@@ -2887,7 +2887,7 @@ async function executeTool(toolId, options) {
|
|
|
2887
2887
|
}
|
|
2888
2888
|
if (isPlayLikeTool(metadata)) {
|
|
2889
2889
|
if (wantsJson) {
|
|
2890
|
-
|
|
2890
|
+
_chunkERMXQOIVjs.printJsonError.call(void 0,
|
|
2891
2891
|
new Error(
|
|
2892
2892
|
playLikeToolExecuteErrorMessage(
|
|
2893
2893
|
parsed.toolId,
|
|
@@ -2923,7 +2923,7 @@ async function executeTool(toolId, options) {
|
|
|
2923
2923
|
responseIntent,
|
|
2924
2924
|
...idempotencyKey ? { idempotencyKey } : {},
|
|
2925
2925
|
...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
|
|
2926
|
-
searchRef:
|
|
2926
|
+
searchRef: _chunkLH3BV773js.recentSearchRef.call(void 0, ),
|
|
2927
2927
|
cliInvocationId,
|
|
2928
2928
|
onResponseReceived: _chunkMX53GIOBjs.recordApiResponse
|
|
2929
2929
|
}).catch((error) => {
|
|
@@ -2963,8 +2963,8 @@ async function executeTool(toolId, options) {
|
|
|
2963
2963
|
);
|
|
2964
2964
|
const executeExitCode = toolExecuteExitCode(baseEnvelope);
|
|
2965
2965
|
const delivered = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0, "output delivery", () => {
|
|
2966
|
-
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" &&
|
|
2967
|
-
|
|
2966
|
+
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && _chunkERMXQOIVjs.shouldEmitJson.call(void 0, ))) {
|
|
2967
|
+
_chunkERMXQOIVjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: true });
|
|
2968
2968
|
return true;
|
|
2969
2969
|
}
|
|
2970
2970
|
if (parsed.outputFormat === "json_file") {
|
|
@@ -2972,7 +2972,7 @@ async function executeTool(toolId, options) {
|
|
|
2972
2972
|
rawResponse,
|
|
2973
2973
|
`payload_${parsed.toolId}`
|
|
2974
2974
|
);
|
|
2975
|
-
|
|
2975
|
+
_chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
|
|
2976
2976
|
{
|
|
2977
2977
|
...baseEnvelope,
|
|
2978
2978
|
local: {
|
|
@@ -2994,7 +2994,7 @@ async function executeTool(toolId, options) {
|
|
|
2994
2994
|
`${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
|
|
2995
2995
|
);
|
|
2996
2996
|
if (wantsJson) {
|
|
2997
|
-
|
|
2997
|
+
_chunkERMXQOIVjs.printJsonError.call(void 0, error);
|
|
2998
2998
|
} else {
|
|
2999
2999
|
console.error(error.message);
|
|
3000
3000
|
}
|
|
@@ -3005,18 +3005,18 @@ async function executeTool(toolId, options) {
|
|
|
3005
3005
|
rawResponse,
|
|
3006
3006
|
`payload_${parsed.toolId}`
|
|
3007
3007
|
);
|
|
3008
|
-
|
|
3008
|
+
_chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
|
|
3009
3009
|
{
|
|
3010
3010
|
...baseEnvelope,
|
|
3011
3011
|
local: {
|
|
3012
3012
|
payload_file: jsonPath
|
|
3013
3013
|
}
|
|
3014
3014
|
},
|
|
3015
|
-
{ json: parsed.outputFormat === "csv_file" ||
|
|
3015
|
+
{ json: parsed.outputFormat === "csv_file" || _chunkERMXQOIVjs.shouldEmitJson.call(void 0, ) }
|
|
3016
3016
|
);
|
|
3017
3017
|
return true;
|
|
3018
3018
|
}
|
|
3019
|
-
|
|
3019
|
+
_chunkERMXQOIVjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: false });
|
|
3020
3020
|
return true;
|
|
3021
3021
|
}
|
|
3022
3022
|
const rowOutput = _chunkNXDRDJ4Kjs.projectRowOutput.call(void 0, listConversion);
|
|
@@ -3040,7 +3040,7 @@ async function executeTool(toolId, options) {
|
|
|
3040
3040
|
seededScript
|
|
3041
3041
|
});
|
|
3042
3042
|
if (parsed.outputFormat === "csv_file") {
|
|
3043
|
-
|
|
3043
|
+
_chunkERMXQOIVjs.printCommandEnvelope.call(void 0, materializedEnvelope, { json: true });
|
|
3044
3044
|
return true;
|
|
3045
3045
|
}
|
|
3046
3046
|
if (parsed.outPath) {
|
|
@@ -3048,7 +3048,7 @@ async function executeTool(toolId, options) {
|
|
|
3048
3048
|
toolId: parsed.toolId,
|
|
3049
3049
|
idempotencyKey
|
|
3050
3050
|
});
|
|
3051
|
-
|
|
3051
|
+
_chunkERMXQOIVjs.printCommandEnvelope.call(void 0, materializedEnvelope, {
|
|
3052
3052
|
json: wantsJson,
|
|
3053
3053
|
text: `Wrote ${csv.rowCount} row(s) to ${csv.path}
|
|
3054
3054
|
inspect: ${inspection.inspect}
|
|
@@ -3057,7 +3057,7 @@ inspect: ${inspection.inspect}
|
|
|
3057
3057
|
return true;
|
|
3058
3058
|
}
|
|
3059
3059
|
if (parsed.noPreview) {
|
|
3060
|
-
|
|
3060
|
+
_chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
|
|
3061
3061
|
{
|
|
3062
3062
|
...materializedEnvelope,
|
|
3063
3063
|
local: {
|
|
@@ -3065,12 +3065,12 @@ inspect: ${inspection.inspect}
|
|
|
3065
3065
|
output_path: csv.path
|
|
3066
3066
|
}
|
|
3067
3067
|
},
|
|
3068
|
-
{ json:
|
|
3068
|
+
{ json: _chunkERMXQOIVjs.shouldEmitJson.call(void 0, ), text: `${csv.path}
|
|
3069
3069
|
` }
|
|
3070
3070
|
);
|
|
3071
3071
|
return true;
|
|
3072
3072
|
}
|
|
3073
|
-
|
|
3073
|
+
_chunkERMXQOIVjs.printCommandEnvelope.call(void 0, materializedEnvelope, { json: false });
|
|
3074
3074
|
return true;
|
|
3075
3075
|
});
|
|
3076
3076
|
if (delivered) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VUYCB2RY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope,
|
|
6
6
|
renderCommandEnvelopeText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EJC3INZD.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveConfig,
|
|
10
10
|
sdkCliStateDirPath
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5IXQ6VP4.mjs";
|
|
12
12
|
|
|
13
13
|
// src/cli/commands/search.ts
|
|
14
14
|
import { Option } from "commander";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-U5VEW7LL.mjs";
|
|
5
5
|
import {
|
|
6
6
|
resolveShellSpawn,
|
|
7
7
|
runSkillsCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YCLPW7QO.mjs";
|
|
9
9
|
import {
|
|
10
10
|
printCommandEnvelope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-EJC3INZD.mjs";
|
|
12
12
|
import {
|
|
13
13
|
autoDetectBaseUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5IXQ6VP4.mjs";
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EJC3INZD.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5IXQ6VP4.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkERMXQOIVjs = require('./chunk-ERMXQOIV.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk2AENFV3Bjs = require('./chunk-2AENFV3B.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
|
|
|
32
32
|
return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
|
|
33
33
|
}
|
|
34
34
|
async function handleList(options) {
|
|
35
|
-
const { http } =
|
|
35
|
+
const { http } = _chunkERMXQOIVjs.getAuthedHttpClient.call(void 0, );
|
|
36
36
|
const payload = await http.get(
|
|
37
37
|
`/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
|
|
38
38
|
);
|
|
39
|
-
|
|
39
|
+
_chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
|
|
40
40
|
{
|
|
41
41
|
projects: payload.projects,
|
|
42
42
|
count: payload.projects.length,
|
|
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
async function handleStatus(options) {
|
|
76
|
-
const { http } =
|
|
76
|
+
const { http } = _chunkERMXQOIVjs.getAuthedHttpClient.call(void 0, );
|
|
77
77
|
const payload = await http.get("/api/v2/github/installation");
|
|
78
78
|
const installation = payload.installation;
|
|
79
79
|
const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
|
|
@@ -136,7 +136,7 @@ async function handleStatus(options) {
|
|
|
136
136
|
)
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
_chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
|
|
140
140
|
{
|
|
141
141
|
installation,
|
|
142
142
|
installations: _nullishCoalesce(payload.installations, () => ( [])),
|
|
@@ -147,10 +147,10 @@ async function handleStatus(options) {
|
|
|
147
147
|
);
|
|
148
148
|
}
|
|
149
149
|
async function handleRepos(options) {
|
|
150
|
-
const { http } =
|
|
150
|
+
const { http } = _chunkERMXQOIVjs.getAuthedHttpClient.call(void 0, );
|
|
151
151
|
const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
|
|
152
152
|
const payload = await http.get(`/api/v2/github/repos${query}`);
|
|
153
|
-
|
|
153
|
+
_chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
|
|
154
154
|
{
|
|
155
155
|
installation: payload.installation,
|
|
156
156
|
repositories: payload.repositories,
|
|
@@ -171,7 +171,7 @@ async function handleRepos(options) {
|
|
|
171
171
|
}
|
|
172
172
|
async function resolveRepoId(repo, installation) {
|
|
173
173
|
if (/^\d+$/.test(repo)) return Number(repo);
|
|
174
|
-
const { http } =
|
|
174
|
+
const { http } = _chunkERMXQOIVjs.getAuthedHttpClient.call(void 0, );
|
|
175
175
|
const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
|
|
176
176
|
const payload = await http.get(
|
|
177
177
|
`/api/v2/github/repos${query}`
|
|
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
|
|
|
188
188
|
}
|
|
189
189
|
async function handleLink(repo, options) {
|
|
190
190
|
const repoId = await resolveRepoId(repo, options.installation);
|
|
191
|
-
const { http } =
|
|
191
|
+
const { http } = _chunkERMXQOIVjs.getAuthedHttpClient.call(void 0, );
|
|
192
192
|
const payload = await http.post("/api/v2/play-projects", {
|
|
193
193
|
repoId,
|
|
194
194
|
...options.installation !== void 0 ? { installationId: options.installation } : {},
|
|
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
|
|
|
197
197
|
...options.branch !== void 0 ? { productionBranch: options.branch } : {},
|
|
198
198
|
...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
|
|
199
199
|
});
|
|
200
|
-
|
|
200
|
+
_chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
|
|
201
201
|
{
|
|
202
202
|
project: payload.project,
|
|
203
203
|
render: {
|
|
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
|
|
|
220
220
|
);
|
|
221
221
|
}
|
|
222
222
|
async function handleGet(id, options) {
|
|
223
|
-
const { http } =
|
|
223
|
+
const { http } = _chunkERMXQOIVjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
|
|
228
228
|
{
|
|
229
229
|
project: payload.project,
|
|
230
230
|
render: {
|
|
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
|
|
|
240
240
|
);
|
|
241
241
|
}
|
|
242
242
|
async function handleSet(id, options) {
|
|
243
|
-
const { http } =
|
|
243
|
+
const { http } = _chunkERMXQOIVjs.getAuthedHttpClient.call(void 0, );
|
|
244
244
|
const payload = await http.patch(
|
|
245
245
|
`/api/v2/play-projects/${encodeURIComponent(id)}`,
|
|
246
246
|
{
|
|
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
|
|
|
251
251
|
...options.disabled !== void 0 ? { disabled: options.disabled } : {}
|
|
252
252
|
}
|
|
253
253
|
);
|
|
254
|
-
|
|
254
|
+
_chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
|
|
255
255
|
{
|
|
256
256
|
project: payload.project,
|
|
257
257
|
render: {
|
|
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
|
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
266
|
async function handleUnlink(id, options) {
|
|
267
|
-
const { http } =
|
|
267
|
+
const { http } = _chunkERMXQOIVjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
|
|
270
270
|
{
|
|
271
271
|
ok: true,
|
|
272
272
|
id,
|
|
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
|
|
|
286
286
|
);
|
|
287
287
|
}
|
|
288
288
|
async function handleConnect(options) {
|
|
289
|
-
const baseUrl =
|
|
289
|
+
const baseUrl = _chunk2AENFV3Bjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkERMXQOIVjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
|
|
293
293
|
{
|
|
294
294
|
connectUrl,
|
|
295
295
|
browser: opened,
|
|
@@ -311,7 +311,7 @@ async function handleConnect(options) {
|
|
|
311
311
|
);
|
|
312
312
|
}
|
|
313
313
|
async function handleDeploymentsList(options) {
|
|
314
|
-
const { http } =
|
|
314
|
+
const { http } = _chunkERMXQOIVjs.getAuthedHttpClient.call(void 0, );
|
|
315
315
|
const query = new URLSearchParams();
|
|
316
316
|
if (options.repo) query.set("projectId", options.repo);
|
|
317
317
|
if (options.limit) query.set("limit", options.limit);
|
|
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
|
|
|
319
319
|
const payload = await http.get(
|
|
320
320
|
`/api/v2/deployments${suffix}`
|
|
321
321
|
);
|
|
322
|
-
|
|
322
|
+
_chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
|
|
323
323
|
{
|
|
324
324
|
deployments: payload.deployments,
|
|
325
325
|
count: payload.deployments.length,
|
|
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
|
|
|
363
363
|
]);
|
|
364
364
|
}
|
|
365
365
|
async function handleDeploymentGet(id, options) {
|
|
366
|
-
const { http } =
|
|
366
|
+
const { http } = _chunkERMXQOIVjs.getAuthedHttpClient.call(void 0, );
|
|
367
367
|
const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
|
|
368
368
|
const playLines = renderDeploymentPlayLines(payload.deployment.results);
|
|
369
369
|
const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
|
|
370
370
|
const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
|
|
371
|
-
|
|
371
|
+
_chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
|
|
372
372
|
{
|
|
373
373
|
deployment: payload.deployment,
|
|
374
374
|
project: payload.project,
|
|
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
|
|
|
387
387
|
);
|
|
388
388
|
}
|
|
389
389
|
async function handleDeploymentCancel(id, options) {
|
|
390
|
-
const { http } =
|
|
390
|
+
const { http } = _chunkERMXQOIVjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|