deepline 0.3.564 → 0.3.565

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 +51 -0
  2. package/dist/bundling-sources/sdk/src/connector-sync.ts +241 -0
  3. package/dist/bundling-sources/sdk/src/index.ts +10 -0
  4. package/dist/bundling-sources/sdk/src/integrations.ts +7 -0
  5. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  6. package/dist/cli/auth-AN2KCWG2.js +44 -0
  7. package/dist/cli/{auth-PXZ7JZUT.mjs → auth-YKIUCQ2Q.mjs} +5 -5
  8. package/dist/cli/{billing-AMYFMDZL.mjs → billing-HK23QHAA.mjs} +9 -9
  9. package/dist/cli/{billing-OY2ZN5XJ.js → billing-NIGAUQJF.js} +102 -102
  10. package/dist/cli/{chunk-ZOITMXVO.mjs → chunk-2US3VJXX.mjs} +1 -1
  11. package/dist/cli/{chunk-ZJ23RI3B.mjs → chunk-4ENCU2BI.mjs} +2 -2
  12. package/dist/cli/{chunk-4JQ6MHE7.js → chunk-4VKDPTHF.js} +4 -4
  13. package/dist/cli/{chunk-KBGP4CS5.js → chunk-5HV2CNXA.js} +10 -10
  14. package/dist/cli/{chunk-WDXXHTIF.js → chunk-6HCJQ23O.js} +23 -23
  15. package/dist/cli/{chunk-OCLHNDVN.mjs → chunk-A3EI3A3Q.mjs} +5 -5
  16. package/dist/cli/{chunk-RK5EKJAT.mjs → chunk-AAOXS3XM.mjs} +152 -2
  17. package/dist/cli/{chunk-56P2BEVI.mjs → chunk-AH2CBDQJ.mjs} +2 -2
  18. package/dist/cli/{chunk-DHZOC2QX.mjs → chunk-B2FQZ7P4.mjs} +2 -2
  19. package/dist/cli/{chunk-GWTFA5GD.js → chunk-B4FBMREO.js} +3 -3
  20. package/dist/cli/{chunk-YIDXJD5L.mjs → chunk-BCEXSQPK.mjs} +1 -1
  21. package/dist/cli/{chunk-R5555CB5.js → chunk-BDNVUPDX.js} +2 -2
  22. package/dist/cli/{search-output-AXVUC3TF.js → chunk-C5IA2OYE.js} +2 -199
  23. package/dist/cli/{chunk-XVYU3J2J.js → chunk-E73BRM5N.js} +13 -13
  24. package/dist/cli/{chunk-V2GHSOQB.js → chunk-EPQIA32E.js} +100 -100
  25. package/dist/cli/{chunk-QQTZ6KG4.mjs → chunk-EXOC3TLA.mjs} +4 -4
  26. package/dist/cli/{chunk-MY45K7SA.mjs → chunk-F4ZLUDKW.mjs} +5 -5
  27. package/dist/cli/{chunk-YMQOTCLU.js → chunk-FEWBYUUF.js} +2 -2
  28. package/dist/cli/{chunk-2SKEXMFV.js → chunk-FWH6QYTE.js} +5 -5
  29. package/dist/cli/{chunk-IW3N7ARM.js → chunk-FXRSHBRP.js} +159 -9
  30. package/dist/cli/{chunk-4SV43Z64.js → chunk-GE62FFN6.js} +3 -3
  31. package/dist/cli/{chunk-2ISK6CUL.mjs → chunk-GTX2RMQG.mjs} +11 -11
  32. package/dist/cli/{chunk-RBTOZO5M.js → chunk-H3NH5RJ6.js} +41 -41
  33. package/dist/cli/{chunk-TK6YKQ45.mjs → chunk-H4LHB6ES.mjs} +1 -1
  34. package/dist/cli/{chunk-UWX4TTJU.mjs → chunk-IFZA4IGI.mjs} +2 -2
  35. package/dist/cli/{chunk-XWDCKDUP.js → chunk-IKA37N6Y.js} +26 -26
  36. package/dist/cli/{chunk-WSEMXB7X.js → chunk-J5QAOURJ.js} +20 -20
  37. package/dist/cli/{chunk-4NNNJLAZ.mjs → chunk-JLXLCD6F.mjs} +2 -2
  38. package/dist/cli/{chunk-CXN574UU.mjs → chunk-K6RPKBD7.mjs} +1 -1
  39. package/dist/cli/{chunk-VACBPVIR.mjs → chunk-KOMEYB7H.mjs} +104 -0
  40. package/dist/cli/{chunk-655PNNU7.mjs → chunk-LHL6VWJE.mjs} +1 -1
  41. package/dist/cli/{chunk-TVF7XVPN.mjs → chunk-LKVWMLWI.mjs} +1 -1
  42. package/dist/cli/{chunk-QHBYLHOG.mjs → chunk-LOV5JGWO.mjs} +2 -2
  43. package/dist/cli/{search-output-N44NPUN6.mjs → chunk-MI5Q5FOD.mjs} +1 -198
  44. package/dist/cli/{chunk-7NSHH3NB.js → chunk-NH3LVGVR.js} +5 -5
  45. package/dist/cli/{chunk-DTTMFSNG.mjs → chunk-NOSGGCJ3.mjs} +1 -1
  46. package/dist/cli/{chunk-5CNHEUGJ.js → chunk-OEVCKW2M.js} +104 -0
  47. package/dist/cli/{chunk-HPXN5QZZ.js → chunk-OIDETCX2.js} +20 -20
  48. package/dist/cli/{chunk-Y2FZJRRM.js → chunk-P6BVT2OW.js} +2 -2
  49. package/dist/cli/{chunk-I4XWKMGR.js → chunk-PQEWFVJ3.js} +15 -15
  50. package/dist/cli/{chunk-DYTTZHYX.mjs → chunk-RULYYQB4.mjs} +5 -5
  51. package/dist/cli/{chunk-7DU4VODD.mjs → chunk-SEWLXJHM.mjs} +2 -2
  52. package/dist/cli/{chunk-RKG2E2JF.js → chunk-SL3IRGAW.js} +9 -9
  53. package/dist/cli/{chunk-I2GVGCMM.js → chunk-TCJZQRX6.js} +12 -12
  54. package/dist/cli/{chunk-WXB7PU3O.mjs → chunk-U7F4ODVQ.mjs} +1 -1
  55. package/dist/cli/{chunk-JVSHMUGE.mjs → chunk-UTQ6LQWG.mjs} +3 -3
  56. package/dist/cli/{chunk-KR76WIOX.js → chunk-UWMK5DLS.js} +1 -1
  57. package/dist/cli/{chunk-HEWVHSNN.mjs → chunk-V2TC2ARE.mjs} +4 -4
  58. package/dist/cli/{chunk-BRQVKZWJ.js → chunk-WPVJV23H.js} +7 -7
  59. package/dist/cli/{chunk-V2SNCH5X.js → chunk-XNOUOO6G.js} +6 -6
  60. package/dist/cli/{chunk-RW6PFYT5.mjs → chunk-YD5BBYS2.mjs} +5 -5
  61. package/dist/cli/{chunk-2PMHEUED.mjs → chunk-YGVLCJNY.mjs} +3 -3
  62. package/dist/cli/{chunk-XP6ALUAZ.mjs → chunk-YIKEVZUQ.mjs} +2 -2
  63. package/dist/cli/{chunk-HGGIWRA5.js → chunk-ZEKRYFMN.js} +48 -48
  64. package/dist/cli/{chunk-ZZW5A4HZ.js → chunk-ZIKVPGYC.js} +5 -5
  65. package/dist/cli/{chunk-HXZSXPT2.js → chunk-ZTHMJ4SK.js} +53 -53
  66. package/dist/cli/command-docs.js +2 -2
  67. package/dist/cli/command-docs.mjs +1 -1
  68. package/dist/cli/concurrent-runs-help-SKAAESKY.js +22 -0
  69. package/dist/cli/{concurrent-runs-help-5GPKNDAY.mjs → concurrent-runs-help-WD2EUKO7.mjs} +6 -6
  70. package/dist/cli/{csv-ARPN6J6K.mjs → csv-RM3FOTS5.mjs} +4 -4
  71. package/dist/cli/{csv-X3FHV56H.js → csv-UI63ZOMD.js} +13 -13
  72. package/dist/cli/{db-2HWSS3MA.mjs → db-RIJBJCT7.mjs} +6 -6
  73. package/dist/cli/{db-WINZJRWC.js → db-V5SWE3WN.js} +27 -27
  74. package/dist/cli/{describe-333JCD22.mjs → describe-HZC4GOLO.mjs} +18 -18
  75. package/dist/cli/describe-RRWLYUQS.js +50 -0
  76. package/dist/cli/describe-core.d.mts +2 -2
  77. package/dist/cli/describe-core.d.ts +2 -2
  78. package/dist/cli/{executions-UHZHVQLO.js → executions-2Q23JJSI.js} +8 -8
  79. package/dist/cli/{executions-JYYXIRE6.mjs → executions-XRH267DY.mjs} +6 -6
  80. package/dist/cli/{feedback-6G4SDI7M.js → feedback-BEHH4KGB.js} +14 -14
  81. package/dist/cli/{feedback-KNGQ4VMG.mjs → feedback-Y5MWMTQ2.mjs} +6 -6
  82. package/dist/cli/{git-DREIWOYN.mjs → git-644DZQKA.mjs} +5 -5
  83. package/dist/cli/git-OEHB7UQH.js +26 -0
  84. package/dist/cli/index.js +147 -147
  85. package/dist/cli/index.mjs +46 -46
  86. package/dist/cli/integrations-ILXWYGTO.js +284 -0
  87. package/dist/cli/integrations-PMXZ7V6Y.mjs +284 -0
  88. package/dist/cli/{legacy-noops-7LZ2HNLB.js → legacy-noops-USLUHQWW.js} +9 -9
  89. package/dist/cli/{legacy-noops-FSL5Y4TO.mjs → legacy-noops-YUG2HVGQ.mjs} +6 -6
  90. package/dist/cli/{mcp-TAVIRUQC.js → mcp-DFLBEEWG.js} +24 -24
  91. package/dist/cli/{mcp-WDJV3OCV.mjs → mcp-X63UPZS7.mjs} +4 -4
  92. package/dist/cli/{monitors-HGT2RVR5.js → monitors-POG6YUZ4.js} +100 -100
  93. package/dist/cli/{monitors-L5FSJSVD.mjs → monitors-QGI7QH4K.mjs} +7 -7
  94. package/dist/cli/{org-4LNYSIEM.js → org-E3NIDN32.js} +121 -121
  95. package/dist/cli/{org-J5DJCLTU.mjs → org-VAJL4BCS.mjs} +6 -6
  96. package/dist/cli/{outcomes-5DZ5EZ5Q.mjs → outcomes-FOE35FHM.mjs} +6 -6
  97. package/dist/cli/{outcomes-4QO264GU.js → outcomes-SCQFFBXS.js} +14 -14
  98. package/dist/cli/{play-SETNQCBB.mjs → play-7N4Z2LEH.mjs} +19 -19
  99. package/dist/cli/{play-FZY7NZAM.js → play-BGK7PDXO.js} +324 -324
  100. package/dist/cli/{providers-PIS6IQVA.mjs → providers-KDI3B22S.mjs} +6 -6
  101. package/dist/cli/{providers-754HLYAW.js → providers-OK2ES375.js} +9 -9
  102. package/dist/cli/{quickstart-2TIUCHQF.js → quickstart-HOHFIFVW.js} +6 -6
  103. package/dist/cli/{quickstart-5P4NYWZK.mjs → quickstart-LHJF7YCP.mjs} +4 -4
  104. package/dist/cli/{run-WAN4VZMS.mjs → run-BQIDPU5J.mjs} +23 -23
  105. package/dist/cli/{run-OQNK7G3I.js → run-K45RGJP4.js} +44 -44
  106. package/dist/cli/{search-PTX7IMBB.mjs → search-PD3OAWO3.mjs} +7 -7
  107. package/dist/cli/search-QCFLRPCX.js +32 -0
  108. package/dist/cli/search-output-FVT2FPUN.mjs +205 -0
  109. package/dist/cli/search-output-P2JVWNCK.js +205 -0
  110. package/dist/cli/{secrets-ZODIPUMI.mjs → secrets-4MCBJUGL.mjs} +6 -6
  111. package/dist/cli/{secrets-32WRPZB2.js → secrets-LDCXYN33.js} +15 -15
  112. package/dist/cli/{sessions-JRIS3JMT.mjs → sessions-36VI33IL.mjs} +6 -6
  113. package/dist/cli/sessions-WTQ6QNAU.js +23 -0
  114. package/dist/cli/{settings-YIZUG6T3.js → settings-3J4FUQPF.js} +85 -85
  115. package/dist/cli/{settings-OI3OHCD5.mjs → settings-D6L7S4ZC.mjs} +12 -12
  116. package/dist/cli/{setup-AF3I4UPE.js → setup-L6VH3OR4.js} +49 -49
  117. package/dist/cli/{setup-4QQ33WUA.mjs → setup-PBQ773AV.mjs} +9 -9
  118. package/dist/cli/skills-PENWR7KI.js +37 -0
  119. package/dist/cli/{skills-EITRSX56.mjs → skills-ZRTREJY2.mjs} +7 -7
  120. package/dist/cli/{tools-CMOLGIDR.mjs → tools-OAHCQUQB.mjs} +17 -17
  121. package/dist/cli/tools-TIN7MRLX.js +57 -0
  122. package/dist/cli/update-4TIZS6WV.js +37 -0
  123. package/dist/cli/{update-PGEARBAI.mjs → update-ZM4LSW5L.mjs} +9 -9
  124. package/dist/cli/{views-KFLXOZ5N.js → views-F4MEME43.js} +21 -21
  125. package/dist/cli/{views-2H77STII.mjs → views-W6PVUSE3.mjs} +6 -6
  126. package/dist/cli/{workflow-HCEMVZAZ.js → workflow-37V7F5I4.js} +17 -17
  127. package/dist/cli/{workflow-XWMAYWVX.mjs → workflow-7E2QYAIY.mjs} +7 -7
  128. package/dist/{client-CnphYDTe.d.mts → client-B5cSKEi4.d.mts} +1 -1
  129. package/dist/{client-core-DQOTt3yV.d.mts → client-core-BP19BoBb.d.mts} +107 -2
  130. package/dist/{client-core-Yad6-K7-.d.ts → client-core-Deqov12F.d.ts} +107 -2
  131. package/dist/{client-BSxuaObS.d.ts → client-vUZGmXT9.d.ts} +1 -1
  132. package/dist/index.d.mts +3 -3
  133. package/dist/index.d.ts +3 -3
  134. package/dist/index.js +9 -9
  135. package/dist/index.mjs +6 -6
  136. package/dist/install-integrity.json +121 -118
  137. package/dist/plays/play-description.d.mts +1 -1
  138. package/dist/plays/play-description.d.ts +1 -1
  139. package/dist/plays/run-request.d.mts +1 -1
  140. package/dist/plays/run-request.d.ts +1 -1
  141. package/dist/release.d.mts +1 -1
  142. package/dist/release.d.ts +1 -1
  143. package/dist/release.js +2 -2
  144. package/dist/release.mjs +1 -1
  145. package/dist/server.d.mts +2 -2
  146. package/dist/server.d.ts +2 -2
  147. package/dist/server.js +5 -5
  148. package/dist/server.mjs +3 -3
  149. package/package.json +1 -1
  150. package/dist/cli/auth-645UXOAZ.js +0 -44
  151. package/dist/cli/concurrent-runs-help-QKZXIMSW.js +0 -22
  152. package/dist/cli/describe-6TJYCPFQ.js +0 -50
  153. package/dist/cli/git-TQNP4MAD.js +0 -26
  154. package/dist/cli/integrations-UY3T3ZHA.mjs +0 -129
  155. package/dist/cli/integrations-V6EO6JAM.js +0 -129
  156. package/dist/cli/search-VXKJDQA5.js +0 -32
  157. package/dist/cli/sessions-MW3SUF7R.js +0 -23
  158. package/dist/cli/skills-ECMGSQM4.js +0 -37
  159. package/dist/cli/tools-QTTCIEQM.js +0 -57
  160. package/dist/cli/update-N3YQGALD.js +0 -37
