deepline 0.3.379 → 0.3.381
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/row-failure-summary.ts +1 -0
- package/dist/cli/{auth-POBP5XKE.mjs → auth-M2WCVLXM.mjs} +4 -4
- package/dist/cli/auth-T3F2NI55.js +39 -0
- package/dist/cli/{billing-VSJ474AZ.mjs → billing-B4XB5L63.mjs} +4 -4
- package/dist/cli/{billing-CDJTZO3L.js → billing-J5FSVZB4.js} +73 -73
- package/dist/cli/{chunk-PD2WRTDS.js → chunk-2IB2RBCY.js} +1 -1
- package/dist/cli/{chunk-5YUA2FQG.mjs → chunk-4P35MBCK.mjs} +1 -1
- package/dist/cli/{chunk-W5I5QMMM.mjs → chunk-4Q4SQJBF.mjs} +1 -1
- package/dist/cli/{chunk-IKXDUCBB.js → chunk-5UC6VEXF.js} +4 -4
- package/dist/cli/{chunk-BB6WCOYN.js → chunk-AQ4HP2GF.js} +9 -9
- package/dist/cli/{chunk-5YEUVV6X.mjs → chunk-CFHQRESG.mjs} +1 -1
- package/dist/cli/{chunk-CXS5E3NC.js → chunk-D2G6W7ES.js} +50 -50
- package/dist/cli/{chunk-KIF5UJZ3.js → chunk-FDB2YGWF.js} +15 -15
- package/dist/cli/{chunk-6L5GTW3W.js → chunk-HJWXXZVG.js} +8 -8
- package/dist/cli/{chunk-J72WM3BY.mjs → chunk-IX6IEN5B.mjs} +2 -2
- package/dist/cli/{chunk-5W7JQ3A2.mjs → chunk-IXRQGX74.mjs} +4 -4
- package/dist/cli/{chunk-HKDAWSF6.js → chunk-KQFDSP5O.js} +6 -6
- package/dist/cli/{chunk-DB5IP3TV.mjs → chunk-N36BQUUU.mjs} +2 -2
- package/dist/cli/{chunk-UNFRQUUM.mjs → chunk-NEU3YVPF.mjs} +6 -6
- package/dist/cli/{chunk-A3E7TCQK.js → chunk-OKGOQKW7.js} +48 -48
- package/dist/cli/{chunk-XFR73M2S.js → chunk-PPO4FG7O.js} +224 -224
- package/dist/cli/{chunk-GW6EUKW7.mjs → chunk-PWCQM4SD.mjs} +2 -2
- package/dist/cli/{chunk-U3EL4YRM.mjs → chunk-Q7VDVBZW.mjs} +3 -3
- package/dist/cli/{chunk-XI5NWXP4.mjs → chunk-QOK7SKSZ.mjs} +1 -1
- package/dist/cli/{chunk-TA37L7MY.mjs → chunk-RJDYOGD3.mjs} +2 -2
- package/dist/cli/{chunk-ZHGVS5YI.js → chunk-RK72YKI7.js} +26 -26
- package/dist/cli/{chunk-Q7QP3XU2.js → chunk-RWSPU3RI.js} +2 -2
- package/dist/cli/{chunk-MPFXZAIY.js → chunk-SPJI6J44.js} +8 -8
- package/dist/cli/{chunk-T3ZCYEAL.js → chunk-UTVDVZTM.js} +60 -60
- package/dist/cli/{chunk-ZNU5IDYI.mjs → chunk-Y3FOW4TU.mjs} +5 -5
- package/dist/cli/{chunk-YQQSGVAD.mjs → chunk-Z2EKAUHJ.mjs} +1 -1
- package/dist/cli/{csv-N2RLF7AD.js → csv-RG6EPZAF.js} +12 -12
- package/dist/cli/{csv-D47DWKWT.mjs → csv-XK2U7OOP.mjs} +3 -3
- package/dist/cli/{db-IAT26T3O.js → db-LVFZMURX.js} +29 -29
- package/dist/cli/{db-XB6L44DP.mjs → db-LVXEM4JK.mjs} +4 -4
- package/dist/cli/{describe-77RUVCP4.mjs → describe-CGNNGI7D.mjs} +8 -8
- package/dist/cli/{describe-FHCK2IPO.js → describe-F52KVIU5.js} +16 -16
- package/dist/cli/{executions-5LZ6VLOO.mjs → executions-IFQ4VFOW.mjs} +4 -4
- package/dist/cli/{executions-5V3FSXDR.js → executions-QVNYM6G5.js} +6 -6
- package/dist/cli/{feedback-KV765KDS.js → feedback-GE2HJ3RV.js} +7 -7
- package/dist/cli/{feedback-JNBF5H7D.mjs → feedback-XQZGZLJD.mjs} +3 -3
- package/dist/cli/git-QADGD7ZL.js +23 -0
- package/dist/cli/{git-YJUJAHZE.mjs → git-VHYPESNC.mjs} +4 -4
- package/dist/cli/index.js +83 -83
- package/dist/cli/index.mjs +32 -32
- package/dist/cli/{legacy-noops-QKV3SQ6S.mjs → legacy-noops-H3LBMAJD.mjs} +4 -4
- package/dist/cli/{legacy-noops-V3QK7KGI.js → legacy-noops-MEVZKOQO.js} +7 -7
- package/dist/cli/{monitors-K33FLA4Q.js → monitors-6LBPWRV2.js} +85 -85
- package/dist/cli/{monitors-MH624SEV.mjs → monitors-QCDXTRJG.mjs} +4 -4
- package/dist/cli/{org-V7K4VKWJ.mjs → org-R3Q75N6B.mjs} +4 -4
- package/dist/cli/{org-SLSIKOID.js → org-ZCGJFGH2.js} +64 -64
- package/dist/cli/play-AFDVNXFL.js +155 -0
- package/dist/cli/{play-ZW3YPHCZ.mjs → play-AQ6P4KHZ.mjs} +7 -7
- package/dist/cli/{providers-3HJQ7S56.mjs → providers-DD7F2EB3.mjs} +4 -4
- package/dist/cli/{providers-M44EZVKP.js → providers-HQRVMENG.js} +7 -7
- package/dist/cli/{quickstart-MTSZ5GDD.js → quickstart-IHSZ24SF.js} +5 -5
- package/dist/cli/{quickstart-H5CP5Z4N.mjs → quickstart-IQOBN4JH.mjs} +3 -3
- package/dist/cli/{search-FQBY77R7.mjs → search-DQERH2AR.mjs} +5 -5
- package/dist/cli/search-KQNM6AHE.js +26 -0
- package/dist/cli/{secrets-JT7RDYJD.mjs → secrets-WNAU3O75.mjs} +4 -4
- package/dist/cli/{secrets-4E6RJKMK.js → secrets-XY5226V2.js} +13 -13
- package/dist/cli/{sessions-5I3VX7GL.mjs → sessions-P7UZU5LC.mjs} +4 -4
- package/dist/cli/{sessions-7QUTJ4IX.js → sessions-R53JPCM4.js} +5 -5
- package/dist/cli/{settings-KOMLTFDA.js → settings-5QHIIX4A.js} +74 -74
- package/dist/cli/{settings-WLFMKYRS.mjs → settings-JQLWULCE.mjs} +7 -7
- package/dist/cli/{setup-DSRHIY6M.js → setup-3UXOGSKW.js} +41 -41
- package/dist/cli/{setup-KUDUUQ77.mjs → setup-BKCG5BRF.mjs} +6 -6
- package/dist/cli/{skills-RNQS5ABC.mjs → skills-5BBTJHXZ.mjs} +4 -4
- package/dist/cli/skills-7X24WLXD.js +28 -0
- package/dist/cli/{tools-S5QDXE5W.mjs → tools-7EQFFGWU.mjs} +6 -6
- package/dist/cli/tools-HQFR3CYC.js +40 -0
- package/dist/cli/{update-MT6PD7B5.mjs → update-KFMOWN7F.mjs} +6 -6
- package/dist/cli/update-MP6SY5LY.js +28 -0
- package/dist/cli/{workflow-WWEWE4WP.mjs → workflow-JMBTBZGY.mjs} +5 -5
- package/dist/cli/{workflow-QABG23XQ.js → workflow-PGSPHWFA.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +72 -72
- 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-5I2DJ7WL.js +0 -39
- package/dist/cli/git-YYRUQD4K.js +0 -23
- package/dist/cli/play-F7CATHIR.js +0 -155
- package/dist/cli/search-M3ZEKREB.js +0 -26
- package/dist/cli/skills-HNAWVPEB.js +0 -28
- package/dist/cli/tools-IB4WTAKE.js +0 -40
- package/dist/cli/update-I2ZBIT52.js +0 -28
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk5UC6VEXFjs = require('./chunk-5UC6VEXF.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -225,8 +225,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
225
225
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
226
226
|
var defaultBrowserCommandRunner = childProcess;
|
|
227
227
|
function getAuthedHttpClient() {
|
|
228
|
-
const config =
|
|
229
|
-
return { config, http: new (0,
|
|
228
|
+
const config = _chunk5UC6VEXFjs.resolveConfig.call(void 0, );
|
|
229
|
+
return { config, http: new (0, _chunk5UC6VEXFjs.HttpClient)(config) };
|
|
230
230
|
}
|
|
231
231
|
function stableOsUserId() {
|
|
232
232
|
try {
|
|
@@ -566,7 +566,7 @@ function collectLocalEnvInfo() {
|
|
|
566
566
|
os: `${process.platform} ${process.arch}`,
|
|
567
567
|
node_version: process.version,
|
|
568
568
|
home_dir: homeDir,
|
|
569
|
-
agent_runtime:
|
|
569
|
+
agent_runtime: _chunk5UC6VEXFjs.detectAgentRuntime.call(void 0, )
|
|
570
570
|
};
|
|
571
571
|
const env = process.env;
|
|
572
572
|
const optional = {
|
|
@@ -813,9 +813,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
813
813
|
}
|
|
814
814
|
function withAgentCommandContext(value) {
|
|
815
815
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
816
|
-
return
|
|
816
|
+
return _chunk5UC6VEXFjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
817
817
|
...valueRecord,
|
|
818
|
-
command_context:
|
|
818
|
+
command_context: _chunk5UC6VEXFjs.resolveCliCommandContext.call(void 0, )
|
|
819
819
|
} : value;
|
|
820
820
|
}
|
|
821
821
|
function printJson(value, fields) {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-GAMFK2ZP.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QOK7SKSZ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_SKILL_AGENTS,
|
|
9
9
|
KNOWN_SKILL_AGENTS,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
sdkCliStateDirPath,
|
|
23
23
|
skillsAgentPathSegment,
|
|
24
24
|
writeSdkSkillsLocalVersion
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-4P35MBCK.mjs";
|
|
26
26
|
import {
|
|
27
27
|
DeeplineError
|
|
28
28
|
} from "./chunk-NXGCO4JB.mjs";
|
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
} from "./chunk-EDWJY6T4.mjs";
|
|
20
20
|
import {
|
|
21
21
|
registerDeprecatedSearchCommand
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-Q7VDVBZW.mjs";
|
|
23
23
|
import {
|
|
24
24
|
handleDeploymentGet,
|
|
25
25
|
handleDeploymentsList
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-IX6IEN5B.mjs";
|
|
27
27
|
import {
|
|
28
28
|
pinLocalPlayImports,
|
|
29
29
|
planLocalPlayExecution
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
normalizeRunEventOperationRequest,
|
|
43
43
|
parseLogLevel,
|
|
44
44
|
playInputExampleArgs
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-Z2EKAUHJ.mjs";
|
|
46
46
|
import {
|
|
47
47
|
CSV_DATA_INPUT_KEY,
|
|
48
48
|
buildNamedPlayRunRequest,
|
|
@@ -75,10 +75,10 @@ import {
|
|
|
75
75
|
printJsonError,
|
|
76
76
|
renderCommandEnvelopeText,
|
|
77
77
|
shouldEmitJson
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-QOK7SKSZ.mjs";
|
|
79
79
|
import {
|
|
80
80
|
fetchWithDeploymentProtection
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-4P35MBCK.mjs";
|
|
82
82
|
import {
|
|
83
83
|
DeeplineError
|
|
84
84
|
} from "./chunk-NXGCO4JB.mjs";
|
|
@@ -16511,7 +16511,7 @@ Examples:
|
|
|
16511
16511
|
process.exitCode = await ownView();
|
|
16512
16512
|
return;
|
|
16513
16513
|
}
|
|
16514
|
-
const { describeAnything } = await import("./describe-
|
|
16514
|
+
const { describeAnything } = await import("./describe-CGNNGI7D.mjs");
|
|
16515
16515
|
process.exitCode = await describeAnything(
|
|
16516
16516
|
name,
|
|
16517
16517
|
{
|
|
@@ -13,7 +13,7 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkSPJI6J44js = require('./chunk-SPJI6J44.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
@@ -32,7 +32,7 @@ var _chunk5O4B6AUNjs = require('./chunk-5O4B6AUN.js');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkAQ4HP2GFjs = require('./chunk-AQ4HP2GF.js');
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
@@ -46,11 +46,11 @@ var _chunkQJBJZVG6js = require('./chunk-QJBJZVG6.js');
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
var
|
|
49
|
+
var _chunkKQFDSP5Ojs = require('./chunk-KQFDSP5O.js');
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
|
|
53
|
-
var
|
|
53
|
+
var _chunk5UC6VEXFjs = require('./chunk-5UC6VEXF.js');
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -95,10 +95,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
|
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
97
|
function pendingToolExecutionPath(input) {
|
|
98
|
-
const config =
|
|
98
|
+
const config = _chunk5UC6VEXFjs.resolveConfig.call(void 0, );
|
|
99
99
|
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(_chunk3VN4FTE3js.stableStringify.call(void 0, input.params)).update("\0").update(input.responseIntent).digest("hex");
|
|
100
100
|
return _path.join.call(void 0,
|
|
101
|
-
|
|
101
|
+
_chunk5UC6VEXFjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
|
|
102
102
|
`pending-tool-execution-${fingerprint}.json`
|
|
103
103
|
);
|
|
104
104
|
}
|
|
@@ -619,12 +619,12 @@ function categoryEnumerationRender(summaries) {
|
|
|
619
619
|
};
|
|
620
620
|
}
|
|
621
621
|
async function listToolCategories(emitJson, compact) {
|
|
622
|
-
const client = new (0,
|
|
622
|
+
const client = new (0, _chunkAQ4HP2GFjs.DeeplineClient)();
|
|
623
623
|
const rawTools = await client.listTools({ compact });
|
|
624
624
|
const items = rawTools.map(toListedTool);
|
|
625
625
|
const summaries = aggregateCategorySummaries(rawTools);
|
|
626
626
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
627
|
-
|
|
627
|
+
_chunkKQFDSP5Ojs.printCommandEnvelope.call(void 0,
|
|
628
628
|
{
|
|
629
629
|
tools: outputItems,
|
|
630
630
|
count: outputItems.length,
|
|
@@ -643,7 +643,7 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
643
643
|
const known = summaries.map((item) => item.name);
|
|
644
644
|
const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
|
|
645
645
|
if (emitJson) {
|
|
646
|
-
|
|
646
|
+
_chunkKQFDSP5Ojs.printJson.call(void 0, {
|
|
647
647
|
ok: false,
|
|
648
648
|
exitCode: 4,
|
|
649
649
|
code: "TOOL_CATEGORY_NOT_FOUND",
|
|
@@ -657,13 +657,13 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
657
657
|
const render = categoryEnumerationRender(summaries);
|
|
658
658
|
console.error(message);
|
|
659
659
|
console.error("");
|
|
660
|
-
console.error(
|
|
660
|
+
console.error(_chunkKQFDSP5Ojs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
|
|
661
661
|
console.error("");
|
|
662
662
|
console.error(`Valid categories: ${known.join(", ")}`);
|
|
663
663
|
return 4;
|
|
664
664
|
}
|
|
665
665
|
async function listToolsInCategory(category, emitJson) {
|
|
666
|
-
const client = new (0,
|
|
666
|
+
const client = new (0, _chunkAQ4HP2GFjs.DeeplineClient)();
|
|
667
667
|
const rawTools = await client.listTools({
|
|
668
668
|
categories: category,
|
|
669
669
|
compact: false
|
|
@@ -700,7 +700,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
700
700
|
}
|
|
701
701
|
]
|
|
702
702
|
};
|
|
703
|
-
|
|
703
|
+
_chunkKQFDSP5Ojs.printCommandEnvelope.call(void 0,
|
|
704
704
|
{
|
|
705
705
|
category,
|
|
706
706
|
total: rows.length,
|
|
@@ -713,7 +713,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
713
713
|
return 0;
|
|
714
714
|
}
|
|
715
715
|
async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
|
|
716
|
-
const client = new (0,
|
|
716
|
+
const client = new (0, _chunkAQ4HP2GFjs.DeeplineClient)();
|
|
717
717
|
const items = (await client.listTools({
|
|
718
718
|
categories: requestedCategories.join(","),
|
|
719
719
|
compact
|
|
@@ -742,7 +742,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
|
|
|
742
742
|
]
|
|
743
743
|
};
|
|
744
744
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
745
|
-
|
|
745
|
+
_chunkKQFDSP5Ojs.printCommandEnvelope.call(void 0,
|
|
746
746
|
{
|
|
747
747
|
tools: outputItems,
|
|
748
748
|
count: outputItems.length,
|
|
@@ -761,13 +761,13 @@ async function listTools(category, options = {}) {
|
|
|
761
761
|
const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]), () => ( ""));
|
|
762
762
|
const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
|
|
763
763
|
const compact = options.compact !== false;
|
|
764
|
-
const emitJson = options.json === true ||
|
|
764
|
+
const emitJson = options.json === true || _chunkKQFDSP5Ojs.shouldEmitJson.call(void 0, );
|
|
765
765
|
if (positional && flagCategories.length > 0) {
|
|
766
766
|
const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
|
|
767
767
|
if (!flagIsSameSingle) {
|
|
768
768
|
const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
|
|
769
769
|
if (emitJson) {
|
|
770
|
-
|
|
770
|
+
_chunkKQFDSP5Ojs.printJson.call(void 0, {
|
|
771
771
|
ok: false,
|
|
772
772
|
exitCode: 2,
|
|
773
773
|
code: "TOOL_LIST_CATEGORY_CONFLICT",
|
|
@@ -794,7 +794,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
794
794
|
console.error("Usage: deepline tools grep <query> [--json]");
|
|
795
795
|
return 1;
|
|
796
796
|
}
|
|
797
|
-
const client = new (0,
|
|
797
|
+
const client = new (0, _chunkAQ4HP2GFjs.DeeplineClient)();
|
|
798
798
|
const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
|
|
799
799
|
const mode = _nullishCoalesce(options.mode, () => ( "all"));
|
|
800
800
|
const jsonOutput = options.json === true;
|
|
@@ -837,7 +837,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
837
837
|
query,
|
|
838
838
|
mode
|
|
839
839
|
}) : null;
|
|
840
|
-
|
|
840
|
+
_chunkKQFDSP5Ojs.printCommandEnvelope.call(void 0,
|
|
841
841
|
{
|
|
842
842
|
tools: outputTools,
|
|
843
843
|
count: outputTools.length,
|
|
@@ -855,7 +855,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
855
855
|
} : {},
|
|
856
856
|
commandTemplates: TOOL_COMMAND_TEMPLATES
|
|
857
857
|
},
|
|
858
|
-
{ json: options.json ||
|
|
858
|
+
{ json: options.json || _chunkKQFDSP5Ojs.shouldEmitJson.call(void 0, ) }
|
|
859
859
|
);
|
|
860
860
|
return 0;
|
|
861
861
|
}
|
|
@@ -1011,7 +1011,7 @@ Examples:
|
|
|
1011
1011
|
json: Boolean(options.json)
|
|
1012
1012
|
});
|
|
1013
1013
|
});
|
|
1014
|
-
|
|
1014
|
+
_chunkSPJI6J44js.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
|
|
1015
1015
|
tools.command("grep <query>").description(
|
|
1016
1016
|
"Literal grep over tool ids, descriptions, categories, and input fields."
|
|
1017
1017
|
).addHelpText(
|
|
@@ -1112,7 +1112,7 @@ Examples:
|
|
|
1112
1112
|
process.exitCode = await narrowView();
|
|
1113
1113
|
return;
|
|
1114
1114
|
}
|
|
1115
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
1115
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-F52KVIU5.js")));
|
|
1116
1116
|
process.exitCode = await describeAnything(
|
|
1117
1117
|
toolId,
|
|
1118
1118
|
{
|
|
@@ -1198,7 +1198,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1198
1198
|
console.error("Usage: deepline tools describe <toolId> [--json]");
|
|
1199
1199
|
return 1;
|
|
1200
1200
|
}
|
|
1201
|
-
const client = new (0,
|
|
1201
|
+
const client = new (0, _chunkAQ4HP2GFjs.DeeplineClient)();
|
|
1202
1202
|
let tool;
|
|
1203
1203
|
try {
|
|
1204
1204
|
tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
|
|
@@ -1252,10 +1252,10 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1252
1252
|
const lines = toolPricingOnlyLines(tool, toolId);
|
|
1253
1253
|
if (inferenceQuote)
|
|
1254
1254
|
lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
|
|
1255
|
-
|
|
1255
|
+
_chunkKQFDSP5Ojs.printCommandEnvelope.call(void 0,
|
|
1256
1256
|
{
|
|
1257
1257
|
toolId: String(tool.toolId || toolId),
|
|
1258
|
-
cost:
|
|
1258
|
+
cost: _chunkSPJI6J44js.Capability.fromCatalogEntry(tool).describe().customerCost(),
|
|
1259
1259
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1260
1260
|
...isMonitorTypeTool(tool) ? { pricing: recordField(tool, "pricing") } : {},
|
|
1261
1261
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -1270,7 +1270,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1270
1270
|
}
|
|
1271
1271
|
if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !isMonitorTypeTool(tool) && !isPlayLikeTool(tool) && (options.json || options.contractJson)) {
|
|
1272
1272
|
const contract = toolContractJsonForDescribe(tool, toolId);
|
|
1273
|
-
|
|
1273
|
+
_chunkKQFDSP5Ojs.printCompactJson.call(void 0, {
|
|
1274
1274
|
toolId: contract.toolId,
|
|
1275
1275
|
...options.schemaOnly ? {
|
|
1276
1276
|
inputSchema: contract.inputSchema,
|
|
@@ -1293,7 +1293,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1293
1293
|
return 0;
|
|
1294
1294
|
}
|
|
1295
1295
|
if (options.contractJson) {
|
|
1296
|
-
|
|
1296
|
+
_chunkKQFDSP5Ojs.printCompactJson.call(void 0, {
|
|
1297
1297
|
...toolContractJsonForDescribe(tool, toolId),
|
|
1298
1298
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1299
1299
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -1302,7 +1302,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1302
1302
|
}
|
|
1303
1303
|
const emitJson = options.json === true;
|
|
1304
1304
|
if (emitJson) {
|
|
1305
|
-
|
|
1305
|
+
_chunkKQFDSP5Ojs.printCompactJson.call(void 0, {
|
|
1306
1306
|
...toolMetadataJsonForDescribe(tool, toolId),
|
|
1307
1307
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1308
1308
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -1379,7 +1379,7 @@ function toolContractJsonForDescribe(tool, requestedToolId, authoringContractEdi
|
|
|
1379
1379
|
const extractedValues = extractionContractEntries(
|
|
1380
1380
|
arrayField2(toolExecutionResult, "extractedValues", "extracted_values")
|
|
1381
1381
|
);
|
|
1382
|
-
const pricing =
|
|
1382
|
+
const pricing = _chunkSPJI6J44js.Capability.fromCatalogEntry(tool).describe().customerCost();
|
|
1383
1383
|
const executionMetadataRecord = recordField(
|
|
1384
1384
|
tool,
|
|
1385
1385
|
"executionMetadata",
|
|
@@ -1716,7 +1716,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
1716
1716
|
stringField2(cost, "displayText"),
|
|
1717
1717
|
// "Free (free)" says the same thing twice.
|
|
1718
1718
|
billing.toLowerCase() === stringField2(cost, "displayText").toLowerCase() ? "" : billing && `(${billing})`,
|
|
1719
|
-
|
|
1719
|
+
_chunkSPJI6J44js.observedMaxText.call(void 0, cost) && `\u2014 ${_chunkSPJI6J44js.observedMaxText.call(void 0, cost)}`
|
|
1720
1720
|
].filter(Boolean).join(" ") || void 0,
|
|
1721
1721
|
guidance: [
|
|
1722
1722
|
...contract.deprecated === true ? [`Deprecated. ${stringField2(deprecation, "message")}`.trim()] : [],
|
|
@@ -1853,7 +1853,7 @@ function toolPricingOnlyLines(tool, requestedToolId, options = {}) {
|
|
|
1853
1853
|
return monitorTypePricingLines(tool);
|
|
1854
1854
|
}
|
|
1855
1855
|
const toolId = String(tool.toolId || requestedToolId);
|
|
1856
|
-
const cost =
|
|
1856
|
+
const cost = _chunkSPJI6J44js.Capability.fromCatalogEntry(tool).describe().customerCost();
|
|
1857
1857
|
const pricingModel = stringField2(cost, "pricingModel") || "unknown";
|
|
1858
1858
|
const billing = stringField2(cost, "billingSourceLabel") || stringField2(cost, "billingSource") || stringField2(cost, "billingMode") || "unknown";
|
|
1859
1859
|
const explicitUnit = stringField2(cost, "unit");
|
|
@@ -1865,7 +1865,7 @@ function toolPricingOnlyLines(tool, requestedToolId, options = {}) {
|
|
|
1865
1865
|
const price = displayText || summary || (credits !== null ? `${formatDecimal(credits)} Deepline credits${usd !== null ? ` / ${formatUsd(usd)}` : ""} per ${unit}` : "pricing unavailable");
|
|
1866
1866
|
return [
|
|
1867
1867
|
`${_nullishCoalesce(options.heading, () => ( `Pricing: ${toolId}`))}: ${price}`,
|
|
1868
|
-
...
|
|
1868
|
+
..._chunkSPJI6J44js.observedMaxText.call(void 0, cost) ? [` ${_chunkSPJI6J44js.observedMaxText.call(void 0, cost)}`] : [],
|
|
1869
1869
|
...cost.observedReference || cost.estimatedRange ? [
|
|
1870
1870
|
...summary ? [` ${summary}`] : [],
|
|
1871
1871
|
...(_nullishCoalesce(cost.details, () => ( []))).map((detail) => ` ${detail}`)
|
|
@@ -2143,7 +2143,7 @@ function toolMetadataJsonForDescribe(tool, requestedToolId) {
|
|
|
2143
2143
|
} = tool;
|
|
2144
2144
|
const outputSchemaRecord = recordField(tool, "outputSchema", "output_schema");
|
|
2145
2145
|
return {
|
|
2146
|
-
cost:
|
|
2146
|
+
cost: _chunkSPJI6J44js.Capability.fromCatalogEntry(tool).describe().customerCost(),
|
|
2147
2147
|
...publicTool,
|
|
2148
2148
|
toolId,
|
|
2149
2149
|
provider: tool.provider,
|
|
@@ -2757,7 +2757,7 @@ function parseExecuteOptions(toolId, options, output) {
|
|
|
2757
2757
|
outputFormat = normalizeOutputFormat(options.outputFormat);
|
|
2758
2758
|
}
|
|
2759
2759
|
if (options.idempotencyKey !== void 0) {
|
|
2760
|
-
|
|
2760
|
+
_chunkAQ4HP2GFjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
|
|
2761
2761
|
}
|
|
2762
2762
|
if (options.recoveryTimeoutMs !== void 0) {
|
|
2763
2763
|
const parsed = Number(options.recoveryTimeoutMs);
|
|
@@ -3068,20 +3068,20 @@ function buildToolExecuteRowArtifactEnvelope(input) {
|
|
|
3068
3068
|
}
|
|
3069
3069
|
async function executeTool(toolId, options) {
|
|
3070
3070
|
const output = toolExecuteJsonOption(options.json);
|
|
3071
|
-
const wantsJson =
|
|
3071
|
+
const wantsJson = _chunkKQFDSP5Ojs.shouldEmitJson.call(void 0, output.requested) || (_nullishCoalesce(options.outputFormat, () => ( "auto"))).trim().toLowerCase() !== "csv";
|
|
3072
3072
|
let parsed;
|
|
3073
3073
|
try {
|
|
3074
3074
|
parsed = parseExecuteOptions(toolId, options, output);
|
|
3075
3075
|
} catch (error) {
|
|
3076
3076
|
if (wantsJson) {
|
|
3077
|
-
|
|
3077
|
+
_chunkKQFDSP5Ojs.printJsonError.call(void 0, error);
|
|
3078
3078
|
} else {
|
|
3079
3079
|
console.error(error instanceof Error ? error.message : String(error));
|
|
3080
3080
|
}
|
|
3081
3081
|
return error instanceof _chunk7P5AA3SNjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
|
|
3082
3082
|
}
|
|
3083
3083
|
const cliInvocationId = _nullishCoalesce(_chunkQJBJZVG6js.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkQJBJZVG6js.beginToolExecuteCommand.call(void 0, )));
|
|
3084
|
-
const client = new (0,
|
|
3084
|
+
const client = new (0, _chunkAQ4HP2GFjs.DeeplineClient)();
|
|
3085
3085
|
let metadata;
|
|
3086
3086
|
try {
|
|
3087
3087
|
metadata = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0,
|
|
@@ -3096,7 +3096,7 @@ async function executeTool(toolId, options) {
|
|
|
3096
3096
|
);
|
|
3097
3097
|
if (play) {
|
|
3098
3098
|
if (wantsJson) {
|
|
3099
|
-
|
|
3099
|
+
_chunkKQFDSP5Ojs.printJsonError.call(void 0,
|
|
3100
3100
|
new Error(playAliasToolErrorMessage(parsed.toolId, play))
|
|
3101
3101
|
);
|
|
3102
3102
|
} else {
|
|
@@ -3109,7 +3109,7 @@ async function executeTool(toolId, options) {
|
|
|
3109
3109
|
}
|
|
3110
3110
|
if (isPlayLikeTool(metadata)) {
|
|
3111
3111
|
if (wantsJson) {
|
|
3112
|
-
|
|
3112
|
+
_chunkKQFDSP5Ojs.printJsonError.call(void 0,
|
|
3113
3113
|
new Error(
|
|
3114
3114
|
playLikeToolExecuteErrorMessage(
|
|
3115
3115
|
parsed.toolId,
|
|
@@ -3145,7 +3145,7 @@ async function executeTool(toolId, options) {
|
|
|
3145
3145
|
responseIntent,
|
|
3146
3146
|
...idempotencyKey ? { idempotencyKey } : {},
|
|
3147
3147
|
...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
|
|
3148
|
-
searchRef:
|
|
3148
|
+
searchRef: _chunkSPJI6J44js.recentSearchRef.call(void 0, ),
|
|
3149
3149
|
cliInvocationId,
|
|
3150
3150
|
onResponseReceived: _chunkZMVJSS6Njs.recordApiResponse
|
|
3151
3151
|
}).catch((error) => {
|
|
@@ -3186,7 +3186,7 @@ async function executeTool(toolId, options) {
|
|
|
3186
3186
|
const executeExitCode = toolExecuteExitCode(baseEnvelope);
|
|
3187
3187
|
const delivered = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0, "output delivery", () => {
|
|
3188
3188
|
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
|
|
3189
|
-
|
|
3189
|
+
_chunkKQFDSP5Ojs.printCommandEnvelope.call(void 0, baseEnvelope, { json: true });
|
|
3190
3190
|
return true;
|
|
3191
3191
|
}
|
|
3192
3192
|
if (parsed.outputFormat === "json_file") {
|
|
@@ -3194,7 +3194,7 @@ async function executeTool(toolId, options) {
|
|
|
3194
3194
|
rawResponse,
|
|
3195
3195
|
`payload_${parsed.toolId}`
|
|
3196
3196
|
);
|
|
3197
|
-
|
|
3197
|
+
_chunkKQFDSP5Ojs.printCommandEnvelope.call(void 0,
|
|
3198
3198
|
{
|
|
3199
3199
|
...baseEnvelope,
|
|
3200
3200
|
local: {
|
|
@@ -3216,7 +3216,7 @@ async function executeTool(toolId, options) {
|
|
|
3216
3216
|
`${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
|
|
3217
3217
|
);
|
|
3218
3218
|
if (wantsJson) {
|
|
3219
|
-
|
|
3219
|
+
_chunkKQFDSP5Ojs.printJsonError.call(void 0, error);
|
|
3220
3220
|
} else {
|
|
3221
3221
|
console.error(error.message);
|
|
3222
3222
|
}
|
|
@@ -3227,7 +3227,7 @@ async function executeTool(toolId, options) {
|
|
|
3227
3227
|
rawResponse,
|
|
3228
3228
|
`payload_${parsed.toolId}`
|
|
3229
3229
|
);
|
|
3230
|
-
|
|
3230
|
+
_chunkKQFDSP5Ojs.printCommandEnvelope.call(void 0,
|
|
3231
3231
|
{
|
|
3232
3232
|
...baseEnvelope,
|
|
3233
3233
|
local: {
|
|
@@ -3238,7 +3238,7 @@ async function executeTool(toolId, options) {
|
|
|
3238
3238
|
);
|
|
3239
3239
|
return true;
|
|
3240
3240
|
}
|
|
3241
|
-
|
|
3241
|
+
_chunkKQFDSP5Ojs.printCommandEnvelope.call(void 0, baseEnvelope, { json: false });
|
|
3242
3242
|
return true;
|
|
3243
3243
|
}
|
|
3244
3244
|
const rowOutput = _chunk3VN4FTE3js.projectRowOutput.call(void 0, listConversion);
|
|
@@ -3262,7 +3262,7 @@ async function executeTool(toolId, options) {
|
|
|
3262
3262
|
seededScript
|
|
3263
3263
|
});
|
|
3264
3264
|
if (parsed.outputFormat === "csv_file") {
|
|
3265
|
-
|
|
3265
|
+
_chunkKQFDSP5Ojs.printCommandEnvelope.call(void 0, materializedEnvelope, { json: true });
|
|
3266
3266
|
return true;
|
|
3267
3267
|
}
|
|
3268
3268
|
if (parsed.outPath) {
|
|
@@ -3270,7 +3270,7 @@ async function executeTool(toolId, options) {
|
|
|
3270
3270
|
toolId: parsed.toolId,
|
|
3271
3271
|
idempotencyKey
|
|
3272
3272
|
});
|
|
3273
|
-
|
|
3273
|
+
_chunkKQFDSP5Ojs.printCommandEnvelope.call(void 0, materializedEnvelope, {
|
|
3274
3274
|
json: wantsJson,
|
|
3275
3275
|
text: `Wrote ${csv.rowCount} row(s) to ${csv.path}
|
|
3276
3276
|
inspect: ${inspection.inspect}
|
|
@@ -3279,7 +3279,7 @@ inspect: ${inspection.inspect}
|
|
|
3279
3279
|
return true;
|
|
3280
3280
|
}
|
|
3281
3281
|
if (parsed.noPreview) {
|
|
3282
|
-
|
|
3282
|
+
_chunkKQFDSP5Ojs.printCommandEnvelope.call(void 0,
|
|
3283
3283
|
{
|
|
3284
3284
|
...materializedEnvelope,
|
|
3285
3285
|
local: {
|
|
@@ -3292,7 +3292,7 @@ inspect: ${inspection.inspect}
|
|
|
3292
3292
|
);
|
|
3293
3293
|
return true;
|
|
3294
3294
|
}
|
|
3295
|
-
|
|
3295
|
+
_chunkKQFDSP5Ojs.printCommandEnvelope.call(void 0, materializedEnvelope, {
|
|
3296
3296
|
json: wantsJson && parsed.outputFormat !== "csv"
|
|
3297
3297
|
});
|
|
3298
3298
|
return true;
|