deepline 0.3.370 → 0.3.371
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/README.md +1 -1
- package/dist/bundling-sources/sdk/src/client.ts +8 -8
- package/dist/bundling-sources/sdk/src/release.ts +1 -7
- package/dist/bundling-sources/sdk/src/runs/overview.ts +7 -7
- package/dist/bundling-sources/sdk/src/tool-output.ts +5 -1
- package/dist/bundling-sources/sdk/src/types.ts +2 -2
- package/dist/bundling-sources/shared_libs/monitors/fleets/errors.ts +5 -5
- package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +18 -18
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/dataset-lifecycle-log.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +1 -1
- package/dist/bundling-sources/shared_libs/plays/launch/input-contract.ts +34 -9
- package/dist/cli/auth-DQVK3ZI6.js +33 -0
- package/dist/cli/{auth-RIH4S7NC.mjs → auth-LCSEXQA2.mjs} +4 -4
- package/dist/cli/{billing-Q65H5GJM.js → billing-KISDL67A.js} +148 -148
- package/dist/cli/{billing-ERNGN6WK.mjs → billing-Z7PLJC5C.mjs} +79 -79
- package/dist/cli/{chunk-MX53GIOB.js → chunk-2JRRXXTA.js} +2 -2
- package/dist/cli/{chunk-BKHNCIQD.mjs → chunk-2L6LBJVC.mjs} +193 -187
- package/dist/cli/{chunk-IDBLJSLL.mjs → chunk-3FTYFVYN.mjs} +5 -5
- package/dist/cli/{chunk-Z6B4UPM4.mjs → chunk-3GK3SH3G.mjs} +2 -2
- package/dist/cli/{chunk-4Y5UDYQK.js → chunk-44SHFHA3.js} +17 -17
- package/dist/cli/{chunk-RLXMRC6P.mjs → chunk-46JCJ7FT.mjs} +49 -96
- package/dist/cli/{chunk-XTKVXHGD.js → chunk-5BCVKWLV.js} +17 -17
- package/dist/cli/{chunk-A5RFERJQ.mjs → chunk-5S525TQV.mjs} +2 -2
- package/dist/cli/{chunk-WQZ22EQU.js → chunk-5Z7JFUNX.js} +26 -26
- package/dist/cli/{chunk-T64NZ2A7.mjs → chunk-73NIXYKH.mjs} +46 -47
- package/dist/cli/{chunk-SFI7U6CA.js → chunk-A7X7KFXX.js} +4 -4
- package/dist/cli/{chunk-YQMUTC2H.mjs → chunk-AIZKDTFF.mjs} +11 -11
- package/dist/cli/{chunk-MKFHZDBO.js → chunk-BO3ADIBV.js} +8 -8
- package/dist/cli/{chunk-NHB3UWTZ.js → chunk-C3IPN4E6.js} +17 -17
- package/dist/cli/{chunk-A4OX52RV.js → chunk-C553OZGG.js} +10 -10
- package/dist/cli/{chunk-GGRVNAOH.mjs → chunk-DOXAN2I7.mjs} +3 -3
- package/dist/cli/{chunk-YEEESF2T.js → chunk-DPVBWLBF.js} +419 -413
- package/dist/cli/{chunk-R7AAYFDQ.js → chunk-DQMTJXLK.js} +102 -103
- package/dist/cli/{chunk-NXDRDJ4K.js → chunk-E5UD3JDQ.js} +3 -1
- package/dist/cli/{chunk-LNEBKWXM.mjs → chunk-IWY7T6MR.mjs} +1 -1
- package/dist/cli/{chunk-MIMASXO4.mjs → chunk-JB6ERQUV.mjs} +3 -1
- package/dist/cli/{chunk-CTMA3C3N.js → chunk-JSK6GUY6.js} +49 -96
- package/dist/cli/{chunk-H4IQJRFC.mjs → chunk-KBJO7HIF.mjs} +9 -9
- package/dist/cli/{chunk-HHH4MPFY.mjs → chunk-KGRAQ4OR.mjs} +6 -6
- package/dist/cli/{chunk-LJWOPNJJ.mjs → chunk-KKRRIFR3.mjs} +1 -1
- package/dist/cli/{chunk-DFJDVQMH.js → chunk-N34UX4TW.js} +2 -2
- package/dist/cli/{chunk-666HPUIZ.js → chunk-NMDNUOVI.js} +1 -6
- package/dist/cli/{chunk-5DUTNG37.mjs → chunk-SEDS6ZVR.mjs} +10 -10
- package/dist/cli/{chunk-BGXG3GEI.mjs → chunk-SENW5J4O.mjs} +5 -5
- package/dist/cli/{chunk-Y2B56VN7.js → chunk-TT2YWFYW.js} +53 -53
- package/dist/cli/{chunk-A6DJC2RC.js → chunk-YENBXYUH.js} +68 -68
- package/dist/cli/{chunk-NEY2M4EZ.mjs → chunk-YYFLULK7.mjs} +1 -6
- package/dist/cli/client-JFSRNUVD.js +20 -0
- package/dist/cli/{client-QXOERIFI.mjs → client-Z3Z5EDDJ.mjs} +3 -3
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-V7UKQ7AC.mjs → csv-TEVHLGGA.mjs} +3 -3
- package/dist/cli/{csv-ZKIUSDIV.js → csv-XGFXV7JE.js} +12 -12
- package/dist/cli/{db-GWKRVHKS.js → db-LLZJ7UH5.js} +42 -43
- package/dist/cli/{db-QQ4BYMPY.mjs → db-OB7PMWSZ.mjs} +17 -18
- package/dist/cli/{describe-XMWXEFMS.mjs → describe-GZIRANUZ.mjs} +12 -12
- package/dist/cli/{describe-3AJI2BOS.js → describe-NWU7LI3I.js} +28 -28
- package/dist/cli/{executions-2IMCCV34.js → executions-64YZGSOW.js} +6 -6
- package/dist/cli/{executions-QV7UE5YG.mjs → executions-7UZ3ZGJ3.mjs} +4 -4
- package/dist/cli/{feedback-K6WNXZDB.mjs → feedback-2WRQRW3U.mjs} +8 -8
- package/dist/cli/{feedback-7SSJ7VPF.js → feedback-MN5CXULH.js} +12 -12
- package/dist/cli/{git-UOE2K2XQ.mjs → git-BPYVLLTY.mjs} +4 -4
- package/dist/cli/git-TJIPVSAE.js +23 -0
- package/dist/cli/index.js +98 -109
- package/dist/cli/index.mjs +46 -57
- package/dist/cli/{legacy-noops-GC43OSXL.js → legacy-noops-VMXJPLMW.js} +9 -9
- package/dist/cli/{legacy-noops-SOYPIA2X.mjs → legacy-noops-ZRPWEPX6.mjs} +6 -6
- package/dist/cli/{monitors-FLCGMXVH.mjs → monitors-5BRTBL7E.mjs} +59 -59
- package/dist/cli/{monitors-AXANB6WK.js → monitors-OQSI2VOL.js} +140 -140
- package/dist/cli/{org-MXD4BTQI.js → org-F5QS3HG4.js} +88 -87
- package/dist/cli/{org-Q7EDNZMN.mjs → org-SMZ7AGR3.mjs} +28 -27
- package/dist/cli/{play-TZROCF7E.mjs → play-CJZNLQL7.mjs} +10 -8
- package/dist/cli/play-K7HE4LBB.js +155 -0
- package/dist/cli/{providers-JEY4FTWG.mjs → providers-CBWXJRDG.mjs} +7 -7
- package/dist/cli/{providers-LOS4MHAG.js → providers-SH2HYOVR.js} +10 -10
- package/dist/cli/{quickstart-WO5KVVER.mjs → quickstart-342ENF6Q.mjs} +4 -4
- package/dist/cli/{quickstart-27UQGHEH.js → quickstart-B6EL7WDG.js} +6 -6
- package/dist/cli/{search-LZHWXC2C.mjs → search-E7DKH3SI.mjs} +5 -5
- package/dist/cli/search-SEEYCQED.js +26 -0
- package/dist/cli/{secrets-AVJGZABR.mjs → secrets-FSYIPRVS.mjs} +5 -5
- package/dist/cli/{secrets-PE7P4L7N.js → secrets-M2AW5RGE.js} +14 -14
- package/dist/cli/{sessions-I6UDBN7M.js → sessions-AFE4C3FQ.js} +5 -5
- package/dist/cli/{sessions-ZDSZTYZV.mjs → sessions-DJPGWPNA.mjs} +4 -4
- package/dist/cli/{settings-SPWH3FET.mjs → settings-KLN2A3PQ.mjs} +10 -10
- package/dist/cli/{settings-3SLMJHJ2.js → settings-VUWBNATC.js} +77 -77
- package/dist/cli/{setup-Q3CJ4T2Q.mjs → setup-BE6N5YV6.mjs} +15 -15
- package/dist/cli/{setup-R4LUWQE4.js → setup-I5IMTQCX.js} +50 -50
- package/dist/cli/skills-7XH5GMZB.js +28 -0
- package/dist/cli/{skills-FGXH432G.mjs → skills-GSNPQDUG.mjs} +4 -4
- package/dist/cli/tools-JCL4ABAF.js +40 -0
- package/dist/cli/{tools-O7C6PFF2.mjs → tools-ORCGHV4P.mjs} +8 -8
- package/dist/cli/{update-PPCQV3CD.mjs → update-UXEUWVWS.mjs} +6 -6
- package/dist/cli/update-YNZOS77Z.js +28 -0
- package/dist/cli/{workflow-Z2KYQ2JE.mjs → workflow-JBQY7JJN.mjs} +7 -7
- package/dist/cli/{workflow-ALKU4ZFD.js → workflow-R7SDICTU.js} +17 -17
- package/dist/{client-CjHv4K6D.d.mts → client-CZFMQEgO.d.mts} +6 -6
- package/dist/{client-rTuhNN-x.d.ts → client-CgSwpnb-.d.ts} +6 -6
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +15 -15
- package/dist/index.mjs +4 -4
- package/dist/install-integrity.json +82 -82
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -5
- package/dist/release.d.ts +1 -5
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-DD3PVIRQ.js +0 -33
- package/dist/cli/client-DNAFHKWV.js +0 -20
- package/dist/cli/git-EBSF3254.js +0 -23
- package/dist/cli/play-YWQXVOBT.js +0 -153
- package/dist/cli/search-OQ3OEFUA.js +0 -26
- package/dist/cli/skills-IDXBBOUW.js +0 -28
- package/dist/cli/tools-WHLD4Y4O.js +0 -40
- package/dist/cli/update-K6HE3XKO.js +0 -28
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkBO3ADIBVjs = require('./chunk-BO3ADIBV.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkA7X7KFXXjs = require('./chunk-A7X7KFXX.js');
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
|
|
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
|
|
|
139
139
|
const newestFirst = listSessionFiles(agent).sort(
|
|
140
140
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
141
141
|
);
|
|
142
|
-
const sessionId =
|
|
142
|
+
const sessionId = _chunkA7X7KFXXjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
143
143
|
const cwd = process.cwd();
|
|
144
144
|
return _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(newestFirst.find((candidate) => candidate.sessionId === sessionId), () => ( newestFirst.find(
|
|
145
145
|
(candidate) => sessionStartedInDirectory(candidate, cwd)
|
|
@@ -448,7 +448,7 @@ function buildSessionUploadContent(raw) {
|
|
|
448
448
|
return { encodedContent: encoded, needsChunking: true };
|
|
449
449
|
}
|
|
450
450
|
async function uploadPayload(path, payload) {
|
|
451
|
-
const { http } =
|
|
451
|
+
const { http } = _chunkBO3ADIBVjs.getAuthedHttpClient.call(void 0, );
|
|
452
452
|
return await http.post(path, payload);
|
|
453
453
|
}
|
|
454
454
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -481,7 +481,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
481
481
|
...options.rating ? { rating: options.rating } : {}
|
|
482
482
|
});
|
|
483
483
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
484
|
-
|
|
484
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
485
485
|
{
|
|
486
486
|
...response,
|
|
487
487
|
ok: true,
|
|
@@ -513,7 +513,7 @@ async function handleSessionsSend(options) {
|
|
|
513
513
|
filename: _path.basename.call(void 0, filePath),
|
|
514
514
|
...rating ? { rating } : {}
|
|
515
515
|
});
|
|
516
|
-
|
|
516
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
517
517
|
{
|
|
518
518
|
...response2,
|
|
519
519
|
ok: true,
|
|
@@ -563,7 +563,7 @@ async function handleSessionsSend(options) {
|
|
|
563
563
|
...rating ? { rating } : {}
|
|
564
564
|
});
|
|
565
565
|
const sessionIds = built.map((session) => session.sessionId);
|
|
566
|
-
|
|
566
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
567
567
|
{
|
|
568
568
|
...response,
|
|
569
569
|
ok: true,
|
|
@@ -671,7 +671,7 @@ ${refreshMeta}
|
|
|
671
671
|
</body>
|
|
672
672
|
</html>`;
|
|
673
673
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
674
|
-
|
|
674
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
675
675
|
{
|
|
676
676
|
ok: true,
|
|
677
677
|
file: outputPath,
|
|
@@ -702,8 +702,8 @@ Notes:
|
|
|
702
702
|
or file to Deepline. render writes a local HTML viewer.
|
|
703
703
|
|
|
704
704
|
Examples:
|
|
705
|
-
deepline sessions send --current-session
|
|
706
|
-
deepline sessions send --agent codex --current-session
|
|
705
|
+
deepline sessions send --current-session
|
|
706
|
+
deepline sessions send --agent codex --current-session
|
|
707
707
|
deepline sessions send --session-id 5a3bfb97-a2d9-49d9-82c6-52ccc03dadca
|
|
708
708
|
deepline sessions render --current-session --output session.html
|
|
709
709
|
`
|
|
@@ -715,11 +715,11 @@ function registerSessionSendRenderCommands(parent, familyName) {
|
|
|
715
715
|
"after",
|
|
716
716
|
`
|
|
717
717
|
Examples:
|
|
718
|
-
deepline ${familyName} send --current-session
|
|
719
|
-
deepline ${familyName} send --agent codex --current-session
|
|
718
|
+
deepline ${familyName} send --current-session
|
|
719
|
+
deepline ${familyName} send --agent codex --current-session
|
|
720
720
|
deepline ${familyName} send --session-id 5a3bfb97-a2d9-49d9-82c6-52ccc03dadca --label "pilot run"
|
|
721
|
-
deepline ${familyName} send --current-session --rating poor
|
|
722
|
-
deepline ${familyName} send --file ./debug.log
|
|
721
|
+
deepline ${familyName} send --current-session --rating poor # tag the session as one that went poorly
|
|
722
|
+
deepline ${familyName} send --file ./debug.log
|
|
723
723
|
`
|
|
724
724
|
).option(
|
|
725
725
|
"--session-id <uuid>",
|
|
@@ -741,7 +741,7 @@ Examples:
|
|
|
741
741
|
).option("--file <path>", "Upload a raw local file instead of a session").option(
|
|
742
742
|
"--rating <good|poor|neutral>",
|
|
743
743
|
"Tag the upload by outcome, not tone, so Deepline can filter sessions: good = the user's goal was met without product problems; poor = the goal was missed, or a product failure, bug, or avoidable friction (including a substantial workaround) got in the way; neutral = partly met or unclear."
|
|
744
|
-
).option("--json", "Emit JSON output
|
|
744
|
+
).option("--json", "Emit JSON output").action(handleSessionsSend);
|
|
745
745
|
parent.command("render").description("Render local session transcript(s) to an HTML viewer.").addHelpText(
|
|
746
746
|
"after",
|
|
747
747
|
`
|
|
@@ -749,7 +749,7 @@ Examples:
|
|
|
749
749
|
deepline ${familyName} render --current-session
|
|
750
750
|
deepline ${familyName} render --agent codex --current-session
|
|
751
751
|
deepline ${familyName} render --session-id 5a3bfb97-a2d9-49d9-82c6-52ccc03dadca --output session.html
|
|
752
|
-
deepline ${familyName} render --current-session --auto-refresh 5
|
|
752
|
+
deepline ${familyName} render --current-session --auto-refresh 5
|
|
753
753
|
`
|
|
754
754
|
).option(
|
|
755
755
|
"--session-id <uuid>",
|
|
@@ -768,7 +768,7 @@ Examples:
|
|
|
768
768
|
).option(
|
|
769
769
|
"--current-session",
|
|
770
770
|
"Use the calling agent's session, else the newest in this directory"
|
|
771
|
-
).option("--auto-refresh <seconds>", "Add a browser auto-refresh interval").option("-o, --output <path>", "Output HTML path").option("--json", "Emit JSON output
|
|
771
|
+
).option("--auto-refresh <seconds>", "Add a browser auto-refresh interval").option("-o, --output <path>", "Output HTML path").option("--json", "Emit JSON output").action(handleSessionsRender);
|
|
772
772
|
}
|
|
773
773
|
|
|
774
774
|
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DOXAN2I7.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KKRRIFR3.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkBO3ADIBVjs = require('./chunk-BO3ADIBV.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkA7X7KFXXjs = require('./chunk-A7X7KFXX.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
|
|
|
32
32
|
return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
|
|
33
33
|
}
|
|
34
34
|
async function handleList(options) {
|
|
35
|
-
const { http } =
|
|
35
|
+
const { http } = _chunkBO3ADIBVjs.getAuthedHttpClient.call(void 0, );
|
|
36
36
|
const payload = await http.get(
|
|
37
37
|
`/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
|
|
38
38
|
);
|
|
39
|
-
|
|
39
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
40
40
|
{
|
|
41
41
|
projects: payload.projects,
|
|
42
42
|
count: payload.projects.length,
|
|
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
async function handleStatus(options) {
|
|
76
|
-
const { http } =
|
|
76
|
+
const { http } = _chunkBO3ADIBVjs.getAuthedHttpClient.call(void 0, );
|
|
77
77
|
const payload = await http.get("/api/v2/github/installation");
|
|
78
78
|
const installation = payload.installation;
|
|
79
79
|
const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
|
|
@@ -136,7 +136,7 @@ async function handleStatus(options) {
|
|
|
136
136
|
)
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
140
140
|
{
|
|
141
141
|
installation,
|
|
142
142
|
installations: _nullishCoalesce(payload.installations, () => ( [])),
|
|
@@ -147,10 +147,10 @@ async function handleStatus(options) {
|
|
|
147
147
|
);
|
|
148
148
|
}
|
|
149
149
|
async function handleRepos(options) {
|
|
150
|
-
const { http } =
|
|
150
|
+
const { http } = _chunkBO3ADIBVjs.getAuthedHttpClient.call(void 0, );
|
|
151
151
|
const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
|
|
152
152
|
const payload = await http.get(`/api/v2/github/repos${query}`);
|
|
153
|
-
|
|
153
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
154
154
|
{
|
|
155
155
|
installation: payload.installation,
|
|
156
156
|
repositories: payload.repositories,
|
|
@@ -171,7 +171,7 @@ async function handleRepos(options) {
|
|
|
171
171
|
}
|
|
172
172
|
async function resolveRepoId(repo, installation) {
|
|
173
173
|
if (/^\d+$/.test(repo)) return Number(repo);
|
|
174
|
-
const { http } =
|
|
174
|
+
const { http } = _chunkBO3ADIBVjs.getAuthedHttpClient.call(void 0, );
|
|
175
175
|
const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
|
|
176
176
|
const payload = await http.get(
|
|
177
177
|
`/api/v2/github/repos${query}`
|
|
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
|
|
|
188
188
|
}
|
|
189
189
|
async function handleLink(repo, options) {
|
|
190
190
|
const repoId = await resolveRepoId(repo, options.installation);
|
|
191
|
-
const { http } =
|
|
191
|
+
const { http } = _chunkBO3ADIBVjs.getAuthedHttpClient.call(void 0, );
|
|
192
192
|
const payload = await http.post("/api/v2/play-projects", {
|
|
193
193
|
repoId,
|
|
194
194
|
...options.installation !== void 0 ? { installationId: options.installation } : {},
|
|
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
|
|
|
197
197
|
...options.branch !== void 0 ? { productionBranch: options.branch } : {},
|
|
198
198
|
...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
|
|
199
199
|
});
|
|
200
|
-
|
|
200
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
201
201
|
{
|
|
202
202
|
project: payload.project,
|
|
203
203
|
render: {
|
|
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
|
|
|
220
220
|
);
|
|
221
221
|
}
|
|
222
222
|
async function handleGet(id, options) {
|
|
223
|
-
const { http } =
|
|
223
|
+
const { http } = _chunkBO3ADIBVjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
228
228
|
{
|
|
229
229
|
project: payload.project,
|
|
230
230
|
render: {
|
|
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
|
|
|
240
240
|
);
|
|
241
241
|
}
|
|
242
242
|
async function handleSet(id, options) {
|
|
243
|
-
const { http } =
|
|
243
|
+
const { http } = _chunkBO3ADIBVjs.getAuthedHttpClient.call(void 0, );
|
|
244
244
|
const payload = await http.patch(
|
|
245
245
|
`/api/v2/play-projects/${encodeURIComponent(id)}`,
|
|
246
246
|
{
|
|
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
|
|
|
251
251
|
...options.disabled !== void 0 ? { disabled: options.disabled } : {}
|
|
252
252
|
}
|
|
253
253
|
);
|
|
254
|
-
|
|
254
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
255
255
|
{
|
|
256
256
|
project: payload.project,
|
|
257
257
|
render: {
|
|
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
|
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
266
|
async function handleUnlink(id, options) {
|
|
267
|
-
const { http } =
|
|
267
|
+
const { http } = _chunkBO3ADIBVjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
270
270
|
{
|
|
271
271
|
ok: true,
|
|
272
272
|
id,
|
|
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
|
|
|
286
286
|
);
|
|
287
287
|
}
|
|
288
288
|
async function handleConnect(options) {
|
|
289
|
-
const baseUrl =
|
|
289
|
+
const baseUrl = _chunkA7X7KFXXjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkBO3ADIBVjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
293
293
|
{
|
|
294
294
|
connectUrl,
|
|
295
295
|
browser: opened,
|
|
@@ -311,7 +311,7 @@ async function handleConnect(options) {
|
|
|
311
311
|
);
|
|
312
312
|
}
|
|
313
313
|
async function handleDeploymentsList(options) {
|
|
314
|
-
const { http } =
|
|
314
|
+
const { http } = _chunkBO3ADIBVjs.getAuthedHttpClient.call(void 0, );
|
|
315
315
|
const query = new URLSearchParams();
|
|
316
316
|
if (options.repo) query.set("projectId", options.repo);
|
|
317
317
|
if (options.limit) query.set("limit", options.limit);
|
|
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
|
|
|
319
319
|
const payload = await http.get(
|
|
320
320
|
`/api/v2/deployments${suffix}`
|
|
321
321
|
);
|
|
322
|
-
|
|
322
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
323
323
|
{
|
|
324
324
|
deployments: payload.deployments,
|
|
325
325
|
count: payload.deployments.length,
|
|
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
|
|
|
363
363
|
]);
|
|
364
364
|
}
|
|
365
365
|
async function handleDeploymentGet(id, options) {
|
|
366
|
-
const { http } =
|
|
366
|
+
const { http } = _chunkBO3ADIBVjs.getAuthedHttpClient.call(void 0, );
|
|
367
367
|
const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
|
|
368
368
|
const playLines = renderDeploymentPlayLines(payload.deployment.results);
|
|
369
369
|
const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
|
|
370
370
|
const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
|
|
371
|
-
|
|
371
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
372
372
|
{
|
|
373
373
|
deployment: payload.deployment,
|
|
374
374
|
project: payload.project,
|
|
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
|
|
|
387
387
|
);
|
|
388
388
|
}
|
|
389
389
|
async function handleDeploymentCancel(id, options) {
|
|
390
|
-
const { http } =
|
|
390
|
+
const { http } = _chunkBO3ADIBVjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
recordApiResponse,
|
|
5
5
|
schemaField,
|
|
6
6
|
schemaFields
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3GK3SH3G.mjs";
|
|
8
8
|
import {
|
|
9
9
|
shellQuote
|
|
10
10
|
} from "./chunk-OVDNJAJN.mjs";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
observedMaxText,
|
|
14
14
|
recentSearchRef,
|
|
15
15
|
registerDeprecatedSearchCommand
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SENW5J4O.mjs";
|
|
17
17
|
import {
|
|
18
18
|
extractSummaryFields,
|
|
19
19
|
projectRowOutput,
|
|
@@ -21,14 +21,14 @@ import {
|
|
|
21
21
|
tryConvertToList,
|
|
22
22
|
writeCsvOutputFile,
|
|
23
23
|
writeJsonOutputFile
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-JB6ERQUV.mjs";
|
|
25
25
|
import {
|
|
26
26
|
playToolListGetterMode
|
|
27
27
|
} from "./chunk-7E66A24V.mjs";
|
|
28
28
|
import {
|
|
29
29
|
DeeplineClient,
|
|
30
30
|
validateExecutionIdempotencyKey
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-KBJO7HIF.mjs";
|
|
32
32
|
import {
|
|
33
33
|
beginToolExecuteCommand,
|
|
34
34
|
getToolExecuteInvocationId,
|
|
@@ -42,11 +42,11 @@ import {
|
|
|
42
42
|
printJsonError,
|
|
43
43
|
renderCommandEnvelopeText,
|
|
44
44
|
shouldEmitJson
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-DOXAN2I7.mjs";
|
|
46
46
|
import {
|
|
47
47
|
resolveConfig,
|
|
48
48
|
sdkCliStateDirPath
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-KKRRIFR3.mjs";
|
|
50
50
|
import {
|
|
51
51
|
DeeplineError
|
|
52
52
|
} from "./chunk-NXGCO4JB.mjs";
|
|
@@ -331,7 +331,7 @@ function zeroMatchToolGuidance(options) {
|
|
|
331
331
|
] : [],
|
|
332
332
|
{
|
|
333
333
|
label: "List the current atomic tool catalog",
|
|
334
|
-
command: "deepline tools list
|
|
334
|
+
command: "deepline tools list"
|
|
335
335
|
},
|
|
336
336
|
...query ? [
|
|
337
337
|
{
|
|
@@ -750,7 +750,7 @@ function playReferenceForTool(tool) {
|
|
|
750
750
|
return null;
|
|
751
751
|
}
|
|
752
752
|
function playSearchCommandForToolId(toolId) {
|
|
753
|
-
return `deepline search --type prebuilts ${JSON.stringify(toolId.replace(/_/g, " "))}
|
|
753
|
+
return `deepline search --type prebuilts ${JSON.stringify(toolId.replace(/_/g, " "))}`;
|
|
754
754
|
}
|
|
755
755
|
function playRunCommandForTool(tool, toolId, input) {
|
|
756
756
|
const playReference = playReferenceForTool(tool);
|
|
@@ -764,7 +764,7 @@ function playLikeToolExecuteErrorMessage(toolId, tool) {
|
|
|
764
764
|
return [
|
|
765
765
|
`${toolId} is a workflow/play entry, not an atomic provider tool.`,
|
|
766
766
|
nextStep,
|
|
767
|
-
'Or search provider tools only with: deepline search "<input you have -> result you need>" --type tools
|
|
767
|
+
'Or search provider tools only with: deepline search "<input you have -> result you need>" --type tools'
|
|
768
768
|
].join("\n");
|
|
769
769
|
}
|
|
770
770
|
function printPlayLikeToolExecuteError(toolId, tool) {
|
|
@@ -791,10 +791,10 @@ Concepts:
|
|
|
791
791
|
through the plays namespace.
|
|
792
792
|
|
|
793
793
|
Common commands:
|
|
794
|
-
deepline search "name and company domain -> work email" --type tools
|
|
794
|
+
deepline search "name and company domain -> work email" --type tools
|
|
795
795
|
deepline describe hunter_email_verifier
|
|
796
796
|
deepline tools execute hunter_email_verifier --input '{"email":"a@b.com"}'
|
|
797
|
-
deepline billing usage --request-id <job_id>
|
|
797
|
+
deepline billing usage --request-id <job_id>
|
|
798
798
|
|
|
799
799
|
Output:
|
|
800
800
|
Use deepline describe for tool contracts.
|
|
@@ -821,14 +821,14 @@ Notes:
|
|
|
821
821
|
Examples:
|
|
822
822
|
deepline tools list
|
|
823
823
|
deepline tools list email_finder
|
|
824
|
-
deepline tools list email_finder
|
|
825
|
-
deepline tools list --categories email_finder
|
|
826
|
-
deepline search "name and company domain -> work email" --type tools
|
|
824
|
+
deepline tools list email_finder
|
|
825
|
+
deepline tools list --categories email_finder
|
|
826
|
+
deepline search "name and company domain -> work email" --type tools
|
|
827
827
|
`
|
|
828
828
|
).option(
|
|
829
829
|
"--categories <categories>",
|
|
830
830
|
"Comma-separated categories filter (back-compat alias for the positional)"
|
|
831
|
-
).option("--compact", "Drop verbose fields from JSON output").option("--json", "Emit JSON output
|
|
831
|
+
).option("--compact", "Drop verbose fields from JSON output").option("--json", "Emit JSON output").action(async (category, options) => {
|
|
832
832
|
process.exitCode = await listTools(category, {
|
|
833
833
|
categories: typeof options.categories === "string" ? options.categories : void 0,
|
|
834
834
|
compact: options.compact !== false,
|
|
@@ -848,14 +848,14 @@ Notes:
|
|
|
848
848
|
the default --mode all for AND.
|
|
849
849
|
|
|
850
850
|
Examples:
|
|
851
|
-
deepline tools grep email --categories email_finder
|
|
852
|
-
deepline tools grep "phone validate" --mode all
|
|
853
|
-
deepline tools grep hunter --mode phrase
|
|
851
|
+
deepline tools grep email --categories email_finder
|
|
852
|
+
deepline tools grep "phone validate" --mode all
|
|
853
|
+
deepline tools grep hunter --mode phrase
|
|
854
854
|
`
|
|
855
855
|
).option(
|
|
856
856
|
"--categories <categories>",
|
|
857
857
|
"Comma-separated categories to filter inventory"
|
|
858
|
-
).option("--mode <mode>", "Grep matching mode: all, any, or phrase").option("--compact", "Drop verbose fields from JSON output").option("--json", "Emit JSON output
|
|
858
|
+
).option("--mode <mode>", "Grep matching mode: all, any, or phrase").option("--compact", "Drop verbose fields from JSON output").option("--json", "Emit JSON output").action(async (query, options) => {
|
|
859
859
|
const mode = options.mode === "any" || options.mode === "phrase" ? options.mode : "all";
|
|
860
860
|
process.exitCode = await grepTools(query, {
|
|
861
861
|
json: options.json,
|
|
@@ -882,18 +882,16 @@ Notes:
|
|
|
882
882
|
preserve the nesting shown in the tool's example. Schemas and examples are
|
|
883
883
|
separate describe fields.
|
|
884
884
|
get is accepted as a compatibility alias for describe.
|
|
885
|
-
Text by default
|
|
885
|
+
Text by default; pass --json for structured output.
|
|
886
886
|
|
|
887
887
|
Examples:
|
|
888
888
|
deepline tools describe hunter_email_verifier
|
|
889
889
|
deepline tools describe hunter_email_verifier --pricing-only
|
|
890
|
-
deepline tools describe hunter_email_verifier --pricing-only --json
|
|
891
890
|
deepline tools describe hunter_email_verifier --examples-only
|
|
892
891
|
deepline tools describe hunter_email_verifier --byok
|
|
893
|
-
deepline tools describe
|
|
894
|
-
deepline tools describe
|
|
895
|
-
deepline tools describe
|
|
896
|
-
deepline tools describe ai_evaluate --estimate-payload @payload.json --json
|
|
892
|
+
deepline tools describe deeplineagent --model openai/gpt-5.6-luna
|
|
893
|
+
deepline tools describe ai_inference --estimate-payload @payload.json
|
|
894
|
+
deepline tools describe ai_evaluate --estimate-payload @payload.json
|
|
897
895
|
deepline tools execute hunter_email_verifier --input '{"email":"a@b.com"}'
|
|
898
896
|
`
|
|
899
897
|
).option("--json", "Emit JSON output").option(
|
|
@@ -942,7 +940,7 @@ Examples:
|
|
|
942
940
|
process.exitCode = await narrowView();
|
|
943
941
|
return;
|
|
944
942
|
}
|
|
945
|
-
const { describeAnything } = await import("./describe-
|
|
943
|
+
const { describeAnything } = await import("./describe-GZIRANUZ.mjs");
|
|
946
944
|
process.exitCode = await describeAnything(
|
|
947
945
|
toolId,
|
|
948
946
|
{ ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
|
|
@@ -973,11 +971,10 @@ Notes:
|
|
|
973
971
|
Examples:
|
|
974
972
|
deepline tools execute hunter_email_verifier --input '{"email":"a@b.com"}'
|
|
975
973
|
deepline describe hunter_email_verifier
|
|
976
|
-
deepline billing usage --request-id <job_id>
|
|
977
|
-
deepline tools execute bounceban_verify_bulk --input @batch.json --timeout 10m
|
|
974
|
+
deepline billing usage --request-id <job_id>
|
|
975
|
+
deepline tools execute bounceban_verify_bulk --input @batch.json --timeout 10m
|
|
978
976
|
deepline tools execute hunter_email_verifier -p email=a@b.com
|
|
979
|
-
deepline tools execute test_rate_limit --input '{"key":"smoke"}' --timeout 90s
|
|
980
|
-
deepline tools execute test_rate_limit --input '{"key":"smoke"}' --json | jq '.status'
|
|
977
|
+
deepline tools execute test_rate_limit --input '{"key":"smoke"}' --timeout 90s
|
|
981
978
|
deepline tools execute free_simple_company_search --input '{"sql":"SELECT company_name FROM companies LIMIT 10"}' --out companies.csv
|
|
982
979
|
`
|
|
983
980
|
).option(
|
|
@@ -1248,7 +1245,7 @@ function toolContractJsonForDescribe(tool, requestedToolId, authoringContractEdi
|
|
|
1248
1245
|
rows: []
|
|
1249
1246
|
})
|
|
1250
1247
|
) : null;
|
|
1251
|
-
const executeCommand = deprecated && replacementToolId ? `deepline tools execute ${replacementToolId} --input '{...}'
|
|
1248
|
+
const executeCommand = deprecated && replacementToolId ? `deepline tools execute ${replacementToolId} --input '{...}'` : isPlayLikeTool(tool) ? playRunCommandForTool(tool, toolId) : `deepline tools execute ${toolId} --input '{...}'`;
|
|
1252
1249
|
return {
|
|
1253
1250
|
schemaVersion: 1,
|
|
1254
1251
|
toolId,
|
|
@@ -1362,14 +1359,14 @@ function monitorTypePricingLines(tool) {
|
|
|
1362
1359
|
);
|
|
1363
1360
|
const keys = Object.keys(byType);
|
|
1364
1361
|
if (!keys.length) {
|
|
1365
|
-
return ["Pricing: Deepline credits per accepted event
|
|
1362
|
+
return ["Pricing: Deepline credits per accepted event"];
|
|
1366
1363
|
}
|
|
1367
1364
|
const lines = ["Pricing (Deepline credits per accepted event):"];
|
|
1368
1365
|
for (const key of keys) {
|
|
1369
1366
|
const entry = isRecord(byType[key]) ? byType[key] : {};
|
|
1370
1367
|
const credits = numberField2(entry, "deepline_credits", "deeplineCredits");
|
|
1371
1368
|
const display = stringField2(entry, "display");
|
|
1372
|
-
const shown = display || (credits !== null ? `${formatDecimal(credits)} credits/event` : "
|
|
1369
|
+
const shown = display || (credits !== null ? `${formatDecimal(credits)} credits/event` : "not listed");
|
|
1373
1370
|
lines.push(`- ${key}: ${shown}`);
|
|
1374
1371
|
}
|
|
1375
1372
|
return lines;
|
|
@@ -1586,7 +1583,7 @@ function printCompactToolContract(tool, requestedToolId) {
|
|
|
1586
1583
|
}
|
|
1587
1584
|
console.log("");
|
|
1588
1585
|
console.log(
|
|
1589
|
-
`More: deepline describe ${replacementToolId || contract.toolId}
|
|
1586
|
+
`More: deepline describe ${replacementToolId || contract.toolId}`
|
|
1590
1587
|
);
|
|
1591
1588
|
return;
|
|
1592
1589
|
}
|
|
@@ -1644,7 +1641,7 @@ function printCompactToolContract(tool, requestedToolId) {
|
|
|
1644
1641
|
console.log(
|
|
1645
1642
|
"Provider-specific fields: inspect result.toolResponse.rawV2 and its observed envelope. Prefer the declared getters above."
|
|
1646
1643
|
);
|
|
1647
|
-
console.log(`More: deepline describe ${contract.toolId}
|
|
1644
|
+
console.log(`More: deepline describe ${contract.toolId}`);
|
|
1648
1645
|
}
|
|
1649
1646
|
function toolByokLines(toolId, byok) {
|
|
1650
1647
|
if (typeof byok.supported !== "boolean") {
|
|
@@ -1843,7 +1840,7 @@ function printToolGettersOnly(tool, requestedToolId) {
|
|
|
1843
1840
|
console.log(`Getters: ${contract.toolId}`);
|
|
1844
1841
|
if (!listGetters.length && !valueGetters.length) {
|
|
1845
1842
|
console.log(
|
|
1846
|
-
"No generated getters declared.
|
|
1843
|
+
"No generated getters declared."
|
|
1847
1844
|
);
|
|
1848
1845
|
return;
|
|
1849
1846
|
}
|
|
@@ -1943,7 +1940,7 @@ function toolMetadataJsonForDescribe(tool, requestedToolId) {
|
|
|
1943
1940
|
rows: []
|
|
1944
1941
|
})
|
|
1945
1942
|
) : null;
|
|
1946
|
-
const observedOutputCommand = isPlayLikeTool(tool) ? playRunCommandForTool(tool, toolId) : `deepline tools execute ${toolId} --input '{...}'
|
|
1943
|
+
const observedOutputCommand = isPlayLikeTool(tool) ? playRunCommandForTool(tool, toolId) : `deepline tools execute ${toolId} --input '{...}'`;
|
|
1947
1944
|
const {
|
|
1948
1945
|
cost: _cost,
|
|
1949
1946
|
deeplineCreditsPerPricingUnit: _deeplineCreditsPerPricingUnit,
|
|
@@ -1982,7 +1979,7 @@ function toolMetadataJsonForDescribe(tool, requestedToolId) {
|
|
|
1982
1979
|
invalidGetterHint: "If TypeScript says an extractedValues/extractedLists property does not exist, that field is not a declared Deepline getter.",
|
|
1983
1980
|
observeActualShape: observedOutputCommand,
|
|
1984
1981
|
observedOutput: observedOutputCommand,
|
|
1985
|
-
forPlayGetterBugs: "Run a tiny play, inspect returned handles with `deepline runs get <run-id> --full
|
|
1982
|
+
forPlayGetterBugs: "Run a tiny play, inspect returned handles with `deepline runs get <run-id> --full`, then export row datasets with `deepline runs export`.",
|
|
1986
1983
|
executeOutputFields: "tools execute JSON may include output_preview for this direct probe only; play debugging uses run output and returned dataset handles."
|
|
1987
1984
|
},
|
|
1988
1985
|
...starterScript ? { starterScript } : {}
|
|
@@ -2415,9 +2412,9 @@ function apifySyncRecoveryNext(rawResponse) {
|
|
|
2415
2412
|
const getDatasetItemsTool = stringField2(getDatasetItems, "tool");
|
|
2416
2413
|
const getDatasetItemsPayload = recordField(getDatasetItems, "payload");
|
|
2417
2414
|
return {
|
|
2418
|
-
getActorRun: `deepline tools execute ${getActorRunTool} --input ${shellQuote(JSON.stringify(getActorRunPayload))}
|
|
2415
|
+
getActorRun: `deepline tools execute ${getActorRunTool} --input ${shellQuote(JSON.stringify(getActorRunPayload))}`,
|
|
2419
2416
|
...getDatasetItemsTool && Object.keys(getDatasetItemsPayload).length > 0 ? {
|
|
2420
|
-
getDatasetItems: `deepline tools execute ${getDatasetItemsTool} --input ${shellQuote(JSON.stringify(getDatasetItemsPayload))}
|
|
2417
|
+
getDatasetItems: `deepline tools execute ${getDatasetItemsTool} --input ${shellQuote(JSON.stringify(getDatasetItemsPayload))}`
|
|
2421
2418
|
} : {}
|
|
2422
2419
|
};
|
|
2423
2420
|
}
|
|
@@ -2692,7 +2689,7 @@ export default definePlay(${JSON.stringify(playName)}, async (ctx) => {
|
|
|
2692
2689
|
}
|
|
2693
2690
|
function toolExecutionInspection(input) {
|
|
2694
2691
|
return {
|
|
2695
|
-
inspect: input.idempotencyKey !== void 0 ? `deepline executions get --idempotency-key ${shellQuote(input.idempotencyKey)}
|
|
2692
|
+
inspect: input.idempotencyKey !== void 0 ? `deepline executions get --idempotency-key ${shellQuote(input.idempotencyKey)}` : `deepline describe ${shellQuote(input.toolId)}`,
|
|
2696
2693
|
inspectDescription: input.idempotencyKey !== void 0 ? "Read the saved execution without starting new work." : "Read the tool contract; this unkeyed call has no saved recovery identity."
|
|
2697
2694
|
};
|
|
2698
2695
|
}
|
|
@@ -2720,7 +2717,7 @@ function buildToolExecuteBaseEnvelope(input) {
|
|
|
2720
2717
|
envelope,
|
|
2721
2718
|
"output"
|
|
2722
2719
|
);
|
|
2723
|
-
const billingLookup = typeof envelope.job_id === "string" && envelope.job_id.trim() ? `deepline billing usage --request-id ${shellQuote(envelope.job_id)}
|
|
2720
|
+
const billingLookup = typeof envelope.job_id === "string" && envelope.job_id.trim() ? `deepline billing usage --request-id ${shellQuote(envelope.job_id)}` : null;
|
|
2724
2721
|
const inspection = toolExecutionInspection(input);
|
|
2725
2722
|
const actions = input.listConversion ? [
|
|
2726
2723
|
{
|
|
@@ -2887,7 +2884,7 @@ function buildToolExecuteRowArtifactEnvelope(input) {
|
|
|
2887
2884
|
}
|
|
2888
2885
|
async function executeTool(toolId, options) {
|
|
2889
2886
|
const output = toolExecuteJsonOption(options.json);
|
|
2890
|
-
const wantsJson = shouldEmitJson(output.requested);
|
|
2887
|
+
const wantsJson = shouldEmitJson(output.requested) || (options.outputFormat ?? "auto").trim().toLowerCase() !== "csv";
|
|
2891
2888
|
let parsed;
|
|
2892
2889
|
try {
|
|
2893
2890
|
parsed = parseExecuteOptions(toolId, options, output);
|
|
@@ -3004,7 +3001,7 @@ async function executeTool(toolId, options) {
|
|
|
3004
3001
|
);
|
|
3005
3002
|
const executeExitCode = toolExecuteExitCode(baseEnvelope);
|
|
3006
3003
|
const delivered = await runToolExecuteStage("output delivery", () => {
|
|
3007
|
-
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" &&
|
|
3004
|
+
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
|
|
3008
3005
|
printCommandEnvelope(baseEnvelope, { json: true });
|
|
3009
3006
|
return true;
|
|
3010
3007
|
}
|
|
@@ -3053,7 +3050,7 @@ async function executeTool(toolId, options) {
|
|
|
3053
3050
|
payload_file: jsonPath
|
|
3054
3051
|
}
|
|
3055
3052
|
},
|
|
3056
|
-
{ json: parsed.outputFormat === "csv_file" ||
|
|
3053
|
+
{ json: parsed.outputFormat === "csv_file" || wantsJson }
|
|
3057
3054
|
);
|
|
3058
3055
|
return true;
|
|
3059
3056
|
}
|
|
@@ -3106,12 +3103,14 @@ inspect: ${inspection.inspect}
|
|
|
3106
3103
|
output_path: csv.path
|
|
3107
3104
|
}
|
|
3108
3105
|
},
|
|
3109
|
-
{ json:
|
|
3106
|
+
{ json: wantsJson, text: `${csv.path}
|
|
3110
3107
|
` }
|
|
3111
3108
|
);
|
|
3112
3109
|
return true;
|
|
3113
3110
|
}
|
|
3114
|
-
printCommandEnvelope(materializedEnvelope, {
|
|
3111
|
+
printCommandEnvelope(materializedEnvelope, {
|
|
3112
|
+
json: wantsJson && parsed.outputFormat !== "csv"
|
|
3113
|
+
});
|
|
3115
3114
|
return true;
|
|
3116
3115
|
});
|
|
3117
3116
|
if (delivered) {
|
|
@@ -14,7 +14,7 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
14
14
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkNMDNUOVIjs = require('./chunk-NMDNUOVI.js');
|
|
18
18
|
|
|
19
19
|
// src/errors.ts
|
|
20
20
|
var CustomerDbQueryOutcomeUnknownError = (_class = class extends _chunk7P5AA3SNjs.DeeplineError {
|
|
@@ -743,9 +743,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
|
|
|
743
743
|
}
|
|
744
744
|
|
|
745
745
|
// src/version.ts
|
|
746
|
-
var SDK_VERSION =
|
|
747
|
-
var SDK_API_MAJOR =
|
|
748
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
746
|
+
var SDK_VERSION = _chunkNMDNUOVIjs.SDK_RELEASE.version;
|
|
747
|
+
var SDK_API_MAJOR = _chunkNMDNUOVIjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
748
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkNMDNUOVIjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
749
749
|
|
|
750
750
|
// src/agent-runtime.ts
|
|
751
751
|
|