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
@@ -692,6 +692,7 @@ Input and output:
692
692
  reconnect, disconnect, and delete act on existing org authorizations.
693
693
  Pass --provider when the same name occurs for more than one provider.
694
694
  verify <domain> checks an existing Google Admin grant and enables it locally.
695
+ sync shows and controls CRM syncs into the Customer DB (see sync --help).
695
696
  Scope changes require provider approval; a Play's connection selection
696
697
  cannot expand granted access.
697
698
  SDK:
@@ -705,6 +706,109 @@ Examples:
705
706
  deepline integrations list --json
706
707
  deepline integrations get deepline.com --json
707
708
  `
709
+ },
710
+ "integrations sync": {
711
+ core: `
712
+ Purpose:
713
+ Show and control the CRM syncs that copy HubSpot, Salesforce and Attio
714
+ objects into the org's Customer DB. Same state and controls as the
715
+ dashboard sync page (Integrations > Sync).
716
+ Input and output:
717
+ status lists each provider's state, as the Integrations list shows it;
718
+ status <provider> shows one. objects <provider> lists its synced objects.
719
+ on <provider> and off <provider> turn its whole sync on or off.
720
+ pause <provider> <objects...> and resume <provider> <objects...> stop or
721
+ restart individual objects (for example tickets) while the rest sync.
722
+ run <provider> [objects...] syncs now instead of waiting for the schedule.
723
+ Object names are the object column of objects <provider>.
724
+ States:
725
+ off: the sync is turned off; nothing is copied.
726
+ starting: turned on; its first setup run is in progress.
727
+ on: turned on and every active object synced on schedule.
728
+ needs_attention: turned on, but objects failed, are overdue, have never
729
+ synced, are all paused, setup failed, or the Customer DB is
730
+ unavailable. reason and label say which.
731
+ unknown: turned on, but no sync has recorded its status yet; the next
732
+ scheduled check records it.
733
+ An object is overdue when its scheduled run is more than 20 minutes late.
734
+ SDK:
735
+ client.integrations.sync exposes status, get, objects, set, pause, resume
736
+ and run.
737
+ Cost:
738
+ These commands do not spend Deepline credits. Syncing reads from the
739
+ provider's API under the org's connection.
740
+ Examples:
741
+ deepline integrations sync status --json
742
+ deepline integrations sync on hubspot
743
+ deepline integrations sync pause hubspot tickets quotes
744
+ `
745
+ },
746
+ "integrations sync status": {
747
+ core: `Purpose: Show CRM sync state, as the Integrations list shows it.
748
+ Input: no provider for every CRM; a provider (hubspot, salesforce, attio) for
749
+ one.
750
+ Output: state (off, starting, on, needs_attention, unknown), reason, label
751
+ (the Integrations list text), sync_enabled, last_success_at, connector_status
752
+ (healthy, error, unknown as the sync last recorded it) and object counts:
753
+ total, active, paused, failed, backfilling, scheduled, never_synced, and
754
+ overdue (none, some or all scheduled objects past due). Counts come from the
755
+ last recorded sync check, overdue from the current time, so a sync that
756
+ stopped running still reads as overdue. objects is null when the sync is off
757
+ or nothing is recorded yet. This command never reads the Customer DB.
758
+ [[cli:--json prints GET /api/v2/ingestion/sync-status (one provider's entry
759
+ with a provider).]]
760
+ Cost: Does not spend credits.`
761
+ },
762
+ "integrations sync objects": {
763
+ core: `Purpose: List one provider's synced objects, as the sync page does.
764
+ Input: hubspot, salesforce or attio.
765
+ Output: the provider's state and every object: object_type, status, health
766
+ (healthy, paused, last_sync_failed, sync_overdue, no_successful_sync),
767
+ frequency, next run, last success and last error, read from the Customer DB.
768
+ Reads every page. Fails when the Customer DB read fails.
769
+ [[cli:--json prints the state and all objects from
770
+ GET /api/v2/ingestion/providers/<provider>/sync.]]
771
+ Cost: Does not spend credits.`
772
+ },
773
+ "integrations sync on": {
774
+ core: `Purpose: Turn a provider's CRM sync on.
775
+ Input: hubspot, salesforce or attio. The org must have it connected and a
776
+ Customer DB. The first time, Deepline creates its default objects and starts
777
+ a setup run (state starting); later, paused objects resume.
778
+ Output: the change counts and the provider's resulting sync state.
779
+ Cost: Does not spend credits.`
780
+ },
781
+ "integrations sync off": {
782
+ core: `Purpose: Turn a provider's CRM sync off.
783
+ Input: hubspot, salesforce or attio. Every object stops syncing; data already
784
+ in the Customer DB stays.
785
+ Output: the change counts and the provider's resulting state (off).
786
+ Cost: Does not spend credits.`
787
+ },
788
+ "integrations sync pause": {
789
+ core: `Purpose: Pause individual objects while the rest of the sync continues.
790
+ Input: the provider and one or more object names from objects <provider>.
791
+ An unknown object name fails (exit 4) and lists the synced objects. To stop
792
+ the whole sync use off.
793
+ Output: pausedCount and the provider's resulting state.
794
+ Cost: Does not spend credits.`
795
+ },
796
+ "integrations sync resume": {
797
+ core: `Purpose: Resume individual paused objects.
798
+ Input: the provider and one or more object names from objects <provider>.
799
+ An unknown object name fails (exit 4). Resuming does not turn on a sync
800
+ that is off; use on.
801
+ Output: resumedCount and the provider's resulting state.
802
+ Cost: Does not spend credits.`
803
+ },
804
+ "integrations sync run": {
805
+ core: `Purpose: Sync now instead of waiting for the schedule.
806
+ Input: the provider, and optionally object names; with none, every synced
807
+ object, paused ones included, as the sync page's Run all now does. The sync
808
+ must be on (exit 7 with SYNC_OFF otherwise). A paused object runs once and
809
+ stays paused.
810
+ Output: queuedCount and the provider's resulting state.
811
+ Cost: Does not spend Deepline credits; reads the provider's API.`
708
812
  },
