deepline 0.3.469 → 0.3.471

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 (160) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +5 -0
  2. package/dist/bundling-sources/sdk/src/index.ts +1 -0
  3. package/dist/bundling-sources/sdk/src/plays/run-request.ts +1 -0
  4. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  5. package/dist/bundling-sources/sdk/src/types.ts +22 -0
  6. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +3 -1
  7. package/dist/bundling-sources/shared_libs/play-runtime/play-admission-outcome.ts +34 -8
  8. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/admission/postgres-adapter.ts +3 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +3 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +173 -32
  11. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +3 -0
  12. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +36 -1
  13. package/dist/cli/auth-2MMOFS3O.js +41 -0
  14. package/dist/cli/{auth-HHMOHWIF.mjs → auth-MUCIXHJF.mjs} +5 -5
  15. package/dist/cli/{billing-26PU55WM.js → billing-BQQNTCTV.js} +82 -81
  16. package/dist/cli/{billing-KQORGOK4.mjs → billing-QGCTDE2N.mjs} +9 -8
  17. package/dist/cli/{chunk-YCIQYY5F.mjs → chunk-2KBRY5CA.mjs} +3 -3
  18. package/dist/cli/{chunk-WFI46NX4.mjs → chunk-3PT2HJKC.mjs} +1 -1
  19. package/dist/cli/{chunk-PKCDG6W5.mjs → chunk-4OAA43RX.mjs} +3 -3
  20. package/dist/cli/{chunk-E55WWSW4.js → chunk-4PT2WZD2.js} +26 -26
  21. package/dist/cli/{chunk-GFHBE35X.js → chunk-5QWGL2QO.js} +93 -93
  22. package/dist/cli/{chunk-HNP5V5BN.js → chunk-6DTW6JND.js} +6 -2
  23. package/dist/cli/{chunk-E6O62X6Z.mjs → chunk-AMUSZHCE.mjs} +2 -2
  24. package/dist/cli/{chunk-I5ZF67WP.mjs → chunk-ATKFOOVD.mjs} +5 -5
  25. package/dist/cli/{chunk-RC7X6KBQ.js → chunk-CR2F3JZN.js} +51 -51
  26. package/dist/cli/{chunk-SNAPSOK7.js → chunk-DFMFYOML.js} +10 -10
  27. package/dist/cli/{chunk-ODOFLA34.js → chunk-DK5Y5BD3.js} +4 -4
  28. package/dist/cli/{chunk-GVRTIZJN.mjs → chunk-DV4V5IWI.mjs} +5 -5
  29. package/dist/cli/{chunk-5WQM5HAQ.mjs → chunk-E2SHDT7T.mjs} +2 -2
  30. package/dist/cli/{chunk-SXTMM4DA.js → chunk-E3WTQ3JI.js} +14 -14
  31. package/dist/cli/{chunk-D7DUKSFS.mjs → chunk-EHVVDHNU.mjs} +1 -1
  32. package/dist/cli/{chunk-WCKFCSRX.mjs → chunk-EYKMITTY.mjs} +4 -4
  33. package/dist/cli/{chunk-FA3G556U.mjs → chunk-FJBGBPYY.mjs} +2 -2
  34. package/dist/cli/{chunk-UI2UC3OD.mjs → chunk-FVGT5EBA.mjs} +1 -1
  35. package/dist/cli/{chunk-YSRQJ4M3.js → chunk-FX3QM6WN.js} +3 -3
  36. package/dist/cli/{chunk-KOBMP4ZD.js → chunk-G6RQXAJ2.js} +1 -1
  37. package/dist/cli/{chunk-LBG7M2UO.js → chunk-GPSVXVDZ.js} +8 -8
  38. package/dist/cli/{chunk-I7TGFUQJ.mjs → chunk-IE5KAVTI.mjs} +3 -3
  39. package/dist/cli/{chunk-RXG2KE3N.mjs → chunk-IPFUDUSY.mjs} +4 -4
  40. package/dist/cli/{chunk-L34QVDRW.js → chunk-J2NYCUTK.js} +24 -24
  41. package/dist/cli/{chunk-JKVRBCZL.js → chunk-JDMR33HS.js} +1 -0
  42. package/dist/cli/{chunk-HB2M7RWZ.mjs → chunk-K5USD25Z.mjs} +10 -10
  43. package/dist/cli/{chunk-6SZNOJSR.js → chunk-KSUGLTX3.js} +6 -6
  44. package/dist/cli/{chunk-3G4MRUY7.js → chunk-MLQJVAVS.js} +3 -3
  45. package/dist/cli/{chunk-URGJLSJX.mjs → chunk-MV6HL67R.mjs} +2 -2
  46. package/dist/cli/{chunk-ZZ3WOBZQ.js → chunk-NBPNYD54.js} +16 -16
  47. package/dist/cli/{chunk-FAG4DFUC.mjs → chunk-NELMCOWK.mjs} +1 -0
  48. package/dist/cli/{chunk-ZWZKQBJJ.js → chunk-NLT3CFVJ.js} +2 -2
  49. package/dist/cli/{chunk-KPFO7CQM.js → chunk-NPJY5QRC.js} +53 -53
  50. package/dist/cli/{chunk-PAY27R7P.mjs → chunk-OYHCMKZM.mjs} +3 -3
  51. package/dist/cli/{chunk-T3OOWRPX.mjs → chunk-PVEEGJFN.mjs} +1 -1
  52. package/dist/cli/{chunk-NWAFIAHT.js → chunk-RUWBAU6V.js} +8 -8
  53. package/dist/cli/{chunk-2BBBUZVW.js → chunk-RWCTGSD7.js} +3 -3
  54. package/dist/cli/{chunk-2OFJVQ7L.mjs → chunk-RYGJWMWL.mjs} +1 -1
  55. package/dist/cli/{chunk-D464JW3N.mjs → chunk-RZHUHL53.mjs} +19 -1
  56. package/dist/cli/{chunk-4CJLSC6I.mjs → chunk-SIQV6UYG.mjs} +4 -4
  57. package/dist/cli/{chunk-XXIAG42J.js → chunk-TWRK4NOU.js} +36 -36
  58. package/dist/cli/{chunk-N6QVWV5R.mjs → chunk-U5RGCQWJ.mjs} +2 -2
  59. package/dist/cli/{chunk-FVYAEBGO.mjs → chunk-V2WMJXU6.mjs} +6 -2
  60. package/dist/cli/{chunk-X7MME4NT.js → chunk-VDRGX2XL.js} +5 -5
  61. package/dist/cli/{chunk-TEYQKQAQ.js → chunk-VGIAOWCD.js} +5 -5
  62. package/dist/cli/{chunk-CUCH65D3.mjs → chunk-VVY3HGFM.mjs} +2 -2
  63. package/dist/cli/{chunk-7S33CZMU.js → chunk-WDXJUZCY.js} +2 -2
  64. package/dist/cli/{chunk-7JY5HB23.js → chunk-YRM5TPXL.js} +8 -8
  65. package/dist/cli/{chunk-WG3KGAII.js → chunk-Z52WEIBR.js} +19 -1
  66. package/dist/cli/{chunk-VERY76VG.mjs → chunk-ZAF54BQK.mjs} +1 -1
  67. package/dist/cli/{chunk-2GMJDL3C.js → chunk-ZHM7VCKH.js} +21 -21
  68. package/dist/cli/{chunk-DI3K3PJE.mjs → chunk-ZMJOSD7R.mjs} +1 -1
  69. package/dist/cli/command-docs.js +2 -2
  70. package/dist/cli/command-docs.mjs +1 -1
  71. package/dist/cli/{csv-DVAQAKEI.mjs → csv-Q6BSRCBJ.mjs} +4 -4
  72. package/dist/cli/{csv-RTWPHENL.js → csv-UE7RZDUV.js} +13 -13
  73. package/dist/cli/{db-OFAOD5AT.mjs → db-FI6XXB2H.mjs} +7 -7
  74. package/dist/cli/{db-BY4Y6CQ3.js → db-T7A7EE3D.js} +28 -28
  75. package/dist/cli/{describe-QOO27KPQ.mjs → describe-4GGU6NU3.mjs} +18 -18
  76. package/dist/cli/describe-UM2VGRY7.js +48 -0
  77. package/dist/cli/describe-core.d.mts +3 -3
  78. package/dist/cli/describe-core.d.ts +3 -3
  79. package/dist/cli/{executions-QHGGAQOE.js → executions-4I6F5RMS.js} +9 -9
  80. package/dist/cli/{executions-EUHFCB47.mjs → executions-S46XI7NX.mjs} +7 -7
  81. package/dist/cli/{feedback-47CCLALE.mjs → feedback-3LJ7NZE7.mjs} +4 -4
  82. package/dist/cli/{feedback-5G4CUZFN.js → feedback-VEGUNKSP.js} +8 -8
  83. package/dist/cli/git-EVWKNIUA.js +25 -0
  84. package/dist/cli/{git-5I2AXG4O.mjs → git-W7SFD7AA.mjs} +5 -5
  85. package/dist/cli/index.js +139 -139
  86. package/dist/cli/index.mjs +41 -41
  87. package/dist/cli/{legacy-noops-5OBXYGLC.js → legacy-noops-3EMB5SJH.js} +8 -8
  88. package/dist/cli/{legacy-noops-AJYRHCWF.mjs → legacy-noops-FIR5PSHG.mjs} +5 -5
  89. package/dist/cli/{monitors-IWFCIY3H.mjs → monitors-4DKW25PV.mjs} +8 -8
  90. package/dist/cli/{monitors-5CWZZ7D7.js → monitors-53LPJH6R.js} +92 -92
  91. package/dist/cli/{org-7EP6FXX6.mjs → org-6ZV2DBGI.mjs} +7 -7
  92. package/dist/cli/{org-7HCL5RO7.js → org-CYLJFX4Q.js} +73 -73
  93. package/dist/cli/{pages-GTECAV7A.js → pages-42E3WIMH.js} +18 -18
  94. package/dist/cli/{pages-UJWA7YNZ.mjs → pages-V3LEXCRL.mjs} +7 -7
  95. package/dist/cli/{play-MMGWGTTZ.js → play-O3OY556F.js} +556 -516
  96. package/dist/cli/{play-X3SYW37L.mjs → play-X7REMNNG.mjs} +63 -23
  97. package/dist/cli/{providers-ZBCQLB5Y.mjs → providers-L2DJVAXN.mjs} +7 -7
  98. package/dist/cli/{providers-VQL4X4VL.js → providers-NZ7TISS3.js} +10 -10
  99. package/dist/cli/{quickstart-SIFBA4UU.js → quickstart-IKNGAQRO.js} +6 -6
  100. package/dist/cli/{quickstart-TIPHHFSA.mjs → quickstart-ROWMAUXQ.mjs} +4 -4
  101. package/dist/cli/{run-XKSIVFEN.js → run-JG6DLOYR.js} +37 -37
  102. package/dist/cli/{run-4L6ZW53Z.mjs → run-PJI577J2.mjs} +23 -23
  103. package/dist/cli/{search-6HLAN32O.mjs → search-DOVJ745X.mjs} +8 -8
  104. package/dist/cli/search-RHKW5GSR.js +32 -0
  105. package/dist/cli/{secrets-4HTY4MSI.mjs → secrets-OKDFNCRJ.mjs} +7 -7
  106. package/dist/cli/{secrets-KYRIVDA6.js → secrets-R5LWXIG6.js} +16 -16
  107. package/dist/cli/{sessions-JEV4COUF.mjs → sessions-KX4C2CKS.mjs} +5 -5
  108. package/dist/cli/{sessions-EVKRTCFM.js → sessions-L3DSAY2T.js} +6 -6
  109. package/dist/cli/{settings-WFZNZVHF.js → settings-NKTNNTAP.js} +79 -79
  110. package/dist/cli/{settings-QSABRUHQ.mjs → settings-W3SMDBYS.mjs} +12 -12
  111. package/dist/cli/{setup-JFEGYAMU.js → setup-5WZEXWQR.js} +44 -44
  112. package/dist/cli/{setup-KG22OTJO.mjs → setup-7KFKKW2W.mjs} +9 -9
  113. package/dist/cli/skills-UFAABPCQ.js +31 -0
  114. package/dist/cli/{skills-5XJM7UBQ.mjs → skills-X5TLATOL.mjs} +7 -7
  115. package/dist/cli/{tools-2AMQKFP4.mjs → tools-27J5EOKO.mjs} +17 -17
  116. package/dist/cli/tools-IVU3BCIY.js +55 -0
  117. package/dist/cli/{update-KEN737KZ.mjs → update-EWL477FJ.mjs} +9 -9
  118. package/dist/cli/update-G7HFHKPG.js +33 -0
  119. package/dist/cli/{workflow-T622YRL4.js → workflow-GFNGGHJE.js} +18 -18
  120. package/dist/cli/{workflow-L6Q5H3OO.mjs → workflow-YXR6YMT2.mjs} +8 -8
  121. package/dist/{client-B3tlWsw7.d.ts → client-DIpVmXcj.d.ts} +1 -1
  122. package/dist/{client-CdJR18SJ.d.mts → client-DitOgp8N.d.mts} +1 -1
  123. package/dist/{client-core-ByJD7QXj.d.mts → client-core-COZteOww.d.mts} +28 -2
  124. package/dist/{client-core-CxHBKfE5.d.ts → client-core-k543Fg6D.d.ts} +28 -2
  125. package/dist/{compiler-manifest-D5dARg3M.d.ts → compiler-manifest-Zwm9yqOA.d.mts} +39 -0
  126. package/dist/{compiler-manifest-D5dARg3M.d.mts → compiler-manifest-Zwm9yqOA.d.ts} +39 -0
  127. package/dist/{errors-BtHHzWL8.d.ts → errors-CsYwlpn4.d.ts} +1 -1
  128. package/dist/{errors-BveMVPwA.d.mts → errors-nEsqNLL8.d.mts} +1 -1
  129. package/dist/{index-C6sovoYP.d.ts → index-9pUZqkPH.d.ts} +1 -1
  130. package/dist/{index-BboApDGD.d.mts → index-CXF2jtza.d.mts} +1 -1
  131. package/dist/index.d.mts +7 -7
  132. package/dist/index.d.ts +7 -7
  133. package/dist/index.js +10 -10
  134. package/dist/index.mjs +7 -7
  135. package/dist/install-integrity.json +112 -112
  136. package/dist/plays/bundle-play-file.d.mts +3 -3
  137. package/dist/plays/bundle-play-file.d.ts +3 -3
  138. package/dist/plays/bundle-play-file.mjs +1 -1
  139. package/dist/plays/play-description.d.mts +2 -2
  140. package/dist/plays/play-description.d.ts +2 -2
  141. package/dist/plays/run-request.d.mts +2 -2
  142. package/dist/plays/run-request.d.ts +2 -2
  143. package/dist/plays/run-request.js +2 -2
  144. package/dist/plays/run-request.mjs +1 -1
  145. package/dist/release.d.mts +1 -1
  146. package/dist/release.d.ts +1 -1
  147. package/dist/release.js +2 -2
  148. package/dist/release.mjs +1 -1
  149. package/dist/server.d.mts +4 -4
  150. package/dist/server.d.ts +4 -4
  151. package/dist/server.js +6 -6
  152. package/dist/server.mjs +4 -4
  153. package/package.json +1 -1
  154. package/dist/cli/auth-LEYK6ZW7.js +0 -41
  155. package/dist/cli/describe-FS5CSJTO.js +0 -48
  156. package/dist/cli/git-IWVY3SXC.js +0 -25
  157. package/dist/cli/search-2WGVKZ2E.js +0 -32
  158. package/dist/cli/skills-6DY62DEQ.js +0 -31
  159. package/dist/cli/tools-ENIGWVGY.js +0 -55
  160. package/dist/cli/update-XZBBPRDV.js +0 -33
