deepline 0.3.479 → 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.
Files changed (116) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/cli/auth-7FOB243B.js +43 -0
  3. package/dist/cli/{auth-D7DYB57R.mjs → auth-KMKFQX7X.mjs} +7 -5
  4. package/dist/cli/{billing-DT4JT4QN.mjs → billing-G3Y5FTQM.mjs} +6 -6
  5. package/dist/cli/{billing-DHGSNM6E.js → billing-R5RCTEW6.js} +79 -79
  6. package/dist/cli/{chunk-RJVUILW4.mjs → chunk-2AYWC63S.mjs} +2 -2
  7. package/dist/cli/{chunk-D6MLXRMQ.mjs → chunk-44TVNYYV.mjs} +10 -10
  8. package/dist/cli/{chunk-GQCH6Y7W.js → chunk-4V6KEXCM.js} +1 -1
  9. package/dist/cli/{chunk-YC2QBF2W.mjs → chunk-53LLOGNV.mjs} +2 -2
  10. package/dist/cli/{chunk-K5RRY7DJ.mjs → chunk-57MJL2HU.mjs} +4 -4
  11. package/dist/cli/{chunk-FV7WGK5X.js → chunk-5IVGZCKY.js} +5 -5
  12. package/dist/cli/{chunk-ZJRVHQSZ.mjs → chunk-63QH6FL3.mjs} +4 -4
  13. package/dist/cli/{chunk-GSULE54L.js → chunk-6AYQK7Z6.js} +6 -6
  14. package/dist/cli/{chunk-PUOKABQF.mjs → chunk-7LMLHUCP.mjs} +5 -5
  15. package/dist/cli/{chunk-VRZXGJXH.js → chunk-A3PZKD47.js} +21 -21
  16. package/dist/cli/{chunk-JKUFOP7M.mjs → chunk-AKCYZDBO.mjs} +1 -1
  17. package/dist/cli/{chunk-VKBLXJCK.js → chunk-APFFHSPL.js} +8 -8
  18. package/dist/cli/{chunk-TZCHXF4R.mjs → chunk-ASARTL6E.mjs} +2 -2
  19. package/dist/cli/{chunk-FKEZ5DIJ.mjs → chunk-DIDWIPMA.mjs} +1 -1
  20. package/dist/cli/{chunk-33O2JGHE.js → chunk-DQYJXVAF.js} +4 -4
  21. package/dist/cli/{chunk-W6N2S5N7.js → chunk-FFSOXQEM.js} +8 -8
  22. package/dist/cli/{chunk-27PXHD2P.mjs → chunk-FZ42SO3Q.mjs} +1 -1
  23. package/dist/cli/{chunk-AFHFZU5V.js → chunk-FZX2DGQZ.js} +37 -37
  24. package/dist/cli/{chunk-6C3QY5JS.mjs → chunk-IQ6WL36K.mjs} +1 -1
  25. package/dist/cli/{chunk-N7E25EU2.mjs → chunk-JBQKBDDN.mjs} +5 -5
  26. package/dist/cli/{chunk-W4HIOBQQ.js → chunk-JH77OHD5.js} +2 -2
  27. package/dist/cli/{chunk-27GSBTWD.js → chunk-K7E2DO5P.js} +96 -65
  28. package/dist/cli/{chunk-GONL4EFT.mjs → chunk-KQNQCZLB.mjs} +2 -2
  29. package/dist/cli/{chunk-N4M6CO5H.js → chunk-LBZLV6QF.js} +9 -9
  30. package/dist/cli/{chunk-AKVNUNL7.js → chunk-LHU6BMDV.js} +3 -3
  31. package/dist/cli/{chunk-JNFNNJ75.mjs → chunk-LLEBPM3N.mjs} +4 -4
  32. package/dist/cli/{chunk-3GIM7XRH.js → chunk-MEJJD7PA.js} +2 -2
  33. package/dist/cli/{chunk-UOYA35OT.mjs → chunk-MTMOYZMK.mjs} +1 -1
  34. package/dist/cli/{chunk-OVFCPV24.js → chunk-NBXG4S2X.js} +53 -53
  35. package/dist/cli/{chunk-JMCTNS6S.js → chunk-NVTVS4AV.js} +6 -6
  36. package/dist/cli/{chunk-FBEXJVQL.js → chunk-OGXG46LY.js} +93 -93
  37. package/dist/cli/{chunk-CK2Q6AWR.js → chunk-OQOXR6JL.js} +26 -26
  38. package/dist/cli/{chunk-6QIXWFPO.mjs → chunk-PC42DFZC.mjs} +3 -3
  39. package/dist/cli/{chunk-EMVWC5LP.js → chunk-PDDUX5UY.js} +5 -5
  40. package/dist/cli/{chunk-3PHOAUU4.mjs → chunk-PM2CT7HZ.mjs} +41 -10
  41. package/dist/cli/{chunk-GZ43YXHT.mjs → chunk-PYIWO4GS.mjs} +2 -2
  42. package/dist/cli/{chunk-J5VDE42G.js → chunk-QEV3GFDS.js} +3 -3
  43. package/dist/cli/{chunk-G6V34EQ5.js → chunk-RPJSVGSC.js} +16 -16
  44. package/dist/cli/{chunk-GICSDK72.mjs → chunk-SUTQCM7U.mjs} +2 -2
  45. package/dist/cli/{chunk-XDFARN7U.mjs → chunk-T7EWDIVM.mjs} +1 -1
  46. package/dist/cli/{chunk-3SGA53DX.js → chunk-TBJ23WKT.js} +3 -3
  47. package/dist/cli/{chunk-O5BUFQ2P.mjs → chunk-TXFURKHD.mjs} +1 -1
  48. package/dist/cli/{chunk-Y2MVDYV6.js → chunk-VPO2D7WV.js} +10 -10
  49. package/dist/cli/{chunk-LXYDN5FE.js → chunk-WQBJHB63.js} +7 -7
  50. package/dist/cli/{chunk-JFGOMQW6.mjs → chunk-XNXE7YWI.mjs} +2 -2
  51. package/dist/cli/{chunk-XBYW5EHY.mjs → chunk-ZSWY5E3W.mjs} +1 -1
  52. package/dist/cli/{csv-DQWOZ2BL.js → csv-57D62T7L.js} +13 -13
  53. package/dist/cli/{csv-JXFOD7DJ.mjs → csv-P3AEI4G4.mjs} +4 -4
  54. package/dist/cli/{db-Q2OAAXRX.js → db-FWFYU34R.js} +27 -27
  55. package/dist/cli/{db-NOGMZAQE.mjs → db-PJQMPZJP.mjs} +6 -6
  56. package/dist/cli/{describe-VKZTZLX6.mjs → describe-F57VZZML.mjs} +17 -17
  57. package/dist/cli/describe-ZAYUBNUQ.js +48 -0
  58. package/dist/cli/{executions-B3GDZ4GQ.js → executions-YBT7NTY5.js} +8 -8
  59. package/dist/cli/{executions-XU3JMNI3.mjs → executions-ZAJGMAAT.mjs} +6 -6
  60. package/dist/cli/{feedback-R5UQXINE.mjs → feedback-L3ZQCSY6.mjs} +4 -4
  61. package/dist/cli/{feedback-5IW3ZKRP.js → feedback-YLYY2EG4.js} +8 -8
  62. package/dist/cli/git-A3433UTN.js +25 -0
  63. package/dist/cli/{git-7B4H7VEL.mjs → git-M7735NWJ.mjs} +5 -5
  64. package/dist/cli/index.js +137 -137
  65. package/dist/cli/index.mjs +40 -40
  66. package/dist/cli/{legacy-noops-KY7JAALE.mjs → legacy-noops-PKNMQMGY.mjs} +5 -5
  67. package/dist/cli/{legacy-noops-AVT6T5QI.js → legacy-noops-TX37UP3U.js} +8 -8
  68. package/dist/cli/{monitors-GZB6CWK2.js → monitors-5YTGQSGD.js} +91 -91
  69. package/dist/cli/{monitors-G7L7AFXR.mjs → monitors-U7AUIOFZ.mjs} +7 -7
  70. package/dist/cli/{org-ZHHKAPCE.js → org-N6DSSLLD.js} +72 -72
  71. package/dist/cli/{org-QDUBOQTH.mjs → org-SRKZRVVH.mjs} +6 -6
  72. package/dist/cli/{pages-Q4WGQCST.mjs → pages-UOPJUFCF.mjs} +6 -6
  73. package/dist/cli/{pages-5P3SPMN5.js → pages-YPN54RCC.js} +17 -17
  74. package/dist/cli/{play-WRSHD4RE.mjs → play-4IK4WXWU.mjs} +17 -17
  75. package/dist/cli/{play-IRLKESZB.js → play-MEYZEYOV.js} +306 -306
  76. package/dist/cli/{providers-7CQUHS57.mjs → providers-UGHUYP4C.mjs} +6 -6
  77. package/dist/cli/{providers-LKEYLN6D.js → providers-VS5MK4ZH.js} +9 -9
  78. package/dist/cli/{quickstart-KS45M5SR.js → quickstart-GW2ERQ2A.js} +6 -6
  79. package/dist/cli/{quickstart-I6NYGMEE.mjs → quickstart-YBOQSLFV.mjs} +4 -4
  80. package/dist/cli/{run-AZETCL7R.mjs → run-44JT5GJM.mjs} +22 -22
  81. package/dist/cli/{run-BLMOBNAN.js → run-IVGMLY3J.js} +36 -36
  82. package/dist/cli/search-2XTYY7BF.js +32 -0
  83. package/dist/cli/{search-EEKEP67Y.mjs → search-43NY73VR.mjs} +7 -7
  84. package/dist/cli/{secrets-M6NU3TD2.js → secrets-DABUD3B7.js} +15 -15
  85. package/dist/cli/{secrets-HAULG2EW.mjs → secrets-ONDQGW3B.mjs} +6 -6
  86. package/dist/cli/{sessions-DSR5AHIA.js → sessions-4ILQMBKR.js} +6 -6
  87. package/dist/cli/{sessions-5MB4XKOK.mjs → sessions-AIAKKLSR.mjs} +5 -5
  88. package/dist/cli/{settings-6US327NQ.js → settings-BWNLL7TP.js} +78 -78
  89. package/dist/cli/{settings-JUQP4HYQ.mjs → settings-HSGKYOJT.mjs} +11 -11
  90. package/dist/cli/{setup-5ZRSEQUD.js → setup-37QOD4UT.js} +67 -52
  91. package/dist/cli/{setup-JRH4UC47.mjs → setup-LE4OVH4M.mjs} +33 -18
  92. package/dist/cli/{skills-HFOZ5WDH.mjs → skills-A3ZVR2YX.mjs} +7 -7
  93. package/dist/cli/skills-TULQXRQJ.js +33 -0
  94. package/dist/cli/{tools-CJEBZNPB.mjs → tools-ITKPPUDT.mjs} +16 -16
  95. package/dist/cli/tools-QYYBWDXU.js +55 -0
  96. package/dist/cli/{update-VQJEPAAK.mjs → update-XJOSCOK5.mjs} +9 -9
  97. package/dist/cli/update-XSMY7KWH.js +33 -0
  98. package/dist/cli/{workflow-EYWE3T75.mjs → workflow-KYQYFSND.mjs} +7 -7
  99. package/dist/cli/{workflow-NKPDRZOP.js → workflow-LERZ3TYV.js} +17 -17
  100. package/dist/index.js +9 -9
  101. package/dist/index.mjs +6 -6
  102. package/dist/install-integrity.json +96 -96
  103. package/dist/release.d.mts +1 -1
  104. package/dist/release.d.ts +1 -1
  105. package/dist/release.js +2 -2
  106. package/dist/release.mjs +1 -1
  107. package/dist/server.js +5 -5
  108. package/dist/server.mjs +3 -3
  109. package/package.json +1 -1
  110. package/dist/cli/auth-MZDFNRPG.js +0 -41
  111. package/dist/cli/describe-THHHNUEA.js +0 -48
  112. package/dist/cli/git-BX27JAW4.js +0 -25
  113. package/dist/cli/search-PEQXXY2B.js +0 -32
  114. package/dist/cli/skills-P67KCVDR.js +0 -33
  115. package/dist/cli/tools-PDBEAI22.js +0 -55
  116. package/dist/cli/update-G6DI3BQW.js +0 -33
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkLXYDN5FEjs = require('./chunk-LXYDN5FE.js');
5
+ var _chunkWQBJHB63js = require('./chunk-WQBJHB63.js');
6
6
 
