deepline 0.3.337 → 0.3.338
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/agent-runtime.ts +21 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +2 -2
- package/dist/cli/auth-LVTYDMEL.js +31 -0
- package/dist/cli/{auth-6EREYQBM.mjs → auth-MTF2TRBC.mjs} +4 -4
- package/dist/cli/{billing-VMXYQMW6.mjs → billing-HXXPKDYV.mjs} +4 -4
- package/dist/cli/{billing-HZBD5KW6.js → billing-OXEY6DAU.js} +71 -71
- package/dist/cli/{chunk-3OBY2AGM.js → chunk-5OHHWYOV.js} +45 -45
- package/dist/cli/{chunk-FY65AYHZ.mjs → chunk-6CEPAFCE.mjs} +4 -4
- package/dist/cli/{chunk-NC5ODEG7.js → chunk-7EQ3WFD2.js} +9 -9
- package/dist/cli/{chunk-HBM2UKEU.mjs → chunk-7WL23HDH.mjs} +1 -1
- package/dist/cli/{chunk-M7IN66XB.js → chunk-AHO5IXHM.js} +15 -15
- package/dist/cli/{chunk-6PGYQ6IG.js → chunk-BYIWZOSA.js} +6 -6
- package/dist/cli/{chunk-VXCRG4J7.mjs → chunk-CGVCELEC.mjs} +1 -1
- package/dist/cli/{chunk-HDI6GSRQ.js → chunk-CVSUI4Z2.js} +48 -48
- package/dist/cli/{chunk-GPN5QAN2.mjs → chunk-FBU4A2ZE.mjs} +2 -2
- package/dist/cli/{chunk-YSR4PFTZ.js → chunk-FOODYFMR.js} +1 -1
- package/dist/cli/{chunk-5WTJ73QU.js → chunk-FYR7GGUF.js} +225 -225
- package/dist/cli/{chunk-MHWEX6GA.js → chunk-HJEHCSFH.js} +8 -8
- package/dist/cli/{chunk-35JNW43E.mjs → chunk-ID5OGCLU.mjs} +3 -3
- package/dist/cli/{chunk-YQW2FPKQ.mjs → chunk-J47TX67H.mjs} +1 -1
- package/dist/cli/{chunk-4SRIWSEG.js → chunk-KLAWLBSP.js} +60 -60
- package/dist/cli/{chunk-QEBA4KXE.js → chunk-KRZDVQZH.js} +70 -28
- package/dist/cli/{chunk-5ERCVX2D.mjs → chunk-MIHJFRGP.mjs} +2 -2
- package/dist/cli/{chunk-2LHYWYHM.mjs → chunk-N3EOKUQV.mjs} +54 -12
- package/dist/cli/{chunk-TB6HY4BW.mjs → chunk-NHTICK5G.mjs} +2 -2
- package/dist/cli/{chunk-XFSDLHGS.js → chunk-NR5ILIKI.js} +2 -2
- package/dist/cli/{chunk-A75J52BM.js → chunk-NUJIZBLA.js} +89 -76
- package/dist/cli/{chunk-ZUB3LXOI.mjs → chunk-OTJMWSIK.mjs} +5 -5
- package/dist/cli/{chunk-7MRAPBWB.mjs → chunk-SSRGN56V.mjs} +1 -1
- package/dist/cli/{chunk-IYK6XS5X.mjs → chunk-UVGGJ2CV.mjs} +6 -6
- package/dist/cli/{chunk-NIXE5325.js → chunk-XWTEOTGL.js} +26 -26
- package/dist/cli/{chunk-NQ42LHHS.mjs → chunk-YMLGJ2B7.mjs} +14 -1
- package/dist/cli/{client-BLGAYJME.mjs → client-LXBODS53.mjs} +3 -3
- package/dist/cli/client-V4OIXTP6.js +20 -0
- package/dist/cli/{csv-43QTLWPN.mjs → csv-3346Z7MA.mjs} +3 -3
- package/dist/cli/{csv-6WIFI6WR.js → csv-5UMO4TMZ.js} +12 -12
- package/dist/cli/{db-NCERSUPL.mjs → db-HVAQDN7U.mjs} +4 -4
- package/dist/cli/{db-5XFKB76V.js → db-RBWIVEB3.js} +29 -29
- package/dist/cli/{describe-4DNSNQKM.js → describe-LAAOJYI2.js} +15 -15
- package/dist/cli/{describe-V4BPRUES.mjs → describe-OKSZOU3V.mjs} +8 -8
- package/dist/cli/{executions-GQ4C2FGI.js → executions-5WENZ6MO.js} +6 -6
- package/dist/cli/{executions-IGXMYAYA.mjs → executions-T56YNXAC.mjs} +4 -4
- package/dist/cli/{feedback-UVDBDHE4.mjs → feedback-RU4EKJYX.mjs} +8 -3
- package/dist/cli/{feedback-UFFCKVNH.js → feedback-YZILULGJ.js} +11 -6
- package/dist/cli/{git-XI6XRTIZ.mjs → git-LX7NYWDT.mjs} +4 -4
- package/dist/cli/git-XASJHFDR.js +23 -0
- package/dist/cli/index.js +79 -79
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-5Z3YLPCN.js → legacy-noops-K6W26TQA.js} +7 -7
- package/dist/cli/{legacy-noops-IUJOLPED.mjs → legacy-noops-SN44IUWD.mjs} +4 -4
- package/dist/cli/{monitors-KUS3ROXZ.mjs → monitors-BQ5SXRDD.mjs} +4 -4
- package/dist/cli/{monitors-TZAGTEID.js → monitors-R4D7X7PL.js} +85 -85
- package/dist/cli/{org-AHHROX6T.js → org-6GWQHHLF.js} +60 -60
- package/dist/cli/{org-SLIG47UE.mjs → org-RNR3CGVL.mjs} +4 -4
- package/dist/cli/play-2V2Y4P3P.js +153 -0
- package/dist/cli/{play-G4AQ2OZ5.mjs → play-CPG4HFXR.mjs} +7 -7
- package/dist/cli/{providers-PBFVQ2EP.js → providers-AP5NBYJF.js} +7 -7
- package/dist/cli/{providers-XQIQO6M3.mjs → providers-YEFPQW3K.mjs} +4 -4
- package/dist/cli/{quickstart-X6CLGXVG.js → quickstart-5D6WSPKU.js} +5 -5
- package/dist/cli/{quickstart-PCASXB6T.mjs → quickstart-IT43KYUN.mjs} +3 -3
- package/dist/cli/{search-ZTYQBKME.mjs → search-BVTZBNF3.mjs} +5 -5
- package/dist/cli/search-O66KVPGA.js +26 -0
- package/dist/cli/{secrets-IDF3FB7W.mjs → secrets-7HG77SLP.mjs} +4 -4
- package/dist/cli/{secrets-N3DWWVAY.js → secrets-L6Q2JJNX.js} +13 -13
- package/dist/cli/{sessions-ECDSBB7P.mjs → sessions-SSBDCVQN.mjs} +4 -4
- package/dist/cli/{sessions-SXXMNGUT.js → sessions-TNXYON2R.js} +5 -5
- package/dist/cli/{settings-IXHK6BAK.js → settings-4FKK3LUF.js} +74 -74
- package/dist/cli/{settings-FKARLN4C.mjs → settings-5L23COY7.mjs} +7 -7
- package/dist/cli/{setup-MJXYEE27.js → setup-EB5JLUFH.js} +41 -41
- package/dist/cli/{setup-LJG55UUU.mjs → setup-GXXWJFRV.mjs} +6 -6
- package/dist/cli/{skills-3IBFR2ZU.mjs → skills-ETEFVVPT.mjs} +4 -4
- package/dist/cli/skills-XFMWA4WX.js +28 -0
- package/dist/cli/tools-3TWNYKZY.js +40 -0
- package/dist/cli/{tools-ZJTHJHAD.mjs → tools-HDTU55RW.mjs} +6 -6
- package/dist/cli/update-AEBCM2LT.js +28 -0
- package/dist/cli/{update-ZN34FLDH.mjs → update-FR5QUV5I.mjs} +6 -6
- package/dist/cli/{workflow-LPCF7OMO.mjs → workflow-BE77YVLP.mjs} +5 -5
- package/dist/cli/{workflow-VLCSTKPW.js → workflow-OFWWX4ZP.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 +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-XS3LNSAH.js +0 -31
- package/dist/cli/client-ERDYIAWV.js +0 -20
- package/dist/cli/git-4ORFOHYQ.js +0 -23
- package/dist/cli/play-RRKTT3F2.js +0 -153
- package/dist/cli/search-QGFQSDJI.js +0 -26
- package/dist/cli/skills-RI3IZNWB.js +0 -28
- package/dist/cli/tools-NQJLSI4O.js +0 -40
- package/dist/cli/update-JY7TJJDL.js +0 -28
|
@@ -10,7 +10,7 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkHJEHCSFHjs = require('./chunk-HJEHCSFH.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -22,7 +22,7 @@ var _chunkNXDRDJ4Kjs = require('./chunk-NXDRDJ4K.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunk7EQ3WFD2js = require('./chunk-7EQ3WFD2.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
@@ -36,11 +36,11 @@ var _chunkQJBJZVG6js = require('./chunk-QJBJZVG6.js');
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunkBYIWZOSAjs = require('./chunk-BYIWZOSA.js');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunkNUJIZBLAjs = require('./chunk-NUJIZBLA.js');
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
var _chunkFKKNYKDYjs = require('./chunk-FKKNYKDY.js');
|
|
@@ -88,10 +88,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
|
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
90
|
function pendingToolExecutionPath(input) {
|
|
91
|
-
const config =
|
|
91
|
+
const config = _chunkNUJIZBLAjs.resolveConfig.call(void 0, );
|
|
92
92
|
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");
|
|
93
93
|
return _path.join.call(void 0,
|
|
94
|
-
|
|
94
|
+
_chunkNUJIZBLAjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
|
|
95
95
|
`pending-tool-execution-${fingerprint}.json`
|
|
96
96
|
);
|
|
97
97
|
}
|
|
@@ -535,12 +535,12 @@ function categoryEnumerationRender(summaries) {
|
|
|
535
535
|
};
|
|
536
536
|
}
|
|
537
537
|
async function listToolCategories(emitJson, compact) {
|
|
538
|
-
const client = new (0,
|
|
538
|
+
const client = new (0, _chunk7EQ3WFD2js.DeeplineClient)();
|
|
539
539
|
const rawTools = await client.listTools({ compact });
|
|
540
540
|
const items = rawTools.map(toListedTool);
|
|
541
541
|
const summaries = aggregateCategorySummaries(rawTools);
|
|
542
542
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
543
|
-
|
|
543
|
+
_chunkBYIWZOSAjs.printCommandEnvelope.call(void 0,
|
|
544
544
|
{
|
|
545
545
|
tools: outputItems,
|
|
546
546
|
count: outputItems.length,
|
|
@@ -559,7 +559,7 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
559
559
|
const known = summaries.map((item) => item.name);
|
|
560
560
|
const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
|
|
561
561
|
if (emitJson) {
|
|
562
|
-
|
|
562
|
+
_chunkBYIWZOSAjs.printJson.call(void 0, {
|
|
563
563
|
ok: false,
|
|
564
564
|
exitCode: 4,
|
|
565
565
|
code: "TOOL_CATEGORY_NOT_FOUND",
|
|
@@ -573,13 +573,13 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
573
573
|
const render = categoryEnumerationRender(summaries);
|
|
574
574
|
console.error(message);
|
|
575
575
|
console.error("");
|
|
576
|
-
console.error(
|
|
576
|
+
console.error(_chunkBYIWZOSAjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
|
|
577
577
|
console.error("");
|
|
578
578
|
console.error(`Valid categories: ${known.join(", ")}`);
|
|
579
579
|
return 4;
|
|
580
580
|
}
|
|
581
581
|
async function listToolsInCategory(category, emitJson) {
|
|
582
|
-
const client = new (0,
|
|
582
|
+
const client = new (0, _chunk7EQ3WFD2js.DeeplineClient)();
|
|
583
583
|
const rawTools = await client.listTools({
|
|
584
584
|
categories: category,
|
|
585
585
|
compact: false
|
|
@@ -616,7 +616,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
616
616
|
}
|
|
617
617
|
]
|
|
618
618
|
};
|
|
619
|
-
|
|
619
|
+
_chunkBYIWZOSAjs.printCommandEnvelope.call(void 0,
|
|
620
620
|
{
|
|
621
621
|
category,
|
|
622
622
|
total: rows.length,
|
|
@@ -629,7 +629,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
629
629
|
return 0;
|
|
630
630
|
}
|
|
631
631
|
async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
|
|
632
|
-
const client = new (0,
|
|
632
|
+
const client = new (0, _chunk7EQ3WFD2js.DeeplineClient)();
|
|
633
633
|
const items = (await client.listTools({
|
|
634
634
|
categories: requestedCategories.join(","),
|
|
635
635
|
compact
|
|
@@ -658,7 +658,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
|
|
|
658
658
|
]
|
|
659
659
|
};
|
|
660
660
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
661
|
-
|
|
661
|
+
_chunkBYIWZOSAjs.printCommandEnvelope.call(void 0,
|
|
662
662
|
{
|
|
663
663
|
tools: outputItems,
|
|
664
664
|
count: outputItems.length,
|
|
@@ -677,13 +677,13 @@ async function listTools(category, options = {}) {
|
|
|
677
677
|
const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]), () => ( ""));
|
|
678
678
|
const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
|
|
679
679
|
const compact = options.compact !== false;
|
|
680
|
-
const emitJson = options.json === true ||
|
|
680
|
+
const emitJson = options.json === true || _chunkBYIWZOSAjs.shouldEmitJson.call(void 0, );
|
|
681
681
|
if (positional && flagCategories.length > 0) {
|
|
682
682
|
const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
|
|
683
683
|
if (!flagIsSameSingle) {
|
|
684
684
|
const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
|
|
685
685
|
if (emitJson) {
|
|
686
|
-
|
|
686
|
+
_chunkBYIWZOSAjs.printJson.call(void 0, {
|
|
687
687
|
ok: false,
|
|
688
688
|
exitCode: 2,
|
|
689
689
|
code: "TOOL_LIST_CATEGORY_CONFLICT",
|
|
@@ -710,7 +710,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
710
710
|
console.error("Usage: deepline tools grep <query> [--json]");
|
|
711
711
|
return 1;
|
|
712
712
|
}
|
|
713
|
-
const client = new (0,
|
|
713
|
+
const client = new (0, _chunk7EQ3WFD2js.DeeplineClient)();
|
|
714
714
|
const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
|
|
715
715
|
const mode = _nullishCoalesce(options.mode, () => ( "all"));
|
|
716
716
|
const jsonOutput = options.json === true;
|
|
@@ -753,7 +753,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
753
753
|
query,
|
|
754
754
|
mode
|
|
755
755
|
}) : null;
|
|
756
|
-
|
|
756
|
+
_chunkBYIWZOSAjs.printCommandEnvelope.call(void 0,
|
|
757
757
|
{
|
|
758
758
|
tools: outputTools,
|
|
759
759
|
count: outputTools.length,
|
|
@@ -771,7 +771,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
771
771
|
} : {},
|
|
772
772
|
commandTemplates: TOOL_COMMAND_TEMPLATES
|
|
773
773
|
},
|
|
774
|
-
{ json: options.json ||
|
|
774
|
+
{ json: options.json || _chunkBYIWZOSAjs.shouldEmitJson.call(void 0, ) }
|
|
775
775
|
);
|
|
776
776
|
return 0;
|
|
777
777
|
}
|
|
@@ -927,7 +927,7 @@ Examples:
|
|
|
927
927
|
json: Boolean(options.json)
|
|
928
928
|
});
|
|
929
929
|
});
|
|
930
|
-
|
|
930
|
+
_chunkHJEHCSFHjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
|
|
931
931
|
tools.command("grep <query>").description(
|
|
932
932
|
"Literal grep over tool ids, descriptions, categories, and input fields."
|
|
933
933
|
).addHelpText(
|
|
@@ -1029,7 +1029,7 @@ Examples:
|
|
|
1029
1029
|
process.exitCode = await narrowView();
|
|
1030
1030
|
return;
|
|
1031
1031
|
}
|
|
1032
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
1032
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-LAAOJYI2.js")));
|
|
1033
1033
|
process.exitCode = await describeAnything(
|
|
1034
1034
|
toolId,
|
|
1035
1035
|
{ ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
|
|
@@ -1111,7 +1111,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1111
1111
|
console.error("Usage: deepline tools describe <toolId> [--json]");
|
|
1112
1112
|
return 1;
|
|
1113
1113
|
}
|
|
1114
|
-
const client = new (0,
|
|
1114
|
+
const client = new (0, _chunk7EQ3WFD2js.DeeplineClient)();
|
|
1115
1115
|
let tool;
|
|
1116
1116
|
try {
|
|
1117
1117
|
tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
|
|
@@ -1165,7 +1165,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1165
1165
|
const lines = toolPricingOnlyLines(tool, toolId);
|
|
1166
1166
|
if (inferenceQuote)
|
|
1167
1167
|
lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
|
|
1168
|
-
|
|
1168
|
+
_chunkBYIWZOSAjs.printCommandEnvelope.call(void 0,
|
|
1169
1169
|
{
|
|
1170
1170
|
toolId: String(tool.toolId || toolId),
|
|
1171
1171
|
cost: Capability.fromCatalogEntry(tool).describe().customerCost(),
|
|
@@ -1183,7 +1183,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1183
1183
|
}
|
|
1184
1184
|
if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !isMonitorTypeTool(tool) && !isPlayLikeTool(tool) && (options.json || options.contractJson)) {
|
|
1185
1185
|
const contract = toolContractJsonForDescribe(tool, toolId);
|
|
1186
|
-
|
|
1186
|
+
_chunkBYIWZOSAjs.printCompactJson.call(void 0, {
|
|
1187
1187
|
toolId: contract.toolId,
|
|
1188
1188
|
...options.schemaOnly ? {
|
|
1189
1189
|
inputSchema: contract.inputSchema,
|
|
@@ -1206,7 +1206,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1206
1206
|
return 0;
|
|
1207
1207
|
}
|
|
1208
1208
|
if (options.contractJson) {
|
|
1209
|
-
|
|
1209
|
+
_chunkBYIWZOSAjs.printCompactJson.call(void 0, {
|
|
1210
1210
|
...toolContractJsonForDescribe(tool, toolId),
|
|
1211
1211
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1212
1212
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -1215,7 +1215,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1215
1215
|
}
|
|
1216
1216
|
const emitJson = options.json === true;
|
|
1217
1217
|
if (emitJson) {
|
|
1218
|
-
|
|
1218
|
+
_chunkBYIWZOSAjs.printCompactJson.call(void 0, {
|
|
1219
1219
|
...toolMetadataJsonForDescribe(tool, toolId),
|
|
1220
1220
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1221
1221
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -2626,7 +2626,7 @@ function parseExecuteOptions(toolId, options, output) {
|
|
|
2626
2626
|
outputFormat = normalizeOutputFormat(options.outputFormat);
|
|
2627
2627
|
}
|
|
2628
2628
|
if (options.idempotencyKey !== void 0) {
|
|
2629
|
-
|
|
2629
|
+
_chunk7EQ3WFD2js.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
|
|
2630
2630
|
}
|
|
2631
2631
|
if (options.recoveryTimeoutMs !== void 0) {
|
|
2632
2632
|
const parsed = Number(options.recoveryTimeoutMs);
|
|
@@ -2937,20 +2937,20 @@ function buildToolExecuteRowArtifactEnvelope(input) {
|
|
|
2937
2937
|
}
|
|
2938
2938
|
async function executeTool(toolId, options) {
|
|
2939
2939
|
const output = toolExecuteJsonOption(options.json);
|
|
2940
|
-
const wantsJson =
|
|
2940
|
+
const wantsJson = _chunkBYIWZOSAjs.shouldEmitJson.call(void 0, output.requested);
|
|
2941
2941
|
let parsed;
|
|
2942
2942
|
try {
|
|
2943
2943
|
parsed = parseExecuteOptions(toolId, options, output);
|
|
2944
2944
|
} catch (error) {
|
|
2945
2945
|
if (wantsJson) {
|
|
2946
|
-
|
|
2946
|
+
_chunkBYIWZOSAjs.printJsonError.call(void 0, error);
|
|
2947
2947
|
} else {
|
|
2948
2948
|
console.error(error instanceof Error ? error.message : String(error));
|
|
2949
2949
|
}
|
|
2950
2950
|
return error instanceof _chunk7P5AA3SNjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
|
|
2951
2951
|
}
|
|
2952
2952
|
const cliInvocationId = _nullishCoalesce(_chunkQJBJZVG6js.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkQJBJZVG6js.beginToolExecuteCommand.call(void 0, )));
|
|
2953
|
-
const client = new (0,
|
|
2953
|
+
const client = new (0, _chunk7EQ3WFD2js.DeeplineClient)();
|
|
2954
2954
|
let metadata;
|
|
2955
2955
|
try {
|
|
2956
2956
|
metadata = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0,
|
|
@@ -2965,7 +2965,7 @@ async function executeTool(toolId, options) {
|
|
|
2965
2965
|
);
|
|
2966
2966
|
if (play) {
|
|
2967
2967
|
if (wantsJson) {
|
|
2968
|
-
|
|
2968
|
+
_chunkBYIWZOSAjs.printJsonError.call(void 0,
|
|
2969
2969
|
new Error(playAliasToolErrorMessage(parsed.toolId, play))
|
|
2970
2970
|
);
|
|
2971
2971
|
} else {
|
|
@@ -2978,7 +2978,7 @@ async function executeTool(toolId, options) {
|
|
|
2978
2978
|
}
|
|
2979
2979
|
if (isPlayLikeTool(metadata)) {
|
|
2980
2980
|
if (wantsJson) {
|
|
2981
|
-
|
|
2981
|
+
_chunkBYIWZOSAjs.printJsonError.call(void 0,
|
|
2982
2982
|
new Error(
|
|
2983
2983
|
playLikeToolExecuteErrorMessage(
|
|
2984
2984
|
parsed.toolId,
|
|
@@ -3014,7 +3014,7 @@ async function executeTool(toolId, options) {
|
|
|
3014
3014
|
responseIntent,
|
|
3015
3015
|
...idempotencyKey ? { idempotencyKey } : {},
|
|
3016
3016
|
...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
|
|
3017
|
-
searchRef:
|
|
3017
|
+
searchRef: _chunkHJEHCSFHjs.recentSearchRef.call(void 0, ),
|
|
3018
3018
|
cliInvocationId
|
|
3019
3019
|
}).catch((error) => {
|
|
3020
3020
|
const guidanceLines = toolGuidanceLines(metadata.guidance);
|
|
@@ -3053,8 +3053,8 @@ async function executeTool(toolId, options) {
|
|
|
3053
3053
|
);
|
|
3054
3054
|
const executeExitCode = toolExecuteExitCode(baseEnvelope);
|
|
3055
3055
|
const delivered = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0, "output delivery", () => {
|
|
3056
|
-
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" &&
|
|
3057
|
-
|
|
3056
|
+
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && _chunkBYIWZOSAjs.shouldEmitJson.call(void 0, ))) {
|
|
3057
|
+
_chunkBYIWZOSAjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: true });
|
|
3058
3058
|
return true;
|
|
3059
3059
|
}
|
|
3060
3060
|
if (parsed.outputFormat === "json_file") {
|
|
@@ -3062,7 +3062,7 @@ async function executeTool(toolId, options) {
|
|
|
3062
3062
|
rawResponse,
|
|
3063
3063
|
`payload_${parsed.toolId}`
|
|
3064
3064
|
);
|
|
3065
|
-
|
|
3065
|
+
_chunkBYIWZOSAjs.printCommandEnvelope.call(void 0,
|
|
3066
3066
|
{
|
|
3067
3067
|
...baseEnvelope,
|
|
3068
3068
|
local: {
|
|
@@ -3084,7 +3084,7 @@ async function executeTool(toolId, options) {
|
|
|
3084
3084
|
`${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
|
|
3085
3085
|
);
|
|
3086
3086
|
if (wantsJson) {
|
|
3087
|
-
|
|
3087
|
+
_chunkBYIWZOSAjs.printJsonError.call(void 0, error);
|
|
3088
3088
|
} else {
|
|
3089
3089
|
console.error(error.message);
|
|
3090
3090
|
}
|
|
@@ -3095,18 +3095,18 @@ async function executeTool(toolId, options) {
|
|
|
3095
3095
|
rawResponse,
|
|
3096
3096
|
`payload_${parsed.toolId}`
|
|
3097
3097
|
);
|
|
3098
|
-
|
|
3098
|
+
_chunkBYIWZOSAjs.printCommandEnvelope.call(void 0,
|
|
3099
3099
|
{
|
|
3100
3100
|
...baseEnvelope,
|
|
3101
3101
|
local: {
|
|
3102
3102
|
payload_file: jsonPath
|
|
3103
3103
|
}
|
|
3104
3104
|
},
|
|
3105
|
-
{ json: parsed.outputFormat === "csv_file" ||
|
|
3105
|
+
{ json: parsed.outputFormat === "csv_file" || _chunkBYIWZOSAjs.shouldEmitJson.call(void 0, ) }
|
|
3106
3106
|
);
|
|
3107
3107
|
return true;
|
|
3108
3108
|
}
|
|
3109
|
-
|
|
3109
|
+
_chunkBYIWZOSAjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: false });
|
|
3110
3110
|
return true;
|
|
3111
3111
|
}
|
|
3112
3112
|
const rowOutput = _chunkNXDRDJ4Kjs.projectRowOutput.call(void 0, listConversion);
|
|
@@ -3130,7 +3130,7 @@ async function executeTool(toolId, options) {
|
|
|
3130
3130
|
seededScript
|
|
3131
3131
|
});
|
|
3132
3132
|
if (parsed.outputFormat === "csv_file") {
|
|
3133
|
-
|
|
3133
|
+
_chunkBYIWZOSAjs.printCommandEnvelope.call(void 0, materializedEnvelope, { json: true });
|
|
3134
3134
|
return true;
|
|
3135
3135
|
}
|
|
3136
3136
|
if (parsed.outPath) {
|
|
@@ -3138,7 +3138,7 @@ async function executeTool(toolId, options) {
|
|
|
3138
3138
|
toolId: parsed.toolId,
|
|
3139
3139
|
idempotencyKey
|
|
3140
3140
|
});
|
|
3141
|
-
|
|
3141
|
+
_chunkBYIWZOSAjs.printCommandEnvelope.call(void 0, materializedEnvelope, {
|
|
3142
3142
|
json: wantsJson,
|
|
3143
3143
|
text: `Wrote ${csv.rowCount} row(s) to ${csv.path}
|
|
3144
3144
|
inspect: ${inspection.inspect}
|
|
@@ -3147,7 +3147,7 @@ inspect: ${inspection.inspect}
|
|
|
3147
3147
|
return true;
|
|
3148
3148
|
}
|
|
3149
3149
|
if (parsed.noPreview) {
|
|
3150
|
-
|
|
3150
|
+
_chunkBYIWZOSAjs.printCommandEnvelope.call(void 0,
|
|
3151
3151
|
{
|
|
3152
3152
|
...materializedEnvelope,
|
|
3153
3153
|
local: {
|
|
@@ -3155,12 +3155,12 @@ inspect: ${inspection.inspect}
|
|
|
3155
3155
|
output_path: csv.path
|
|
3156
3156
|
}
|
|
3157
3157
|
},
|
|
3158
|
-
{ json:
|
|
3158
|
+
{ json: _chunkBYIWZOSAjs.shouldEmitJson.call(void 0, ), text: `${csv.path}
|
|
3159
3159
|
` }
|
|
3160
3160
|
);
|
|
3161
3161
|
return true;
|
|
3162
3162
|
}
|
|
3163
|
-
|
|
3163
|
+
_chunkBYIWZOSAjs.printCommandEnvelope.call(void 0, materializedEnvelope, { json: false });
|
|
3164
3164
|
return true;
|
|
3165
3165
|
});
|
|
3166
3166
|
if (delivered) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7WL23HDH.mjs";
|
|
5
5
|
import {
|
|
6
6
|
resolveShellSpawn,
|
|
7
7
|
runSkillsCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NHTICK5G.mjs";
|
|
9
9
|
import {
|
|
10
10
|
printCommandEnvelope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-J47TX67H.mjs";
|
|
12
12
|
import {
|
|
13
13
|
autoDetectBaseUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-YMLGJ2B7.mjs";
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -15,7 +15,7 @@ var _chunkLA46MMTLjs = require('./chunk-LA46MMTL.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkNUJIZBLAjs = require('./chunk-NUJIZBLA.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -167,7 +167,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
167
167
|
if (error instanceof _chunk7P5AA3SNjs.DeeplineError && (_optionalChain([error, 'access', _2 => _2.code, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("NETWORK_")]) || // Older API readers return PostgreSQL errors as HTTP 400, including
|
|
168
168
|
// lost connections and explicitly unknown transaction resolution.
|
|
169
169
|
/^08[A-Z0-9]{3}$/.test(_nullishCoalesce(error.code, () => ( ""))) || ["57P01", "57P02", "57P03"].includes(_nullishCoalesce(error.code, () => ( ""))) || error.statusCode === 408 || (_nullishCoalesce(error.statusCode, () => ( 0))) >= 500)) {
|
|
170
|
-
throw new (0,
|
|
170
|
+
throw new (0, _chunkNUJIZBLAjs.CustomerDbQueryOutcomeUnknownError)(
|
|
171
171
|
error,
|
|
172
172
|
plan.request.body.operation_key
|
|
173
173
|
);
|
|
@@ -175,7 +175,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
175
175
|
throw error;
|
|
176
176
|
}
|
|
177
177
|
if (!result || typeof result !== "object" || Array.isArray(result) || typeof result.command !== "string" || !Array.isArray(result.columns) || !Array.isArray(result.rows) || typeof result.truncated !== "boolean" || result.row_count !== null && (!Number.isSafeInteger(result.row_count) || result.row_count < 0) || !Number.isSafeInteger(result.row_count_returned) || result.row_count_returned < 0) {
|
|
178
|
-
throw new (0,
|
|
178
|
+
throw new (0, _chunkNUJIZBLAjs.CustomerDbQueryOutcomeUnknownError)(
|
|
179
179
|
new (0, _chunk7P5AA3SNjs.DeeplineError)(
|
|
180
180
|
"The SQL response did not contain a valid result.",
|
|
181
181
|
200,
|
|
@@ -186,7 +186,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
186
186
|
}
|
|
187
187
|
const operation = result.operation;
|
|
188
188
|
if (input.operationKey !== void 0 && (!operation || operation.operation_key !== input.operationKey || !Number.isSafeInteger(operation.completed_at_ms) || operation.completed_at_ms < 0 || !["executed", "operation_recovery"].includes(operation.source))) {
|
|
189
|
-
throw new (0,
|
|
189
|
+
throw new (0, _chunkNUJIZBLAjs.CustomerDbQueryOutcomeUnknownError)(
|
|
190
190
|
new (0, _chunk7P5AA3SNjs.DeeplineError)(
|
|
191
191
|
"The server did not confirm the original atomic SQL operation.",
|
|
192
192
|
200,
|
|
@@ -2875,8 +2875,8 @@ function runtimeSelectionHeaders(runtime) {
|
|
|
2875
2875
|
}
|
|
2876
2876
|
const receivers = _optionalChain([process, 'access', _102 => _102.env, 'access', _103 => _103.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _104 => _104.trim, 'call', _105 => _105()]);
|
|
2877
2877
|
return {
|
|
2878
|
-
[
|
|
2879
|
-
...receivers ? { [
|
|
2878
|
+
[_chunkNUJIZBLAjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
2879
|
+
...receivers ? { [_chunkNUJIZBLAjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
2880
2880
|
};
|
|
2881
2881
|
}
|
|
2882
2882
|
function isolatedCiRuntimeEventReadHeaders() {
|
|
@@ -2892,7 +2892,7 @@ function isolatedCiRuntimeEventReadHeaders() {
|
|
|
2892
2892
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
2893
2893
|
);
|
|
2894
2894
|
}
|
|
2895
|
-
return { [
|
|
2895
|
+
return { [_chunkNUJIZBLAjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
2896
2896
|
}
|
|
2897
2897
|
function normalizeTestPolicyOverrides(value, source) {
|
|
2898
2898
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
@@ -3182,8 +3182,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3182
3182
|
* @throws {@link ConfigError} if no API key can be resolved from any source.
|
|
3183
3183
|
*/
|
|
3184
3184
|
constructor(options) {
|
|
3185
|
-
this.config =
|
|
3186
|
-
this.http = new (0,
|
|
3185
|
+
this.config = _chunkNUJIZBLAjs.resolveConfig.call(void 0, options);
|
|
3186
|
+
this.http = new (0, _chunkNUJIZBLAjs.HttpClient)(this.config);
|
|
3187
3187
|
this.toolCalls = new ToolCalls(
|
|
3188
3188
|
this.http,
|
|
3189
3189
|
this.config.timeout,
|
|
@@ -1,17 +1,17 @@
|
|
|
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 _chunkNR5ILIKIjs = require('./chunk-NR5ILIKI.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkKLAWLBSPjs = require('./chunk-KLAWLBSP.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkBYIWZOSAjs = require('./chunk-BYIWZOSA.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkNUJIZBLAjs = require('./chunk-NUJIZBLA.js');
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
var _child_process = require('child_process');
|
|
@@ -489,7 +489,7 @@ function normalizedNpmPrefix(value) {
|
|
|
489
489
|
}
|
|
490
490
|
function resolveNpmGlobalPrefix(env) {
|
|
491
491
|
try {
|
|
492
|
-
const plan =
|
|
492
|
+
const plan = _chunkKLAWLBSPjs.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
|
|
493
493
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
494
494
|
encoding: "utf8",
|
|
495
495
|
env,
|
|
@@ -545,8 +545,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
545
545
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
546
546
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
547
547
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
548
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
549
|
-
const npmGlobalInstallFlags =
|
|
548
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkNR5ILIKIjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
549
|
+
const npmGlobalInstallFlags = _chunkNR5ILIKIjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
550
550
|
const args = installPrefix ? [
|
|
551
551
|
"install",
|
|
552
552
|
"-g",
|
|
@@ -556,7 +556,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
556
556
|
packageSpec
|
|
557
557
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
558
558
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
559
|
-
_optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) ||
|
|
559
|
+
_optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunkNUJIZBLAjs.autoDetectBaseUrl.call(void 0, )
|
|
560
560
|
);
|
|
561
561
|
return {
|
|
562
562
|
kind: "npm-global",
|
|
@@ -703,7 +703,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
703
703
|
function runCommand(command, args, env = process.env) {
|
|
704
704
|
return new Promise((resolveResult) => {
|
|
705
705
|
let output = "";
|
|
706
|
-
const plan =
|
|
706
|
+
const plan = _chunkKLAWLBSPjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
707
707
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
708
708
|
stdio: ["inherit", "pipe", "pipe"],
|
|
709
709
|
shell: plan.shell,
|
|
@@ -1079,14 +1079,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1079
1079
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1080
1080
|
}
|
|
1081
1081
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1082
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1082
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkNUJIZBLAjs.autoDetectBaseUrl));
|
|
1083
1083
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1084
1084
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1085
1085
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1086
1086
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1087
1087
|
process.stdout.write = (() => true);
|
|
1088
1088
|
try {
|
|
1089
|
-
const exitCode = await
|
|
1089
|
+
const exitCode = await _chunkKLAWLBSPjs.runSkillsCommand.call(void 0, { json: true });
|
|
1090
1090
|
if (exitCode !== 0) {
|
|
1091
1091
|
throw new Error(
|
|
1092
1092
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1157,11 +1157,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1157
1157
|
]
|
|
1158
1158
|
};
|
|
1159
1159
|
if (options.json && !options.executeWithJson) {
|
|
1160
|
-
|
|
1160
|
+
_chunkBYIWZOSAjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1161
1161
|
return 0;
|
|
1162
1162
|
}
|
|
1163
1163
|
if (options.printCommand) {
|
|
1164
|
-
|
|
1164
|
+
_chunkBYIWZOSAjs.printCommandEnvelope.call(void 0,
|
|
1165
1165
|
{
|
|
1166
1166
|
...plan,
|
|
1167
1167
|
render: {
|
|
@@ -1174,7 +1174,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1174
1174
|
return 0;
|
|
1175
1175
|
}
|
|
1176
1176
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1177
|
-
|
|
1177
|
+
_chunkBYIWZOSAjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1178
1178
|
return 0;
|
|
1179
1179
|
}
|
|
1180
1180
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1204,7 +1204,7 @@ To retry with full installer output, run: deepline skills --json
|
|
|
1204
1204
|
);
|
|
1205
1205
|
}
|
|
1206
1206
|
if (options.executeWithJson && options.json) {
|
|
1207
|
-
|
|
1207
|
+
_chunkBYIWZOSAjs.printCommandEnvelope.call(void 0,
|
|
1208
1208
|
{
|
|
1209
1209
|
ok: true,
|
|
1210
1210
|
pinnedVersion
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkNUJIZBLAjs = require('./chunk-NUJIZBLA.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -136,8 +136,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
136
136
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
137
137
|
var defaultBrowserCommandRunner = childProcess;
|
|
138
138
|
function getAuthedHttpClient() {
|
|
139
|
-
const config =
|
|
140
|
-
return { config, http: new (0,
|
|
139
|
+
const config = _chunkNUJIZBLAjs.resolveConfig.call(void 0, );
|
|
140
|
+
return { config, http: new (0, _chunkNUJIZBLAjs.HttpClient)(config) };
|
|
141
141
|
}
|
|
142
142
|
function stableOsUserId() {
|
|
143
143
|
try {
|
|
@@ -477,7 +477,7 @@ function collectLocalEnvInfo() {
|
|
|
477
477
|
os: `${process.platform} ${process.arch}`,
|
|
478
478
|
node_version: process.version,
|
|
479
479
|
home_dir: homeDir,
|
|
480
|
-
agent_runtime:
|
|
480
|
+
agent_runtime: _chunkNUJIZBLAjs.detectAgentRuntime.call(void 0, )
|
|
481
481
|
};
|
|
482
482
|
const env = process.env;
|
|
483
483
|
const optional = {
|
|
@@ -725,9 +725,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
725
725
|
}
|
|
726
726
|
function withAgentCommandContext(value) {
|
|
727
727
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
728
|
-
return
|
|
728
|
+
return _chunkNUJIZBLAjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
729
729
|
...valueRecord,
|
|
730
|
-
command_context:
|
|
730
|
+
command_context: _chunkNUJIZBLAjs.resolveCliCommandContext.call(void 0, )
|
|
731
731
|
} : value;
|
|
732
732
|
}
|
|
733
733
|
function printJson(value, fields) {
|
|
@@ -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.338",
|
|
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
|