@@ -3,16 +3,16 @@ import {
3
3
  } from "./chunk-5AEDYVB6.mjs";
4
4
  import {
5
5
  DeeplineClient
6
- } from "./chunk-UWX4TTJU.mjs";
6
+ } from "./chunk-IFZA4IGI.mjs";
7
7
  import {
8
8
  errorToJsonPayload,
9
9
  printCommandEnvelope,
10
10
  resolveSdkCliFailureExitCode
11
- } from "./chunk-4NNNJLAZ.mjs";
11
+ } from "./chunk-JLXLCD6F.mjs";
12
12
  import {
13
13
  resolveConfig,
14
14
  sdkCliStateDirPath
15
- } from "./chunk-ZOITMXVO.mjs";
15
+ } from "./chunk-2US3VJXX.mjs";
16
16
 
17
17
  // src/cli/commands/search.ts
18
18
  import { Option } from "commander";
@@ -134,7 +134,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
134
134
  }
135
135
  const client = new DeeplineClient();
136
136
  const json = options.json === true;
137
- const renderer = json ? void 0 : await import("./search-output-N44NPUN6.mjs");
137
+ const renderer = json ? void 0 : await import("./search-output-FVT2FPUN.mjs");
138
138
  const searches = [];
139
139
  const chunks = [];
