deepline 0.3.567 → 0.3.569

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 (155) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +53 -5
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +17 -10
  4. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +21 -0
  5. package/dist/cli/auth-77NOPZ6A.js +44 -0
  6. package/dist/cli/{auth-IYYQA4ZO.mjs → auth-VNJLXDGF.mjs} +5 -5
  7. package/dist/cli/{billing-B37Z3HQJ.mjs → billing-6HD5LEI2.mjs} +9 -9
  8. package/dist/cli/{billing-HSUA42W6.js → billing-OTIIK5ZQ.js} +102 -102
  9. package/dist/cli/{chunk-NQ6NYC54.js → chunk-3WZ3X46C.js} +13 -13
  10. package/dist/cli/{chunk-Z75WS3TZ.js → chunk-44HOKKIN.js} +100 -100
  11. package/dist/cli/{chunk-GWKHJ6BN.mjs → chunk-45OTCUAC.mjs} +2 -2
  12. package/dist/cli/{chunk-OUKIU4AE.js → chunk-4CLEOTG6.js} +2 -2
  13. package/dist/cli/{chunk-KOMEYB7H.mjs → chunk-64MOX3SN.mjs} +16 -3
  14. package/dist/cli/{chunk-3GRMC25W.mjs → chunk-6D4WBX7E.mjs} +33 -5
  15. package/dist/cli/{chunk-LZV3AJAX.mjs → chunk-6HEZRKAO.mjs} +2 -2
  16. package/dist/cli/{chunk-KOBUUBOO.mjs → chunk-6SBGYX25.mjs} +2 -2
  17. package/dist/cli/{chunk-LQRWLQAQ.js → chunk-6Z7B3IOW.js} +2 -2
  18. package/dist/cli/{chunk-AC37TMJX.js → chunk-7MZUSBSI.js} +23 -23
  19. package/dist/cli/{chunk-FT7OSIWX.mjs → chunk-7NP7WZV2.mjs} +3 -3
  20. package/dist/cli/{chunk-HYYWZFYF.mjs → chunk-7QH52S3E.mjs} +145 -10
  21. package/dist/cli/{chunk-4FTTLJVV.mjs → chunk-AKNJDDSM.mjs} +1 -1
  22. package/dist/cli/{chunk-A5VWMZY4.js → chunk-ANXJNE2G.js} +3 -3
  23. package/dist/cli/{chunk-RSQ6AVH3.mjs → chunk-CK6U2NH2.mjs} +1 -1
  24. package/dist/cli/{chunk-ZPD6SPP2.mjs → chunk-D3BJ2KZX.mjs} +1 -1
  25. package/dist/cli/{chunk-YDXPAUGF.mjs → chunk-DG6ILAO7.mjs} +2 -2
  26. package/dist/cli/{chunk-6DJHNVGT.mjs → chunk-EDNWMQZQ.mjs} +2 -2
  27. package/dist/cli/{chunk-JBXDWAGB.mjs → chunk-FPRLFIYT.mjs} +4 -4
  28. package/dist/cli/{chunk-LTJQCMEM.js → chunk-FSAOU4HA.js} +20 -20
  29. package/dist/cli/{chunk-MMWD3ZTQ.mjs → chunk-GSUHJUNZ.mjs} +2 -2
  30. package/dist/cli/{chunk-OPGDVTAQ.js → chunk-H3SQMLHO.js} +48 -48
  31. package/dist/cli/{chunk-3E2C6CIE.js → chunk-H7DRZXYF.js} +4 -4
  32. package/dist/cli/{chunk-5D3QECRX.js → chunk-HLRSNCPM.js} +53 -53
  33. package/dist/cli/{chunk-OD4LINNE.mjs → chunk-IEOIGU5A.mjs} +1 -1
  34. package/dist/cli/{chunk-ZNXUAZDK.js → chunk-IGIUAHTR.js} +41 -41
  35. package/dist/cli/{chunk-V5YGEK5Q.js → chunk-IS4NFIQY.js} +136 -108
  36. package/dist/cli/{chunk-4ACBVZ44.mjs → chunk-JXRWSBJZ.mjs} +1 -1
  37. package/dist/cli/{chunk-GFETP5X7.js → chunk-LOF7H5V3.js} +7 -7
  38. package/dist/cli/{chunk-KHZVZOJF.js → chunk-MIGJHZ3P.js} +20 -20
  39. package/dist/cli/{chunk-XG5NEJOK.js → chunk-N5ZOD3LA.js} +10 -10
  40. package/dist/cli/{chunk-OEVCKW2M.js → chunk-N6KF6X3D.js} +16 -3
  41. package/dist/cli/{chunk-64CQF2JL.mjs → chunk-OFBP336D.mjs} +4 -4
  42. package/dist/cli/{chunk-3TJKNRHY.mjs → chunk-P2LVKWU6.mjs} +2 -2
  43. package/dist/cli/{chunk-PFJNZUUK.js → chunk-PAFSVZCZ.js} +155 -20
  44. package/dist/cli/{chunk-P4GUUPIV.js → chunk-QKPKVLTG.js} +2 -2
  45. package/dist/cli/{chunk-35TWSBEO.js → chunk-QLMMNBJW.js} +6 -6
  46. package/dist/cli/{chunk-7RNBGBTS.js → chunk-S3VGWMFX.js} +9 -9
  47. package/dist/cli/{chunk-OOFYQCNU.js → chunk-S4MDYDCF.js} +5 -5
  48. package/dist/cli/{chunk-RIR3YNNB.js → chunk-SMAXLMM3.js} +15 -15
  49. package/dist/cli/{chunk-IPOAJ56O.mjs → chunk-SRMDDVWK.mjs} +5 -5
  50. package/dist/cli/{chunk-L5UB7RF2.js → chunk-SWREMC6J.js} +5 -5
  51. package/dist/cli/{chunk-FRQYUWGF.mjs → chunk-TALKTQK5.mjs} +1 -1
  52. package/dist/cli/{chunk-4FVLQFCF.js → chunk-TH2GHSF6.js} +5 -5
  53. package/dist/cli/{chunk-S72EZ4R5.mjs → chunk-TRE5X6VQ.mjs} +1 -1
  54. package/dist/cli/{chunk-WIKOKQJV.js → chunk-TZVKEUM6.js} +1 -1
  55. package/dist/cli/{chunk-C67KGU5G.mjs → chunk-UOMMXLDU.mjs} +11 -11
  56. package/dist/cli/{chunk-YRRXHWQ2.mjs → chunk-WPCY5PR3.mjs} +5 -5
  57. package/dist/cli/{chunk-CR7U44AW.js → chunk-WVS2ITKP.js} +3 -3
  58. package/dist/cli/{chunk-ASIXRCHD.mjs → chunk-X4WPW5O3.mjs} +3 -3
  59. package/dist/cli/{chunk-6TLCP356.mjs → chunk-YLZ63U7S.mjs} +5 -5
  60. package/dist/cli/{chunk-PH4SALNI.mjs → chunk-YNSVWNRY.mjs} +1 -1
  61. package/dist/cli/{chunk-SDJ5CTZX.js → chunk-YTOILYBU.js} +26 -26
  62. package/dist/cli/{chunk-AUXDJJYK.mjs → chunk-YTYDKSK7.mjs} +5 -5
  63. package/dist/cli/command-docs.js +2 -2
  64. package/dist/cli/command-docs.mjs +1 -1
  65. package/dist/cli/{concurrent-runs-help-P5TBHSRA.mjs → concurrent-runs-help-BVBGDMNV.mjs} +6 -6
  66. package/dist/cli/concurrent-runs-help-QPUTOBFB.js +22 -0
  67. package/dist/cli/{csv-KPYMOFM2.mjs → csv-BUZIP2TV.mjs} +4 -4
  68. package/dist/cli/{csv-2F5LOZUT.js → csv-G25E43QV.js} +13 -13
  69. package/dist/cli/{db-URVQ2LNU.mjs → db-EUN7RRDX.mjs} +6 -6
  70. package/dist/cli/{db-4H4CJFI2.js → db-KYIDDEEE.js} +27 -27
  71. package/dist/cli/{describe-KV6RFX2K.mjs → describe-CTYSKRQB.mjs} +18 -18
  72. package/dist/cli/describe-PJIQSXJ4.js +50 -0
  73. package/dist/cli/describe-core.d.mts +2 -2
  74. package/dist/cli/describe-core.d.ts +2 -2
  75. package/dist/cli/{executions-NFQCGCBK.mjs → executions-BRSOIIV7.mjs} +6 -6
  76. package/dist/cli/{executions-BAAJY5LB.js → executions-LQA34Z76.js} +8 -8
  77. package/dist/cli/{feedback-UF2TRDNI.mjs → feedback-JYL2FTWI.mjs} +6 -6
  78. package/dist/cli/{feedback-Y3WJ5VTT.js → feedback-RVYWQRSZ.js} +14 -14
  79. package/dist/cli/{git-EIURJKMS.mjs → git-2Z2KYPCV.mjs} +5 -5
  80. package/dist/cli/git-MJRG55H7.js +26 -0
  81. package/dist/cli/index.js +147 -147
  82. package/dist/cli/index.mjs +46 -46
  83. package/dist/cli/{integrations-YVBIIULS.js → integrations-JK3OT5BT.js} +29 -29
  84. package/dist/cli/{integrations-TPEILZYO.mjs → integrations-QFS62VWE.mjs} +7 -7
  85. package/dist/cli/{legacy-noops-EVEQ4T2F.mjs → legacy-noops-NBKBFVDO.mjs} +6 -6
  86. package/dist/cli/{legacy-noops-K5YAE7DD.js → legacy-noops-RYP5LN5D.js} +9 -9
  87. package/dist/cli/{mcp-NADIFFBS.js → mcp-KPY7NZPI.js} +24 -24
  88. package/dist/cli/{mcp-7UX5HDKR.mjs → mcp-KVGJK3SM.mjs} +4 -4
  89. package/dist/cli/{monitors-TOWPB2IO.js → monitors-DE5SX3CP.js} +100 -100
  90. package/dist/cli/{monitors-V2XU3WU3.mjs → monitors-H3UWQMMI.mjs} +7 -7
  91. package/dist/cli/{org-S2UZTR74.js → org-CDCSMG3J.js} +121 -121
  92. package/dist/cli/{org-J2FDLRIR.mjs → org-N6I5K56T.mjs} +6 -6
  93. package/dist/cli/{outcomes-ECG7SORM.mjs → outcomes-EPEMTJVB.mjs} +6 -6
  94. package/dist/cli/{outcomes-DIU4I6IA.js → outcomes-UNAOLWWO.js} +14 -14
  95. package/dist/cli/{play-LW5RPGMR.js → play-7TVJ3DFQ.js} +324 -324
  96. package/dist/cli/{play-SIYRTGQF.mjs → play-VVM5XJFT.mjs} +19 -19
  97. package/dist/cli/{providers-5VIQLQGV.mjs → providers-47CT527B.mjs} +6 -6
  98. package/dist/cli/{providers-G4FAPJ6K.js → providers-ANYRJ56K.js} +9 -9
  99. package/dist/cli/{quickstart-6NLZQN2K.js → quickstart-H4MI6LVO.js} +6 -6
  100. package/dist/cli/{quickstart-IPM5YDLX.mjs → quickstart-QHMC5YCM.mjs} +4 -4
  101. package/dist/cli/{run-Z3TL5ZOG.mjs → run-NXC5W5CW.mjs} +23 -23
  102. package/dist/cli/{run-VGIB7CJB.js → run-V4UAYPAX.js} +44 -44
  103. package/dist/cli/{search-2CLGFCVP.mjs → search-BEU4VBY4.mjs} +7 -7
  104. package/dist/cli/search-TUK2STXB.js +32 -0
  105. package/dist/cli/{search-output-O6RCBYN6.mjs → search-output-DUA3WDB7.mjs} +4 -4
  106. package/dist/cli/{search-output-FEB5JLB5.js → search-output-NUGUU7VJ.js} +6 -6
  107. package/dist/cli/{secrets-OVVWC2HX.js → secrets-PFDBC5KO.js} +15 -15
  108. package/dist/cli/{secrets-RBHLBJHA.mjs → secrets-XQOOWTH2.mjs} +6 -6
  109. package/dist/cli/sessions-5333FFSY.js +23 -0
  110. package/dist/cli/{sessions-PFA3PFXV.mjs → sessions-U2ZS5R42.mjs} +6 -6
  111. package/dist/cli/{settings-V5OAQOFP.js → settings-ATYARYCR.js} +85 -85
  112. package/dist/cli/{settings-N54VKHLV.mjs → settings-GPDE7DL2.mjs} +12 -12
  113. package/dist/cli/{setup-XF3KBJ6Y.js → setup-4AYMU7NK.js} +49 -49
  114. package/dist/cli/{setup-2EZ563DR.mjs → setup-UDO6BY5A.mjs} +9 -9
  115. package/dist/cli/skills-LB56HJOY.js +37 -0
  116. package/dist/cli/{skills-7DULCICX.mjs → skills-RACTA7VV.mjs} +7 -7
  117. package/dist/cli/tools-3Y7KCKZX.js +57 -0
  118. package/dist/cli/{tools-NC5IVGAT.mjs → tools-TXI6XFHE.mjs} +17 -17
  119. package/dist/cli/update-EWOLMH3E.js +37 -0
  120. package/dist/cli/{update-4H3GBUVU.mjs → update-VHTKWNXO.mjs} +9 -9
  121. package/dist/cli/{views-CEGJLVO7.js → views-DVBO3L63.js} +21 -21
  122. package/dist/cli/{views-O2V4FIII.mjs → views-GCNEHB7D.mjs} +6 -6
  123. package/dist/cli/{workflow-SGWK2I2Z.mjs → workflow-R3A6EGB5.mjs} +7 -7
  124. package/dist/cli/{workflow-EJNNNQOE.js → workflow-TFRJ5JKX.js} +17 -17
  125. package/dist/{client-B5cSKEi4.d.mts → client-ClJlqkKt.d.mts} +1 -1
  126. package/dist/{client-vUZGmXT9.d.ts → client-DCnExziW.d.ts} +1 -1
  127. package/dist/{client-core-Deqov12F.d.ts → client-core-BKq5ZNAl.d.ts} +33 -2
  128. package/dist/{client-core-BP19BoBb.d.mts → client-core-DAOPQnGD.d.mts} +33 -2
  129. package/dist/index.d.mts +3 -3
  130. package/dist/index.d.ts +3 -3
  131. package/dist/index.js +9 -9
  132. package/dist/index.mjs +6 -6
  133. package/dist/install-integrity.json +118 -118
  134. package/dist/plays/play-description.d.mts +1 -1
  135. package/dist/plays/play-description.d.ts +1 -1
  136. package/dist/plays/run-request.d.mts +1 -1
  137. package/dist/plays/run-request.d.ts +1 -1
  138. package/dist/release.d.mts +1 -1
  139. package/dist/release.d.ts +1 -1
  140. package/dist/release.js +2 -2
  141. package/dist/release.mjs +1 -1
  142. package/dist/server.d.mts +2 -2
  143. package/dist/server.d.ts +2 -2
  144. package/dist/server.js +5 -5
  145. package/dist/server.mjs +3 -3
  146. package/package.json +1 -1
  147. package/dist/cli/auth-KI3KBLRD.js +0 -44
  148. package/dist/cli/concurrent-runs-help-7SA3A2K5.js +0 -22
  149. package/dist/cli/describe-R7QLYW6K.js +0 -50
  150. package/dist/cli/git-TIF77U5E.js +0 -26
  151. package/dist/cli/search-BJFP7VHT.js +0 -32
  152. package/dist/cli/sessions-HCKHUILD.js +0 -23
  153. package/dist/cli/skills-TZC2JNIZ.js +0 -37
  154. package/dist/cli/tools-ECUMBLZB.js +0 -57
  155. package/dist/cli/update-4AAEZJ64.js +0 -37
