deepline 0.3.488 → 0.3.489
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +7 -1
- package/dist/cli/{auth-3BTWD5NT.mjs → auth-5RIU6GT7.mjs} +5 -5
- package/dist/cli/auth-PSIS3XA6.js +43 -0
- package/dist/cli/{billing-QROEPF5K.mjs → billing-T4TMPRFS.mjs} +6 -6
- package/dist/cli/{billing-CHCBRT2F.js → billing-T5MAGF25.js} +79 -79
- package/dist/cli/{chunk-N7LKHN5C.mjs → chunk-2QUROYZU.mjs} +1 -1
- package/dist/cli/{chunk-NSAI3D4H.mjs → chunk-35N4S2E6.mjs} +1 -1
- package/dist/cli/{chunk-2LNTFODA.mjs → chunk-3S5VBG6Z.mjs} +2 -2
- package/dist/cli/{chunk-KV5MCYQE.js → chunk-4EFD6R2V.js} +37 -37
- package/dist/cli/{chunk-QRBDW3X6.mjs → chunk-4GWEZPZR.mjs} +6 -1
- package/dist/cli/{chunk-SV2VOJF4.js → chunk-5DEJ3TLB.js} +7 -7
- package/dist/cli/{chunk-ZYJBIZLV.js → chunk-6FMP5XRF.js} +6 -6
- package/dist/cli/{chunk-IXQQWEYK.mjs → chunk-6PHHQDM6.mjs} +1 -1
- package/dist/cli/{chunk-TKK4TR7B.mjs → chunk-7R243PYK.mjs} +1 -1
- package/dist/cli/{chunk-IL5AF6AR.mjs → chunk-A7ZMG2QZ.mjs} +24 -12
- package/dist/cli/{chunk-IS24BRFV.mjs → chunk-C55LNEUF.mjs} +1 -1
- package/dist/cli/{chunk-EMPGZXFN.mjs → chunk-DHAJSTSH.mjs} +4 -4
- package/dist/cli/{chunk-OWYXDSU5.js → chunk-DY7T6VNT.js} +21 -21
- package/dist/cli/{chunk-4BVJ6YSN.js → chunk-F3TDT57M.js} +5 -5
- package/dist/cli/{chunk-TMIWNHL4.js → chunk-FFDWL5N2.js} +16 -16
- package/dist/cli/{chunk-QHMEOHN4.js → chunk-FH7ZABHW.js} +94 -94
- package/dist/cli/{chunk-XGQBBMSP.js → chunk-FL7NHJTS.js} +10 -10
- package/dist/cli/{chunk-6JTJWIXZ.js → chunk-FNKSRKTA.js} +3 -3
- package/dist/cli/{chunk-QT2SPITP.mjs → chunk-G7POOFBJ.mjs} +2 -2
- package/dist/cli/{chunk-KI74RLCP.js → chunk-GW6HV7Z7.js} +3 -3
- package/dist/cli/{chunk-6RZ2UVFW.mjs → chunk-H66YVVT7.mjs} +1 -1
- package/dist/cli/{chunk-GBQLNEB7.js → chunk-I4NWMPT3.js} +53 -53
- package/dist/cli/{chunk-SE252VCN.js → chunk-K2RUSHZ7.js} +4 -4
- package/dist/cli/{chunk-CVBMI2HY.mjs → chunk-L2GMFNAO.mjs} +3 -3
- package/dist/cli/{chunk-P2IEBDEG.js → chunk-LM5UIDFA.js} +7 -7
- package/dist/cli/{chunk-HDUDLOGI.mjs → chunk-LMUOUIBV.mjs} +5 -5
- package/dist/cli/{chunk-HO4PLJHS.mjs → chunk-NBHCEVWY.mjs} +4 -4
- package/dist/cli/{chunk-OKAZHDYN.js → chunk-O3K22ZC7.js} +24 -12
- package/dist/cli/{chunk-GXZK35XL.mjs → chunk-OTQ2CO6M.mjs} +2 -2
- package/dist/cli/{chunk-F4W4J6BT.mjs → chunk-QJ4FWKUU.mjs} +2 -2
- package/dist/cli/{chunk-TZSRQYKH.mjs → chunk-QXWE6PHI.mjs} +2 -2
- package/dist/cli/{chunk-2OHR2B5U.js → chunk-R23HZ6AV.js} +2 -2
- package/dist/cli/{chunk-TJRGYEDA.mjs → chunk-RACN23LT.mjs} +4 -4
- package/dist/cli/{chunk-4BQEGVNC.js → chunk-RI2PLVD4.js} +7 -7
- package/dist/cli/{chunk-73H5KG5T.js → chunk-S4F2R2LO.js} +9 -9
- package/dist/cli/{chunk-AYJVYXES.mjs → chunk-S5PMBDY6.mjs} +10 -10
- package/dist/cli/{chunk-LBFU3VRY.js → chunk-SZHNIKTR.js} +26 -26
- package/dist/cli/{chunk-3T6HNVZN.mjs → chunk-TMQ3PCSY.mjs} +2 -2
- package/dist/cli/{chunk-MBHPAZEA.js → chunk-UI67QLIR.js} +53 -53
- package/dist/cli/{chunk-WER5FPHI.js → chunk-UYZNRLDE.js} +6 -1
- package/dist/cli/{chunk-BU2MZXN6.js → chunk-UZ7VPOTA.js} +3 -3
- package/dist/cli/{chunk-ZJVQXD7M.js → chunk-VP65YKOA.js} +5 -5
- package/dist/cli/{chunk-QWEQV3R3.js → chunk-WIKIF67Q.js} +8 -8
- package/dist/cli/{chunk-KQKPDXIZ.mjs → chunk-WRJ6MEY5.mjs} +1 -1
- package/dist/cli/{chunk-C5M43H4F.mjs → chunk-Y3SG26KP.mjs} +4 -4
- package/dist/cli/{chunk-UUKMZK23.mjs → chunk-YEX3VNAY.mjs} +2 -2
- package/dist/cli/{chunk-G52LFTXC.js → chunk-YSB44HZB.js} +2 -2
- package/dist/cli/{chunk-XMBIESQ7.mjs → chunk-ZICPJKMP.mjs} +5 -5
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-74EFMI3L.mjs → csv-WAD54M7T.mjs} +4 -4
- package/dist/cli/{csv-WQ5IPBPJ.js → csv-XTKN255I.js} +13 -13
- package/dist/cli/{db-JMTHP7J2.mjs → db-2ELZMJFC.mjs} +6 -6
- package/dist/cli/{db-LUU3EFBM.js → db-TTS6Y4FI.js} +27 -27
- package/dist/cli/describe-2V7H5LJP.js +49 -0
- package/dist/cli/{describe-PKBLERG6.mjs → describe-Z7GWMGKU.mjs} +17 -17
- package/dist/cli/{executions-SM32REFN.mjs → executions-2TQH54AB.mjs} +6 -6
- package/dist/cli/{executions-LVMXG5GY.js → executions-WUBVVJXN.js} +8 -8
- package/dist/cli/{feedback-AECGZDEG.js → feedback-6KAY4LE6.js} +8 -8
- package/dist/cli/{feedback-V7PEANAR.mjs → feedback-QI75ZVF2.mjs} +4 -4
- package/dist/cli/{git-BDX3U6NA.mjs → git-3PI2SXVS.mjs} +5 -5
- package/dist/cli/git-DCADFTQ6.js +25 -0
- package/dist/cli/index.js +141 -141
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-JRGBSX4O.js → legacy-noops-BNEVRTQT.js} +8 -8
- package/dist/cli/{legacy-noops-W6E7TXE4.mjs → legacy-noops-SIDE3HLT.mjs} +5 -5
- package/dist/cli/{monitors-RKWUYNER.mjs → monitors-BYQ5V5MX.mjs} +7 -7
- package/dist/cli/{monitors-JT6QZITH.js → monitors-WRWVVXUZ.js} +91 -91
- package/dist/cli/{org-PALGDO5U.js → org-KWCSSJ3Y.js} +72 -72
- package/dist/cli/{org-5XOHJY6O.mjs → org-OZNDX3G2.mjs} +6 -6
- package/dist/cli/{pages-Q5MG4J6F.mjs → pages-DXU3TNND.mjs} +6 -6
- package/dist/cli/{pages-UKICE2RA.js → pages-OQVOMVF5.js} +17 -17
- package/dist/cli/{play-MR324ZTD.js → play-6D7U66KO.js} +312 -312
- package/dist/cli/{play-PY5AT3JQ.mjs → play-ZFG4HDDX.mjs} +17 -17
- package/dist/cli/{providers-V3YMXJFB.mjs → providers-4RRQIK3Q.mjs} +6 -6
- package/dist/cli/{providers-MGBLIMRF.js → providers-H7R3Z5HS.js} +9 -9
- package/dist/cli/{quickstart-LYQ5N6VI.js → quickstart-FQ5E5G6O.js} +6 -6
- package/dist/cli/{quickstart-MMETU4RG.mjs → quickstart-TFKRPMCH.mjs} +4 -4
- package/dist/cli/{run-PZ7CWOJJ.mjs → run-GRCGGUUM.mjs} +29 -134
- package/dist/cli/{run-A5CNTDYQ.js → run-QRDJTXKB.js} +43 -148
- package/dist/cli/search-2FB7WQUS.js +32 -0
- package/dist/cli/{search-IRDHHP7N.mjs → search-OEVSDE3U.mjs} +7 -7
- package/dist/cli/{search-output-N7RQNWBW.js → search-output-F6KBWKT2.js} +6 -6
- package/dist/cli/{search-output-7UAKSD7H.mjs → search-output-VK5ZDVKL.mjs} +4 -4
- package/dist/cli/{secrets-XN4UDYNN.mjs → secrets-DCRVVQV2.mjs} +6 -6
- package/dist/cli/{secrets-XJGQ3BLJ.js → secrets-KKAAZENS.js} +15 -15
- package/dist/cli/{sessions-4UUVDBAO.js → sessions-FDHENJVG.js} +6 -6
- package/dist/cli/{sessions-324MFEFP.mjs → sessions-XVBIXCXU.mjs} +5 -5
- package/dist/cli/{settings-REBKKLBF.js → settings-36HMWFAP.js} +78 -78
- package/dist/cli/{settings-4EZEUQOS.mjs → settings-OBVR52US.mjs} +11 -11
- package/dist/cli/{setup-G3VQ5NCJ.mjs → setup-KFYQZYP3.mjs} +9 -9
- package/dist/cli/{setup-ELPVMUCK.js → setup-M6OWOPMB.js} +47 -47
- package/dist/cli/{skills-RLUDQJWB.mjs → skills-AZDPA6IQ.mjs} +7 -7
- package/dist/cli/skills-URCPOKZZ.js +33 -0
- package/dist/cli/tools-4G5J5NQP.js +56 -0
- package/dist/cli/{tools-MRAFK3MJ.mjs → tools-F6XEUK7H.mjs} +16 -16
- package/dist/cli/{update-WRTYTP3Y.mjs → update-QMGJRICE.mjs} +9 -9
- package/dist/cli/update-UWVL2OYA.js +33 -0
- package/dist/cli/{workflow-ALJ3HLW4.mjs → workflow-L5WNCAPB.mjs} +7 -7
- package/dist/cli/{workflow-LHS32WIT.js → workflow-M4YPUASM.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +100 -100
- package/dist/release.d.mts +5 -1
- package/dist/release.d.ts +5 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-F3OYGJ7T.js +0 -43
- package/dist/cli/describe-35UK3DNO.js +0 -49
- package/dist/cli/git-3KBELBUI.js +0 -25
- package/dist/cli/search-4SG3UMIQ.js +0 -32
- package/dist/cli/skills-X5FY5KJM.js +0 -33
- package/dist/cli/tools-PCRPD5XD.js +0 -56
- package/dist/cli/update-Q4ND4F7E.js +0 -33
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkFH7ZABHWjs = require('./chunk-FH7ZABHW.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkGW6HV7Z7js = require('./chunk-GW6HV7Z7.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,10 +14,10 @@ var _chunkCSBMKHTVjs = require('./chunk-CSBMKHTV.js');
|
|
|
14
14
|
var _chunkIAYSWZDJjs = require('./chunk-IAYSWZDJ.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkF3TDT57Mjs = require('./chunk-F3TDT57M.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkRI2PLVD4js = require('./chunk-RI2PLVD4.js');
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/describe.ts
|
|
23
23
|
var _fs = require('fs');
|
|
@@ -26,16 +26,16 @@ function nothingNamed(name) {
|
|
|
26
26
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
27
27
|
}
|
|
28
28
|
function findNamed2(name, options) {
|
|
29
|
-
return _chunkCSBMKHTVjs.findNamed.call(void 0, name, options, _chunkCSBMKHTVjs.describeLookupsFor.call(void 0, new (0,
|
|
29
|
+
return _chunkCSBMKHTVjs.findNamed.call(void 0, name, options, _chunkCSBMKHTVjs.describeLookupsFor.call(void 0, new (0, _chunkF3TDT57Mjs.DeeplineClient)()));
|
|
30
30
|
}
|
|
31
31
|
async function describeAnything(name, options, onMissing) {
|
|
32
|
-
const client = new (0,
|
|
32
|
+
const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
|
|
33
33
|
const lookups = _chunkCSBMKHTVjs.describeLookupsFor.call(void 0, client);
|
|
34
34
|
const outcome = await _chunkCSBMKHTVjs.describeName.call(void 0, name, options, {
|
|
35
35
|
...lookups,
|
|
36
36
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
37
37
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
38
|
-
seedStarterScript:
|
|
38
|
+
seedStarterScript: _chunkFH7ZABHWjs.seedToolListScript
|
|
39
39
|
});
|
|
40
40
|
if (outcome.status === "missing") {
|
|
41
41
|
if (onMissing) return onMissing();
|
|
@@ -60,18 +60,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
60
60
|
` : text;
|
|
61
61
|
_fs.writeFileSync.call(void 0, path, content);
|
|
62
62
|
const bytes = Buffer.byteLength(content);
|
|
63
|
-
|
|
63
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
64
64
|
{ path, bytes },
|
|
65
65
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
66
66
|
` }
|
|
67
67
|
);
|
|
68
68
|
return 0;
|
|
69
69
|
}
|
|
70
|
-
|
|
70
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
71
71
|
return 0;
|
|
72
72
|
}
|
|
73
73
|
function registerDescribeCommand(program) {
|
|
74
|
-
|
|
74
|
+
_chunkGW6HV7Z7js.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
75
75
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
76
76
|
).addHelpText(
|
|
77
77
|
"after",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkRI2PLVD4js = require('./chunk-RI2PLVD4.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/progress.ts
|
|
6
6
|
var _worker_threads = require('worker_threads');
|
|
@@ -19,7 +19,7 @@ var CliProgress = (_class = class {
|
|
|
19
19
|
__init9() {this.quiet = false}
|
|
20
20
|
// --json output is one JSON document: progress never renders under it.
|
|
21
21
|
constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);
|
|
22
|
-
this.enabled = enabled && !
|
|
22
|
+
this.enabled = enabled && !_chunkRI2PLVD4js.isJsonOutputMode.call(void 0, );
|
|
23
23
|
}
|
|
24
24
|
setLogWriter(writer) {
|
|
25
25
|
this.logWriter = writer;
|
|
@@ -59,7 +59,7 @@ var CliProgress = (_class = class {
|
|
|
59
59
|
this.logWriter(line);
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
if (
|
|
62
|
+
if (_chunkRI2PLVD4js.isJsonOutputMode.call(void 0, )) return;
|
|
63
63
|
if (!this.enabled) {
|
|
64
64
|
process.stderr.write(`${line}
|
|
65
65
|
`);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PlayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-C55LNEUF.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2QUROYZU.mjs";
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -6,7 +6,7 @@ var _chunkIAYSWZDJjs = require('./chunk-IAYSWZDJ.js');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkRI2PLVD4js = require('./chunk-RI2PLVD4.js');
|
|
10
10
|
|
|
11
11
|
// src/cli/describe-options.ts
|
|
12
12
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -247,7 +247,7 @@ function projectRunDatasetCell(value) {
|
|
|
247
247
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
248
248
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
249
249
|
if (typeof logicalValue === "object") {
|
|
250
|
-
return
|
|
250
|
+
return _chunkRI2PLVD4js.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
251
251
|
}
|
|
252
252
|
return logicalValue;
|
|
253
253
|
}
|
|
@@ -642,7 +642,7 @@ function csvText(rows, columns = []) {
|
|
|
642
642
|
rows: rows.map((row) => record(row) ? row : { value: row }),
|
|
643
643
|
columns
|
|
644
644
|
});
|
|
645
|
-
return
|
|
645
|
+
return _chunkRI2PLVD4js.csvStringFromRows.call(void 0, projection.rows, projection.columns);
|
|
646
646
|
}
|
|
647
647
|
function writeExecutionOutput(result, options) {
|
|
648
648
|
let temp;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkRI2PLVD4js = require('./chunk-RI2PLVD4.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -22,14 +22,14 @@ var _chunk4BQEGVNCjs = require('./chunk-4BQEGVNC.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkUZ7VPOTAjs = require('./chunk-UZ7VPOTA.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkK2RUSHZ7js = require('./chunk-K2RUSHZ7.js');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
@@ -60,7 +60,7 @@ function statusBannerLine(value) {
|
|
|
60
60
|
return `Service notice: ${banner.message}`;
|
|
61
61
|
}
|
|
62
62
|
function envFilePath(baseUrl) {
|
|
63
|
-
return
|
|
63
|
+
return _chunkUZ7VPOTAjs.hostEnvFilePath.call(void 0, baseUrl);
|
|
64
64
|
}
|
|
65
65
|
function normalizeAuthScope(value) {
|
|
66
66
|
if (!value || value === "global") return "global";
|
|
@@ -73,7 +73,7 @@ function parseAuthScope(args) {
|
|
|
73
73
|
}
|
|
74
74
|
function pendingClaimPath(baseUrl, scope) {
|
|
75
75
|
if (scope === "folder") {
|
|
76
|
-
const target =
|
|
76
|
+
const target = _chunkUZ7VPOTAjs.resolveProjectPinTarget.call(void 0, );
|
|
77
77
|
if (!target.ok) {
|
|
78
78
|
throw new Error(
|
|
79
79
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -83,10 +83,10 @@ function pendingClaimPath(baseUrl, scope) {
|
|
|
83
83
|
}
|
|
84
84
|
return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
|
|
85
85
|
}
|
|
86
|
-
return `${
|
|
86
|
+
return `${_chunkUZ7VPOTAjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
|
|
87
87
|
}
|
|
88
88
|
function legacyPendingClaimTokenPath(baseUrl) {
|
|
89
|
-
return `${
|
|
89
|
+
return `${_chunkUZ7VPOTAjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
|
|
90
90
|
}
|
|
91
91
|
function savePendingClaim(baseUrl, claim) {
|
|
92
92
|
const filePath = pendingClaimPath(baseUrl, claim.scope);
|
|
@@ -190,21 +190,21 @@ function parseRegisterWaitMode(args) {
|
|
|
190
190
|
function shouldWaitForRegisterClaim(mode) {
|
|
191
191
|
if (mode === "yes") return true;
|
|
192
192
|
if (mode === "no") return false;
|
|
193
|
-
return
|
|
193
|
+
return _chunkK2RUSHZ7js.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
194
194
|
}
|
|
195
195
|
function saveEnvValues(values, baseUrl, scope) {
|
|
196
196
|
const filtered = {
|
|
197
|
-
...values[
|
|
198
|
-
...values[
|
|
199
|
-
...values[
|
|
200
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
197
|
+
...values[_chunkUZ7VPOTAjs.HOST_URL_ENV] ? { [_chunkUZ7VPOTAjs.HOST_URL_ENV]: values[_chunkUZ7VPOTAjs.HOST_URL_ENV] } : {},
|
|
198
|
+
...values[_chunkUZ7VPOTAjs.API_KEY_ENV] ? { [_chunkUZ7VPOTAjs.API_KEY_ENV]: values[_chunkUZ7VPOTAjs.API_KEY_ENV] } : {},
|
|
199
|
+
...values[_chunkUZ7VPOTAjs.ACTIVE_ORG_ID_ENV] ? { [_chunkUZ7VPOTAjs.ACTIVE_ORG_ID_ENV]: values[_chunkUZ7VPOTAjs.ACTIVE_ORG_ID_ENV] } : {},
|
|
200
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkUZ7VPOTAjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkUZ7VPOTAjs.ACTIVE_ORG_NAME_ENV]: values[_chunkUZ7VPOTAjs.ACTIVE_ORG_NAME_ENV] } : {},
|
|
201
201
|
// An explicit empty list must reach the store: it clears a stale line.
|
|
202
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
202
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkUZ7VPOTAjs.FEATURES_ENV) ? { [_chunkUZ7VPOTAjs.FEATURES_ENV]: values[_chunkUZ7VPOTAjs.FEATURES_ENV] } : {}
|
|
203
203
|
};
|
|
204
204
|
if (scope === "folder") {
|
|
205
|
-
|
|
205
|
+
_chunkUZ7VPOTAjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
|
|
206
206
|
} else {
|
|
207
|
-
|
|
207
|
+
_chunkUZ7VPOTAjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
function activeOrgEnvValues(data) {
|
|
@@ -212,21 +212,21 @@ function activeOrgEnvValues(data) {
|
|
|
212
212
|
if (!orgId) return {};
|
|
213
213
|
const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
|
|
214
214
|
return {
|
|
215
|
-
[
|
|
216
|
-
[
|
|
217
|
-
...
|
|
215
|
+
[_chunkUZ7VPOTAjs.ACTIVE_ORG_ID_ENV]: orgId,
|
|
216
|
+
[_chunkUZ7VPOTAjs.ACTIVE_ORG_NAME_ENV]: orgName,
|
|
217
|
+
..._chunkUZ7VPOTAjs.featureEnvValues.call(void 0, data)
|
|
218
218
|
};
|
|
219
219
|
}
|
|
220
220
|
async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
|
|
221
221
|
const headers = {
|
|
222
222
|
"Content-Type": "application/json",
|
|
223
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
223
|
+
"User-Agent": `deepline-ts-sdk/${_chunkK2RUSHZ7js.SDK_VERSION}`,
|
|
224
224
|
"X-Deepline-Client-Family": "sdk",
|
|
225
225
|
"X-Deepline-CLI-Family": "sdk",
|
|
226
|
-
"X-Deepline-Agent-Runtime":
|
|
227
|
-
"X-Deepline-CLI-Version":
|
|
228
|
-
"X-Deepline-SDK-Version":
|
|
229
|
-
"X-Deepline-API-Contract":
|
|
226
|
+
"X-Deepline-Agent-Runtime": _chunkK2RUSHZ7js.detectAgentRuntime.call(void 0, ),
|
|
227
|
+
"X-Deepline-CLI-Version": _chunkK2RUSHZ7js.SDK_VERSION,
|
|
228
|
+
"X-Deepline-SDK-Version": _chunkK2RUSHZ7js.SDK_VERSION,
|
|
229
|
+
"X-Deepline-API-Contract": _chunkK2RUSHZ7js.SDK_API_CONTRACT
|
|
230
230
|
};
|
|
231
231
|
if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
|
|
232
232
|
const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
|
|
@@ -265,10 +265,10 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
|
|
|
265
265
|
if (failure.name === "AbortError" || failure.name === "TimeoutError") {
|
|
266
266
|
throw failure;
|
|
267
267
|
}
|
|
268
|
-
const causeCode =
|
|
268
|
+
const causeCode = _chunkK2RUSHZ7js.networkCauseCode.call(void 0, failure);
|
|
269
269
|
throw Object.assign(
|
|
270
270
|
new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
271
|
-
|
|
271
|
+
_chunkK2RUSHZ7js.connectionFailureMessage.call(void 0, new URL(url).origin, failure),
|
|
272
272
|
void 0,
|
|
273
273
|
"NETWORK_ERROR",
|
|
274
274
|
causeCode ? { causeCode } : void 0
|
|
@@ -285,7 +285,7 @@ async function readStatusBanner(baseUrl) {
|
|
|
285
285
|
return _optionalChain([response, 'optionalAccess', _11 => _11.status]) === 200 ? _nullishCoalesce(response.data.banner, () => ( null)) : null;
|
|
286
286
|
}
|
|
287
287
|
async function reportSetupCompleted(input) {
|
|
288
|
-
const apiKey = input.authScope === "folder" ?
|
|
288
|
+
const apiKey = input.authScope === "folder" ? _chunkUZ7VPOTAjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkUZ7VPOTAjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
289
289
|
if (!apiKey) return;
|
|
290
290
|
try {
|
|
291
291
|
await httpJson(
|
|
@@ -398,7 +398,7 @@ async function reportApprovalLinkShown(baseUrl, claim, mode) {
|
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
async function handleRegister(args, options) {
|
|
401
|
-
const baseUrl =
|
|
401
|
+
const baseUrl = _chunkUZ7VPOTAjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
402
402
|
let orgName = "";
|
|
403
403
|
let orgId = "";
|
|
404
404
|
let agentName = "";
|
|
@@ -457,19 +457,19 @@ async function handleRegister(args, options) {
|
|
|
457
457
|
savePendingClaim(baseUrl, pendingClaim);
|
|
458
458
|
saveEnvValues(
|
|
459
459
|
{
|
|
460
|
-
[
|
|
460
|
+
[_chunkUZ7VPOTAjs.HOST_URL_ENV]: baseUrl
|
|
461
461
|
},
|
|
462
462
|
baseUrl,
|
|
463
463
|
authScope
|
|
464
464
|
);
|
|
465
465
|
}
|
|
466
466
|
if (claimUrl) {
|
|
467
|
-
const shouldOpen = waitMode !== "no" &&
|
|
467
|
+
const shouldOpen = waitMode !== "no" && _chunkK2RUSHZ7js.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
468
468
|
console.log(
|
|
469
469
|
shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
|
|
470
470
|
);
|
|
471
471
|
console.log(` ${claimUrl}`);
|
|
472
|
-
if (shouldOpen)
|
|
472
|
+
if (shouldOpen) _chunkRI2PLVD4js.openInBrowser.call(void 0, claimUrl);
|
|
473
473
|
if (claimToken && pendingClaim.approvalLinkReporting && !_optionalChain([options, 'optionalAccess', _16 => _16.deferApprovalLinkReport])) {
|
|
474
474
|
await reportApprovalLinkShown(
|
|
475
475
|
baseUrl,
|
|
@@ -519,8 +519,8 @@ async function handleRegister(args, options) {
|
|
|
519
519
|
if (apiKey) {
|
|
520
520
|
saveEnvValues(
|
|
521
521
|
{
|
|
522
|
-
[
|
|
523
|
-
[
|
|
522
|
+
[_chunkUZ7VPOTAjs.HOST_URL_ENV]: baseUrl,
|
|
523
|
+
[_chunkUZ7VPOTAjs.API_KEY_ENV]: apiKey,
|
|
524
524
|
...activeOrgEnvValues(statusData)
|
|
525
525
|
},
|
|
526
526
|
baseUrl,
|
|
@@ -542,7 +542,7 @@ async function handleRegister(args, options) {
|
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
544
|
async function handleWait(args) {
|
|
545
|
-
const baseUrl =
|
|
545
|
+
const baseUrl = _chunkUZ7VPOTAjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
546
546
|
let timeoutSeconds = 300;
|
|
547
547
|
let requestedScope;
|
|
548
548
|
if (args.includes("--auth-scope")) {
|
|
@@ -566,7 +566,7 @@ async function handleWait(args) {
|
|
|
566
566
|
const authScope = resumed.scope;
|
|
567
567
|
const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _17 => _17.claimToken]), () => ( ""));
|
|
568
568
|
if (!pendingClaim) {
|
|
569
|
-
const scopedApiKey = authScope === "folder" ?
|
|
569
|
+
const scopedApiKey = authScope === "folder" ? _chunkUZ7VPOTAjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkUZ7VPOTAjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
570
570
|
if (scopedApiKey) {
|
|
571
571
|
console.log("Already connected.");
|
|
572
572
|
return EXIT_OK;
|
|
@@ -609,8 +609,8 @@ async function handleWait(args) {
|
|
|
609
609
|
if (apiKey) {
|
|
610
610
|
saveEnvValues(
|
|
611
611
|
{
|
|
612
|
-
[
|
|
613
|
-
[
|
|
612
|
+
[_chunkUZ7VPOTAjs.HOST_URL_ENV]: baseUrl,
|
|
613
|
+
[_chunkUZ7VPOTAjs.API_KEY_ENV]: apiKey,
|
|
614
614
|
...activeOrgEnvValues(data)
|
|
615
615
|
},
|
|
616
616
|
baseUrl,
|
|
@@ -634,8 +634,8 @@ async function handleWait(args) {
|
|
|
634
634
|
return EXIT_AUTH;
|
|
635
635
|
}
|
|
636
636
|
async function authStatusLine(timeoutMs = 3e3) {
|
|
637
|
-
const baseUrl =
|
|
638
|
-
const apiKey =
|
|
637
|
+
const baseUrl = _chunkUZ7VPOTAjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
638
|
+
const apiKey = _chunkUZ7VPOTAjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
639
639
|
if (!apiKey) return `Auth: not connected (${baseUrl})`;
|
|
640
640
|
try {
|
|
641
641
|
const { status, data } = await httpJson(
|
|
@@ -658,9 +658,9 @@ async function authStatusLine(timeoutMs = 3e3) {
|
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
660
|
async function handleStatus(args) {
|
|
661
|
-
const baseUrl =
|
|
661
|
+
const baseUrl = _chunkUZ7VPOTAjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
662
662
|
const reveal = args.includes("--reveal");
|
|
663
|
-
const jsonOutput =
|
|
663
|
+
const jsonOutput = _chunkRI2PLVD4js.argsWantJson.call(void 0, args);
|
|
664
664
|
const hasExplicitAuthScope = args.includes("--auth-scope");
|
|
665
665
|
let authScope = null;
|
|
666
666
|
if (hasExplicitAuthScope) {
|
|
@@ -701,14 +701,14 @@ async function handleStatus(args) {
|
|
|
701
701
|
};
|
|
702
702
|
hostLines.push(`Host: ${baseUrl} (unreachable)`);
|
|
703
703
|
}
|
|
704
|
-
const apiKey = authScope === "folder" ?
|
|
704
|
+
const apiKey = authScope === "folder" ? _chunkUZ7VPOTAjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkUZ7VPOTAjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkUZ7VPOTAjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
705
705
|
if (!apiKey) {
|
|
706
706
|
const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
|
|
707
707
|
baseUrl,
|
|
708
708
|
_nullishCoalesce(authScope, () => ( void 0))
|
|
709
709
|
);
|
|
710
710
|
if (pendingClaim) {
|
|
711
|
-
|
|
711
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
712
712
|
{
|
|
713
713
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
714
714
|
status: "pending",
|
|
@@ -729,7 +729,7 @@ async function handleStatus(args) {
|
|
|
729
729
|
);
|
|
730
730
|
return EXIT_OK;
|
|
731
731
|
}
|
|
732
|
-
|
|
732
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
733
733
|
{
|
|
734
734
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
735
735
|
status: "not connected",
|
|
@@ -762,7 +762,7 @@ async function handleStatus(args) {
|
|
|
762
762
|
}
|
|
763
763
|
);
|
|
764
764
|
if (status === 401 || status === 403) {
|
|
765
|
-
|
|
765
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
766
766
|
{
|
|
767
767
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
768
768
|
status: "unauthorized",
|
|
@@ -789,7 +789,7 @@ async function handleStatus(args) {
|
|
|
789
789
|
console.error(`Auth status error (status ${status}).`);
|
|
790
790
|
return EXIT_SERVER;
|
|
791
791
|
}
|
|
792
|
-
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (
|
|
792
|
+
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkUZ7VPOTAjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
|
|
793
793
|
clearSatisfiedPendingClaim(
|
|
794
794
|
baseUrl,
|
|
795
795
|
resolvedAuthScope,
|
|
@@ -817,28 +817,28 @@ async function handleStatus(args) {
|
|
|
817
817
|
if (apiKeyResp) {
|
|
818
818
|
saveEnvValues(
|
|
819
819
|
{
|
|
820
|
-
[
|
|
821
|
-
[
|
|
820
|
+
[_chunkUZ7VPOTAjs.HOST_URL_ENV]: baseUrl,
|
|
821
|
+
[_chunkUZ7VPOTAjs.API_KEY_ENV]: apiKeyResp,
|
|
822
822
|
...activeOrgEnvValues(data)
|
|
823
823
|
},
|
|
824
824
|
baseUrl,
|
|
825
825
|
resolvedAuthScope
|
|
826
826
|
);
|
|
827
827
|
if (resolvedAuthScope === "folder") {
|
|
828
|
-
const target =
|
|
828
|
+
const target = _chunkUZ7VPOTAjs.resolveProjectPinTarget.call(void 0, );
|
|
829
829
|
savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
|
|
830
830
|
} else {
|
|
831
831
|
savedApiKeyPath = envFilePath(baseUrl);
|
|
832
832
|
}
|
|
833
833
|
}
|
|
834
|
-
} else if (resolvedAuthScope === "folder" ||
|
|
835
|
-
saveEnvValues(
|
|
834
|
+
} else if (resolvedAuthScope === "folder" || _chunkUZ7VPOTAjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
|
|
835
|
+
saveEnvValues(_chunkUZ7VPOTAjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
|
|
836
836
|
}
|
|
837
|
-
|
|
837
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
838
838
|
{
|
|
839
839
|
...payload,
|
|
840
|
-
...
|
|
841
|
-
command_context:
|
|
840
|
+
..._chunkK2RUSHZ7js.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
|
|
841
|
+
command_context: _chunkUZ7VPOTAjs.resolveCliCommandContext.call(void 0,
|
|
842
842
|
{ baseUrl, apiKey },
|
|
843
843
|
resolvedAuthScope
|
|
844
844
|
)
|
|
@@ -16,12 +16,12 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
16
16
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkUYZNRLDEjs = require('./chunk-UYZNRLDE.js');
|
|
20
20
|
|
|
21
21
|
// src/version.ts
|
|
22
|
-
var SDK_VERSION =
|
|
23
|
-
var SDK_API_MAJOR =
|
|
24
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
22
|
+
var SDK_VERSION = _chunkUYZNRLDEjs.SDK_RELEASE.version;
|
|
23
|
+
var SDK_API_MAJOR = _chunkUYZNRLDEjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
24
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkUYZNRLDEjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
25
25
|
|
|
26
26
|
// src/agent-runtime.ts
|
|
27
27
|
var _os = require('os');
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YEX3VNAY.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -22,14 +22,14 @@ import {
|
|
|
22
22
|
saveHostEnvValues,
|
|
23
23
|
saveProjectDeeplineEnvValues,
|
|
24
24
|
storedHostApiKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-2QUROYZU.mjs";
|
|
26
26
|
import {
|
|
27
27
|
SDK_API_CONTRACT,
|
|
28
28
|
SDK_VERSION,
|
|
29
29
|
connectionFailureMessage,
|
|
30
30
|
detectAgentRuntime,
|
|
31
31
|
networkCauseCode
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-WRJ6MEY5.mjs";
|
|
33
33
|
import {
|
|
34
34
|
DeeplineError
|
|
35
35
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkF3TDT57Mjs = require('./chunk-F3TDT57M.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkRI2PLVD4js = require('./chunk-RI2PLVD4.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkUZ7VPOTAjs = require('./chunk-UZ7VPOTA.js');
|
|
14
14
|
|
|
15
15
|
// src/cli/commands/search.ts
|
|
16
16
|
var _commander = require('commander');
|
|
@@ -20,7 +20,7 @@ var _fs = require('fs');
|
|
|
20
20
|
var _path = require('path');
|
|
21
21
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
22
22
|
function lastSearchPath() {
|
|
23
|
-
return _path.join.call(void 0,
|
|
23
|
+
return _path.join.call(void 0, _chunkUZ7VPOTAjs.sdkCliStateDirPath.call(void 0, _chunkUZ7VPOTAjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
24
24
|
}
|
|
25
25
|
function rememberSearchRef(searchRef) {
|
|
26
26
|
try {
|
|
@@ -118,7 +118,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
118
118
|
console.error("--summary-width must be an integer of at least 2.");
|
|
119
119
|
return 1;
|
|
120
120
|
}
|
|
121
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
121
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().search({
|
|
122
122
|
query,
|
|
123
123
|
types,
|
|
124
124
|
exclude,
|
|
@@ -132,8 +132,8 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
132
132
|
});
|
|
133
133
|
if (searchRef) rememberSearchRef(searchRef);
|
|
134
134
|
pointAtDescribe(result);
|
|
135
|
-
const { renderSearchResults } = await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-
|
|
136
|
-
|
|
135
|
+
const { renderSearchResults } = await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-F6KBWKT2.js")));
|
|
136
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0, result, {
|
|
137
137
|
json: options.json === true,
|
|
138
138
|
text: renderSearchResults(result, summaryWidth)
|
|
139
139
|
});
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZICPJKMP.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Y3SG26KP.mjs";
|
|
11
11
|
import {
|
|
12
12
|
addJsonNotice,
|
|
13
13
|
isJsonOutputMode
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-YEX3VNAY.mjs";
|
|
15
15
|
import {
|
|
16
16
|
resolveApiKeyForBaseUrl
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2QUROYZU.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_VERSION
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WRJ6MEY5.mjs";
|
|
21
21
|
|
|
22
22
|
// src/cli/compatibility-catalog.ts
|
|
23
23
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-5AEDYVB6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QXWE6PHI.mjs";
|
|
7
7
|
import {
|
|
8
8
|
printCommandEnvelope
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YEX3VNAY.mjs";
|
|
10
10
|
import {
|
|
11
11
|
resolveConfig,
|
|
12
12
|
sdkCliStateDirPath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2QUROYZU.mjs";
|
|
14
14
|
|
|
15
15
|
// src/cli/commands/search.ts
|
|
16
16
|
import { Option } from "commander";
|
|
@@ -132,7 +132,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
132
132
|
});
|
|
133
133
|
if (searchRef) rememberSearchRef(searchRef);
|
|
134
134
|
pointAtDescribe(result);
|
|
135
|
-
const { renderSearchResults } = await import("./search-output-
|
|
135
|
+
const { renderSearchResults } = await import("./search-output-VK5ZDVKL.mjs");
|
|
136
136
|
printCommandEnvelope(result, {
|
|
137
137
|
json: options.json === true,
|
|
138
138
|
text: renderSearchResults(result, summaryWidth)
|
|
@@ -439,21 +439,33 @@ Cost:
|
|
|
439
439
|
run: {
|
|
440
440
|
core: `
|
|
441
441
|
Purpose:
|
|
442
|
-
Run a tool, a play
|
|
443
|
-
|
|
442
|
+
Run a tool, a play, a play file, or a few lines of code. One command for
|
|
443
|
+
all of them.
|
|
444
444
|
When:
|
|
445
|
-
After describe, once you know the inputs. --dry-run
|
|
446
|
-
|
|
447
|
-
|
|
445
|
+
After describe, once you know the inputs. For paid work, add --dry-run
|
|
446
|
+
first to check the input and see the price.
|
|
447
|
+
Input:
|
|
448
|
+
The id from search, and one JSON object: --input '{...}' or
|
|
449
|
+
--input-file input.json. A play that reads a CSV takes its path:
|
|
450
|
+
--input '{"csv":"leads.csv"}'. -e '<code>' runs code as a play body.
|
|
451
|
+
<play>@latest runs the newest revision; deepline/<id> runs Deepline's
|
|
452
|
+
version when your workspace has one with the same name.
|
|
453
|
+
Examples:
|
|
454
|
+
deepline run hunter_email_verifier --input '{"email":"a@b.com"}'
|
|
455
|
+
deepline run person-to-email-batch --input '{"csv":"leads.csv"}' --dry-run
|
|
456
|
+
deepline run person-to-email-batch --input '{"csv":"leads.csv"}' --csv-out emails.csv
|
|
457
|
+
deepline run my.play.ts --input-file input.json --json-out result.json
|
|
458
|
+
deepline run -e 'return { doubled: input.n * 2 };' --input '{"n":21}'
|
|
448
459
|
Output:
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
run or tool call again.
|
|
460
|
+
A receipt: what ran, its status and cost, where the data was saved, and
|
|
461
|
+
the first values. The full data is always saved to a file; --csv-out and
|
|
462
|
+
--json-out choose where. --fields picks values and CSV columns. Exit code
|
|
463
|
+
0 completed, 1 failed or still running, 2 nothing ran.
|
|
454
464
|
Cost:
|
|
455
|
-
|
|
456
|
-
replays it
|
|
465
|
+
What the tool or play charges. --max-credits caps a play run. Running an
|
|
466
|
+
interrupted call again replays it without paying twice.
|
|
467
|
+
Next:
|
|
468
|
+
Read the saved file. deepline runs get <id> shows the run again.
|
|
457
469
|
`
|
|
458
470
|
},
|
|
459
471
|
tools: {
|