@@ -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 _chunk2BBBUZVWjs = require('./chunk-2BBBUZVW.js');
3
+ var _chunkRWCTGSD7js = require('./chunk-RWCTGSD7.js');
4
4
 
5
5
 
6
6
 
@@ -12,7 +12,7 @@ var _chunk2BBBUZVWjs = require('./chunk-2BBBUZVW.js');
12
12
 
13
13
 
14
14
 
15
- var _chunk3G4MRUY7js = require('./chunk-3G4MRUY7.js');
15
+ var _chunkMLQJVAVSjs = require('./chunk-MLQJVAVS.js');
16
16
 
17
17
 
18
18
 
@@ -20,13 +20,13 @@ var _chunk3G4MRUY7js = require('./chunk-3G4MRUY7.js');
20
20
 
21
21
 
22
22
 
23
- var _chunkODOFLA34js = require('./chunk-ODOFLA34.js');
23
+ var _chunkDK5Y5BD3js = require('./chunk-DK5Y5BD3.js');
24
24
 
25
25
 
26
26
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
27
27
 
28
28
 
29
- var _chunkKOBMP4ZDjs = require('./chunk-KOBMP4ZD.js');
29
+ var _chunkG6RQXAJ2js = require('./chunk-G6RQXAJ2.js');
30
30
 