709
813
  "integrations discover-ad-accounts": {
710
814
  core: `Purpose: Discover and save the ad accounts a connected provider can access in the selected workspace.
@@ -9,7 +9,7 @@ import {
9
9
  formatCliFailureDiagnostic,
10
10
  markJsonOutputHandled,
11
11
  writeRawStderr
12
- } from "./chunk-4NNNJLAZ.mjs";
12
+ } from "./chunk-JLXLCD6F.mjs";
13
13
 
14
14
  // src/cli/describe-options.ts
15
15
  function addDescribeOptions(command, options = {}) {
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-2MGZAI54.mjs";
22
22
  import {
23
23
  SDK_RELEASE
24
- } from "./chunk-TK6YKQ45.mjs";
24
+ } from "./chunk-H4LHB6ES.mjs";
25
25
 
26
26
  // src/version.ts
27
27
  var SDK_VERSION = SDK_RELEASE.version;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  PlayClient
3
- } from "./chunk-RK5EKJAT.mjs";
3
+ } from "./chunk-AAOXS3XM.mjs";
4
4
  import {
5
5
  HttpClient,
6
6
  resolveConfig
7
- } from "./chunk-ZOITMXVO.mjs";
7
+ } from "./chunk-2US3VJXX.mjs";
8
8
 
9
9
  // src/plays/local-play-execution.ts
10
10
  function importedNodes(graph) {
@@ -1,22 +1,3 @@
1
- import {
2
- DEFAULT_SUMMARY_WIDTH
3
- } from "./chunk-5AEDYVB6.mjs";
4
- import {
5
- discoveryAuthLines
6
- } from "./chunk-BM4GE67C.mjs";
7
- import "./chunk-STXDSVQZ.mjs";
8
- import "./chunk-PSX3WHIH.mjs";
9
- import {
10
- renderCommandEnvelopeText
11
- } from "./chunk-4NNNJLAZ.mjs";
12
- import "./chunk-ZOITMXVO.mjs";
13
- import "./chunk-TVF7XVPN.mjs";
14
- import "./chunk-ASB47RXJ.mjs";
15
- import "./chunk-DLIRSHV6.mjs";
16
- import "./chunk-Z3A2S3QM.mjs";
17
- import "./chunk-2MGZAI54.mjs";
18
- import "./chunk-TK6YKQ45.mjs";
19
- import "./chunk-WZYKRD7T.mjs";
20
1
  import {
21
2
  __commonJS,
22
3
  __toESM
@@ -5733,184 +5714,6 @@ function formatTextTable(rows, columns) {
5733
5714
  }).split("\n").map((line) => line.trimEnd()).join("\n").trimEnd();
5734
5715
  }
5735
5716
 
5736
- // src/cli/search-output.ts
5737
- function clipSummary(value, width) {
5738
- const characters = Array.from(value.replace(/\s+/gu, " ").trim());
5739
- return characters.length <= width ? characters.join("") : `${characters.slice(0, width - 1).join("")}\u2026`;
5740
- }
5741
- function toolPrice(item) {
5742
- const pricing = item.pricing;
5743
- if (!pricing) return item.kind === "tool" ? "unknown" : "\u2014";
5744
- if (item.billingSource === "own_provider_credentials") return "0 (byok)";
5745
- if (pricing.benefit?.status === "included")
5746
- return typeof pricing.benefit.remaining === "number" ? `0 (${pricing.benefit.remaining.toLocaleString("en-US")} free left)*` : "0 (included)*";
5747
- if (pricing.benefit?.status === "unavailable")
5748
- return "inclusion unavailable*";
5749
- if (pricing.benefit?.status === "exhausted" && typeof pricing.creditsPerUnit === "number")
5750
- return `${pricing.creditsPerUnit}/${pricing.unit ?? "result"}*`;
5751
- const range = pricing.estimatedRange;
5752
- if (range)
5753
- return `${range.minCreditsPerUnit}\u2013${range.maxCreditsPerUnit}/${pricing.unit} (estimate)*`;
5754
- const observed = pricing.observedReference;
5755
- if (observed) return `${observed.creditsPerCall}/call (observed)*`;
5756
- const observedAvg = pricing.observedMax;
5757
- if (observedAvg?.avgCreditsPerCall && observedAvg.sampleCount)
5758
- return `variable, ${observedAvg.avgCreditsPerCall} avg*`;
5759
- const display = pricing.displayText ?? "";
5760
- const footnote = pricing.summary || pricing.details?.length || pricing.observedMax ? "*" : "";
5761
- const rate = display.match(
5762
- /^([\d.,]+) Deepline credits(?: \/ \$[\d.,]+)? per (call|result|page|item|basic profile|full profile)( \(estimate\))?$/
5763
- );
5764
- if (rate) return `${rate[1]}/${rate[2]}${rate[3] ?? ""}${footnote}`;
5765
- if (pricing.creditsPerUnit === 0 && /^Free\b/.test(display))
5766
- return `0 (free)${footnote}`;
5767
- if (!display || display === "Pricing unavailable.")
5768
- return `unknown${footnote}`;
5769
- return pricing.unit === "usage" ? "usage-based*" : "variable*";
5770
- }
5771
- var RATE_WINDOW_UNITS = {
5772
- 1e3: "s",
5773
- 6e4: "min",
5774
- 36e5: "hr"
5775
- };
5776
- function rateLimitDisplay(item) {
5777
- const limits = (Array.isArray(item.rateLimits) ? item.rateLimits : []).filter(
5778
- (limit) => typeof limit?.requestsPerWindow === "number" && typeof limit?.windowMs === "number" && limit.windowMs > 0
5779
- );
5780
- const [tightest] = limits.sort(
5781
- (a, b) => a.requestsPerWindow / a.windowMs - b.requestsPerWindow / b.windowMs
5782
- );
5783
- return tightest ? `${tightest.requestsPerWindow}/${RATE_WINDOW_UNITS[tightest.windowMs] ?? `${tightest.windowMs / 1e3}s`}` : "\u2014";
5784
- }
5785
- function failureRateDisplay(rate) {
5786
- if (typeof rate !== "number") return "\u2014";
5787
- const percent = Math.round(rate * 100);
5788
- return percent === 0 && rate > 0 ? "<1%" : `${percent}%`;
5789
- }
5790
- function latencyDisplay(ms) {
5791
- if (typeof ms !== "number" || !Number.isFinite(ms)) return "\u2014";
5792
- if (ms < 1e3) return `${Math.round(ms)}ms`;
5793
- if (ms < 6e4) return `${(ms / 1e3).toFixed(ms < 1e4 ? 1 : 0)}s`;
5794
- return `${(ms / 6e4).toFixed(1)}min`;
5795
- }
5796
- function searchRow(item, summaryWidth) {
5797
- const observedCost = item.observedCost;
5798
- const notes = [];
5799
- let cost;
5800
- if (!observedCost) {
5801
- cost = toolPrice(item);
5802
- } else if (observedCost.status === "available") {
5803
- cost = `${observedCost.avgCredits}/${observedCost.unit} (observed)`;
5804
- } else {
5805
- cost = observedCost.typical ? `${observedCost.typical.lowCredits}\u2013${observedCost.typical.highCredits}/${observedCost.typical.unit} (typical)` : "no data yet";
5806
- notes.push(`Cost: ${observedCost.displayText}`);
5807
- }
5808
- if (item.auth?.connectionRequired && typeof item.connectionMessage === "string") {
5809
- notes.push(item.connectionMessage);
5810
- } else if (item.connected === false && item.credentialStatus === "managed") {
5811
- notes.push("Temporarily unavailable.");
5812
- }
5813
- return {
5814
- id: item.id,
5815
- kind: item.kind,
5816
- cost,
5817
- rateLimit: rateLimitDisplay(item),
5818
- // Production share of errored or rate-limited calls; absent when too few
5819
- // calls or orgs used the tool to say.
5820
- failureRate: failureRateDisplay(item.failureRate),
5821
- // Production share of calls that returned a result; same floor.
5822
- hitRate: failureRateDisplay(item.hitRate),
5823
- // Production p95 latency of successful calls; absent for the same reason.
5824
- p95: latencyDisplay(item.latencyP95Ms),
5825
- summary: clipSummary(item.description ?? "", summaryWidth),
5826
- notes
5827
- };
5828
- }
5829
- var SEARCH_KIND_COLUMN_ENABLED = false;
5830
- var OPTIONAL_COLUMNS = [
5831
- { header: "RATE LIMIT", key: "rateLimit" },
5832
- { header: "FAILURES", key: "failureRate" },
5833
- { header: "HIT RATE", key: "hitRate" },
5834
- { header: "P95", key: "p95" }
5835
- ];
5836
- function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
5837
- if (result.results.length === 0)
5838
- return renderCommandEnvelopeText(result);
5839
- const rows = result.results.map((item) => searchRow(item, summaryWidth));
5840
- const kinds = new Set(rows.map((row) => row.kind));
5841
- const onlyTools = kinds.size === 1 && kinds.has("tool");
5842
- const columns = [
5843
- { header: onlyTools ? "TOOL" : "ID", value: (row) => row.id },
5844
- ...SEARCH_KIND_COLUMN_ENABLED && !onlyTools ? [{ header: "KIND", value: (row) => row.kind }] : [],
5845
- { header: "CREDITS", value: (row) => row.cost, alignment: "right" },
5846
- // Right-aligned figures that appear only when some row has one.
5847
- ...OPTIONAL_COLUMNS.filter(
5848
- ({ key }) => rows.some((row) => row[key] !== "\u2014")
5849
- ).map(({ header, key }) => ({
5850
- header,
5851
- value: (row) => row[key],
5852
- alignment: "right"
5853
- })),
5854
- { header: "SUMMARY", value: (row) => row.summary }
5855
- ];
5856
- const render = result.render;
5857
- const sections = render?.sections ?? [];
5858
- const resultIndex = sections.findIndex(
5859
- ({ title: title2 }) => title2 !== "ignored categories" && title2 !== "exact tool lookup"
5860
- );
5861
- const title = sections[resultIndex]?.title ?? `${result.total ?? rows.length} matches \u2014 showing ${rows.length}`;
5862
- const remaining = {
5863
- sections: sections.filter(
5864
- ({ title: title2 }, index) => index !== resultIndex && title2 !== "exact tool lookup"
5865
- ),
5866
- actions: render?.actions
5867
- };
5868
- const followUps = remaining.sections?.length || remaining.actions?.length ? `
5869
- ${renderCommandEnvelopeText({ render: remaining })}` : "";
5870
- const exact = result.exactLookup?.toolId;
5871
- const matched = exact && result.results.find((item) => item.id === exact);
5872
- const contract = matched ? [
5873
- ...matched.toolUsage?.effect ? [`Effect: ${matched.toolUsage.effect}`] : [],
5874
- ...(matched.toolUsage?.requiredInputs ?? []).map(
5875
- ({ name, meaning }) => ` ${name}${meaning ? ` \u2014 ${meaning}` : ""}`
5876
- ),
5877
- ...matched.auth ? discoveryAuthLines(matched.auth) : [],
5878
- ...matched.describeCommand ? [matched.describeCommand] : [],
5879
- ...matched.toolUsage?.example ? [matched.toolUsage.example.cli] : []
5880
- ] : [];
5881
- const missingConnections = /* @__PURE__ */ new Set();
5882
- for (const item of result.results) {
5883
- if (item.id === exact || item.auth?.connectionRequired || item.credentialStatus !== "requires_connection")
5884
- continue;
5885
- const provider = typeof item.provider === "string" && item.provider.trim();
5886
- missingConnections.add(provider || item.id);
5887
- }
5888
- const notes = [...missingConnections].map(
5889
- (provider) => ` ${provider}: Not connected. Connect to use tools that require your credentials. See deepline describe <toolId> for setup.`
5890
- );
5891
- notes.push(
5892
- ...rows.flatMap((row) => row.notes.map((note) => ` ${row.id}: ${note}`))
5893
- );
5894
- const details = [
5895
- ...notes.length ? ["Notes", ...notes, ""] : [],
5896
- rows.some((row) => row.cost.endsWith("*")) ? "* See deepline describe <toolId> for full pricing information." : "Full descriptions and pricing: deepline describe <toolId>."
5897
- ].join("\n");
5898
- const exactContract = contract.length ? `
5899
-
5900
- Exact match
5901
- ${contract.join("\n")}` : "";
5902
- const exactMiss = result.exactLookup?.status !== "found" ? result.exactLookup?.message : void 0;
5903
- return `${exactMiss ? `${exactMiss}
5904
-
5905
- ` : ""}${title}
5906
-
5907
- ${formatTextTable(rows, columns)}${exactContract}
5908
-
5909
- ${details}
5910
- ${followUps}`;
5911
- }
5912
5717
  export {
5913
- DEFAULT_SUMMARY_WIDTH,
5914
- SEARCH_KIND_COLUMN_ENABLED,
5915
- renderSearchResults
5718
+ formatTextTable
5916
5719
  };
@@ -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 _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/client.ts
10
- var DeeplineClient2 = class extends _chunkIW3N7ARMjs.DeeplineClient {
10
+ var DeeplineClient2 = class extends _chunkFXRSHBRPjs.DeeplineClient {
11
11
  constructor(options) {
12
- const config = _chunk4SV43Z64js.resolveConfig.call(void 0, options);
13
- super(config, new (0, _chunk4SV43Z64js.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
12
+ const config = _chunkGE62FFN6js.resolveConfig.call(void 0, options);
13
+ super(config, new (0, _chunkGE62FFN6js.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
14
14
  }
15
15
  };
16
16
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeRawStderr
3
- } from "./chunk-4NNNJLAZ.mjs";
3
+ } from "./chunk-JLXLCD6F.mjs";
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  import { InvalidArgumentError } from "commander";
@@ -692,6 +692,7 @@ Input and output:
692
692
  reconnect, disconnect, and delete act on existing org authorizations.
693
693
  Pass --provider when the same name occurs for more than one provider.
694
694
  verify <domain> checks an existing Google Admin grant and enables it locally.
695
+ sync shows and controls CRM syncs into the Customer DB (see sync --help).
695
696
  Scope changes require provider approval; a Play's connection selection
696
697
  cannot expand granted access.
697
698
  SDK:
@@ -705,6 +706,109 @@ Examples:
705
706
  deepline integrations list --json
706
707
  deepline integrations get deepline.com --json
707
708
  `
709
+ },
710
+ "integrations sync": {
711
+ core: `
712
+ Purpose:
713
+ Show and control the CRM syncs that copy HubSpot, Salesforce and Attio
714
+ objects into the org's Customer DB. Same state and controls as the
715
+ dashboard sync page (Integrations > Sync).
716
+ Input and output:
717
+ status lists each provider's state, as the Integrations list shows it;
718
+ status <provider> shows one. objects <provider> lists its synced objects.
719
+ on <provider> and off <provider> turn its whole sync on or off.
720
+ pause <provider> <objects...> and resume <provider> <objects...> stop or
721
+ restart individual objects (for example tickets) while the rest sync.
722
+ run <provider> [objects...] syncs now instead of waiting for the schedule.
723
+ Object names are the object column of objects <provider>.
724
+ States:
725
+ off: the sync is turned off; nothing is copied.
726
+ starting: turned on; its first setup run is in progress.
727
+ on: turned on and every active object synced on schedule.
728
+ needs_attention: turned on, but objects failed, are overdue, have never
729
+ synced, are all paused, setup failed, or the Customer DB is
730
+ unavailable. reason and label say which.
731
+ unknown: turned on, but no sync has recorded its status yet; the next
732
+ scheduled check records it.
733
+ An object is overdue when its scheduled run is more than 20 minutes late.
734
+ SDK:
735
+ client.integrations.sync exposes status, get, objects, set, pause, resume
736
+ and run.
737
+ Cost:
738
+ These commands do not spend Deepline credits. Syncing reads from the
739
+ provider's API under the org's connection.
740
+ Examples:
741
+ deepline integrations sync status --json
742
+ deepline integrations sync on hubspot
743
+ deepline integrations sync pause hubspot tickets quotes
744
+ `
745
+ },
746
+ "integrations sync status": {
747
+ core: `Purpose: Show CRM sync state, as the Integrations list shows it.
748
+ Input: no provider for every CRM; a provider (hubspot, salesforce, attio) for
749
+ one.
750
+ Output: state (off, starting, on, needs_attention, unknown), reason, label
751
+ (the Integrations list text), sync_enabled, last_success_at, connector_status
752
+ (healthy, error, unknown as the sync last recorded it) and object counts:
753
+ total, active, paused, failed, backfilling, scheduled, never_synced, and
754
+ overdue (none, some or all scheduled objects past due). Counts come from the
755
+ last recorded sync check, overdue from the current time, so a sync that
756
+ stopped running still reads as overdue. objects is null when the sync is off
757
+ or nothing is recorded yet. This command never reads the Customer DB.
758
+ [[cli:--json prints GET /api/v2/ingestion/sync-status (one provider's entry
759
+ with a provider).]]
760
+ Cost: Does not spend credits.`
761
+ },
762
+ "integrations sync objects": {
763
+ core: `Purpose: List one provider's synced objects, as the sync page does.
764
+ Input: hubspot, salesforce or attio.
765
+ Output: the provider's state and every object: object_type, status, health
766
+ (healthy, paused, last_sync_failed, sync_overdue, no_successful_sync),
767
+ frequency, next run, last success and last error, read from the Customer DB.
768
+ Reads every page. Fails when the Customer DB read fails.
769
+ [[cli:--json prints the state and all objects from
770
+ GET /api/v2/ingestion/providers/<provider>/sync.]]
771
+ Cost: Does not spend credits.`
772
+ },
773
+ "integrations sync on": {
774
+ core: `Purpose: Turn a provider's CRM sync on.
775
+ Input: hubspot, salesforce or attio. The org must have it connected and a
776
+ Customer DB. The first time, Deepline creates its default objects and starts
777
+ a setup run (state starting); later, paused objects resume.
778
+ Output: the change counts and the provider's resulting sync state.
779
+ Cost: Does not spend credits.`
780
+ },
781
+ "integrations sync off": {
782
+ core: `Purpose: Turn a provider's CRM sync off.
783
+ Input: hubspot, salesforce or attio. Every object stops syncing; data already
784
+ in the Customer DB stays.
785
+ Output: the change counts and the provider's resulting state (off).
786
+ Cost: Does not spend credits.`
787
+ },
788
+ "integrations sync pause": {
789
+ core: `Purpose: Pause individual objects while the rest of the sync continues.
790
+ Input: the provider and one or more object names from objects <provider>.
791
+ An unknown object name fails (exit 4) and lists the synced objects. To stop
792
+ the whole sync use off.
793
+ Output: pausedCount and the provider's resulting state.
794
+ Cost: Does not spend credits.`
795
+ },
796
+ "integrations sync resume": {
797
+ core: `Purpose: Resume individual paused objects.
798
+ Input: the provider and one or more object names from objects <provider>.
799
+ An unknown object name fails (exit 4). Resuming does not turn on a sync
800
+ that is off; use on.
801
+ Output: resumedCount and the provider's resulting state.
802
+ Cost: Does not spend credits.`
803
+ },
804
+ "integrations sync run": {
805
+ core: `Purpose: Sync now instead of waiting for the schedule.
806
+ Input: the provider, and optionally object names; with none, every synced
807
+ object, paused ones included, as the sync page's Run all now does. The sync
808
+ must be on (exit 7 with SYNC_OFF otherwise). A paused object runs once and
809
+ stays paused.
810
+ Output: queuedCount and the provider's resulting state.
811
+ Cost: Does not spend Deepline credits; reads the provider's API.`
708
812
  },
