deepline 0.3.572 → 0.3.574
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/config.ts +19 -0
- package/dist/bundling-sources/sdk/src/play.ts +7 -4
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +8 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +43 -7
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +56 -20
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +4 -3
- package/dist/cli/agents-6WN5LYUP.mjs +833 -0
- package/dist/cli/agents-7ZZSF4FS.js +833 -0
- package/dist/cli/{auth-YUDM3YOC.mjs → auth-I2QVO677.mjs} +5 -5
- package/dist/cli/auth-UKPV5U2B.js +44 -0
- package/dist/cli/{billing-F3ZGOWKL.js → billing-44QFBUWA.js} +106 -106
- package/dist/cli/{billing-O7WUC4TU.mjs → billing-YPH4GEWU.mjs} +10 -10
- package/dist/cli/{chunk-ITQPBWDS.js → chunk-2QYU57RG.js} +15 -7
- package/dist/cli/{chunk-LBNP52C4.js → chunk-2RPRSTHD.js} +5 -5
- package/dist/cli/{chunk-I4WKB3HO.mjs → chunk-2TMAKJBT.mjs} +2 -2
- package/dist/cli/{chunk-PQ6PM4V6.mjs → chunk-4T2U72SP.mjs} +1 -1
- package/dist/cli/{chunk-HYCJNHZ4.js → chunk-5E2PAGF5.js} +27 -20
- package/dist/cli/{chunk-W3HLZ24Q.js → chunk-6B5EZOI3.js} +10 -10
- package/dist/cli/{chunk-YOST7EJF.js → chunk-6GZIT3TH.js} +20 -20
- package/dist/cli/{chunk-72WI67H4.mjs → chunk-7334X74C.mjs} +2 -2
- package/dist/cli/{chunk-PI4TKE2B.js → chunk-7GQU46SZ.js} +26 -26
- package/dist/cli/{chunk-NOKSEYMS.js → chunk-7UR57HPJ.js} +1 -1
- package/dist/cli/{chunk-6ASDTHEN.js → chunk-AFPGYZBH.js} +21 -17
- package/dist/cli/{chunk-V2W7GX2I.mjs → chunk-B2XLIQPH.mjs} +3 -3
- package/dist/cli/{chunk-XNJXRS3B.js → chunk-BUBOZKH2.js} +2 -2
- package/dist/cli/{chunk-K4LAEKHS.js → chunk-D6ZVRKJ2.js} +41 -41
- package/dist/cli/{chunk-5VUD7HGD.js → chunk-DG56RWI2.js} +2 -2
- package/dist/cli/{chunk-UKD5ZBQD.js → chunk-DOZIWA66.js} +7 -7
- package/dist/cli/{chunk-EKWDSE6H.mjs → chunk-DX646HO7.mjs} +4 -4
- package/dist/cli/{chunk-43GCEVHO.js → chunk-ECLCRE5P.js} +3 -3
- package/dist/cli/{chunk-UUYB6IXC.js → chunk-G2HW2SAP.js} +13 -13
- package/dist/cli/{chunk-BWWDU6FN.mjs → chunk-G7OR3GVD.mjs} +5 -5
- package/dist/cli/{chunk-UQWYDNGB.mjs → chunk-GMQZFWQU.mjs} +17 -10
- package/dist/cli/{chunk-VGPHXXPI.js → chunk-H7PVSG3L.js} +15 -15
- package/dist/cli/{chunk-EL4LME5Y.js → chunk-I62ZBEKH.js} +48 -48
- package/dist/cli/{chunk-QA733N7N.mjs → chunk-IA2LTIWO.mjs} +2 -2
- package/dist/cli/{chunk-FGBX2WVJ.js → chunk-IB225ZK4.js} +4 -4
- package/dist/cli/{chunk-VZ4S5JRC.js → chunk-ID3LGPOE.js} +23 -23
- package/dist/cli/{chunk-LHPYCJNL.js → chunk-IXYVHTRZ.js} +19 -6
- package/dist/cli/{chunk-64MOX3SN.mjs → chunk-JCO226JM.mjs} +111 -2
- package/dist/cli/{chunk-SJI56XPM.mjs → chunk-JY7RKJ65.mjs} +21 -16
- package/dist/cli/{chunk-N6KF6X3D.js → chunk-KSHZY52O.js} +114 -5
- package/dist/cli/{chunk-BM4GE67C.mjs → chunk-L2NXB4WG.mjs} +19 -6
- package/dist/cli/{chunk-UFUXGMHL.mjs → chunk-LCAXLGAY.mjs} +2 -2
- package/dist/cli/{chunk-AHNJGA6Z.js → chunk-LJLM4BUL.js} +6 -6
- package/dist/cli/{chunk-EKIWY5DD.mjs → chunk-LLSCFLFU.mjs} +1 -1
- package/dist/cli/{chunk-OUVQKSVC.mjs → chunk-MAMGREBW.mjs} +1 -1
- package/dist/cli/{chunk-CYW6PE3G.mjs → chunk-MGF3MK27.mjs} +5 -5
- package/dist/cli/{chunk-PZGK6EEB.js → chunk-N6I3BB2O.js} +280 -275
- package/dist/cli/{chunk-4W5EFHHY.js → chunk-NDDGFX4X.js} +11 -11
- package/dist/cli/{chunk-RIA73OAZ.mjs → chunk-NRVEVKXR.mjs} +2 -2
- package/dist/cli/{chunk-UY6Z3XWW.mjs → chunk-OH6WOID2.mjs} +2 -2
- package/dist/cli/{chunk-GX4VZL4Z.mjs → chunk-OIZUFRTE.mjs} +3 -3
- package/dist/cli/{chunk-3SFLY3T3.js → chunk-PP5RMEQQ.js} +5 -5
- package/dist/cli/{chunk-UMP76GYQ.mjs → chunk-PW6NKI2A.mjs} +3 -3
- package/dist/cli/{chunk-ENHQBPR5.mjs → chunk-Q3A53SWK.mjs} +4 -3
- package/dist/cli/{chunk-X6F4XOT2.mjs → chunk-QPSBV4FD.mjs} +2 -2
- package/dist/cli/{chunk-6R57HEPF.mjs → chunk-S22FSNNC.mjs} +1 -1
- package/dist/cli/{chunk-XVQE6IBS.js → chunk-SLXCVPN7.js} +2 -2
- package/dist/cli/{chunk-AJO3I3LL.mjs → chunk-SRUNYWQ2.mjs} +9 -1
- package/dist/cli/{chunk-5EMYPLTW.js → chunk-UXIUAIL2.js} +53 -53
- package/dist/cli/{chunk-MVQ5XGRO.mjs → chunk-VGIDPJXM.mjs} +3 -3
- package/dist/cli/{chunk-PRDCU7BY.js → chunk-VLUBEMWM.js} +20 -20
- package/dist/cli/{chunk-W3RHISD6.js → chunk-VYSUJMB5.js} +8 -8
- package/dist/cli/{chunk-W742U53L.mjs → chunk-W6UCS3O6.mjs} +5 -5
- package/dist/cli/{chunk-Q6H5RRTG.mjs → chunk-X7RKCAMX.mjs} +4 -4
- package/dist/cli/{chunk-TBLP7HDL.js → chunk-XMBTAPHR.js} +10 -9
- package/dist/cli/{chunk-EDAG7ZU4.mjs → chunk-XVBEEGI4.mjs} +1 -1
- package/dist/cli/{chunk-JJEN7TRR.mjs → chunk-YR4REP4D.mjs} +1 -1
- package/dist/cli/{chunk-QMIMGKR2.js → chunk-Z3XFXFRT.js} +9 -9
- package/dist/cli/{chunk-JEI7PHET.mjs → chunk-ZFXDD7VM.mjs} +1 -1
- package/dist/cli/{chunk-HUJMFETO.mjs → chunk-ZTCP5BHH.mjs} +7 -3
- package/dist/cli/command-docs.js +3 -3
- package/dist/cli/command-docs.mjs +2 -2
- package/dist/cli/concurrent-runs-help-BFVCUJF4.js +22 -0
- package/dist/cli/{concurrent-runs-help-5BKCGFGL.mjs → concurrent-runs-help-ROQM6UB3.mjs} +7 -7
- package/dist/cli/{csv-7ZAWND7L.js → csv-FWGSY4GE.js} +13 -13
- package/dist/cli/{csv-MO5WZZDN.mjs → csv-R7GV33BC.mjs} +4 -4
- package/dist/cli/{db-36LX7JBQ.js → db-OCH35YJG.js} +27 -27
- package/dist/cli/{db-OYMULINA.mjs → db-UWXA4RRV.mjs} +6 -6
- package/dist/cli/describe-6OI5K2SH.js +50 -0
- package/dist/cli/{describe-JLAERB6X.mjs → describe-QI4HMUGE.mjs} +21 -21
- package/dist/cli/describe-core.d.mts +4 -2
- package/dist/cli/describe-core.d.ts +4 -2
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-AQ32J4BZ.js → executions-7CFGC24E.js} +8 -8
- package/dist/cli/{executions-IZAB2XNC.mjs → executions-YF3KMZZN.mjs} +6 -6
- package/dist/cli/{feedback-WA6EBE5H.mjs → feedback-DWIWBS7O.mjs} +6 -6
- package/dist/cli/{feedback-3IV54HOH.js → feedback-YCZHHSBS.js} +14 -14
- package/dist/cli/git-TGLNZRS3.js +26 -0
- package/dist/cli/{git-OSLU6HIK.mjs → git-XCGMQQOD.mjs} +5 -5
- package/dist/cli/index.js +152 -148
- package/dist/cli/index.mjs +51 -47
- package/dist/cli/{integrations-WOXFOC4M.mjs → integrations-5ABAJBSW.mjs} +7 -7
- package/dist/cli/{integrations-65SYNL53.js → integrations-IEZA3TGK.js} +29 -29
- package/dist/cli/{legacy-noops-3SGXDAV6.js → legacy-noops-KNFLJ5P2.js} +9 -9
- package/dist/cli/{legacy-noops-4FNG2JY3.mjs → legacy-noops-OZMY73Y3.mjs} +6 -6
- package/dist/cli/{mcp-PX27RHCY.js → mcp-NLQAO7KP.js} +24 -24
- package/dist/cli/{mcp-RZLWMZHH.mjs → mcp-WSPFKQPZ.mjs} +4 -4
- package/dist/cli/{monitors-F5BLGS4R.js → monitors-BJYOB4S3.js} +100 -100
- package/dist/cli/{monitors-VK2LW7VU.mjs → monitors-LPKFFTOX.mjs} +7 -7
- package/dist/cli/{org-7AEBTN6Y.mjs → org-RYPMUYUW.mjs} +6 -6
- package/dist/cli/{org-UU3V7U4K.js → org-WIVHI4WT.js} +121 -121
- package/dist/cli/{outcomes-BWERSUJL.mjs → outcomes-FADJYC4I.mjs} +9 -7
- package/dist/cli/{outcomes-GCTBGPMK.js → outcomes-QKX7IE3O.js} +17 -15
- package/dist/cli/{play-TX3RAAYS.mjs → play-4ZKK5Q7U.mjs} +88 -33
- package/dist/cli/{play-7NBCCL26.js → play-ID73J3NP.js} +393 -338
- package/dist/cli/{providers-KFWZXDCV.mjs → providers-LURYBSNO.mjs} +6 -6
- package/dist/cli/{providers-IL2IVKHB.js → providers-WCCGYGW6.js} +9 -9
- package/dist/cli/{quickstart-RAMDGRRI.mjs → quickstart-KCCSEE5J.mjs} +4 -4
- package/dist/cli/{quickstart-MPA6TUK5.js → quickstart-LVPOU25V.js} +6 -6
- package/dist/cli/{run-WBUSXBUS.js → run-2QMJRCVA.js} +48 -48
- package/dist/cli/{run-QNJSKPBN.mjs → run-XXK7DDUF.mjs} +26 -26
- package/dist/cli/search-AQSAXA6D.js +32 -0
- package/dist/cli/{search-2X4P2FXR.mjs → search-ZYAWW3CK.mjs} +7 -7
- package/dist/cli/{search-output-MNJ4AQLV.mjs → search-output-N45AIOB4.mjs} +9 -6
- package/dist/cli/{search-output-P2WNCHA3.js → search-output-YNXAZSKT.js} +12 -9
- package/dist/cli/{secrets-XX54OU22.mjs → secrets-7Q3AOUAS.mjs} +6 -6
- package/dist/cli/{secrets-K5CNDUVR.js → secrets-MHT27L2M.js} +15 -15
- package/dist/cli/{sessions-C4GQ6ZVO.mjs → sessions-6QKOM7M3.mjs} +6 -6
- package/dist/cli/sessions-RGD7L4LC.js +23 -0
- package/dist/cli/{settings-7HBTADGW.mjs → settings-NPVIDENI.mjs} +12 -12
- package/dist/cli/{settings-QP3DVFPS.js → settings-OP7Q6YX6.js} +85 -85
- package/dist/cli/{setup-VPDAKY2G.mjs → setup-OOT3EIMF.mjs} +9 -9
- package/dist/cli/{setup-X6J7U6B4.js → setup-RT6GHL3W.js} +49 -49
- package/dist/cli/skills-ERAA734H.js +37 -0
- package/dist/cli/{skills-UGY6W4AC.mjs → skills-TEXI4CLZ.mjs} +7 -7
- package/dist/cli/tools-D5SZSIIH.js +57 -0
- package/dist/cli/{tools-SVBUAHDD.mjs → tools-G5L36M3X.mjs} +19 -19
- package/dist/cli/update-WZ6527EF.js +37 -0
- package/dist/cli/{update-SDNKNDNW.mjs → update-YNKQTE4D.mjs} +9 -9
- package/dist/cli/{views-M6RBPC65.mjs → views-IQFMUMLU.mjs} +6 -6
- package/dist/cli/{views-JBFSHQBU.js → views-OVQ5AQAU.js} +21 -21
- package/dist/cli/{workflow-UAMTGHQC.js → workflow-RCBYXIFZ.js} +17 -17
- package/dist/cli/{workflow-RYVRAIHV.mjs → workflow-Y5IFMI7N.mjs} +7 -7
- package/dist/{client-DCnExziW.d.ts → client-BrdMPFCM.d.ts} +1 -1
- package/dist/{client-ClJlqkKt.d.mts → client-CF-bsrtI.d.mts} +1 -1
- package/dist/{client-core-DAOPQnGD.d.mts → client-core-DM1ZedOG.d.mts} +8 -0
- package/dist/{client-core-BKq5ZNAl.d.ts → client-core-rMoUWSYM.d.ts} +8 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +128 -126
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- 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/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-PXIVGUVZ.js +0 -44
- package/dist/cli/concurrent-runs-help-KGELXJIQ.js +0 -22
- package/dist/cli/describe-AVGE4MH6.js +0 -50
- package/dist/cli/git-VOFO6V5W.js +0 -26
- package/dist/cli/search-CJHG3VA4.js +0 -32
- package/dist/cli/sessions-3RMRBBJZ.js +0 -23
- package/dist/cli/skills-JUGXGSX2.js +0 -37
- package/dist/cli/tools-ZEI42NSP.js +0 -57
- package/dist/cli/update-VC4UEGMR.js +0 -37
- /package/dist/cli/{chunk-2RIKOPIM.mjs → chunk-HECXJBED.mjs} +0 -0
- /package/dist/cli/{chunk-H4ALLC2X.js → chunk-TJCENACZ.js} +0 -0
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkIXYVHTRZjs = require('./chunk-IXYVHTRZ.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkVLUBEMWMjs = require('./chunk-VLUBEMWM.js');
|
|
13
13
|
|
|
14
14
|
// src/cli/describe-options.ts
|
|
15
15
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -27,7 +27,7 @@ function addDescribeOptions(command, options = {}) {
|
|
|
27
27
|
"Show only the in-play example, and explain how it takes inputs and returns outputs"
|
|
28
28
|
).option("--no-example", "Hide the run examples").option(
|
|
29
29
|
"--full-schema",
|
|
30
|
-
`Print every field: a long schema unfolded (over ${
|
|
30
|
+
`Print every field: a long schema unfolded (over ${_chunkIXYVHTRZjs.SCHEMA_LINE_LIMIT} lines), list rows, and a tool's raw response`
|
|
31
31
|
).option(
|
|
32
32
|
"--fields <names>",
|
|
33
33
|
"Show only these fields, comma-separated, plus every required input"
|
|
@@ -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 _chunkVLUBEMWMjs.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 _chunkVLUBEMWMjs.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
|
+
_chunkVLUBEMWMjs.markJsonOutputHandled.call(void 0, );
|
|
774
774
|
} else {
|
|
775
775
|
printReceipt(receipt, options, {
|
|
776
776
|
data: hasData ? result.data : void 0,
|
|
@@ -874,9 +874,9 @@ function annotated(schema, values) {
|
|
|
874
874
|
function shapeLines(title, data) {
|
|
875
875
|
const schema = annotated(observedSchema(data), [data]);
|
|
876
876
|
const block = (heading, fieldSchema) => {
|
|
877
|
-
const { lines, folded } =
|
|
877
|
+
const { lines, folded } = _chunkIXYVHTRZjs.fieldBlockLines.call(void 0,
|
|
878
878
|
heading,
|
|
879
|
-
|
|
879
|
+
_chunkIXYVHTRZjs.schemaFields.call(void 0, fieldSchema)
|
|
880
880
|
);
|
|
881
881
|
return [
|
|
882
882
|
...lines,
|
|
@@ -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 = _chunkVLUBEMWMjs.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
|
+
_chunkVLUBEMWMjs.writeRawStderr.call(void 0, text);
|
|
1036
|
+
_chunkVLUBEMWMjs.markJsonOutputHandled.call(void 0, );
|
|
1037
1037
|
} else {
|
|
1038
1038
|
(dataOnStdout(options) ? process.stderr : process.stdout).write(text);
|
|
1039
1039
|
}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-MF7PCM6C.mjs";
|
|
4
4
|
import {
|
|
5
5
|
parseLogLevel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4T2U72SP.mjs";
|
|
7
7
|
import {
|
|
8
8
|
setDottedInputValue
|
|
9
9
|
} from "./chunk-5TYLSS4Q.mjs";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
argsWantJson,
|
|
12
12
|
jsonFieldArgs,
|
|
13
13
|
parseJsonFields
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2TMAKJBT.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError
|
|
17
17
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-S22FSNNC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
enforceSdkCompatibilityResponse,
|
|
6
6
|
flushDeferredSkillsSyncNotices,
|
|
7
7
|
requireSdkCompatibility
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MGF3MK27.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rejectRestrictedFeedback
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LLSCFLFU.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getAuthedHttpClient,
|
|
6
6
|
printCommandEnvelope
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2TMAKJBT.mjs";
|
|
8
8
|
import {
|
|
9
9
|
agentSessionIdFromEnvironment,
|
|
10
10
|
claudeProjectsRoots,
|
|
11
11
|
coworkTranscriptFromEnvironment
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZFXDD7VM.mjs";
|
|
13
13
|
|
|
14
14
|
// src/cli/commands/sessions.ts
|
|
15
15
|
import {
|
|
@@ -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 _chunkVYSUJMB5js = require('./chunk-VYSUJMB5.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk2QYU57RGjs = require('./chunk-2QYU57RG.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 = _chunk2QYU57RGjs.resolveConfig.call(void 0, options);
|
|
141
|
+
return new (0, _chunkVYSUJMB5js.PlayClient)(
|
|
142
|
+
new (0, _chunk2QYU57RGjs.HttpClient)(config),
|
|
143
143
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
144
144
|
);
|
|
145
145
|
}
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2TMAKJBT.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-SRUNYWQ2.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-ZFXDD7VM.mjs";
|
|
33
33
|
import {
|
|
34
34
|
DeeplineError
|
|
35
35
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
rateLimitSummary,
|
|
3
3
|
schemaField,
|
|
4
4
|
schemaFields
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-L2NXB4WG.mjs";
|
|
6
6
|
import {
|
|
7
7
|
exampleInputFileLine,
|
|
8
8
|
exampleJsonInput,
|
|
@@ -468,8 +468,9 @@ function describedTool(tool, requestedToolId) {
|
|
|
468
468
|
description,
|
|
469
469
|
cost: [
|
|
470
470
|
stringField(cost, "displayText"),
|
|
471
|
-
// "Free (free)" says the same thing twice
|
|
472
|
-
|
|
471
|
+
// "Free (free)" says the same thing twice, as does "Uses your provided
|
|
472
|
+
// key. No Deepline charge. (your key)".
|
|
473
|
+
stringField(cost, "billingSource") === "own_provider_credentials" || billing.toLowerCase() === stringField(cost, "displayText").toLowerCase() || billing === "your key" ? "" : billing && `(${billing})`,
|
|
473
474
|
observedMaxText(cost) && `\u2014 ${observedMaxText(cost)}`
|
|
474
475
|
].filter(Boolean).join(" ") || void 0,
|
|
475
476
|
guidance: [
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PlayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4T2U72SP.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SRUNYWQ2.mjs";
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -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(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkVLUBEMWMjs = require('./chunk-VLUBEMWM.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/maintenance-policy.ts
|
|
6
6
|
var _commander = require('commander');
|
|
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
|
|
|
33
33
|
sinceStartMs: now - cliTraceStartedAt,
|
|
34
34
|
...event
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
_chunkVLUBEMWMjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HttpClient,
|
|
3
3
|
detectAgentRuntime
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZFXDD7VM.mjs";
|
|
5
5
|
import {
|
|
6
6
|
ConfigError
|
|
7
7
|
} from "./chunk-ASB47RXJ.mjs";
|
|
@@ -652,6 +652,13 @@ function activeOrganizationFromEnv(env) {
|
|
|
652
652
|
const orgName = env[ACTIVE_ORG_NAME_ENV]?.trim() || null;
|
|
653
653
|
return { org_id: orgId, org_name: orgName };
|
|
654
654
|
}
|
|
655
|
+
function resolveCliDashboardOrgId(baseUrl) {
|
|
656
|
+
const apiKey = resolveApiKeyForBaseUrl(baseUrl);
|
|
657
|
+
if (!apiKey) return null;
|
|
658
|
+
const normalized = normalizeBaseUrl(baseUrl);
|
|
659
|
+
if (!normalized) return null;
|
|
660
|
+
return resolveCliCommandContext({ baseUrl: normalized, apiKey }).active_organization?.org_id ?? null;
|
|
661
|
+
}
|
|
655
662
|
function resolveCliCommandContext(inputConfig, requestedScope) {
|
|
656
663
|
let config = inputConfig;
|
|
657
664
|
if (!config) {
|
|
@@ -881,6 +888,7 @@ export {
|
|
|
881
888
|
resolveProjectPinTarget,
|
|
882
889
|
getActiveProjectAuthSource,
|
|
883
890
|
resolveCliAuthProvenance,
|
|
891
|
+
resolveCliDashboardOrgId,
|
|
884
892
|
resolveCliCommandContext,
|
|
885
893
|
hasActivePluginSkills,
|
|
886
894
|
KNOWN_SKILL_AGENTS,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkVLUBEMWMjs = require('./chunk-VLUBEMWM.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -22,14 +22,14 @@ var _chunkPRDCU7BYjs = require('./chunk-PRDCU7BY.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunk2QYU57RGjs = require('./chunk-2QYU57RG.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkIB225ZK4js = require('./chunk-IB225ZK4.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 _chunk2QYU57RGjs.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 = _chunk2QYU57RGjs.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 `${_chunk2QYU57RGjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
|
|
87
87
|
}
|
|
88
88
|
function legacyPendingClaimTokenPath(baseUrl) {
|
|
89
|
-
return `${
|
|
89
|
+
return `${_chunk2QYU57RGjs.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 _chunkIB225ZK4js.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[_chunk2QYU57RGjs.HOST_URL_ENV] ? { [_chunk2QYU57RGjs.HOST_URL_ENV]: values[_chunk2QYU57RGjs.HOST_URL_ENV] } : {},
|
|
199
|
+
...values[_chunk2QYU57RGjs.API_KEY_ENV] ? { [_chunk2QYU57RGjs.API_KEY_ENV]: values[_chunk2QYU57RGjs.API_KEY_ENV] } : {},
|
|
200
|
+
...values[_chunk2QYU57RGjs.ACTIVE_ORG_ID_ENV] ? { [_chunk2QYU57RGjs.ACTIVE_ORG_ID_ENV]: values[_chunk2QYU57RGjs.ACTIVE_ORG_ID_ENV] } : {},
|
|
201
|
+
...Object.prototype.hasOwnProperty.call(values, _chunk2QYU57RGjs.ACTIVE_ORG_NAME_ENV) ? { [_chunk2QYU57RGjs.ACTIVE_ORG_NAME_ENV]: values[_chunk2QYU57RGjs.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, _chunk2QYU57RGjs.FEATURES_ENV) ? { [_chunk2QYU57RGjs.FEATURES_ENV]: values[_chunk2QYU57RGjs.FEATURES_ENV] } : {}
|
|
204
204
|
};
|
|
205
205
|
if (scope === "folder") {
|
|
206
|
-
|
|
206
|
+
_chunk2QYU57RGjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
|
|
207
207
|
} else {
|
|
208
|
-
|
|
208
|
+
_chunk2QYU57RGjs.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
|
+
[_chunk2QYU57RGjs.ACTIVE_ORG_ID_ENV]: orgId,
|
|
217
|
+
[_chunk2QYU57RGjs.ACTIVE_ORG_NAME_ENV]: orgName,
|
|
218
|
+
..._chunk2QYU57RGjs.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/${_chunkIB225ZK4js.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": _chunkIB225ZK4js.detectAgentRuntime.call(void 0, ),
|
|
228
|
+
"X-Deepline-CLI-Version": _chunkIB225ZK4js.SDK_VERSION,
|
|
229
|
+
"X-Deepline-SDK-Version": _chunkIB225ZK4js.SDK_VERSION,
|
|
230
|
+
"X-Deepline-API-Contract": _chunkIB225ZK4js.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 = _chunkIB225ZK4js.networkCauseCode.call(void 0, failure);
|
|
270
270
|
throw Object.assign(
|
|
271
271
|
new (0, _chunkLFQJW4S2js.DeeplineError)(
|
|
272
|
-
|
|
272
|
+
_chunkIB225ZK4js.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" ? _chunk2QYU57RGjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunk2QYU57RGjs.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 = _chunk2QYU57RGjs.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
|
+
[_chunk2QYU57RGjs.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" && _chunkIB225ZK4js.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 && _chunkVLUBEMWMjs.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
|
+
[_chunk2QYU57RGjs.HOST_URL_ENV]: baseUrl,
|
|
558
|
+
[_chunk2QYU57RGjs.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 = _chunk2QYU57RGjs.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" ? _chunk2QYU57RGjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunk2QYU57RGjs.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
|
+
[_chunk2QYU57RGjs.HOST_URL_ENV]: baseUrl,
|
|
668
|
+
[_chunk2QYU57RGjs.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 = _chunk2QYU57RGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
699
|
+
const apiKey = _chunk2QYU57RGjs.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 = _chunk2QYU57RGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
723
723
|
const reveal = args.includes("--reveal");
|
|
724
|
-
const jsonOutput =
|
|
724
|
+
const jsonOutput = _chunkVLUBEMWMjs.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" ? _chunk2QYU57RGjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunk2QYU57RGjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunk2QYU57RGjs.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
|
+
_chunkVLUBEMWMjs.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
|
+
_chunkVLUBEMWMjs.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
|
+
_chunkVLUBEMWMjs.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, () => ( (_chunk2QYU57RGjs.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
|
+
[_chunk2QYU57RGjs.HOST_URL_ENV]: baseUrl,
|
|
891
|
+
[_chunk2QYU57RGjs.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 = _chunk2QYU57RGjs.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" || _chunk2QYU57RGjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
|
|
905
|
+
saveEnvValues(_chunk2QYU57RGjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
|
|
906
906
|
}
|
|
907
|
-
|
|
907
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
908
908
|
{
|
|
909
909
|
...payload,
|
|
910
|
-
...
|
|
911
|
-
command_context:
|
|
910
|
+
..._chunkIB225ZK4js.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
|
|
911
|
+
command_context: _chunk2QYU57RGjs.resolveCliCommandContext.call(void 0,
|
|
912
912
|
{ baseUrl, apiKey },
|
|
913
913
|
resolvedAuthScope
|
|
914
914
|
)
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LCAXLGAY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2TMAKJBT.mjs";
|
|
7
7
|
import {
|
|
8
8
|
resolveConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SRUNYWQ2.mjs";
|
|
10
10
|
|
|
11
11
|
// src/cli/commands/integration-commands.ts
|
|
12
12
|
import { Option } from "commander";
|