deepline 0.3.418 → 0.3.420
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/monitors/quickstart-prompts.ts +13 -16
- package/dist/bundling-sources/shared_libs/monitors/starter-templates.ts +20 -30
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +39 -2
- package/dist/cli/auth-FMFNRZCM.js +40 -0
- package/dist/cli/{auth-V5ACU3O2.mjs → auth-OUHAOA5F.mjs} +4 -4
- package/dist/cli/{billing-UB4MHOT3.js → billing-PKVUYBJB.js} +73 -73
- package/dist/cli/{billing-ZIRQHJFE.mjs → billing-VIZQ6D4L.mjs} +4 -4
- package/dist/cli/{chunk-TX7M4PHR.mjs → chunk-3L734JBM.mjs} +3 -3
- package/dist/cli/{chunk-Y26NGVRJ.js → chunk-4T242WLH.js} +8 -8
- package/dist/cli/{chunk-ZTZO2CCM.js → chunk-5VPN2HZQ.js} +16 -16
- package/dist/cli/{chunk-RTK7HFI2.mjs → chunk-7AIHQR5X.mjs} +3 -3
- package/dist/cli/{chunk-YKCQ6C72.mjs → chunk-A2CPK2UC.mjs} +5 -5
- package/dist/cli/{chunk-MBD53IKH.mjs → chunk-AOPQ46ZW.mjs} +3 -3
- package/dist/cli/{chunk-MC2WIGSK.js → chunk-HGYUUQJG.js} +8 -8
- package/dist/cli/{chunk-OX2RL4U2.mjs → chunk-IZ3QC7OE.mjs} +1 -1
- package/dist/cli/{chunk-TBSHWXLW.js → chunk-J55AD562.js} +52 -52
- package/dist/cli/{chunk-U4ZC7W7F.mjs → chunk-JP35BUED.mjs} +1 -1
- package/dist/cli/{chunk-XRAEC3CY.mjs → chunk-KLNF7MWP.mjs} +2 -2
- package/dist/cli/{chunk-MN6AKSIF.mjs → chunk-LJ7ZOBTQ.mjs} +2 -2
- package/dist/cli/{chunk-32UTANSY.mjs → chunk-LPNB7RIE.mjs} +1 -1
- package/dist/cli/{chunk-K6T5LK2V.js → chunk-LUQE4CFH.js} +20 -20
- package/dist/cli/{chunk-IQD57S4D.js → chunk-M4AYMLCK.js} +79 -79
- package/dist/cli/{chunk-ZLPLABLC.js → chunk-NQAWJ65E.js} +4 -4
- package/dist/cli/{chunk-X4L2TVBM.js → chunk-OGII53LE.js} +10 -10
- package/dist/cli/{chunk-QMLU6FR6.js → chunk-OJ64RXJW.js} +26 -26
- package/dist/cli/{chunk-AJ3NO7DO.js → chunk-PZVB72XS.js} +2 -2
- package/dist/cli/{chunk-CC2IVEOS.js → chunk-QJA6OAJF.js} +6 -6
- package/dist/cli/{chunk-XMISTHAV.js → chunk-R4TF44FZ.js} +35 -35
- package/dist/cli/{chunk-VCXODFZY.mjs → chunk-R62A6ZXG.mjs} +2 -2
- package/dist/cli/{chunk-W4DLZBGA.mjs → chunk-SNLYCNAO.mjs} +1 -1
- package/dist/cli/{chunk-SWMW7CGZ.mjs → chunk-SVJPQHHN.mjs} +4 -4
- package/dist/cli/{chunk-YVJ45IPJ.mjs → chunk-TK7V5NQO.mjs} +1 -1
- package/dist/cli/{chunk-IPKEHXR3.mjs → chunk-UBNWFLYB.mjs} +2 -2
- package/dist/cli/{chunk-OPYLSD2Y.js → chunk-VESCW5LD.js} +6 -6
- package/dist/cli/{chunk-X6TVPUPJ.mjs → chunk-WVF6T2MI.mjs} +1 -1
- package/dist/cli/{chunk-7L622O4Y.js → chunk-XXOUOHBO.js} +2 -2
- package/dist/cli/{chunk-ZVIFW7LC.mjs → chunk-YHOGJQR7.mjs} +8 -8
- package/dist/cli/{chunk-IRIY5HJ2.js → chunk-YSJVAPJE.js} +50 -50
- package/dist/cli/{chunk-UMKUJEPH.js → chunk-ZCPJ3L43.js} +1 -1
- package/dist/cli/{csv-YMB7KQ4Y.js → csv-CLKRVS6Q.js} +12 -12
- package/dist/cli/{csv-NUXKAO75.mjs → csv-OJLORQ3N.mjs} +3 -3
- package/dist/cli/{db-DZZVILTC.js → db-PURJUV2P.js} +25 -25
- package/dist/cli/{db-KZDA6JI2.mjs → db-VIY56Q3E.mjs} +4 -4
- package/dist/cli/{describe-AEPMZMC5.js → describe-P2OJ5B4Q.js} +16 -16
- package/dist/cli/{describe-F3YVMAIW.mjs → describe-PDLBLRNY.mjs} +12 -12
- package/dist/cli/{executions-45F3UHOR.js → executions-5CMSUI47.js} +6 -6
- package/dist/cli/{executions-FZHTM5M6.mjs → executions-6PA6Q2BU.mjs} +4 -4
- package/dist/cli/{feedback-Z3DPAIUE.mjs → feedback-IU7JRPUB.mjs} +3 -3
- package/dist/cli/{feedback-BB3Z4UEA.js → feedback-WBKYOIOV.js} +7 -7
- package/dist/cli/{git-VB7DKQIF.mjs → git-RZVL3FY6.mjs} +4 -4
- package/dist/cli/git-SS34WXCG.js +24 -0
- package/dist/cli/index.js +131 -131
- package/dist/cli/index.mjs +36 -36
- package/dist/cli/{legacy-noops-FUCTWERE.mjs → legacy-noops-S4MMABPX.mjs} +4 -4
- package/dist/cli/{legacy-noops-KNXHDWXZ.js → legacy-noops-UQKVJEZT.js} +7 -7
- package/dist/cli/{monitors-JAA2QU5X.js → monitors-42RY2EQJ.js} +84 -84
- package/dist/cli/{monitors-QVY6M22O.mjs → monitors-AIS4RRVX.mjs} +4 -4
- package/dist/cli/{org-J4SVIQHM.mjs → org-DOIEU3KC.mjs} +4 -4
- package/dist/cli/{org-6REABQZW.js → org-GMMSVSCM.js} +64 -64
- package/dist/cli/{play-6JEILD2O.mjs → play-6Z2D3FHI.mjs} +10 -10
- package/dist/cli/{play-2PSN3ZIQ.js → play-GHUPSQIT.js} +283 -283
- package/dist/cli/{providers-VWOLONCJ.mjs → providers-HTKPCZHW.mjs} +4 -4
- package/dist/cli/{providers-KC2TT6IK.js → providers-T6O7AAHV.js} +7 -7
- package/dist/cli/{quickstart-CP7L4OHB.js → quickstart-UVHSZ5R4.js} +5 -5
- package/dist/cli/{quickstart-ZAC3IDFO.mjs → quickstart-V7CQS7CK.mjs} +3 -3
- package/dist/cli/search-CAQRDWHR.js +30 -0
- package/dist/cli/{search-ZN5ZNNMY.mjs → search-GZLYNCII.mjs} +5 -5
- package/dist/cli/{secrets-LNUVVSXM.mjs → secrets-HT2CNTXQ.mjs} +4 -4
- package/dist/cli/{secrets-V6SPFXBE.js → secrets-L24W7HSZ.js} +13 -13
- package/dist/cli/{sessions-5CZX2SXB.js → sessions-JTQPPC66.js} +5 -5
- package/dist/cli/{sessions-7RW3QBGB.mjs → sessions-VWOBR4BP.mjs} +4 -4
- package/dist/cli/{settings-TSAEGFLE.js → settings-57PNA6CO.js} +75 -75
- package/dist/cli/{settings-YEM3ZFDW.mjs → settings-7OOY3WN4.mjs} +8 -8
- package/dist/cli/{setup-JJD4K7W2.mjs → setup-EE6JK7EG.mjs} +7 -7
- package/dist/cli/{setup-AAHA5LHX.js → setup-MDIJTSFP.js} +42 -42
- package/dist/cli/{skills-PH7JSP56.mjs → skills-JDORGABC.mjs} +5 -5
- package/dist/cli/skills-S4KMUPPF.js +29 -0
- package/dist/cli/tools-CHZV3D7R.js +44 -0
- package/dist/cli/{tools-5GBFL3JE.mjs → tools-LVXONRMU.mjs} +12 -12
- package/dist/cli/update-2XCGK53M.js +31 -0
- package/dist/cli/{update-IKTFZC6V.mjs → update-JX2ZOYD3.mjs} +7 -7
- package/dist/cli/{workflow-ZFIZP6U6.js → workflow-ATUJZTWI.js} +15 -15
- package/dist/cli/{workflow-RNV56CI7.mjs → workflow-G4B6ON6F.mjs} +5 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +78 -78
- 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-3OX637KU.js +0 -40
- package/dist/cli/git-MFVTGD4N.js +0 -24
- package/dist/cli/search-FOUJGAMG.js +0 -30
- package/dist/cli/skills-RU3O66D5.js +0 -29
- package/dist/cli/tools-7Q3YFIFR.js +0 -44
- package/dist/cli/update-4RBEYEQ5.js +0 -31
|
@@ -5,7 +5,7 @@ var _chunk27GJKC5Qjs = require('./chunk-27GJKC5Q.js');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkHGYUUQJGjs = require('./chunk-HGYUUQJG.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -45,7 +45,7 @@ var _chunkHGFFYVXNjs = require('./chunk-HGFFYVXN.js');
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
var
|
|
48
|
+
var _chunkOGII53LEjs = require('./chunk-OGII53LE.js');
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
|
|
@@ -55,18 +55,18 @@ var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
|
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
var
|
|
58
|
+
var _chunkLUQE4CFHjs = require('./chunk-LUQE4CFH.js');
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
var
|
|
63
|
+
var _chunkXXOUOHBOjs = require('./chunk-XXOUOHBO.js');
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
var
|
|
69
|
+
var _chunkJ55AD562js = require('./chunk-J55AD562.js');
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
|
|
@@ -74,12 +74,12 @@ var _chunkTBSHWXLWjs = require('./chunk-TBSHWXLW.js');
|
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
var
|
|
77
|
+
var _chunkQJA6OAJFjs = require('./chunk-QJA6OAJF.js');
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
|
|
82
|
-
var
|
|
82
|
+
var _chunkNQAWJ65Ejs = require('./chunk-NQAWJ65E.js');
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
|
|
@@ -158,10 +158,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
|
|
|
158
158
|
}
|
|
159
159
|
};
|
|
160
160
|
function pendingToolExecutionPath(input) {
|
|
161
|
-
const config =
|
|
161
|
+
const config = _chunkNQAWJ65Ejs.resolveConfig.call(void 0, );
|
|
162
162
|
const fingerprint = _crypto.createHash.call(void 0, "sha256").update(config.baseUrl).update("\0").update(_crypto.createHash.call(void 0, "sha256").update(config.apiKey).digest("hex")).update("\0").update(input.toolId).update("\0").update(_chunkXDVT3GOMjs.stableStringify.call(void 0, input.params)).update("\0").update(input.responseIntent).digest("hex");
|
|
163
163
|
return _path.join.call(void 0,
|
|
164
|
-
|
|
164
|
+
_chunkNQAWJ65Ejs.sdkCliStateDirPath.call(void 0, config.baseUrl),
|
|
165
165
|
`pending-tool-execution-${fingerprint}.json`
|
|
166
166
|
);
|
|
167
167
|
}
|
|
@@ -456,13 +456,13 @@ function categoryEnumerationRender(summaries) {
|
|
|
456
456
|
};
|
|
457
457
|
}
|
|
458
458
|
async function listToolCategories(emitJson, compact) {
|
|
459
|
-
const client = new (0,
|
|
459
|
+
const client = new (0, _chunkOGII53LEjs.DeeplineClient)();
|
|
460
460
|
if (!emitJson) {
|
|
461
461
|
const summaries2 = (await client.listToolCategories()).map((category) => ({
|
|
462
462
|
...category,
|
|
463
463
|
description: describeToolCategory(category.name)
|
|
464
464
|
}));
|
|
465
|
-
|
|
465
|
+
_chunkQJA6OAJFjs.printCommandEnvelope.call(void 0,
|
|
466
466
|
{ categories: summaries2, render: categoryEnumerationRender(summaries2) },
|
|
467
467
|
{ json: false }
|
|
468
468
|
);
|
|
@@ -472,7 +472,7 @@ async function listToolCategories(emitJson, compact) {
|
|
|
472
472
|
const items = rawTools.map(toListedTool);
|
|
473
473
|
const summaries = aggregateCategorySummaries(rawTools);
|
|
474
474
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
475
|
-
|
|
475
|
+
_chunkQJA6OAJFjs.printCommandEnvelope.call(void 0,
|
|
476
476
|
{
|
|
477
477
|
tools: outputItems,
|
|
478
478
|
count: outputItems.length,
|
|
@@ -491,7 +491,7 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
491
491
|
const known = summaries.map((item) => item.name);
|
|
492
492
|
const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
|
|
493
493
|
if (emitJson) {
|
|
494
|
-
|
|
494
|
+
_chunkQJA6OAJFjs.printJson.call(void 0, {
|
|
495
495
|
ok: false,
|
|
496
496
|
exitCode: 4,
|
|
497
497
|
code: "TOOL_CATEGORY_NOT_FOUND",
|
|
@@ -505,13 +505,13 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
505
505
|
const render = categoryEnumerationRender(summaries);
|
|
506
506
|
console.error(message);
|
|
507
507
|
console.error("");
|
|
508
|
-
console.error(
|
|
508
|
+
console.error(_chunkQJA6OAJFjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
|
|
509
509
|
console.error("");
|
|
510
510
|
console.error(`Valid categories: ${known.join(", ")}`);
|
|
511
511
|
return 4;
|
|
512
512
|
}
|
|
513
513
|
async function listToolsInCategory(category, emitJson) {
|
|
514
|
-
const client = new (0,
|
|
514
|
+
const client = new (0, _chunkOGII53LEjs.DeeplineClient)();
|
|
515
515
|
const { tools: rawTools, categories } = await client.listToolsInCategory(category);
|
|
516
516
|
const summaries = categories.map((item) => ({
|
|
517
517
|
...item,
|
|
@@ -547,7 +547,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
547
547
|
}
|
|
548
548
|
]
|
|
549
549
|
};
|
|
550
|
-
|
|
550
|
+
_chunkQJA6OAJFjs.printCommandEnvelope.call(void 0,
|
|
551
551
|
{
|
|
552
552
|
category,
|
|
553
553
|
total: rows.length,
|
|
@@ -560,7 +560,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
560
560
|
return 0;
|
|
561
561
|
}
|
|
562
562
|
async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
|
|
563
|
-
const client = new (0,
|
|
563
|
+
const client = new (0, _chunkOGII53LEjs.DeeplineClient)();
|
|
564
564
|
const items = (await client.listTools({
|
|
565
565
|
categories: requestedCategories.join(","),
|
|
566
566
|
compact
|
|
@@ -589,7 +589,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
|
|
|
589
589
|
]
|
|
590
590
|
};
|
|
591
591
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
592
|
-
|
|
592
|
+
_chunkQJA6OAJFjs.printCommandEnvelope.call(void 0,
|
|
593
593
|
{
|
|
594
594
|
tools: outputItems,
|
|
595
595
|
count: outputItems.length,
|
|
@@ -608,13 +608,13 @@ async function listTools(category, options = {}) {
|
|
|
608
608
|
const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]), () => ( ""));
|
|
609
609
|
const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
|
|
610
610
|
const compact = options.compact !== false;
|
|
611
|
-
const emitJson = options.json === true ||
|
|
611
|
+
const emitJson = options.json === true || _chunkQJA6OAJFjs.shouldEmitJson.call(void 0, );
|
|
612
612
|
if (positional && flagCategories.length > 0) {
|
|
613
613
|
const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
|
|
614
614
|
if (!flagIsSameSingle) {
|
|
615
615
|
const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
|
|
616
616
|
if (emitJson) {
|
|
617
|
-
|
|
617
|
+
_chunkQJA6OAJFjs.printJson.call(void 0, {
|
|
618
618
|
ok: false,
|
|
619
619
|
exitCode: 2,
|
|
620
620
|
code: "TOOL_LIST_CATEGORY_CONFLICT",
|
|
@@ -641,7 +641,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
641
641
|
console.error("Usage: deepline tools grep <query> [--json]");
|
|
642
642
|
return 1;
|
|
643
643
|
}
|
|
644
|
-
const client = new (0,
|
|
644
|
+
const client = new (0, _chunkOGII53LEjs.DeeplineClient)();
|
|
645
645
|
const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
|
|
646
646
|
const mode = _nullishCoalesce(options.mode, () => ( "all"));
|
|
647
647
|
const jsonOutput = options.json === true;
|
|
@@ -684,7 +684,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
684
684
|
query,
|
|
685
685
|
mode
|
|
686
686
|
}) : null;
|
|
687
|
-
|
|
687
|
+
_chunkQJA6OAJFjs.printCommandEnvelope.call(void 0,
|
|
688
688
|
{
|
|
689
689
|
tools: outputTools,
|
|
690
690
|
count: outputTools.length,
|
|
@@ -702,7 +702,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
702
702
|
} : {},
|
|
703
703
|
commandTemplates: TOOL_COMMAND_TEMPLATES
|
|
704
704
|
},
|
|
705
|
-
{ json: options.json ||
|
|
705
|
+
{ json: options.json || _chunkQJA6OAJFjs.shouldEmitJson.call(void 0, ) }
|
|
706
706
|
);
|
|
707
707
|
return 0;
|
|
708
708
|
}
|
|
@@ -817,7 +817,7 @@ Output:
|
|
|
817
817
|
"--credentials-file must contain a nonempty JSON object of string credential values."
|
|
818
818
|
);
|
|
819
819
|
}
|
|
820
|
-
const result = await new (0,
|
|
820
|
+
const result = await new (0, _chunkOGII53LEjs.DeeplineClient)().setIntegrationCredentials(
|
|
821
821
|
provider,
|
|
822
822
|
credentials
|
|
823
823
|
);
|
|
@@ -827,7 +827,7 @@ Output:
|
|
|
827
827
|
);
|
|
828
828
|
}
|
|
829
829
|
const confirmation = { provider, credential_saved: true };
|
|
830
|
-
if (
|
|
830
|
+
if (_chunkQJA6OAJFjs.shouldEmitJson.call(void 0, options.json))
|
|
831
831
|
console.log(JSON.stringify(confirmation));
|
|
832
832
|
else
|
|
833
833
|
console.log(
|
|
@@ -867,7 +867,7 @@ Examples:
|
|
|
867
867
|
json: Boolean(options.json)
|
|
868
868
|
});
|
|
869
869
|
});
|
|
870
|
-
|
|
870
|
+
_chunkHGYUUQJGjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
|
|
871
871
|
tools.command("grep <query>").description(
|
|
872
872
|
"Literal grep over tool ids, descriptions, categories, and input fields."
|
|
873
873
|
).addHelpText(
|
|
@@ -898,7 +898,7 @@ Examples:
|
|
|
898
898
|
});
|
|
899
899
|
const addToolMetadataCommand = (command) => {
|
|
900
900
|
let compatibilityMetadata;
|
|
901
|
-
|
|
901
|
+
_chunkLUQE4CFHjs.registerCompatibilityCatalog.call(void 0, command, () => ({
|
|
902
902
|
toolId: command.args[0],
|
|
903
903
|
acceptMetadata: (metadata) => {
|
|
904
904
|
compatibilityMetadata = metadata;
|
|
@@ -968,7 +968,7 @@ Examples:
|
|
|
968
968
|
process.exitCode = await narrowView();
|
|
969
969
|
return;
|
|
970
970
|
}
|
|
971
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
971
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-P2OJ5B4Q.js")));
|
|
972
972
|
process.exitCode = await describeAnything(
|
|
973
973
|
toolId,
|
|
974
974
|
{
|
|
@@ -1052,7 +1052,7 @@ Examples:
|
|
|
1052
1052
|
options,
|
|
1053
1053
|
void 0,
|
|
1054
1054
|
true,
|
|
1055
|
-
|
|
1055
|
+
_chunkXXOUOHBOjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
1056
1056
|
);
|
|
1057
1057
|
}
|
|
1058
1058
|
);
|
|
@@ -1060,13 +1060,13 @@ Examples:
|
|
|
1060
1060
|
function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
1061
1061
|
let metadata;
|
|
1062
1062
|
const startedAt = performance.now();
|
|
1063
|
-
const baseUrl =
|
|
1064
|
-
|
|
1065
|
-
const result =
|
|
1063
|
+
const baseUrl = _chunkNQAWJ65Ejs.resolveConfig.call(void 0, ).baseUrl;
|
|
1064
|
+
_chunkXXOUOHBOjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
|
|
1065
|
+
const result = _chunkLUQE4CFHjs.runToolExecuteStage.call(void 0,
|
|
1066
1066
|
"SDK compatibility",
|
|
1067
|
-
() =>
|
|
1067
|
+
() => _chunkJ55AD562js.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
1068
1068
|
command: "tools execute",
|
|
1069
|
-
skillsVersion:
|
|
1069
|
+
skillsVersion: _chunkNQAWJ65Ejs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
|
|
1070
1070
|
persistCache: false,
|
|
1071
1071
|
timeoutMs: TOOL_EXECUTE_PREFLIGHT_TIMEOUT_MS,
|
|
1072
1072
|
catalog: {
|
|
@@ -1080,7 +1080,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
|
1080
1080
|
})
|
|
1081
1081
|
).then(
|
|
1082
1082
|
(compatibility) => {
|
|
1083
|
-
|
|
1083
|
+
_chunkXXOUOHBOjs.recordCliTrace.call(void 0, {
|
|
1084
1084
|
phase: "cli.tool_execute_compatibility_ready",
|
|
1085
1085
|
ms: performance.now() - startedAt,
|
|
1086
1086
|
ok: compatibility.error === null,
|
|
@@ -1089,7 +1089,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
|
1089
1089
|
return compatibility;
|
|
1090
1090
|
},
|
|
1091
1091
|
(error) => {
|
|
1092
|
-
|
|
1092
|
+
_chunkXXOUOHBOjs.recordCliTrace.call(void 0, {
|
|
1093
1093
|
phase: "cli.tool_execute_compatibility_ready",
|
|
1094
1094
|
ms: performance.now() - startedAt,
|
|
1095
1095
|
ok: false
|
|
@@ -1104,7 +1104,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1104
1104
|
console.error("Usage: deepline tools describe <toolId> [--json]");
|
|
1105
1105
|
return 1;
|
|
1106
1106
|
}
|
|
1107
|
-
const client = new (0,
|
|
1107
|
+
const client = new (0, _chunkOGII53LEjs.DeeplineClient)();
|
|
1108
1108
|
let tool;
|
|
1109
1109
|
try {
|
|
1110
1110
|
tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
|
|
@@ -1158,7 +1158,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1158
1158
|
const lines = toolPricingOnlyLines(tool, toolId);
|
|
1159
1159
|
if (inferenceQuote)
|
|
1160
1160
|
lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
|
|
1161
|
-
|
|
1161
|
+
_chunkQJA6OAJFjs.printCommandEnvelope.call(void 0,
|
|
1162
1162
|
{
|
|
1163
1163
|
toolId: String(tool.toolId || toolId),
|
|
1164
1164
|
cost: _chunkZM2YPJQJjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
|
|
@@ -1181,7 +1181,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1181
1181
|
void 0,
|
|
1182
1182
|
seedToolListScript
|
|
1183
1183
|
);
|
|
1184
|
-
|
|
1184
|
+
_chunkQJA6OAJFjs.printCompactJson.call(void 0, {
|
|
1185
1185
|
toolId: contract.toolId,
|
|
1186
1186
|
...options.schemaOnly ? {
|
|
1187
1187
|
inputSchema: contract.inputSchema,
|
|
@@ -1204,7 +1204,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1204
1204
|
return 0;
|
|
1205
1205
|
}
|
|
1206
1206
|
if (options.contractJson) {
|
|
1207
|
-
|
|
1207
|
+
_chunkQJA6OAJFjs.printCompactJson.call(void 0, {
|
|
1208
1208
|
..._chunkAD47BXN2js.toolContractJsonForDescribe.call(void 0,
|
|
1209
1209
|
tool,
|
|
1210
1210
|
toolId,
|
|
@@ -1218,7 +1218,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1218
1218
|
}
|
|
1219
1219
|
const emitJson = options.json === true;
|
|
1220
1220
|
if (emitJson) {
|
|
1221
|
-
|
|
1221
|
+
_chunkQJA6OAJFjs.printCompactJson.call(void 0, {
|
|
1222
1222
|
..._chunkAD47BXN2js.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
|
|
1223
1223
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1224
1224
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -2079,7 +2079,7 @@ function parseExecuteOptions(toolId, options, output) {
|
|
|
2079
2079
|
outputFormat = normalizeOutputFormat(options.outputFormat);
|
|
2080
2080
|
}
|
|
2081
2081
|
if (options.idempotencyKey !== void 0) {
|
|
2082
|
-
|
|
2082
|
+
_chunkOGII53LEjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
|
|
2083
2083
|
}
|
|
2084
2084
|
if (options.recoveryTimeoutMs !== void 0) {
|
|
2085
2085
|
const parsed = Number(options.recoveryTimeoutMs);
|
|
@@ -2399,19 +2399,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2399
2399
|
parsed = parseExecuteOptions(toolId, options, output);
|
|
2400
2400
|
} catch (error) {
|
|
2401
2401
|
if (wantsJson) {
|
|
2402
|
-
|
|
2402
|
+
_chunkQJA6OAJFjs.printJsonError.call(void 0, error);
|
|
2403
2403
|
} else {
|
|
2404
2404
|
console.error(error instanceof Error ? error.message : String(error));
|
|
2405
2405
|
}
|
|
2406
2406
|
return error instanceof _chunkPPDBRJRWjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
|
|
2407
2407
|
}
|
|
2408
|
-
const cliInvocationId = _nullishCoalesce(
|
|
2408
|
+
const cliInvocationId = _nullishCoalesce(_chunkLUQE4CFHjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkLUQE4CFHjs.beginToolExecuteCommand.call(void 0, )));
|
|
2409
2409
|
const deferredCompatibility = deferCompatibility ? beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) : void 0;
|
|
2410
|
-
const tracing =
|
|
2410
|
+
const tracing = _chunkXXOUOHBOjs.isCliTraceEnabled.call(void 0, );
|
|
2411
2411
|
const clientStartedAt = tracing ? performance.now() : void 0;
|
|
2412
|
-
const client = new (0,
|
|
2412
|
+
const client = new (0, _chunkOGII53LEjs.DeeplineClient)();
|
|
2413
2413
|
if (clientStartedAt !== void 0) {
|
|
2414
|
-
|
|
2414
|
+
_chunkXXOUOHBOjs.recordCliTrace.call(void 0, {
|
|
2415
2415
|
phase: "cli.tool_execute_client_setup",
|
|
2416
2416
|
ms: performance.now() - clientStartedAt
|
|
2417
2417
|
});
|
|
@@ -2420,13 +2420,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2420
2420
|
const readMetadata = async () => {
|
|
2421
2421
|
if (metadata) return metadata;
|
|
2422
2422
|
try {
|
|
2423
|
-
metadata = await
|
|
2423
|
+
metadata = await _chunkLUQE4CFHjs.runToolExecuteStage.call(void 0,
|
|
2424
2424
|
"tool metadata lookup",
|
|
2425
2425
|
() => client.getTool(parsed.toolId, { cliInvocationId })
|
|
2426
2426
|
);
|
|
2427
2427
|
} catch (error) {
|
|
2428
2428
|
if (isMissingToolMetadataError(error)) {
|
|
2429
|
-
const play = await
|
|
2429
|
+
const play = await _chunkLUQE4CFHjs.runToolExecuteStage.call(void 0,
|
|
2430
2430
|
"play alias lookup",
|
|
2431
2431
|
() => findPlayForToolId(client, parsed.toolId, cliInvocationId)
|
|
2432
2432
|
);
|
|
@@ -2465,7 +2465,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2465
2465
|
metadata = await readMetadata();
|
|
2466
2466
|
} catch (error) {
|
|
2467
2467
|
if (error instanceof _chunkPPDBRJRWjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2468
|
-
if (wantsJson)
|
|
2468
|
+
if (wantsJson) _chunkQJA6OAJFjs.printJsonError.call(void 0, error);
|
|
2469
2469
|
else console.error(error.message);
|
|
2470
2470
|
return 2;
|
|
2471
2471
|
}
|
|
@@ -2481,7 +2481,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2481
2481
|
metadata = await readMetadata();
|
|
2482
2482
|
} catch (error) {
|
|
2483
2483
|
if (error instanceof _chunkPPDBRJRWjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2484
|
-
if (wantsJson)
|
|
2484
|
+
if (wantsJson) _chunkQJA6OAJFjs.printJsonError.call(void 0, error);
|
|
2485
2485
|
else console.error(error.message);
|
|
2486
2486
|
return 2;
|
|
2487
2487
|
}
|
|
@@ -2507,11 +2507,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2507
2507
|
responseIntent,
|
|
2508
2508
|
...idempotencyKey ? { idempotencyKey } : {},
|
|
2509
2509
|
...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
|
|
2510
|
-
searchRef:
|
|
2510
|
+
searchRef: _chunkHGYUUQJGjs.recentSearchRef.call(void 0, ),
|
|
2511
2511
|
cliInvocationId,
|
|
2512
2512
|
onResponseReceived: _chunk27GJKC5Qjs.recordApiResponse,
|
|
2513
2513
|
...tracing ? {
|
|
2514
|
-
onServerTiming: (serverTiming) =>
|
|
2514
|
+
onServerTiming: (serverTiming) => _chunkXXOUOHBOjs.recordCliTrace.call(void 0, {
|
|
2515
2515
|
phase: "tool_execute_server_timing",
|
|
2516
2516
|
cliInvocationId,
|
|
2517
2517
|
serverTiming,
|
|
@@ -2522,13 +2522,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2522
2522
|
let rawResponse;
|
|
2523
2523
|
let successfulCompatibilityResponse;
|
|
2524
2524
|
try {
|
|
2525
|
-
const executeResult = await
|
|
2525
|
+
const executeResult = await _chunkLUQE4CFHjs.runToolExecuteStage.call(void 0,
|
|
2526
2526
|
"execute request",
|
|
2527
2527
|
async () => {
|
|
2528
2528
|
try {
|
|
2529
2529
|
if (tracing) {
|
|
2530
2530
|
submissionStartedAt = performance.now();
|
|
2531
|
-
|
|
2531
|
+
_chunkXXOUOHBOjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
|
|
2532
2532
|
}
|
|
2533
2533
|
return await client.executeTool(parsed.toolId, parsed.params, {
|
|
2534
2534
|
...executeOptions,
|
|
@@ -2537,34 +2537,34 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2537
2537
|
} catch (error) {
|
|
2538
2538
|
if (!(error instanceof _chunkPPDBRJRWjs.DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
|
|
2539
2539
|
throw error;
|
|
2540
|
-
const baseUrl =
|
|
2540
|
+
const baseUrl = _chunkNQAWJ65Ejs.resolveConfig.call(void 0, ).baseUrl;
|
|
2541
2541
|
if (maintenancePolicy !== "off") {
|
|
2542
|
-
|
|
2542
|
+
_chunkJ55AD562js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
2543
2543
|
}
|
|
2544
|
-
const compatibility = deferredCompatibility ? await deferredCompatibility.result : await
|
|
2544
|
+
const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunkLUQE4CFHjs.runToolExecuteStage.call(void 0,
|
|
2545
2545
|
"SDK compatibility",
|
|
2546
|
-
() =>
|
|
2546
|
+
() => _chunkJ55AD562js.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
2547
2547
|
command: "tools execute",
|
|
2548
|
-
skillsVersion:
|
|
2548
|
+
skillsVersion: _chunkNQAWJ65Ejs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
|
|
2549
2549
|
persistCache: maintenancePolicy !== "off"
|
|
2550
2550
|
})
|
|
2551
2551
|
);
|
|
2552
2552
|
if (compatibility.error) throw compatibility.error;
|
|
2553
2553
|
metadata = _nullishCoalesce(_optionalChain([deferredCompatibility, 'optionalAccess', _28 => _28.readMetadata, 'call', _29 => _29()]), () => ( metadata));
|
|
2554
|
-
if (maintenancePolicy !== "off" && await
|
|
2554
|
+
if (maintenancePolicy !== "off" && await _chunkLUQE4CFHjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2555
2555
|
compatibility.response,
|
|
2556
2556
|
baseUrl,
|
|
2557
2557
|
maintenancePolicy
|
|
2558
2558
|
)) {
|
|
2559
2559
|
return void 0;
|
|
2560
2560
|
}
|
|
2561
|
-
|
|
2561
|
+
_chunkJ55AD562js.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
2562
2562
|
quietAdvisory: wantsJson
|
|
2563
2563
|
});
|
|
2564
2564
|
if (maintenancePolicy !== "off") {
|
|
2565
|
-
await
|
|
2565
|
+
await _chunkLUQE4CFHjs.runToolExecuteStage.call(void 0,
|
|
2566
2566
|
"agent skills sync",
|
|
2567
|
-
() =>
|
|
2567
|
+
() => _chunkJ55AD562js.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
|
|
2568
2568
|
update: _optionalChain([compatibility, 'access', _30 => _30.response, 'optionalAccess', _31 => _31.skills]),
|
|
2569
2569
|
mode: "detached"
|
|
2570
2570
|
})
|
|
@@ -2573,7 +2573,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2573
2573
|
const legacyMetadata = await readMetadata();
|
|
2574
2574
|
if (tracing) {
|
|
2575
2575
|
submissionStartedAt = performance.now();
|
|
2576
|
-
|
|
2576
|
+
_chunkXXOUOHBOjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
|
|
2577
2577
|
}
|
|
2578
2578
|
return client.executeTool(parsed.toolId, parsed.params, {
|
|
2579
2579
|
...executeOptions,
|
|
@@ -2594,8 +2594,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2594
2594
|
metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
|
|
2595
2595
|
const updateRequiredBeforeExecution = error instanceof _chunkPPDBRJRWjs.DeeplineError && error.code === "SDK_UPDATE_REQUIRED";
|
|
2596
2596
|
if (updateRequiredBeforeExecution && maintenancePolicy !== "off" && compatibility && !compatibility.error) {
|
|
2597
|
-
const baseUrl =
|
|
2598
|
-
if (await
|
|
2597
|
+
const baseUrl = _chunkNQAWJ65Ejs.resolveConfig.call(void 0, ).baseUrl;
|
|
2598
|
+
if (await _chunkLUQE4CFHjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2599
2599
|
compatibility.response,
|
|
2600
2600
|
baseUrl,
|
|
2601
2601
|
maintenancePolicy
|
|
@@ -2614,7 +2614,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2614
2614
|
failure = diagnosticError;
|
|
2615
2615
|
}
|
|
2616
2616
|
if (failure instanceof _chunkPPDBRJRWjs.DeeplineError && failure.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2617
|
-
if (wantsJson)
|
|
2617
|
+
if (wantsJson) _chunkQJA6OAJFjs.printJsonError.call(void 0, failure);
|
|
2618
2618
|
else console.error(failure.message);
|
|
2619
2619
|
return 2;
|
|
2620
2620
|
}
|
|
@@ -2641,9 +2641,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2641
2641
|
successfulCompatibilityResponse = _nullishCoalesce(compatibilityResponse, () => ( void 0));
|
|
2642
2642
|
const autoUpdate = _optionalChain([compatibilityResponse, 'optionalAccess', _37 => _37.auto_update]);
|
|
2643
2643
|
if (maintenancePolicy !== "off" && compatibilityResponse && _optionalChain([autoUpdate, 'optionalAccess', _38 => _38.should_auto_update]) && !autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
2644
|
-
await
|
|
2644
|
+
await _chunkLUQE4CFHjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2645
2645
|
compatibilityResponse,
|
|
2646
|
-
|
|
2646
|
+
_chunkNQAWJ65Ejs.resolveConfig.call(void 0, ).baseUrl,
|
|
2647
2647
|
maintenancePolicy
|
|
2648
2648
|
);
|
|
2649
2649
|
}
|
|
@@ -2678,7 +2678,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2678
2678
|
const { _metadata, ...execution } = rawResponse;
|
|
2679
2679
|
rawResponse = execution;
|
|
2680
2680
|
}
|
|
2681
|
-
const { listConversion, summary, baseEnvelope } = await
|
|
2681
|
+
const { listConversion, summary, baseEnvelope } = await _chunkLUQE4CFHjs.runToolExecuteStage.call(void 0,
|
|
2682
2682
|
"result formatting",
|
|
2683
2683
|
async () => {
|
|
2684
2684
|
const listConversion2 = _chunkHGFFYVXNjs.tryConvertToList.call(void 0, rawResponse, {
|
|
@@ -2713,9 +2713,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2713
2713
|
}
|
|
2714
2714
|
skillsSyncAttempted = true;
|
|
2715
2715
|
try {
|
|
2716
|
-
await
|
|
2716
|
+
await _chunkLUQE4CFHjs.runToolExecuteStage.call(void 0,
|
|
2717
2717
|
"agent skills sync",
|
|
2718
|
-
() =>
|
|
2718
|
+
() => _chunkJ55AD562js.syncSdkSkillsIfNeeded.call(void 0, _chunkNQAWJ65Ejs.resolveConfig.call(void 0, ).baseUrl, {
|
|
2719
2719
|
update: deliveredCompatibilityResponse.skills,
|
|
2720
2720
|
mode: "detached"
|
|
2721
2721
|
})
|
|
@@ -2726,15 +2726,15 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2726
2726
|
);
|
|
2727
2727
|
}
|
|
2728
2728
|
};
|
|
2729
|
-
const printDeliveredEnvelope = (envelope, options2 = {}) =>
|
|
2729
|
+
const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkQJA6OAJFjs.printCommandEnvelope.call(void 0, envelope, {
|
|
2730
2730
|
...options2,
|
|
2731
2731
|
json: _nullishCoalesce(options2.json, () => ( wantsJson))
|
|
2732
2732
|
});
|
|
2733
2733
|
const printDeliveredJsonEnvelope = async (envelope, options2 = {}) => {
|
|
2734
2734
|
await syncSkillsForDeliveredOutput();
|
|
2735
|
-
|
|
2735
|
+
_chunkQJA6OAJFjs.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
|
|
2736
2736
|
};
|
|
2737
|
-
const delivered = await
|
|
2737
|
+
const delivered = await _chunkLUQE4CFHjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
|
|
2738
2738
|
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
|
|
2739
2739
|
await printDeliveredJsonEnvelope(baseEnvelope);
|
|
2740
2740
|
return true;
|
|
@@ -2763,7 +2763,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2763
2763
|
`${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
|
|
2764
2764
|
);
|
|
2765
2765
|
if (wantsJson) {
|
|
2766
|
-
|
|
2766
|
+
_chunkQJA6OAJFjs.printJsonError.call(void 0, error);
|
|
2767
2767
|
} else {
|
|
2768
2768
|
console.error(error.message);
|
|
2769
2769
|
}
|
|
@@ -2858,13 +2858,13 @@ inspect: ${inspection.inspect}
|
|
|
2858
2858
|
return true;
|
|
2859
2859
|
});
|
|
2860
2860
|
if (delivered) {
|
|
2861
|
-
await
|
|
2861
|
+
await _chunkLUQE4CFHjs.runToolExecuteStage.call(void 0,
|
|
2862
2862
|
"acknowledge delivery",
|
|
2863
2863
|
() => recovery.acknowledgeDelivery()
|
|
2864
2864
|
);
|
|
2865
2865
|
}
|
|
2866
2866
|
if (delivered && deliveredCompatibilityResponse && deliveredCompatibilityResponse.update_required !== true) {
|
|
2867
|
-
|
|
2867
|
+
_chunkJ55AD562js.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
|
|
2868
2868
|
quietAdvisory: wantsJson || maintenancePolicy === "off" || _optionalChain([deliveredCompatibilityResponse, 'access', _40 => _40.auto_update, 'optionalAccess', _41 => _41.should_auto_update]) === true
|
|
2869
2869
|
});
|
|
2870
2870
|
}
|
|
@@ -17,7 +17,7 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
17
17
|
var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkZCPJ3L43js = require('./chunk-ZCPJ3L43.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 = _chunkZCPJ3L43js.SDK_RELEASE.version;
|
|
653
|
+
var SDK_API_MAJOR = _chunkZCPJ3L43js.SDK_RELEASE.contracts.api.currentMajor;
|
|
654
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkZCPJ3L43js.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
655
655
|
|
|
656
656
|
// src/agent-runtime.ts
|
|
657
657
|
|
|
@@ -28,7 +28,7 @@ var _chunkKXMNM4AQjs = require('./chunk-KXMNM4AQ.js');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkNQAWJ65Ejs = require('./chunk-NQAWJ65E.js');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
var _chunkNPBJI7REjs = require('./chunk-NPBJI7RE.js');
|
|
@@ -647,7 +647,7 @@ var ToolCalls = class {
|
|
|
647
647
|
idempotencyKey,
|
|
648
648
|
onResponse: (response2) => {
|
|
649
649
|
lastResponse = null;
|
|
650
|
-
atomicToolsSupported = response2.headers.get(
|
|
650
|
+
atomicToolsSupported = response2.headers.get(_chunkNQAWJ65Ejs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
651
651
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
652
652
|
if (_optionalChain([options, 'optionalAccess', _29 => _29.onServerTiming])) {
|
|
653
653
|
try {
|
|
@@ -997,8 +997,8 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
997
997
|
}
|
|
998
998
|
const receivers = _optionalChain([env, 'access', _51 => _51.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _52 => _52.trim, 'call', _53 => _53()]);
|
|
999
999
|
return {
|
|
1000
|
-
[
|
|
1001
|
-
...receivers ? { [
|
|
1000
|
+
[_chunkNQAWJ65Ejs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1001
|
+
...receivers ? { [_chunkNQAWJ65Ejs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1002
1002
|
};
|
|
1003
1003
|
}
|
|
1004
1004
|
function normalizeTestPolicyOverrides(value, source) {
|
|
@@ -1069,7 +1069,7 @@ var PlayClient = class {
|
|
|
1069
1069
|
return _chunk2H4EY7KHjs.startPlayRun.call(void 0,
|
|
1070
1070
|
this.http,
|
|
1071
1071
|
resolved.request,
|
|
1072
|
-
_optionalChain([options, 'optionalAccess', _61 => _61.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1072
|
+
_optionalChain([options, 'optionalAccess', _61 => _61.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkNQAWJ65Ejs.SDK_API_MAJOR) } : headers,
|
|
1073
1073
|
options
|
|
1074
1074
|
);
|
|
1075
1075
|
}
|
|
@@ -1135,9 +1135,9 @@ var PlayClient = class {
|
|
|
1135
1135
|
}
|
|
1136
1136
|
};
|
|
1137
1137
|
function createPlayClient(options) {
|
|
1138
|
-
const config =
|
|
1138
|
+
const config = _chunkNQAWJ65Ejs.resolveConfig.call(void 0, options);
|
|
1139
1139
|
return new PlayClient(
|
|
1140
|
-
new (0,
|
|
1140
|
+
new (0, _chunkNQAWJ65Ejs.HttpClient)(config),
|
|
1141
1141
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
1142
1142
|
);
|
|
1143
1143
|
}
|
|
@@ -3151,7 +3151,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3151
3151
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3152
3152
|
);
|
|
3153
3153
|
}
|
|
3154
|
-
return { [
|
|
3154
|
+
return { [_chunkNQAWJ65Ejs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3155
3155
|
}
|
|
3156
3156
|
function sleep(ms) {
|
|
3157
3157
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -3389,9 +3389,9 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3389
3389
|
* @throws {@link ConfigError} if no API key can be resolved from any source.
|
|
3390
3390
|
*/
|
|
3391
3391
|
constructor(options) {
|
|
3392
|
-
this.config =
|
|
3392
|
+
this.config = _chunkNQAWJ65Ejs.resolveConfig.call(void 0, options);
|
|
3393
3393
|
this.environment = _nullishCoalesce(this.config.environment, () => ( process.env));
|
|
3394
|
-
this.http = new (0,
|
|
3394
|
+
this.http = new (0, _chunkNQAWJ65Ejs.HttpClient)(this.config);
|
|
3395
3395
|
this.playClient = new PlayClient(this.http, this.environment);
|
|
3396
3396
|
this.toolCalls = new ToolCalls(
|
|
3397
3397
|
this.http,
|