deepline 0.3.406 → 0.3.407
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 +54 -57
- package/dist/bundling-sources/sdk/src/play.ts +8 -5
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +4 -3
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/projection/gateway-adapter.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +87 -28
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +6 -1
- package/dist/cli/auth-4JTX6AGM.js +40 -0
- package/dist/cli/{auth-U7LIMXIS.mjs → auth-WURWNNLE.mjs} +4 -4
- package/dist/cli/{billing-5ABVIJFU.js → billing-2QJGXGJX.js} +73 -73
- package/dist/cli/{billing-KGGS3444.mjs → billing-BP3E6WIM.mjs} +4 -4
- package/dist/cli/{chunk-T7YF4MQH.mjs → chunk-4TV43THC.mjs} +3 -3
- package/dist/cli/{chunk-OPHLT4TM.mjs → chunk-6JZZNP5G.mjs} +2 -2
- package/dist/cli/{chunk-W3ZNQE5Y.js → chunk-7LKYHZVB.js} +1 -1
- package/dist/cli/{chunk-5IGBBYXH.mjs → chunk-BKC6VMYZ.mjs} +1 -1
- package/dist/cli/{chunk-NYDRX6JJ.js → chunk-D2ZRMZKF.js} +6 -6
- package/dist/cli/{chunk-N43PX2CA.js → chunk-G4LJS2RE.js} +8 -8
- package/dist/cli/{chunk-IE6IKRQA.js → chunk-G6U74WNM.js} +15 -15
- package/dist/cli/{chunk-W2BAO4OR.js → chunk-H6EWQFPQ.js} +2 -2
- package/dist/cli/{chunk-N6DJQQ2S.js → chunk-IY6GKJ4O.js} +50 -50
- package/dist/cli/{chunk-7ZMVAV2B.mjs → chunk-J67NU4MQ.mjs} +55 -58
- package/dist/cli/{chunk-APLRSERF.js → chunk-KUQAU5MG.js} +60 -63
- package/dist/cli/{chunk-RXDJKAM2.mjs → chunk-L25GBGQU.mjs} +5 -5
- package/dist/cli/{chunk-YLV6PT6B.mjs → chunk-N6OAMAO5.mjs} +1 -1
- package/dist/cli/{chunk-2OFPPAUY.mjs → chunk-P7HOTKOK.mjs} +4 -4
- package/dist/cli/{chunk-V3OTRWVK.mjs → chunk-QJAX7QN7.mjs} +2 -2
- package/dist/cli/{chunk-4REBZQNK.js → chunk-RMZAOYDN.js} +44 -44
- package/dist/cli/{chunk-FQBKK5DG.js → chunk-RZLXVHNO.js} +26 -26
- package/dist/cli/{chunk-EKS2FXL5.js → chunk-SOQIPKF2.js} +8 -8
- package/dist/cli/{chunk-YSAZVLJD.js → chunk-THHM4DPE.js} +4 -4
- package/dist/cli/{chunk-2MLY2ZBT.mjs → chunk-UFFSOV6I.mjs} +2 -2
- package/dist/cli/{chunk-42RUJLQI.mjs → chunk-UPEOEYZ3.mjs} +1 -1
- package/dist/cli/{chunk-77UGRG6X.mjs → chunk-XT6GG3QO.mjs} +3 -3
- package/dist/cli/{chunk-KPU53YBB.js → chunk-Y6CX4QPR.js} +65 -65
- package/dist/cli/{chunk-CGX4NSS3.mjs → chunk-ZBCTXQ3P.mjs} +1 -1
- package/dist/cli/{csv-U36TIOKU.js → csv-7E5BE23B.js} +12 -12
- package/dist/cli/{csv-HXJAAW3H.mjs → csv-N6KYTG7L.mjs} +3 -3
- package/dist/cli/{db-T5MLQQWJ.js → db-4VLZP33O.js} +25 -25
- package/dist/cli/{db-GRWD3JAC.mjs → db-XMBJNVBD.mjs} +4 -4
- package/dist/cli/{describe-NFX6THJE.js → describe-4I6EIVXD.js} +10 -10
- package/dist/cli/{describe-HXFEIZFO.mjs → describe-WERH4TD2.mjs} +6 -6
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-YGOS5E44.mjs → executions-JWQXE7G6.mjs} +4 -4
- package/dist/cli/{executions-KBHTDL3A.js → executions-W7TWJRBK.js} +6 -6
- package/dist/cli/{feedback-VP3GWJIH.js → feedback-FMGRC6KO.js} +7 -7
- package/dist/cli/{feedback-NEQGCSHB.mjs → feedback-OEJFX4F7.mjs} +3 -3
- package/dist/cli/{git-JJ3CHOTL.mjs → git-IVC4KHXX.mjs} +4 -4
- package/dist/cli/git-OFXE7G4X.js +24 -0
- package/dist/cli/index.js +89 -89
- package/dist/cli/index.mjs +32 -32
- package/dist/cli/{legacy-noops-A6KGBODU.mjs → legacy-noops-LT36CLWZ.mjs} +4 -4
- package/dist/cli/{legacy-noops-ITTD33ZN.js → legacy-noops-X3BQ7MUK.js} +7 -7
- package/dist/cli/{monitors-DXVP5YFC.js → monitors-DLIIAVLW.js} +84 -84
- package/dist/cli/{monitors-NGEXCUEY.mjs → monitors-MNLCELF7.mjs} +4 -4
- package/dist/cli/{org-C4ZTOSQC.js → org-CYHDEW7P.js} +64 -64
- package/dist/cli/{org-34DBJSFP.mjs → org-QV5LMUPT.mjs} +4 -4
- package/dist/cli/{play-SVLQKZBG.mjs → play-5Z4ROZ3P.mjs} +7 -7
- package/dist/cli/{play-5FWTZCHN.js → play-MEFXC2QA.js} +231 -231
- package/dist/cli/{providers-QWR2HRNY.js → providers-2MKUNFBQ.js} +7 -7
- package/dist/cli/{providers-RQTSGYE4.mjs → providers-FJLYSHB3.mjs} +4 -4
- package/dist/cli/{quickstart-W5UHZAEU.mjs → quickstart-PQO3OQRT.mjs} +3 -3
- package/dist/cli/{quickstart-DHFNEMGY.js → quickstart-ULWXKAOT.js} +5 -5
- package/dist/cli/search-ANKSJ224.js +30 -0
- package/dist/cli/{search-U4AJC3FH.mjs → search-KGAAXMDG.mjs} +5 -5
- package/dist/cli/{secrets-YSMQ7CVZ.mjs → secrets-PD5I3KAF.mjs} +4 -4
- package/dist/cli/{secrets-HH4H7BLE.js → secrets-X2VGG2PO.js} +13 -13
- package/dist/cli/{sessions-URONRCTV.mjs → sessions-3WVEU4PE.mjs} +4 -4
- package/dist/cli/{sessions-AJZXYUCJ.js → sessions-R3XAKTBQ.js} +5 -5
- package/dist/cli/{settings-KGAMW4MN.mjs → settings-645RSFQX.mjs} +7 -7
- package/dist/cli/{settings-QAW62BH4.js → settings-ZIDO3IP6.js} +74 -74
- package/dist/cli/{setup-KAMFU5VE.js → setup-LH5HOZ3D.js} +41 -41
- package/dist/cli/{setup-P54DPBFO.mjs → setup-LISKIJKP.mjs} +6 -6
- package/dist/cli/{skills-UMWRJ6TL.mjs → skills-VVQJHLSF.mjs} +4 -4
- package/dist/cli/skills-WLHYSVQA.js +29 -0
- package/dist/cli/{tools-HX3BHT55.js → tools-FTPJCNAM.js} +7 -7
- package/dist/cli/{tools-HN4EFVY7.mjs → tools-Y3LOMXFT.mjs} +6 -6
- package/dist/cli/update-A622H2DZ.js +29 -0
- package/dist/cli/{update-7AFQCJ75.mjs → update-DOBNQNJI.mjs} +6 -6
- package/dist/cli/{workflow-7EHU5ZPX.js → workflow-LGENKZBV.js} +15 -15
- package/dist/cli/{workflow-ARDO4VHU.mjs → workflow-ZMAA5VCN.mjs} +5 -5
- package/dist/{client-Buv1_ktG.d.mts → client-6rEB46Lv.d.mts} +55 -57
- package/dist/{client-Db1jFLpF.d.ts → client-IrPHUE5J.d.ts} +55 -57
- package/dist/{compiler-manifest-N77W75Py.d.ts → compiler-manifest-BHnXE43X.d.mts} +6 -1
- package/dist/{compiler-manifest-N77W75Py.d.mts → compiler-manifest-BHnXE43X.d.ts} +6 -1
- package/dist/{index-3WOfyVhW.d.mts → index-Da_Y8z5e.d.mts} +1 -1
- package/dist/{index-CtIJFTCl.d.ts → index-SODb2ROS.d.ts} +1 -1
- package/dist/index.d.mts +13 -10
- package/dist/index.d.ts +13 -10
- package/dist/index.js +8 -8
- package/dist/index.mjs +5 -5
- package/dist/install-integrity.json +76 -76
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- 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-K5QAZH42.js +0 -40
- package/dist/cli/git-63RYCZSI.js +0 -24
- package/dist/cli/search-YAYYU3WD.js +0 -30
- package/dist/cli/skills-M2GGHYJU.js +0 -29
- package/dist/cli/update-I23NN5QI.js +0 -29
|
@@ -5,7 +5,7 @@ var _chunkZAAKSJASjs = require('./chunk-ZAAKSJAS.js');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkG4LJS2REjs = require('./chunk-G4LJS2RE.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -45,7 +45,7 @@ var _chunkZ4VNJOF7js = require('./chunk-Z4VNJOF7.js');
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
var
|
|
48
|
+
var _chunkKUQAU5MGjs = require('./chunk-KUQAU5MG.js');
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
|
|
@@ -62,11 +62,11 @@ var _chunkQJBJZVG6js = require('./chunk-QJBJZVG6.js');
|
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
var
|
|
65
|
+
var _chunkD2ZRMZKFjs = require('./chunk-D2ZRMZKF.js');
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
var
|
|
69
|
+
var _chunkTHHM4DPEjs = require('./chunk-THHM4DPE.js');
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -145,10 +145,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
|
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
147
|
function pendingToolExecutionPath(input) {
|
|
148
|
-
const config =
|
|
148
|
+
const config = _chunkTHHM4DPEjs.resolveConfig.call(void 0, );
|
|
149
149
|
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");
|
|
150
150
|
return _path.join.call(void 0,
|
|
151
|
-
|
|
151
|
+
_chunkTHHM4DPEjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
|
|
152
152
|
`pending-tool-execution-${fingerprint}.json`
|
|
153
153
|
);
|
|
154
154
|
}
|
|
@@ -436,12 +436,12 @@ function categoryEnumerationRender(summaries) {
|
|
|
436
436
|
};
|
|
437
437
|
}
|
|
438
438
|
async function listToolCategories(emitJson, compact) {
|
|
439
|
-
const client = new (0,
|
|
439
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
440
440
|
const rawTools = await client.listTools({ compact });
|
|
441
441
|
const items = rawTools.map(toListedTool);
|
|
442
442
|
const summaries = aggregateCategorySummaries(rawTools);
|
|
443
443
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
444
|
-
|
|
444
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
445
445
|
{
|
|
446
446
|
tools: outputItems,
|
|
447
447
|
count: outputItems.length,
|
|
@@ -460,7 +460,7 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
460
460
|
const known = summaries.map((item) => item.name);
|
|
461
461
|
const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
|
|
462
462
|
if (emitJson) {
|
|
463
|
-
|
|
463
|
+
_chunkD2ZRMZKFjs.printJson.call(void 0, {
|
|
464
464
|
ok: false,
|
|
465
465
|
exitCode: 4,
|
|
466
466
|
code: "TOOL_CATEGORY_NOT_FOUND",
|
|
@@ -474,13 +474,13 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
474
474
|
const render = categoryEnumerationRender(summaries);
|
|
475
475
|
console.error(message);
|
|
476
476
|
console.error("");
|
|
477
|
-
console.error(
|
|
477
|
+
console.error(_chunkD2ZRMZKFjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
|
|
478
478
|
console.error("");
|
|
479
479
|
console.error(`Valid categories: ${known.join(", ")}`);
|
|
480
480
|
return 4;
|
|
481
481
|
}
|
|
482
482
|
async function listToolsInCategory(category, emitJson) {
|
|
483
|
-
const client = new (0,
|
|
483
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
484
484
|
const rawTools = await client.listTools({
|
|
485
485
|
categories: category,
|
|
486
486
|
compact: false
|
|
@@ -517,7 +517,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
517
517
|
}
|
|
518
518
|
]
|
|
519
519
|
};
|
|
520
|
-
|
|
520
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
521
521
|
{
|
|
522
522
|
category,
|
|
523
523
|
total: rows.length,
|
|
@@ -530,7 +530,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
530
530
|
return 0;
|
|
531
531
|
}
|
|
532
532
|
async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
|
|
533
|
-
const client = new (0,
|
|
533
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
534
534
|
const items = (await client.listTools({
|
|
535
535
|
categories: requestedCategories.join(","),
|
|
536
536
|
compact
|
|
@@ -559,7 +559,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
|
|
|
559
559
|
]
|
|
560
560
|
};
|
|
561
561
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
562
|
-
|
|
562
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
563
563
|
{
|
|
564
564
|
tools: outputItems,
|
|
565
565
|
count: outputItems.length,
|
|
@@ -578,13 +578,13 @@ async function listTools(category, options = {}) {
|
|
|
578
578
|
const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]), () => ( ""));
|
|
579
579
|
const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
|
|
580
580
|
const compact = options.compact !== false;
|
|
581
|
-
const emitJson = options.json === true ||
|
|
581
|
+
const emitJson = options.json === true || _chunkD2ZRMZKFjs.shouldEmitJson.call(void 0, );
|
|
582
582
|
if (positional && flagCategories.length > 0) {
|
|
583
583
|
const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
|
|
584
584
|
if (!flagIsSameSingle) {
|
|
585
585
|
const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
|
|
586
586
|
if (emitJson) {
|
|
587
|
-
|
|
587
|
+
_chunkD2ZRMZKFjs.printJson.call(void 0, {
|
|
588
588
|
ok: false,
|
|
589
589
|
exitCode: 2,
|
|
590
590
|
code: "TOOL_LIST_CATEGORY_CONFLICT",
|
|
@@ -611,7 +611,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
611
611
|
console.error("Usage: deepline tools grep <query> [--json]");
|
|
612
612
|
return 1;
|
|
613
613
|
}
|
|
614
|
-
const client = new (0,
|
|
614
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
615
615
|
const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
|
|
616
616
|
const mode = _nullishCoalesce(options.mode, () => ( "all"));
|
|
617
617
|
const jsonOutput = options.json === true;
|
|
@@ -654,7 +654,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
654
654
|
query,
|
|
655
655
|
mode
|
|
656
656
|
}) : null;
|
|
657
|
-
|
|
657
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
658
658
|
{
|
|
659
659
|
tools: outputTools,
|
|
660
660
|
count: outputTools.length,
|
|
@@ -672,7 +672,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
672
672
|
} : {},
|
|
673
673
|
commandTemplates: TOOL_COMMAND_TEMPLATES
|
|
674
674
|
},
|
|
675
|
-
{ json: options.json ||
|
|
675
|
+
{ json: options.json || _chunkD2ZRMZKFjs.shouldEmitJson.call(void 0, ) }
|
|
676
676
|
);
|
|
677
677
|
return 0;
|
|
678
678
|
}
|
|
@@ -790,7 +790,7 @@ Output:
|
|
|
790
790
|
"--credentials-file must contain a nonempty JSON object of string credential values."
|
|
791
791
|
);
|
|
792
792
|
}
|
|
793
|
-
const result = await new (0,
|
|
793
|
+
const result = await new (0, _chunkKUQAU5MGjs.DeeplineClient)().setIntegrationCredentials(
|
|
794
794
|
provider,
|
|
795
795
|
credentials
|
|
796
796
|
);
|
|
@@ -800,7 +800,7 @@ Output:
|
|
|
800
800
|
);
|
|
801
801
|
}
|
|
802
802
|
const confirmation = { provider, credential_saved: true };
|
|
803
|
-
if (
|
|
803
|
+
if (_chunkD2ZRMZKFjs.shouldEmitJson.call(void 0, options.json))
|
|
804
804
|
console.log(JSON.stringify(confirmation));
|
|
805
805
|
else
|
|
806
806
|
console.log(
|
|
@@ -840,7 +840,7 @@ Examples:
|
|
|
840
840
|
json: Boolean(options.json)
|
|
841
841
|
});
|
|
842
842
|
});
|
|
843
|
-
|
|
843
|
+
_chunkG4LJS2REjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
|
|
844
844
|
tools.command("grep <query>").description(
|
|
845
845
|
"Literal grep over tool ids, descriptions, categories, and input fields."
|
|
846
846
|
).addHelpText(
|
|
@@ -941,7 +941,7 @@ Examples:
|
|
|
941
941
|
process.exitCode = await narrowView();
|
|
942
942
|
return;
|
|
943
943
|
}
|
|
944
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
944
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-4I6EIVXD.js")));
|
|
945
945
|
process.exitCode = await describeAnything(
|
|
946
946
|
toolId,
|
|
947
947
|
{
|
|
@@ -1027,7 +1027,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1027
1027
|
console.error("Usage: deepline tools describe <toolId> [--json]");
|
|
1028
1028
|
return 1;
|
|
1029
1029
|
}
|
|
1030
|
-
const client = new (0,
|
|
1030
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
1031
1031
|
let tool;
|
|
1032
1032
|
try {
|
|
1033
1033
|
tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
|
|
@@ -1081,7 +1081,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1081
1081
|
const lines = toolPricingOnlyLines(tool, toolId);
|
|
1082
1082
|
if (inferenceQuote)
|
|
1083
1083
|
lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
|
|
1084
|
-
|
|
1084
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
1085
1085
|
{
|
|
1086
1086
|
toolId: String(tool.toolId || toolId),
|
|
1087
1087
|
cost: _chunkZM2YPJQJjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
|
|
@@ -1104,7 +1104,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1104
1104
|
void 0,
|
|
1105
1105
|
seedToolListScript
|
|
1106
1106
|
);
|
|
1107
|
-
|
|
1107
|
+
_chunkD2ZRMZKFjs.printCompactJson.call(void 0, {
|
|
1108
1108
|
toolId: contract.toolId,
|
|
1109
1109
|
...options.schemaOnly ? {
|
|
1110
1110
|
inputSchema: contract.inputSchema,
|
|
@@ -1127,7 +1127,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1127
1127
|
return 0;
|
|
1128
1128
|
}
|
|
1129
1129
|
if (options.contractJson) {
|
|
1130
|
-
|
|
1130
|
+
_chunkD2ZRMZKFjs.printCompactJson.call(void 0, {
|
|
1131
1131
|
..._chunkFERRDNMOjs.toolContractJsonForDescribe.call(void 0,
|
|
1132
1132
|
tool,
|
|
1133
1133
|
toolId,
|
|
@@ -1141,7 +1141,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1141
1141
|
}
|
|
1142
1142
|
const emitJson = options.json === true;
|
|
1143
1143
|
if (emitJson) {
|
|
1144
|
-
|
|
1144
|
+
_chunkD2ZRMZKFjs.printCompactJson.call(void 0, {
|
|
1145
1145
|
..._chunkFERRDNMOjs.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
|
|
1146
1146
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1147
1147
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -2002,7 +2002,7 @@ function parseExecuteOptions(toolId, options, output) {
|
|
|
2002
2002
|
outputFormat = normalizeOutputFormat(options.outputFormat);
|
|
2003
2003
|
}
|
|
2004
2004
|
if (options.idempotencyKey !== void 0) {
|
|
2005
|
-
|
|
2005
|
+
_chunkKUQAU5MGjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
|
|
2006
2006
|
}
|
|
2007
2007
|
if (options.recoveryTimeoutMs !== void 0) {
|
|
2008
2008
|
const parsed = Number(options.recoveryTimeoutMs);
|
|
@@ -2302,20 +2302,20 @@ function buildToolExecuteRowArtifactEnvelope(input) {
|
|
|
2302
2302
|
}
|
|
2303
2303
|
async function executeTool(toolId, options) {
|
|
2304
2304
|
const output = toolExecuteJsonOption(options.json);
|
|
2305
|
-
const wantsJson =
|
|
2305
|
+
const wantsJson = _chunkD2ZRMZKFjs.shouldEmitJson.call(void 0, output.requested) || (_nullishCoalesce(options.outputFormat, () => ( "auto"))).trim().toLowerCase() !== "csv";
|
|
2306
2306
|
let parsed;
|
|
2307
2307
|
try {
|
|
2308
2308
|
parsed = parseExecuteOptions(toolId, options, output);
|
|
2309
2309
|
} catch (error) {
|
|
2310
2310
|
if (wantsJson) {
|
|
2311
|
-
|
|
2311
|
+
_chunkD2ZRMZKFjs.printJsonError.call(void 0, error);
|
|
2312
2312
|
} else {
|
|
2313
2313
|
console.error(error instanceof Error ? error.message : String(error));
|
|
2314
2314
|
}
|
|
2315
2315
|
return error instanceof _chunk7P5AA3SNjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
|
|
2316
2316
|
}
|
|
2317
2317
|
const cliInvocationId = _nullishCoalesce(_chunkQJBJZVG6js.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkQJBJZVG6js.beginToolExecuteCommand.call(void 0, )));
|
|
2318
|
-
const client = new (0,
|
|
2318
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
2319
2319
|
let metadata;
|
|
2320
2320
|
try {
|
|
2321
2321
|
metadata = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0,
|
|
@@ -2330,7 +2330,7 @@ async function executeTool(toolId, options) {
|
|
|
2330
2330
|
);
|
|
2331
2331
|
if (play) {
|
|
2332
2332
|
if (wantsJson) {
|
|
2333
|
-
|
|
2333
|
+
_chunkD2ZRMZKFjs.printJsonError.call(void 0,
|
|
2334
2334
|
new Error(playAliasToolErrorMessage(parsed.toolId, play))
|
|
2335
2335
|
);
|
|
2336
2336
|
} else {
|
|
@@ -2343,7 +2343,7 @@ async function executeTool(toolId, options) {
|
|
|
2343
2343
|
}
|
|
2344
2344
|
if (_chunkFERRDNMOjs.isPlayLikeTool.call(void 0, metadata)) {
|
|
2345
2345
|
if (wantsJson) {
|
|
2346
|
-
|
|
2346
|
+
_chunkD2ZRMZKFjs.printJsonError.call(void 0,
|
|
2347
2347
|
new Error(
|
|
2348
2348
|
playLikeToolExecuteErrorMessage(
|
|
2349
2349
|
parsed.toolId,
|
|
@@ -2391,7 +2391,7 @@ async function executeTool(toolId, options) {
|
|
|
2391
2391
|
responseIntent,
|
|
2392
2392
|
...idempotencyKey ? { idempotencyKey } : {},
|
|
2393
2393
|
...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
|
|
2394
|
-
searchRef:
|
|
2394
|
+
searchRef: _chunkG4LJS2REjs.recentSearchRef.call(void 0, ),
|
|
2395
2395
|
cliInvocationId,
|
|
2396
2396
|
onResponseReceived: _chunkZAAKSJASjs.recordApiResponse
|
|
2397
2397
|
}).catch((error) => {
|
|
@@ -2432,7 +2432,7 @@ async function executeTool(toolId, options) {
|
|
|
2432
2432
|
const executeExitCode = toolExecuteExitCode(baseEnvelope);
|
|
2433
2433
|
const delivered = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0, "output delivery", () => {
|
|
2434
2434
|
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
|
|
2435
|
-
|
|
2435
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: true });
|
|
2436
2436
|
return true;
|
|
2437
2437
|
}
|
|
2438
2438
|
if (parsed.outputFormat === "json_file") {
|
|
@@ -2440,7 +2440,7 @@ async function executeTool(toolId, options) {
|
|
|
2440
2440
|
rawResponse,
|
|
2441
2441
|
`payload_${parsed.toolId}`
|
|
2442
2442
|
);
|
|
2443
|
-
|
|
2443
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
2444
2444
|
{
|
|
2445
2445
|
...baseEnvelope,
|
|
2446
2446
|
local: {
|
|
@@ -2462,7 +2462,7 @@ async function executeTool(toolId, options) {
|
|
|
2462
2462
|
`${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
|
|
2463
2463
|
);
|
|
2464
2464
|
if (wantsJson) {
|
|
2465
|
-
|
|
2465
|
+
_chunkD2ZRMZKFjs.printJsonError.call(void 0, error);
|
|
2466
2466
|
} else {
|
|
2467
2467
|
console.error(error.message);
|
|
2468
2468
|
}
|
|
@@ -2473,7 +2473,7 @@ async function executeTool(toolId, options) {
|
|
|
2473
2473
|
rawResponse,
|
|
2474
2474
|
`payload_${parsed.toolId}`
|
|
2475
2475
|
);
|
|
2476
|
-
|
|
2476
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
2477
2477
|
{
|
|
2478
2478
|
...baseEnvelope,
|
|
2479
2479
|
local: {
|
|
@@ -2484,7 +2484,7 @@ async function executeTool(toolId, options) {
|
|
|
2484
2484
|
);
|
|
2485
2485
|
return true;
|
|
2486
2486
|
}
|
|
2487
|
-
|
|
2487
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: false });
|
|
2488
2488
|
return true;
|
|
2489
2489
|
}
|
|
2490
2490
|
const rowOutput = _chunkHGFFYVXNjs.projectRowOutput.call(void 0, listConversion);
|
|
@@ -2508,7 +2508,7 @@ async function executeTool(toolId, options) {
|
|
|
2508
2508
|
seededScript
|
|
2509
2509
|
});
|
|
2510
2510
|
if (parsed.outputFormat === "csv_file") {
|
|
2511
|
-
|
|
2511
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0, materializedEnvelope, { json: true });
|
|
2512
2512
|
return true;
|
|
2513
2513
|
}
|
|
2514
2514
|
if (parsed.outPath) {
|
|
@@ -2516,7 +2516,7 @@ async function executeTool(toolId, options) {
|
|
|
2516
2516
|
toolId: parsed.toolId,
|
|
2517
2517
|
idempotencyKey
|
|
2518
2518
|
});
|
|
2519
|
-
|
|
2519
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0, materializedEnvelope, {
|
|
2520
2520
|
json: wantsJson,
|
|
2521
2521
|
text: `Wrote ${csv.rowCount} row(s) to ${csv.path}
|
|
2522
2522
|
inspect: ${inspection.inspect}
|
|
@@ -2525,7 +2525,7 @@ inspect: ${inspection.inspect}
|
|
|
2525
2525
|
return true;
|
|
2526
2526
|
}
|
|
2527
2527
|
if (parsed.noPreview) {
|
|
2528
|
-
|
|
2528
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
2529
2529
|
{
|
|
2530
2530
|
...materializedEnvelope,
|
|
2531
2531
|
local: {
|
|
@@ -2538,7 +2538,7 @@ inspect: ${inspection.inspect}
|
|
|
2538
2538
|
);
|
|
2539
2539
|
return true;
|
|
2540
2540
|
}
|
|
2541
|
-
|
|
2541
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0, materializedEnvelope, {
|
|
2542
2542
|
json: wantsJson && parsed.outputFormat !== "csv"
|
|
2543
2543
|
});
|
|
2544
2544
|
return true;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkD2ZRMZKFjs = require('./chunk-D2ZRMZKF.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkTHHM4DPEjs = require('./chunk-THHM4DPE.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 } = _chunkD2ZRMZKFjs.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
|
+
_chunkD2ZRMZKFjs.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 } = _chunkD2ZRMZKFjs.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
|
+
_chunkD2ZRMZKFjs.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 } = _chunkD2ZRMZKFjs.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
|
+
_chunkD2ZRMZKFjs.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 } = _chunkD2ZRMZKFjs.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 } = _chunkD2ZRMZKFjs.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
|
+
_chunkD2ZRMZKFjs.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 } = _chunkD2ZRMZKFjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkD2ZRMZKFjs.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 } = _chunkD2ZRMZKFjs.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
|
+
_chunkD2ZRMZKFjs.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 } = _chunkD2ZRMZKFjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkD2ZRMZKFjs.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 = _chunkTHHM4DPEjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkD2ZRMZKFjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkD2ZRMZKFjs.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 } = _chunkD2ZRMZKFjs.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
|
+
_chunkD2ZRMZKFjs.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 } = _chunkD2ZRMZKFjs.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
|
+
_chunkD2ZRMZKFjs.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 } = _chunkD2ZRMZKFjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkD2ZRMZKFjs = require('./chunk-D2ZRMZKF.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkTHHM4DPEjs = require('./chunk-THHM4DPE.js');
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
|
|
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
|
|
|
139
139
|
const newestFirst = listSessionFiles(agent).sort(
|
|
140
140
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
141
141
|
);
|
|
142
|
-
const sessionId =
|
|
142
|
+
const sessionId = _chunkTHHM4DPEjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
143
143
|
const cwd = process.cwd();
|
|
144
144
|
return _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(newestFirst.find((candidate) => candidate.sessionId === sessionId), () => ( newestFirst.find(
|
|
145
145
|
(candidate) => sessionStartedInDirectory(candidate, cwd)
|
|
@@ -448,7 +448,7 @@ function buildSessionUploadContent(raw) {
|
|
|
448
448
|
return { encodedContent: encoded, needsChunking: true };
|
|
449
449
|
}
|
|
450
450
|
async function uploadPayload(path, payload) {
|
|
451
|
-
const { http } =
|
|
451
|
+
const { http } = _chunkD2ZRMZKFjs.getAuthedHttpClient.call(void 0, );
|
|
452
452
|
return await http.post(path, payload);
|
|
453
453
|
}
|
|
454
454
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -481,7 +481,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
481
481
|
...options.rating ? { rating: options.rating } : {}
|
|
482
482
|
});
|
|
483
483
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
484
|
-
|
|
484
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
485
485
|
{
|
|
486
486
|
...response,
|
|
487
487
|
ok: true,
|
|
@@ -513,7 +513,7 @@ async function handleSessionsSend(options) {
|
|
|
513
513
|
filename: _path.basename.call(void 0, filePath),
|
|
514
514
|
...rating ? { rating } : {}
|
|
515
515
|
});
|
|
516
|
-
|
|
516
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
517
517
|
{
|
|
518
518
|
...response2,
|
|
519
519
|
ok: true,
|
|
@@ -563,7 +563,7 @@ async function handleSessionsSend(options) {
|
|
|
563
563
|
...rating ? { rating } : {}
|
|
564
564
|
});
|
|
565
565
|
const sessionIds = built.map((session) => session.sessionId);
|
|
566
|
-
|
|
566
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
567
567
|
{
|
|
568
568
|
...response,
|
|
569
569
|
ok: true,
|
|
@@ -671,7 +671,7 @@ ${refreshMeta}
|
|
|
671
671
|
</body>
|
|
672
672
|
</html>`;
|
|
673
673
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
674
|
-
|
|
674
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
675
675
|
{
|
|
676
676
|
ok: true,
|
|
677
677
|
file: outputPath,
|
|
@@ -17,7 +17,7 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
17
17
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk7LKYHZVBjs = require('./chunk-7LKYHZVB.js');
|
|
21
21
|
|
|
22
22
|
// src/config.ts
|
|
23
23
|
|
|
@@ -649,9 +649,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
|
|
|
649
649
|
}
|
|
650
650
|
|
|
651
651
|
// src/version.ts
|
|
652
|
-
var SDK_VERSION =
|
|
653
|
-
var SDK_API_MAJOR =
|
|
654
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
652
|
+
var SDK_VERSION = _chunk7LKYHZVBjs.SDK_RELEASE.version;
|
|
653
|
+
var SDK_API_MAJOR = _chunk7LKYHZVBjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
654
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunk7LKYHZVBjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
655
655
|
|
|
656
656
|
// src/agent-runtime.ts
|
|
657
657
|
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BKC6VMYZ.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-ZBCTXQ3P.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
import {
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.407",
|
|
53
53
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
54
54
|
packageCapabilities: {
|
|
55
55
|
updatePreferences: 1,
|