deepline 0.3.478 → 0.3.480
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/integration-contracts/billing-entitlements.ts +11 -0
- package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +2 -1
- package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +57 -5
- package/dist/bundling-sources/shared_libs/product-notifications/slack-transport.ts +19 -0
- package/dist/cli/auth-7FOB243B.js +43 -0
- package/dist/cli/{auth-SA4DJCSO.mjs → auth-KMKFQX7X.mjs} +7 -5
- package/dist/cli/{billing-Z4D35MV5.mjs → billing-G3Y5FTQM.mjs} +6 -6
- package/dist/cli/{billing-462SAHWX.js → billing-R5RCTEW6.js} +79 -79
- package/dist/cli/{chunk-2FTUPGTN.mjs → chunk-2AYWC63S.mjs} +2 -2
- package/dist/cli/{chunk-PHBOI24Y.mjs → chunk-44TVNYYV.mjs} +10 -10
- package/dist/cli/{chunk-S3BKOCVB.js → chunk-4V6KEXCM.js} +1 -1
- package/dist/cli/{chunk-7HTWT3Z4.mjs → chunk-53LLOGNV.mjs} +2 -2
- package/dist/cli/{chunk-4C3TMIF3.mjs → chunk-57MJL2HU.mjs} +4 -4
- package/dist/cli/{chunk-D2LKEQKI.js → chunk-5IVGZCKY.js} +5 -5
- package/dist/cli/{chunk-N573OK4W.mjs → chunk-63QH6FL3.mjs} +4 -4
- package/dist/cli/{chunk-2MSKG4ER.js → chunk-6AYQK7Z6.js} +6 -6
- package/dist/cli/{chunk-2JS5DNVX.mjs → chunk-7LMLHUCP.mjs} +5 -5
- package/dist/cli/{chunk-PZHRNSMU.js → chunk-A3PZKD47.js} +21 -21
- package/dist/cli/{chunk-PPHHPAQV.mjs → chunk-AKCYZDBO.mjs} +1 -1
- package/dist/cli/{chunk-6EEMW7YP.js → chunk-APFFHSPL.js} +8 -8
- package/dist/cli/{chunk-TLF3KGWG.mjs → chunk-ASARTL6E.mjs} +2 -2
- package/dist/cli/{chunk-S7UEKKOX.mjs → chunk-DIDWIPMA.mjs} +1 -1
- package/dist/cli/{chunk-KBBZXWXF.js → chunk-DQYJXVAF.js} +4 -4
- package/dist/cli/{chunk-AQYSZYNE.js → chunk-FFSOXQEM.js} +8 -8
- package/dist/cli/{chunk-645RNF2Y.mjs → chunk-FZ42SO3Q.mjs} +1 -1
- package/dist/cli/{chunk-AYW242XF.js → chunk-FZX2DGQZ.js} +37 -37
- package/dist/cli/{chunk-JH775FF6.mjs → chunk-IQ6WL36K.mjs} +1 -1
- package/dist/cli/{chunk-F2SJYUBW.mjs → chunk-JBQKBDDN.mjs} +5 -5
- package/dist/cli/{chunk-V7I65ME7.js → chunk-JH77OHD5.js} +2 -2
- package/dist/cli/{chunk-VE25VUTE.js → chunk-K7E2DO5P.js} +96 -65
- package/dist/cli/{chunk-3V7INABZ.mjs → chunk-KQNQCZLB.mjs} +2 -2
- package/dist/cli/{chunk-XFY3JOP2.js → chunk-LBZLV6QF.js} +9 -9
- package/dist/cli/{chunk-SCHE5QRN.js → chunk-LHU6BMDV.js} +3 -3
- package/dist/cli/{chunk-3LTLQAU4.mjs → chunk-LLEBPM3N.mjs} +4 -4
- package/dist/cli/{chunk-QVZNUQAP.js → chunk-MEJJD7PA.js} +2 -2
- package/dist/cli/{chunk-F44O4PEP.mjs → chunk-MTMOYZMK.mjs} +1 -1
- package/dist/cli/{chunk-IWYWZXCA.js → chunk-NBXG4S2X.js} +53 -53
- package/dist/cli/{chunk-A5LPDB6N.js → chunk-NVTVS4AV.js} +6 -6
- package/dist/cli/{chunk-XOORR6P3.js → chunk-OGXG46LY.js} +93 -93
- package/dist/cli/{chunk-TQWI7LJX.js → chunk-OQOXR6JL.js} +26 -26
- package/dist/cli/{chunk-ABBP5ZCI.mjs → chunk-PC42DFZC.mjs} +3 -3
- package/dist/cli/{chunk-HMUBLAT4.js → chunk-PDDUX5UY.js} +5 -5
- package/dist/cli/{chunk-BLAZVZVD.mjs → chunk-PM2CT7HZ.mjs} +41 -10
- package/dist/cli/{chunk-4RJRGQ5Y.mjs → chunk-PYIWO4GS.mjs} +2 -2
- package/dist/cli/{chunk-UXQVSDFP.js → chunk-QEV3GFDS.js} +3 -3
- package/dist/cli/{chunk-SXY4DOVA.js → chunk-RPJSVGSC.js} +16 -16
- package/dist/cli/{chunk-ZSU3C4ST.mjs → chunk-SUTQCM7U.mjs} +2 -2
- package/dist/cli/{chunk-M5USVQ33.mjs → chunk-T7EWDIVM.mjs} +1 -1
- package/dist/cli/{chunk-TW3TTKW5.js → chunk-TBJ23WKT.js} +3 -3
- package/dist/cli/{chunk-75DAGCEX.mjs → chunk-TXFURKHD.mjs} +1 -1
- package/dist/cli/{chunk-J3ZYRN5L.js → chunk-VPO2D7WV.js} +10 -10
- package/dist/cli/{chunk-4RV7U3RP.js → chunk-WQBJHB63.js} +7 -7
- package/dist/cli/{chunk-QB3Q73LP.mjs → chunk-XNXE7YWI.mjs} +2 -2
- package/dist/cli/{chunk-PLJV6SX4.mjs → chunk-ZSWY5E3W.mjs} +1 -1
- package/dist/cli/{csv-LAYTDYIF.js → csv-57D62T7L.js} +13 -13
- package/dist/cli/{csv-3SNWBO5F.mjs → csv-P3AEI4G4.mjs} +4 -4
- package/dist/cli/{db-OOUOSURL.js → db-FWFYU34R.js} +27 -27
- package/dist/cli/{db-72JKGQSK.mjs → db-PJQMPZJP.mjs} +6 -6
- package/dist/cli/{describe-KDPNOEUJ.mjs → describe-F57VZZML.mjs} +17 -17
- package/dist/cli/describe-ZAYUBNUQ.js +48 -0
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-RJNMGJEE.js → executions-YBT7NTY5.js} +8 -8
- package/dist/cli/{executions-O6JS3UKX.mjs → executions-ZAJGMAAT.mjs} +6 -6
- package/dist/cli/{feedback-T3JH3CWC.mjs → feedback-L3ZQCSY6.mjs} +4 -4
- package/dist/cli/{feedback-FXB6NV3Y.js → feedback-YLYY2EG4.js} +8 -8
- package/dist/cli/git-A3433UTN.js +25 -0
- package/dist/cli/{git-6KAQSH5J.mjs → git-M7735NWJ.mjs} +5 -5
- package/dist/cli/index.js +137 -137
- package/dist/cli/index.mjs +40 -40
- package/dist/cli/{legacy-noops-7HDGEGTK.mjs → legacy-noops-PKNMQMGY.mjs} +5 -5
- package/dist/cli/{legacy-noops-PAOGRKUK.js → legacy-noops-TX37UP3U.js} +8 -8
- package/dist/cli/{monitors-KQFI7TVJ.js → monitors-5YTGQSGD.js} +91 -91
- package/dist/cli/{monitors-LE2AYK3Z.mjs → monitors-U7AUIOFZ.mjs} +7 -7
- package/dist/cli/{org-J6XFHDJE.js → org-N6DSSLLD.js} +72 -72
- package/dist/cli/{org-Z4DMJ72I.mjs → org-SRKZRVVH.mjs} +6 -6
- package/dist/cli/{pages-5LYS6Y4I.mjs → pages-UOPJUFCF.mjs} +6 -6
- package/dist/cli/{pages-FIXBZQJG.js → pages-YPN54RCC.js} +17 -17
- package/dist/cli/{play-GILXXIN7.mjs → play-4IK4WXWU.mjs} +17 -17
- package/dist/cli/{play-D7WPXADH.js → play-MEYZEYOV.js} +306 -306
- package/dist/cli/{providers-OQWL4Q4W.mjs → providers-UGHUYP4C.mjs} +6 -6
- package/dist/cli/{providers-KN7YACT6.js → providers-VS5MK4ZH.js} +9 -9
- package/dist/cli/{quickstart-M2OBP3W3.js → quickstart-GW2ERQ2A.js} +6 -6
- package/dist/cli/{quickstart-2LRIORFM.mjs → quickstart-YBOQSLFV.mjs} +4 -4
- package/dist/cli/{run-GYRBKQZT.mjs → run-44JT5GJM.mjs} +22 -22
- package/dist/cli/{run-6YZZO7VM.js → run-IVGMLY3J.js} +36 -36
- package/dist/cli/search-2XTYY7BF.js +32 -0
- package/dist/cli/{search-VUPK6BNU.mjs → search-43NY73VR.mjs} +7 -7
- package/dist/cli/{secrets-RE3UMZB7.js → secrets-DABUD3B7.js} +15 -15
- package/dist/cli/{secrets-ULRGU7NM.mjs → secrets-ONDQGW3B.mjs} +6 -6
- package/dist/cli/{sessions-T4UMHNDW.js → sessions-4ILQMBKR.js} +6 -6
- package/dist/cli/{sessions-2ZZVJ3P2.mjs → sessions-AIAKKLSR.mjs} +5 -5
- package/dist/cli/{settings-BRV6AYFM.js → settings-BWNLL7TP.js} +78 -78
- package/dist/cli/{settings-PDY4TJU6.mjs → settings-HSGKYOJT.mjs} +11 -11
- package/dist/cli/{setup-JONYJYBK.js → setup-37QOD4UT.js} +67 -52
- package/dist/cli/{setup-CXL6C5Z5.mjs → setup-LE4OVH4M.mjs} +33 -18
- package/dist/cli/{skills-TOMVQD5O.mjs → skills-A3ZVR2YX.mjs} +7 -7
- package/dist/cli/skills-TULQXRQJ.js +33 -0
- package/dist/cli/{tools-B2LJK4MM.mjs → tools-ITKPPUDT.mjs} +16 -16
- package/dist/cli/tools-QYYBWDXU.js +55 -0
- package/dist/cli/{update-CD6T2REC.mjs → update-XJOSCOK5.mjs} +9 -9
- package/dist/cli/update-XSMY7KWH.js +33 -0
- package/dist/cli/{workflow-ZAOBP6I7.mjs → workflow-KYQYFSND.mjs} +7 -7
- package/dist/cli/{workflow-PZML43E2.js → workflow-LERZ3TYV.js} +17 -17
- package/dist/{client-B1s1yJdT.d.mts → client-B9N1bcGc.d.mts} +1 -1
- package/dist/{client-DqUseRzd.d.ts → client-Btw075Hq.d.ts} +1 -1
- package/dist/{client-core-Bd7tP9Uz.d.ts → client-core-DvGWlwtX.d.ts} +1 -1
- package/dist/{client-core-BijQEQ70.d.mts → client-core-TulbIeRB.d.mts} +1 -1
- package/dist/{compiler-manifest-B1m5tRzz.d.ts → compiler-manifest-gkO9ZkVg.d.mts} +14 -0
- package/dist/{compiler-manifest-B1m5tRzz.d.mts → compiler-manifest-gkO9ZkVg.d.ts} +14 -0
- package/dist/{errors-3g71OMXy.d.ts → errors-Cc92LKH-.d.ts} +1 -1
- package/dist/{errors-QiC6am-q.d.mts → errors-CeCCOKSA.d.mts} +1 -1
- package/dist/{index-CIBiwzhK.d.ts → index-DJQKdV76.d.ts} +1 -1
- package/dist/{index-Biz5toO4.d.mts → index-DsqWJL3Q.d.mts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +106 -106
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- 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 +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-U5SNVC5F.js +0 -41
- package/dist/cli/describe-7HYV44MO.js +0 -48
- package/dist/cli/git-5LTKPXGN.js +0 -25
- package/dist/cli/search-OVKWA4AV.js +0 -32
- package/dist/cli/skills-UK5AK35I.js +0 -33
- package/dist/cli/tools-HH6E5G7J.js +0 -55
- package/dist/cli/update-EGXT3EIJ.js +0 -33
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkWQBJHB63js = require('./chunk-WQBJHB63.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -22,14 +22,14 @@ var _chunk4RV7U3RPjs = require('./chunk-4RV7U3RP.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkTBJ23WKTjs = require('./chunk-TBJ23WKT.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkDQYJXVAFjs = require('./chunk-DQYJXVAF.js');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
@@ -50,6 +50,7 @@ var EXIT_SERVER = 5;
|
|
|
50
50
|
var EXIT_WORKSPACE_MISMATCH = 6;
|
|
51
51
|
var AUTH_HTTP_TIMEOUT_MS = 1e4;
|
|
52
52
|
var AUTH_REGISTER_HTTP_TIMEOUT_MS = 3e4;
|
|
53
|
+
var APPROVAL_LINK_REPORT_TIMEOUT_MS = 750;
|
|
53
54
|
function statusBannerLine(value) {
|
|
54
55
|
if (!value || typeof value !== "object" || Array.isArray(value)) return null;
|
|
55
56
|
const banner = value;
|
|
@@ -59,7 +60,7 @@ function statusBannerLine(value) {
|
|
|
59
60
|
return `Service notice: ${banner.message}`;
|
|
60
61
|
}
|
|
61
62
|
function envFilePath(baseUrl) {
|
|
62
|
-
return
|
|
63
|
+
return _chunkTBJ23WKTjs.hostEnvFilePath.call(void 0, baseUrl);
|
|
63
64
|
}
|
|
64
65
|
function normalizeAuthScope(value) {
|
|
65
66
|
if (!value || value === "global") return "global";
|
|
@@ -72,7 +73,7 @@ function parseAuthScope(args) {
|
|
|
72
73
|
}
|
|
73
74
|
function pendingClaimPath(baseUrl, scope) {
|
|
74
75
|
if (scope === "folder") {
|
|
75
|
-
const target =
|
|
76
|
+
const target = _chunkTBJ23WKTjs.resolveProjectPinTarget.call(void 0, );
|
|
76
77
|
if (!target.ok) {
|
|
77
78
|
throw new Error(
|
|
78
79
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -82,10 +83,10 @@ function pendingClaimPath(baseUrl, scope) {
|
|
|
82
83
|
}
|
|
83
84
|
return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
|
|
84
85
|
}
|
|
85
|
-
return `${
|
|
86
|
+
return `${_chunkTBJ23WKTjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
|
|
86
87
|
}
|
|
87
88
|
function legacyPendingClaimTokenPath(baseUrl) {
|
|
88
|
-
return `${
|
|
89
|
+
return `${_chunkTBJ23WKTjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
|
|
89
90
|
}
|
|
90
91
|
function savePendingClaim(baseUrl, claim) {
|
|
91
92
|
const filePath = pendingClaimPath(baseUrl, claim.scope);
|
|
@@ -140,6 +141,8 @@ function readPendingAuthClaim(baseUrl, scope) {
|
|
|
140
141
|
claimToken,
|
|
141
142
|
claimUrl: typeof parsed.claimUrl === "string" && parsed.claimUrl.trim() ? parsed.claimUrl.trim() : `${baseUrl}/api/v2/auth/cli/claim/${encodeURIComponent(claimToken)}`,
|
|
142
143
|
orgName: typeof parsed.orgName === "string" ? parsed.orgName.trim() : void 0,
|
|
144
|
+
...parsed.approvalLinkReporting === true ? { approvalLinkReporting: true } : {},
|
|
145
|
+
...typeof parsed.signupWorkspaceId === "string" ? { signupWorkspaceId: parsed.signupWorkspaceId } : {},
|
|
143
146
|
// The record's own scope, when it has one. `register` writes this field
|
|
144
147
|
// precisely so a resume can learn where the credential belongs; reading
|
|
145
148
|
// back the caller's argument instead made it decorative, and a record
|
|
@@ -187,21 +190,21 @@ function parseRegisterWaitMode(args) {
|
|
|
187
190
|
function shouldWaitForRegisterClaim(mode) {
|
|
188
191
|
if (mode === "yes") return true;
|
|
189
192
|
if (mode === "no") return false;
|
|
190
|
-
return
|
|
193
|
+
return _chunkDQYJXVAFjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
191
194
|
}
|
|
192
195
|
function saveEnvValues(values, baseUrl, scope) {
|
|
193
196
|
const filtered = {
|
|
194
|
-
...values[
|
|
195
|
-
...values[
|
|
196
|
-
...values[
|
|
197
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
197
|
+
...values[_chunkTBJ23WKTjs.HOST_URL_ENV] ? { [_chunkTBJ23WKTjs.HOST_URL_ENV]: values[_chunkTBJ23WKTjs.HOST_URL_ENV] } : {},
|
|
198
|
+
...values[_chunkTBJ23WKTjs.API_KEY_ENV] ? { [_chunkTBJ23WKTjs.API_KEY_ENV]: values[_chunkTBJ23WKTjs.API_KEY_ENV] } : {},
|
|
199
|
+
...values[_chunkTBJ23WKTjs.ACTIVE_ORG_ID_ENV] ? { [_chunkTBJ23WKTjs.ACTIVE_ORG_ID_ENV]: values[_chunkTBJ23WKTjs.ACTIVE_ORG_ID_ENV] } : {},
|
|
200
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkTBJ23WKTjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkTBJ23WKTjs.ACTIVE_ORG_NAME_ENV]: values[_chunkTBJ23WKTjs.ACTIVE_ORG_NAME_ENV] } : {},
|
|
198
201
|
// An explicit empty list must reach the store: it clears a stale line.
|
|
199
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
202
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkTBJ23WKTjs.FEATURES_ENV) ? { [_chunkTBJ23WKTjs.FEATURES_ENV]: values[_chunkTBJ23WKTjs.FEATURES_ENV] } : {}
|
|
200
203
|
};
|
|
201
204
|
if (scope === "folder") {
|
|
202
|
-
|
|
205
|
+
_chunkTBJ23WKTjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
|
|
203
206
|
} else {
|
|
204
|
-
|
|
207
|
+
_chunkTBJ23WKTjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
|
|
205
208
|
}
|
|
206
209
|
}
|
|
207
210
|
function activeOrgEnvValues(data) {
|
|
@@ -209,21 +212,21 @@ function activeOrgEnvValues(data) {
|
|
|
209
212
|
if (!orgId) return {};
|
|
210
213
|
const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
|
|
211
214
|
return {
|
|
212
|
-
[
|
|
213
|
-
[
|
|
214
|
-
...
|
|
215
|
+
[_chunkTBJ23WKTjs.ACTIVE_ORG_ID_ENV]: orgId,
|
|
216
|
+
[_chunkTBJ23WKTjs.ACTIVE_ORG_NAME_ENV]: orgName,
|
|
217
|
+
..._chunkTBJ23WKTjs.featureEnvValues.call(void 0, data)
|
|
215
218
|
};
|
|
216
219
|
}
|
|
217
220
|
async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
|
|
218
221
|
const headers = {
|
|
219
222
|
"Content-Type": "application/json",
|
|
220
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
223
|
+
"User-Agent": `deepline-ts-sdk/${_chunkDQYJXVAFjs.SDK_VERSION}`,
|
|
221
224
|
"X-Deepline-Client-Family": "sdk",
|
|
222
225
|
"X-Deepline-CLI-Family": "sdk",
|
|
223
|
-
"X-Deepline-Agent-Runtime":
|
|
224
|
-
"X-Deepline-CLI-Version":
|
|
225
|
-
"X-Deepline-SDK-Version":
|
|
226
|
-
"X-Deepline-API-Contract":
|
|
226
|
+
"X-Deepline-Agent-Runtime": _chunkDQYJXVAFjs.detectAgentRuntime.call(void 0, ),
|
|
227
|
+
"X-Deepline-CLI-Version": _chunkDQYJXVAFjs.SDK_VERSION,
|
|
228
|
+
"X-Deepline-SDK-Version": _chunkDQYJXVAFjs.SDK_VERSION,
|
|
229
|
+
"X-Deepline-API-Contract": _chunkDQYJXVAFjs.SDK_API_CONTRACT
|
|
227
230
|
};
|
|
228
231
|
if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
|
|
229
232
|
const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
|
|
@@ -262,10 +265,10 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
|
|
|
262
265
|
if (failure.name === "AbortError" || failure.name === "TimeoutError") {
|
|
263
266
|
throw failure;
|
|
264
267
|
}
|
|
265
|
-
const causeCode =
|
|
268
|
+
const causeCode = _chunkDQYJXVAFjs.networkCauseCode.call(void 0, failure);
|
|
266
269
|
throw Object.assign(
|
|
267
270
|
new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
268
|
-
|
|
271
|
+
_chunkDQYJXVAFjs.connectionFailureMessage.call(void 0, new URL(url).origin, failure),
|
|
269
272
|
void 0,
|
|
270
273
|
"NETWORK_ERROR",
|
|
271
274
|
causeCode ? { causeCode } : void 0
|
|
@@ -282,7 +285,7 @@ async function readStatusBanner(baseUrl) {
|
|
|
282
285
|
return _optionalChain([response, 'optionalAccess', _11 => _11.status]) === 200 ? _nullishCoalesce(response.data.banner, () => ( null)) : null;
|
|
283
286
|
}
|
|
284
287
|
async function reportSetupCompleted(input) {
|
|
285
|
-
const apiKey = input.authScope === "folder" ?
|
|
288
|
+
const apiKey = input.authScope === "folder" ? _chunkTBJ23WKTjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkTBJ23WKTjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
286
289
|
if (!apiKey) return;
|
|
287
290
|
try {
|
|
288
291
|
await httpJson(
|
|
@@ -378,8 +381,24 @@ async function printClaimSuccessBanner(baseUrl, apiKey, statusData) {
|
|
|
378
381
|
console.log(` \u2022 Signed in with organization: ${statusData.org_name}`);
|
|
379
382
|
}
|
|
380
383
|
}
|
|
381
|
-
async function
|
|
382
|
-
|
|
384
|
+
async function reportApprovalLinkShown(baseUrl, claim, mode) {
|
|
385
|
+
try {
|
|
386
|
+
await httpJson(
|
|
387
|
+
"POST",
|
|
388
|
+
`${baseUrl}/api/v2/auth/cli/status`,
|
|
389
|
+
null,
|
|
390
|
+
{
|
|
391
|
+
claim_token: claim.claimToken,
|
|
392
|
+
approval_link_shown: mode,
|
|
393
|
+
...claim.signupWorkspaceId ? { signup_workspace_id: claim.signupWorkspaceId } : {}
|
|
394
|
+
},
|
|
395
|
+
APPROVAL_LINK_REPORT_TIMEOUT_MS
|
|
396
|
+
);
|
|
397
|
+
} catch (e8) {
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
async function handleRegister(args, options) {
|
|
401
|
+
const baseUrl = _chunkTBJ23WKTjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
383
402
|
let orgName = "";
|
|
384
403
|
let orgId = "";
|
|
385
404
|
let agentName = "";
|
|
@@ -403,7 +422,7 @@ async function handleRegister(args) {
|
|
|
403
422
|
if (!agentName) {
|
|
404
423
|
try {
|
|
405
424
|
agentName = _os.hostname.call(void 0, ) || "Deepline CLI (TS)";
|
|
406
|
-
} catch (
|
|
425
|
+
} catch (e9) {
|
|
407
426
|
agentName = "Deepline CLI (TS)";
|
|
408
427
|
}
|
|
409
428
|
}
|
|
@@ -425,28 +444,39 @@ async function handleRegister(args) {
|
|
|
425
444
|
}
|
|
426
445
|
const claimUrl = String(data.claim_url || "");
|
|
427
446
|
const claimToken = String(data.claim_token || "");
|
|
447
|
+
const signupWorkspaceId = _optionalChain([process, 'access', _12 => _12.env, 'access', _13 => _13.DEEPLINE_SIGNUP_WORKSPACE_ID, 'optionalAccess', _14 => _14.trim, 'call', _15 => _15()]);
|
|
448
|
+
const pendingClaim = {
|
|
449
|
+
claimToken,
|
|
450
|
+
claimUrl,
|
|
451
|
+
scope: authScope,
|
|
452
|
+
...orgName ? { orgName } : {},
|
|
453
|
+
...data.approval_link_reporting === true ? { approvalLinkReporting: true } : {},
|
|
454
|
+
...signupWorkspaceId ? { signupWorkspaceId } : {}
|
|
455
|
+
};
|
|
428
456
|
if (claimToken) {
|
|
429
|
-
savePendingClaim(baseUrl,
|
|
430
|
-
claimToken,
|
|
431
|
-
claimUrl,
|
|
432
|
-
scope: authScope,
|
|
433
|
-
...orgName ? { orgName } : {}
|
|
434
|
-
});
|
|
457
|
+
savePendingClaim(baseUrl, pendingClaim);
|
|
435
458
|
saveEnvValues(
|
|
436
459
|
{
|
|
437
|
-
[
|
|
460
|
+
[_chunkTBJ23WKTjs.HOST_URL_ENV]: baseUrl
|
|
438
461
|
},
|
|
439
462
|
baseUrl,
|
|
440
463
|
authScope
|
|
441
464
|
);
|
|
442
465
|
}
|
|
443
466
|
if (claimUrl) {
|
|
444
|
-
const shouldOpen = waitMode !== "no" &&
|
|
467
|
+
const shouldOpen = waitMode !== "no" && _chunkDQYJXVAFjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
445
468
|
console.log(
|
|
446
469
|
shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
|
|
447
470
|
);
|
|
448
471
|
console.log(` ${claimUrl}`);
|
|
449
|
-
if (shouldOpen)
|
|
472
|
+
if (shouldOpen) _chunkWQBJHB63js.openInBrowser.call(void 0, claimUrl);
|
|
473
|
+
if (claimToken && pendingClaim.approvalLinkReporting && !_optionalChain([options, 'optionalAccess', _16 => _16.deferApprovalLinkReport])) {
|
|
474
|
+
await reportApprovalLinkShown(
|
|
475
|
+
baseUrl,
|
|
476
|
+
pendingClaim,
|
|
477
|
+
shouldOpen ? "auto" : "manual"
|
|
478
|
+
);
|
|
479
|
+
}
|
|
450
480
|
}
|
|
451
481
|
if (data.cli_message) {
|
|
452
482
|
console.log(String(data.cli_message));
|
|
@@ -489,8 +519,8 @@ async function handleRegister(args) {
|
|
|
489
519
|
if (apiKey) {
|
|
490
520
|
saveEnvValues(
|
|
491
521
|
{
|
|
492
|
-
[
|
|
493
|
-
[
|
|
522
|
+
[_chunkTBJ23WKTjs.HOST_URL_ENV]: baseUrl,
|
|
523
|
+
[_chunkTBJ23WKTjs.API_KEY_ENV]: apiKey,
|
|
494
524
|
...activeOrgEnvValues(statusData)
|
|
495
525
|
},
|
|
496
526
|
baseUrl,
|
|
@@ -512,7 +542,7 @@ async function handleRegister(args) {
|
|
|
512
542
|
}
|
|
513
543
|
}
|
|
514
544
|
async function handleWait(args) {
|
|
515
|
-
const baseUrl =
|
|
545
|
+
const baseUrl = _chunkTBJ23WKTjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
516
546
|
let timeoutSeconds = 300;
|
|
517
547
|
let requestedScope;
|
|
518
548
|
if (args.includes("--auth-scope")) {
|
|
@@ -534,9 +564,9 @@ async function handleWait(args) {
|
|
|
534
564
|
const resumed = resolvePendingAuthClaimForResume(baseUrl, requestedScope);
|
|
535
565
|
const pendingClaim = resumed.claim;
|
|
536
566
|
const authScope = resumed.scope;
|
|
537
|
-
const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess',
|
|
567
|
+
const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _17 => _17.claimToken]), () => ( ""));
|
|
538
568
|
if (!pendingClaim) {
|
|
539
|
-
const scopedApiKey = authScope === "folder" ?
|
|
569
|
+
const scopedApiKey = authScope === "folder" ? _chunkTBJ23WKTjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkTBJ23WKTjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
540
570
|
if (scopedApiKey) {
|
|
541
571
|
console.log("Already connected.");
|
|
542
572
|
return EXIT_OK;
|
|
@@ -579,8 +609,8 @@ async function handleWait(args) {
|
|
|
579
609
|
if (apiKey) {
|
|
580
610
|
saveEnvValues(
|
|
581
611
|
{
|
|
582
|
-
[
|
|
583
|
-
[
|
|
612
|
+
[_chunkTBJ23WKTjs.HOST_URL_ENV]: baseUrl,
|
|
613
|
+
[_chunkTBJ23WKTjs.API_KEY_ENV]: apiKey,
|
|
584
614
|
...activeOrgEnvValues(data)
|
|
585
615
|
},
|
|
586
616
|
baseUrl,
|
|
@@ -604,8 +634,8 @@ async function handleWait(args) {
|
|
|
604
634
|
return EXIT_AUTH;
|
|
605
635
|
}
|
|
606
636
|
async function authStatusLine(timeoutMs = 3e3) {
|
|
607
|
-
const baseUrl =
|
|
608
|
-
const apiKey =
|
|
637
|
+
const baseUrl = _chunkTBJ23WKTjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
638
|
+
const apiKey = _chunkTBJ23WKTjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
609
639
|
if (!apiKey) return `Auth: not connected (${baseUrl})`;
|
|
610
640
|
try {
|
|
611
641
|
const { status, data } = await httpJson(
|
|
@@ -623,14 +653,14 @@ async function authStatusLine(timeoutMs = 3e3) {
|
|
|
623
653
|
}
|
|
624
654
|
const workspace = typeof data.org_name === "string" && data.org_name.trim() ? data.org_name.trim() : "(unnamed)";
|
|
625
655
|
return `Auth: connected to workspace ${workspace} (${baseUrl})`;
|
|
626
|
-
} catch (
|
|
656
|
+
} catch (e10) {
|
|
627
657
|
return `Auth: API key found, not verified (${baseUrl} unreachable)`;
|
|
628
658
|
}
|
|
629
659
|
}
|
|
630
660
|
async function handleStatus(args) {
|
|
631
|
-
const baseUrl =
|
|
661
|
+
const baseUrl = _chunkTBJ23WKTjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
632
662
|
const reveal = args.includes("--reveal");
|
|
633
|
-
const jsonOutput =
|
|
663
|
+
const jsonOutput = _chunkWQBJHB63js.argsWantJson.call(void 0, args);
|
|
634
664
|
const hasExplicitAuthScope = args.includes("--auth-scope");
|
|
635
665
|
let authScope = null;
|
|
636
666
|
if (hasExplicitAuthScope) {
|
|
@@ -663,7 +693,7 @@ async function handleStatus(args) {
|
|
|
663
693
|
const bannerLine = statusBannerLine(hostStatusPayload.status_banner);
|
|
664
694
|
if (bannerLine) hostLines.push(bannerLine);
|
|
665
695
|
}
|
|
666
|
-
} catch (
|
|
696
|
+
} catch (e11) {
|
|
667
697
|
hostStatusPayload = {
|
|
668
698
|
host: baseUrl,
|
|
669
699
|
hostStatus: "unreachable",
|
|
@@ -671,14 +701,14 @@ async function handleStatus(args) {
|
|
|
671
701
|
};
|
|
672
702
|
hostLines.push(`Host: ${baseUrl} (unreachable)`);
|
|
673
703
|
}
|
|
674
|
-
const apiKey = authScope === "folder" ?
|
|
704
|
+
const apiKey = authScope === "folder" ? _chunkTBJ23WKTjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkTBJ23WKTjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkTBJ23WKTjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
675
705
|
if (!apiKey) {
|
|
676
706
|
const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
|
|
677
707
|
baseUrl,
|
|
678
708
|
_nullishCoalesce(authScope, () => ( void 0))
|
|
679
709
|
);
|
|
680
710
|
if (pendingClaim) {
|
|
681
|
-
|
|
711
|
+
_chunkWQBJHB63js.printCommandEnvelope.call(void 0,
|
|
682
712
|
{
|
|
683
713
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
684
714
|
status: "pending",
|
|
@@ -699,7 +729,7 @@ async function handleStatus(args) {
|
|
|
699
729
|
);
|
|
700
730
|
return EXIT_OK;
|
|
701
731
|
}
|
|
702
|
-
|
|
732
|
+
_chunkWQBJHB63js.printCommandEnvelope.call(void 0,
|
|
703
733
|
{
|
|
704
734
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
705
735
|
status: "not connected",
|
|
@@ -732,7 +762,7 @@ async function handleStatus(args) {
|
|
|
732
762
|
}
|
|
733
763
|
);
|
|
734
764
|
if (status === 401 || status === 403) {
|
|
735
|
-
|
|
765
|
+
_chunkWQBJHB63js.printCommandEnvelope.call(void 0,
|
|
736
766
|
{
|
|
737
767
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
738
768
|
status: "unauthorized",
|
|
@@ -759,7 +789,7 @@ async function handleStatus(args) {
|
|
|
759
789
|
console.error(`Auth status error (status ${status}).`);
|
|
760
790
|
return EXIT_SERVER;
|
|
761
791
|
}
|
|
762
|
-
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (
|
|
792
|
+
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkTBJ23WKTjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
|
|
763
793
|
clearSatisfiedPendingClaim(
|
|
764
794
|
baseUrl,
|
|
765
795
|
resolvedAuthScope,
|
|
@@ -787,28 +817,28 @@ async function handleStatus(args) {
|
|
|
787
817
|
if (apiKeyResp) {
|
|
788
818
|
saveEnvValues(
|
|
789
819
|
{
|
|
790
|
-
[
|
|
791
|
-
[
|
|
820
|
+
[_chunkTBJ23WKTjs.HOST_URL_ENV]: baseUrl,
|
|
821
|
+
[_chunkTBJ23WKTjs.API_KEY_ENV]: apiKeyResp,
|
|
792
822
|
...activeOrgEnvValues(data)
|
|
793
823
|
},
|
|
794
824
|
baseUrl,
|
|
795
825
|
resolvedAuthScope
|
|
796
826
|
);
|
|
797
827
|
if (resolvedAuthScope === "folder") {
|
|
798
|
-
const target =
|
|
828
|
+
const target = _chunkTBJ23WKTjs.resolveProjectPinTarget.call(void 0, );
|
|
799
829
|
savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
|
|
800
830
|
} else {
|
|
801
831
|
savedApiKeyPath = envFilePath(baseUrl);
|
|
802
832
|
}
|
|
803
833
|
}
|
|
804
|
-
} else if (resolvedAuthScope === "folder" ||
|
|
805
|
-
saveEnvValues(
|
|
834
|
+
} else if (resolvedAuthScope === "folder" || _chunkTBJ23WKTjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
|
|
835
|
+
saveEnvValues(_chunkTBJ23WKTjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
|
|
806
836
|
}
|
|
807
|
-
|
|
837
|
+
_chunkWQBJHB63js.printCommandEnvelope.call(void 0,
|
|
808
838
|
{
|
|
809
839
|
...payload,
|
|
810
|
-
...
|
|
811
|
-
command_context:
|
|
840
|
+
..._chunkDQYJXVAFjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
|
|
841
|
+
command_context: _chunkTBJ23WKTjs.resolveCliCommandContext.call(void 0,
|
|
812
842
|
{ baseUrl, apiKey },
|
|
813
843
|
resolvedAuthScope
|
|
814
844
|
)
|
|
@@ -967,4 +997,5 @@ Examples:
|
|
|
967
997
|
|
|
968
998
|
|
|
969
999
|
|
|
970
|
-
|
|
1000
|
+
|
|
1001
|
+
exports.EXIT_WORKSPACE_MISMATCH = EXIT_WORKSPACE_MISMATCH; exports.statusBannerLine = statusBannerLine; exports.resolvePendingAuthClaimForResume = resolvePendingAuthClaimForResume; exports.readPendingAuthClaim = readPendingAuthClaim; exports.clearPendingClaim = clearPendingClaim; exports.clearSatisfiedPendingClaim = clearSatisfiedPendingClaim; exports.httpJson = httpJson; exports.readStatusBanner = readStatusBanner; exports.reportSetupCompleted = reportSetupCompleted; exports.reportApprovalLinkShown = reportApprovalLinkShown; exports.handleRegister = handleRegister; exports.handleWait = handleWait; exports.authStatusLine = authStatusLine; exports.handleStatus = handleStatus; exports.registerAuthCommands = registerAuthCommands;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PlayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DIDWIPMA.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TXFURKHD.mjs";
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk6AYQK7Z6js = require('./chunk-6AYQK7Z6.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkJDMR33HSjs = require('./chunk-JDMR33HS.js');
|
|
@@ -11,7 +11,7 @@ var _chunkJDMR33HSjs = require('./chunk-JDMR33HS.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkWQBJHB63js = require('./chunk-WQBJHB63.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
@@ -579,7 +579,7 @@ function parseInputFlagValue(raw) {
|
|
|
579
579
|
return raw;
|
|
580
580
|
}
|
|
581
581
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
582
|
-
const selection =
|
|
582
|
+
const selection = _chunkWQBJHB63js.parseJsonFields.call(void 0, args, "run");
|
|
583
583
|
args = selection.args;
|
|
584
584
|
const usage = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and deepline.dataset guidance.";
|
|
585
585
|
let filePath = null;
|
|
@@ -591,7 +591,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
591
591
|
let revisionSelector = null;
|
|
592
592
|
const watch = !args.includes("--no-wait");
|
|
593
593
|
const dryRun = args.includes("--dry-run");
|
|
594
|
-
let jsonOutput = dryRun ?
|
|
594
|
+
let jsonOutput = dryRun ? _chunkWQBJHB63js.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkWQBJHB63js.argsWantJson.call(void 0, args);
|
|
595
595
|
const fullJson = args.includes("--full");
|
|
596
596
|
const force = args.includes("--force");
|
|
597
597
|
const forceToolRefresh = args.includes("--force-tool-refresh");
|
|
@@ -654,7 +654,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
654
654
|
"--log-level requires one of: debug, info, warn, error."
|
|
655
655
|
);
|
|
656
656
|
}
|
|
657
|
-
const parsed =
|
|
657
|
+
const parsed = _chunk6AYQK7Z6js.parseLogLevel.call(void 0, value);
|
|
658
658
|
if (!parsed) {
|
|
659
659
|
throw new Error(
|
|
660
660
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -972,7 +972,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
972
972
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
973
973
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
974
974
|
);
|
|
975
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
975
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunk6AYQK7Z6js.parseLogLevel.call(void 0, options.logLevel);
|
|
976
976
|
if (!logLevel)
|
|
977
977
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
978
978
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -986,13 +986,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
986
986
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
987
987
|
logLevel = "debug";
|
|
988
988
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
989
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
990
|
-
[...fullJson ? ["--full"] : [], ...
|
|
989
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkWQBJHB63js.parseJsonFields.call(void 0,
|
|
990
|
+
[...fullJson ? ["--full"] : [], ..._chunkWQBJHB63js.jsonFieldArgs.call(void 0, options.json)],
|
|
991
991
|
"run"
|
|
992
992
|
).fields;
|
|
993
993
|
const watch = options.wait === false ? false : base.watch;
|
|
994
994
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
995
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
995
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkWQBJHB63js.argsWantJson.call(void 0, []) : explicitJson;
|
|
996
996
|
const verboseLogs = Boolean(
|
|
997
997
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
998
998
|
);
|
|
@@ -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 _chunkWQBJHB63js = require('./chunk-WQBJHB63.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/progress.ts
|
|
6
6
|
var _worker_threads = require('worker_threads');
|
|
@@ -17,7 +17,7 @@ var CliProgress = (_class = class {
|
|
|
17
17
|
|
|
18
18
|
// --json output is one JSON document: progress never renders under it.
|
|
19
19
|
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);
|
|
20
|
-
this.enabled = enabled && !
|
|
20
|
+
this.enabled = enabled && !_chunkWQBJHB63js.isJsonOutputMode.call(void 0, );
|
|
21
21
|
}
|
|
22
22
|
setLogWriter(writer) {
|
|
23
23
|
this.logWriter = writer;
|
|
@@ -49,7 +49,7 @@ var CliProgress = (_class = class {
|
|
|
49
49
|
this.logWriter(line);
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
52
|
-
if (
|
|
52
|
+
if (_chunkWQBJHB63js.isJsonOutputMode.call(void 0, )) return;
|
|
53
53
|
if (!this.enabled) {
|
|
54
54
|
process.stderr.write(`${line}
|
|
55
55
|
`);
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-57MJL2HU.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-53LLOGNV.mjs";
|
|
18
18
|
import {
|
|
19
19
|
autoDetectBaseUrl,
|
|
20
20
|
ensureProjectPrivatePathsIgnored,
|
|
21
21
|
resolveProjectPinTarget,
|
|
22
22
|
sdkCliStateDirPath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-TXFURKHD.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
detectAgentRuntime
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-T7EWDIVM.mjs";
|
|
28
28
|
|
|
29
29
|
// src/cli/commands/skills.ts
|
|
30
30
|
import { spawn } from "child_process";
|
|
@@ -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 _chunkNBXG4S2Xjs = require('./chunk-NBXG4S2X.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 = _chunkNBXG4S2Xjs.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
|
encoding: "utf8",
|
|
19
19
|
env,
|