deepline 0.3.513 → 0.3.515

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 (137) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/completed-answer.ts +134 -0
  3. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +25 -31
  4. package/dist/bundling-sources/shared_libs/play-runtime/durable-call-policy.ts +1 -1
  5. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +6 -1
  6. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +33 -2
  7. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-pool.ts +71 -1
  8. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +6 -4
  9. package/dist/cli/{artifacts-SZA52D3P.js → artifacts-6ONZSASU.js} +18 -18
  10. package/dist/cli/{artifacts-AMM4RZNI.mjs → artifacts-C3262FEY.mjs} +6 -6
  11. package/dist/cli/{auth-3HQ7FXPX.mjs → auth-BVCHIFKH.mjs} +5 -5
  12. package/dist/cli/auth-VYECQ6PI.js +43 -0
  13. package/dist/cli/{billing-SVFRN4BJ.js → billing-APS3ELBH.js} +82 -82
  14. package/dist/cli/{billing-7AIKDEQQ.mjs → billing-DUKPCJD5.mjs} +7 -7
  15. package/dist/cli/{chunk-K3CUVLW7.mjs → chunk-2AVO64J2.mjs} +1 -1
  16. package/dist/cli/{chunk-ROIFA4H7.mjs → chunk-2SG4MRCI.mjs} +6 -6
  17. package/dist/cli/{chunk-KINDIV44.mjs → chunk-2T6ZOAXX.mjs} +4 -4
  18. package/dist/cli/{chunk-D72M5LBQ.js → chunk-4FN4WVGL.js} +10 -10
  19. package/dist/cli/{chunk-SDD75XIU.js → chunk-4H3XE5OX.js} +6 -6
  20. package/dist/cli/{chunk-3UKVFI2R.js → chunk-5I2L6VMP.js} +7 -7
  21. package/dist/cli/{chunk-QDGUDNVR.js → chunk-5TOFI5GC.js} +7 -7
  22. package/dist/cli/{chunk-OD72PULZ.mjs → chunk-5YFBVXFQ.mjs} +2 -2
  23. package/dist/cli/{chunk-7UVKC5G4.mjs → chunk-62PFEEX3.mjs} +1 -1
  24. package/dist/cli/{chunk-P63SBUEW.mjs → chunk-6FM7YDHA.mjs} +1 -1
  25. package/dist/cli/{chunk-TWHJ4WCA.js → chunk-7TFAKDSD.js} +16 -16
  26. package/dist/cli/{chunk-FC6BR2OA.mjs → chunk-AC3YRA3Y.mjs} +13 -12
  27. package/dist/cli/{chunk-JI2LKS5V.js → chunk-BSR56POG.js} +11 -11
  28. package/dist/cli/{chunk-P6TG7COR.js → chunk-BX5N4YT4.js} +53 -53
  29. package/dist/cli/{chunk-5IZXMA2L.js → chunk-C24VEYSP.js} +17 -4
  30. package/dist/cli/{chunk-7NIBAJML.mjs → chunk-CB4ZU276.mjs} +2 -2
  31. package/dist/cli/{chunk-MPOF4Z44.js → chunk-CZLYC62O.js} +1 -1
  32. package/dist/cli/{chunk-Z52XVM5I.js → chunk-DEGOD6EH.js} +3 -3
  33. package/dist/cli/{chunk-VMLZQ3VM.js → chunk-DWASXQF6.js} +14 -14
  34. package/dist/cli/{chunk-LA66PYB4.mjs → chunk-EA775NLJ.mjs} +2 -2
  35. package/dist/cli/{chunk-UDVX7HKU.js → chunk-F6OXFG5K.js} +16 -16
  36. package/dist/cli/{chunk-PGHCBL5G.js → chunk-FGKQ2MVA.js} +3 -3
  37. package/dist/cli/{chunk-XCP75LSJ.mjs → chunk-FHJTOHSE.mjs} +1 -1
  38. package/dist/cli/{chunk-JNNQ53BX.mjs → chunk-FVWUNN6J.mjs} +2 -2
  39. package/dist/cli/{chunk-YZW4ZLU3.js → chunk-GESSUOYZ.js} +38 -23
  40. package/dist/cli/{chunk-5UWWZLMX.mjs → chunk-HJ5B67S3.mjs} +17 -4
  41. package/dist/cli/{chunk-EAQQTYJL.js → chunk-HSESQ4OG.js} +5 -5
  42. package/dist/cli/{chunk-PFEFK2FB.js → chunk-JMPBBVRF.js} +26 -26
  43. package/dist/cli/{chunk-HDDE4Y4V.js → chunk-JUCUJFBH.js} +2 -2
  44. package/dist/cli/{chunk-6UVAYLQG.js → chunk-LVVWOMK6.js} +2 -2
  45. package/dist/cli/{chunk-FLG3VIDQ.mjs → chunk-LXOMP5AZ.mjs} +5 -5
  46. package/dist/cli/{chunk-JA5PBN44.js → chunk-M4DZLI3T.js} +6 -6
  47. package/dist/cli/{chunk-PPQU263U.mjs → chunk-MMZO25CN.mjs} +2 -2
  48. package/dist/cli/{chunk-3WHK7WCP.mjs → chunk-N43XH6VY.mjs} +3 -3
  49. package/dist/cli/{chunk-ROJ55CXM.mjs → chunk-NP6FLJ75.mjs} +1 -1
  50. package/dist/cli/{chunk-6JNRYX65.js → chunk-NTWNM5IW.js} +2 -2
  51. package/dist/cli/{chunk-ZDO67LFA.mjs → chunk-ODJS43GU.mjs} +5 -5
  52. package/dist/cli/{chunk-P2EHYH2Q.mjs → chunk-QPA3ZG56.mjs} +1 -1
  53. package/dist/cli/{chunk-46QVEEXR.mjs → chunk-R5RWDO75.mjs} +1 -1
  54. package/dist/cli/{chunk-ZKUXTF6X.mjs → chunk-RK5V6MFG.mjs} +2 -2
  55. package/dist/cli/{chunk-ORQVTTTM.js → chunk-RPXW5XUC.js} +5 -5
  56. package/dist/cli/{chunk-B4BKATGX.mjs → chunk-T6XPF7AP.mjs} +21 -6
  57. package/dist/cli/{chunk-H6WD65CD.js → chunk-TRJLHTHI.js} +99 -98
  58. package/dist/cli/{chunk-4EGBOZ53.js → chunk-TTH5IEHD.js} +9 -9
  59. package/dist/cli/{chunk-5T4SZPVO.mjs → chunk-TX4OUEUU.mjs} +2 -2
  60. package/dist/cli/{chunk-CEWRCUSH.mjs → chunk-TYUC56PS.mjs} +23 -12
  61. package/dist/cli/{chunk-ADB6FD2Q.js → chunk-UBY2MSP4.js} +41 -41
  62. package/dist/cli/{chunk-C5KH6FDN.mjs → chunk-Z6PDSCJ3.mjs} +3 -3
  63. package/dist/cli/{chunk-U5QR527Y.js → chunk-Z7YEZWP3.js} +62 -51
  64. package/dist/cli/{chunk-Y2SIHXYS.js → chunk-ZEZAFOH3.js} +4 -4
  65. package/dist/cli/{chunk-WFN6SB2B.mjs → chunk-ZL4C3NPO.mjs} +1 -1
  66. package/dist/cli/{chunk-3SE4O52N.mjs → chunk-ZMFR4BKH.mjs} +1 -1
  67. package/dist/cli/command-docs.js +2 -2
  68. package/dist/cli/command-docs.mjs +1 -1
  69. package/dist/cli/{csv-WKF5O6C4.js → csv-L63HLRNM.js} +13 -13
  70. package/dist/cli/{csv-56JWAO3Y.mjs → csv-NOYOCDAK.mjs} +4 -4
  71. package/dist/cli/{db-SENEFS45.mjs → db-637BNZ2B.mjs} +6 -6
  72. package/dist/cli/{db-UURETUXZ.js → db-UBQFFOTS.js} +27 -27
  73. package/dist/cli/describe-C7FBGVGM.js +50 -0
  74. package/dist/cli/{describe-R3XKAGF5.mjs → describe-KAUMYSRG.mjs} +18 -18
  75. package/dist/cli/{executions-BAUUWHSW.mjs → executions-NGPKKOLW.mjs} +6 -6
  76. package/dist/cli/{executions-WZUS3S2K.js → executions-RNOBWJ3P.js} +8 -8
  77. package/dist/cli/{feedback-Z6A7WMJS.js → feedback-7BHVKCY5.js} +10 -10
  78. package/dist/cli/{feedback-5SCDE247.mjs → feedback-NREYHFEJ.mjs} +5 -5
  79. package/dist/cli/{git-246MRTK7.mjs → git-DSTDRP3J.mjs} +5 -5
  80. package/dist/cli/git-XTEKRVO3.js +25 -0
  81. package/dist/cli/index.js +145 -145
  82. package/dist/cli/index.mjs +44 -44
  83. package/dist/cli/{legacy-noops-M242HT67.mjs → legacy-noops-TC7WNDQS.mjs} +6 -6
  84. package/dist/cli/{legacy-noops-AKETAVNI.js → legacy-noops-VTNA7T4P.js} +9 -9
  85. package/dist/cli/{monitors-QIHYTSKD.js → monitors-IC4NIUE5.js} +100 -100
  86. package/dist/cli/{monitors-N5T6PLCX.mjs → monitors-YNQ6LYCY.mjs} +7 -7
  87. package/dist/cli/{org-BSCPIN7Y.js → org-B47C34FY.js} +72 -72
  88. package/dist/cli/{org-YMDLKBVM.mjs → org-MF2UEFK4.mjs} +6 -6
  89. package/dist/cli/{pages-FRLPAY6I.mjs → pages-3EC54UPO.mjs} +6 -6
  90. package/dist/cli/{pages-BYSQBWD5.js → pages-A3JMHBHD.js} +18 -18
  91. package/dist/cli/{play-CMJI6RNI.mjs → play-BLFSS42Z.mjs} +18 -18
  92. package/dist/cli/{play-OIJAMP5P.js → play-LAEAIGU4.js} +317 -317
  93. package/dist/cli/{providers-KWFIH3E7.mjs → providers-PEXILFIA.mjs} +6 -6
  94. package/dist/cli/{providers-6Q7H2RYZ.js → providers-XNC5JF3F.js} +9 -9
  95. package/dist/cli/{quickstart-UZWAQ7VJ.mjs → quickstart-E2PKFV2L.mjs} +4 -4
  96. package/dist/cli/{quickstart-GU35UZPU.js → quickstart-XRU23BKT.js} +6 -6
  97. package/dist/cli/{run-AJ24G4CT.mjs → run-5QI3H7HH.mjs} +23 -23
  98. package/dist/cli/{run-OYOQIVBM.js → run-T7U6DRMZ.js} +41 -41
  99. package/dist/cli/search-A6HYC5XI.js +33 -0
  100. package/dist/cli/{search-2KNDV3DL.mjs → search-WLXLC3Z3.mjs} +8 -8
  101. package/dist/cli/{search-output-526FOJQD.js → search-output-7WXW6WZQ.js} +6 -6
  102. package/dist/cli/{search-output-X5TMIIA4.mjs → search-output-HGO5JVJO.mjs} +4 -4
  103. package/dist/cli/{secrets-QL5SMK62.js → secrets-TTGCKS7Z.js} +15 -15
  104. package/dist/cli/{secrets-XEOGG6TV.mjs → secrets-ZYDUC6NU.mjs} +6 -6
  105. package/dist/cli/{sessions-Z352OY5B.mjs → sessions-3KMK76O3.mjs} +6 -6
  106. package/dist/cli/sessions-5X4PTBB6.js +18 -0
  107. package/dist/cli/{settings-EKLYIRWJ.js → settings-LF43ODWF.js} +86 -86
  108. package/dist/cli/{settings-AET5AKBY.mjs → settings-YA3ZNWZA.mjs} +13 -13
  109. package/dist/cli/{setup-JPGTZYR2.mjs → setup-26D6ZPSI.mjs} +10 -10
  110. package/dist/cli/{setup-IJWDEYLG.js → setup-XBY4GXCA.js} +50 -50
  111. package/dist/cli/{skills-DGCK6723.mjs → skills-LYPZTDUL.mjs} +8 -8
  112. package/dist/cli/skills-ZA7YZBQC.js +37 -0
  113. package/dist/cli/{tools-7GEQLQWX.mjs → tools-5JNLULNK.mjs} +17 -17
  114. package/dist/cli/tools-LBDNLH4V.js +57 -0
  115. package/dist/cli/update-CEH2LRAC.js +35 -0
  116. package/dist/cli/{update-SAN6LDPT.mjs → update-UIO6RHIB.mjs} +10 -10
  117. package/dist/cli/{workflow-C66GOHRB.mjs → workflow-H5UVEIGG.mjs} +7 -7
  118. package/dist/cli/{workflow-E4NGYGGM.js → workflow-UQ2S2X42.js} +17 -17
  119. package/dist/index.js +9 -9
  120. package/dist/index.mjs +6 -6
  121. package/dist/install-integrity.json +107 -106
  122. package/dist/plays/bundle-play-file.mjs +6 -4
  123. package/dist/release.d.mts +1 -1
  124. package/dist/release.d.ts +1 -1
  125. package/dist/release.js +2 -2
  126. package/dist/release.mjs +1 -1
  127. package/dist/server.js +5 -5
  128. package/dist/server.mjs +3 -3
  129. package/package.json +1 -1
  130. package/dist/cli/auth-THCURTEC.js +0 -43
  131. package/dist/cli/describe-GIJAGNZM.js +0 -50
  132. package/dist/cli/git-D5UAIEQE.js +0 -25
  133. package/dist/cli/search-UZM6U4MZ.js +0 -33
  134. package/dist/cli/sessions-T27GUYZX.js +0 -18
  135. package/dist/cli/skills-MLMVPHWG.js +0 -37
  136. package/dist/cli/tools-5WBKZRLQ.js +0 -57
  137. package/dist/cli/update-JK4NLT4H.js +0 -35
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk3UKVFI2Rjs = require('./chunk-3UKVFI2R.js');
5
+ var _chunk5I2L6VMPjs = require('./chunk-5I2L6VMP.js');
6
6
 