7
7
 
8
8
 
@@ -22,14 +22,14 @@ var _chunkLXYDN5FEjs = require('./chunk-LXYDN5FE.js');
22
22
 
23
23
 
24
24
 
25
- var _chunk3SGA53DXjs = require('./chunk-3SGA53DX.js');
25
+ var _chunkTBJ23WKTjs = require('./chunk-TBJ23WKT.js');
26
26
 
27
27
 
28
28
 
29
29
 
30
30
 
31
31
 
32
- var _chunk33O2JGHEjs = require('./chunk-33O2JGHE.js');
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 _chunk3SGA53DXjs.hostEnvFilePath.call(void 0, baseUrl);
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 = _chunk3SGA53DXjs.resolveProjectPinTarget.call(void 0, );
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 `${_chunk3SGA53DXjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
86
+ return `${_chunkTBJ23WKTjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
86
87
  }
87
88
  function legacyPendingClaimTokenPath(baseUrl) {
88
- return `${_chunk3SGA53DXjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
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 _chunk33O2JGHEjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
193
+ return _chunkDQYJXVAFjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
191
194
  }
192
195
  function saveEnvValues(values, baseUrl, scope) {
193
196
  const filtered = {
194
- ...values[_chunk3SGA53DXjs.HOST_URL_ENV] ? { [_chunk3SGA53DXjs.HOST_URL_ENV]: values[_chunk3SGA53DXjs.HOST_URL_ENV] } : {},
195
- ...values[_chunk3SGA53DXjs.API_KEY_ENV] ? { [_chunk3SGA53DXjs.API_KEY_ENV]: values[_chunk3SGA53DXjs.API_KEY_ENV] } : {},
196
- ...values[_chunk3SGA53DXjs.ACTIVE_ORG_ID_ENV] ? { [_chunk3SGA53DXjs.ACTIVE_ORG_ID_ENV]: values[_chunk3SGA53DXjs.ACTIVE_ORG_ID_ENV] } : {},
197
- ...Object.prototype.hasOwnProperty.call(values, _chunk3SGA53DXjs.ACTIVE_ORG_NAME_ENV) ? { [_chunk3SGA53DXjs.ACTIVE_ORG_NAME_ENV]: values[_chunk3SGA53DXjs.ACTIVE_ORG_NAME_ENV] } : {},
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, _chunk3SGA53DXjs.FEATURES_ENV) ? { [_chunk3SGA53DXjs.FEATURES_ENV]: values[_chunk3SGA53DXjs.FEATURES_ENV] } : {}
202
+ ...Object.prototype.hasOwnProperty.call(values, _chunkTBJ23WKTjs.FEATURES_ENV) ? { [_chunkTBJ23WKTjs.FEATURES_ENV]: values[_chunkTBJ23WKTjs.FEATURES_ENV] } : {}
200
203
  };
201
204
  if (scope === "folder") {
202
- _chunk3SGA53DXjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
205
+ _chunkTBJ23WKTjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
203
206
  } else {
204
- _chunk3SGA53DXjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
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
- [_chunk3SGA53DXjs.ACTIVE_ORG_ID_ENV]: orgId,
213
- [_chunk3SGA53DXjs.ACTIVE_ORG_NAME_ENV]: orgName,
214
- ..._chunk3SGA53DXjs.featureEnvValues.call(void 0, data)
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/${_chunk33O2JGHEjs.SDK_VERSION}`,
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": _chunk33O2JGHEjs.detectAgentRuntime.call(void 0, ),
224
- "X-Deepline-CLI-Version": _chunk33O2JGHEjs.SDK_VERSION,
225
- "X-Deepline-SDK-Version": _chunk33O2JGHEjs.SDK_VERSION,
226
- "X-Deepline-API-Contract": _chunk33O2JGHEjs.SDK_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 = _chunk33O2JGHEjs.networkCauseCode.call(void 0, failure);
268
+ const causeCode = _chunkDQYJXVAFjs.networkCauseCode.call(void 0, failure);
266
269
  throw Object.assign(
267
270
  new (0, _chunkDIAWYWT5js.DeeplineError)(
268
- _chunk33O2JGHEjs.connectionFailureMessage.call(void 0, new URL(url).origin, failure),
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" ? _chunk3SGA53DXjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunk3SGA53DXjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
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 handleRegister(args) {
382
- const baseUrl = _chunk3SGA53DXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
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 (e8) {
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
- [_chunk3SGA53DXjs.HOST_URL_ENV]: baseUrl
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" && _chunk33O2JGHEjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
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) _chunkLXYDN5FEjs.openInBrowser.call(void 0, claimUrl);
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
- [_chunk3SGA53DXjs.HOST_URL_ENV]: baseUrl,
493
- [_chunk3SGA53DXjs.API_KEY_ENV]: apiKey,
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 = _chunk3SGA53DXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
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', _12 => _12.claimToken]), () => ( ""));
567
+ const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _17 => _17.claimToken]), () => ( ""));
538
568
  if (!pendingClaim) {
539
- const scopedApiKey = authScope === "folder" ? _chunk3SGA53DXjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunk3SGA53DXjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
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
- [_chunk3SGA53DXjs.HOST_URL_ENV]: baseUrl,
583
- [_chunk3SGA53DXjs.API_KEY_ENV]: apiKey,
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 = _chunk3SGA53DXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
608
- const apiKey = _chunk3SGA53DXjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
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 (e9) {
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 = _chunk3SGA53DXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
661
+ const baseUrl = _chunkTBJ23WKTjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
632
662
  const reveal = args.includes("--reveal");
633
- const jsonOutput = _chunkLXYDN5FEjs.argsWantJson.call(void 0, args);
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 (e10) {
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" ? _chunk3SGA53DXjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunk3SGA53DXjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunk3SGA53DXjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
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
- _chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
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
- _chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
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
- _chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
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, () => ( (_chunk3SGA53DXjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
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
- [_chunk3SGA53DXjs.HOST_URL_ENV]: baseUrl,
791
- [_chunk3SGA53DXjs.API_KEY_ENV]: apiKeyResp,
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 = _chunk3SGA53DXjs.resolveProjectPinTarget.call(void 0, );
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" || _chunk3SGA53DXjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
805
- saveEnvValues(_chunk3SGA53DXjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
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
- _chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
837
+ _chunkWQBJHB63js.printCommandEnvelope.call(void 0,
808
838
  {
809
839
  ...payload,
810
- ..._chunk33O2JGHEjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
811
- command_context: _chunk3SGA53DXjs.resolveCliCommandContext.call(void 0,
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
- 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.handleRegister = handleRegister; exports.handleWait = handleWait; exports.authStatusLine = authStatusLine; exports.handleStatus = handleStatus; exports.registerAuthCommands = registerAuthCommands;
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-FKEZ5DIJ.mjs";
3
+ } from "./chunk-DIDWIPMA.mjs";
4
4
  import {
5
5
  HttpClient,
6
6
  resolveConfig
7
- } from "./chunk-O5BUFQ2P.mjs";
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 _chunkGSULE54Ljs = require('./chunk-GSULE54L.js');
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 _chunkLXYDN5FEjs = require('./chunk-LXYDN5FE.js');
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 = _chunkLXYDN5FEjs.parseJsonFields.call(void 0, args, "run");
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 ? _chunkLXYDN5FEjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkLXYDN5FEjs.argsWantJson.call(void 0, args);
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 = _chunkGSULE54Ljs.parseLogLevel.call(void 0, value);
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 : _chunkGSULE54Ljs.parseLogLevel.call(void 0, options.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 : _chunkLXYDN5FEjs.parseJsonFields.call(void 0,
990
- [...fullJson ? ["--full"] : [], ..._chunkLXYDN5FEjs.jsonFieldArgs.call(void 0, options.json)],
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 || _chunkLXYDN5FEjs.argsWantJson.call(void 0, []) : 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 _chunkLXYDN5FEjs = require('./chunk-LXYDN5FE.js');
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 && !_chunkLXYDN5FEjs.isJsonOutputMode.call(void 0, );
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 (_chunkLXYDN5FEjs.isJsonOutputMode.call(void 0, )) return;
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-K5RRY7DJ.mjs";
14
+ } from "./chunk-57MJL2HU.mjs";
15
15
  import {
16
16
  printCommandEnvelope
17
- } from "./chunk-YC2QBF2W.mjs";
17
+ } from "./chunk-53LLOGNV.mjs";
18
18
  import {
19
19
  autoDetectBaseUrl,
20
20
  ensureProjectPrivatePathsIgnored,
21
21
  resolveProjectPinTarget,
22
22
  sdkCliStateDirPath
23
- } from "./chunk-O5BUFQ2P.mjs";
23
+ } from "./chunk-TXFURKHD.mjs";
24
24
  import {
25
25
  SDK_VERSION,
26
26
  detectAgentRuntime
27
- } from "./chunk-XDFARN7U.mjs";
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 _chunkOVFCPV24js = require('./chunk-OVFCPV24.js');
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 = _chunkOVFCPV24js.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
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,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeRawStderr
3
- } from "./chunk-YC2QBF2W.mjs";
3
+ } from "./chunk-53LLOGNV.mjs";
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  import { InvalidArgumentError } from "commander";