deepline 0.3.328 → 0.3.330
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/billing-idempotency.ts +24 -0
- package/dist/bundling-sources/sdk/src/client.ts +22 -22
- package/dist/bundling-sources/sdk/src/index.ts +1 -0
- package/dist/bundling-sources/sdk/src/play.ts +55 -45
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +16 -0
- package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
- package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +31 -15
- package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-semantics.ts +22 -4
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +29 -11
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +145 -19
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +37 -10
- package/dist/bundling-sources/shared_libs/plays/dataset.ts +3 -0
- package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +59 -10
- package/dist/cli/{auth-ANHHABWT.mjs → auth-A4XQ3KMW.mjs} +4 -4
- package/dist/cli/auth-XJJYQESF.js +31 -0
- package/dist/cli/{billing-R6NYYO6G.mjs → billing-634WZLKG.mjs} +36 -14
- package/dist/cli/{billing-GGVKLFE6.js → billing-WLHXYC5Z.js} +101 -79
- package/dist/cli/{chunk-ZND34HL7.mjs → chunk-3QZ22IZO.mjs} +4 -4
- package/dist/cli/{chunk-UDIPEHNJ.js → chunk-46IVSO6O.js} +141 -11
- package/dist/cli/{chunk-GZV5F6CL.mjs → chunk-56RM5AQF.mjs} +79 -26
- package/dist/cli/{chunk-UM4ZE3P7.mjs → chunk-5W636CDP.mjs} +2 -2
- package/dist/cli/{chunk-W6WV6UME.js → chunk-63W4744F.js} +563 -555
- package/dist/cli/{chunk-OOLIEDIJ.mjs → chunk-6VBXS43D.mjs} +2 -2
- package/dist/cli/{chunk-B2R66UTW.mjs → chunk-7DGZCMXQ.mjs} +1 -1
- package/dist/cli/{chunk-7DDNACAQ.js → chunk-7FWHOKNS.js} +26 -26
- package/dist/cli/{chunk-YIY74KUF.mjs → chunk-EV4QJE4J.mjs} +1 -1
- package/dist/cli/{chunk-2HKPAZVJ.js → chunk-FKKNYKDY.js} +14 -3
- package/dist/cli/{chunk-DNYRAZSK.js → chunk-FLIABSY6.js} +48 -48
- package/dist/cli/{chunk-O5GPNPOC.js → chunk-GHHLLEZK.js} +4 -4
- package/dist/cli/{chunk-ZFKUVDOM.js → chunk-GKZZ32EV.js} +60 -60
- package/dist/cli/{chunk-LJWC5HSO.js → chunk-GS7GA7PI.js} +15 -15
- package/dist/cli/{chunk-7R6KQSFA.mjs → chunk-GTBS6LQH.mjs} +38 -22
- package/dist/cli/{chunk-2FPVWL4W.js → chunk-LNDGT7NV.js} +119 -66
- package/dist/cli/{chunk-SMGNDW7O.mjs → chunk-LQ5DD2UF.mjs} +2 -2
- package/dist/cli/{chunk-WWVE4HFN.mjs → chunk-MBI3BVSQ.mjs} +1 -1
- package/dist/cli/{chunk-KP7W5NO6.mjs → chunk-NTVTZAVZ.mjs} +13 -2
- package/dist/cli/{chunk-XVKQ6D4K.js → chunk-O2L46S3I.js} +2 -2
- package/dist/cli/{chunk-BC7FMQ2G.mjs → chunk-PH2N6GC7.mjs} +1 -1
- package/dist/cli/{chunk-6ENR652E.mjs → chunk-SDSS4OTO.mjs} +77 -69
- package/dist/cli/{chunk-YFCHBN3C.mjs → chunk-SZCUJ4AL.mjs} +1 -1
- package/dist/cli/{chunk-AGH6YP2T.js → chunk-UQV5M6HN.js} +3 -3
- package/dist/cli/{chunk-7MABE3ZK.mjs → chunk-VFC6CZLF.mjs} +135 -5
- package/dist/cli/{chunk-DNMV2L7Q.js → chunk-WHKTRZ3J.js} +6 -6
- package/dist/cli/{chunk-Y4LXIUHX.js → chunk-XUNMVZOW.js} +1 -1
- package/dist/cli/{chunk-LEEXRXQQ.js → chunk-YFP4UH2Y.js} +6 -6
- package/dist/cli/{chunk-ITFUZEHE.js → chunk-YGFQ7YSM.js} +51 -35
- package/dist/cli/{chunk-AKKQ26RX.mjs → chunk-ZYPFCBW5.mjs} +1 -1
- package/dist/cli/client-3CREIHGC.js +20 -0
- package/dist/cli/{client-ZABA5NMD.mjs → client-WYFGEJOX.mjs} +3 -3
- package/dist/cli/{csv-VECE3PWX.mjs → csv-BDZSDXLU.mjs} +3 -3
- package/dist/cli/{csv-4ZK5ZJAJ.js → csv-THMQDXCJ.js} +12 -12
- package/dist/cli/{db-UJPCDBV7.js → db-5BQJOZG7.js} +29 -29
- package/dist/cli/{db-6VE4OEWW.mjs → db-R2LTNLFM.mjs} +4 -4
- package/dist/cli/{describe-CFUZZ326.js → describe-F4G5H3SC.js} +17 -17
- package/dist/cli/{describe-W6X5G4JR.mjs → describe-WECII7FS.mjs} +10 -10
- package/dist/cli/{executions-AI4DTQQL.js → executions-HJRVD4M6.js} +6 -6
- package/dist/cli/{executions-ZZWB75DF.mjs → executions-HPRIRB73.mjs} +4 -4
- package/dist/cli/{feedback-IM5Z6T5K.mjs → feedback-5VVW5WW7.mjs} +3 -3
- package/dist/cli/{feedback-FYSNSYUU.js → feedback-GHGDH43D.js} +6 -6
- package/dist/cli/{git-YNYTK3YW.mjs → git-BBXML2UJ.mjs} +4 -4
- package/dist/cli/git-NNEBLRVP.js +23 -0
- package/dist/cli/index.js +79 -79
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-4DTMYYUY.mjs → legacy-noops-IALOUAGL.mjs} +4 -4
- package/dist/cli/{legacy-noops-PHJE2XFK.js → legacy-noops-VNZZ3VVT.js} +7 -7
- package/dist/cli/{monitors-27JP76WE.js → monitors-MLP6IA2R.js} +85 -85
- package/dist/cli/{monitors-HUP4MVWJ.mjs → monitors-VDEB2FKS.mjs} +4 -4
- package/dist/cli/{org-RHVDMUKN.js → org-N6ADDGEV.js} +60 -60
- package/dist/cli/{org-L3B2RR4U.mjs → org-SDSSKY42.mjs} +4 -4
- package/dist/cli/play-UTIPBVDQ.js +153 -0
- package/dist/cli/{play-UXIJVYNF.mjs → play-VSTVY6PM.mjs} +9 -9
- package/dist/cli/{providers-VL6VY56M.js → providers-TJ42O6NN.js} +7 -7
- package/dist/cli/{providers-FABWTNKR.mjs → providers-UKC7KD3W.mjs} +4 -4
- package/dist/cli/{quickstart-IIPZ6DSY.js → quickstart-7S7NMCMX.js} +5 -5
- package/dist/cli/{quickstart-OA54A4IE.mjs → quickstart-WSKATNHJ.mjs} +3 -3
- package/dist/cli/{search-YDK4V2EW.mjs → search-6OS6VVCJ.mjs} +5 -5
- package/dist/cli/search-Y6UGKL5C.js +26 -0
- package/dist/cli/{secrets-JGU7ZRUW.js → secrets-GWLYB2KD.js} +13 -13
- package/dist/cli/{secrets-4MQF6RF6.mjs → secrets-QTTR5R5M.mjs} +4 -4
- package/dist/cli/{sessions-PTHOMSZ5.mjs → sessions-Q7MY5YYI.mjs} +4 -4
- package/dist/cli/{sessions-I7ZZYSYW.js → sessions-SUURWTVX.js} +5 -5
- package/dist/cli/{settings-X4ENSGNK.mjs → settings-3D5YDD2B.mjs} +7 -7
- package/dist/cli/{settings-ZUUBKIG6.js → settings-W4DYMYFA.js} +74 -74
- package/dist/cli/{setup-4UM6FCZL.mjs → setup-5F5OGYKW.mjs} +6 -6
- package/dist/cli/{setup-6L576TQE.js → setup-NIUADTDP.js} +41 -41
- package/dist/cli/skills-SHUL5UT7.js +28 -0
- package/dist/cli/{skills-U3BS5KUI.mjs → skills-TV3ORUIG.mjs} +4 -4
- package/dist/cli/tools-GNIVV4OF.js +40 -0
- package/dist/cli/{tools-O4PX6UVB.mjs → tools-YSZWAFKO.mjs} +7 -6
- package/dist/cli/{update-OHWSK2WN.mjs → update-FJAMLGLT.mjs} +6 -6
- package/dist/cli/update-U3XGY6IT.js +28 -0
- package/dist/cli/{workflow-QWTZBLT3.js → workflow-C6ZCM5S4.js} +15 -15
- package/dist/cli/{workflow-RVMGBMLX.mjs → workflow-HDHBYC7S.mjs} +5 -5
- package/dist/{client-wiWPZhnI.d.mts → client-D5XOQKsA.d.mts} +20 -1
- package/dist/{client-DHq8dJ56.d.ts → client-l-IoLh8Z.d.ts} +20 -1
- package/dist/{compiler-manifest-9TkZ_ykI.d.mts → compiler-manifest-82q4jtfQ.d.mts} +44 -17
- package/dist/{compiler-manifest-9TkZ_ykI.d.ts → compiler-manifest-82q4jtfQ.d.ts} +44 -17
- package/dist/{index-B-5_Xhud.d.mts → index-BPbW2XHF.d.mts} +1 -1
- package/dist/{index-ykksoEyR.d.ts → index-k0rquHIm.d.ts} +1 -1
- package/dist/index.d.mts +14 -8
- package/dist/index.d.ts +14 -8
- package/dist/index.js +194 -69
- package/dist/index.mjs +162 -37
- package/dist/install-integrity.json +85 -84
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +2 -1
- package/dist/cli/auth-EKRB4GMP.js +0 -31
- package/dist/cli/client-55BDB4LE.js +0 -20
- package/dist/cli/git-VWXH6LCP.js +0 -23
- package/dist/cli/play-UKH4VFPF.js +0 -153
- package/dist/cli/search-JD2VTR4A.js +0 -26
- package/dist/cli/skills-TLPNCERR.js +0 -28
- package/dist/cli/tools-26JTFFU4.js +0 -39
- package/dist/cli/update-35RRCU2G.js +0 -28
|
@@ -10,7 +10,7 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk46IVSO6Ojs = require('./chunk-46IVSO6O.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 _chunkYGFQ7YSMjs = require('./chunk-YGFQ7YSM.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
@@ -36,11 +36,14 @@ var _chunkQJBJZVG6js = require('./chunk-QJBJZVG6.js');
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunkWHKTRZ3Jjs = require('./chunk-WHKTRZ3J.js');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunkGHHLLEZKjs = require('./chunk-GHHLLEZK.js');
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
var _chunkFKKNYKDYjs = require('./chunk-FKKNYKDY.js');
|
|
44
47
|
|
|
45
48
|
|
|
46
49
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -85,10 +88,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
|
|
|
85
88
|
}
|
|
86
89
|
};
|
|
87
90
|
function pendingToolExecutionPath(input) {
|
|
88
|
-
const config =
|
|
91
|
+
const config = _chunkGHHLLEZKjs.resolveConfig.call(void 0, );
|
|
89
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");
|
|
90
93
|
return _path.join.call(void 0,
|
|
91
|
-
|
|
94
|
+
_chunkGHHLLEZKjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
|
|
92
95
|
`pending-tool-execution-${fingerprint}.json`
|
|
93
96
|
);
|
|
94
97
|
}
|
|
@@ -302,7 +305,19 @@ var CapabilityDescription = class _CapabilityDescription {
|
|
|
302
305
|
billingSource,
|
|
303
306
|
billingSourceLabel,
|
|
304
307
|
deeplineCreditsPerPricingUnit: isFree ? 0 : canonicalCredits,
|
|
305
|
-
deeplineUsdPerPricingUnit: isFree ? 0 : canonicalUsd
|
|
308
|
+
deeplineUsdPerPricingUnit: isFree ? 0 : canonicalUsd,
|
|
309
|
+
...pricing.estimatedRange && !isFree && billingSource !== "own_provider_credentials" ? {
|
|
310
|
+
estimatedRange: pricing.estimatedRange,
|
|
311
|
+
details: Array.isArray(pricing.details) ? pricing.details.filter(
|
|
312
|
+
(value) => typeof value === "string"
|
|
313
|
+
) : []
|
|
314
|
+
} : {},
|
|
315
|
+
...pricing.observedReference && !isFree && billingSource !== "own_provider_credentials" ? {
|
|
316
|
+
observedReference: pricing.observedReference,
|
|
317
|
+
details: Array.isArray(pricing.details) ? pricing.details.filter(
|
|
318
|
+
(value) => typeof value === "string"
|
|
319
|
+
) : []
|
|
320
|
+
} : {}
|
|
306
321
|
};
|
|
307
322
|
}
|
|
308
323
|
};
|
|
@@ -520,12 +535,12 @@ function categoryEnumerationRender(summaries) {
|
|
|
520
535
|
};
|
|
521
536
|
}
|
|
522
537
|
async function listToolCategories(emitJson, compact) {
|
|
523
|
-
const client = new (0,
|
|
538
|
+
const client = new (0, _chunkYGFQ7YSMjs.DeeplineClient)();
|
|
524
539
|
const rawTools = await client.listTools({ compact });
|
|
525
540
|
const items = rawTools.map(toListedTool);
|
|
526
541
|
const summaries = aggregateCategorySummaries(rawTools);
|
|
527
542
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
528
|
-
|
|
543
|
+
_chunkWHKTRZ3Jjs.printCommandEnvelope.call(void 0,
|
|
529
544
|
{
|
|
530
545
|
tools: outputItems,
|
|
531
546
|
count: outputItems.length,
|
|
@@ -544,7 +559,7 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
544
559
|
const known = summaries.map((item) => item.name);
|
|
545
560
|
const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
|
|
546
561
|
if (emitJson) {
|
|
547
|
-
|
|
562
|
+
_chunkWHKTRZ3Jjs.printJson.call(void 0, {
|
|
548
563
|
ok: false,
|
|
549
564
|
exitCode: 4,
|
|
550
565
|
code: "TOOL_CATEGORY_NOT_FOUND",
|
|
@@ -558,13 +573,13 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
558
573
|
const render = categoryEnumerationRender(summaries);
|
|
559
574
|
console.error(message);
|
|
560
575
|
console.error("");
|
|
561
|
-
console.error(
|
|
576
|
+
console.error(_chunkWHKTRZ3Jjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
|
|
562
577
|
console.error("");
|
|
563
578
|
console.error(`Valid categories: ${known.join(", ")}`);
|
|
564
579
|
return 4;
|
|
565
580
|
}
|
|
566
581
|
async function listToolsInCategory(category, emitJson) {
|
|
567
|
-
const client = new (0,
|
|
582
|
+
const client = new (0, _chunkYGFQ7YSMjs.DeeplineClient)();
|
|
568
583
|
const rawTools = await client.listTools({
|
|
569
584
|
categories: category,
|
|
570
585
|
compact: false
|
|
@@ -601,7 +616,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
601
616
|
}
|
|
602
617
|
]
|
|
603
618
|
};
|
|
604
|
-
|
|
619
|
+
_chunkWHKTRZ3Jjs.printCommandEnvelope.call(void 0,
|
|
605
620
|
{
|
|
606
621
|
category,
|
|
607
622
|
total: rows.length,
|
|
@@ -614,7 +629,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
614
629
|
return 0;
|
|
615
630
|
}
|
|
616
631
|
async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
|
|
617
|
-
const client = new (0,
|
|
632
|
+
const client = new (0, _chunkYGFQ7YSMjs.DeeplineClient)();
|
|
618
633
|
const items = (await client.listTools({
|
|
619
634
|
categories: requestedCategories.join(","),
|
|
620
635
|
compact
|
|
@@ -643,7 +658,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
|
|
|
643
658
|
]
|
|
644
659
|
};
|
|
645
660
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
646
|
-
|
|
661
|
+
_chunkWHKTRZ3Jjs.printCommandEnvelope.call(void 0,
|
|
647
662
|
{
|
|
648
663
|
tools: outputItems,
|
|
649
664
|
count: outputItems.length,
|
|
@@ -662,13 +677,13 @@ async function listTools(category, options = {}) {
|
|
|
662
677
|
const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]), () => ( ""));
|
|
663
678
|
const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
|
|
664
679
|
const compact = options.compact !== false;
|
|
665
|
-
const emitJson = options.json === true ||
|
|
680
|
+
const emitJson = options.json === true || _chunkWHKTRZ3Jjs.shouldEmitJson.call(void 0, );
|
|
666
681
|
if (positional && flagCategories.length > 0) {
|
|
667
682
|
const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
|
|
668
683
|
if (!flagIsSameSingle) {
|
|
669
684
|
const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
|
|
670
685
|
if (emitJson) {
|
|
671
|
-
|
|
686
|
+
_chunkWHKTRZ3Jjs.printJson.call(void 0, {
|
|
672
687
|
ok: false,
|
|
673
688
|
exitCode: 2,
|
|
674
689
|
code: "TOOL_LIST_CATEGORY_CONFLICT",
|
|
@@ -695,7 +710,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
695
710
|
console.error("Usage: deepline tools grep <query> [--json]");
|
|
696
711
|
return 1;
|
|
697
712
|
}
|
|
698
|
-
const client = new (0,
|
|
713
|
+
const client = new (0, _chunkYGFQ7YSMjs.DeeplineClient)();
|
|
699
714
|
const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
|
|
700
715
|
const mode = _nullishCoalesce(options.mode, () => ( "all"));
|
|
701
716
|
const jsonOutput = options.json === true;
|
|
@@ -738,7 +753,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
738
753
|
query,
|
|
739
754
|
mode
|
|
740
755
|
}) : null;
|
|
741
|
-
|
|
756
|
+
_chunkWHKTRZ3Jjs.printCommandEnvelope.call(void 0,
|
|
742
757
|
{
|
|
743
758
|
tools: outputTools,
|
|
744
759
|
count: outputTools.length,
|
|
@@ -756,7 +771,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
756
771
|
} : {},
|
|
757
772
|
commandTemplates: TOOL_COMMAND_TEMPLATES
|
|
758
773
|
},
|
|
759
|
-
{ json: options.json ||
|
|
774
|
+
{ json: options.json || _chunkWHKTRZ3Jjs.shouldEmitJson.call(void 0, ) }
|
|
760
775
|
);
|
|
761
776
|
return 0;
|
|
762
777
|
}
|
|
@@ -912,7 +927,7 @@ Examples:
|
|
|
912
927
|
json: Boolean(options.json)
|
|
913
928
|
});
|
|
914
929
|
});
|
|
915
|
-
|
|
930
|
+
_chunk46IVSO6Ojs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
|
|
916
931
|
tools.command("grep <query>").description(
|
|
917
932
|
"Literal grep over tool ids, descriptions, categories, and input fields."
|
|
918
933
|
).addHelpText(
|
|
@@ -959,6 +974,7 @@ Notes:
|
|
|
959
974
|
preserve the nesting shown in the tool's example. Schemas and examples are
|
|
960
975
|
separate describe fields.
|
|
961
976
|
get is accepted as a compatibility alias for describe.
|
|
977
|
+
Text by default, including when piped; pass --json for structured output.
|
|
962
978
|
|
|
963
979
|
Examples:
|
|
964
980
|
deepline tools describe hunter_email_verifier
|
|
@@ -971,7 +987,7 @@ Examples:
|
|
|
971
987
|
deepline tools describe ai_evaluate --estimate-payload @payload.json --json
|
|
972
988
|
deepline tools execute hunter_email_verifier --input '{"email":"a@b.com"}'
|
|
973
989
|
`
|
|
974
|
-
).option("--json", "Emit JSON output
|
|
990
|
+
).option("--json", "Emit JSON output").option(
|
|
975
991
|
"--model <model>",
|
|
976
992
|
"For language tools, include AI Gateway metadata; for ai_evaluate, set the quote payload model"
|
|
977
993
|
).option(
|
|
@@ -1013,7 +1029,7 @@ Examples:
|
|
|
1013
1029
|
process.exitCode = await narrowView();
|
|
1014
1030
|
return;
|
|
1015
1031
|
}
|
|
1016
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
1032
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-F4G5H3SC.js")));
|
|
1017
1033
|
process.exitCode = await describeAnything(
|
|
1018
1034
|
toolId,
|
|
1019
1035
|
{ ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
|
|
@@ -1095,7 +1111,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1095
1111
|
console.error("Usage: deepline tools describe <toolId> [--json]");
|
|
1096
1112
|
return 1;
|
|
1097
1113
|
}
|
|
1098
|
-
const client = new (0,
|
|
1114
|
+
const client = new (0, _chunkYGFQ7YSMjs.DeeplineClient)();
|
|
1099
1115
|
let tool;
|
|
1100
1116
|
try {
|
|
1101
1117
|
tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
|
|
@@ -1149,7 +1165,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1149
1165
|
const lines = toolPricingOnlyLines(tool, toolId);
|
|
1150
1166
|
if (inferenceQuote)
|
|
1151
1167
|
lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
|
|
1152
|
-
|
|
1168
|
+
_chunkWHKTRZ3Jjs.printCommandEnvelope.call(void 0,
|
|
1153
1169
|
{
|
|
1154
1170
|
toolId: String(tool.toolId || toolId),
|
|
1155
1171
|
cost: Capability.fromCatalogEntry(tool).describe().customerCost(),
|
|
@@ -1167,7 +1183,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1167
1183
|
}
|
|
1168
1184
|
if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !isMonitorTypeTool(tool) && !isPlayLikeTool(tool) && (options.json || options.contractJson)) {
|
|
1169
1185
|
const contract = toolContractJsonForDescribe(tool, toolId);
|
|
1170
|
-
|
|
1186
|
+
_chunkWHKTRZ3Jjs.printCompactJson.call(void 0, {
|
|
1171
1187
|
toolId: contract.toolId,
|
|
1172
1188
|
...options.schemaOnly ? {
|
|
1173
1189
|
inputSchema: contract.inputSchema,
|
|
@@ -1190,7 +1206,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1190
1206
|
return 0;
|
|
1191
1207
|
}
|
|
1192
1208
|
if (options.contractJson) {
|
|
1193
|
-
|
|
1209
|
+
_chunkWHKTRZ3Jjs.printCompactJson.call(void 0, {
|
|
1194
1210
|
...toolContractJsonForDescribe(tool, toolId),
|
|
1195
1211
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1196
1212
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -1199,7 +1215,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1199
1215
|
}
|
|
1200
1216
|
const emitJson = options.json === true;
|
|
1201
1217
|
if (emitJson) {
|
|
1202
|
-
|
|
1218
|
+
_chunkWHKTRZ3Jjs.printCompactJson.call(void 0, {
|
|
1203
1219
|
...toolMetadataJsonForDescribe(tool, toolId),
|
|
1204
1220
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1205
1221
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -1230,14 +1246,6 @@ ${formatModelDescription(modelDescription)}`);
|
|
|
1230
1246
|
if (inferenceQuote) printInferenceQuoteSummary(inferenceQuote);
|
|
1231
1247
|
return 0;
|
|
1232
1248
|
}
|
|
1233
|
-
if (_chunkDNMV2L7Qjs.shouldEmitJson.call(void 0, )) {
|
|
1234
|
-
_chunkDNMV2L7Qjs.printCompactJson.call(void 0, {
|
|
1235
|
-
...toolContractJsonForDescribe(tool, toolId),
|
|
1236
|
-
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1237
|
-
...inferenceQuote ? { inferenceQuote } : {}
|
|
1238
|
-
});
|
|
1239
|
-
return 0;
|
|
1240
|
-
}
|
|
1241
1249
|
printCompactToolContract(tool, toolId);
|
|
1242
1250
|
if (modelDescription) {
|
|
1243
1251
|
process.stdout.write(`
|
|
@@ -1257,7 +1265,7 @@ function inferenceQuoteSummaryLines(_quote) {
|
|
|
1257
1265
|
function printInferenceQuoteSummary(quote) {
|
|
1258
1266
|
for (const line of inferenceQuoteSummaryLines(quote)) console.log(line);
|
|
1259
1267
|
}
|
|
1260
|
-
function toolContractJsonForDescribe(tool, requestedToolId) {
|
|
1268
|
+
function toolContractJsonForDescribe(tool, requestedToolId, authoringContractEdition) {
|
|
1261
1269
|
const toolId = String(tool.toolId || requestedToolId);
|
|
1262
1270
|
const inputFields = toolInputFieldsForDisplay(
|
|
1263
1271
|
recordField(tool, "inputSchema", "input_schema")
|
|
@@ -1276,7 +1284,11 @@ function toolContractJsonForDescribe(tool, requestedToolId) {
|
|
|
1276
1284
|
);
|
|
1277
1285
|
const extractedLists = extractionContractEntries(
|
|
1278
1286
|
arrayField2(toolExecutionResult, "extractedLists", "extracted_lists")
|
|
1279
|
-
)
|
|
1287
|
+
).map((entry) => ({
|
|
1288
|
+
...entry,
|
|
1289
|
+
returnType: _chunkFKKNYKDYjs.playToolListGetterMode.call(void 0, authoringContractEdition) === "array" ? "Array" : "PlayDataset",
|
|
1290
|
+
rowsExpression: _chunkFKKNYKDYjs.playToolListGetterMode.call(void 0, authoringContractEdition) === "array" ? entry.expression : `await ${entry.expression}.materialize()`
|
|
1291
|
+
}));
|
|
1280
1292
|
const extractedValues = extractionContractEntries(
|
|
1281
1293
|
arrayField2(toolExecutionResult, "extractedValues", "extracted_values")
|
|
1282
1294
|
);
|
|
@@ -1685,7 +1697,7 @@ function printCompactToolContract(tool, requestedToolId) {
|
|
|
1685
1697
|
if (listGetters.length || valueGetters.length) {
|
|
1686
1698
|
console.log("");
|
|
1687
1699
|
console.log("Getters:");
|
|
1688
|
-
if (listGetters.length) console.log(
|
|
1700
|
+
if (listGetters.length) console.log(listGetterHeading());
|
|
1689
1701
|
for (const entry of listGetters) {
|
|
1690
1702
|
if (isRecord(entry))
|
|
1691
1703
|
console.log(
|
|
@@ -1723,6 +1735,10 @@ function toolPricingOnlyLines(tool, requestedToolId, options = {}) {
|
|
|
1723
1735
|
const price = displayText || summary || (credits !== null ? `${formatDecimal(credits)} Deepline credits${usd !== null ? ` / ${formatUsd(usd)}` : ""} per ${unit}` : "pricing unavailable");
|
|
1724
1736
|
return [
|
|
1725
1737
|
`${_nullishCoalesce(options.heading, () => ( `Pricing: ${toolId}`))}: ${price}`,
|
|
1738
|
+
...cost.observedReference || cost.estimatedRange ? [
|
|
1739
|
+
...summary ? [` ${summary}`] : [],
|
|
1740
|
+
...(_nullishCoalesce(cost.details, () => ( []))).map((detail) => ` ${detail}`)
|
|
1741
|
+
] : [],
|
|
1726
1742
|
`Billing: ${billing}`
|
|
1727
1743
|
];
|
|
1728
1744
|
}
|
|
@@ -1807,7 +1823,7 @@ function printToolExamplesOnly(tool, requestedToolId) {
|
|
|
1807
1823
|
const getters = isRecord(contract.getters) ? contract.getters : {};
|
|
1808
1824
|
const valueGetters = Array.isArray(getters.extractedValues) ? getters.extractedValues : [];
|
|
1809
1825
|
const listGetters = Array.isArray(getters.extractedLists) ? getters.extractedLists : [];
|
|
1810
|
-
const firstGetter =
|
|
1826
|
+
const firstGetter = valueGetters.find(isRecord);
|
|
1811
1827
|
if (firstGetter) {
|
|
1812
1828
|
const name = stringField2(firstGetter, "name") || "value";
|
|
1813
1829
|
const expression = stringField2(firstGetter, "expression");
|
|
@@ -1816,7 +1832,28 @@ function printToolExamplesOnly(tool, requestedToolId) {
|
|
|
1816
1832
|
`const ${safeIdentifier(name)} = ${expression.replace(/^toolExecutionResult\./, "result.")};`
|
|
1817
1833
|
);
|
|
1818
1834
|
}
|
|
1835
|
+
const arrayNames = new Set(
|
|
1836
|
+
recursiveToolInputFieldsForDisplay(
|
|
1837
|
+
recordField(tool, "outputSchema", "output_schema")
|
|
1838
|
+
).filter((field) => String(field.type).split("|").includes("array")).map((field) => String(field.name).split(".").at(-1))
|
|
1839
|
+
);
|
|
1840
|
+
const firstList = _nullishCoalesce(listGetters.find(
|
|
1841
|
+
(entry) => isRecord(entry) && arrayNames.has(stringField2(entry, "name"))
|
|
1842
|
+
), () => ( listGetters.find(isRecord)));
|
|
1843
|
+
if (isRecord(firstList)) {
|
|
1844
|
+
const name = safeIdentifier(stringField2(firstList, "name") || "list");
|
|
1845
|
+
if (_chunkFKKNYKDYjs.playToolListGetterMode.call(void 0, ) === "array") {
|
|
1846
|
+
console.log(`const ${name}_rows = ${playResultExpression(firstList)};`);
|
|
1847
|
+
} else {
|
|
1848
|
+
console.log(`const ${name}_ds = ${playResultExpression(firstList)};`);
|
|
1849
|
+
console.log(
|
|
1850
|
+
"// Complete small list from this response; throws above the memory cap."
|
|
1851
|
+
);
|
|
1852
|
+
console.log(`const ${name}_rows = await ${name}_ds.materialize();`);
|
|
1853
|
+
}
|
|
1854
|
+
}
|
|
1819
1855
|
console.log("```");
|
|
1856
|
+
if (firstList) printListGetterConsumption();
|
|
1820
1857
|
for (const example of examples) {
|
|
1821
1858
|
const description = stringField2(example, "description");
|
|
1822
1859
|
if (description) console.log(description);
|
|
@@ -1863,13 +1900,14 @@ function printToolGettersOnly(tool, requestedToolId) {
|
|
|
1863
1900
|
return;
|
|
1864
1901
|
}
|
|
1865
1902
|
if (listGetters.length) {
|
|
1866
|
-
console.log(
|
|
1903
|
+
console.log(listGetterHeading());
|
|
1867
1904
|
for (const entry of listGetters) {
|
|
1868
1905
|
if (isRecord(entry))
|
|
1869
1906
|
console.log(
|
|
1870
1907
|
`- ${stringField2(entry, "name")}: ${playResultExpression(entry)}`
|
|
1871
1908
|
);
|
|
1872
1909
|
}
|
|
1910
|
+
printListGetterConsumption();
|
|
1873
1911
|
}
|
|
1874
1912
|
if (valueGetters.length) {
|
|
1875
1913
|
console.log("Values:");
|
|
@@ -1881,6 +1919,20 @@ function printToolGettersOnly(tool, requestedToolId) {
|
|
|
1881
1919
|
}
|
|
1882
1920
|
}
|
|
1883
1921
|
}
|
|
1922
|
+
function printListGetterConsumption() {
|
|
1923
|
+
if (_chunkFKKNYKDYjs.playToolListGetterMode.call(void 0, ) === "array") {
|
|
1924
|
+
console.log(
|
|
1925
|
+
"Use the ordinary array directly, or pass it to ctx.dataset to persist row work. No provider pagination is fetched. Lazy or incomplete lists throw; use readList for an explicit dataset read. A missing getter is not an empty list."
|
|
1926
|
+
);
|
|
1927
|
+
return;
|
|
1928
|
+
}
|
|
1929
|
+
console.log(
|
|
1930
|
+
"Pass the handle to ctx.dataset, use first() for one row, or for await...of to stream rows. materialize() loads the complete current list within the memory cap; materialize(n) and peek(n) return only a prefix. None fetch additional provider pagination. A missing getter is not an empty list."
|
|
1931
|
+
);
|
|
1932
|
+
}
|
|
1933
|
+
function listGetterHeading() {
|
|
1934
|
+
return _chunkFKKNYKDYjs.playToolListGetterMode.call(void 0, ) === "array" ? "Lists (ordinary JavaScript arrays):" : "Lists (PlayDataset, not a JavaScript array):";
|
|
1935
|
+
}
|
|
1884
1936
|
function sampleValueForField(field) {
|
|
1885
1937
|
const name = stringField2(field, "name").toLowerCase();
|
|
1886
1938
|
const type = stringField2(field, "type").toLowerCase();
|
|
@@ -2010,15 +2062,16 @@ function usageGuidanceWithAccessDefaults(usageGuidance) {
|
|
|
2010
2062
|
},
|
|
2011
2063
|
access: {
|
|
2012
2064
|
...existingAccess,
|
|
2013
|
-
extractedLists: {
|
|
2014
|
-
expression: "toolExecutionResult.extractedLists.<name>.get()",
|
|
2015
|
-
meaning: "Declared Deepline list extractors only."
|
|
2016
|
-
},
|
|
2017
2065
|
extractedValues: {
|
|
2018
2066
|
expression: "toolExecutionResult.extractedValues.<name>.get()",
|
|
2019
2067
|
meaning: "Declared Deepline scalar or normalized object extractors only."
|
|
2020
2068
|
},
|
|
2021
2069
|
...existingAccess,
|
|
2070
|
+
extractedLists: {
|
|
2071
|
+
...recordField(existingAccess, "extractedLists"),
|
|
2072
|
+
expression: "toolExecutionResult.extractedLists.<name>.get()",
|
|
2073
|
+
meaning: _chunkFKKNYKDYjs.playToolListGetterMode.call(void 0, ) === "array" ? "Returns an ordinary array from this response. Use array methods directly or pass it to ctx.dataset to persist row work. Lazy or incomplete lists throw; use readList for an explicit dataset read. It does not fetch provider pages." : "Returns a PlayDataset, not a JavaScript array. Pass the handle to ctx.dataset, use first(), async iteration, or await handle.materialize() for the complete current list within the memory cap. materialize(n) and peek(n) return a prefix; none fetch additional provider pages. A missing getter is not an empty list."
|
|
2074
|
+
},
|
|
2022
2075
|
rawToolResponse: {
|
|
2023
2076
|
expression: "toolExecutionResult.toolResponse.rawV2",
|
|
2024
2077
|
meaning: "Complete tool response with its original nesting. Read tool-specific fields here; use declared getters for extracted values and lists."
|
|
@@ -2573,7 +2626,7 @@ function parseExecuteOptions(toolId, options, output) {
|
|
|
2573
2626
|
outputFormat = normalizeOutputFormat(options.outputFormat);
|
|
2574
2627
|
}
|
|
2575
2628
|
if (options.idempotencyKey !== void 0) {
|
|
2576
|
-
|
|
2629
|
+
_chunkYGFQ7YSMjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
|
|
2577
2630
|
}
|
|
2578
2631
|
if (options.recoveryTimeoutMs !== void 0) {
|
|
2579
2632
|
const parsed = Number(options.recoveryTimeoutMs);
|
|
@@ -2658,8 +2711,8 @@ export default definePlay(${JSON.stringify(playName)}, async (ctx) => {
|
|
|
2658
2711
|
const rows = list.get();
|
|
2659
2712
|
// ${sampleRows}
|
|
2660
2713
|
// columns: ${columns}
|
|
2661
|
-
// extractedLists.<name>.get() returns a dataset handle for row-shaped list outputs.
|
|
2662
|
-
// Pass it to ctx.dataset; use rows.peek/count/materialize only for deliberate bounded inspection.
|
|
2714
|
+
// ${_chunkFKKNYKDYjs.playToolListGetterMode.call(void 0, ) === "array" ? "extractedLists.<name>.get() returns an ordinary array from this response." : "extractedLists.<name>.get() returns a dataset handle for row-shaped list outputs."}
|
|
2715
|
+
// ${_chunkFKKNYKDYjs.playToolListGetterMode.call(void 0, ) === "array" ? "Use array methods directly; pass rows to ctx.dataset to persist row work." : "Pass it to ctx.dataset; use rows.peek/count/materialize only for deliberate bounded inspection."}
|
|
2663
2716
|
// .withColumn('email_waterfall', (row, rowCtx) => rowCtx.runPlay('name_domain_email', 'name-and-domain-to-email', { first_name: String(row.first_name ?? ''), last_name: String(row.last_name ?? ''), domain: String(row.domain ?? '') }, { description: 'Resolve email.' }))
|
|
2664
2717
|
// .withColumn('phone_waterfall', (row, rowCtx) => rowCtx.runPlay('contact_phone', 'contact-to-phone', { first_name: String(row.first_name ?? ''), last_name: String(row.last_name ?? ''), email: String(row.email ?? '') }, { description: 'Resolve phone.' }))
|
|
2665
2718
|
// ctx.dataset is idempotent for completed rows during same-run recovery. New runs follow each call's freshness.
|
|
@@ -2884,20 +2937,20 @@ function buildToolExecuteRowArtifactEnvelope(input) {
|
|
|
2884
2937
|
}
|
|
2885
2938
|
async function executeTool(toolId, options) {
|
|
2886
2939
|
const output = toolExecuteJsonOption(options.json);
|
|
2887
|
-
const wantsJson =
|
|
2940
|
+
const wantsJson = _chunkWHKTRZ3Jjs.shouldEmitJson.call(void 0, output.requested);
|
|
2888
2941
|
let parsed;
|
|
2889
2942
|
try {
|
|
2890
2943
|
parsed = parseExecuteOptions(toolId, options, output);
|
|
2891
2944
|
} catch (error) {
|
|
2892
2945
|
if (wantsJson) {
|
|
2893
|
-
|
|
2946
|
+
_chunkWHKTRZ3Jjs.printJsonError.call(void 0, error);
|
|
2894
2947
|
} else {
|
|
2895
2948
|
console.error(error instanceof Error ? error.message : String(error));
|
|
2896
2949
|
}
|
|
2897
2950
|
return error instanceof _chunk7P5AA3SNjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
|
|
2898
2951
|
}
|
|
2899
2952
|
const cliInvocationId = _nullishCoalesce(_chunkQJBJZVG6js.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkQJBJZVG6js.beginToolExecuteCommand.call(void 0, )));
|
|
2900
|
-
const client = new (0,
|
|
2953
|
+
const client = new (0, _chunkYGFQ7YSMjs.DeeplineClient)();
|
|
2901
2954
|
let metadata;
|
|
2902
2955
|
try {
|
|
2903
2956
|
metadata = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0,
|
|
@@ -2912,7 +2965,7 @@ async function executeTool(toolId, options) {
|
|
|
2912
2965
|
);
|
|
2913
2966
|
if (play) {
|
|
2914
2967
|
if (wantsJson) {
|
|
2915
|
-
|
|
2968
|
+
_chunkWHKTRZ3Jjs.printJsonError.call(void 0,
|
|
2916
2969
|
new Error(playAliasToolErrorMessage(parsed.toolId, play))
|
|
2917
2970
|
);
|
|
2918
2971
|
} else {
|
|
@@ -2925,7 +2978,7 @@ async function executeTool(toolId, options) {
|
|
|
2925
2978
|
}
|
|
2926
2979
|
if (isPlayLikeTool(metadata)) {
|
|
2927
2980
|
if (wantsJson) {
|
|
2928
|
-
|
|
2981
|
+
_chunkWHKTRZ3Jjs.printJsonError.call(void 0,
|
|
2929
2982
|
new Error(
|
|
2930
2983
|
playLikeToolExecuteErrorMessage(
|
|
2931
2984
|
parsed.toolId,
|
|
@@ -2961,7 +3014,7 @@ async function executeTool(toolId, options) {
|
|
|
2961
3014
|
responseIntent,
|
|
2962
3015
|
...idempotencyKey ? { idempotencyKey } : {},
|
|
2963
3016
|
...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
|
|
2964
|
-
searchRef:
|
|
3017
|
+
searchRef: _chunk46IVSO6Ojs.recentSearchRef.call(void 0, ),
|
|
2965
3018
|
cliInvocationId
|
|
2966
3019
|
}).catch((error) => {
|
|
2967
3020
|
const guidanceLines = toolGuidanceLines(metadata.guidance);
|
|
@@ -3000,8 +3053,8 @@ async function executeTool(toolId, options) {
|
|
|
3000
3053
|
);
|
|
3001
3054
|
const executeExitCode = toolExecuteExitCode(baseEnvelope);
|
|
3002
3055
|
const delivered = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0, "output delivery", () => {
|
|
3003
|
-
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" &&
|
|
3004
|
-
|
|
3056
|
+
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && _chunkWHKTRZ3Jjs.shouldEmitJson.call(void 0, ))) {
|
|
3057
|
+
_chunkWHKTRZ3Jjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: true });
|
|
3005
3058
|
return true;
|
|
3006
3059
|
}
|
|
3007
3060
|
if (parsed.outputFormat === "json_file") {
|
|
@@ -3009,7 +3062,7 @@ async function executeTool(toolId, options) {
|
|
|
3009
3062
|
rawResponse,
|
|
3010
3063
|
`payload_${parsed.toolId}`
|
|
3011
3064
|
);
|
|
3012
|
-
|
|
3065
|
+
_chunkWHKTRZ3Jjs.printCommandEnvelope.call(void 0,
|
|
3013
3066
|
{
|
|
3014
3067
|
...baseEnvelope,
|
|
3015
3068
|
local: {
|
|
@@ -3031,7 +3084,7 @@ async function executeTool(toolId, options) {
|
|
|
3031
3084
|
`${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
|
|
3032
3085
|
);
|
|
3033
3086
|
if (wantsJson) {
|
|
3034
|
-
|
|
3087
|
+
_chunkWHKTRZ3Jjs.printJsonError.call(void 0, error);
|
|
3035
3088
|
} else {
|
|
3036
3089
|
console.error(error.message);
|
|
3037
3090
|
}
|
|
@@ -3042,18 +3095,18 @@ async function executeTool(toolId, options) {
|
|
|
3042
3095
|
rawResponse,
|
|
3043
3096
|
`payload_${parsed.toolId}`
|
|
3044
3097
|
);
|
|
3045
|
-
|
|
3098
|
+
_chunkWHKTRZ3Jjs.printCommandEnvelope.call(void 0,
|
|
3046
3099
|
{
|
|
3047
3100
|
...baseEnvelope,
|
|
3048
3101
|
local: {
|
|
3049
3102
|
payload_file: jsonPath
|
|
3050
3103
|
}
|
|
3051
3104
|
},
|
|
3052
|
-
{ json: parsed.outputFormat === "csv_file" ||
|
|
3105
|
+
{ json: parsed.outputFormat === "csv_file" || _chunkWHKTRZ3Jjs.shouldEmitJson.call(void 0, ) }
|
|
3053
3106
|
);
|
|
3054
3107
|
return true;
|
|
3055
3108
|
}
|
|
3056
|
-
|
|
3109
|
+
_chunkWHKTRZ3Jjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: false });
|
|
3057
3110
|
return true;
|
|
3058
3111
|
}
|
|
3059
3112
|
const rowOutput = _chunkNXDRDJ4Kjs.projectRowOutput.call(void 0, listConversion);
|
|
@@ -3077,7 +3130,7 @@ async function executeTool(toolId, options) {
|
|
|
3077
3130
|
seededScript
|
|
3078
3131
|
});
|
|
3079
3132
|
if (parsed.outputFormat === "csv_file") {
|
|
3080
|
-
|
|
3133
|
+
_chunkWHKTRZ3Jjs.printCommandEnvelope.call(void 0, materializedEnvelope, { json: true });
|
|
3081
3134
|
return true;
|
|
3082
3135
|
}
|
|
3083
3136
|
if (parsed.outPath) {
|
|
@@ -3085,7 +3138,7 @@ async function executeTool(toolId, options) {
|
|
|
3085
3138
|
toolId: parsed.toolId,
|
|
3086
3139
|
idempotencyKey
|
|
3087
3140
|
});
|
|
3088
|
-
|
|
3141
|
+
_chunkWHKTRZ3Jjs.printCommandEnvelope.call(void 0, materializedEnvelope, {
|
|
3089
3142
|
json: wantsJson,
|
|
3090
3143
|
text: `Wrote ${csv.rowCount} row(s) to ${csv.path}
|
|
3091
3144
|
inspect: ${inspection.inspect}
|
|
@@ -3094,7 +3147,7 @@ inspect: ${inspection.inspect}
|
|
|
3094
3147
|
return true;
|
|
3095
3148
|
}
|
|
3096
3149
|
if (parsed.noPreview) {
|
|
3097
|
-
|
|
3150
|
+
_chunkWHKTRZ3Jjs.printCommandEnvelope.call(void 0,
|
|
3098
3151
|
{
|
|
3099
3152
|
...materializedEnvelope,
|
|
3100
3153
|
local: {
|
|
@@ -3102,12 +3155,12 @@ inspect: ${inspection.inspect}
|
|
|
3102
3155
|
output_path: csv.path
|
|
3103
3156
|
}
|
|
3104
3157
|
},
|
|
3105
|
-
{ json:
|
|
3158
|
+
{ json: _chunkWHKTRZ3Jjs.shouldEmitJson.call(void 0, ), text: `${csv.path}
|
|
3106
3159
|
` }
|
|
3107
3160
|
);
|
|
3108
3161
|
return true;
|
|
3109
3162
|
}
|
|
3110
|
-
|
|
3163
|
+
_chunkWHKTRZ3Jjs.printCommandEnvelope.call(void 0, materializedEnvelope, { json: false });
|
|
3111
3164
|
return true;
|
|
3112
3165
|
});
|
|
3113
3166
|
if (delivered) {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7DGZCMXQ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
saveHostEnvValues,
|
|
26
26
|
saveProjectDeeplineEnvValues,
|
|
27
27
|
storedHostApiKey
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-MBI3BVSQ.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
import {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// ../plays/authoring-contract.ts
|
|
2
2
|
import { Type } from "@sinclair/typebox";
|
|
3
3
|
import { Value } from "@sinclair/typebox/value";
|
|
4
|
-
var PLAY_AUTHORING_CONTRACT_EDITION =
|
|
4
|
+
var PLAY_AUTHORING_CONTRACT_EDITION = 10;
|
|
5
5
|
var SUPPORTED_PLAY_AUTHORING_CONTRACT_EDITIONS = [
|
|
6
6
|
1,
|
|
7
7
|
2,
|
|
@@ -11,7 +11,8 @@ var SUPPORTED_PLAY_AUTHORING_CONTRACT_EDITIONS = [
|
|
|
11
11
|
6,
|
|
12
12
|
7,
|
|
13
13
|
8,
|
|
14
|
-
9
|
|
14
|
+
9,
|
|
15
|
+
10
|
|
15
16
|
];
|
|
16
17
|
var PLAY_AUTHORING_CONTRACT_CHANGELOG_DETAILS = [
|
|
17
18
|
{
|
|
@@ -67,8 +68,17 @@ var PLAY_AUTHORING_CONTRACT_CHANGELOG_DETAILS = [
|
|
|
67
68
|
compatibilityOwner: "Plays Runtime",
|
|
68
69
|
newWritesEnd: null,
|
|
69
70
|
readerRemoval: null
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
changed: "List getters return ordinary arrays from the complete resident tool response. Lazy database datasets require an explicit dataset read; incomplete historical previews fail rather than masquerade as complete arrays. Editions 1\u20139 retain dataset-valued getters; stored tool receipts are unchanged.",
|
|
74
|
+
compatibilityOwner: "Plays Runtime",
|
|
75
|
+
newWritesEnd: null,
|
|
76
|
+
readerRemoval: null
|
|
70
77
|
}
|
|
71
78
|
];
|
|
79
|
+
function playToolListGetterMode(edition = PLAY_AUTHORING_CONTRACT_EDITION) {
|
|
80
|
+
return edition >= 10 ? "array" : "dataset";
|
|
81
|
+
}
|
|
72
82
|
var PLAY_AUTHORING_CONTRACT_CHANGELOG = SUPPORTED_PLAY_AUTHORING_CONTRACT_EDITIONS.map((edition, index) => ({
|
|
73
83
|
edition,
|
|
74
84
|
...PLAY_AUTHORING_CONTRACT_CHANGELOG_DETAILS[index]
|
|
@@ -1636,5 +1646,6 @@ var PLAY_AUTHORING_CLOUD_TYPE_DECLARATIONS = [
|
|
|
1636
1646
|
|
|
1637
1647
|
export {
|
|
1638
1648
|
PLAY_AUTHORING_CONTRACT_EDITION,
|
|
1649
|
+
playToolListGetterMode,
|
|
1639
1650
|
CtxFetchHttpError
|
|
1640
1651
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
var
|
|
3
|
+
var _chunkGKZZ32EVjs = require('./chunk-GKZZ32EV.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/npm-script-policy.ts
|
|
6
6
|
var _child_process = require('child_process');
|
|
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
|
|
|
13
13
|
}
|
|
14
14
|
function readNpmVersion(env) {
|
|
15
15
|
try {
|
|
16
|
-
const plan =
|
|
16
|
+
const plan = _chunkGKZZ32EVjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
|
|
17
17
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
18
18
|
encoding: "utf8",
|
|
19
19
|
env,
|