140
140
  const refs = /* @__PURE__ */ new Map();
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  getActiveCliProgress
3
- } from "./chunk-CXN574UU.mjs";
3
+ } from "./chunk-K6RPKBD7.mjs";
4
4
  import {
5
5
  maybeReportAutomaticSkillsSyncFailure
6
- } from "./chunk-4NNNJLAZ.mjs";
6
+ } from "./chunk-JLXLCD6F.mjs";
7
7
  import {
8
8
  DEFAULT_MAX_RETRIES,
9
9
  DEFAULT_SKILL_AGENTS,
@@ -18,20 +18,20 @@ import {
18
18
  sdkCliStateDirPath,
19
19
  skillsAgentPathSegment,
20
20
  writeSdkSkillsLocalVersion
21
- } from "./chunk-ZOITMXVO.mjs";
21
+ } from "./chunk-2US3VJXX.mjs";
22
22
  import {
23
23
  SDK_API_CONTRACT,
24
24
  SDK_API_MAJOR,
25
25
  SDK_VERSION,
26
26
  deploymentProtectionHeaders,
27
27
  detectAgentRuntime
28
- } from "./chunk-TVF7XVPN.mjs";
28
+ } from "./chunk-LKVWMLWI.mjs";
29
29
  import {
30
30
  DeeplineError
31
31
  } from "./chunk-Z3A2S3QM.mjs";