7
7
 
8
8
 
@@ -22,14 +22,14 @@ var _chunk3UKVFI2Rjs = require('./chunk-3UKVFI2R.js');
22
22
 
23
23
 
24
24
 
25
- var _chunkPGHCBL5Gjs = require('./chunk-PGHCBL5G.js');
25
+ var _chunkFGKQ2MVAjs = require('./chunk-FGKQ2MVA.js');
26
26
 
27
27
 
28
28
 
29
29
 
30
30
 
31
31
 
32
- var _chunkY2SIHXYSjs = require('./chunk-Y2SIHXYS.js');
32
+ var _chunkZEZAFOH3js = require('./chunk-ZEZAFOH3.js');
33
33
 
34
34
 
35
35
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
@@ -60,7 +60,7 @@ function statusBannerLine(value) {
60
60
  return `Service notice: ${banner.message}`;
61
61
  }
62
62
  function envFilePath(baseUrl) {
63
- return _chunkPGHCBL5Gjs.hostEnvFilePath.call(void 0, baseUrl);
63
+ return _chunkFGKQ2MVAjs.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 = _chunkPGHCBL5Gjs.resolveProjectPinTarget.call(void 0, );
76
+ const target = _chunkFGKQ2MVAjs.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 `${_chunkPGHCBL5Gjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
86
+ return `${_chunkFGKQ2MVAjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
87
87
  }
88
88
  function legacyPendingClaimTokenPath(baseUrl) {
89
- return `${_chunkPGHCBL5Gjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
89
+ return `${_chunkFGKQ2MVAjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
90
90
  }
91
91
  function savePendingClaim(baseUrl, claim) {
92
92
  const filePath = pendingClaimPath(baseUrl, claim.scope);
@@ -190,21 +190,21 @@ function parseRegisterWaitMode(args) {
190
190
  function shouldWaitForRegisterClaim(mode) {
191
191
  if (mode === "yes") return true;
192
192
  if (mode === "no") return false;
193
- return _chunkY2SIHXYSjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
193
+ return _chunkZEZAFOH3js.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
194
194
  }
195
195
  function saveEnvValues(values, baseUrl, scope) {
196
196
  const filtered = {
197
- ...values[_chunkPGHCBL5Gjs.HOST_URL_ENV] ? { [_chunkPGHCBL5Gjs.HOST_URL_ENV]: values[_chunkPGHCBL5Gjs.HOST_URL_ENV] } : {},
198
- ...values[_chunkPGHCBL5Gjs.API_KEY_ENV] ? { [_chunkPGHCBL5Gjs.API_KEY_ENV]: values[_chunkPGHCBL5Gjs.API_KEY_ENV] } : {},
199
- ...values[_chunkPGHCBL5Gjs.ACTIVE_ORG_ID_ENV] ? { [_chunkPGHCBL5Gjs.ACTIVE_ORG_ID_ENV]: values[_chunkPGHCBL5Gjs.ACTIVE_ORG_ID_ENV] } : {},
200
- ...Object.prototype.hasOwnProperty.call(values, _chunkPGHCBL5Gjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkPGHCBL5Gjs.ACTIVE_ORG_NAME_ENV]: values[_chunkPGHCBL5Gjs.ACTIVE_ORG_NAME_ENV] } : {},
197
+ ...values[_chunkFGKQ2MVAjs.HOST_URL_ENV] ? { [_chunkFGKQ2MVAjs.HOST_URL_ENV]: values[_chunkFGKQ2MVAjs.HOST_URL_ENV] } : {},
198
+ ...values[_chunkFGKQ2MVAjs.API_KEY_ENV] ? { [_chunkFGKQ2MVAjs.API_KEY_ENV]: values[_chunkFGKQ2MVAjs.API_KEY_ENV] } : {},
199
+ ...values[_chunkFGKQ2MVAjs.ACTIVE_ORG_ID_ENV] ? { [_chunkFGKQ2MVAjs.ACTIVE_ORG_ID_ENV]: values[_chunkFGKQ2MVAjs.ACTIVE_ORG_ID_ENV] } : {},
200
+ ...Object.prototype.hasOwnProperty.call(values, _chunkFGKQ2MVAjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkFGKQ2MVAjs.ACTIVE_ORG_NAME_ENV]: values[_chunkFGKQ2MVAjs.ACTIVE_ORG_NAME_ENV] } : {},
201
201
  // An explicit empty list must reach the store: it clears a stale line.
202
- ...Object.prototype.hasOwnProperty.call(values, _chunkPGHCBL5Gjs.FEATURES_ENV) ? { [_chunkPGHCBL5Gjs.FEATURES_ENV]: values[_chunkPGHCBL5Gjs.FEATURES_ENV] } : {}
202
+ ...Object.prototype.hasOwnProperty.call(values, _chunkFGKQ2MVAjs.FEATURES_ENV) ? { [_chunkFGKQ2MVAjs.FEATURES_ENV]: values[_chunkFGKQ2MVAjs.FEATURES_ENV] } : {}
203
203
  };
204
204
  if (scope === "folder") {
205
- _chunkPGHCBL5Gjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
205
+ _chunkFGKQ2MVAjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
206
206
  } else {
207
- _chunkPGHCBL5Gjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
207
+ _chunkFGKQ2MVAjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
208
208
  }
209
209
  }
210
210
  function activeOrgEnvValues(data) {
@@ -212,21 +212,21 @@ function activeOrgEnvValues(data) {
212
212
  if (!orgId) return {};
213
213
  const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
214
214
  return {
215
- [_chunkPGHCBL5Gjs.ACTIVE_ORG_ID_ENV]: orgId,
216
- [_chunkPGHCBL5Gjs.ACTIVE_ORG_NAME_ENV]: orgName,
217
- ..._chunkPGHCBL5Gjs.featureEnvValues.call(void 0, data)
215
+ [_chunkFGKQ2MVAjs.ACTIVE_ORG_ID_ENV]: orgId,
216
+ [_chunkFGKQ2MVAjs.ACTIVE_ORG_NAME_ENV]: orgName,
217
+ ..._chunkFGKQ2MVAjs.featureEnvValues.call(void 0, data)
218
218
  };
219
219
  }
220
220
  async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
221
221
  const headers = {
222
222
  "Content-Type": "application/json",
223
- "User-Agent": `deepline-ts-sdk/${_chunkY2SIHXYSjs.SDK_VERSION}`,
223
+ "User-Agent": `deepline-ts-sdk/${_chunkZEZAFOH3js.SDK_VERSION}`,
224
224
  "X-Deepline-Client-Family": "sdk",
225
225
  "X-Deepline-CLI-Family": "sdk",
226
- "X-Deepline-Agent-Runtime": _chunkY2SIHXYSjs.detectAgentRuntime.call(void 0, ),
227
- "X-Deepline-CLI-Version": _chunkY2SIHXYSjs.SDK_VERSION,
228
- "X-Deepline-SDK-Version": _chunkY2SIHXYSjs.SDK_VERSION,
229
- "X-Deepline-API-Contract": _chunkY2SIHXYSjs.SDK_API_CONTRACT
226
+ "X-Deepline-Agent-Runtime": _chunkZEZAFOH3js.detectAgentRuntime.call(void 0, ),
227
+ "X-Deepline-CLI-Version": _chunkZEZAFOH3js.SDK_VERSION,
228
+ "X-Deepline-SDK-Version": _chunkZEZAFOH3js.SDK_VERSION,
229
+ "X-Deepline-API-Contract": _chunkZEZAFOH3js.SDK_API_CONTRACT
230
230
  };
231
231
  if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
232
232
  const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
@@ -265,10 +265,10 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
265
265
  if (failure.name === "AbortError" || failure.name === "TimeoutError") {
266
266
  throw failure;
267
267
  }
268
- const causeCode = _chunkY2SIHXYSjs.networkCauseCode.call(void 0, failure);
268
+ const causeCode = _chunkZEZAFOH3js.networkCauseCode.call(void 0, failure);
269
269
  throw Object.assign(
270
270
  new (0, _chunkDIAWYWT5js.DeeplineError)(
271
- _chunkY2SIHXYSjs.connectionFailureMessage.call(void 0, new URL(url).origin, failure),
271
+ _chunkZEZAFOH3js.connectionFailureMessage.call(void 0, new URL(url).origin, failure),
272
272
  void 0,
273
273
  "NETWORK_ERROR",
274
274
  causeCode ? { causeCode } : void 0
@@ -285,7 +285,7 @@ async function readStatusBanner(baseUrl) {
285
285
  return _optionalChain([response, 'optionalAccess', _11 => _11.status]) === 200 ? _nullishCoalesce(response.data.banner, () => ( null)) : null;
286
286
  }
287
287
  async function reportSetupCompleted(input) {
288
- const apiKey = input.authScope === "folder" ? _chunkPGHCBL5Gjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkPGHCBL5Gjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
288
+ const apiKey = input.authScope === "folder" ? _chunkFGKQ2MVAjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkFGKQ2MVAjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
289
289
  if (!apiKey) return;
290
290
  try {
291
291
  await httpJson(
@@ -414,7 +414,7 @@ function endClaimPollOnRefusal(status, data, baseUrl, authScope) {
414
414
  return EXIT_SERVER;
415
415
  }
416
416
  async function handleRegister(args, options) {
417
- const baseUrl = _chunkPGHCBL5Gjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
417
+ const baseUrl = _chunkFGKQ2MVAjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
418
418
  let orgName = "";
419
419
  let orgId = "";
420
420
  let agentName = "";
@@ -473,19 +473,19 @@ async function handleRegister(args, options) {
473
473
  savePendingClaim(baseUrl, pendingClaim);
474
474
  saveEnvValues(
475
475
  {
476
- [_chunkPGHCBL5Gjs.HOST_URL_ENV]: baseUrl
476
+ [_chunkFGKQ2MVAjs.HOST_URL_ENV]: baseUrl
477
477
  },
478
478
  baseUrl,
479
479
  authScope
480
480
  );
481
481
  }
482
482
  if (claimUrl) {
483
- const shouldOpen = waitMode !== "no" && _chunkY2SIHXYSjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
483
+ const shouldOpen = waitMode !== "no" && _chunkZEZAFOH3js.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
484
484
  console.log(
485
485
  shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
486
486
  );
487
487
  console.log(` ${claimUrl}`);
488
- if (shouldOpen) _chunk3UKVFI2Rjs.openInBrowser.call(void 0, claimUrl);
488
+ if (shouldOpen) _chunk5I2L6VMPjs.openInBrowser.call(void 0, claimUrl);
489
489
  if (claimToken && pendingClaim.approvalLinkReporting && !_optionalChain([options, 'optionalAccess', _16 => _16.deferApprovalLinkReport])) {
490
490
  await reportApprovalLinkShown(
491
491
  baseUrl,
@@ -534,8 +534,8 @@ async function handleRegister(args, options) {
534
534
  if (apiKey) {
535
535
  saveEnvValues(
536
536
  {
537
- [_chunkPGHCBL5Gjs.HOST_URL_ENV]: baseUrl,
538
- [_chunkPGHCBL5Gjs.API_KEY_ENV]: apiKey,
537
+ [_chunkFGKQ2MVAjs.HOST_URL_ENV]: baseUrl,
538
+ [_chunkFGKQ2MVAjs.API_KEY_ENV]: apiKey,
539
539
  ...activeOrgEnvValues(statusData)
540
540
  },
541
541
  baseUrl,
@@ -557,7 +557,7 @@ async function handleRegister(args, options) {
557
557
  }
558
558
  }
559
559
  async function handleWait(args) {
560
- const baseUrl = _chunkPGHCBL5Gjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
560
+ const baseUrl = _chunkFGKQ2MVAjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
561
561
  let timeoutSeconds = 300;
562
562
  let requestedScope;
563
563
  if (args.includes("--auth-scope")) {
@@ -581,7 +581,7 @@ async function handleWait(args) {
581
581
  const authScope = resumed.scope;
582
582
  const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _17 => _17.claimToken]), () => ( ""));
583
583
  if (!pendingClaim) {
584
- const scopedApiKey = authScope === "folder" ? _chunkPGHCBL5Gjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkPGHCBL5Gjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
584
+ const scopedApiKey = authScope === "folder" ? _chunkFGKQ2MVAjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkFGKQ2MVAjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
585
585
  if (scopedApiKey) {
586
586
  console.log("Already connected.");
587
587
  return EXIT_OK;
@@ -623,8 +623,8 @@ async function handleWait(args) {
623
623
  if (apiKey) {
624
624
  saveEnvValues(
625
625
  {
626
- [_chunkPGHCBL5Gjs.HOST_URL_ENV]: baseUrl,
627
- [_chunkPGHCBL5Gjs.API_KEY_ENV]: apiKey,
626
+ [_chunkFGKQ2MVAjs.HOST_URL_ENV]: baseUrl,
627
+ [_chunkFGKQ2MVAjs.API_KEY_ENV]: apiKey,
628
628
  ...activeOrgEnvValues(data)
629
629
  },
630
630
  baseUrl,
@@ -648,8 +648,8 @@ async function handleWait(args) {
648
648
  return EXIT_AUTH;
649
649
  }
650
650
  async function authStatusLine(timeoutMs = 3e3) {
651
- const baseUrl = _chunkPGHCBL5Gjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
652
- const apiKey = _chunkPGHCBL5Gjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
651
+ const baseUrl = _chunkFGKQ2MVAjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
652
+ const apiKey = _chunkFGKQ2MVAjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
653
653
  if (!apiKey) return `Auth: not connected (${baseUrl})`;
654
654
  try {
655
655
  const { status, data } = await httpJson(
@@ -672,9 +672,9 @@ async function authStatusLine(timeoutMs = 3e3) {
672
672
  }
673
673
  }
674
674
  async function handleStatus(args) {
675
- const baseUrl = _chunkPGHCBL5Gjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
675
+ const baseUrl = _chunkFGKQ2MVAjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
676
676
  const reveal = args.includes("--reveal");
677
- const jsonOutput = _chunk3UKVFI2Rjs.argsWantJson.call(void 0, args);
677
+ const jsonOutput = _chunk5I2L6VMPjs.argsWantJson.call(void 0, args);
678
678
  const hasExplicitAuthScope = args.includes("--auth-scope");
679
679
  let authScope = null;
680
680
  if (hasExplicitAuthScope) {
@@ -715,14 +715,14 @@ async function handleStatus(args) {
715
715
  };
716
716
  hostLines.push(`Host: ${baseUrl} (unreachable)`);
717
717
  }
718
- const apiKey = authScope === "folder" ? _chunkPGHCBL5Gjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkPGHCBL5Gjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkPGHCBL5Gjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
718
+ const apiKey = authScope === "folder" ? _chunkFGKQ2MVAjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkFGKQ2MVAjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkFGKQ2MVAjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
719
719
  if (!apiKey) {
720
720
  const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
721
721
  baseUrl,
722
722
  _nullishCoalesce(authScope, () => ( void 0))
723
723
  );
724
724
  if (pendingClaim) {
725
- _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
725
+ _chunk5I2L6VMPjs.printCommandEnvelope.call(void 0,
726
726
  {
727
727
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
728
728
  status: "pending",
@@ -743,7 +743,7 @@ async function handleStatus(args) {
743
743
  );
744
744
  return EXIT_OK;
745
745
  }
746
- _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
746
+ _chunk5I2L6VMPjs.printCommandEnvelope.call(void 0,
747
747
  {
748
748
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
749
749
  status: "not connected",
@@ -776,7 +776,7 @@ async function handleStatus(args) {
776
776
  }
777
777
  );
778
778
  if (status === 401 || status === 403) {
779
- _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
779
+ _chunk5I2L6VMPjs.printCommandEnvelope.call(void 0,
780
780
  {
781
781
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
782
782
  status: "unauthorized",
@@ -803,7 +803,7 @@ async function handleStatus(args) {
803
803
  console.error(`Auth status error (status ${status}).`);
804
804
  return EXIT_SERVER;
805
805
  }
806
- const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkPGHCBL5Gjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
806
+ const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkFGKQ2MVAjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
807
807
  clearSatisfiedPendingClaim(
808
808
  baseUrl,
809
809
  resolvedAuthScope,
@@ -831,28 +831,28 @@ async function handleStatus(args) {
831
831
  if (apiKeyResp) {
832
832
  saveEnvValues(
833
833
  {
834
- [_chunkPGHCBL5Gjs.HOST_URL_ENV]: baseUrl,
835
- [_chunkPGHCBL5Gjs.API_KEY_ENV]: apiKeyResp,
834
+ [_chunkFGKQ2MVAjs.HOST_URL_ENV]: baseUrl,
835
+ [_chunkFGKQ2MVAjs.API_KEY_ENV]: apiKeyResp,
836
836
  ...activeOrgEnvValues(data)
837
837
  },
838
838
  baseUrl,
839
839
  resolvedAuthScope
840
840
  );
841
841
  if (resolvedAuthScope === "folder") {
842
- const target = _chunkPGHCBL5Gjs.resolveProjectPinTarget.call(void 0, );
842
+ const target = _chunkFGKQ2MVAjs.resolveProjectPinTarget.call(void 0, );
843
843
  savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
844
844
  } else {
845
845
  savedApiKeyPath = envFilePath(baseUrl);
846
846
  }
847
847
  }
848
- } else if (resolvedAuthScope === "folder" || _chunkPGHCBL5Gjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
849
- saveEnvValues(_chunkPGHCBL5Gjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
848
+ } else if (resolvedAuthScope === "folder" || _chunkFGKQ2MVAjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
849
+ saveEnvValues(_chunkFGKQ2MVAjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
850
850
  }
851
- _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
851
+ _chunk5I2L6VMPjs.printCommandEnvelope.call(void 0,
852
852
  {
853
853
  ...payload,
854
- ..._chunkY2SIHXYSjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
855
- command_context: _chunkPGHCBL5Gjs.resolveCliCommandContext.call(void 0,
854
+ ..._chunkZEZAFOH3js.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
855
+ command_context: _chunkFGKQ2MVAjs.resolveCliCommandContext.call(void 0,
856
856
  { baseUrl, apiKey },
857
857
  resolvedAuthScope
858
858
  )
@@ -866,10 +866,23 @@ Authoring rules:
866
866
  rows.peek(n), rows.materialize(n), or for await. Array methods on a
867
867
  handle fail [[cli:plays check]][[mcp:deepline_check_play]].
868
868
  Tool calls: deepline.tools.execute({ id, tool, input, description,
869
- staleAfterSeconds }). In authoring edition 11, choose freshness explicitly:
870
- 0 for fresh logical work, a positive integer for the maximum reusable
871
- result age in seconds, or null for indefinite result reuse. A matching
872
- completed operation receipt can still recover that operation after resume.
869
+ staleAfterSeconds }). staleAfterSeconds decides whether a finished answer
870
+ may be reused. 0 is a fresh call (so is leaving it out in editions before
871
+ 11; edition 11 requires you to choose). A positive number accepts a
872
+ completed, successful answer to the same request (same workspace,
873
+ credential and tool version) up to that many seconds old, and otherwise
874
+ runs the tool. null accepts an answer of any age. A reused answer makes no
875
+ provider call and no provider charge; Play compute still applies. This
876
+ holds for every tool: a positive window on a write, send or purchase
877
+ skips a repeat of it on purpose, so use 0 for a repeat and re-read after a
878
+ write with 0. A repeat is skipped only after an earlier call has finished:
879
+ overlapping calls both run, so a send that must happen once needs a
880
+ provider idempotency key. Failed, empty and unfinished answers are never
881
+ reused, so a retry runs again. Resuming a run returns its own finished calls whatever
882
+ the window. Provider idempotency keys, HTTP caches and in-run
883
+ deduplication are separate. result._metadata.execution.freshness shows
884
+ source (executed, operation_recovery, reusable_result or
885
+ live_observation), resultAgeMs and completedAt.
873
886
  Read
874
887
  results the way [[cli:describe]][[mcp:deepline_describe_tool]] lists them:
875
888
  result.fields.<name>.value for a value whose meaning is known, also by
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  traceCliSpan
3
- } from "./chunk-ROJ55CXM.mjs";
3
+ } from "./chunk-NP6FLJ75.mjs";
4
4
  import {
5
5
  checkSdkCompatibility,
6
6
  enforceSdkCompatibilityResponse,
7
7
  flushDeferredSkillsSyncNotices
8
- } from "./chunk-CEWRCUSH.mjs";
8
+ } from "./chunk-TYUC56PS.mjs";
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
49
49
  // getters keep their established compatibility behavior.
50
50
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
51
51
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
52
- version: "0.3.513",
52
+ version: "0.3.515",
53
53
  updateSummary: {
54
54
  introducedIn: "0.3.90",
55
55
  summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
@@ -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 _chunk3UKVFI2Rjs = require('./chunk-3UKVFI2R.js');
3
+ var _chunk5I2L6VMPjs = require('./chunk-5I2L6VMP.js');
4
4
 
5
5
  // src/cli/progress.ts
6
6
  var _worker_threads = require('worker_threads');
@@ -19,7 +19,7 @@ var CliProgress = (_class = class {
19
19
  __init9() {this.quiet = false}
20
20
  // --json output is one JSON document: progress never renders under it.
21
21
  constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);
22
- this.enabled = enabled && !_chunk3UKVFI2Rjs.isJsonOutputMode.call(void 0, );
22
+ this.enabled = enabled && !_chunk5I2L6VMPjs.isJsonOutputMode.call(void 0, );
23
23
  }
24
24
  setLogWriter(writer) {
25
25
  this.logWriter = writer;
@@ -59,7 +59,7 @@ var CliProgress = (_class = class {
59
59
  this.logWriter(line);
60
60
  return;
61
61
  }
62
- if (_chunk3UKVFI2Rjs.isJsonOutputMode.call(void 0, )) return;
62
+ if (_chunk5I2L6VMPjs.isJsonOutputMode.call(void 0, )) return;
63
63
  if (!this.enabled) {
64
64
  process.stderr.write(`${line}
65
65
  `);
@@ -1,13 +1,13 @@
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
3
 
4
- var _chunkPGHCBL5Gjs = require('./chunk-PGHCBL5G.js');
4
+ var _chunkFGKQ2MVAjs = require('./chunk-FGKQ2MVA.js');
5
5
 
6
6
 
7
7
 
8
8
 
9
9
 
10
- var _chunkY2SIHXYSjs = require('./chunk-Y2SIHXYS.js');
10
+ var _chunkZEZAFOH3js = require('./chunk-ZEZAFOH3.js');
11
11
 
12
12
 
13
13
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
@@ -150,7 +150,7 @@ function buildEnvironmentContext() {
150
150
  node_version: process.version,
151
151
  runtime: "Node.js",
152
152
  hostname: _os.hostname.call(void 0, ),
153
- agent_runtime: _chunkY2SIHXYSjs.detectAgentRuntime.call(void 0, )
153
+ agent_runtime: _chunkZEZAFOH3js.detectAgentRuntime.call(void 0, )
154
154
  };
155
155
  for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
156
156
  const normalized = _optionalChain([process, 'access', _5 => _5.env, 'access', _6 => _6[key], 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]);
@@ -171,18 +171,18 @@ function buildEnvironmentContext() {
171
171
  return context;
172
172
  }
173
173
  function failureReportHeaders(apiKey) {
174
- const agentSessionId = _chunkY2SIHXYSjs.agentSessionIdFromEnvironment.call(void 0, );
174
+ const agentSessionId = _chunkZEZAFOH3js.agentSessionIdFromEnvironment.call(void 0, );
175
175
  return {
176
- ..._chunkY2SIHXYSjs.deploymentProtectionHeaders.call(void 0, ),
176
+ ..._chunkZEZAFOH3js.deploymentProtectionHeaders.call(void 0, ),
177
177
  ...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
178
178
  Authorization: `Bearer ${apiKey}`,
179
179
  "Content-Type": "application/json",
180
- "User-Agent": `deepline-ts-sdk/${_chunkY2SIHXYSjs.SDK_VERSION}`,
180
+ "User-Agent": `deepline-ts-sdk/${_chunkZEZAFOH3js.SDK_VERSION}`,
181
181
  "X-Deepline-Client-Family": "sdk",
182
182
  "X-Deepline-CLI-Family": "sdk",
183
- "X-Deepline-Agent-Runtime": _chunkY2SIHXYSjs.detectAgentRuntime.call(void 0, ),
184
- "X-Deepline-CLI-Version": _chunkY2SIHXYSjs.SDK_VERSION,
185
- "X-Deepline-SDK-Version": _chunkY2SIHXYSjs.SDK_VERSION
183
+ "X-Deepline-Agent-Runtime": _chunkZEZAFOH3js.detectAgentRuntime.call(void 0, ),
184
+ "X-Deepline-CLI-Version": _chunkZEZAFOH3js.SDK_VERSION,
185
+ "X-Deepline-SDK-Version": _chunkZEZAFOH3js.SDK_VERSION
186
186
  };
187
187
  }
188
188
  async function postFailureReport(input) {
@@ -210,7 +210,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
210
210
  if (isFailureReportingDisabled()) return false;
211
211
  let apiKey = "";
212
212
  try {
213
- apiKey = _chunkPGHCBL5Gjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
213
+ apiKey = _chunkFGKQ2MVAjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
214
214
  } catch (e2) {
215
215
  return false;
216
216
  }
@@ -237,7 +237,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
237
237
  failure_code: failureCode2,
238
238
  failure_stage: failureStage,
239
239
  error_body: "Automatic Deepline skills installation failed.",
240
- cli_version: _chunkY2SIHXYSjs.SDK_VERSION,
240
+ cli_version: _chunkZEZAFOH3js.SDK_VERSION,
241
241
  context: {
242
242
  environment: buildEnvironmentContext(),
243
243
  skills_sync: {
@@ -357,7 +357,7 @@ function buildFailureReport(input) {
357
357
  failure_kind: failureKind,
358
358
  failure_code: code,
359
359
  failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
360
- cli_version: _chunkY2SIHXYSjs.SDK_VERSION,
360
+ cli_version: _chunkZEZAFOH3js.SDK_VERSION,
361
361
  context: {
362
362
  base_url: redactFailureText(input.baseUrl, 400),
363
363
  command_summary: sanitizeCommand(input.argv),
@@ -377,8 +377,8 @@ async function maybeReportSdkCliFailure(input) {
377
377
  if (isServerLoggedPlayRunStartFailure(input)) return false;
378
378
  const exitCode = resolvedExitCode(input);
379
379
  if (!shouldReport({ exitCode, error: input.error })) return false;
380
- const baseUrl = _chunkPGHCBL5Gjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
381
- const apiKey = _chunkPGHCBL5Gjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
380
+ const baseUrl = _chunkFGKQ2MVAjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
381
+ const apiKey = _chunkFGKQ2MVAjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
382
382
  if (!apiKey) return false;
383
383
  return postFailureReport({
384
384
  baseUrl,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  PlayClient
3
- } from "./chunk-P63SBUEW.mjs";
3
+ } from "./chunk-6FM7YDHA.mjs";
4
4
  import {
5
5
  HttpClient,
6
6
  resolveConfig
7
- } from "./chunk-3SE4O52N.mjs";
7
+ } from "./chunk-ZMFR4BKH.mjs";
8
8
 
9
9
  // src/plays/local-play-execution.ts
10
10
  function importedNodes(graph) {
@@ -1,19 +1,19 @@
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
3
 
4
- var _chunk6UVAYLQGjs = require('./chunk-6UVAYLQG.js');
4
+ var _chunkLVVWOMK6js = require('./chunk-LVVWOMK6.js');
5
5
 
6
6
 
7
- var _chunkADB6FD2Qjs = require('./chunk-ADB6FD2Q.js');
7
+ var _chunkUBY2MSP4js = require('./chunk-UBY2MSP4.js');
8
8
 
9
9
 
10
- var _chunkU5QR527Yjs = require('./chunk-U5QR527Y.js');
10
+ var _chunkZ7YEZWP3js = require('./chunk-Z7YEZWP3.js');
11
11
 
12
12
 
13
- var _chunk3UKVFI2Rjs = require('./chunk-3UKVFI2R.js');
13
+ var _chunk5I2L6VMPjs = require('./chunk-5I2L6VMP.js');
14
14
 
15
15
 
16
- var _chunkPGHCBL5Gjs = require('./chunk-PGHCBL5G.js');
16
+ var _chunkFGKQ2MVAjs = require('./chunk-FGKQ2MVA.js');
17
17
 
18
18
  // src/cli/commands/update.ts
19
19
  var _child_process = require('child_process');
@@ -495,7 +495,7 @@ function normalizedNpmPrefix(value) {
495
495
  }
496
496
  function resolveNpmGlobalPrefix(env) {
497
497
  try {
498
- const plan = _chunkU5QR527Yjs.resolveShellSpawn.call(void 0,
498
+ const plan = _chunkZ7YEZWP3js.resolveShellSpawn.call(void 0,
499
499
  "npm",
500
500
  ["prefix", "-g"],
501
501
  process.platform,
@@ -556,8 +556,8 @@ function resolveUpdatePlan(options = {}) {
556
556
  const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
557
557
  const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
558
558
  const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
559
- const npmVersion = options.npmVersion === void 0 ? _chunk6UVAYLQGjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
- const npmGlobalInstallFlags = _chunk6UVAYLQGjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
559
+ const npmVersion = options.npmVersion === void 0 ? _chunkLVVWOMK6js.readNpmVersion.call(void 0, env) : options.npmVersion;
560
+ const npmGlobalInstallFlags = _chunkLVVWOMK6js.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
561
561
  const args = installPrefix ? [
562
562
  "install",
563
563
  "-g",
@@ -567,7 +567,7 @@ function resolveUpdatePlan(options = {}) {
567
567
  packageSpec
568
568
  ] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
569
569
  const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
570
- _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkPGHCBL5Gjs.autoDetectBaseUrl.call(void 0, )
570
+ _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkFGKQ2MVAjs.autoDetectBaseUrl.call(void 0, )
571
571
  );
572
572
  return {
573
573
  kind: "npm-global",
@@ -816,7 +816,7 @@ function sidecarInstallFailure(versionDir) {
816
816
  function runCommand(command, args, env = process.env) {
817
817
  return new Promise((resolveResult) => {
818
818
  let output = "";
819
- const plan = _chunkU5QR527Yjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
819
+ const plan = _chunkZ7YEZWP3js.resolveShellSpawn.call(void 0, command, args, process.platform, env);
820
820
  const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
821
821
  stdio: ["inherit", "pipe", "pipe"],
822
822
  shell: plan.shell,
@@ -1199,14 +1199,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
1199
1199
  throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
1200
1200
  }
1201
1201
  async function runUpdateCommand(options, dependencies = {}) {
1202
- const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkPGHCBL5Gjs.autoDetectBaseUrl));
1202
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkFGKQ2MVAjs.autoDetectBaseUrl));
1203
1203
  const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
1204
1204
  const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
1205
1205
  const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
1206
1206
  const originalWrite = process.stdout.write.bind(process.stdout);
1207
1207
  process.stdout.write = (() => true);
1208
1208
  try {
1209
- const exitCode = await _chunkADB6FD2Qjs.runSkillsCommand.call(void 0, { json: true });
1209
+ const exitCode = await _chunkUBY2MSP4js.runSkillsCommand.call(void 0, { json: true });
1210
1210
  if (exitCode !== 0) {
1211
1211
  throw new Error(
1212
1212
  `Deepline skills update failed with exit ${exitCode}.`
@@ -1277,11 +1277,11 @@ async function runUpdateCommand(options, dependencies = {}) {
1277
1277
  ]
1278
1278
  };
1279
1279
  if (options.json && !options.executeWithJson) {
1280
- _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1280
+ _chunk5I2L6VMPjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1281
1281
  return 0;
1282
1282
  }
1283
1283
  if (options.printCommand) {
1284
- _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
1284
+ _chunk5I2L6VMPjs.printCommandEnvelope.call(void 0,
1285
1285
  {
1286
1286
  ...plan,
1287
1287
  render: {
@@ -1294,7 +1294,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1294
1294
  return 0;
1295
1295
  }
1296
1296
  if (plan.kind === "source" || plan.kind === "homebrew") {
1297
- _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1297
+ _chunk5I2L6VMPjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1298
1298
  return 0;
1299
1299
  }
1300
1300
  stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills install
1324
1324
  );
1325
1325
  }
1326
1326
  if (options.executeWithJson && options.json) {
1327
- _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
1327
+ _chunk5I2L6VMPjs.printCommandEnvelope.call(void 0,
1328
1328
  {
1329
1329
  ok: true,
1330
1330
  pinnedVersion
@@ -1,7 +1,7 @@
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
3
 
4
- var _chunkY2SIHXYSjs = require('./chunk-Y2SIHXYS.js');
4
+ var _chunkZEZAFOH3js = require('./chunk-ZEZAFOH3.js');
5
5
 
6
6
 
7
7
  var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
@@ -711,7 +711,7 @@ function readSkillsVersionFile(path) {
711
711
  }
712
712
  }
713
713
  function resolveAutoSyncSkillAgents() {
714
- switch (_chunkY2SIHXYSjs.detectAgentRuntime.call(void 0, )) {
714
+ switch (_chunkZEZAFOH3js.detectAgentRuntime.call(void 0, )) {
715
715
  case "codex":
716
716
  return ["codex"];
717
717
  case "claude_code":
@@ -781,7 +781,7 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
781
781
  }
782
782
 
783
783
  // src/http.ts
784
- var HttpClient2 = class extends _chunkY2SIHXYSjs.HttpClient {
784
+ var HttpClient2 = class extends _chunkZEZAFOH3js.HttpClient {
785
785
  constructor(config) {
786
786
  super(config, readSdkSkillsLocalVersion);
787
787
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveShellSpawn
3
- } from "./chunk-CEWRCUSH.mjs";
3
+ } from "./chunk-TYUC56PS.mjs";
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  import { spawnSync } from "child_process";