deepline 0.3.551 → 0.3.552

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 (167) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +23 -0
  2. package/dist/bundling-sources/sdk/src/http-core.ts +6 -2
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +58 -29
  5. package/dist/bundling-sources/shared_libs/monitors/package.json +2 -0
  6. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-upstream-identity.ts +80 -13
  7. package/dist/bundling-sources/shared_libs/monitors/tamradar-countries.ts +285 -0
  8. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +144 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +137 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +14 -2
  11. package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +20 -16
  12. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +47 -14
  13. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +48 -3
  14. package/dist/bundling-sources/shared_libs/play-runtime/runtime-constants.ts +9 -0
  15. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +32 -10
  16. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +37 -7
  17. package/dist/cli/{auth-E7BH4GMJ.mjs → auth-KVSBJZOX.mjs} +5 -5
  18. package/dist/cli/auth-MMNVWATX.js +43 -0
  19. package/dist/cli/{billing-OXKU462W.mjs → billing-54RHFEBI.mjs} +19 -12
  20. package/dist/cli/{billing-DNQAZGX7.js → billing-FQREA7UA.js} +105 -98
  21. package/dist/cli/{chunk-5VVSEU67.js → chunk-3FD5EQ62.js} +6 -6
  22. package/dist/cli/{chunk-WKBHUB6R.js → chunk-45PVGZST.js} +99 -99
  23. package/dist/cli/{chunk-COGREZAO.js → chunk-4MK42735.js} +44 -44
  24. package/dist/cli/{chunk-T2B5BVZE.js → chunk-4NQF6KJ3.js} +13 -13
  25. package/dist/cli/{chunk-V6SCP4B7.mjs → chunk-4TALT2M3.mjs} +1 -1
  26. package/dist/cli/{chunk-C4CUZH57.js → chunk-4UUR4TCH.js} +2 -2
  27. package/dist/cli/{chunk-PM7MO62Y.mjs → chunk-57VZVF5D.mjs} +3 -3
  28. package/dist/cli/{chunk-VTGG2RT3.js → chunk-634ZDA3F.js} +1 -1
  29. package/dist/cli/{chunk-E64HFB4L.mjs → chunk-6O5HOODW.mjs} +11 -11
  30. package/dist/cli/{chunk-GGB3JYCW.mjs → chunk-6PRW5UBA.mjs} +2 -2
  31. package/dist/cli/{chunk-GVYLCCKN.mjs → chunk-6RZOWL2V.mjs} +1 -1
  32. package/dist/cli/{chunk-POLUE7D5.js → chunk-6YCA5NKJ.js} +7 -7
  33. package/dist/cli/{chunk-5LUF4LAR.mjs → chunk-6ZORHRKB.mjs} +1 -0
  34. package/dist/cli/{chunk-PPSDCN6C.js → chunk-77AAAGVB.js} +2 -2
  35. package/dist/cli/{chunk-UDXULACQ.js → chunk-7IKQKKNX.js} +3 -3
  36. package/dist/cli/{chunk-2ZYRBMQM.js → chunk-ADRC5I3R.js} +22 -22
  37. package/dist/cli/{chunk-2UXDHFSF.mjs → chunk-AQWQ2BFX.mjs} +1 -1
  38. package/dist/cli/{chunk-D6M5HFBB.mjs → chunk-AWJPDPMA.mjs} +1 -1
  39. package/dist/cli/{chunk-CLRAANWH.mjs → chunk-AZQ264ID.mjs} +1 -1
  40. package/dist/cli/{chunk-NMWGZD6Y.js → chunk-BAIST2BR.js} +26 -26
  41. package/dist/cli/{chunk-5S6PHKRV.mjs → chunk-DJ2JDK4O.mjs} +1 -1
  42. package/dist/cli/{chunk-MNSTCJMX.mjs → chunk-EOPEYCY7.mjs} +3 -3
  43. package/dist/cli/{chunk-HEHVGEZV.mjs → chunk-EUPVF4SU.mjs} +5 -5
  44. package/dist/cli/{chunk-3G6QZACZ.js → chunk-F2LH7TGF.js} +15 -15
  45. package/dist/cli/{chunk-BIIJATTX.mjs → chunk-FTJLJCE5.mjs} +1 -1
  46. package/dist/cli/{chunk-XYE5XPGF.js → chunk-G4O75EXF.js} +9 -9
  47. package/dist/cli/{chunk-Z2FIOG3V.js → chunk-GKYAYLRI.js} +12 -12
  48. package/dist/cli/{chunk-3KYBDAR3.js → chunk-HO3XK3R7.js} +5 -5
  49. package/dist/cli/{chunk-FOTGUFVK.mjs → chunk-HYC4MKGK.mjs} +2 -2
  50. package/dist/cli/{chunk-44I675YK.js → chunk-IDVVIXPJ.js} +41 -41
  51. package/dist/cli/{chunk-ZCDKE4UH.js → chunk-IHRKLXZN.js} +5 -5
  52. package/dist/cli/{chunk-6PWJKMFQ.mjs → chunk-IYSTRCLX.mjs} +4 -4
  53. package/dist/cli/{chunk-CQ6JYQSW.js → chunk-JWUAX6OP.js} +10 -10
  54. package/dist/cli/{chunk-W2ZWQUHT.js → chunk-MF2GHZDO.js} +2 -2
  55. package/dist/cli/{chunk-LPJPCGT3.js → chunk-PFO3ISXA.js} +26 -15
  56. package/dist/cli/{chunk-W425ERWN.mjs → chunk-PTVD2GVQ.mjs} +5 -5
  57. package/dist/cli/{chunk-5IL7SC45.mjs → chunk-QAORXEY3.mjs} +2 -2
  58. package/dist/cli/{chunk-RE5MJBEV.mjs → chunk-QILKGXYF.mjs} +2 -2
  59. package/dist/cli/{chunk-VWLHRZFG.mjs → chunk-QPKH23EC.mjs} +4 -4
  60. package/dist/cli/{chunk-7DOQ3OEX.mjs → chunk-QX7LFGJR.mjs} +1 -1
  61. package/dist/cli/{chunk-3T65J5RG.mjs → chunk-QY3ZNU6Z.mjs} +2 -2
  62. package/dist/cli/{chunk-PACD5DGC.js → chunk-RBEUVDZF.js} +10 -6
  63. package/dist/cli/{chunk-4OMAGJ6U.js → chunk-RQZQVFCJ.js} +2 -2
  64. package/dist/cli/{chunk-MR5LTVHD.js → chunk-S46HWQKO.js} +53 -53
  65. package/dist/cli/{chunk-44KSACJW.mjs → chunk-S5S355UY.mjs} +2 -2
  66. package/dist/cli/{chunk-QM6Y6S4E.js → chunk-SHLFOPD6.js} +5 -5
  67. package/dist/cli/{chunk-MXGA6JFI.mjs → chunk-U7QRMBIY.mjs} +2 -2
  68. package/dist/cli/{chunk-R7J7CJPZ.js → chunk-V436Z54K.js} +1 -0
  69. package/dist/cli/{chunk-ZDQFBJPO.js → chunk-VQALXEXO.js} +19 -19
  70. package/dist/cli/{chunk-7WQNWJQW.mjs → chunk-WE5HES3H.mjs} +5 -5
  71. package/dist/cli/{chunk-54EEYLTF.js → chunk-WLN3SUIA.js} +3 -3
  72. package/dist/cli/{chunk-7RSIFA72.js → chunk-XVB7V4N7.js} +16 -16
  73. package/dist/cli/{chunk-I4VKGNAQ.mjs → chunk-YJHE3O5M.mjs} +5 -5
  74. package/dist/cli/{chunk-4D3WIZST.mjs → chunk-YLTMXJFC.mjs} +7 -3
  75. package/dist/cli/{chunk-ZMNGZ6XS.mjs → chunk-Z5TSLLOW.mjs} +19 -8
  76. package/dist/cli/{chunk-S7IZWGUA.mjs → chunk-ZIAXDBXX.mjs} +2 -2
  77. package/dist/cli/command-docs.js +3 -3
  78. package/dist/cli/command-docs.mjs +2 -2
  79. package/dist/cli/concurrent-runs-help-FQAIHKKC.js +21 -0
  80. package/dist/cli/{concurrent-runs-help-C6L6I5OR.mjs → concurrent-runs-help-Q4KPAUJX.mjs} +6 -6
  81. package/dist/cli/{csv-SYSDXFEM.mjs → csv-2PTVDNO6.mjs} +4 -4
  82. package/dist/cli/{csv-QMF4FWE7.js → csv-F5VAGX4K.js} +13 -13
  83. package/dist/cli/{db-Q7HURWRZ.mjs → db-IEDXAUF7.mjs} +6 -6
  84. package/dist/cli/{db-YSHPPA4H.js → db-Z3OIUFMM.js} +27 -27
  85. package/dist/cli/{describe-YGMQBV44.mjs → describe-QDANCTS3.mjs} +18 -18
  86. package/dist/cli/describe-VUTT5ZKU.js +50 -0
  87. package/dist/cli/describe-core.d.mts +2 -2
  88. package/dist/cli/describe-core.d.ts +2 -2
  89. package/dist/cli/{executions-MWBC5TAW.js → executions-H6H5655J.js} +8 -8
  90. package/dist/cli/{executions-G7U3VUXN.mjs → executions-R3LP74QN.mjs} +6 -6
  91. package/dist/cli/{feedback-SD55OY6H.js → feedback-VFOUR66B.js} +14 -14
  92. package/dist/cli/{feedback-GMHIFLBJ.mjs → feedback-WL3MRVT5.mjs} +6 -6
  93. package/dist/cli/git-ETB3GH3K.js +25 -0
  94. package/dist/cli/{git-HPE45OPD.mjs → git-YX2J4GCI.mjs} +5 -5
  95. package/dist/cli/index.js +147 -147
  96. package/dist/cli/index.mjs +46 -46
  97. package/dist/cli/{integrations-2W4MGIQR.mjs → integrations-5ZK5KLVP.mjs} +7 -7
  98. package/dist/cli/{integrations-HFKVBY6G.js → integrations-E2JZYKHS.js} +15 -15
  99. package/dist/cli/{legacy-noops-SXVNDEXN.js → legacy-noops-3VW4IJTH.js} +9 -9
  100. package/dist/cli/{legacy-noops-GZYKNU2Z.mjs → legacy-noops-SMN3GSXY.mjs} +6 -6
  101. package/dist/cli/{mcp-PJRHQHHU.js → mcp-UQV2K4EW.js} +24 -24
  102. package/dist/cli/{mcp-BWA6KULG.mjs → mcp-V6MGCYAG.mjs} +4 -4
  103. package/dist/cli/{monitors-SYQKCATO.mjs → monitors-GGKS5W6M.mjs} +7 -7
  104. package/dist/cli/{monitors-K2WSI6CR.js → monitors-R3BBDCRC.js} +100 -100
  105. package/dist/cli/{org-YQ2CR32B.js → org-GRYVMNSW.js} +88 -88
  106. package/dist/cli/{org-5KD7X7IA.mjs → org-Z37NGJV4.mjs} +6 -6
  107. package/dist/cli/{play-SZXY2F2S.js → play-2MVO27VO.js} +319 -319
  108. package/dist/cli/{play-TTMABJEI.mjs → play-MDWPR4XG.mjs} +18 -18
  109. package/dist/cli/{providers-YDHCTZAF.js → providers-2AACRUZH.js} +9 -9
  110. package/dist/cli/{providers-GQIOMRQO.mjs → providers-AKDYFZJZ.mjs} +6 -6
  111. package/dist/cli/{quickstart-BNYOXQXG.js → quickstart-H6IV3PV3.js} +6 -6
  112. package/dist/cli/{quickstart-PHSSMKCA.mjs → quickstart-QDGRJFZY.mjs} +4 -4
  113. package/dist/cli/{run-GFIAZXVL.js → run-2634REDK.js} +43 -43
  114. package/dist/cli/{run-74C3C75C.mjs → run-RTSQNGRD.mjs} +23 -23
  115. package/dist/cli/{search-3SWUB7KX.mjs → search-6AOJ4XPP.mjs} +7 -7
  116. package/dist/cli/search-VTW2YNBS.js +32 -0
  117. package/dist/cli/{search-output-K2SWHVHQ.mjs → search-output-6ADMTOU5.mjs} +4 -4
  118. package/dist/cli/{search-output-6JF3S4TP.js → search-output-S5ODBL5E.js} +6 -6
  119. package/dist/cli/{secrets-2SAKLH2H.js → secrets-LHCIIHMT.js} +15 -15
  120. package/dist/cli/{secrets-2M4XWEKE.mjs → secrets-TFIFBFB3.mjs} +6 -6
  121. package/dist/cli/sessions-CJ4FJ2WB.js +22 -0
  122. package/dist/cli/{sessions-A64BCXTO.mjs → sessions-WHBVUHVW.mjs} +6 -6
  123. package/dist/cli/{settings-HV64WIJF.js → settings-CP4FVK2W.js} +85 -85
  124. package/dist/cli/{settings-SVGEC3FI.mjs → settings-EBONWL5C.mjs} +12 -12
  125. package/dist/cli/{setup-EDC3NEJ3.mjs → setup-I5AZE3IU.mjs} +9 -9
  126. package/dist/cli/{setup-FHXOLQGQ.js → setup-LFGHTNLQ.js} +49 -49
  127. package/dist/cli/skills-R7EBXREW.js +36 -0
  128. package/dist/cli/{skills-3HGHZMXB.mjs → skills-W76AO5XE.mjs} +7 -7
  129. package/dist/cli/{tools-P2QS6A6Q.mjs → tools-7IJHGF6W.mjs} +17 -17
  130. package/dist/cli/tools-V7U2BDXM.js +57 -0
  131. package/dist/cli/update-4COPZETK.js +34 -0
  132. package/dist/cli/{update-552BYQM4.mjs → update-GFOPZTHY.mjs} +9 -9
  133. package/dist/cli/{views-PA25NAE3.js → views-BPL2TQJ4.js} +21 -21
  134. package/dist/cli/{views-LD5HXJYY.mjs → views-D4NX4SBG.mjs} +6 -6
  135. package/dist/cli/{workflow-LDYFGBYP.mjs → workflow-YXP42FUI.mjs} +7 -7
  136. package/dist/cli/{workflow-FIDBUQV6.js → workflow-ZYNAUCKC.js} +17 -17
  137. package/dist/{client-t9HZAkFD.d.ts → client-Bf3IpUKN.d.ts} +1 -1
  138. package/dist/{client-DuDFiJDU.d.mts → client-CyXGrO4D.d.mts} +1 -1
  139. package/dist/{client-core-CJRzLanv.d.ts → client-core-BWd0lX0Z.d.ts} +17 -0
  140. package/dist/{client-core-DydMQOft.d.mts → client-core-BxsLnXlm.d.mts} +17 -0
  141. package/dist/index.d.mts +3 -3
  142. package/dist/index.d.ts +3 -3
  143. package/dist/index.js +9 -9
  144. package/dist/index.mjs +6 -6
  145. package/dist/install-integrity.json +119 -118
  146. package/dist/plays/play-description.d.mts +1 -1
  147. package/dist/plays/play-description.d.ts +1 -1
  148. package/dist/plays/run-request.d.mts +1 -1
  149. package/dist/plays/run-request.d.ts +1 -1
  150. package/dist/release.d.mts +1 -1
  151. package/dist/release.d.ts +1 -1
  152. package/dist/release.js +2 -2
  153. package/dist/release.mjs +1 -1
  154. package/dist/server.d.mts +2 -2
  155. package/dist/server.d.ts +2 -2
  156. package/dist/server.js +5 -5
  157. package/dist/server.mjs +3 -3
  158. package/package.json +1 -1
  159. package/dist/cli/auth-B4PI7GVY.js +0 -43
  160. package/dist/cli/concurrent-runs-help-JEFQZTJI.js +0 -21
  161. package/dist/cli/describe-PXTSBJTL.js +0 -50
  162. package/dist/cli/git-I3JV7IGH.js +0 -25
  163. package/dist/cli/search-2RRRF4LW.js +0 -32
  164. package/dist/cli/sessions-SBH27JNW.js +0 -22
  165. package/dist/cli/skills-Y3SRLOYD.js +0 -36
  166. package/dist/cli/tools-OFYPUPUV.js +0 -57
  167. package/dist/cli/update-SOUSCLB7.js +0 -34