32
32
  import {
33
33
  SDK_RELEASE
34
- } from "./chunk-TK6YKQ45.mjs";
34
+ } from "./chunk-H4LHB6ES.mjs";
35
35
 
36
36
  // src/compat.ts
37
37
  import { randomUUID } from "crypto";
@@ -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 _chunkWSEMXB7Xjs = require('./chunk-WSEMXB7X.js');
3
+ var _chunkJ5QAOURJjs = require('./chunk-J5QAOURJ.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
- _chunkWSEMXB7Xjs.printCommandEnvelope.call(void 0,
60
+ _chunkJ5QAOURJjs.printCommandEnvelope.call(void 0,
61
61
  { ok: false, code, exitCode: 2, message },
62
62
  { json: true }
63
63
  );
@@ -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 _chunkIW3N7ARMjs = require('./chunk-IW3N7ARM.js');
3
+ var _chunkFXRSHBRPjs = require('./chunk-FXRSHBRP.js');
4
4
 
5
5
 
6
6
 
7
- var _chunk4SV43Z64js = require('./chunk-4SV43Z64.js');
7
+ var _chunkGE62FFN6js = require('./chunk-GE62FFN6.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 = _chunk4SV43Z64js.resolveConfig.call(void 0, options);
141
- return new (0, _chunkIW3N7ARMjs.PlayClient)(
142
- new (0, _chunk4SV43Z64js.HttpClient)(config),
140
+ const config = _chunkGE62FFN6js.resolveConfig.call(void 0, options);
141
+ return new (0, _chunkFXRSHBRPjs.PlayClient)(
142
+ new (0, _chunkGE62FFN6js.HttpClient)(config),
143
143
  _nullishCoalesce(config.environment, () => ( process.env))
144
144
  );
145
145
  }
@@ -37,7 +37,7 @@ var _chunkPMH4GLMDjs = require('./chunk-PMH4GLMD.js');
37
37
 
38
38
 
39
39
 
40
- var _chunk4JQ6MHE7js = require('./chunk-4JQ6MHE7.js');
40
+ var _chunk4VKDPTHFjs = require('./chunk-4VKDPTHF.js');
41
41
 
42
42
 
43
43
  var _chunk6VLFQZK6js = require('./chunk-6VLFQZK6.js');
@@ -48,6 +48,123 @@ var _chunk6VLFQZK6js = require('./chunk-6VLFQZK6.js');
48
48
 
49
49
  var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
50
50
 
51
+ // src/connector-sync.ts
52
+ async function readObjects(client, provider) {
53
+ let page = await client.getConnectorSyncObjectsPage(provider);
54
+ const objects = [...page.objects];
55
+ while (page.next_cursor) {
56
+ const cursor = page.next_cursor;
57
+ page = await client.getConnectorSyncObjectsPage(provider, { cursor });
58
+ if (page.next_cursor !== null && page.next_cursor <= cursor)
59
+ throw new (0, _chunkLFQJW4S2js.DeeplineError)(
60
+ `The ${provider} object list did not advance past cursor ${cursor}.`,
61
+ 502,
62
+ "CURSOR_NOT_ADVANCING"
63
+ );
64
+ objects.push(...page.objects);
65
+ }
66
+ return { customer_db: page.customer_db, summary: page.summary, objects };
67
+ }
68
+ async function readSummary(client, provider) {
69
+ const statuses = await client.getConnectorSyncStatuses();
70
+ const summary = statuses.providers.find((row) => row.provider === provider);
71
+ if (!summary)
72
+ throw new (0, _chunkLFQJW4S2js.DeeplineError)(
73
+ `${provider} has no managed sync. Run deepline integrations sync status.`,
74
+ 404,
75
+ "NOT_FOUND"
76
+ );
77
+ return summary;
78
+ }
79
+ async function requireKnownObjects(client, provider, objectTypes) {
80
+ if (objectTypes.length === 0)
81
+ throw new (0, _chunkLFQJW4S2js.DeeplineError)(
82
+ "Name at least one object, for example contacts.",
83
+ 400,
84
+ "INVALID_ARGUMENT"
85
+ );
86
+ const detail = await readObjects(client, provider);
87
+ if (detail.customer_db !== "active")
88
+ throw new (0, _chunkLFQJW4S2js.DeeplineError)(
89
+ "The Customer DB is unavailable, so its synced objects cannot be changed.",
90
+ 409,
91
+ "CUSTOMER_DB_UNAVAILABLE"
92
+ );
93
+ const known = new Set(detail.objects.map((row) => row.object_type));
94
+ const unknown = objectTypes.filter((objectType) => !known.has(objectType));
95
+ if (unknown.length > 0)
96
+ throw new (0, _chunkLFQJW4S2js.DeeplineError)(
97
+ `${provider} does not sync ${unknown.join(", ")}. Synced objects: ${[...known].join(", ") || "none"}. Run deepline integrations sync objects ${provider}.`,
98
+ 404,
99
+ "NOT_FOUND"
100
+ );
101
+ }
102
+ async function withResultingState(client, provider, change) {
103
+ try {
104
+ return { change, status: await readSummary(client, provider) };
105
+ } catch (error) {
106
+ return {
107
+ change,
108
+ status: null,
109
+ status_error: error instanceof Error ? error.message : String(error)
110
+ };
111
+ }
112
+ }
113
+ function createConnectorSyncNamespace(client) {
114
+ const action = async (provider, body) => withResultingState(
115
+ client,
116
+ provider,
117
+ await client.runConnectorSyncAction(provider, body)
118
+ );
119
+ return {
120
+ /** Every managed provider's sync state (from Convex only). */
121
+ status: () => client.getConnectorSyncStatuses(),
122
+ /** One provider's sync state (from Convex only). */
123
+ get: (provider) => readSummary(client, provider),
124
+ /** One provider's sync state and every synced object (Customer DB). */
125
+ objects: (provider) => readObjects(client, provider),
126
+ /** Turn a provider's sync on or off. */
127
+ set: async (provider, enabled) => withResultingState(
128
+ client,
129
+ provider,
130
+ await client.setConnectorSync(provider, enabled)
131
+ ),
132
+ pause: async (provider, objectTypes) => {
133
+ await requireKnownObjects(client, provider, objectTypes);
134
+ return action(provider, {
135
+ action: "pause_all",
136
+ object_types: [...objectTypes]
137
+ });
138
+ },
139
+ resume: async (provider, objectTypes) => {
140
+ await requireKnownObjects(client, provider, objectTypes);
141
+ return action(provider, {
142
+ action: "resume_all",
143
+ object_types: [...objectTypes]
144
+ });
145
+ },
146
+ /**
147
+ * Queue a sync now for every synced object, or only the named ones. As on
148
+ * the sync page, a paused object runs once and stays paused.
149
+ */
150
+ run: async (provider, objectTypes = []) => {
151
+ const summary = await readSummary(client, provider);
152
+ if (!summary.sync_enabled)
153
+ throw new (0, _chunkLFQJW4S2js.DeeplineError)(
154
+ `Sync is off for ${provider}. Turn it on with deepline integrations sync on ${provider}.`,
155
+ 409,
156
+ "SYNC_OFF"
157
+ );
158
+ if (objectTypes.length > 0)
159
+ await requireKnownObjects(client, provider, objectTypes);
160
+ return action(provider, {
161
+ action: "run_all",
162
+ ...objectTypes.length > 0 ? { object_types: [...objectTypes] } : {}
163
+ });
164
+ }
165
+ };
166
+ }
167
+
51
168
  // src/integrations.ts
52
169
  var CALENDAR_PROVIDER = "google_calendar_availability";
53
170
  var AD_ACCOUNT_DISCOVERY_PROVIDERS = [
@@ -183,7 +300,9 @@ function createIntegrationsNamespace(client) {
183
300
  disconnect: (name, options = {}) => changeConnection(client, "disconnect", name, options),
184
301
  delete: (name, options = {}) => changeConnection(client, "delete", name, options),
185
302
  verify: (domain, options) => verifyWorkspace(client, domain, options),
186
- members: (provider, options = {}) => client.listManagedConnectionMembers(provider, options.cursor)
303
+ members: (provider, options = {}) => client.listManagedConnectionMembers(provider, options.cursor),
304
+ /** CRM connector sync into the Customer DB: state, on/off, objects. */
305
+ sync: createConnectorSyncNamespace(client)
187
306
  };
188
307
  }
189
308
 
@@ -844,7 +963,7 @@ var ToolCalls = class {
844
963
  idempotencyKey,
845
964
  onResponse: (response2) => {
846
965
  lastResponse = null;
847
- atomicToolsSupported = response2.headers.get(_chunk4JQ6MHE7js.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
966
+ atomicToolsSupported = response2.headers.get(_chunk4VKDPTHFjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
848
967
  recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
849
968
  if (_optionalChain([options, 'optionalAccess', _38 => _38.onServerTiming])) {
850
969
  try {
@@ -1231,15 +1350,15 @@ function runtimeSelectionHeaders(runtime, env) {
1231
1350
  }
1232
1351
  const receivers = _optionalChain([env, 'access', _63 => _63.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _64 => _64.trim, 'call', _65 => _65()]);
1233
1352
  return {
1234
- [_chunk4JQ6MHE7js.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1235
- ...receivers ? { [_chunk4JQ6MHE7js.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1353
+ [_chunk4VKDPTHFjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1354
+ ...receivers ? { [_chunk4VKDPTHFjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1236
1355
  };
1237
1356
  }
1238
1357
  function playRunStartHeaders(runtime, env) {
1239
1358
  const headers = runtimeSelectionHeaders(runtime, env);
1240
1359
  const experimentSwitches = _optionalChain([env, 'access', _66 => _66.DEEPLINE_EXPERIMENT_SWITCHES, 'optionalAccess', _67 => _67.trim, 'call', _68 => _68()]);
1241
1360
  if (!experimentSwitches) return headers;
1242
- return { ...headers, [_chunk4JQ6MHE7js.EXPERIMENT_SWITCHES_HEADER]: experimentSwitches };
1361
+ return { ...headers, [_chunk4VKDPTHFjs.EXPERIMENT_SWITCHES_HEADER]: experimentSwitches };
1243
1362
  }
1244
1363
  function normalizeTestPolicyOverrides(value, source) {
1245
1364
  if (value && typeof value === "object" && !Array.isArray(value)) {
@@ -1309,7 +1428,7 @@ var PlayClient = class {
1309
1428
  return _chunkMJTVX4QKjs.startPlayRun.call(void 0,
1310
1429
  this.http,
1311
1430
  resolved.request,
1312
- _optionalChain([options, 'optionalAccess', _76 => _76.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunk4JQ6MHE7js.SDK_API_MAJOR) } : headers,
1431
+ _optionalChain([options, 'optionalAccess', _76 => _76.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunk4VKDPTHFjs.SDK_API_MAJOR) } : headers,
1313
1432
  options
1314
1433
  );
1315
1434
  }
@@ -3427,7 +3546,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
3427
3546
  "RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
3428
3547
  );
3429
3548
  }
3430
- return { [_chunk4JQ6MHE7js.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3549
+ return { [_chunk4VKDPTHFjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3431
3550
  }
3432
3551
  function sleep(ms) {
3433
3552
  return new Promise((resolve) => setTimeout(resolve, ms));
@@ -4363,7 +4482,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
4363
4482
  );
4364
4483
  const headers = _optionalChain([options, 'optionalAccess', _200 => _200.cliAdmission]) ? {
4365
4484
  ...runtimeHeaders,
4366
- "X-Deepline-API-Major": String(_chunk4JQ6MHE7js.SDK_API_MAJOR)
4485
+ "X-Deepline-API-Major": String(_chunk4VKDPTHFjs.SDK_API_MAJOR)
4367
4486
  } : runtimeHeaders;
4368
4487
  const http = this.http;
4369
4488
  let submitted = false;
@@ -5784,6 +5903,37 @@ var DeeplineClient = (_class = class _DeeplineClient {
5784
5903
  const params = new URLSearchParams({ provider });
5785
5904
  return this.http.get(`/api/v2/integrations/balance?${params}`);
5786
5905
  }
5906
+ /** Every managed CRM provider's sync state, as the Integrations list shows it. */
5907
+ async getConnectorSyncStatuses() {
5908
+ return this.http.get("/api/v2/ingestion/sync-status");
5909
+ }
5910
+ /** One provider's sync state and a page of its synced objects. */
5911
+ async getConnectorSyncObjectsPage(provider, options = {}) {
5912
+ const params = new URLSearchParams();
5913
+ if (options.cursor) params.set("cursor", options.cursor);
5914
+ if (options.limit !== void 0) params.set("limit", String(options.limit));
5915
+ const path = `/api/v2/ingestion/providers/${encodeURIComponent(provider)}/sync`;
5916
+ const query = params.toString();
5917
+ return this.http.get(query ? `${path}?${query}` : path);
5918
+ }
5919
+ /** Turn a provider's managed sync on or off. */
5920
+ async setConnectorSync(provider, enabled) {
5921
+ return this.http.post(
5922
+ `/api/v2/ingestion/providers/${encodeURIComponent(provider)}/sync`,
5923
+ { enabled },
5924
+ void 0,
5925
+ { maxRetries: 0, exactUrlOnly: true }
5926
+ );
5927
+ }
5928
+ /** Pause, resume or run a provider's synced objects. */
5929
+ async runConnectorSyncAction(provider, body) {
5930
+ return this.http.post(
5931
+ `/api/v2/ingestion/providers/${encodeURIComponent(provider)}/actions`,
5932
+ body,
5933
+ void 0,
5934
+ { maxRetries: 0, exactUrlOnly: true }
5935
+ );
5936
+ }
5787
5937
  /** Discover and save the ad accounts accessible to the workspace connection. */
5788
5938
  async discoverAdAccounts(provider) {
5789
5939
  const { path, body } = planAdAccountDiscovery(provider);
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunk4JQ6MHE7js = require('./chunk-4JQ6MHE7.js');
4
+ var _chunk4VKDPTHFjs = require('./chunk-4VKDPTHF.js');
5
5
 
6
6
 
7
7
  var _chunk6VLFQZK6js = require('./chunk-6VLFQZK6.js');
@@ -771,7 +771,7 @@ function readSkillsVersionFile(path) {
771
771
  }
772
772
  }
773
773
  function resolveAutoSyncSkillAgents() {
774
- switch (_chunk4JQ6MHE7js.detectAgentRuntime.call(void 0, )) {
774
+ switch (_chunk4VKDPTHFjs.detectAgentRuntime.call(void 0, )) {
775
775
  case "codex":
776
776
  return ["codex"];
777
777
  case "claude_code":
@@ -841,7 +841,7 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
841
841
  }
842
842
 
843
843
  // src/http.ts
844
- var HttpClient2 = class extends _chunk4JQ6MHE7js.HttpClient {
844
+ var HttpClient2 = class extends _chunk4VKDPTHFjs.HttpClient {
845
845
  constructor(config) {
846
846
  super(config, readSdkSkillsLocalVersion);
847
847
  }
@@ -2,7 +2,7 @@ import {
2
2
  addDescribeOptions,
3
3
  recordApiResponse,
4
4
  writeExecutionOutput
5
- } from "./chunk-655PNNU7.mjs";
5
+ } from "./chunk-LHL6VWJE.mjs";
6
6
  import {
7
7
  registerIntegrationBalanceCommand,
8
8
  registerIntegrationConnectCommand,
@@ -11,11 +11,11 @@ import {
11
11
  registerLegacyHubSpotMembersCommand,
12
12
  registerLegacyWorkspaceConnectionCommand,
13
13
  registerWorkspaceConnectionListCommand
14
- } from "./chunk-56P2BEVI.mjs";
14
+ } from "./chunk-AH2CBDQJ.mjs";
15
15
  import {
16
16
  recentSearchRef,
17
17
  registerDeprecatedSearchCommand
18
- } from "./chunk-QQTZ6KG4.mjs";
18
+ } from "./chunk-EXOC3TLA.mjs";
19
19
  import {
20
20
  Capability,
21
21
  arrayField,
@@ -57,29 +57,29 @@ import {
57
57
  } from "./chunk-FIVKWNMT.mjs";
58
58
  import {
59
59
  DeeplineClient
60
- } from "./chunk-UWX4TTJU.mjs";
60
+ } from "./chunk-IFZA4IGI.mjs";
61
61
  import {
62
62
  validateExecutionIdempotencyKey
63
- } from "./chunk-RK5EKJAT.mjs";
63
+ } from "./chunk-AAOXS3XM.mjs";
64
64
  import {
65
65
  beginToolExecuteCommand,
66
66
  getToolExecuteInvocationId,
67
67
  maybeAutoUpdateAndRelaunch,
68
68
  registerCompatibilityCatalog,
69
69
  runToolExecuteStage
70
- } from "./chunk-DYTTZHYX.mjs";
70
+ } from "./chunk-RULYYQB4.mjs";
71
71
  import {
72
72
  isCliTraceEnabled,
73
73
  recordCliTrace,
74
74
  resolveCliMaintenancePolicy
75
- } from "./chunk-DTTMFSNG.mjs";
75
+ } from "./chunk-NOSGGCJ3.mjs";
76
76
  import {
77
77
  checkSdkCompatibility,
78
78
  enforceSdkCompatibilityResponse,
79
79
  flushDeferredSkillsSyncNotices,
80
80
  requireSdkCompatibility,
81
81
  syncSdkSkillsIfNeeded
82
- } from "./chunk-MY45K7SA.mjs";
82
+ } from "./chunk-F4ZLUDKW.mjs";
83
83
  import {
84
84
  errorToJsonPayload,
85
85
  printCommandEnvelope,
@@ -88,12 +88,12 @@ import {
88
88
  printJsonError,
89
89
  renderCommandEnvelopeText,
90
90
  shouldEmitJson
91
- } from "./chunk-4NNNJLAZ.mjs";
91
+ } from "./chunk-JLXLCD6F.mjs";
92
92
  import {
93
93
  readSdkSkillsLocalVersion,
94
94
  resolveConfig,
95
95
  sdkCliStateDirPath
96
- } from "./chunk-ZOITMXVO.mjs";
96
+ } from "./chunk-2US3VJXX.mjs";
97
97
  import {
98
98
  DeeplineError
99
99
  } from "./chunk-Z3A2S3QM.mjs";
@@ -1052,7 +1052,7 @@ Examples:
1052
1052
  process.exitCode = await narrowView();
1053
1053
  return;
1054
1054
  }
1055
- const { describeAnything } = await import("./describe-333JCD22.mjs");
1055
+ const { describeAnything } = await import("./describe-HZC4GOLO.mjs");
1056
1056
  process.exitCode = await describeAnything(
1057
1057
  toolId,
1058
1058
  {