709
813
  "integrations discover-ad-accounts": {
710
814
  core: `Purpose: Discover and save the ad accounts a connected provider can access in the selected workspace.
@@ -1,23 +1,23 @@
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 _chunkY2FZJRRMjs = require('./chunk-Y2FZJRRM.js');
4
+ var _chunkP6BVT2OWjs = require('./chunk-P6BVT2OW.js');
5
5
 
6
6
 
7
- var _chunkRBTOZO5Mjs = require('./chunk-RBTOZO5M.js');
7
+ var _chunkH3NH5RJ6js = require('./chunk-H3NH5RJ6.js');
8
8
 
9
9
 
10
- var _chunkHGGIWRA5js = require('./chunk-HGGIWRA5.js');
10
+ var _chunkZEKRYFMNjs = require('./chunk-ZEKRYFMN.js');
11
11
 
12
12
 
13
- var _chunkWSEMXB7Xjs = require('./chunk-WSEMXB7X.js');
13
+ var _chunkJ5QAOURJjs = require('./chunk-J5QAOURJ.js');
14
14
 
15
15
 
16
16
 
17
17
 
18
18
 
19
19
 
20
- var _chunk4SV43Z64js = require('./chunk-4SV43Z64.js');
20
+ var _chunkGE62FFN6js = require('./chunk-GE62FFN6.js');
21
21
 
22
22
  // src/cli/commands/update.ts
23
23
  var _child_process = require('child_process');
@@ -499,7 +499,7 @@ function normalizedNpmPrefix(value) {
499
499
  }
500
500
  function resolveNpmGlobalPrefix(env) {
501
501
  try {
502
- const plan = _chunkHGGIWRA5js.resolveShellSpawn.call(void 0,
502
+ const plan = _chunkZEKRYFMNjs.resolveShellSpawn.call(void 0,
503
503
  "npm",
504
504
  ["prefix", "-g"],
505
505
  process.platform,
@@ -561,8 +561,8 @@ function resolveUpdatePlan(options = {}) {
561
561
  const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
562
562
  const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
563
563
  const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
564
- const npmVersion = options.npmVersion === void 0 ? _chunkY2FZJRRMjs.readNpmVersion.call(void 0, env) : options.npmVersion;
565
- const npmGlobalInstallFlags = _chunkY2FZJRRMjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
564
+ const npmVersion = options.npmVersion === void 0 ? _chunkP6BVT2OWjs.readNpmVersion.call(void 0, env) : options.npmVersion;
565
+ const npmGlobalInstallFlags = _chunkP6BVT2OWjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
566
566
  const args = installPrefix ? [
567
567
  "install",
568
568
  "-g",
@@ -572,7 +572,7 @@ function resolveUpdatePlan(options = {}) {
572
572
  packageSpec
573
573
  ] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
574
574
  const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
575
- _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunk4SV43Z64js.autoDetectBaseUrl.call(void 0, )
575
+ _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkGE62FFN6js.autoDetectBaseUrl.call(void 0, )
576
576
  );
577
577
  return {
578
578
  kind: "npm-global",
@@ -821,7 +821,7 @@ function sidecarInstallFailure(versionDir) {
821
821
  function runCommand(command, args, env = process.env) {
822
822
  return new Promise((resolveResult) => {
823
823
  let output = "";
824
- const plan = _chunkHGGIWRA5js.resolveShellSpawn.call(void 0, command, args, process.platform, env);
824
+ const plan = _chunkZEKRYFMNjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
825
825
  const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
826
826
  windowsHide: true,
827
827
  stdio: ["inherit", "pipe", "pipe"],
@@ -1169,7 +1169,7 @@ function normalizePinnedVersion(value) {
1169
1169
  }
1170
1170
  async function readPinMetadata(registryUrl, version) {
1171
1171
  const controller = new AbortController();
1172
- const timeout = setTimeout(() => controller.abort(), _chunk4SV43Z64js.DEFAULT_TIMEOUT);
1172
+ const timeout = setTimeout(() => controller.abort(), _chunkGE62FFN6js.DEFAULT_TIMEOUT);
1173
1173
  try {
1174
1174
  const response = await fetch(
1175
1175
  new URL(
@@ -1185,7 +1185,7 @@ async function readPinMetadata(registryUrl, version) {
1185
1185
  if (!response.ok) {
1186
1186
  return {
1187
1187
  kind: "miss",
1188
- transient: _chunk4SV43Z64js.TRANSIENT_HTTP_STATUSES.has(response.status),
1188
+ transient: _chunkGE62FFN6js.TRANSIENT_HTTP_STATUSES.has(response.status),
1189
1189
  error: new Error(`${registryUrl} returned HTTP ${response.status}`)
1190
1190
  };
1191
1191
  }
@@ -1219,8 +1219,8 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl, retry =
1219
1219
  "https://registry.npmjs.org/",
1220
1220
  ...fallbackRegistryUrl ? [fallbackRegistryUrl] : []
1221
1221
  ];
1222
- const maxRetries = _nullishCoalesce(retry.maxRetries, () => ( _chunk4SV43Z64js.DEFAULT_MAX_RETRIES));
1223
- const backoffMs = _nullishCoalesce(retry.backoffMs, () => ( _chunk4SV43Z64js.defaultRetryBackoffMs));
1222
+ const maxRetries = _nullishCoalesce(retry.maxRetries, () => ( _chunkGE62FFN6js.DEFAULT_MAX_RETRIES));
1223
+ const backoffMs = _nullishCoalesce(retry.backoffMs, () => ( _chunkGE62FFN6js.defaultRetryBackoffMs));
1224
1224
  let lastError = null;
1225
1225
  for (let round = 1; ; round += 1) {
1226
1226
  let transientOnly = true;
@@ -1283,14 +1283,14 @@ async function resolveInstalledVersionIfLatest(plan) {
1283
1283
  return null;
1284
1284
  }
1285
1285
  async function runUpdateCommand(options, dependencies = {}) {
1286
- const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunk4SV43Z64js.autoDetectBaseUrl));
1286
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkGE62FFN6js.autoDetectBaseUrl));
1287
1287
  const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
1288
1288
  const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
1289
1289
  const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
1290
1290
  const originalWrite = process.stdout.write.bind(process.stdout);
1291
1291
  process.stdout.write = (() => true);
1292
1292
  try {
1293
- const exitCode = await _chunkRBTOZO5Mjs.runSkillsCommand.call(void 0, { json: true });
1293
+ const exitCode = await _chunkH3NH5RJ6js.runSkillsCommand.call(void 0, { json: true });
1294
1294
  if (exitCode !== 0) {
1295
1295
  throw new Error(
1296
1296
  `Deepline skills update failed with exit ${exitCode}.`
@@ -1363,7 +1363,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1363
1363
  };
1364
1364
  if (options.json && !options.executeWithJson) {
1365
1365
  const upToDateVersion2 = pinnedVersion || options.force ? null : await resolveUpToDateVersion(plan);
1366
- _chunkWSEMXB7Xjs.printCommandEnvelope.call(void 0,
1366
+ _chunkJ5QAOURJjs.printCommandEnvelope.call(void 0,
1367
1367
  {
1368
1368
  ...plan,
1369
1369
  updated: false,
@@ -1375,7 +1375,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1375
1375
  return 0;
1376
1376
  }
1377
1377
  if (options.printCommand) {
1378
- _chunkWSEMXB7Xjs.printCommandEnvelope.call(void 0,
1378
+ _chunkJ5QAOURJjs.printCommandEnvelope.call(void 0,
1379
1379
  {
1380
1380
  ...plan,
1381
1381
  render: {
@@ -1388,7 +1388,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1388
1388
  return 0;
1389
1389
  }
1390
1390
  if (plan.kind === "source" || plan.kind === "homebrew") {
1391
- _chunkWSEMXB7Xjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1391
+ _chunkJ5QAOURJjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1392
1392
  return 0;
1393
1393
  }
1394
1394
  const upToDateVersion = pinnedVersion || options.force ? null : await resolveUpToDateVersion(plan);
@@ -1426,7 +1426,7 @@ To retry with full installer output, run: deepline skills install
1426
1426
  );
1427
1427
  }
1428
1428
  if (options.executeWithJson && options.json) {
1429
- _chunkWSEMXB7Xjs.printCommandEnvelope.call(void 0,
1429
+ _chunkJ5QAOURJjs.printCommandEnvelope.call(void 0,
1430
1430
  {
1431
1431
  ok: true,
1432
1432
  pinnedVersion,