31
31
  // src/compat.ts
32
32
  var _crypto = require('crypto');
@@ -61,7 +61,7 @@ function shouldSkipCompatibilityCheck() {
61
61
  return value === "1" || value === "true" || value === "yes";
62
62
  }
63
63
  function sdkCompatibilityCachePath(baseUrl, homeDir = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.HOME, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || _os.homedir.call(void 0, )) {
64
- return _path.join.call(void 0, _chunk3G4MRUY7js.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
64
+ return _path.join.call(void 0, _chunkMLQJVAVSjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
65
65
  }
66
66
  function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'access', _11 => _11.env, 'access', _12 => _12.HOME, 'optionalAccess', _13 => _13.trim, 'call', _14 => _14()]) || _os.homedir.call(void 0, )) {
67
67
  return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
@@ -69,9 +69,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
69
69
  function compatibilityCacheKey(baseUrl, command, skillsVersion) {
70
70
  return JSON.stringify({
71
71
  baseUrl: baseUrl.replace(/\/$/, ""),
72
- version: _chunkODOFLA34js.SDK_VERSION,
73
- apiContract: _chunkODOFLA34js.SDK_API_CONTRACT,
74
- apiMajor: _chunkODOFLA34js.SDK_API_MAJOR,
72
+ version: _chunkDK5Y5BD3js.SDK_VERSION,
73
+ apiContract: _chunkDK5Y5BD3js.SDK_API_CONTRACT,
74
+ apiMajor: _chunkDK5Y5BD3js.SDK_API_MAJOR,
75
75
  command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
76
76
  skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
77
77
  });
@@ -79,8 +79,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
79
79
  function legacyCompatibilityCacheKey(baseUrl, command) {
80
80
  return JSON.stringify({
81
81
  baseUrl: baseUrl.replace(/\/$/, ""),
82
- version: _chunkODOFLA34js.SDK_VERSION,
83
- apiContract: _chunkODOFLA34js.SDK_API_CONTRACT,
82
+ version: _chunkDK5Y5BD3js.SDK_VERSION,
83
+ apiContract: _chunkDK5Y5BD3js.SDK_API_CONTRACT,
84
84
  command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
85
85
  });
86
86
  }
@@ -105,7 +105,7 @@ function isSavedWithin(savedAt, windowMs, now) {
105
105
  }
106
106
  var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
107
107
  function claimUpdateAdvisory(baseUrl, now = Date.now()) {
108
- const path = _path.join.call(void 0, _chunk3G4MRUY7js.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
108
+ const path = _path.join.call(void 0, _chunkMLQJVAVSjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
109
109
  try {
110
110
  const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
111
111
  if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
@@ -189,7 +189,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
189
189
  );
190
190
  try {
191
191
  const url = new URL("/api/v2/sdk/compat", baseUrl);
192
- url.searchParams.set("version", _chunkODOFLA34js.SDK_VERSION);
192
+ url.searchParams.set("version", _chunkDK5Y5BD3js.SDK_VERSION);
193
193
  if (_optionalChain([options, 'access', _27 => _27.command, 'optionalAccess', _28 => _28.trim, 'call', _29 => _29()])) {
194
194
  url.searchParams.set("command", options.command.trim());
195
195
  }
@@ -197,7 +197,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
197
197
  url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
198
198
  url.searchParams.set(
199
199
  "skills_cli_capability",
200
- String(_chunkKOBMP4ZDjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
200
+ String(_chunkG6RQXAJ2js.SDK_RELEASE.packageCapabilities.skillsGuidance)
201
201
  );
202
202
  }
203
203
  if (options.catalog) {
@@ -209,14 +209,14 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
209
209
  const response = await fetch(url, {
210
210
  method: "GET",
211
211
  headers: {
212
- ..._chunkODOFLA34js.deploymentProtectionHeaders.call(void 0, ),
213
- "User-Agent": `deepline-ts-sdk/${_chunkODOFLA34js.SDK_VERSION}`,
214
- "X-Deepline-SDK-Version": _chunkODOFLA34js.SDK_VERSION,
215
- "X-Deepline-API-Major": String(_chunkODOFLA34js.SDK_API_MAJOR),
216
- "X-Deepline-API-Contract": _chunkODOFLA34js.SDK_API_CONTRACT,
212
+ ..._chunkDK5Y5BD3js.deploymentProtectionHeaders.call(void 0, ),
213
+ "User-Agent": `deepline-ts-sdk/${_chunkDK5Y5BD3js.SDK_VERSION}`,
214
+ "X-Deepline-SDK-Version": _chunkDK5Y5BD3js.SDK_VERSION,
215
+ "X-Deepline-API-Major": String(_chunkDK5Y5BD3js.SDK_API_MAJOR),
216
+ "X-Deepline-API-Contract": _chunkDK5Y5BD3js.SDK_API_CONTRACT,
217
217
  "X-Deepline-CLI-Update-Preferences": "1",
218
218
  "X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
219
- ...options.catalog ? { Authorization: `Bearer ${_chunk3G4MRUY7js.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
219
+ ...options.catalog ? { Authorization: `Bearer ${_chunkMLQJVAVSjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
220
220
  ..._optionalChain([options, 'access', _30 => _30.catalog, 'optionalAccess', _31 => _31.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
221
221
  },
222
222
  signal: controller.signal
@@ -377,7 +377,7 @@ function skillsSourceUrl(baseUrl) {
377
377
  function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
378
378
  const skillNames = Array.isArray(skillName) ? skillName : [skillName];
379
379
  const [firstSkillName, ...extraSkillNames] = skillNames;
380
- const agents = _nullishCoalesce(options.agents, () => ( _chunk3G4MRUY7js.DEFAULT_SKILL_AGENTS));
380
+ const agents = _nullishCoalesce(options.agents, () => ( _chunkMLQJVAVSjs.DEFAULT_SKILL_AGENTS));
381
381
  const values = {
382
382
  skills_index_url: skillsIndexUrl(baseUrl),
383
383
  skills_source_url: skillsSourceUrl(baseUrl),
@@ -596,7 +596,7 @@ function buildEnvironmentContext() {
596
596
  node_version: process.version,
597
597
  runtime: "Node.js",
598
598
  hostname: _os.hostname.call(void 0, ),
599
- agent_runtime: _chunkODOFLA34js.detectAgentRuntime.call(void 0, )
599
+ agent_runtime: _chunkDK5Y5BD3js.detectAgentRuntime.call(void 0, )
600
600
  };
601
601
  for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
602
602
  const normalized = _optionalChain([process, 'access', _42 => _42.env, 'access', _43 => _43[key], 'optionalAccess', _44 => _44.trim, 'call', _45 => _45()]);
@@ -617,18 +617,18 @@ function buildEnvironmentContext() {
617
617
  return context;
618
618
  }
619
619
  function failureReportHeaders(apiKey) {
620
- const agentSessionId = _chunkODOFLA34js.agentSessionIdFromEnvironment.call(void 0, );
620
+ const agentSessionId = _chunkDK5Y5BD3js.agentSessionIdFromEnvironment.call(void 0, );
621
621
  return {
622
- ..._chunkODOFLA34js.deploymentProtectionHeaders.call(void 0, ),
622
+ ..._chunkDK5Y5BD3js.deploymentProtectionHeaders.call(void 0, ),
623
623
  ...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
624
624
  Authorization: `Bearer ${apiKey}`,
625
625
  "Content-Type": "application/json",
626
- "User-Agent": `deepline-ts-sdk/${_chunkODOFLA34js.SDK_VERSION}`,
626
+ "User-Agent": `deepline-ts-sdk/${_chunkDK5Y5BD3js.SDK_VERSION}`,
627
627
  "X-Deepline-Client-Family": "sdk",
628
628
  "X-Deepline-CLI-Family": "sdk",
629
- "X-Deepline-Agent-Runtime": _chunkODOFLA34js.detectAgentRuntime.call(void 0, ),
630
- "X-Deepline-CLI-Version": _chunkODOFLA34js.SDK_VERSION,
631
- "X-Deepline-SDK-Version": _chunkODOFLA34js.SDK_VERSION
629
+ "X-Deepline-Agent-Runtime": _chunkDK5Y5BD3js.detectAgentRuntime.call(void 0, ),
630
+ "X-Deepline-CLI-Version": _chunkDK5Y5BD3js.SDK_VERSION,
631
+ "X-Deepline-SDK-Version": _chunkDK5Y5BD3js.SDK_VERSION
632
632
  };
633
633
  }
634
634
  async function postFailureReport(input) {
@@ -656,7 +656,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
656
656
  if (isFailureReportingDisabled()) return false;
657
657
  let apiKey = "";
658
658
  try {
659
- apiKey = _chunk3G4MRUY7js.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
659
+ apiKey = _chunkMLQJVAVSjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
660
660
  } catch (e9) {
661
661
  return false;
662
662
  }
@@ -683,7 +683,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
683
683
  failure_code: failureCode2,
684
684
  failure_stage: failureStage,
685
685
  error_body: "Automatic Deepline skills installation failed.",
686
- cli_version: _chunkODOFLA34js.SDK_VERSION,
686
+ cli_version: _chunkDK5Y5BD3js.SDK_VERSION,
687
687
  context: {
688
688
  environment: buildEnvironmentContext(),
689
689
  skills_sync: {
@@ -803,7 +803,7 @@ function buildFailureReport(input) {
803
803
  failure_kind: failureKind,
804
804
  failure_code: code,
805
805
  failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
806
- cli_version: _chunkODOFLA34js.SDK_VERSION,
806
+ cli_version: _chunkDK5Y5BD3js.SDK_VERSION,
807
807
  context: {
808
808
  base_url: redactFailureText(input.baseUrl, 400),
809
809
  command_summary: sanitizeCommand(input.argv),
@@ -823,8 +823,8 @@ async function maybeReportSdkCliFailure(input) {
823
823
  if (isServerLoggedPlayRunStartFailure(input)) return false;
824
824
  const exitCode = resolvedExitCode(input);
825
825
  if (!shouldReport({ exitCode, error: input.error })) return false;
826
- const baseUrl = _chunk3G4MRUY7js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
827
- const apiKey = _chunk3G4MRUY7js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
826
+ const baseUrl = _chunkMLQJVAVSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
827
+ const apiKey = _chunkMLQJVAVSjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
828
828
  if (!apiKey) return false;
829
829
  return postFailureReport({
830
830
  baseUrl,
@@ -861,25 +861,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
861
861
  var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
862
862
  var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
863
863
  function shouldSkipSkillsSync() {
864
- if (_chunkODOFLA34js.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
864
+ if (_chunkDK5Y5BD3js.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
865
865
  return true;
866
866
  }
867
867
  const value = _optionalChain([process, 'access', _66 => _66.env, 'access', _67 => _67.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _68 => _68.trim, 'call', _69 => _69(), 'access', _70 => _70.toLowerCase, 'call', _71 => _71()]);
868
868
  return value === "1" || value === "true" || value === "yes" || value === "on";
869
869
  }
870
870
  function unavailableSkillsNoticePath(baseUrl) {
871
- return _path.join.call(void 0, _chunk3G4MRUY7js.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
871
+ return _path.join.call(void 0, _chunkMLQJVAVSjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
872
872
  }
873
873
  var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
874
874
  var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
875
- var agentLeaseSegment = _chunk3G4MRUY7js.skillsAgentPathSegment;
875
+ var agentLeaseSegment = _chunkMLQJVAVSjs.skillsAgentPathSegment;
876
876
  function sortedLeaseAgents(agents) {
877
- const expanded = agents.includes("*") ? [...agents, ..._chunk3G4MRUY7js.KNOWN_SKILL_AGENTS] : agents;
877
+ const expanded = agents.includes("*") ? [...agents, ..._chunkMLQJVAVSjs.KNOWN_SKILL_AGENTS] : agents;
878
878
  return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
879
879
  }
880
880
  function inProgressSkillsSyncPath(baseUrl, agent) {
881
881
  return _path.join.call(void 0,
882
- _chunk3G4MRUY7js.sdkCliStateDirPath.call(void 0, baseUrl),
882
+ _chunkMLQJVAVSjs.sdkCliStateDirPath.call(void 0, baseUrl),
883
883
  `skills-sync-in-progress-${agentLeaseSegment(agent)}`
884
884
  );
885
885
  }
@@ -1038,7 +1038,7 @@ var SkillsStateUnavailableError = class extends Error {
1038
1038
  constructor(baseUrl, error) {
1039
1039
  const detail = error instanceof Error ? error.message : String(error);
1040
1040
  super(
1041
- `Could not save skills state in ${_chunk3G4MRUY7js.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
1041
+ `Could not save skills state in ${_chunkMLQJVAVSjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
1042
1042
  );
1043
1043
  this.name = "SkillsStateUnavailableError";
1044
1044
  }
@@ -1123,7 +1123,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
1123
1123
  }
1124
1124
  function deferredSkillsNoticePath(baseUrl, agents) {
1125
1125
  return _path.join.call(void 0,
1126
- _chunk3G4MRUY7js.sdkCliStateDirPath.call(void 0, baseUrl),
1126
+ _chunkMLQJVAVSjs.sdkCliStateDirPath.call(void 0, baseUrl),
1127
1127
  `skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
1128
1128
  );
1129
1129
  }
@@ -1157,8 +1157,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
1157
1157
  if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
1158
1158
  }
1159
1159
  function flushDeferredSkillsSyncNotices(baseUrl) {
1160
- if (shouldSkipSkillsSync() || _chunk3G4MRUY7js.hasActivePluginSkills.call(void 0, )) return;
1161
- const agents = _chunk3G4MRUY7js.resolveAutoSyncSkillAgents.call(void 0, );
1160
+ if (shouldSkipSkillsSync() || _chunkMLQJVAVSjs.hasActivePluginSkills.call(void 0, )) return;
1161
+ const agents = _chunkMLQJVAVSjs.resolveAutoSyncSkillAgents.call(void 0, );
1162
1162
  if (agents.length === 0) return;
1163
1163
  flushDeferredSkillsNotices(baseUrl, agents);
1164
1164
  }
@@ -1174,7 +1174,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
1174
1174
  }
1175
1175
  function failedSkillsSyncPath(baseUrl, agents) {
1176
1176
  return _path.join.call(void 0,
1177
- _chunk3G4MRUY7js.sdkCliStateDirPath.call(void 0, baseUrl),
1177
+ _chunkMLQJVAVSjs.sdkCliStateDirPath.call(void 0, baseUrl),
1178
1178
  `skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
1179
1179
  );
1180
1180
  }
@@ -1203,7 +1203,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
1203
1203
  if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
1204
1204
  writeMarkedSkillsSyncVersion(path, remoteVersion);
1205
1205
  const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
1206
- const manualCommand = _optionalChain([probes, 'optionalAccess', _75 => _75.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunk3G4MRUY7js.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
1206
+ const manualCommand = _optionalChain([probes, 'optionalAccess', _75 => _75.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkMLQJVAVSjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
1207
1207
  const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _76 => _76.bunx]) === "missing" && probes.npx === "missing" ? "neither `bunx` nor `npx` was found on PATH. Make one available." : `installer version check failed for ${Object.entries(_nullishCoalesce(probes, () => ( {}))).filter(([, result]) => result === "failed").map(([command]) => `\`${command}\``).join(" and ")}. Check those commands with --version.`;
1208
1208
  notice(
1209
1209
  `Deepline agent skills are out of date, but ${explanation} To install manually, run:
@@ -1291,7 +1291,7 @@ function buildSdkSkillNames(v1SkillNames2) {
1291
1291
  return sortedUniqueSkillNames(v1SkillNames2);
1292
1292
  }
1293
1293
  function isDefaultAgentSet(agents) {
1294
- return agents.length === _chunk3G4MRUY7js.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunk3G4MRUY7js.DEFAULT_SKILL_AGENTS[index]);
1294
+ return agents.length === _chunkMLQJVAVSjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkMLQJVAVSjs.DEFAULT_SKILL_AGENTS[index]);
1295
1295
  }
1296
1296
  function safeSkillFilePath(value) {
1297
1297
  if (typeof value !== "string" || !value) return false;
@@ -1448,10 +1448,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
1448
1448
  method: "POST",
1449
1449
  headers: { "Content-Type": "application/json" },
1450
1450
  body: JSON.stringify({
1451
- sdk_cli: { version: _chunkODOFLA34js.SDK_VERSION },
1451
+ sdk_cli: { version: _chunkDK5Y5BD3js.SDK_VERSION },
1452
1452
  skills: {
1453
1453
  version: localVersion,
1454
- capability: _chunkKOBMP4ZDjs.SDK_RELEASE.packageCapabilities.skillsGuidance
1454
+ capability: _chunkG6RQXAJ2js.SDK_RELEASE.packageCapabilities.skillsGuidance
1455
1455
  }
1456
1456
  }),
1457
1457
  signal: controller.signal
@@ -1490,7 +1490,7 @@ function probeInstallers(timeoutMs) {
1490
1490
  }
1491
1491
  function noInstallerProbePath(baseUrl) {
1492
1492
  return _path.join.call(void 0,
1493
- _chunk3G4MRUY7js.sdkCliStateDirPath.call(void 0, baseUrl),
1493
+ _chunkMLQJVAVSjs.sdkCliStateDirPath.call(void 0, baseUrl),
1494
1494
  "skills-sync-no-installer-unknown.json"
1495
1495
  );
1496
1496
  }
@@ -1569,7 +1569,7 @@ function temporarySkillsSyncSkipCommand() {
1569
1569
  function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
1570
1570
  return resolveShellSpawn(install.command, install.args, platform2);
1571
1571
  }
1572
- function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunk3G4MRUY7js.DEFAULT_SKILL_AGENTS, knownProbes) {
1572
+ function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkMLQJVAVSjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1573
1573
  const commands = [];
1574
1574
  const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
1575
1575
  if (probes.bunx === "available") {
@@ -1711,7 +1711,7 @@ function runLegacySkillsCleanup(agents) {
1711
1711
  }
1712
1712
  }
1713
1713
  function writeSdkSkillsStatusLine(line) {
1714
- const progress = _chunk2BBBUZVWjs.getActiveCliProgress.call(void 0, );
1714
+ const progress = _chunkRWCTGSD7js.getActiveCliProgress.call(void 0, );
1715
1715
  if (progress) {
1716
1716
  progress.writeLine(line);
1717
1717
  return;
@@ -1721,11 +1721,11 @@ function writeSdkSkillsStatusLine(line) {
1721
1721
  }
1722
1722
  async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1723
1723
  if (shouldSkipSkillsSync()) return;
1724
- const usingPluginSkills = _chunk3G4MRUY7js.hasActivePluginSkills.call(void 0, );
1724
+ const usingPluginSkills = _chunkMLQJVAVSjs.hasActivePluginSkills.call(void 0, );
1725
1725
  if (usingPluginSkills) {
1726
1726
  return;
1727
1727
  }
1728
- const agents = _chunk3G4MRUY7js.resolveAutoSyncSkillAgents.call(void 0, );
1728
+ const agents = _chunkMLQJVAVSjs.resolveAutoSyncSkillAgents.call(void 0, );
1729
1729
  if (options.mode === "detached" && agents.length > 0) {
1730
1730
  flushDeferredSkillsNotices(baseUrl, agents);
1731
1731
  }
@@ -1753,7 +1753,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1753
1753
  return;
1754
1754
  }
1755
1755
  try {
1756
- const localVersion = _chunk3G4MRUY7js.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1756
+ const localVersion = _chunkMLQJVAVSjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1757
1757
  const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
1758
1758
  needsUpdate: options.update.needs_update,
1759
1759
  remoteVersion: options.update.remote.version
@@ -1919,7 +1919,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1919
1919
  }
1920
1920
  }
1921
1921
  runLegacySkillsCleanup(agents);
1922
- if (!_chunk3G4MRUY7js.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1922
+ if (!_chunkMLQJVAVSjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1923
1923
  notice(
1924
1924
  "Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
1925
1925
  );
@@ -2,10 +2,10 @@ import {
2
2
  HttpClient,
3
3
  resolveCliCommandContext,
4
4
  resolveConfig
5
- } from "./chunk-UI2UC3OD.mjs";
5
+ } from "./chunk-FVGT5EBA.mjs";
6
6
  import {
7
7
  detectAgentRuntime
8
- } from "./chunk-DI3K3PJE.mjs";
8
+ } from "./chunk-ZMJOSD7R.mjs";
9
9
  import {
10
10
  DeeplineError,
11
11
  serializeToolExecutionFailure
@@ -20,7 +20,7 @@ var RUN_FIELDS = new Set(
20
20
  var ROOTS = {
21
21
  describe: "name playKey reference displayName description pinned toolCategories tags origin ownerType canEdit canClone aliases inputSchema outputSchema staticPipeline csvInput rowOutputSchema runCommand examples cloneEditStarter currentPublishedVersion liveVersion triggerStatus triggerMetadata isDraftDirty latestRunId runtimeLimit activeScheduledPlays dashboardUrl command_context",
22
22
  check: "kind target checked scope name exportName valid stage issues inputSchema outputSchema recognized triggers runtimeLimit limits featureFlags sourceHash artifactHash graphHash toolGetterHints exports actions diagnostics reference origin ownerType activeScheduledPlays command_context",
23
- run: "schemaVersion kind run datasets actions apiVersion dashboardUrl progress rowOutcomes steps errors error warnings result resultState execution command_context diagnostics",
23
+ run: "schemaVersion kind run datasets actions apiVersion rateLimited dashboardUrl progress rowOutcomes steps errors error warnings result resultState execution command_context diagnostics",
24
24
  get: "schemaVersion kind run dashboardUrl runStatus steps failures errorDetails rowOutcomes warnings failedLogs datasets result resultState actions diagnostics command_context",
25
25
  config: "runId contract command_context",
26
26
  export: "runId datasets csv_path json_path format source rowCount columns notice metadata_path actions command_context"
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  csvSafeJsonString,
8
8
  csvStringFromRows
9
- } from "./chunk-PAY27R7P.mjs";
9
+ } from "./chunk-OYHCMKZM.mjs";
10
10
 
11
11
  // src/cli/describe-options.ts
12
12
  function addDescribeOptions(command, options = {}) {
@@ -3,15 +3,15 @@
3
3
  var _chunkZM2YPJQJjs = require('./chunk-ZM2YPJQJ.js');
4
4
 
5
5
 
6
- var _chunkX7MME4NTjs = require('./chunk-X7MME4NT.js');
6
+ var _chunkVDRGX2XLjs = require('./chunk-VDRGX2XL.js');
7
7
 
8
8
 
9
9
 
10
- var _chunk7JY5HB23js = require('./chunk-7JY5HB23.js');
10
+ var _chunkYRM5TPXLjs = require('./chunk-YRM5TPXL.js');
11
11
 
12
12
 
13
13
 
14
- var _chunk3G4MRUY7js = require('./chunk-3G4MRUY7.js');
14
+ var _chunkMLQJVAVSjs = require('./chunk-MLQJVAVS.js');
15
15
 
16
16
 
17
17
 
@@ -5713,7 +5713,7 @@ var _fs = require('fs');
5713
5713
  var _path = require('path');
5714
5714
  var SEARCH_REF_TTL_MS = 15 * 6e4;
5715
5715
  function lastSearchPath() {
5716
- return _path.join.call(void 0, _chunk3G4MRUY7js.sdkCliStateDirPath.call(void 0, _chunk3G4MRUY7js.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
5716
+ return _path.join.call(void 0, _chunkMLQJVAVSjs.sdkCliStateDirPath.call(void 0, _chunkMLQJVAVSjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
5717
5717
  }
5718
5718
  function rememberSearchRef(searchRef) {
5719
5719
  try {
@@ -5877,7 +5877,7 @@ var OPTIONAL_COLUMNS = [
5877
5877
  ];
5878
5878
  function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
5879
5879
  if (result.results.length === 0)
5880
- return _chunk7JY5HB23js.renderCommandEnvelopeText.call(void 0, result);
5880
+ return _chunkYRM5TPXLjs.renderCommandEnvelopeText.call(void 0, result);
5881
5881
  const rows = result.results.map((item) => searchRow(item, summaryWidth));
5882
5882
  const kinds = new Set(rows.map((row) => row.kind));
5883
5883
  const onlyTools = kinds.size === 1 && kinds.has("tool");
@@ -5902,7 +5902,7 @@ function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
5902
5902
  actions: _optionalChain([render, 'optionalAccess', _12 => _12.actions])
5903
5903
  };
5904
5904
  const followUps = _optionalChain([remaining, 'access', _13 => _13.sections, 'optionalAccess', _14 => _14.length]) || _optionalChain([remaining, 'access', _15 => _15.actions, 'optionalAccess', _16 => _16.length]) ? `
5905
- ${_chunk7JY5HB23js.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
5905
+ ${_chunkYRM5TPXLjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
5906
5906
  const notes = rows.flatMap(
5907
5907
  (row) => row.notes.map((note) => ` ${row.id}: ${note}`)
5908
5908
  );
@@ -5997,7 +5997,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
5997
5997
  console.error("--summary-width must be an integer of at least 2.");
5998
5998
  return 1;
5999
5999
  }
6000
- const { search_ref: searchRef, ...result } = await new (0, _chunkX7MME4NTjs.DeeplineClient)().search({
6000
+ const { search_ref: searchRef, ...result } = await new (0, _chunkVDRGX2XLjs.DeeplineClient)().search({
6001
6001
  query,
6002
6002
  types,
6003
6003
  exclude,
@@ -6011,7 +6011,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
6011
6011
  });
6012
6012
  if (searchRef) rememberSearchRef(searchRef);
6013
6013
  pointAtDescribe(result);
6014
- _chunk7JY5HB23js.printCommandEnvelope.call(void 0, result, {
6014
+ _chunkYRM5TPXLjs.printCommandEnvelope.call(void 0, result, {
6015
6015
  json: options.json === true,
6016
6016
  text: renderSearchResults(result, summaryWidth)
6017
6017
  });
@@ -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 _chunk7JY5HB23js = require('./chunk-7JY5HB23.js');
3
+ var _chunkYRM5TPXLjs = require('./chunk-YRM5TPXL.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 && !_chunk7JY5HB23js.isJsonOutputMode.call(void 0, );
20
+ this.enabled = enabled && !_chunkYRM5TPXLjs.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 (_chunk7JY5HB23js.isJsonOutputMode.call(void 0, )) return;
52
+ if (_chunkYRM5TPXLjs.isJsonOutputMode.call(void 0, )) return;
53
53
  if (!this.enabled) {
54
54
  process.stderr.write(`${line}
55
55
  `);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveShellSpawn
3
- } from "./chunk-WCKFCSRX.mjs";
3
+ } from "./chunk-EYKMITTY.mjs";
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  import { spawnSync } from "child_process";
@@ -167,6 +167,7 @@ var PLAY_AUTHORING_BINDING_FIELDS = {
167
167
  "compatibility",
168
168
  "cron",
169
169
  "inline",
170
+ "rateLimit",
170
171
  "runtime",
171
172
  "secrets",
172
173
  "sqlListeners",
@@ -1371,6 +1372,22 @@ var PLAY_AUTHORING_FIELD_REGISTRY = {
1371
1372
  description: "Play-level sandbox deadline. The default is 30m; use a static duration such as 90m or 2h, up to 4h.",
1372
1373
  errorMessage: 'runtime.timeout must be a static duration such as "90m" or "2h".'
1373
1374
  },
1375
+ "rateLimit.every": {
1376
+ schema: Type.String({ pattern: "^\\d+\\s*[smh]$" }),
1377
+ fixtures: {
1378
+ valid: "5m",
1379
+ invalid: "5 minutes",
1380
+ absent: void 0,
1381
+ unresolved: { expression: "every" },
1382
+ edition1: "5m"
1383
+ },
1384
+ referenceType: "string",
1385
+ required: false,
1386
+ resolution: "static-required",
1387
+ issueCode: "play_authoring_binding_invalid",
1388
+ description: "Start at most one run per window, such as 30s, 5m, or 1h (10s to 24h).",
1389
+ errorMessage: 'rateLimit.every must be a static duration from "10s" to "24h", such as "5m".'
1390
+ },
1374
1391
  "runtime.size": {
1375
1392
  schema: Type.Literal("standard"),
1376
1393
  fixtures: {
@@ -1712,6 +1729,7 @@ var PLAY_AUTHORING_CLOUD_TYPE_DECLARATIONS = [
1712
1729
  ` inline?: ${cloudReferenceType("inline")};`,
1713
1730
  ` billing?: { maxCreditsPerRun?: ${cloudReferenceType("billing.maxCreditsPerRun")} };`,
1714
1731
  ` runtime?: { timeout?: ${cloudReferenceType("runtime.timeout")}; size?: ${cloudReferenceType("runtime.size")} };`,
1732
+ ` rateLimit?: { every: ${cloudReferenceType("rateLimit.every")} };`,
1715
1733
  ` webhook?: { hmac?: { algorithm?: ${cloudReferenceType("bindings.webhook.hmac.algorithm")}; header?: ${cloudReferenceType("bindings.webhook.hmac.header")}; signaturePrefix?: ${cloudReferenceType("bindings.webhook.hmac.signaturePrefix")}; secretEnv: ${cloudReferenceType("bindings.webhook.hmac.secretEnv")} }; auth?: { type: ${cloudReferenceType("bindings.webhook.auth.type")}; headerFamily: ${cloudReferenceType("bindings.webhook.auth.headerFamily")}; signingSecrets: readonly ${cloudReferenceType("bindings.webhook.auth.signingSecrets[]")}[]; toleranceSeconds?: ${cloudReferenceType("bindings.webhook.auth.toleranceSeconds")} } };`,
1716
1734
  ` cron?: { schedule: ${cloudReferenceType("bindings.cron.schedule")}; timezone?: ${cloudReferenceType("bindings.cron.timezone")}; input?: PlayCronInput<TInput> };`,
1717
1735
  " sqlListeners?: readonly SqlListenerDeclaration[];",
@@ -1736,7 +1754,7 @@ var PLAY_AUTHORING_CLOUD_TYPE_DECLARATIONS = [
1736
1754
  `export type PlayAsyncCallOptions = { description: ${cloudReferenceType("ctx.runPlayAsync.options.description")} };`,
1737
1755
  "declare const PLAY_RUN_ID_BRAND: unique symbol;",
1738
1756
  "export type PlayRunId = string & { readonly [PLAY_RUN_ID_BRAND]: 'PlayRunId' };",
1739
- "export type AsyncPlayRunRef = Readonly<{ runId: PlayRunId }>;",
1757
+ "export type AsyncPlayRunRef = Readonly<{ runId: PlayRunId; rateLimited?: { latestRunId: string; nextAllowedAt: string; message: string } }>;",
1740
1758
  `export type RuntimeStepOptions = { semanticKey?: ${cloudReferenceType("ctx.step.semanticKey")}; staleAfterSeconds?: ${cloudReferenceType("ctx.step.staleAfterSeconds")} };`,
1741
1759
  `export type FetchOptions = { staleAfterSeconds?: ${cloudReferenceType("ctx.fetch.staleAfterSeconds")}; transient?: boolean };`,
1742
1760
  "export type CallFreshnessMetadata = { requestedStaleAfterSeconds: number | null; effectiveStaleAfterSeconds: number | null; source: 'executed' | 'operation_recovery' | 'reusable_result' | 'live_observation'; resultAgeMs: number; completedAt: number; operationReceiptKey?: string; unavailableReason?: string };",
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  seedToolListScript
3
- } from "./chunk-HB2M7RWZ.mjs";
3
+ } from "./chunk-K5USD25Z.mjs";
4
4
  import {
5
5
  addDescribeOptions
6
- } from "./chunk-T3OOWRPX.mjs";
6
+ } from "./chunk-PVEEGJFN.mjs";
7
7
  import {
8
8
  describeLookupsFor,
9
9
  describeName,
@@ -14,10 +14,10 @@ import {
14
14
  } from "./chunk-JVHOS3K3.mjs";
15
15
  import {
16
16
  DeeplineClient
17
- } from "./chunk-N6QVWV5R.mjs";
17
+ } from "./chunk-U5RGCQWJ.mjs";
18
18
  import {
19
19
  printCommandEnvelope
20
- } from "./chunk-PAY27R7P.mjs";
20
+ } from "./chunk-OYHCMKZM.mjs";
21
21
 
22
22
  // src/cli/commands/describe.ts
23
23
  import { writeFileSync } from "fs";