@@ -1,16 +1,16 @@
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 _chunkQM6Y6S4Ejs = require('./chunk-QM6Y6S4E.js');
3
+ var _chunkSHLFOPD6js = require('./chunk-SHLFOPD6.js');
4
4
 
5
5
 
6
- var _chunkZDQFBJPOjs = require('./chunk-ZDQFBJPO.js');
6
+ var _chunkVQALXEXOjs = require('./chunk-VQALXEXO.js');
7
7
 
8
8
  // src/cli/commands/integration-commands.ts
9
9
  var _commander = require('commander');
10
10
  var _fs = require('fs');
11
11
  var _path = require('path');
12
12
  function printIntegrationResult(value, json, lines, nextCursor) {
13
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
13
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
14
14
  {},
15
15
  {
16
16
  json: json || void 0,
@@ -26,7 +26,7 @@ function registerIntegrationBalanceCommand(parent, hidden = false) {
26
26
  return parent.command("balance <provider>", { hidden }).description(
27
27
  "Read a fresh balance using this workspace\u2019s own provider connection (LeadMagic)."
28
28
  ).option("--json", "Print the balance and observation timestamp as JSON").action(async (provider, options) => {
29
- const balance = await new (0, _chunkQM6Y6S4Ejs.DeeplineClient)().getIntegrationBalance(
29
+ const balance = await new (0, _chunkSHLFOPD6js.DeeplineClient)().getIntegrationBalance(
30
30
  provider
31
31
  );
32
32
  printIntegrationResult(balance, options.json, [
@@ -42,7 +42,7 @@ function registerWorkspaceConnectionListCommand(parent, name = "workspace-connec
42
42
  "List teammates\u2019 personal connections for this provider"
43
43
  ).option("--cursor <cursor>", "Read the next page of members").action(
44
44
  async (options) => {
45
- const client = new (0, _chunkQM6Y6S4Ejs.DeeplineClient)();
45
+ const client = new (0, _chunkSHLFOPD6js.DeeplineClient)();
46
46
  if (name === "list" && options.cursor && !options.members)
47
47
  throw new Error(
48
48
  "Use --cursor with --members to continue a member page."
@@ -86,7 +86,7 @@ function registerLegacyHubSpotMembersCommand(parent, hidden = false) {
86
86
  return parent.command("hubspot-members", { hidden }).description(
87
87
  "List personal HubSpot connection status for workspace members."
88
88
  ).option("--cursor <cursor>", "Read the next roster page").option("--json", "Print the roster page as JSON").action(async (options) => {
89
- const page = await new (0, _chunkQM6Y6S4Ejs.DeeplineClient)().listPersonalHubSpotMembers(
89
+ const page = await new (0, _chunkSHLFOPD6js.DeeplineClient)().listPersonalHubSpotMembers(
90
90
  options.cursor
91
91
  );
92
92
  const rows = page.members.map((member) => {
@@ -112,7 +112,7 @@ function registerLegacyWorkspaceConnectionCommand(parent, hidden = false) {
112
112
  );
113
113
  if (options.autoName && (action !== "connect" || options.name !== void 0))
114
114
  throw new Error("Use --auto-name with connect and omit --name.");
115
- const client = new (0, _chunkQM6Y6S4Ejs.DeeplineClient)();
115
+ const client = new (0, _chunkSHLFOPD6js.DeeplineClient)();
116
116
  const { connections } = action === "connect" ? { connections: [] } : options.name ? await client.listWorkspaceConnectionInventory(provider) : await client.listWorkspaceIntegrationConnections();
117
117
  const row = connections.find(
118
118
  (connection) => connection.provider === provider && (!("type" in connection) || connection.type === "oauth") && (options.name === void 0 || "name" in connection && connection.name === options.name)
@@ -145,7 +145,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
145
145
  "Print the proposed change without contacting Google or saving it"
146
146
  ).option("--json", "Print the result as JSON").action(
147
147
  async (action, options) => {
148
- const client = new (0, _chunkQM6Y6S4Ejs.DeeplineClient)();
148
+ const client = new (0, _chunkSHLFOPD6js.DeeplineClient)();
149
149
  if (action === "list") {
150
150
  const inventory = await client.listCalendarAvailabilityConnections();
151
151
  const approvals = _optionalChain([inventory, 'access', _3 => _3.approvals, 'optionalAccess', _4 => _4.length]) ? inventory.approvals.map(
@@ -295,7 +295,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
295
295
  }
296
296
  function registerLegacyAvailabilityCalendarsCommand(parent, hidden = false) {
297
297
  return parent.command("availability-calendars", { hidden }).description("Calendar discovery compatibility command for the pilot.").option("--cursor <cursor>", "Legacy calendar page cursor").option("--json", "Print the response as JSON").action(async (options) => {
298
- const page = await new (0, _chunkQM6Y6S4Ejs.DeeplineClient)().listAvailabilityCalendars(
298
+ const page = await new (0, _chunkSHLFOPD6js.DeeplineClient)().listAvailabilityCalendars(
299
299
  options.cursor
300
300
  );
301
301
  printIntegrationResult(page, options.json, [
@@ -339,7 +339,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
339
339
  printSetupPlan({ provider, action: "connect_link" }, options.json);
340
340
  return;
341
341
  }
342
- const link = await new (0, _chunkQM6Y6S4Ejs.DeeplineClient)().getIntegrationConnectLink(
342
+ const link = await new (0, _chunkSHLFOPD6js.DeeplineClient)().getIntegrationConnectLink(
343
343
  provider
344
344
  );
345
345
  printIntegrationResult(link, options.json, [link.connect_url]);
@@ -366,7 +366,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
366
366
  );
367
367
  return;
368
368
  }
369
- const result2 = await new (0, _chunkQM6Y6S4Ejs.DeeplineClient)().startIntegrationOAuth(
369
+ const result2 = await new (0, _chunkSHLFOPD6js.DeeplineClient)().startIntegrationOAuth(
370
370
  provider,
371
371
  {
372
372
  ...options.preset !== void 0 ? { preset: options.preset } : {},
@@ -416,7 +416,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
416
416
  "--credentials-file must contain a nonempty JSON object of string credential values."
417
417
  );
418
418
  }
419
- const result = await new (0, _chunkQM6Y6S4Ejs.DeeplineClient)().setIntegrationCredentials(
419
+ const result = await new (0, _chunkSHLFOPD6js.DeeplineClient)().setIntegrationCredentials(
420
420
  provider,
421
421
  credentials,
422
422
  { expectedConnectionId: options.expectedConnectionId }
@@ -1,13 +1,13 @@
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; }
2
2
 
3
- var _chunkMR5LTVHDjs = require('./chunk-MR5LTVHD.js');
3
+ var _chunkS46HWQKOjs = require('./chunk-S46HWQKO.js');
4
4
 
5
5
 
6
6
  var _chunkH4ALLC2Xjs = require('./chunk-H4ALLC2X.js');
7
7
 
8
8
 
9
9
 
10
- var _chunkUDXULACQjs = require('./chunk-UDXULACQ.js');
10
+ var _chunk7IKQKKNXjs = require('./chunk-7IKQKKNX.js');
11
11
 
12
12
  // src/cli/concurrent-runs-help.ts
13
13
  var CONCURRENT_RUNS_HELP_COMMANDS = /* @__PURE__ */ new Set([
@@ -24,11 +24,11 @@ function concurrentRunsLine(payload) {
24
24
  return plans ? `${here} Plan limits: ${plans}.` : here;
25
25
  }
26
26
  async function concurrentRunsHelpStatus(timeoutMs = 2e3) {
27
- const baseUrl = _chunkUDXULACQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
28
- const apiKey = _chunkUDXULACQjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
27
+ const baseUrl = _chunk7IKQKKNXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
28
+ const apiKey = _chunk7IKQKKNXjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
29
29
  if (!apiKey) return "";
30
30
  try {
31
- const { status, data } = await _chunkMR5LTVHDjs.httpJson.call(void 0,
31
+ const { status, data } = await _chunkS46HWQKOjs.httpJson.call(void 0,
32
32
  "GET",
33
33
  `${baseUrl}/api/v2/billing/entitlements`,
34
34
  apiKey,
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  httpJson
3
- } from "./chunk-MNSTCJMX.mjs";
3
+ } from "./chunk-EOPEYCY7.mjs";
4
4
  import {
5
5
  PRICING_PAGE_NOTE
6
6
  } from "./chunk-2RIKOPIM.mjs";
7
7
  import {
8
8
  autoDetectBaseUrl,
9
9
  resolveApiKeyForBaseUrl
10
- } from "./chunk-V6SCP4B7.mjs";
10
+ } from "./chunk-4TALT2M3.mjs";
11
11
 
12
12
  // src/cli/concurrent-runs-help.ts
13
13
  var CONCURRENT_RUNS_HELP_COMMANDS = /* @__PURE__ */ new Set([
@@ -11,20 +11,20 @@
11
11
 
12
12
 
13
13
 
14
- var _chunkCOGREZAOjs = require('./chunk-COGREZAO.js');
14
+ var _chunk4MK42735js = require('./chunk-4MK42735.js');
15
15
 
16
16
 
17
- var _chunkZDQFBJPOjs = require('./chunk-ZDQFBJPO.js');
17
+ var _chunkVQALXEXOjs = require('./chunk-VQALXEXO.js');
18
18
 
19
19
 
20
20
 
21
21
 
22
22
 
23
- var _chunkUDXULACQjs = require('./chunk-UDXULACQ.js');
23
+ var _chunk7IKQKKNXjs = require('./chunk-7IKQKKNX.js');
24
24
 
25
25
 
26
26
 
27
- var _chunkPACD5DGCjs = require('./chunk-PACD5DGC.js');
27
+ var _chunkRBEUVDZFjs = require('./chunk-RBEUVDZF.js');
28
28
 
29
29
 
30
30
  var _chunkRLX5ZFNXjs = require('./chunk-RLX5ZFNX.js');
@@ -145,7 +145,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
145
145
  return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
146
146
  }
147
147
  function resolveLocalRoot() {
148
- const target = _chunkUDXULACQjs.resolveProjectPinTarget.call(void 0, );
148
+ const target = _chunk7IKQKKNXjs.resolveProjectPinTarget.call(void 0, );
149
149
  if (!target.ok) {
150
150
  throw new Error(
151
151
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -156,7 +156,7 @@ function resolveLocalRoot() {
156
156
  return target.dir;
157
157
  }
158
158
  function detectSkillsAgents(input) {
159
- const runtime = _nullishCoalesce(input.runtime, () => ( _chunkPACD5DGCjs.detectAgentRuntime.call(void 0, )));
159
+ const runtime = _nullishCoalesce(input.runtime, () => ( _chunkRBEUVDZFjs.detectAgentRuntime.call(void 0, )));
160
160
  const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
161
161
  if (knownAgent) return [knownAgent];
162
162
  const roots = [
@@ -171,11 +171,11 @@ function detectSkillsAgents(input) {
171
171
  return detected.length > 0 ? detected : ["*"];
172
172
  }
173
173
  function skillsStatePathForScope(baseUrl, scope, root) {
174
- return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkUDXULACQjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
174
+ return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunk7IKQKKNXjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
175
175
  }
176
176
  function buildSkillsPlan(input) {
177
177
  const scopeArgs = input.scope === "global" ? ["--global"] : [];
178
- const legacyNames = [..._chunkCOGREZAOjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
178
+ const legacyNames = [..._chunk4MK42735js.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
179
179
  (a, b) => a.localeCompare(b)
180
180
  );
181
181
  return {
@@ -189,7 +189,7 @@ function buildSkillsPlan(input) {
189
189
  args: [
190
190
  "exec",
191
191
  "--yes",
192
- `--package=${_chunkCOGREZAOjs.SKILLS_NPX_PACKAGE}`,
192
+ `--package=${_chunk4MK42735js.SKILLS_NPX_PACKAGE}`,
193
193
  "--",
194
194
  "skills",
195
195
  "remove",
@@ -205,11 +205,11 @@ function buildSkillsPlan(input) {
205
205
  args: [
206
206
  "exec",
207
207
  "--yes",
208
- `--package=${_chunkCOGREZAOjs.SKILLS_NPX_PACKAGE}`,
208
+ `--package=${_chunk4MK42735js.SKILLS_NPX_PACKAGE}`,
209
209
  "--",
210
210
  "skills",
211
211
  "add",
212
- _chunkCOGREZAOjs.skillsSourceUrl.call(void 0, input.baseUrl),
212
+ _chunk4MK42735js.skillsSourceUrl.call(void 0, input.baseUrl),
213
213
  "--agent",
214
214
  ...input.agents,
215
215
  ...scopeArgs,
@@ -246,7 +246,7 @@ function readSkillsInstallState(path) {
246
246
  }
247
247
  function runProcess(command, args, cwd) {
248
248
  return new Promise((resolve, reject) => {
249
- const plan = _chunkCOGREZAOjs.resolveShellSpawn.call(void 0,
249
+ const plan = _chunk4MK42735js.resolveShellSpawn.call(void 0,
250
250
  command,
251
251
  args,
252
252
  process.platform,
@@ -269,7 +269,7 @@ function runProcess(command, args, cwd) {
269
269
  child.kill("SIGTERM");
270
270
  reject(
271
271
  new Error(
272
- `${_chunkCOGREZAOjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
272
+ `${_chunk4MK42735js.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
273
273
  )
274
274
  );
275
275
  }, SKILLS_PROCESS_TIMEOUT_MS);
@@ -280,7 +280,7 @@ function runProcess(command, args, cwd) {
280
280
  child.once("close", (code) => {
281
281
  clearTimeout(timeout);
282
282
  if (code && stderr.trim()) {
283
- process.stderr.write(`${_chunkCOGREZAOjs.SKILLS_NPX_PACKAGE} exited ${code}.
283
+ process.stderr.write(`${_chunk4MK42735js.SKILLS_NPX_PACKAGE} exited ${code}.
284
284
  `);
285
285
  }
286
286
  resolve(_nullishCoalesce(code, () => ( 1)));
@@ -288,7 +288,7 @@ function runProcess(command, args, cwd) {
288
288
  });
289
289
  }
290
290
  async function showSkills(options, name) {
291
- const baseUrl = _chunkUDXULACQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
291
+ const baseUrl = _chunk7IKQKKNXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
292
292
  const url = name ? `${baseUrl}/.well-known/skills/${encodeURIComponent(name)}/SKILL.md` : `${baseUrl}/.well-known/skills/index.json`;
293
293
  try {
294
294
  const response = await fetch(url, {
@@ -301,7 +301,7 @@ async function showSkills(options, name) {
301
301
  }
302
302
  if (name) {
303
303
  const markdown = await response.text();
304
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
304
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
305
305
  { ok: true, status: "completed", skill: { name, markdown } },
306
306
  { json: options.json, text: markdown }
307
307
  );
@@ -311,7 +311,7 @@ async function showSkills(options, name) {
311
311
  const skills = (_nullishCoalesce(index.skills, () => ( []))).filter(
312
312
  (skill) => skill.install_surface === "v1" && skill.name
313
313
  );
314
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
314
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
315
315
  {
316
316
  ok: true,
317
317
  status: "completed",
@@ -328,7 +328,7 @@ Read one with: deepline skills show <name>
328
328
  );
329
329
  return 0;
330
330
  } catch (error) {
331
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
331
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
332
332
  {
333
333
  ok: false,
334
334
  status: "failed",
@@ -351,7 +351,7 @@ async function runSkillsCommand(options, dependencies = {}) {
351
351
  scope = normalizeScope(options.scope);
352
352
  root = scope === "local" ? resolveLocalRoot() : null;
353
353
  } catch (error) {
354
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
354
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
355
355
  {
356
356
  ok: false,
357
357
  status: "failed",
@@ -363,22 +363,22 @@ async function runSkillsCommand(options, dependencies = {}) {
363
363
  );
364
364
  return 2;
365
365
  }
366
- const baseUrl = _chunkUDXULACQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
366
+ const baseUrl = _chunk7IKQKKNXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
367
367
  const catalog = {
368
- skillNames: [..._chunkCOGREZAOjs.DEFAULT_SDK_SKILL_NAMES],
369
- version: _chunkPACD5DGCjs.SDK_VERSION
368
+ skillNames: [..._chunk4MK42735js.DEFAULT_SDK_SKILL_NAMES],
369
+ version: _chunkRBEUVDZFjs.SDK_VERSION
370
370
  };
371
371
  const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
372
372
  const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
373
373
  if (options.dryRun) {
374
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
374
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
375
375
  { ok: true, status: "planned", dryRun: true, ...plan },
376
376
  { json: options.json }
377
377
  );
378
378
  return 0;
379
379
  }
380
- if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkCOGREZAOjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
381
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
380
+ if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunk4MK42735js.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
381
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
382
382
  {
383
383
  ok: true,
384
384
  status: "current",
@@ -410,10 +410,10 @@ async function runSkillsCommand(options, dependencies = {}) {
410
410
  }
411
411
  if (scope === "local" && root) {
412
412
  const managedNames = [
413
- .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkCOGREZAOjs.LEGACY_SKILL_NAMES_TO_REMOVE])
413
+ .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunk4MK42735js.LEGACY_SKILL_NAMES_TO_REMOVE])
414
414
  ];
415
415
  const agentRoots = workspaceSkillRootsForAgents(plan.agents);
416
- _chunkUDXULACQjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
416
+ _chunk7IKQKKNXjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
417
417
  ".deepline/",
418
418
  ...agentRoots.flatMap(
419
419
  (agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
@@ -422,7 +422,7 @@ async function runSkillsCommand(options, dependencies = {}) {
422
422
  }
423
423
  let lease;
424
424
  try {
425
- lease = scope === "global" ? await _chunkCOGREZAOjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
425
+ lease = scope === "global" ? await _chunk4MK42735js.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
426
426
  waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
427
427
  onWait: () => process.stderr.write(
428
428
  "Waiting for a background Deepline skills refresh to finish...\n"
@@ -430,8 +430,8 @@ async function runSkillsCommand(options, dependencies = {}) {
430
430
  }) : { release: () => {
431
431
  } };
432
432
  } catch (error) {
433
- if (!(error instanceof _chunkCOGREZAOjs.SkillsStateUnavailableError)) throw error;
434
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
433
+ if (!(error instanceof _chunk4MK42735js.SkillsStateUnavailableError)) throw error;
434
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
435
435
  {
436
436
  ok: false,
437
437
  status: "failed",
@@ -447,7 +447,7 @@ async function runSkillsCommand(options, dependencies = {}) {
447
447
  return 5;
448
448
  }
449
449
  if (!lease) {
450
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
450
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
451
451
  {
452
452
  ok: false,
453
453
  status: "failed",
@@ -456,7 +456,7 @@ async function runSkillsCommand(options, dependencies = {}) {
456
456
  scope,
457
457
  agents,
458
458
  message: "A background Deepline skills refresh is still running for these agents.",
459
- next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${_chunkCOGREZAOjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
459
+ next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${_chunk4MK42735js.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
460
460
  },
461
461
  { json: options.json }
462
462
  );
@@ -505,7 +505,7 @@ async function runSkillsInstallWithLease(input) {
505
505
  }
506
506
  }
507
507
  } catch (error) {
508
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
508
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
509
509
  {
510
510
  ok: false,
511
511
  status: "failed",
@@ -521,7 +521,7 @@ async function runSkillsInstallWithLease(input) {
521
521
  return 5;
522
522
  }
523
523
  if (missing.length > 0) {
524
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
524
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
525
525
  {
526
526
  ok: false,
527
527
  status: "failed",
@@ -561,7 +561,7 @@ async function runSkillsInstallWithLease(input) {
561
561
  {
562
562
  schemaVersion: 1,
563
563
  installedAt: (/* @__PURE__ */ new Date()).toISOString(),
564
- cliVersion: _chunkPACD5DGCjs.SDK_VERSION,
564
+ cliVersion: _chunkRBEUVDZFjs.SDK_VERSION,
565
565
  scope,
566
566
  agents,
567
567
  skillsVersion: plan.version,
@@ -574,9 +574,9 @@ async function runSkillsInstallWithLease(input) {
574
574
  "utf8"
575
575
  );
576
576
  if (scope === "global") {
577
- _chunkCOGREZAOjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
577
+ _chunk4MK42735js.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
578
578
  }
579
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
579
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
580
580
  {
581
581
  ok: true,
582
582
  status: "complete",
@@ -625,7 +625,7 @@ Examples:
625
625
  "after",
626
626
  `
627
627
  Notes:
628
- This command reinstalls current Deepline-managed skills using ${_chunkCOGREZAOjs.SKILLS_NPX_PACKAGE},
628
+ This command reinstalls current Deepline-managed skills using ${_chunk4MK42735js.SKILLS_NPX_PACKAGE},
629
629
  then removes legacy Deepline skill names. Local scope writes into the resolved
630
630
  persistent project.
631
631
 
@@ -637,13 +637,13 @@ Examples:
637
637
  ).action(async (options) => {
638
638
  process.exitCode = await runSkillsCommand(options);
639
639
  });
640
- program.command(_chunkCOGREZAOjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
640
+ program.command(_chunk4MK42735js.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
641
641
  "--claim <token>",
642
642
  "Owner token of the leases this child was started for."
643
643
  ).action(async (options) => {
644
644
  const claim = _optionalChain([options, 'access', _9 => _9.claim, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]);
645
645
  if (!claim) {
646
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
646
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
647
647
  {
648
648
  ok: false,
649
649
  status: "failed",
@@ -656,7 +656,7 @@ Examples:
656
656
  process.exitCode = 2;
657
657
  return;
658
658
  }
659
- await _chunkCOGREZAOjs.syncSdkSkillsIfNeeded.call(void 0, _chunkUDXULACQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
659
+ await _chunk4MK42735js.syncSdkSkillsIfNeeded.call(void 0, _chunk7IKQKKNXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
660
660
  mode: "inline",
661
661
  notices: "defer",
662
662
  claim
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunkLPJPCGT3js = require('./chunk-LPJPCGT3.js');
3
+ var _chunkPFO3ISXAjs = require('./chunk-PFO3ISXA.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkUDXULACQjs = require('./chunk-UDXULACQ.js');
7
+ var _chunk7IKQKKNXjs = require('./chunk-7IKQKKNX.js');
8
8
 
9
9
  // src/plays/local-play-execution.ts
10
10
  function importedNodes(graph) {
@@ -137,9 +137,9 @@ async function pinLocalPlayImports(client, graph) {
137
137
 
138
138
  // src/plays/client.ts
139
139
  function createPlayClient(options) {
140
- const config = _chunkUDXULACQjs.resolveConfig.call(void 0, options);
141
- return new (0, _chunkLPJPCGT3js.PlayClient)(
142
- new (0, _chunkUDXULACQjs.HttpClient)(config),
140
+ const config = _chunk7IKQKKNXjs.resolveConfig.call(void 0, options);
141
+ return new (0, _chunkPFO3ISXAjs.PlayClient)(
142
+ new (0, _chunk7IKQKKNXjs.HttpClient)(config),
143
143
  _nullishCoalesce(config.environment, () => ( process.env))
144
144
  );
145
145
  }
@@ -11,20 +11,20 @@ import {
11
11
  skillsInstallLeasePath,
12
12
  skillsSourceUrl,
13
13
  syncSdkSkillsIfNeeded
14
- } from "./chunk-I4VKGNAQ.mjs";
14
+ } from "./chunk-YJHE3O5M.mjs";
15
15
  import {
16
16
  printCommandEnvelope
17
- } from "./chunk-GGB3JYCW.mjs";
17
+ } from "./chunk-6PRW5UBA.mjs";
18
18
  import {
19
19
  autoDetectBaseUrl,
20
20
  ensureProjectPrivatePathsIgnored,
21
21
  resolveProjectPinTarget,
22
22
  sdkCliStateDirPath
23
- } from "./chunk-V6SCP4B7.mjs";
23
+ } from "./chunk-4TALT2M3.mjs";
24
24
  import {
25
25
  SDK_VERSION,
26
26
  detectAgentRuntime
27
- } from "./chunk-4D3WIZST.mjs";
27
+ } from "./chunk-YLTMXJFC.mjs";
28
28
  import {
29
29
  DEEPLINE_GTM_GLOBAL_SKILL_ROOTS
30
30
  } from "./chunk-5JPKRDFC.mjs";
@@ -3,16 +3,16 @@
3
3
  var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
4
4
 
5
5
 
6
- var _chunkQM6Y6S4Ejs = require('./chunk-QM6Y6S4E.js');
6
+ var _chunkSHLFOPD6js = require('./chunk-SHLFOPD6.js');
7
7
 
8
8
 
9
9
 
10
10
 
11
- var _chunkZDQFBJPOjs = require('./chunk-ZDQFBJPO.js');
11
+ var _chunkVQALXEXOjs = require('./chunk-VQALXEXO.js');
12
12
 
13
13
 
14
14
 
15
- var _chunkUDXULACQjs = require('./chunk-UDXULACQ.js');
15
+ var _chunk7IKQKKNXjs = require('./chunk-7IKQKKNX.js');
16
16
 
17
17
  // src/cli/commands/search.ts
18
18
  var _commander = require('commander');
@@ -22,7 +22,7 @@ var _fs = require('fs');
22
22
  var _path = require('path');
23
23
  var SEARCH_REF_TTL_MS = 15 * 6e4;
24
24
  function lastSearchPath() {
25
- return _path.join.call(void 0, _chunkUDXULACQjs.sdkCliStateDirPath.call(void 0, _chunkUDXULACQjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
25
+ return _path.join.call(void 0, _chunk7IKQKKNXjs.sdkCliStateDirPath.call(void 0, _chunk7IKQKKNXjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
26
26
  }
27
27
  function rememberSearchRef(searchRef) {
28
28
  writeSearchRefs({ searchRef });
@@ -132,9 +132,9 @@ async function runSearch(queryInputs, options, types, exclude = []) {
132
132
  console.error("--summary-width must be an integer of at least 2.");
133
133
  return 1;
134
134
  }
135
- const client = new (0, _chunkQM6Y6S4Ejs.DeeplineClient)();
135
+ const client = new (0, _chunkSHLFOPD6js.DeeplineClient)();
136
136
  const json = options.json === true;
137
- const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-6JF3S4TP.js")));
137
+ const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-S5ODBL5E.js")));
138
138
  const searches = [];
139
139
  const chunks = [];
140
140
  const refs = /* @__PURE__ */ new Map();
@@ -157,7 +157,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
157
157
  const text = _optionalChain([renderer, 'optionalAccess', _12 => _12.renderSearchResults, 'call', _13 => _13(result, summaryWidth)]);
158
158
  if (!multiple) {
159
159
  if (searchRef) rememberSearchRef(searchRef);
160
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0, result, { json, text });
160
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0, result, { json, text });
161
161
  return 0;
162
162
  }
163
163
  searches.push({ ...result, query });
@@ -171,8 +171,8 @@ ${text}`);
171
171
  }
172
172
  } catch (error) {
173
173
  if (!multiple) throw error;
174
- const payload = _chunkZDQFBJPOjs.errorToJsonPayload.call(void 0, error);
175
- const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkZDQFBJPOjs.resolveSdkCliFailureExitCode.call(void 0, error)));
174
+ const payload = _chunkVQALXEXOjs.errorToJsonPayload.call(void 0, error);
175
+ const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkVQALXEXOjs.resolveSdkCliFailureExitCode.call(void 0, error)));
176
176
  searches.push({ ...payload, query, exitCode: queryExitCode });
177
177
  if (!json) {
178
178
  console.error(`${JSON.stringify(query)}: ${payload.error.message}`);
@@ -184,7 +184,7 @@ Search failed.
184
184
  }
185
185
  }
186
186
  rememberSearchRefsByTool(refs);
187
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
187
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
188
188
  { searches },
189
189
  {
190
190
  json,
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunkZDQFBJPOjs = require('./chunk-ZDQFBJPO.js');
3
+ var _chunkVQALXEXOjs = require('./chunk-VQALXEXO.js');
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  var _commander = require('commander');
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
33
33
  sinceStartMs: now - cliTraceStartedAt,
34
34
  ...event
35
35
  };
36
- _chunkZDQFBJPOjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
36
+ _chunkVQALXEXOjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
37
37
  `);
38
38
  }
39
39
  async function traceCliSpan(phase, fields, run) {