deepline 0.3.341 → 0.3.343
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/http.ts +9 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +14 -0
- package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +2 -0
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +33 -0
- package/dist/bundling-sources/shared_libs/product-notifications/events.ts +15 -0
- package/dist/cli/{auth-VIQ6WBU5.mjs → auth-IPOSX2NV.mjs} +4 -4
- package/dist/cli/auth-J2C5CQ7M.js +31 -0
- package/dist/cli/{billing-7MIYVDBJ.mjs → billing-CWTZDAOC.mjs} +4 -4
- package/dist/cli/{billing-FW5TG3CQ.js → billing-ZZKX4IFS.js} +71 -71
- package/dist/cli/{chunk-IWSPBSV7.mjs → chunk-2Y2QZJBT.mjs} +1 -1
- package/dist/cli/{chunk-WQ5LPOFC.js → chunk-63UBRDGC.js} +60 -60
- package/dist/cli/{chunk-PIVZA4GI.js → chunk-AUB3AW3P.js} +8 -4
- package/dist/cli/{chunk-7IT3B2BL.js → chunk-BCF43TLG.js} +27 -28
- package/dist/cli/{chunk-5RSBKWF6.mjs → chunk-CVIAYYLR.mjs} +2 -2
- package/dist/cli/{chunk-Y2BTWBO7.mjs → chunk-DEDNTNXS.mjs} +1 -1
- package/dist/cli/{chunk-2DFZELZG.js → chunk-ELZ4HEPQ.js} +227 -227
- package/dist/cli/{chunk-FH6IVCYY.js → chunk-ERFIHZXT.js} +57 -67
- package/dist/cli/{chunk-5GQQMICZ.js → chunk-FM36CTMM.js} +9 -9
- package/dist/cli/{chunk-XQD53NOJ.js → chunk-FSNKEEBA.js} +1 -1
- package/dist/cli/{chunk-BX6GJWBS.mjs → chunk-GISYO3JA.mjs} +22 -23
- package/dist/cli/{chunk-LT33BWLY.js → chunk-IPEE3DIV.js} +6 -6
- package/dist/cli/{chunk-ASW2NN7E.js → chunk-JGW7AR5N.js} +2 -2
- package/dist/cli/{chunk-AFCZAA2Y.js → chunk-JS7JVUZZ.js} +8 -8
- package/dist/cli/{chunk-TU3WZZG4.mjs → chunk-KLEZD6JX.mjs} +8 -8
- package/dist/cli/{chunk-KIGZU235.mjs → chunk-LY33N2W6.mjs} +2 -2
- package/dist/cli/{chunk-ZK7BK7OD.mjs → chunk-QV2WIEUP.mjs} +11 -21
- package/dist/cli/{chunk-7ZBSHTYB.mjs → chunk-RB2ELEQ5.mjs} +4 -4
- package/dist/cli/{chunk-MGYI6JH2.js → chunk-RDXH4KXG.js} +26 -26
- package/dist/cli/{chunk-TVNBP3CX.mjs → chunk-U5L6FIIL.mjs} +1 -1
- package/dist/cli/{chunk-U4VULGDJ.mjs → chunk-UJFBO6QV.mjs} +2 -2
- package/dist/cli/{chunk-VO4RF766.mjs → chunk-W6LB26RC.mjs} +5 -1
- package/dist/cli/{chunk-4LXK5CMK.mjs → chunk-WBXTRZAX.mjs} +1 -1
- package/dist/cli/{chunk-NUIPBZVP.js → chunk-XOX3Y5OP.js} +48 -48
- package/dist/cli/{chunk-ATLE7AKN.js → chunk-ZGIXGBKF.js} +15 -15
- package/dist/cli/{chunk-24RQUGMX.mjs → chunk-ZQFYR6NT.mjs} +8 -8
- package/dist/cli/{client-5FQFKJS3.mjs → client-7ZUYHDCL.mjs} +3 -3
- package/dist/cli/client-CCDQC7ZY.js +20 -0
- package/dist/cli/{csv-J7CGFUZO.mjs → csv-6CFRU4CQ.mjs} +3 -3
- package/dist/cli/{csv-X5GUUDBX.js → csv-7BL43EOB.js} +12 -12
- package/dist/cli/{db-SQXA3O74.js → db-EJETRBBT.js} +29 -29
- package/dist/cli/{db-DXPCEPTU.mjs → db-RUKRHPBV.mjs} +4 -4
- package/dist/cli/{describe-VHW7FVBJ.mjs → describe-AVBCGKX4.mjs} +8 -8
- package/dist/cli/{describe-EQTSIVVZ.js → describe-N46DGDQ4.js} +15 -15
- package/dist/cli/{executions-OSF7KBAM.mjs → executions-FCTCQYY3.mjs} +4 -4
- package/dist/cli/{executions-4XLP2D45.js → executions-OPBBBSDT.js} +6 -6
- package/dist/cli/{feedback-7EBKMWNP.js → feedback-RSPSGS2W.js} +7 -7
- package/dist/cli/{feedback-HM4OG6GJ.mjs → feedback-XY7F7FF6.mjs} +3 -3
- package/dist/cli/git-DZTOBIUF.js +23 -0
- package/dist/cli/{git-LXIXK5ZP.mjs → git-ZQ534TRG.mjs} +4 -4
- package/dist/cli/index.js +80 -80
- package/dist/cli/index.mjs +32 -32
- package/dist/cli/{legacy-noops-HEDDLUOF.mjs → legacy-noops-S4Q4TBKQ.mjs} +4 -4
- package/dist/cli/{legacy-noops-O5TQI3GH.js → legacy-noops-WCLAYQNO.js} +7 -7
- package/dist/cli/{monitors-6EX3T2US.mjs → monitors-7EONZILI.mjs} +4 -4
- package/dist/cli/{monitors-334IBGT6.js → monitors-UD6C7YUQ.js} +85 -85
- package/dist/cli/{org-VWLMFKI7.js → org-EGED4FVT.js} +60 -60
- package/dist/cli/{org-ZMKKQ5EY.mjs → org-SPZF2UBU.mjs} +4 -4
- package/dist/cli/play-5MDIQGCF.js +153 -0
- package/dist/cli/{play-CSMPSPXC.mjs → play-KXWJX7RB.mjs} +7 -7
- package/dist/cli/{providers-Z3F3M67Z.js → providers-HWGPSJZ7.js} +7 -7
- package/dist/cli/{providers-PE4K7ZNQ.mjs → providers-P2MRBKX2.mjs} +4 -4
- package/dist/cli/{quickstart-BBO4ZMFA.js → quickstart-CL4AB46M.js} +5 -5
- package/dist/cli/{quickstart-P6Q5NLOI.mjs → quickstart-VEEHUU7O.mjs} +3 -3
- package/dist/cli/search-6H77HQL3.js +26 -0
- package/dist/cli/{search-WLQSHUO5.mjs → search-D7CLJLVU.mjs} +5 -5
- package/dist/cli/{secrets-IITTIRV2.js → secrets-NGB5OD2W.js} +13 -13
- package/dist/cli/{secrets-JAYFSPQL.mjs → secrets-ZDW4MTJL.mjs} +4 -4
- package/dist/cli/{sessions-XIGZKWJG.mjs → sessions-HYUYIAHB.mjs} +4 -4
- package/dist/cli/{sessions-EAWCTMCB.js → sessions-MTN3SBTL.js} +5 -5
- package/dist/cli/{settings-XOZ3IVRT.mjs → settings-RMABGZ6N.mjs} +7 -7
- package/dist/cli/{settings-S6CF5T6U.js → settings-X43X7H54.js} +74 -74
- package/dist/cli/{setup-QGS4YTRD.mjs → setup-N7KUH3AM.mjs} +6 -6
- package/dist/cli/{setup-PO6TJJ5P.js → setup-QEM6U5TO.js} +41 -41
- package/dist/cli/skills-7H2OD626.js +28 -0
- package/dist/cli/{skills-I6ZYMTOV.mjs → skills-H3STANPK.mjs} +4 -4
- package/dist/cli/{tools-XLYFZCRO.mjs → tools-FSEOJNTY.mjs} +6 -6
- package/dist/cli/tools-UYW5T5PU.js +40 -0
- package/dist/cli/{update-JTTZPF4K.mjs → update-6BUK4OLS.mjs} +6 -6
- package/dist/cli/update-K743Q4EF.js +28 -0
- package/dist/cli/{workflow-D2YLWJDP.js → workflow-4GZCYDZS.js} +15 -15
- package/dist/cli/{workflow-2R4X2YR5.mjs → workflow-Q7RJGAKL.mjs} +5 -5
- package/dist/{client-B-hjM1NX.d.mts → client-BHReRdWK.d.mts} +41 -0
- package/dist/{client-txa3om01.d.ts → client-DW3zASj8.d.ts} +41 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +10 -6
- package/dist/index.mjs +7 -3
- package/dist/install-integrity.json +76 -76
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- 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-R7MYOAIT.js +0 -31
- package/dist/cli/client-HTXSC666.js +0 -20
- package/dist/cli/git-4VXVJGO6.js +0 -23
- package/dist/cli/play-4OUTDB4O.js +0 -153
- package/dist/cli/search-6MGGRBOO.js +0 -26
- package/dist/cli/skills-2LS3SJP6.js +0 -28
- package/dist/cli/tools-JEO4GEFK.js +0 -40
- package/dist/cli/update-NYIWSIRQ.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 _chunkIPEE3DIVjs = require('./chunk-IPEE3DIV.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkAUB3AW3Pjs = require('./chunk-AUB3AW3P.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 = _chunkAUB3AW3Pjs.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 } = _chunkIPEE3DIVjs.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
|
+
_chunkIPEE3DIVjs.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
|
+
_chunkIPEE3DIVjs.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
|
+
_chunkIPEE3DIVjs.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
|
+
_chunkIPEE3DIVjs.printCommandEnvelope.call(void 0,
|
|
675
675
|
{
|
|
676
676
|
ok: true,
|
|
677
677
|
file: outputPath,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
recentSearchRef,
|
|
12
12
|
registerDeprecatedSearchCommand
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GISYO3JA.mjs";
|
|
14
14
|
import {
|
|
15
15
|
extractSummaryFields,
|
|
16
16
|
projectRowOutput,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
import {
|
|
23
23
|
DeeplineClient,
|
|
24
24
|
validateExecutionIdempotencyKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-DEDNTNXS.mjs";
|
|
26
26
|
import {
|
|
27
27
|
beginToolExecuteCommand,
|
|
28
28
|
getToolExecuteInvocationId,
|
|
@@ -36,11 +36,11 @@ import {
|
|
|
36
36
|
printJsonError,
|
|
37
37
|
renderCommandEnvelopeText,
|
|
38
38
|
shouldEmitJson
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-2Y2QZJBT.mjs";
|
|
40
40
|
import {
|
|
41
41
|
resolveConfig,
|
|
42
42
|
sdkCliStateDirPath
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-W6LB26RC.mjs";
|
|
44
44
|
import {
|
|
45
45
|
playToolListGetterMode
|
|
46
46
|
} from "./chunk-NTVTZAVZ.mjs";
|
|
@@ -857,7 +857,7 @@ function playLikeToolExecuteErrorMessage(toolId, tool) {
|
|
|
857
857
|
return [
|
|
858
858
|
`${toolId} is a workflow/play entry, not an atomic provider tool.`,
|
|
859
859
|
nextStep,
|
|
860
|
-
'Or search provider tools only with: deepline search
|
|
860
|
+
'Or search provider tools only with: deepline search "<input you have -> result you need>" --type tools --json'
|
|
861
861
|
].join("\n");
|
|
862
862
|
}
|
|
863
863
|
function printPlayLikeToolExecuteError(toolId, tool) {
|
|
@@ -883,7 +883,7 @@ Concepts:
|
|
|
883
883
|
through the plays namespace.
|
|
884
884
|
|
|
885
885
|
Common commands:
|
|
886
|
-
deepline search --type tools
|
|
886
|
+
deepline search "name and company domain -> work email" --type tools --json
|
|
887
887
|
deepline describe hunter_email_verifier
|
|
888
888
|
deepline tools execute hunter_email_verifier --input '{"email":"a@b.com"}'
|
|
889
889
|
deepline billing usage --request-id <job_id> --json
|
|
@@ -915,7 +915,7 @@ Examples:
|
|
|
915
915
|
deepline tools list email_finder
|
|
916
916
|
deepline tools list email_finder --json
|
|
917
917
|
deepline tools list --categories email_finder --json
|
|
918
|
-
deepline search --type tools
|
|
918
|
+
deepline search "name and company domain -> work email" --type tools --json
|
|
919
919
|
`
|
|
920
920
|
).option(
|
|
921
921
|
"--categories <categories>",
|
|
@@ -1029,7 +1029,7 @@ Examples:
|
|
|
1029
1029
|
process.exitCode = await narrowView();
|
|
1030
1030
|
return;
|
|
1031
1031
|
}
|
|
1032
|
-
const { describeAnything } = await import("./describe-
|
|
1032
|
+
const { describeAnything } = await import("./describe-AVBCGKX4.mjs");
|
|
1033
1033
|
process.exitCode = await describeAnything(
|
|
1034
1034
|
toolId,
|
|
1035
1035
|
{ ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2Y2QZJBT.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-W6LB26RC.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2Y2QZJBT.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-W6LB26RC.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
import {
|
|
@@ -513,7 +513,7 @@ async function handleWait(args) {
|
|
|
513
513
|
console.log("Already connected.");
|
|
514
514
|
return EXIT_OK;
|
|
515
515
|
}
|
|
516
|
-
console.error("No pending approval. Run: deepline auth register
|
|
516
|
+
console.error("No pending approval. Run: deepline auth register");
|
|
517
517
|
return EXIT_AUTH;
|
|
518
518
|
}
|
|
519
519
|
const deadline = Date.now() + timeoutSeconds * 1e3;
|
|
@@ -651,7 +651,7 @@ async function handleStatus(args) {
|
|
|
651
651
|
...hostStatusPayload ?? { host: baseUrl },
|
|
652
652
|
status: "not connected",
|
|
653
653
|
connected: false,
|
|
654
|
-
next: "deepline auth register
|
|
654
|
+
next: "deepline auth register && deepline auth wait",
|
|
655
655
|
render: {
|
|
656
656
|
sections: [
|
|
657
657
|
{
|
|
@@ -660,10 +660,7 @@ async function handleStatus(args) {
|
|
|
660
660
|
}
|
|
661
661
|
],
|
|
662
662
|
actions: [
|
|
663
|
-
{
|
|
664
|
-
label: "Register",
|
|
665
|
-
command: "deepline auth register --wait auto"
|
|
666
|
-
},
|
|
663
|
+
{ label: "Register", command: "deepline auth register" },
|
|
667
664
|
{ label: "Wait", command: "deepline auth wait" }
|
|
668
665
|
]
|
|
669
666
|
}
|
|
@@ -687,7 +684,7 @@ async function handleStatus(args) {
|
|
|
687
684
|
...hostStatusPayload ?? { host: baseUrl },
|
|
688
685
|
status: "unauthorized",
|
|
689
686
|
connected: false,
|
|
690
|
-
next: "deepline auth register
|
|
687
|
+
next: "deepline auth register && deepline auth wait",
|
|
691
688
|
render: {
|
|
692
689
|
sections: [
|
|
693
690
|
{
|
|
@@ -696,10 +693,7 @@ async function handleStatus(args) {
|
|
|
696
693
|
}
|
|
697
694
|
],
|
|
698
695
|
actions: [
|
|
699
|
-
{
|
|
700
|
-
label: "Register",
|
|
701
|
-
command: "deepline auth register --wait auto"
|
|
702
|
-
},
|
|
696
|
+
{ label: "Register", command: "deepline auth register" },
|
|
703
697
|
{ label: "Wait", command: "deepline auth wait" }
|
|
704
698
|
]
|
|
705
699
|
}
|
|
@@ -805,15 +799,11 @@ function registerAuthCommands(program) {
|
|
|
805
799
|
`
|
|
806
800
|
Common commands:
|
|
807
801
|
deepline auth register
|
|
808
|
-
deepline auth register --wait no
|
|
809
802
|
deepline auth wait --timeout 300
|
|
810
803
|
deepline auth status
|
|
811
804
|
deepline auth status --json
|
|
812
805
|
|
|
813
806
|
Notes:
|
|
814
|
-
Registration uses --wait auto by default: it waits locally and returns after
|
|
815
|
-
opening the approval page in Cowork. Use --wait no in CI or agent runs, then
|
|
816
|
-
finish with deepline auth wait.
|
|
817
807
|
Auth status shows the target host and active workspace without printing secrets.
|
|
818
808
|
Registering again re-approves the same account; it does not change the active
|
|
819
809
|
workspace. To switch, use deepline org list and deepline org set <org-id>.
|
|
@@ -831,15 +821,15 @@ Notes:
|
|
|
831
821
|
"after",
|
|
832
822
|
`
|
|
833
823
|
Notes:
|
|
834
|
-
Opens a browser approval page
|
|
835
|
-
|
|
824
|
+
Opens a browser approval page and waits for approval. In Cowork it prints the
|
|
825
|
+
link and returns; finish with deepline auth wait. Keep the default --wait auto
|
|
826
|
+
unless you have an explicit reason to pick another mode.
|
|
836
827
|
The saved API key is scoped to the selected workspace and host.
|
|
837
828
|
|
|
838
829
|
Examples:
|
|
839
830
|
deepline auth register
|
|
840
831
|
deepline auth register --org-name Acme --agent-name local-cli
|
|
841
|
-
deepline auth register --
|
|
842
|
-
deepline auth register --auth-scope folder --wait no
|
|
832
|
+
deepline auth register --auth-scope folder
|
|
843
833
|
`
|
|
844
834
|
).option(
|
|
845
835
|
"--org-name <name>",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WBXTRZAX.mjs";
|
|
5
5
|
import {
|
|
6
6
|
resolveShellSpawn,
|
|
7
7
|
runSkillsCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UJFBO6QV.mjs";
|
|
9
9
|
import {
|
|
10
10
|
printCommandEnvelope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2Y2QZJBT.mjs";
|
|
12
12
|
import {
|
|
13
13
|
autoDetectBaseUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-W6LB26RC.mjs";
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkIPEE3DIVjs = require('./chunk-IPEE3DIV.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkAUB3AW3Pjs = require('./chunk-AUB3AW3P.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 } = _chunkIPEE3DIVjs.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
|
+
_chunkIPEE3DIVjs.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 } = _chunkIPEE3DIVjs.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
|
+
_chunkIPEE3DIVjs.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 } = _chunkIPEE3DIVjs.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
|
+
_chunkIPEE3DIVjs.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 } = _chunkIPEE3DIVjs.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 } = _chunkIPEE3DIVjs.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
|
+
_chunkIPEE3DIVjs.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 } = _chunkIPEE3DIVjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkIPEE3DIVjs.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 } = _chunkIPEE3DIVjs.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
|
+
_chunkIPEE3DIVjs.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 } = _chunkIPEE3DIVjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkIPEE3DIVjs.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 = _chunkAUB3AW3Pjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkIPEE3DIVjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkIPEE3DIVjs.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 } = _chunkIPEE3DIVjs.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
|
+
_chunkIPEE3DIVjs.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 } = _chunkIPEE3DIVjs.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
|
+
_chunkIPEE3DIVjs.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 } = _chunkIPEE3DIVjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkIPEE3DIVjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.343",
|
|
53
53
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
54
54
|
packageCapabilities: {
|
|
55
55
|
updatePreferences: 1
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-GAMFK2ZP.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2Y2QZJBT.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_SKILL_AGENTS,
|
|
9
9
|
KNOWN_SKILL_AGENTS,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
sdkCliStateDirPath,
|
|
23
23
|
skillsAgentPathSegment,
|
|
24
24
|
writeSdkSkillsLocalVersion
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-W6LB26RC.mjs";
|
|
26
26
|
import {
|
|
27
27
|
DeeplineError
|
|
28
28
|
} from "./chunk-NXGCO4JB.mjs";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-DLIRSHV6.mjs";
|
|
5
5
|
import {
|
|
6
6
|
SDK_RELEASE
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-U5L6FIIL.mjs";
|
|
8
8
|
import {
|
|
9
9
|
DeeplineError,
|
|
10
10
|
TOOL_EXECUTION_ERROR_SCHEMA_VERSION,
|
|
@@ -1383,6 +1383,10 @@ var HttpClient = class {
|
|
|
1383
1383
|
if (skillsVersion) {
|
|
1384
1384
|
headers["X-Deepline-Skills-Version"] = skillsVersion;
|
|
1385
1385
|
}
|
|
1386
|
+
const agentSessionId = agentSessionIdFromEnvironment();
|
|
1387
|
+
if (agentSessionId) {
|
|
1388
|
+
headers["X-Deepline-Agent-Session-Id"] = agentSessionId;
|
|
1389
|
+
}
|
|
1386
1390
|
const playArtifactR2Prefix = typeof process !== "undefined" ? process.env?.DEEPLINE_PLAY_ARTIFACT_R2_PREFIX : void 0;
|
|
1387
1391
|
if (playArtifactR2Prefix) {
|
|
1388
1392
|
headers["x-deepline-play-artifact-r2-prefix"] = playArtifactR2Prefix;
|