@@ -1,16 +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
- var _chunkOOFYQCNUjs = require('./chunk-OOFYQCNU.js');
3
+ var _chunkS4MDYDCFjs = require('./chunk-S4MDYDCF.js');
4
4
 
5
5
 
6
- var _chunkLTJQCMEMjs = require('./chunk-LTJQCMEM.js');
6
+ var _chunkFSAOU4HAjs = require('./chunk-FSAOU4HA.js');
7
+
8
+
9
+ var _chunkWVS2ITKPjs = require('./chunk-WVS2ITKP.js');
7
10
 
8
11
  // src/cli/commands/integration-commands.ts
9
12
  var _commander = require('commander');
10
13
  var _fs = require('fs');
11
14
  var _path = require('path');
12
15
  function printIntegrationResult(value, json, lines, nextCursor) {
13
- _chunkLTJQCMEMjs.printCommandEnvelope.call(void 0,
16
+ _chunkFSAOU4HAjs.printCommandEnvelope.call(void 0,
14
17
  {},
15
18
  {
16
19
  json: json || void 0,
@@ -26,7 +29,7 @@ function registerIntegrationBalanceCommand(parent, hidden = false) {
26
29
  return parent.command("balance <provider>", { hidden }).description(
27
30
  "Read a fresh balance using this org\u2019s own provider connection (LeadMagic)."
28
31
  ).option("--json", "Print the balance and observation timestamp as JSON").action(async (provider, options) => {
29
- const balance = await new (0, _chunkOOFYQCNUjs.DeeplineClient)().getIntegrationBalance(
32
+ const balance = await new (0, _chunkS4MDYDCFjs.DeeplineClient)().getIntegrationBalance(
30
33
  provider
31
34
  );
32
35
  printIntegrationResult(balance, options.json, [
@@ -40,7 +43,7 @@ function registerWorkspaceConnectionListCommand(parent, name = "workspace-connec
40
43
  "List teammates\u2019 personal connections for this provider"
41
44
  ).option("--cursor <cursor>", "Read the next page of members").action(
42
45
  async (options) => {
43
- const client = new (0, _chunkOOFYQCNUjs.DeeplineClient)();
46
+ const client = new (0, _chunkS4MDYDCFjs.DeeplineClient)();
44
47
  if (name === "list" && options.cursor && !options.members)
45
48
  throw new Error(
46
49
  "Use --cursor with --members to continue a member page."
@@ -82,7 +85,7 @@ function registerWorkspaceConnectionListCommand(parent, name = "workspace-connec
82
85
  }
83
86
  function registerLegacyHubSpotMembersCommand(parent, hidden = false) {
84
87
  return parent.command("hubspot-members", { hidden }).description("List personal HubSpot connection status for org members.").option("--cursor <cursor>", "Read the next roster page").option("--json", "Print the roster page as JSON").action(async (options) => {
85
- const page = await new (0, _chunkOOFYQCNUjs.DeeplineClient)().listPersonalHubSpotMembers(
88
+ const page = await new (0, _chunkS4MDYDCFjs.DeeplineClient)().listPersonalHubSpotMembers(
86
89
  options.cursor
87
90
  );
88
91
  const rows = page.members.map((member) => {
@@ -108,7 +111,7 @@ function registerLegacyWorkspaceConnectionCommand(parent, hidden = false) {
108
111
  );
109
112
  if (options.autoName && (action !== "connect" || options.name !== void 0))
110
113
  throw new Error("Use --auto-name with connect and omit --name.");
111
- const client = new (0, _chunkOOFYQCNUjs.DeeplineClient)();
114
+ const client = new (0, _chunkS4MDYDCFjs.DeeplineClient)();
112
115
  const { connections } = action === "connect" ? { connections: [] } : options.name ? await client.listWorkspaceConnectionInventory(provider) : await client.listWorkspaceIntegrationConnections();
113
116
  const row = connections.find(
114
117
  (connection) => connection.provider === provider && (!("type" in connection) || connection.type === "oauth") && (options.name === void 0 || "name" in connection && connection.name === options.name)
@@ -141,7 +144,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
141
144
  "Print the proposed change without contacting Google or saving it"
142
145
  ).option("--json", "Print the result as JSON").action(
143
146
  async (action, options) => {
144
- const client = new (0, _chunkOOFYQCNUjs.DeeplineClient)();
147
+ const client = new (0, _chunkS4MDYDCFjs.DeeplineClient)();
145
148
  if (action === "list") {
146
149
  const inventory = await client.listCalendarAvailabilityConnections();
147
150
  const approvals = _optionalChain([inventory, 'access', _3 => _3.approvals, 'optionalAccess', _4 => _4.length]) ? inventory.approvals.map(
@@ -291,7 +294,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
291
294
  }
292
295
  function registerLegacyAvailabilityCalendarsCommand(parent, hidden = false) {
293
296
  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) => {
294
- const page = await new (0, _chunkOOFYQCNUjs.DeeplineClient)().listAvailabilityCalendars(
297
+ const page = await new (0, _chunkS4MDYDCFjs.DeeplineClient)().listAvailabilityCalendars(
295
298
  options.cursor
296
299
  );
297
300
  printIntegrationResult(page, options.json, [
@@ -312,12 +315,29 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
312
315
  "preset",
313
316
  "scopes",
314
317
  "optionalScopes",
315
- "expectedConnectionId"
318
+ "expectedConnectionId",
319
+ "managed"
316
320
  ])
321
+ ).addOption(
322
+ new (0, _commander.Option)(
323
+ "--managed",
324
+ "Connect with a Deepline-managed key instead of your own (Lusha)"
325
+ ).conflicts(["credentialsFile", "oauth"])
326
+ ).option(
327
+ "--accept-terms <version>",
328
+ "With --managed: accept this version of the provider's terms"
329
+ ).option("--company-domain <domain>", "With --managed: company domain").option("--company-legal-name <name>", "With --managed: company legal name").option(
330
+ "--company-country <code>",
331
+ "With --managed: two-letter ISO country code"
317
332
  ).option(
318
333
  "--credentials-file <path>",
319
334
  "JSON object of credential field names and string values; keep this file private"
320
- ).option("--oauth", "Return an OAuth authorization URL").addOption(new (0, _commander.Option)("--expected-connection-id <id>").hideHelp()).option("--preset <id>", "Server-defined access preset (HubSpot only)").option("--scopes <scopes>", "Comma-separated OAuth scopes").option(
335
+ ).option("--oauth", "Return an OAuth authorization URL").addOption(
336
+ new (0, _commander.Option)(
337
+ "--org-default",
338
+ "Write the org default even when a workspace is selected"
339
+ ).conflicts(["link"])
340
+ ).addOption(new (0, _commander.Option)("--expected-connection-id <id>").hideHelp()).option("--preset <id>", "Server-defined access preset (HubSpot only)").option("--scopes <scopes>", "Comma-separated OAuth scopes").option(
321
341
  "--optional-scopes <scopes>",
322
342
  "Comma-separated optional OAuth scopes"
323
343
  ).option(
@@ -325,6 +345,60 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
325
345
  "Print the proposed setup without saving credentials or starting OAuth"
326
346
  ).option("--json", "Print JSON without credential values").action(
327
347
  async (provider, options) => {
348
+ const managedOnlyOptionSet = options.acceptTerms !== void 0 || options.companyDomain !== void 0 || options.companyLegalName !== void 0 || options.companyCountry !== void 0;
349
+ if (managedOnlyOptionSet && !options.managed) {
350
+ throw new Error(
351
+ "--accept-terms and --company-* options require --managed."
352
+ );
353
+ }
354
+ if (options.managed) {
355
+ if (!options.companyDomain || !options.companyLegalName || !options.companyCountry) {
356
+ throw new Error(
357
+ "--managed requires --company-domain, --company-legal-name and --company-country."
358
+ );
359
+ }
360
+ const teamId2 = connectTeamId(options.orgDefault);
361
+ refuseManagedWorkspaceConnect(provider, teamId2);
362
+ if (options.dryRun) {
363
+ printSetupPlan(
364
+ {
365
+ provider,
366
+ action: "connect_managed",
367
+ team_id: teamId2,
368
+ terms_version: _nullishCoalesce(options.acceptTerms, () => ( "not accepted")),
369
+ company_domain: options.companyDomain
370
+ },
371
+ options.json
372
+ );
373
+ return;
374
+ }
375
+ const result2 = await new (0, _chunkS4MDYDCFjs.DeeplineClient)().connectManagedIntegration(
376
+ provider,
377
+ {
378
+ termsVersion: options.acceptTerms,
379
+ company: {
380
+ domain: options.companyDomain,
381
+ legalName: options.companyLegalName,
382
+ country: options.companyCountry
383
+ }
384
+ }
385
+ );
386
+ if (!result2.ok || result2.credential_saved !== true) {
387
+ throw new Error(
388
+ "The API did not confirm the managed connection. Inspect the integration before retrying."
389
+ );
390
+ }
391
+ const confirmation2 = {
392
+ provider,
393
+ credential_saved: true,
394
+ credential_mode: "partner_managed",
395
+ team_id: teamId2
396
+ };
397
+ printIntegrationResult(confirmation2, options.json, [
398
+ `${provider} is connected with a Deepline-managed key for ${describeConnectTarget(teamId2)}. Usage is billed in Deepline credits.`
399
+ ]);
400
+ return;
401
+ }
328
402
  if (options.expectedConnectionId !== void 0 && (!options.expectedConnectionId.trim() || provider !== "google_calendar_availability" || !options.credentialsFile || options.oauth)) {
329
403
  throw new Error(
330
404
  "--expected-connection-id requires Calendar availability and a credentials file."
@@ -335,7 +409,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
335
409
  printSetupPlan({ provider, action: "connect_link" }, options.json);
336
410
  return;
337
411
  }
338
- const link = await new (0, _chunkOOFYQCNUjs.DeeplineClient)().getIntegrationConnectLink(
412
+ const link = await new (0, _chunkS4MDYDCFjs.DeeplineClient)().getIntegrationConnectLink(
339
413
  provider
340
414
  );
341
415
  printIntegrationResult(link, options.json, [link.connect_url]);
@@ -349,11 +423,14 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
349
423
  const splitScopes = (value) => value.split(",").map((scope) => scope.trim()).filter(Boolean);
350
424
  if (options.scopes !== void 0 && splitScopes(options.scopes).length === 0)
351
425
  throw new Error("scopes must contain at least one OAuth scope.");
426
+ const teamId2 = connectTeamId(options.orgDefault);
427
+ refuseMetaWorkspaceConnect(provider, teamId2);
352
428
  if (options.dryRun) {
353
429
  printSetupPlan(
354
430
  {
355
431
  provider,
356
432
  action: "oauth",
433
+ team_id: teamId2,
357
434
  ...options.preset !== void 0 ? { preset: options.preset } : {},
358
435
  ...options.scopes !== void 0 ? { scopes: splitScopes(options.scopes) } : {},
359
436
  ...options.optionalScopes !== void 0 ? { optionalScopes: splitScopes(options.optionalScopes) } : {}
@@ -362,22 +439,31 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
362
439
  );
363
440
  return;
364
441
  }
365
- const result2 = await new (0, _chunkOOFYQCNUjs.DeeplineClient)().startIntegrationOAuth(
442
+ const result2 = await new (0, _chunkS4MDYDCFjs.DeeplineClient)().startIntegrationOAuth(
366
443
  provider,
367
444
  {
368
445
  ...options.preset !== void 0 ? { preset: options.preset } : {},
369
446
  ...options.scopes !== void 0 ? { scopes: splitScopes(options.scopes) } : {},
370
- ...options.optionalScopes !== void 0 ? { optionalScopes: splitScopes(options.optionalScopes) } : {}
447
+ ...options.optionalScopes !== void 0 ? { optionalScopes: splitScopes(options.optionalScopes) } : {},
448
+ teamId: teamId2
371
449
  }
372
450
  );
451
+ const confirmed2 = assertConnectTarget(result2, teamId2);
373
452
  if (!result2.ok || typeof result2.redirect_url !== "string" || !result2.redirect_url)
374
453
  throw new Error(
375
454
  "The API did not return an OAuth authorization URL."
376
455
  );
377
456
  printIntegrationResult(
378
- { provider, redirect_url: result2.redirect_url },
457
+ { provider, redirect_url: result2.redirect_url, team_id: teamId2 },
379
458
  options.json,
380
- [result2.redirect_url]
459
+ [
460
+ result2.redirect_url,
461
+ connectTargetLine(
462
+ `This connects ${provider} for`,
463
+ teamId2,
464
+ confirmed2
465
+ )
466
+ ]
381
467
  );
382
468
  return;
383
469
  }
@@ -385,11 +471,14 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
385
471
  throw new Error(
386
472
  "Use --link for a dashboard link, --credentials-file to save credentials, or --oauth to request access."
387
473
  );
474
+ const teamId = connectTeamId(options.orgDefault);
475
+ refuseMetaWorkspaceConnect(provider, teamId);
388
476
  if (options.dryRun) {
389
477
  printSetupPlan(
390
478
  {
391
479
  provider,
392
480
  action: "save_credentials",
481
+ team_id: teamId,
393
482
  credentials_file: options.credentialsFile,
394
483
  ...options.expectedConnectionId ? { expected_connection_id: options.expectedConnectionId } : {}
395
484
  },
@@ -412,23 +501,69 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
412
501
  "--credentials-file must contain a nonempty JSON object of string credential values."
413
502
  );
414
503
  }
415
- const result = await new (0, _chunkOOFYQCNUjs.DeeplineClient)().setIntegrationCredentials(
504
+ const result = await new (0, _chunkS4MDYDCFjs.DeeplineClient)().setIntegrationCredentials(
416
505
  provider,
417
506
  credentials,
418
- { expectedConnectionId: options.expectedConnectionId }
507
+ { expectedConnectionId: options.expectedConnectionId, teamId }
419
508
  );
420
509
  if (!result.ok || result.credential_saved !== true) {
421
510
  throw new Error(
422
511
  "The API did not confirm that provider credentials were saved. Inspect the integration before retrying."
423
512
  );
424
513
  }
425
- const confirmation = { provider, credential_saved: true };
514
+ const confirmed = assertConnectTarget(result, teamId);
515
+ const confirmation = {
516
+ provider,
517
+ credential_saved: true,
518
+ team_id: teamId
519
+ };
426
520
  printIntegrationResult(confirmation, options.json, [
427
- `Credentials saved for ${provider} in the active org.`
521
+ connectTargetLine(
522
+ `Credentials saved for ${provider} in`,
523
+ teamId,
524
+ confirmed
525
+ )
428
526
  ]);
429
527
  }
430
528
  );
431
529
  }
530
+ function connectTeamId(orgDefault) {
531
+ if (orgDefault) return null;
532
+ try {
533
+ return _nullishCoalesce(_chunkWVS2ITKPjs.resolveConfig.call(void 0, ).workspace, () => ( null));
534
+ } catch (e2) {
535
+ return _optionalChain([process, 'access', _9 => _9.env, 'access', _10 => _10.DEEPLINE_WORKSPACE_ID, 'optionalAccess', _11 => _11.trim, 'call', _12 => _12()]) || null;
536
+ }
537
+ }
538
+ function describeConnectTarget(teamId) {
539
+ return teamId ? `workspace ${teamId} (its own connection; other workspaces are unchanged)` : "the org default (used by every workspace without its own connection)";
540
+ }
541
+ function assertConnectTarget(result, teamId) {
542
+ if (!("team_id" in result)) return false;
543
+ if ((_nullishCoalesce(result.team_id, () => ( null))) !== teamId) {
544
+ throw new Error(
545
+ `The API wrote ${describeConnectTarget(_nullishCoalesce(result.team_id, () => ( null)))}, not ${describeConnectTarget(teamId)}. Inspect the integration before retrying.`
546
+ );
547
+ }
548
+ return true;
549
+ }
550
+ function connectTargetLine(prefix, teamId, confirmed) {
551
+ if (confirmed) return `${prefix} ${describeConnectTarget(teamId)}.`;
552
+ const requested = teamId ? `workspace ${teamId}` : "the org default";
553
+ return `${prefix} ${requested} (requested; this server did not confirm the target).`;
554
+ }
555
+ function refuseMetaWorkspaceConnect(provider, teamId) {
556
+ if (provider !== "meta_audiences" || !teamId) return;
557
+ throw new Error(
558
+ `Meta Audiences connects workspace ${teamId} with a system user token: run \`deepline org workspaces integrations set ${teamId} meta_audiences --api-key-stdin\`, or pass --org-default to connect the org default.`
559
+ );
560
+ }
561
+ function refuseManagedWorkspaceConnect(provider, teamId) {
562
+ if (!teamId) return;
563
+ throw new Error(
564
+ `A Deepline-managed ${provider} key is set up for the whole org, not workspace ${teamId}. Pass --org-default to connect the org default, or --credentials-file to give this workspace its own key.`
565
+ );
566
+ }
432
567
  function printSetupPlan(plan, json) {
433
568
  printIntegrationResult(
434
569
  plan,
@@ -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; }
2
2
 
3
- var _chunkLTJQCMEMjs = require('./chunk-LTJQCMEM.js');
3
+ var _chunkFSAOU4HAjs = require('./chunk-FSAOU4HA.js');
4
4
 
5
5
  // src/cli/feedback-preferences.ts
6
6
 
@@ -57,7 +57,7 @@ function rejectRestrictedFeedback(options) {
57
57
  const code = restriction === "off" ? "FEEDBACK_DISABLED" : "FEEDBACK_APPROVAL_REQUIRED";
58
58
  const message = restriction === "off" ? 'Feedback is in mode "off". Do not ask the user if they want to send feedback. Use --requested only if they explicitly request it without being prompted.' : "Ask the user if they wish to send feedback. If they agree, rerun the send command with --requested. To change the setting, run deepline settings feedback --help. Agents must get user approval before turning feedback on.";
59
59
  if (options.json) {
60
- _chunkLTJQCMEMjs.printCommandEnvelope.call(void 0,
60
+ _chunkFSAOU4HAjs.printCommandEnvelope.call(void 0,
61
61
  { ok: false, code, exitCode: 2, message },
62
62
  { json: true }
63
63
  );
@@ -1,11 +1,11 @@
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 _chunkLQRWLQAQjs = require('./chunk-LQRWLQAQ.js');
3
+ var _chunk6Z7B3IOWjs = require('./chunk-6Z7B3IOW.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunkOPGDVTAQjs = require('./chunk-OPGDVTAQ.js');
8
+ var _chunkH3SQMLHOjs = require('./chunk-H3SQMLHO.js');
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -18,18 +18,18 @@ function usesCliPlayAdmission(command, args) {
18
18
  }
19
19
  async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured", signal) {
20
20
  _optionalChain([signal, 'optionalAccess', _ => _.throwIfAborted, 'call', _2 => _2()]);
21
- if (maintenancePolicy !== "off") _chunkOPGDVTAQjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
- const compatibility = await _chunkLQRWLQAQjs.traceCliSpan.call(void 0,
21
+ if (maintenancePolicy !== "off") _chunkH3SQMLHOjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
+ const compatibility = await _chunk6Z7B3IOWjs.traceCliSpan.call(void 0,
23
23
  "cli.sdk_compatibility",
24
24
  { baseUrl, command: "plays run" },
25
- () => _chunkOPGDVTAQjs.requireSdkCompatibility.call(void 0, baseUrl, {
25
+ () => _chunkH3SQMLHOjs.requireSdkCompatibility.call(void 0, baseUrl, {
26
26
  command: "plays run",
27
27
  persistCache: maintenancePolicy !== "off",
28
28
  signal
29
29
  })
30
30
  );
31
31
  _optionalChain([signal, 'optionalAccess', _3 => _3.throwIfAborted, 'call', _4 => _4()]);
32
- _chunkOPGDVTAQjs.enforceSdkCompatibilityResponse.call(void 0, compatibility, {
32
+ _chunkH3SQMLHOjs.enforceSdkCompatibilityResponse.call(void 0, compatibility, {
33
33
  quietAdvisory: true
34
34
  });
35
35
  }
@@ -3,7 +3,7 @@
3
3
  var _chunkCSPHSNBWjs = require('./chunk-CSPHSNBW.js');
4
4
 
5
5
 
6
- var _chunkV5YGEK5Qjs = require('./chunk-V5YGEK5Q.js');
6
+ var _chunkIS4NFIQYjs = require('./chunk-IS4NFIQY.js');
7
7
 
8
8
 
9
9
  var _chunkMJTVX4QKjs = require('./chunk-MJTVX4QK.js');
@@ -11,7 +11,7 @@ var _chunkMJTVX4QKjs = require('./chunk-MJTVX4QK.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkLTJQCMEMjs = require('./chunk-LTJQCMEM.js');
14
+ var _chunkFSAOU4HAjs = require('./chunk-FSAOU4HA.js');
15
15
 
16
16
 
17
17
  var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
@@ -581,7 +581,7 @@ function parseInputFlagValue(raw) {
581
581
  return raw;
582
582
  }
583
583
  function parsePlayRunOptions(args, initialInput = null) {
584
- const selection = _chunkLTJQCMEMjs.parseJsonFields.call(void 0, args, "run");
584
+ const selection = _chunkFSAOU4HAjs.parseJsonFields.call(void 0, args, "run");
585
585
  args = selection.args;
586
586
  const usage = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and deepline.dataset guidance.";
587
587
  let filePath = null;
@@ -593,7 +593,7 @@ function parsePlayRunOptions(args, initialInput = null) {
593
593
  let revisionSelector = null;
594
594
  const watch = !args.includes("--no-wait");
595
595
  const dryRun = args.includes("--dry-run");
596
- let jsonOutput = dryRun ? _chunkLTJQCMEMjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkLTJQCMEMjs.argsWantJson.call(void 0, args);
596
+ let jsonOutput = dryRun ? _chunkFSAOU4HAjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkFSAOU4HAjs.argsWantJson.call(void 0, args);
597
597
  const fullJson = args.includes("--full");
598
598
  const force = args.includes("--force") || args.includes("--from-start");
599
599
  const forceToolRefresh = args.includes("--force-tool-refresh") || args.includes("--refresh-cache");
@@ -657,7 +657,7 @@ function parsePlayRunOptions(args, initialInput = null) {
657
657
  "--log-level requires one of: debug, info, warn, error."
658
658
  );
659
659
  }
660
- const parsed = _chunkV5YGEK5Qjs.parseLogLevel.call(void 0, value);
660
+ const parsed = _chunkIS4NFIQYjs.parseLogLevel.call(void 0, value);
661
661
  if (!parsed) {
662
662
  throw new Error(
663
663
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -990,7 +990,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
990
990
  const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
991
991
  (arg) => arg === "--log-level" || arg.startsWith("--log-level=")
992
992
  );
993
- let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkV5YGEK5Qjs.parseLogLevel.call(void 0, options.logLevel);
993
+ let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkIS4NFIQYjs.parseLogLevel.call(void 0, options.logLevel);
994
994
  if (!logLevel)
995
995
  throw new Error("--log-level requires one of: debug, info, warn, error.");
996
996
  const debugAlias = options.logs || options.debug === true || inputArgs.some(
@@ -1004,13 +1004,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
1004
1004
  if (debugAlias || debugMapLatency && logLevel === "info")
1005
1005
  logLevel = "debug";
1006
1006
  const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
1007
- const jsonFields = options.json === void 0 ? base.jsonFields : _chunkLTJQCMEMjs.parseJsonFields.call(void 0,
1008
- [...fullJson ? ["--full"] : [], ..._chunkLTJQCMEMjs.jsonFieldArgs.call(void 0, options.json)],
1007
+ const jsonFields = options.json === void 0 ? base.jsonFields : _chunkFSAOU4HAjs.parseJsonFields.call(void 0,
1008
+ [...fullJson ? ["--full"] : [], ..._chunkFSAOU4HAjs.jsonFieldArgs.call(void 0, options.json)],
1009
1009
  "run"
1010
1010
  ).fields;
1011
1011
  const watch = options.wait === false ? false : base.watch;
1012
1012
  const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
1013
- const jsonOutput = dryRun || !watch ? explicitJson || _chunkLTJQCMEMjs.argsWantJson.call(void 0, []) : explicitJson;
1013
+ const jsonOutput = dryRun || !watch ? explicitJson || _chunkFSAOU4HAjs.argsWantJson.call(void 0, []) : explicitJson;
1014
1014
  const verboseLogs = Boolean(
1015
1015
  debugAlias || logLevel === "debug" || debugMapLatency
1016
1016
  );
@@ -1,16 +1,16 @@
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 _chunkV5YGEK5Qjs = require('./chunk-V5YGEK5Q.js');
3
+ var _chunkIS4NFIQYjs = require('./chunk-IS4NFIQY.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkCR7U44AWjs = require('./chunk-CR7U44AW.js');
7
+ var _chunkWVS2ITKPjs = require('./chunk-WVS2ITKP.js');
8
8
 
9
9
  // src/client.ts
10
- var DeeplineClient2 = class extends _chunkV5YGEK5Qjs.DeeplineClient {
10
+ var DeeplineClient2 = class extends _chunkIS4NFIQYjs.DeeplineClient {
11
11
  constructor(options) {
12
- const config = _chunkCR7U44AWjs.resolveConfig.call(void 0, options);
13
- super(config, new (0, _chunkCR7U44AWjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
12
+ const config = _chunkWVS2ITKPjs.resolveConfig.call(void 0, options);
13
+ super(config, new (0, _chunkWVS2ITKPjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
14
14
  }
15
15
  };
16
16
 
@@ -1,9 +1,9 @@
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 _chunkZ75WS3TZjs = require('./chunk-Z75WS3TZ.js');
3
+ var _chunk44HOKKINjs = require('./chunk-44HOKKIN.js');
4
4
 
5
5
 
6
- var _chunkGFETP5X7js = require('./chunk-GFETP5X7.js');
6
+ var _chunkLOF7H5V3js = require('./chunk-LOF7H5V3.js');
7
7
 
8
8
 
9
9
 
@@ -14,16 +14,16 @@ var _chunk6ASDTHENjs = require('./chunk-6ASDTHEN.js');
14
14
  var _chunkLHPYCJNLjs = require('./chunk-LHPYCJNL.js');
15
15
 
16
16
 
17
- var _chunkOOFYQCNUjs = require('./chunk-OOFYQCNU.js');
17
+ var _chunkS4MDYDCFjs = require('./chunk-S4MDYDCF.js');
18
18
 
19
19
 
20
20
 
21
21
 
22
- var _chunkLTJQCMEMjs = require('./chunk-LTJQCMEM.js');
22
+ var _chunkFSAOU4HAjs = require('./chunk-FSAOU4HA.js');
23
23
 
24
24
 
25
25
 
26
- var _chunkCR7U44AWjs = require('./chunk-CR7U44AW.js');
26
+ var _chunkWVS2ITKPjs = require('./chunk-WVS2ITKP.js');
27
27
 
28
28
  // src/cli/commands/describe.ts
29
29
  var _fs = require('fs');
@@ -32,14 +32,14 @@ var _path = require('path');
32
32
  // src/cli/doc-read-reporting.ts
33
33
  var REPORT_TIMEOUT_MS = 1e3;
34
34
  async function reportDocRead(docId) {
35
- if (_chunkLTJQCMEMjs.isFailureReportingDisabled.call(void 0, )) return;
35
+ if (_chunkFSAOU4HAjs.isFailureReportingDisabled.call(void 0, )) return;
36
36
  try {
37
- const baseUrl = _chunkCR7U44AWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
38
- const apiKey = _chunkCR7U44AWjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
37
+ const baseUrl = _chunkWVS2ITKPjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
38
+ const apiKey = _chunkWVS2ITKPjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
39
39
  if (!apiKey) return;
40
40
  await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
41
41
  method: "POST",
42
- headers: _chunkLTJQCMEMjs.failureReportHeaders.call(void 0, apiKey),
42
+ headers: _chunkFSAOU4HAjs.failureReportHeaders.call(void 0, apiKey),
43
43
  body: JSON.stringify({ doc_id: docId }),
44
44
  signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
45
45
  });
@@ -52,16 +52,16 @@ function nothingNamed(name) {
52
52
  return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
53
53
  }
54
54
  function findNamed2(name, options) {
55
- return _chunk6ASDTHENjs.findNamed.call(void 0, name, options, _chunk6ASDTHENjs.describeLookupsFor.call(void 0, new (0, _chunkOOFYQCNUjs.DeeplineClient)()));
55
+ return _chunk6ASDTHENjs.findNamed.call(void 0, name, options, _chunk6ASDTHENjs.describeLookupsFor.call(void 0, new (0, _chunkS4MDYDCFjs.DeeplineClient)()));
56
56
  }
57
57
  async function describeAnything(name, options, onMissing) {
58
- const client = new (0, _chunkOOFYQCNUjs.DeeplineClient)();
58
+ const client = new (0, _chunkS4MDYDCFjs.DeeplineClient)();
59
59
  const lookups = _chunk6ASDTHENjs.describeLookupsFor.call(void 0, client);
60
60
  const outcome = await _chunk6ASDTHENjs.describeName.call(void 0, name, options, {
61
61
  ...lookups,
62
62
  // `tools describe` has already fetched the tool for its compatibility check.
63
63
  tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
64
- seedStarterScript: _chunkZ75WS3TZjs.seedToolListScript
64
+ seedStarterScript: _chunk44HOKKINjs.seedToolListScript
65
65
  });
66
66
  if (outcome.status === "missing") {
67
67
  if (onMissing) return onMissing();
@@ -90,18 +90,18 @@ function deliver(envelope, lines, { json, out }) {
90
90
  ` : text;
91
91
  _fs.writeFileSync.call(void 0, path, content);
92
92
  const bytes = Buffer.byteLength(content);
93
- _chunkLTJQCMEMjs.printCommandEnvelope.call(void 0,
93
+ _chunkFSAOU4HAjs.printCommandEnvelope.call(void 0,
94
94
  { path, bytes },
95
95
  { json, text: `Wrote ${path} (${bytes} bytes)
96
96
  ` }
97
97
  );
98
98
  return 0;
99
99
  }
100
- _chunkLTJQCMEMjs.printCommandEnvelope.call(void 0, envelope, { json, text });
100
+ _chunkFSAOU4HAjs.printCommandEnvelope.call(void 0, envelope, { json, text });
101
101
  return 0;
102
102
  }
103
103
  function registerDescribeCommand(program) {
104
- _chunkGFETP5X7js.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
104
+ _chunkLOF7H5V3js.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
105
105
  "Describe anything search returns: a tool, monitor type, or play."
106
106
  ).addHelpText(
107
107
  "after",
@@ -4,22 +4,22 @@ import {
4
4
  resolveUpdatePlan,
5
5
  runAutomaticUpdatePlan,
6
6
  shouldRunCliAutoUpdate
7
- } from "./chunk-6TLCP356.mjs";
7
+ } from "./chunk-YLZ63U7S.mjs";
8
8
  import {
9
9
  isCiEnvironment,
10
10
  resolveShellSpawn,
11
11
  syncSdkSkillsIfNeeded
12
- } from "./chunk-AUXDJJYK.mjs";
12
+ } from "./chunk-YTYDKSK7.mjs";
13
13
  import {
14
14
  addJsonNotice,
15
15
  isJsonOutputMode
16
- } from "./chunk-3TJKNRHY.mjs";
16
+ } from "./chunk-P2LVKWU6.mjs";
17
17
  import {
18
18
  resolveApiKeyForBaseUrl
19
- } from "./chunk-ZPD6SPP2.mjs";
19
+ } from "./chunk-D3BJ2KZX.mjs";
20
20
  import {
21
21
  SDK_VERSION
22
- } from "./chunk-OD4LINNE.mjs";
22
+ } from "./chunk-IEOIGU5A.mjs";
23
23
 
24
24
  // src/cli/compatibility-catalog.ts
25
25
  var readers = /* @__PURE__ */ new WeakMap();
@@ -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 _chunkV5YGEK5Qjs = require('./chunk-V5YGEK5Q.js');
3
+ var _chunkIS4NFIQYjs = require('./chunk-IS4NFIQY.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkCR7U44AWjs = require('./chunk-CR7U44AW.js');
7
+ var _chunkWVS2ITKPjs = require('./chunk-WVS2ITKP.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 = _chunkCR7U44AWjs.resolveConfig.call(void 0, options);
141
- return new (0, _chunkV5YGEK5Qjs.PlayClient)(
142
- new (0, _chunkCR7U44AWjs.HttpClient)(config),
140
+ const config = _chunkWVS2ITKPjs.resolveConfig.call(void 0, options);
141
+ return new (0, _chunkIS4NFIQYjs.PlayClient)(
142
+ new (0, _chunkWVS2ITKPjs.HttpClient)(config),
143
143
  _nullishCoalesce(config.environment, () => ( process.env))
144
144
  );
145
145
  }
@@ -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.567",
52
+ version: "0.3.569",
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."