deepline 0.3.571 → 0.3.572
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +11 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +28 -17
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +360 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +274 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-scheduler-topology.ts +35 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +28 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +11 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-claim-affinity.ts +67 -43
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +23 -6
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-listener-hint.ts +62 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +11 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +54 -5
- package/dist/cli/auth-PXIVGUVZ.js +44 -0
- package/dist/cli/{auth-ARGNQK7A.mjs → auth-YUDM3YOC.mjs} +5 -5
- package/dist/cli/{billing-KAKODYTN.js → billing-F3ZGOWKL.js} +99 -99
- package/dist/cli/{billing-QRZTHCBX.mjs → billing-O7WUC4TU.mjs} +8 -8
- package/dist/cli/{chunk-C27FK36H.js → chunk-3SFLY3T3.js} +5 -5
- package/dist/cli/{chunk-GOUKX6XD.js → chunk-43GCEVHO.js} +3 -3
- package/dist/cli/{chunk-PTM5V5FV.js → chunk-4W5EFHHY.js} +7 -7
- package/dist/cli/{chunk-2IZOCGOA.js → chunk-5EMYPLTW.js} +53 -53
- package/dist/cli/{chunk-IXFFOZZQ.js → chunk-5VUD7HGD.js} +2 -2
- package/dist/cli/{chunk-7HAYEKC4.mjs → chunk-6R57HEPF.mjs} +1 -1
- package/dist/cli/{chunk-H6QMUX7Y.mjs → chunk-72WI67H4.mjs} +2 -2
- package/dist/cli/{chunk-MFBFQUQK.js → chunk-AHNJGA6Z.js} +6 -6
- package/dist/cli/{chunk-CR6IPQBB.mjs → chunk-AJO3I3LL.mjs} +1 -1
- package/dist/cli/{chunk-UBNRPJKO.mjs → chunk-BWWDU6FN.mjs} +5 -5
- package/dist/cli/{chunk-ETGM6PIR.mjs → chunk-CYW6PE3G.mjs} +5 -5
- package/dist/cli/{chunk-Z3DSCE5F.mjs → chunk-EDAG7ZU4.mjs} +1 -1
- package/dist/cli/{chunk-FQP5VSVF.mjs → chunk-EKIWY5DD.mjs} +1 -1
- package/dist/cli/{chunk-336AHC7H.mjs → chunk-EKWDSE6H.mjs} +4 -4
- package/dist/cli/{chunk-6OP5UW7C.js → chunk-EL4LME5Y.js} +48 -48
- package/dist/cli/{chunk-7JGHNZTD.js → chunk-FGBX2WVJ.js} +4 -4
- package/dist/cli/{chunk-TJU2BECV.mjs → chunk-GX4VZL4Z.mjs} +3 -3
- package/dist/cli/{chunk-YGGHPEWP.js → chunk-HYCJNHZ4.js} +15 -15
- package/dist/cli/{chunk-QRMTITKL.mjs → chunk-I4WKB3HO.mjs} +2 -2
- package/dist/cli/{chunk-A5HDA22N.js → chunk-ITQPBWDS.js} +3 -3
- package/dist/cli/{chunk-A3IVPA6Q.mjs → chunk-JEI7PHET.mjs} +1 -1
- package/dist/cli/{chunk-J5KW2ZDB.mjs → chunk-JJEN7TRR.mjs} +1 -1
- package/dist/cli/{chunk-ILKUKEWX.js → chunk-K4LAEKHS.js} +41 -41
- package/dist/cli/{chunk-HGER4CJA.js → chunk-LBNP52C4.js} +5 -5
- package/dist/cli/{chunk-A3B54QEW.mjs → chunk-MVQ5XGRO.mjs} +3 -3
- package/dist/cli/{chunk-IFKZQCPX.js → chunk-NOKSEYMS.js} +1 -1
- package/dist/cli/{chunk-PO3NOBHU.mjs → chunk-OUVQKSVC.mjs} +1 -1
- package/dist/cli/{chunk-CITDBSXI.js → chunk-PI4TKE2B.js} +26 -26
- package/dist/cli/{chunk-WZOUXILM.mjs → chunk-PQ6PM4V6.mjs} +1 -1
- package/dist/cli/{chunk-6N3NTEJ6.js → chunk-PRDCU7BY.js} +20 -20
- package/dist/cli/{chunk-RBPR5ZNN.js → chunk-PZGK6EEB.js} +100 -100
- package/dist/cli/{chunk-CF6CSAMJ.mjs → chunk-Q6H5RRTG.mjs} +4 -4
- package/dist/cli/{chunk-UTGHPC5D.mjs → chunk-QA733N7N.mjs} +1 -1
- package/dist/cli/{chunk-VLQB65HI.js → chunk-QMIMGKR2.js} +9 -9
- package/dist/cli/{chunk-YDULFKDL.mjs → chunk-RIA73OAZ.mjs} +2 -2
- package/dist/cli/{chunk-GCE5KOJJ.mjs → chunk-SJI56XPM.mjs} +11 -11
- package/dist/cli/{chunk-GRD3DLH7.mjs → chunk-UFUXGMHL.mjs} +2 -2
- package/dist/cli/{chunk-NAGGCF6Y.js → chunk-UKD5ZBQD.js} +5 -5
- package/dist/cli/{chunk-C6XV2DPY.mjs → chunk-UMP76GYQ.mjs} +3 -3
- package/dist/cli/{chunk-VULSFPD4.mjs → chunk-UQWYDNGB.mjs} +5 -5
- package/dist/cli/{chunk-SJYLLHHZ.js → chunk-UUYB6IXC.js} +13 -13
- package/dist/cli/{chunk-Z6OUUAIV.mjs → chunk-UY6Z3XWW.mjs} +2 -2
- package/dist/cli/{chunk-CFMIWRGD.mjs → chunk-V2W7GX2I.mjs} +2 -2
- package/dist/cli/{chunk-GACQOGRS.js → chunk-VGPHXXPI.js} +15 -15
- package/dist/cli/{chunk-WOU2WS6S.js → chunk-VZ4S5JRC.js} +23 -23
- package/dist/cli/{chunk-AOMVAXGX.js → chunk-W3HLZ24Q.js} +10 -10
- package/dist/cli/{chunk-XD4MT4BH.js → chunk-W3RHISD6.js} +8 -8
- package/dist/cli/{chunk-YDM5WSXO.mjs → chunk-W742U53L.mjs} +5 -5
- package/dist/cli/{chunk-AD7BGMTL.mjs → chunk-X6F4XOT2.mjs} +2 -2
- package/dist/cli/{chunk-YQ36Z23U.js → chunk-XNJXRS3B.js} +2 -2
- package/dist/cli/{chunk-C3FHMJ4A.js → chunk-XVQE6IBS.js} +2 -2
- package/dist/cli/{chunk-73P76DCN.js → chunk-YOST7EJF.js} +20 -20
- package/dist/cli/{concurrent-runs-help-VPYB4ODC.mjs → concurrent-runs-help-5BKCGFGL.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-KGELXJIQ.js +22 -0
- package/dist/cli/{csv-GHGDSFNV.js → csv-7ZAWND7L.js} +13 -13
- package/dist/cli/{csv-RALLG3MG.mjs → csv-MO5WZZDN.mjs} +4 -4
- package/dist/cli/{db-722SKSIB.js → db-36LX7JBQ.js} +27 -27
- package/dist/cli/{db-HB65VYRR.mjs → db-OYMULINA.mjs} +6 -6
- package/dist/cli/describe-AVGE4MH6.js +50 -0
- package/dist/cli/{describe-Q6M7PUBU.mjs → describe-JLAERB6X.mjs} +18 -18
- package/dist/cli/{executions-GQNV3LNU.js → executions-AQ32J4BZ.js} +8 -8
- package/dist/cli/{executions-G3M75HW2.mjs → executions-IZAB2XNC.mjs} +6 -6
- package/dist/cli/{feedback-B43F2FBL.js → feedback-3IV54HOH.js} +14 -14
- package/dist/cli/{feedback-CSDBYSRS.mjs → feedback-WA6EBE5H.mjs} +6 -6
- package/dist/cli/{git-IZ4Y3RAW.mjs → git-OSLU6HIK.mjs} +5 -5
- package/dist/cli/git-VOFO6V5W.js +26 -0
- package/dist/cli/index.js +143 -143
- package/dist/cli/index.mjs +45 -45
- package/dist/cli/{integrations-OLCUWZ6Z.js → integrations-65SYNL53.js} +29 -29
- package/dist/cli/{integrations-DT7EGM2Y.mjs → integrations-WOXFOC4M.mjs} +7 -7
- package/dist/cli/{legacy-noops-FTGNTO3U.js → legacy-noops-3SGXDAV6.js} +9 -9
- package/dist/cli/{legacy-noops-4TPT534L.mjs → legacy-noops-4FNG2JY3.mjs} +6 -6
- package/dist/cli/{mcp-3IDWLBKK.js → mcp-PX27RHCY.js} +24 -24
- package/dist/cli/{mcp-5KDJJT7M.mjs → mcp-RZLWMZHH.mjs} +4 -4
- package/dist/cli/{monitors-7GOZBKJR.js → monitors-F5BLGS4R.js} +100 -100
- package/dist/cli/{monitors-EOAA5RQO.mjs → monitors-VK2LW7VU.mjs} +7 -7
- package/dist/cli/{org-H5I56A4F.mjs → org-7AEBTN6Y.mjs} +6 -6
- package/dist/cli/{org-UJ5SWQJ5.js → org-UU3V7U4K.js} +121 -121
- package/dist/cli/{outcomes-MG57YXJX.mjs → outcomes-BWERSUJL.mjs} +6 -6
- package/dist/cli/{outcomes-24KFY2X5.js → outcomes-GCTBGPMK.js} +14 -14
- package/dist/cli/{play-PPPACSQE.js → play-7NBCCL26.js} +324 -324
- package/dist/cli/{play-MXPXRAUM.mjs → play-TX3RAAYS.mjs} +19 -19
- package/dist/cli/{providers-LTYNEXLB.js → providers-IL2IVKHB.js} +9 -9
- package/dist/cli/{providers-5ZN3MO6E.mjs → providers-KFWZXDCV.mjs} +6 -6
- package/dist/cli/{quickstart-UBDHX7PT.js → quickstart-MPA6TUK5.js} +6 -6
- package/dist/cli/{quickstart-ENDTTNLE.mjs → quickstart-RAMDGRRI.mjs} +4 -4
- package/dist/cli/{run-QJJSP35C.mjs → run-QNJSKPBN.mjs} +23 -23
- package/dist/cli/{run-6O6LQVWD.js → run-WBUSXBUS.js} +44 -44
- package/dist/cli/{search-PXZPVXDK.mjs → search-2X4P2FXR.mjs} +7 -7
- package/dist/cli/search-CJHG3VA4.js +32 -0
- package/dist/cli/{search-output-KRR4YOJX.mjs → search-output-MNJ4AQLV.mjs} +4 -4
- package/dist/cli/{search-output-H3ZQLJUF.js → search-output-P2WNCHA3.js} +6 -6
- package/dist/cli/{secrets-QZMXBI64.js → secrets-K5CNDUVR.js} +15 -15
- package/dist/cli/{secrets-HIGERL4N.mjs → secrets-XX54OU22.mjs} +6 -6
- package/dist/cli/sessions-3RMRBBJZ.js +23 -0
- package/dist/cli/{sessions-4SGQAX3F.mjs → sessions-C4GQ6ZVO.mjs} +6 -6
- package/dist/cli/{settings-UQLHVBOP.mjs → settings-7HBTADGW.mjs} +12 -12
- package/dist/cli/{settings-FFTTVDRV.js → settings-QP3DVFPS.js} +85 -85
- package/dist/cli/{setup-R5MBUG5M.mjs → setup-VPDAKY2G.mjs} +9 -9
- package/dist/cli/{setup-SS3MABJP.js → setup-X6J7U6B4.js} +49 -49
- package/dist/cli/skills-JUGXGSX2.js +37 -0
- package/dist/cli/{skills-X6PNEVWX.mjs → skills-UGY6W4AC.mjs} +7 -7
- package/dist/cli/{tools-YFW3FXAB.mjs → tools-SVBUAHDD.mjs} +17 -17
- package/dist/cli/tools-ZEI42NSP.js +57 -0
- package/dist/cli/{update-HX5BNFLQ.mjs → update-SDNKNDNW.mjs} +9 -9
- package/dist/cli/update-VC4UEGMR.js +37 -0
- package/dist/cli/{views-BGCRC22G.js → views-JBFSHQBU.js} +21 -21
- package/dist/cli/{views-FH5XL2PU.mjs → views-M6RBPC65.mjs} +6 -6
- package/dist/cli/{workflow-VLNDGNJI.mjs → workflow-RYVRAIHV.mjs} +7 -7
- package/dist/cli/{workflow-UY5PZBIK.js → workflow-UAMTGHQC.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +112 -112
- 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/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-FKYYYCME.js +0 -44
- package/dist/cli/concurrent-runs-help-VUMIMYO7.js +0 -22
- package/dist/cli/describe-SG2N62VE.js +0 -50
- package/dist/cli/git-IJHKRWTR.js +0 -26
- package/dist/cli/search-TYPJWK4I.js +0 -32
- package/dist/cli/sessions-OS4ZBU4K.js +0 -23
- package/dist/cli/skills-FVDSEEUL.js +0 -37
- package/dist/cli/tools-ORTGWD63.js +0 -57
- package/dist/cli/update-RWVNNNHN.js +0 -37
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
concurrentRunsLine
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-V2W7GX2I.mjs";
|
|
4
|
+
import "./chunk-UMP76GYQ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
DeeplineClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UFUXGMHL.mjs";
|
|
8
8
|
import {
|
|
9
9
|
PUBLIC_PLAN_SKUS,
|
|
10
10
|
iterateCursorPages,
|
|
11
11
|
requireBillingIdempotencyKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PQ6PM4V6.mjs";
|
|
13
13
|
import "./chunk-FZHMNK6F.mjs";
|
|
14
14
|
import "./chunk-5TYLSS4Q.mjs";
|
|
15
15
|
import "./chunk-PSX3WHIH.mjs";
|
|
@@ -32,9 +32,9 @@ import {
|
|
|
32
32
|
openInBrowser,
|
|
33
33
|
printCommandEnvelope,
|
|
34
34
|
shouldEmitJson
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-I4WKB3HO.mjs";
|
|
36
|
+
import "./chunk-AJO3I3LL.mjs";
|
|
37
|
+
import "./chunk-JEI7PHET.mjs";
|
|
38
38
|
import {
|
|
39
39
|
AuthError,
|
|
40
40
|
ConfigError
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
DeeplineError
|
|
45
45
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
46
46
|
import "./chunk-2MGZAI54.mjs";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-EDAG7ZU4.mjs";
|
|
48
48
|
import "./chunk-WZYKRD7T.mjs";
|
|
49
49
|
import "./chunk-KRD6H754.mjs";
|
|
50
50
|
|
|
@@ -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(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkW3RHISD6js = require('./chunk-W3RHISD6.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkITQPBWDSjs = require('./chunk-ITQPBWDS.js');
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -137,9 +137,9 @@ async function pinLocalPlayImports(client, graph) {
|
|
|
137
137
|
|
|
138
138
|
// src/plays/client.ts
|
|
139
139
|
function createPlayClient(options) {
|
|
140
|
-
const config =
|
|
141
|
-
return new (0,
|
|
142
|
-
new (0,
|
|
140
|
+
const config = _chunkITQPBWDSjs.resolveConfig.call(void 0, options);
|
|
141
|
+
return new (0, _chunkW3RHISD6js.PlayClient)(
|
|
142
|
+
new (0, _chunkITQPBWDSjs.HttpClient)(config),
|
|
143
143
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
144
144
|
);
|
|
145
145
|
}
|
|
@@ -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 _chunkPRDCU7BYjs = require('./chunk-PRDCU7BY.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 && !_chunkPRDCU7BYjs.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 (_chunkPRDCU7BYjs.isJsonOutputMode.call(void 0, )) return;
|
|
63
63
|
if (!this.enabled) {
|
|
64
64
|
process.stderr.write(`${line}
|
|
65
65
|
`);
|
|
@@ -9,7 +9,7 @@ var _chunkLHPYCJNLjs = require('./chunk-LHPYCJNL.js');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkPRDCU7BYjs = require('./chunk-PRDCU7BY.js');
|
|
13
13
|
|
|
14
14
|
// src/cli/describe-options.ts
|
|
15
15
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -250,7 +250,7 @@ function projectRunDatasetCell(value) {
|
|
|
250
250
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
251
251
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
252
252
|
if (typeof logicalValue === "object") {
|
|
253
|
-
return
|
|
253
|
+
return _chunkPRDCU7BYjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
254
254
|
}
|
|
255
255
|
return logicalValue;
|
|
256
256
|
}
|
|
@@ -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 _chunkPRDCU7BYjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
|
|
646
646
|
}
|
|
647
647
|
function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
|
|
648
648
|
let temp;
|
|
@@ -770,7 +770,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
|
|
|
770
770
|
};
|
|
771
771
|
if (options.receiptOut && !skipReceiptFile) {
|
|
772
772
|
persist(options.receiptOut, jsonText(receipt));
|
|
773
|
-
|
|
773
|
+
_chunkPRDCU7BYjs.markJsonOutputHandled.call(void 0, );
|
|
774
774
|
} else {
|
|
775
775
|
printReceipt(receipt, options, {
|
|
776
776
|
data: hasData ? result.data : void 0,
|
|
@@ -939,7 +939,7 @@ function receiptText(receipt, options, extra) {
|
|
|
939
939
|
problems.push(
|
|
940
940
|
`Error: ${record(error) && typeof error.message === "string" ? error.message : JSON.stringify(error)}`
|
|
941
941
|
);
|
|
942
|
-
const diagnostic =
|
|
942
|
+
const diagnostic = _chunkPRDCU7BYjs.formatCliFailureDiagnostic.call(void 0, error);
|
|
943
943
|
if (diagnostic) problems.push(...diagnostic.split("\n"));
|
|
944
944
|
if (record(error) && typeof error.recoveryFile === "string") {
|
|
945
945
|
problems.push(
|
|
@@ -1032,8 +1032,8 @@ function printReceipt(receipt, options, extra) {
|
|
|
1032
1032
|
const text = options.receiptJson ? `${JSON.stringify(receipt, null, 2)}
|
|
1033
1033
|
` : receiptText(receipt, options, extra);
|
|
1034
1034
|
if (options.receiptOut !== void 0) {
|
|
1035
|
-
|
|
1036
|
-
|
|
1035
|
+
_chunkPRDCU7BYjs.writeRawStderr.call(void 0, text);
|
|
1036
|
+
_chunkPRDCU7BYjs.markJsonOutputHandled.call(void 0, );
|
|
1037
1037
|
} else {
|
|
1038
1038
|
(dataOnStdout(options) ? process.stderr : process.stdout).write(text);
|
|
1039
1039
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkPRDCU7BYjs = require('./chunk-PRDCU7BY.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -22,14 +22,14 @@ var _chunk6N3NTEJ6js = require('./chunk-6N3NTEJ6.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkITQPBWDSjs = require('./chunk-ITQPBWDS.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkFGBX2WVJjs = require('./chunk-FGBX2WVJ.js');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.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 _chunkITQPBWDSjs.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 = _chunkITQPBWDSjs.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 `${_chunkITQPBWDSjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
|
|
87
87
|
}
|
|
88
88
|
function legacyPendingClaimTokenPath(baseUrl) {
|
|
89
|
-
return `${
|
|
89
|
+
return `${_chunkITQPBWDSjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
|
|
90
90
|
}
|
|
91
91
|
function savePendingClaim(baseUrl, claim) {
|
|
92
92
|
const filePath = pendingClaimPath(baseUrl, claim.scope);
|
|
@@ -191,21 +191,21 @@ function parseRegisterWaitMode(args) {
|
|
|
191
191
|
function shouldWaitForRegisterClaim(mode) {
|
|
192
192
|
if (mode === "yes") return true;
|
|
193
193
|
if (mode === "no") return false;
|
|
194
|
-
return
|
|
194
|
+
return _chunkFGBX2WVJjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
195
195
|
}
|
|
196
196
|
function saveEnvValues(values, baseUrl, scope) {
|
|
197
197
|
const filtered = {
|
|
198
|
-
...values[
|
|
199
|
-
...values[
|
|
200
|
-
...values[
|
|
201
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
198
|
+
...values[_chunkITQPBWDSjs.HOST_URL_ENV] ? { [_chunkITQPBWDSjs.HOST_URL_ENV]: values[_chunkITQPBWDSjs.HOST_URL_ENV] } : {},
|
|
199
|
+
...values[_chunkITQPBWDSjs.API_KEY_ENV] ? { [_chunkITQPBWDSjs.API_KEY_ENV]: values[_chunkITQPBWDSjs.API_KEY_ENV] } : {},
|
|
200
|
+
...values[_chunkITQPBWDSjs.ACTIVE_ORG_ID_ENV] ? { [_chunkITQPBWDSjs.ACTIVE_ORG_ID_ENV]: values[_chunkITQPBWDSjs.ACTIVE_ORG_ID_ENV] } : {},
|
|
201
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkITQPBWDSjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkITQPBWDSjs.ACTIVE_ORG_NAME_ENV]: values[_chunkITQPBWDSjs.ACTIVE_ORG_NAME_ENV] } : {},
|
|
202
202
|
// An explicit empty list must reach the store: it clears a stale line.
|
|
203
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
203
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkITQPBWDSjs.FEATURES_ENV) ? { [_chunkITQPBWDSjs.FEATURES_ENV]: values[_chunkITQPBWDSjs.FEATURES_ENV] } : {}
|
|
204
204
|
};
|
|
205
205
|
if (scope === "folder") {
|
|
206
|
-
|
|
206
|
+
_chunkITQPBWDSjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
|
|
207
207
|
} else {
|
|
208
|
-
|
|
208
|
+
_chunkITQPBWDSjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
function activeOrgEnvValues(data) {
|
|
@@ -213,21 +213,21 @@ function activeOrgEnvValues(data) {
|
|
|
213
213
|
if (!orgId) return {};
|
|
214
214
|
const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
|
|
215
215
|
return {
|
|
216
|
-
[
|
|
217
|
-
[
|
|
218
|
-
...
|
|
216
|
+
[_chunkITQPBWDSjs.ACTIVE_ORG_ID_ENV]: orgId,
|
|
217
|
+
[_chunkITQPBWDSjs.ACTIVE_ORG_NAME_ENV]: orgName,
|
|
218
|
+
..._chunkITQPBWDSjs.featureEnvValues.call(void 0, data)
|
|
219
219
|
};
|
|
220
220
|
}
|
|
221
221
|
async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
|
|
222
222
|
const headers = {
|
|
223
223
|
"Content-Type": "application/json",
|
|
224
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
224
|
+
"User-Agent": `deepline-ts-sdk/${_chunkFGBX2WVJjs.SDK_VERSION}`,
|
|
225
225
|
"X-Deepline-Client-Family": "sdk",
|
|
226
226
|
"X-Deepline-CLI-Family": "sdk",
|
|
227
|
-
"X-Deepline-Agent-Runtime":
|
|
228
|
-
"X-Deepline-CLI-Version":
|
|
229
|
-
"X-Deepline-SDK-Version":
|
|
230
|
-
"X-Deepline-API-Contract":
|
|
227
|
+
"X-Deepline-Agent-Runtime": _chunkFGBX2WVJjs.detectAgentRuntime.call(void 0, ),
|
|
228
|
+
"X-Deepline-CLI-Version": _chunkFGBX2WVJjs.SDK_VERSION,
|
|
229
|
+
"X-Deepline-SDK-Version": _chunkFGBX2WVJjs.SDK_VERSION,
|
|
230
|
+
"X-Deepline-API-Contract": _chunkFGBX2WVJjs.SDK_API_CONTRACT
|
|
231
231
|
};
|
|
232
232
|
if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
|
|
233
233
|
const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
|
|
@@ -266,10 +266,10 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
|
|
|
266
266
|
if (failure.name === "AbortError" || failure.name === "TimeoutError") {
|
|
267
267
|
throw failure;
|
|
268
268
|
}
|
|
269
|
-
const causeCode =
|
|
269
|
+
const causeCode = _chunkFGBX2WVJjs.networkCauseCode.call(void 0, failure);
|
|
270
270
|
throw Object.assign(
|
|
271
271
|
new (0, _chunkLFQJW4S2js.DeeplineError)(
|
|
272
|
-
|
|
272
|
+
_chunkFGBX2WVJjs.connectionFailureMessage.call(void 0, new URL(url).origin, failure),
|
|
273
273
|
void 0,
|
|
274
274
|
"NETWORK_ERROR",
|
|
275
275
|
causeCode ? { causeCode } : void 0
|
|
@@ -286,7 +286,7 @@ async function readStatusBanner(baseUrl) {
|
|
|
286
286
|
return _optionalChain([response, 'optionalAccess', _11 => _11.status]) === 200 ? _nullishCoalesce(response.data.banner, () => ( null)) : null;
|
|
287
287
|
}
|
|
288
288
|
async function reportSetupCompleted(input) {
|
|
289
|
-
const apiKey = input.authScope === "folder" ?
|
|
289
|
+
const apiKey = input.authScope === "folder" ? _chunkITQPBWDSjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkITQPBWDSjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
290
290
|
if (!apiKey) return;
|
|
291
291
|
try {
|
|
292
292
|
await httpJson(
|
|
@@ -415,7 +415,7 @@ function endClaimPollOnRefusal(status, data, baseUrl, authScope) {
|
|
|
415
415
|
return EXIT_SERVER;
|
|
416
416
|
}
|
|
417
417
|
async function handleRegister(args, options) {
|
|
418
|
-
const baseUrl =
|
|
418
|
+
const baseUrl = _chunkITQPBWDSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
419
419
|
let orgName = "";
|
|
420
420
|
let orgId = "";
|
|
421
421
|
let agentName = "";
|
|
@@ -486,14 +486,14 @@ async function handleRegister(args, options) {
|
|
|
486
486
|
savePendingClaim(baseUrl, pendingClaim);
|
|
487
487
|
saveEnvValues(
|
|
488
488
|
{
|
|
489
|
-
[
|
|
489
|
+
[_chunkITQPBWDSjs.HOST_URL_ENV]: baseUrl
|
|
490
490
|
},
|
|
491
491
|
baseUrl,
|
|
492
492
|
authScope
|
|
493
493
|
);
|
|
494
494
|
}
|
|
495
495
|
if (claimUrl && !_optionalChain([options, 'optionalAccess', _16 => _16.delegatedApproval])) {
|
|
496
|
-
const shouldOpen = waitMode !== "no" &&
|
|
496
|
+
const shouldOpen = waitMode !== "no" && _chunkFGBX2WVJjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
497
497
|
console.log(" Open this approval page in your browser:");
|
|
498
498
|
console.log(` ${claimUrl}`);
|
|
499
499
|
if (pendingClaim.device) {
|
|
@@ -501,7 +501,7 @@ async function handleRegister(args, options) {
|
|
|
501
501
|
` Click Approve if the page shows ${pendingClaim.device.userCode}.`
|
|
502
502
|
);
|
|
503
503
|
}
|
|
504
|
-
const opened = shouldOpen &&
|
|
504
|
+
const opened = shouldOpen && _chunkPRDCU7BYjs.openInBrowser.call(void 0, claimUrl) === "opened";
|
|
505
505
|
if (claimToken && pendingClaim.approvalLinkReporting) {
|
|
506
506
|
await reportApprovalLinkShown(
|
|
507
507
|
baseUrl,
|
|
@@ -554,8 +554,8 @@ async function handleRegister(args, options) {
|
|
|
554
554
|
if (apiKey) {
|
|
555
555
|
saveEnvValues(
|
|
556
556
|
{
|
|
557
|
-
[
|
|
558
|
-
[
|
|
557
|
+
[_chunkITQPBWDSjs.HOST_URL_ENV]: baseUrl,
|
|
558
|
+
[_chunkITQPBWDSjs.API_KEY_ENV]: apiKey,
|
|
559
559
|
...activeOrgEnvValues(statusData)
|
|
560
560
|
},
|
|
561
561
|
baseUrl,
|
|
@@ -577,7 +577,7 @@ async function handleRegister(args, options) {
|
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
async function handleWait(args, options) {
|
|
580
|
-
const baseUrl =
|
|
580
|
+
const baseUrl = _chunkITQPBWDSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
581
581
|
let timeoutSeconds = 300;
|
|
582
582
|
let requestedScope;
|
|
583
583
|
if (args.includes("--auth-scope")) {
|
|
@@ -601,7 +601,7 @@ async function handleWait(args, options) {
|
|
|
601
601
|
const authScope = resumed.scope;
|
|
602
602
|
const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _18 => _18.claimToken]), () => ( ""));
|
|
603
603
|
if (!pendingClaim) {
|
|
604
|
-
const scopedApiKey = authScope === "folder" ?
|
|
604
|
+
const scopedApiKey = authScope === "folder" ? _chunkITQPBWDSjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkITQPBWDSjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
605
605
|
if (scopedApiKey) {
|
|
606
606
|
if (!_optionalChain([options, 'optionalAccess', _19 => _19.quiet])) console.log("Already connected.");
|
|
607
607
|
return EXIT_OK;
|
|
@@ -664,8 +664,8 @@ async function handleWait(args, options) {
|
|
|
664
664
|
if (apiKey) {
|
|
665
665
|
saveEnvValues(
|
|
666
666
|
{
|
|
667
|
-
[
|
|
668
|
-
[
|
|
667
|
+
[_chunkITQPBWDSjs.HOST_URL_ENV]: baseUrl,
|
|
668
|
+
[_chunkITQPBWDSjs.API_KEY_ENV]: apiKey,
|
|
669
669
|
...activeOrgEnvValues(data)
|
|
670
670
|
},
|
|
671
671
|
baseUrl,
|
|
@@ -695,8 +695,8 @@ async function handleWait(args, options) {
|
|
|
695
695
|
return EXIT_AUTH;
|
|
696
696
|
}
|
|
697
697
|
async function authStatusLine(timeoutMs = 3e3) {
|
|
698
|
-
const baseUrl =
|
|
699
|
-
const apiKey =
|
|
698
|
+
const baseUrl = _chunkITQPBWDSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
699
|
+
const apiKey = _chunkITQPBWDSjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
700
700
|
if (!apiKey) return `Auth: not connected (${baseUrl})`;
|
|
701
701
|
try {
|
|
702
702
|
const { status, data } = await httpJson(
|
|
@@ -719,9 +719,9 @@ async function authStatusLine(timeoutMs = 3e3) {
|
|
|
719
719
|
}
|
|
720
720
|
}
|
|
721
721
|
async function handleStatus(args) {
|
|
722
|
-
const baseUrl =
|
|
722
|
+
const baseUrl = _chunkITQPBWDSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
723
723
|
const reveal = args.includes("--reveal");
|
|
724
|
-
const jsonOutput =
|
|
724
|
+
const jsonOutput = _chunkPRDCU7BYjs.argsWantJson.call(void 0, args);
|
|
725
725
|
const hasExplicitAuthScope = args.includes("--auth-scope");
|
|
726
726
|
let authScope = null;
|
|
727
727
|
if (hasExplicitAuthScope) {
|
|
@@ -762,14 +762,14 @@ async function handleStatus(args) {
|
|
|
762
762
|
};
|
|
763
763
|
hostLines.push(`Host: ${baseUrl} (unreachable)`);
|
|
764
764
|
}
|
|
765
|
-
const apiKey = authScope === "folder" ?
|
|
765
|
+
const apiKey = authScope === "folder" ? _chunkITQPBWDSjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkITQPBWDSjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkITQPBWDSjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
766
766
|
if (!apiKey) {
|
|
767
767
|
const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
|
|
768
768
|
baseUrl,
|
|
769
769
|
_nullishCoalesce(authScope, () => ( void 0))
|
|
770
770
|
);
|
|
771
771
|
if (pendingClaim) {
|
|
772
|
-
|
|
772
|
+
_chunkPRDCU7BYjs.printCommandEnvelope.call(void 0,
|
|
773
773
|
{
|
|
774
774
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
775
775
|
status: "pending",
|
|
@@ -799,7 +799,7 @@ async function handleStatus(args) {
|
|
|
799
799
|
);
|
|
800
800
|
return EXIT_OK;
|
|
801
801
|
}
|
|
802
|
-
|
|
802
|
+
_chunkPRDCU7BYjs.printCommandEnvelope.call(void 0,
|
|
803
803
|
{
|
|
804
804
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
805
805
|
status: "not connected",
|
|
@@ -832,7 +832,7 @@ async function handleStatus(args) {
|
|
|
832
832
|
}
|
|
833
833
|
);
|
|
834
834
|
if (status === 401 || status === 403) {
|
|
835
|
-
|
|
835
|
+
_chunkPRDCU7BYjs.printCommandEnvelope.call(void 0,
|
|
836
836
|
{
|
|
837
837
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
838
838
|
status: "unauthorized",
|
|
@@ -859,7 +859,7 @@ async function handleStatus(args) {
|
|
|
859
859
|
console.error(`Auth status error (status ${status}).`);
|
|
860
860
|
return EXIT_SERVER;
|
|
861
861
|
}
|
|
862
|
-
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (
|
|
862
|
+
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkITQPBWDSjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
|
|
863
863
|
clearSatisfiedPendingClaim(
|
|
864
864
|
baseUrl,
|
|
865
865
|
resolvedAuthScope,
|
|
@@ -887,28 +887,28 @@ async function handleStatus(args) {
|
|
|
887
887
|
if (apiKeyResp) {
|
|
888
888
|
saveEnvValues(
|
|
889
889
|
{
|
|
890
|
-
[
|
|
891
|
-
[
|
|
890
|
+
[_chunkITQPBWDSjs.HOST_URL_ENV]: baseUrl,
|
|
891
|
+
[_chunkITQPBWDSjs.API_KEY_ENV]: apiKeyResp,
|
|
892
892
|
...activeOrgEnvValues(data)
|
|
893
893
|
},
|
|
894
894
|
baseUrl,
|
|
895
895
|
resolvedAuthScope
|
|
896
896
|
);
|
|
897
897
|
if (resolvedAuthScope === "folder") {
|
|
898
|
-
const target =
|
|
898
|
+
const target = _chunkITQPBWDSjs.resolveProjectPinTarget.call(void 0, );
|
|
899
899
|
savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
|
|
900
900
|
} else {
|
|
901
901
|
savedApiKeyPath = envFilePath(baseUrl);
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
|
-
} else if (resolvedAuthScope === "folder" ||
|
|
905
|
-
saveEnvValues(
|
|
904
|
+
} else if (resolvedAuthScope === "folder" || _chunkITQPBWDSjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
|
|
905
|
+
saveEnvValues(_chunkITQPBWDSjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
|
|
906
906
|
}
|
|
907
|
-
|
|
907
|
+
_chunkPRDCU7BYjs.printCommandEnvelope.call(void 0,
|
|
908
908
|
{
|
|
909
909
|
...payload,
|
|
910
|
-
...
|
|
911
|
-
command_context:
|
|
910
|
+
..._chunkFGBX2WVJjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
|
|
911
|
+
command_context: _chunkITQPBWDSjs.resolveCliCommandContext.call(void 0,
|
|
912
912
|
{ baseUrl, apiKey },
|
|
913
913
|
resolvedAuthScope
|
|
914
914
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkEL4LME5Yjs = require('./chunk-EL4LME5Y.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/npm-script-policy.ts
|
|
6
6
|
var _child_process = require('child_process');
|
|
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
|
|
|
13
13
|
}
|
|
14
14
|
function readNpmVersion(env) {
|
|
15
15
|
try {
|
|
16
|
-
const plan =
|
|
16
|
+
const plan = _chunkEL4LME5Yjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
|
|
17
17
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
18
18
|
windowsHide: true,
|
|
19
19
|
encoding: "utf8",
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-I4WKB3HO.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AJO3I3LL.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -1,11 +1,11 @@
|
|
|
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; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkXVQE6IBSjs = require('./chunk-XVQE6IBS.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkEL4LME5Yjs = require('./chunk-EL4LME5Y.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -18,18 +18,18 @@ function usesCliPlayAdmission(command, args) {
|
|
|
18
18
|
}
|
|
19
19
|
async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured", signal) {
|
|
20
20
|
_optionalChain([signal, 'optionalAccess', _ => _.throwIfAborted, 'call', _2 => _2()]);
|
|
21
|
-
if (maintenancePolicy !== "off")
|
|
22
|
-
const compatibility = await
|
|
21
|
+
if (maintenancePolicy !== "off") _chunkEL4LME5Yjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
22
|
+
const compatibility = await _chunkXVQE6IBSjs.traceCliSpan.call(void 0,
|
|
23
23
|
"cli.sdk_compatibility",
|
|
24
24
|
{ baseUrl, command: "plays run" },
|
|
25
|
-
() =>
|
|
25
|
+
() => _chunkEL4LME5Yjs.requireSdkCompatibility.call(void 0, baseUrl, {
|
|
26
26
|
command: "plays run",
|
|
27
27
|
persistCache: maintenancePolicy !== "off",
|
|
28
28
|
signal
|
|
29
29
|
})
|
|
30
30
|
);
|
|
31
31
|
_optionalChain([signal, 'optionalAccess', _3 => _3.throwIfAborted, 'call', _4 => _4()]);
|
|
32
|
-
|
|
32
|
+
_chunkEL4LME5Yjs.enforceSdkCompatibilityResponse.call(void 0, compatibility, {
|
|
33
33
|
quietAdvisory: true
|
|
34
34
|
});
|
|
35
35
|
}
|
|
@@ -4,22 +4,22 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-W742U53L.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment,
|
|
10
10
|
resolveShellSpawn,
|
|
11
11
|
syncSdkSkillsIfNeeded
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-CYW6PE3G.mjs";
|
|
13
13
|
import {
|
|
14
14
|
addJsonNotice,
|
|
15
15
|
isJsonOutputMode
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-I4WKB3HO.mjs";
|
|
17
17
|
import {
|
|
18
18
|
resolveApiKeyForBaseUrl
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-AJO3I3LL.mjs";
|
|
20
20
|
import {
|
|
21
21
|
SDK_VERSION
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JEI7PHET.mjs";
|
|
23
23
|
|
|
24
24
|
// src/cli/compatibility-catalog.ts
|
|
25
25
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JJEN7TRR.mjs";
|
|
4
4
|
import {
|
|
5
5
|
maybeReportAutomaticSkillsSyncFailure
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-I4WKB3HO.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_MAX_RETRIES,
|
|
9
9
|
DEFAULT_SKILL_AGENTS,
|
|
@@ -18,20 +18,20 @@ import {
|
|
|
18
18
|
sdkCliStateDirPath,
|
|
19
19
|
skillsAgentPathSegment,
|
|
20
20
|
writeSdkSkillsLocalVersion
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-AJO3I3LL.mjs";
|
|
22
22
|
import {
|
|
23
23
|
SDK_API_CONTRACT,
|
|
24
24
|
SDK_API_MAJOR,
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
deploymentProtectionHeaders,
|
|
27
27
|
detectAgentRuntime
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-JEI7PHET.mjs";
|
|
29
29
|
import {
|
|
30
30
|
DeeplineError
|
|
31
31
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
32
32
|
import {
|
|
33
33
|
SDK_RELEASE
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-EDAG7ZU4.mjs";
|
|
35
35
|
|
|
36
36
|
// src/compat.ts
|
|
37
37
|
import { randomUUID } from "crypto";
|
|
@@ -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.572",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "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."
|