deepline 0.3.504 → 0.3.506

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 (165) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +121 -5
  2. package/dist/bundling-sources/sdk/src/index.ts +3 -0
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/sdk/src/types.ts +5 -0
  5. package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +2 -0
  6. package/dist/bundling-sources/shared_libs/monitors/fleets/issues.ts +176 -0
  7. package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +17 -0
  8. package/dist/bundling-sources/shared_libs/monitors/fleets/overview.ts +118 -0
  9. package/dist/bundling-sources/shared_libs/monitors/fleets/plan.ts +29 -1
  10. package/dist/bundling-sources/shared_libs/monitors/legacy-radar-retirement.ts +29 -10
  11. package/dist/bundling-sources/shared_libs/monitors/package.json +4 -0
  12. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +9 -9
  13. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +52 -5
  14. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +48 -5
  15. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +157 -47
  16. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +36 -3
  17. package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-egress.ts +55 -0
  18. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +66 -0
  19. package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +18 -0
  20. package/dist/bundling-sources/shared_libs/product-notifications/onboarding-unsubscribe.ts +23 -0
  21. package/dist/cli/auth-MMHG2OFE.js +43 -0
  22. package/dist/cli/{auth-3L5AA5AX.mjs → auth-ZHFONT2D.mjs} +5 -5
  23. package/dist/cli/{billing-HOGXVE2V.js → billing-3Z7N4WTL.js} +101 -91
  24. package/dist/cli/{billing-E7EASVPO.mjs → billing-B2YEMNHE.mjs} +27 -17
  25. package/dist/cli/{chunk-UXQQPMYO.js → chunk-26DJ4BDY.js} +2 -2
  26. package/dist/cli/{chunk-3MLFFWDM.mjs → chunk-2CFTDVEP.mjs} +2 -2
  27. package/dist/cli/{chunk-QOLX2O2S.mjs → chunk-2IXXB7OA.mjs} +93 -34
  28. package/dist/cli/{chunk-6JNBMTCZ.js → chunk-2OY5DXTC.js} +1 -1
  29. package/dist/cli/{chunk-SVFTZTCI.mjs → chunk-3BFZEHBH.mjs} +1 -1
  30. package/dist/cli/{chunk-67OI26OE.js → chunk-3F676QXJ.js} +96 -37
  31. package/dist/cli/{chunk-KCKAFTPY.js → chunk-5ARG7J7A.js} +6 -6
  32. package/dist/cli/{chunk-5CHBIJIM.mjs → chunk-6RYVIZRP.mjs} +2 -2
  33. package/dist/cli/{chunk-QKKU2FH4.js → chunk-75NAFY36.js} +7 -7
  34. package/dist/cli/{chunk-7P2QVMBP.js → chunk-AD2WJUZA.js} +91 -48
  35. package/dist/cli/{chunk-UFYJTRSF.mjs → chunk-AFSYNOG4.mjs} +42 -7
  36. package/dist/cli/{chunk-VJVJWZ6I.mjs → chunk-BJ5OX62J.mjs} +5 -5
  37. package/dist/cli/{chunk-HUX5DZO6.mjs → chunk-BQBPVUFJ.mjs} +3 -3
  38. package/dist/cli/{chunk-MLMWM5DV.mjs → chunk-CHGRURBN.mjs} +5 -5
  39. package/dist/cli/{chunk-22OCKCYS.mjs → chunk-D7OCORZ7.mjs} +1 -1
  40. package/dist/cli/{chunk-SMSQVRHE.js → chunk-DB54ROPH.js} +5 -5
  41. package/dist/cli/{chunk-KGUGNEKL.js → chunk-E554XCJI.js} +96 -96
  42. package/dist/cli/{chunk-GGBXNQCR.mjs → chunk-EN7GXLFX.mjs} +4 -4
  43. package/dist/cli/{chunk-2W77YCKH.js → chunk-F53SGS3C.js} +5 -5
  44. package/dist/cli/{chunk-6SMR7LU7.js → chunk-F7IQQYKV.js} +2 -2
  45. package/dist/cli/chunk-FFGQR5J3.mjs +405 -0
  46. package/dist/cli/{chunk-UJMBG5JU.js → chunk-FWSEGIT6.js} +4 -4
  47. package/dist/cli/{chunk-GJ2DA35C.js → chunk-GDHLL5EQ.js} +42 -7
  48. package/dist/cli/{chunk-XHZSPMNC.mjs → chunk-GJNIC2CO.mjs} +84 -441
  49. package/dist/cli/chunk-GRESJ3H3.js +405 -0
  50. package/dist/cli/{chunk-WZSFIJMG.js → chunk-HINTYT5H.js} +113 -470
  51. package/dist/cli/{chunk-A6LA42JY.js → chunk-LRSRJJPD.js} +16 -16
  52. package/dist/cli/{chunk-WBIDPDKJ.js → chunk-MHRR47VQ.js} +3 -3
  53. package/dist/cli/{chunk-FTRVCIGC.js → chunk-N7G36GXB.js} +26 -26
  54. package/dist/cli/{chunk-BTWUNKKX.mjs → chunk-ND4WPLTE.mjs} +2 -2
  55. package/dist/cli/{chunk-NZ7Z7WNM.mjs → chunk-O4DZG4VA.mjs} +2 -2
  56. package/dist/cli/{chunk-LHXYCZYO.js → chunk-OD6TASBP.js} +8 -8
  57. package/dist/cli/{chunk-GRAGUYIE.js → chunk-OHNMJ5XQ.js} +41 -41
  58. package/dist/cli/{chunk-OX2D6BG4.mjs → chunk-ONBXTEFQ.mjs} +46 -3
  59. package/dist/cli/{chunk-7F4OEHQK.mjs → chunk-OPBXKB57.mjs} +1 -1
  60. package/dist/cli/{chunk-Y7VEHKID.mjs → chunk-OUGJUM5X.mjs} +6 -6
  61. package/dist/cli/{chunk-USTJEEND.js → chunk-PRIHD5XS.js} +9 -9
  62. package/dist/cli/{chunk-IGNQKOWT.mjs → chunk-QAY5AS2H.mjs} +12 -12
  63. package/dist/cli/{chunk-5Z6EULD5.js → chunk-QP333GFE.js} +7 -7
  64. package/dist/cli/{chunk-JPR2546F.js → chunk-SUJIVF6L.js} +16 -16
  65. package/dist/cli/{chunk-DEAJVQEG.mjs → chunk-TEMORCEE.mjs} +1 -1
  66. package/dist/cli/{chunk-YOQ2NNDO.mjs → chunk-TS4KFQKS.mjs} +1 -1
  67. package/dist/cli/{chunk-4CC67XH5.mjs → chunk-XUY7WQ2R.mjs} +3 -3
  68. package/dist/cli/{chunk-Z6FXUDIL.mjs → chunk-YEX6RPUO.mjs} +1 -1
  69. package/dist/cli/{chunk-MJTK6Q3G.js → chunk-YJKKOSXS.js} +3 -3
  70. package/dist/cli/{chunk-Y6XKCEPK.mjs → chunk-YVOS5KSG.mjs} +1 -1
  71. package/dist/cli/{chunk-2ABRDH3B.mjs → chunk-YWZEBPXK.mjs} +2 -2
  72. package/dist/cli/{chunk-BX45XMXZ.mjs → chunk-Z7EHY2MF.mjs} +2 -2
  73. package/dist/cli/{chunk-FISP4LCK.js → chunk-ZM5BJ5MP.js} +53 -53
  74. package/dist/cli/{chunk-IPAMOMGP.js → chunk-ZZDTWVCQ.js} +21 -21
  75. package/dist/cli/command-docs.js +2 -2
  76. package/dist/cli/command-docs.mjs +1 -1
  77. package/dist/cli/{csv-2XWGPITO.js → csv-7K7LK63Y.js} +13 -13
  78. package/dist/cli/{csv-433JEHLQ.mjs → csv-ARHQ54HA.mjs} +4 -4
  79. package/dist/cli/{db-K747DH43.mjs → db-JBX24NJY.mjs} +6 -6
  80. package/dist/cli/{db-PJJMD4VH.js → db-V4Z2I6DY.js} +27 -27
  81. package/dist/cli/describe-AYXVS6DZ.js +50 -0
  82. package/dist/cli/{describe-VEDDYW4P.mjs → describe-RBDSGSZ7.mjs} +18 -17
  83. package/dist/cli/describe-core.d.mts +3 -3
  84. package/dist/cli/describe-core.d.ts +3 -3
  85. package/dist/cli/{executions-JWRX3XCT.mjs → executions-BAZEU63W.mjs} +6 -6
  86. package/dist/cli/{executions-HM5T72H6.js → executions-XEZKV5QU.js} +8 -8
  87. package/dist/cli/{feedback-34UG4BO3.js → feedback-LOERESRU.js} +8 -8
  88. package/dist/cli/{feedback-MNSIA63Y.mjs → feedback-YDSWBHCO.mjs} +4 -4
  89. package/dist/cli/{git-ZKEOXV3A.mjs → git-4Z3W2CQU.mjs} +5 -5
  90. package/dist/cli/git-T6WKO7EA.js +25 -0
  91. package/dist/cli/index.js +146 -148
  92. package/dist/cli/index.mjs +53 -55
  93. package/dist/cli/{legacy-noops-YXSI4FVU.js → legacy-noops-4QIQPVE5.js} +8 -8
  94. package/dist/cli/{legacy-noops-5M4T4ZVT.mjs → legacy-noops-E4HH7S5O.mjs} +5 -5
  95. package/dist/cli/{monitors-C65OC4AW.mjs → monitors-FPDW5DDM.mjs} +305 -8
  96. package/dist/cli/{monitors-O25GDOYE.js → monitors-QBHDSDA7.js} +423 -126
  97. package/dist/cli/{org-2GSPLY2A.js → org-JO4GGSAH.js} +72 -72
  98. package/dist/cli/{org-ZRMG5NS2.mjs → org-UCDHIHAD.mjs} +6 -6
  99. package/dist/cli/{pages-TZZUFBRO.mjs → pages-6V52IZXY.mjs} +6 -6
  100. package/dist/cli/{pages-45DPADK6.js → pages-FJAAXAWO.js} +18 -18
  101. package/dist/cli/{play-RCGMND6X.js → play-F3AENS6W.js} +317 -316
  102. package/dist/cli/{play-3D7HH273.mjs → play-MF4DWROJ.mjs} +18 -17
  103. package/dist/cli/{providers-PSAKV6CJ.mjs → providers-NJJLTECA.mjs} +6 -6
  104. package/dist/cli/{providers-3N3ECMTY.js → providers-XXOQLPX7.js} +9 -9
  105. package/dist/cli/{quickstart-6R6AIXM6.js → quickstart-JCE3XGQG.js} +6 -6
  106. package/dist/cli/{quickstart-2A35SMGC.mjs → quickstart-Z5MSMI7S.mjs} +4 -4
  107. package/dist/cli/{run-F3TLDGUO.mjs → run-56UGPIRL.mjs} +23 -22
  108. package/dist/cli/{run-F6ZXTASZ.js → run-X2DNIW3F.js} +41 -40
  109. package/dist/cli/search-B753RTKC.js +33 -0
  110. package/dist/cli/{search-CZLCY3D2.mjs → search-SZYI4NBB.mjs} +8 -7
  111. package/dist/cli/{search-output-R5XDNILW.js → search-output-7UNT6EMP.js} +6 -6
  112. package/dist/cli/{search-output-MQTSTLN5.mjs → search-output-T35QNZUF.mjs} +4 -4
  113. package/dist/cli/{secrets-DCJYHDSY.js → secrets-JMUAVIVC.js} +15 -15
  114. package/dist/cli/{secrets-D3GF4B2Z.mjs → secrets-Q36VC35L.mjs} +6 -6
  115. package/dist/cli/{sessions-QGEQ2UYZ.mjs → sessions-HG6I3HMY.mjs} +5 -5
  116. package/dist/cli/{sessions-Z4JYJSDP.js → sessions-SUXU7OM7.js} +6 -6
  117. package/dist/cli/{settings-UVXXAT4A.js → settings-UIELQ5CV.js} +106 -78
  118. package/dist/cli/{settings-G7QEXA4N.mjs → settings-Z76XW4KF.mjs} +39 -11
  119. package/dist/cli/{setup-5I42W7D4.js → setup-2L7H5P2O.js} +50 -49
  120. package/dist/cli/{setup-QHJU3DUI.mjs → setup-OXNYAOQ4.mjs} +10 -9
  121. package/dist/cli/skills-DEVXYGYH.js +37 -0
  122. package/dist/cli/{skills-5LRF4UKX.mjs → skills-XSNLXJGI.mjs} +8 -7
  123. package/dist/cli/tools-SCGHABDL.js +57 -0
  124. package/dist/cli/{tools-PUT6STVG.mjs → tools-SUSFAYFH.mjs} +17 -16
  125. package/dist/cli/update-BSIILGO3.js +35 -0
  126. package/dist/cli/{update-CJ2GA64X.mjs → update-ENSTG3QO.mjs} +10 -9
  127. package/dist/cli/{workflow-O67MEBCP.js → workflow-FMBZNY4F.js} +17 -17
  128. package/dist/cli/{workflow-HVEWRTXD.mjs → workflow-Z33QE6VT.mjs} +7 -7
  129. package/dist/{client-DYAfJpaN.d.mts → client-BDbouy3Y.d.mts} +1 -1
  130. package/dist/{client-CIwenMFS.d.ts → client-Cx0420fs.d.ts} +1 -1
  131. package/dist/{client-core-CRjtyMAI.d.ts → client-core-B4hq0-m2.d.ts} +56 -4
  132. package/dist/{client-core-DlzP8vEs.d.mts → client-core-CwiVaMZ5.d.mts} +56 -4
  133. package/dist/{compiler-manifest-DaJrA2KV.d.mts → compiler-manifest-BeURaD5Y.d.mts} +2 -0
  134. package/dist/{compiler-manifest-DaJrA2KV.d.ts → compiler-manifest-BeURaD5Y.d.ts} +2 -0
  135. package/dist/{errors-KLga4bLr.d.ts → errors-BoPXPrSy.d.ts} +1 -1
  136. package/dist/{errors-BKnSYueU.d.mts → errors-kBuT4kGK.d.mts} +1 -1
  137. package/dist/{index-C5nAZ-VS.d.ts → index-D0crdGM1.d.ts} +1 -1
  138. package/dist/{index-C-8AFpWy.d.mts → index-DC7oRAAC.d.mts} +1 -1
  139. package/dist/index.d.mts +7 -7
  140. package/dist/index.d.ts +7 -7
  141. package/dist/index.js +9 -9
  142. package/dist/index.mjs +6 -6
  143. package/dist/install-integrity.json +116 -110
  144. package/dist/plays/bundle-play-file.d.mts +3 -3
  145. package/dist/plays/bundle-play-file.d.ts +3 -3
  146. package/dist/plays/play-description.d.mts +2 -2
  147. package/dist/plays/play-description.d.ts +2 -2
  148. package/dist/plays/run-request.d.mts +2 -2
  149. package/dist/plays/run-request.d.ts +2 -2
  150. package/dist/release.d.mts +1 -1
  151. package/dist/release.d.ts +1 -1
  152. package/dist/release.js +2 -2
  153. package/dist/release.mjs +1 -1
  154. package/dist/server.d.mts +4 -4
  155. package/dist/server.d.ts +4 -4
  156. package/dist/server.js +5 -5
  157. package/dist/server.mjs +3 -3
  158. package/package.json +1 -1
  159. package/dist/cli/auth-UPK4IIIN.js +0 -43
  160. package/dist/cli/describe-OYS7LZJD.js +0 -49
  161. package/dist/cli/git-5YQJSJFR.js +0 -25
  162. package/dist/cli/search-R5VEWJO2.js +0 -32
  163. package/dist/cli/skills-FB6TV52O.js +0 -36
  164. package/dist/cli/tools-L2364RPA.js +0 -56
  165. package/dist/cli/update-ESYJGYVZ.js +0 -34
@@ -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(); } } 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 _chunkSMSQVRHEjs = require('./chunk-SMSQVRHE.js');
3
+ var _chunkDB54ROPHjs = require('./chunk-DB54ROPH.js');
4
4
 
5
5
 
6
6
 
7
- var _chunk7P2QVMBPjs = require('./chunk-7P2QVMBP.js');
7
+ var _chunkAD2WJUZAjs = require('./chunk-AD2WJUZA.js');
8
8
  require('./chunk-E4CABWXL.js');
9
9
  require('./chunk-RNSHCJME.js');
10
10
  require('./chunk-NMU3VR5U.js');
@@ -13,28 +13,33 @@ require('./chunk-WSGXBROE.js');
13
13
 
14
14
 
15
15
 
16
- var _chunkA6LA42JYjs = require('./chunk-A6LA42JY.js');
17
- require('./chunk-6SMR7LU7.js');
18
- require('./chunk-GRAGUYIE.js');
19
- require('./chunk-WZSFIJMG.js');
20
- require('./chunk-MJTK6Q3G.js');
16
+ var _chunkLRSRJJPDjs = require('./chunk-LRSRJJPD.js');
17
+ require('./chunk-F7IQQYKV.js');
18
+ require('./chunk-OHNMJ5XQ.js');
21
19
 
22
20
 
23
21
 
24
- var _chunkQKKU2FH4js = require('./chunk-QKKU2FH4.js');
25
- require('./chunk-WBIDPDKJ.js');
26
- require('./chunk-UJMBG5JU.js');
22
+ var _chunkHINTYT5Hjs = require('./chunk-HINTYT5H.js');
23
+ require('./chunk-YJKKOSXS.js');
24
+ require('./chunk-GRESJ3H3.js');
25
+
26
+
27
+
28
+ var _chunk75NAFY36js = require('./chunk-75NAFY36.js');
29
+ require('./chunk-MHRR47VQ.js');
30
+ require('./chunk-FWSEGIT6.js');
27
31
  require('./chunk-ALJJRZNJ.js');
28
32
  require('./chunk-XNYIZMNQ.js');
29
33
  require('./chunk-DIAWYWT5.js');
30
- require('./chunk-6JNBMTCZ.js');
34
+ require('./chunk-2OY5DXTC.js');
31
35
  require('./chunk-OG64RBAC.js');
32
36
  require('./chunk-RLX5ZFNX.js');
33
37
  require('./chunk-COGTRVWW.js');
34
38
 
35
39
  // src/cli/commands/settings.ts
40
+ var _commander = require('commander');
36
41
  var _fs = require('fs');
37
- var eventHelp = _chunk7P2QVMBPjs.PRODUCT_NOTIFICATION_EVENT_CATALOG.map(
42
+ var eventHelp = _chunkAD2WJUZAjs.PRODUCT_NOTIFICATION_EVENT_CATALOG.map(
38
43
  (event) => ` ${event.id.padEnd(28)} ${event.description}`
39
44
  ).join("\n");
40
45
  function slackDestination(settings) {
@@ -46,7 +51,7 @@ function slackDestination(settings) {
46
51
  archivedAt: typeof entry.archivedAt === "number" ? entry.archivedAt : void 0
47
52
  })
48
53
  );
49
- return _chunk7P2QVMBPjs.resolveLegacySlackNotification.call(void 0, destinations);
54
+ return _chunkAD2WJUZAjs.resolveLegacySlackNotification.call(void 0, destinations);
50
55
  }
51
56
  function eventLines(settings, destinationId) {
52
57
  const enabled = new Map(
@@ -68,10 +73,10 @@ function requireCatalogEvent(settings, eventType) {
68
73
  return event;
69
74
  }
70
75
  async function printSettings(options) {
71
- const settings = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().getNotificationSettings();
76
+ const settings = await new (0, _chunkDB54ROPHjs.DeeplineClient)().getNotificationSettings();
72
77
  const slack = slackDestination(settings);
73
78
  const destinationId = typeof _optionalChain([slack, 'optionalAccess', _ => _._id]) === "string" ? slack._id : void 0;
74
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
79
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
75
80
  {
76
81
  settings,
77
82
  render: {
@@ -126,8 +131,8 @@ Automatic updates are enabled by default. Turning them on clears an existing
126
131
  version pin. Pinning installs and holds one exact pin-aware CLI version.
127
132
  `
128
133
  ).option("--json", "Emit JSON output").action((options) => {
129
- const preferences = _chunkA6LA42JYjs.readCliUpdatePreferences.call(void 0, );
130
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
134
+ const preferences = _chunkLRSRJJPDjs.readCliUpdatePreferences.call(void 0, );
135
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
131
136
  {
132
137
  autoUpdateEnabled: preferences.autoUpdateEnabled,
133
138
  pinnedVersion: preferences.pinnedVersion,
@@ -150,8 +155,8 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
150
155
  autoupdate.command(enabled ? "on" : "off").description(
151
156
  enabled ? "Enable automatic CLI updates and clear any version pin." : "Disable automatic CLI updates."
152
157
  ).option("--json", "Emit JSON output").action((options) => {
153
- const preferences = _chunkA6LA42JYjs.setCliAutoUpdateEnabled.call(void 0, enabled);
154
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
158
+ const preferences = _chunkLRSRJJPDjs.setCliAutoUpdateEnabled.call(void 0, enabled);
159
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
155
160
  {
156
161
  ok: true,
157
162
  autoUpdateEnabled: preferences.autoUpdateEnabled,
@@ -172,12 +177,35 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
172
177
  });
173
178
  }
174
179
  autoupdate.command("pin").description("Install and hold an exact pin-aware CLI version.").argument("<version>", "Exact semantic version from a pin-aware release").option("--json", "Emit JSON output").action(async (version, options) => {
175
- process.exitCode = await _chunkA6LA42JYjs.runUpdateCommand.call(void 0, {
180
+ process.exitCode = await _chunkLRSRJJPDjs.runUpdateCommand.call(void 0, {
176
181
  pin: version,
177
182
  json: options.json,
178
183
  executeWithJson: true
179
184
  });
180
185
  });
186
+ settings.command("skills-sync").description("Configure automatic skill syncing on this machine.").addArgument(new (0, _commander.Argument)("[mode]").choices(["on", "off"])).option("--dry-run", "Show the requested setting without saving it").option("--json", "Emit JSON output").action((mode, options) => {
187
+ const autoSkillsSyncEnabled = mode === void 0 ? _chunkHINTYT5Hjs.isCliSkillsSyncEnabled.call(void 0, ) : mode === "on";
188
+ if (mode !== void 0 && !options.dryRun) {
189
+ _chunkHINTYT5Hjs.setCliSkillsSyncEnabled.call(void 0, autoSkillsSyncEnabled);
190
+ }
191
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
192
+ {
193
+ autoSkillsSyncEnabled,
194
+ ...options.dryRun ? { dryRun: true } : {},
195
+ render: {
196
+ sections: [
197
+ {
198
+ title: "automatic skill sync",
199
+ lines: [
200
+ `${options.dryRun && mode !== void 0 ? "would set" : "status"}: ${autoSkillsSyncEnabled ? "on" : "off"}`
201
+ ]
202
+ }
203
+ ]
204
+ }
205
+ },
206
+ { json: options.json }
207
+ );
208
+ });
181
209
  const notifications = settings.command("notifications").description(
182
210
  "Configure Deepline product notifications and delivery safety."
183
211
  ).addHelpText(
@@ -200,15 +228,15 @@ notifications; there is no general integrations CLI.
200
228
  if (destination !== "slack")
201
229
  throw new Error("Only slack is supported.");
202
230
  if (options.dryRun) {
203
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
231
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
204
232
  { dryRun: true, destination, action: "start_oauth" },
205
233
  { json: options.json }
206
234
  );
207
235
  return;
208
236
  }
209
- const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().connectNotificationSlack();
210
- const browser = options.open ? _chunkQKKU2FH4js.openInBrowser.call(void 0, result.redirect_url, { deduplicate: false }) : "not_requested";
211
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
237
+ const result = await new (0, _chunkDB54ROPHjs.DeeplineClient)().connectNotificationSlack();
238
+ const browser = options.open ? _chunk75NAFY36js.openInBrowser.call(void 0, result.redirect_url, { deduplicate: false }) : "not_requested";
239
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
212
240
  {
213
241
  ...result,
214
242
  browser,
@@ -232,10 +260,10 @@ notifications; there is no general integrations CLI.
232
260
  }
233
261
  );
234
262
  notifications.command("channels").description("List Slack channels visible to the connected Deepline app.").option("--query <text>", "Filter channels by name").option("--json", "Emit JSON output").action(async (options) => {
235
- const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().listNotificationSlackChannels(
263
+ const result = await new (0, _chunkDB54ROPHjs.DeeplineClient)().listNotificationSlackChannels(
236
264
  options.query
237
265
  );
238
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
266
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
239
267
  {
240
268
  ...result,
241
269
  render: {
@@ -261,14 +289,14 @@ notifications; there is no general integrations CLI.
261
289
  }
262
290
  const target = options.memberId ? { memberId: options.memberId } : options.channel;
263
291
  if (options.dryRun) {
264
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
292
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
265
293
  { dryRun: true, destination, target },
266
294
  { json: options.json }
267
295
  );
268
296
  return;
269
297
  }
270
- const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().setNotificationSlack(target);
271
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
298
+ const result = await new (0, _chunkDB54ROPHjs.DeeplineClient)().setNotificationSlack(target);
299
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
272
300
  {
273
301
  ok: true,
274
302
  result,
@@ -294,14 +322,14 @@ notifications; there is no general integrations CLI.
294
322
  notifications.command("test").description("Send a validation ping to a destination.").argument("<destination>", "Destination kind (currently slack)").option("--dry-run", "Describe the external send without sending").option("--json", "Emit JSON output").action(async (destination, options) => {
295
323
  if (destination !== "slack") throw new Error("Only slack is supported.");
296
324
  if (options.dryRun) {
297
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
325
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
298
326
  { dryRun: true, destination, action: "send_test_ping" },
299
327
  { json: options.json }
300
328
  );
301
329
  return;
302
330
  }
303
- const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().testNotificationSlack();
304
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
331
+ const result = await new (0, _chunkDB54ROPHjs.DeeplineClient)().testNotificationSlack();
332
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
305
333
  {
306
334
  ...result,
307
335
  render: {
@@ -314,14 +342,14 @@ notifications; there is no general integrations CLI.
314
342
  notifications.command("disable").description("Disable a product-notification destination.").argument("<destination>", "Destination kind (currently slack)").option("--dry-run", "Describe the mutation without changing settings").option("--json", "Emit JSON output").action(async (destination, options) => {
315
343
  if (destination !== "slack") throw new Error("Only slack is supported.");
316
344
  if (options.dryRun) {
317
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
345
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
318
346
  { dryRun: true, destination, action: "disable" },
319
347
  { json: options.json }
320
348
  );
321
349
  return;
322
350
  }
323
- const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().disableNotificationSlack();
324
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
351
+ const result = await new (0, _chunkDB54ROPHjs.DeeplineClient)().disableNotificationSlack();
352
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
325
353
  {
326
354
  ok: true,
327
355
  result,
@@ -340,10 +368,10 @@ ${eventHelp}
340
368
  `
341
369
  );
342
370
  subscriptions.command("list").description("List every supported event and its current state.").option("--json", "Emit JSON output").action(async (options) => {
343
- const current = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().getNotificationSettings();
371
+ const current = await new (0, _chunkDB54ROPHjs.DeeplineClient)().getNotificationSettings();
344
372
  const destination = slackDestination(current);
345
373
  const destinationId = typeof _optionalChain([destination, 'optionalAccess', _2 => _2._id]) === "string" ? destination._id : void 0;
346
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
374
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
347
375
  {
348
376
  catalog: current.catalog,
349
377
  subscriptions: current.subscriptions,
@@ -360,14 +388,14 @@ ${eventHelp}
360
388
  );
361
389
  });
362
390
  subscriptions.command("describe").description("Describe one event from the shared product catalog.").argument("<event>", "Event ID; run subscriptions list to enumerate").option("--json", "Emit JSON output").action(async (eventType, options) => {
363
- const current = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().getNotificationSettings();
391
+ const current = await new (0, _chunkDB54ROPHjs.DeeplineClient)().getNotificationSettings();
364
392
  const event = requireCatalogEvent(current, eventType);
365
393
  const destination = slackDestination(current);
366
394
  const destinationId = typeof _optionalChain([destination, 'optionalAccess', _3 => _3._id]) === "string" ? destination._id : void 0;
367
395
  const subscription = current.subscriptions.find(
368
396
  (entry) => entry.eventType === event.id && (!destinationId || entry.destinationId === destinationId)
369
397
  );
370
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
398
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
371
399
  {
372
400
  event,
373
401
  enabled: _optionalChain([subscription, 'optionalAccess', _4 => _4.enabled]) === true,
@@ -388,11 +416,11 @@ ${eventHelp}
388
416
  });
389
417
  for (const enabled of [true, false]) {
390
418
  subscriptions.command(enabled ? "enable" : "disable").description(`${enabled ? "Enable" : "Disable"} one supported event.`).argument("<event>", "Event ID; run subscriptions list to enumerate").option("--dry-run", "Validate intent without changing settings").option("--json", "Emit JSON output").action(async (eventType, options) => {
391
- const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
419
+ const client = new (0, _chunkDB54ROPHjs.DeeplineClient)();
392
420
  const current = await client.getNotificationSettings();
393
421
  const event = requireCatalogEvent(current, eventType);
394
422
  if (options.dryRun) {
395
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
423
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
396
424
  { dryRun: true, event, enabled },
397
425
  { json: options.json }
398
426
  );
@@ -402,7 +430,7 @@ ${eventHelp}
402
430
  [event.id],
403
431
  enabled
404
432
  );
405
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
433
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
406
434
  {
407
435
  ok: true,
408
436
  event: event.id,
@@ -423,11 +451,11 @@ ${eventHelp}
423
451
  }
424
452
  const dlq = notifications.command("dlq").description("Inspect and explicitly resolve inert failed deliveries.");
425
453
  dlq.command("list").option("--limit <count>", "Maximum deliveries", "25").option("--json", "Emit JSON output").action(async (options) => {
426
- const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().listNotificationDlq(
454
+ const result = await new (0, _chunkDB54ROPHjs.DeeplineClient)().listNotificationDlq(
427
455
  Number(options.limit)
428
456
  );
429
457
  const deliveries = _nullishCoalesce(result.deliveries, () => ( []));
430
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
458
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
431
459
  {
432
460
  ...result,
433
461
  render: {
@@ -445,10 +473,10 @@ ${eventHelp}
445
473
  );
446
474
  });
447
475
  dlq.command("get").argument("<delivery-id>").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
448
- const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().getNotificationDlqDelivery(
476
+ const result = await new (0, _chunkDB54ROPHjs.DeeplineClient)().getNotificationDlqDelivery(
449
477
  deliveryId
450
478
  );
451
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0, result, {
479
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0, result, {
452
480
  json: options.json
453
481
  });
454
482
  });
@@ -457,17 +485,17 @@ ${eventHelp}
457
485
  `${action === "retry" ? "Replay once from attempt zero" : "Archive"} one delivery.`
458
486
  ).argument("<delivery-id>").option("--dry-run", "Describe the mutation without changing state").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
459
487
  if (options.dryRun) {
460
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
488
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
461
489
  { dryRun: true, action, deliveryId },
462
490
  { json: options.json }
463
491
  );
464
492
  return;
465
493
  }
466
- const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().updateNotificationDlqDelivery(
494
+ const result = await new (0, _chunkDB54ROPHjs.DeeplineClient)().updateNotificationDlqDelivery(
467
495
  deliveryId,
468
496
  action
469
497
  );
470
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
498
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
471
499
  { ok: true, action, deliveryId, result },
472
500
  { json: options.json }
473
501
  );
@@ -568,8 +596,8 @@ Examples:
568
596
  `
569
597
  );
570
598
  configuration.command("get").description("Show the effective group-based notification configuration.").option("--json", "Emit JSON output").action(async (options) => {
571
- const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().getNotificationConfiguration();
572
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
599
+ const result = await new (0, _chunkDB54ROPHjs.DeeplineClient)().getNotificationConfiguration();
600
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
573
601
  {
574
602
  ...result,
575
603
  render: {
@@ -594,21 +622,21 @@ Examples:
594
622
  ).option("--dry-run", "Validate and display the file without saving it").option("--json", "Emit JSON output").action(async (file, options) => {
595
623
  const input = await readNotificationConfigurationChange(file);
596
624
  if (options.dryRun) {
597
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
625
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
598
626
  { dryRun: true, ...input },
599
627
  { json: options.json }
600
628
  );
601
629
  return;
602
630
  }
603
- const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().changeNotificationConfiguration(
631
+ const result = await new (0, _chunkDB54ROPHjs.DeeplineClient)().changeNotificationConfiguration(
604
632
  input.expectedWorkspaceVersion,
605
633
  input.change
606
634
  );
607
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0, result, { json: options.json });
635
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0, result, { json: options.json });
608
636
  });
609
637
  notifications.command("events").description("List the Play events available to a notification.").option("--json", "Emit JSON output").action(async (options) => {
610
- const settings = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().getNotifications();
611
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
638
+ const settings = await new (0, _chunkDB54ROPHjs.DeeplineClient)().getNotifications();
639
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
612
640
  {
613
641
  events: settings.catalog,
614
642
  render: {
@@ -626,9 +654,9 @@ Examples:
626
654
  );
627
655
  });
628
656
  notifications.command("list").description("List named notifications and their selected Play events.").option("--json", "Emit JSON output").option("--compact", "Emit only names, state, target, and event IDs").action(async (options) => {
629
- const settings = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().getNotifications();
657
+ const settings = await new (0, _chunkDB54ROPHjs.DeeplineClient)().getNotifications();
630
658
  const rules = _nullishCoalesce(settings.notifications, () => ( []));
631
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
659
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
632
660
  {
633
661
  notifications: options.compact ? rules.map((rule) => ({
634
662
  id: rule.id,
@@ -656,10 +684,10 @@ Examples:
656
684
  });
657
685
  notifications.command("get").argument("<name>", "Notification name or ID").description("Show one named notification.").option("--json", "Emit JSON output").action(async (name, options) => {
658
686
  const rule = notificationByName(
659
- await new (0, _chunkSMSQVRHEjs.DeeplineClient)().getNotifications(),
687
+ await new (0, _chunkDB54ROPHjs.DeeplineClient)().getNotifications(),
660
688
  name
661
689
  );
662
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0, { notification: rule }, { json: options.json });
690
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0, { notification: rule }, { json: options.json });
663
691
  });
664
692
  notifications.command("add").argument("<name>", "Group name, for example oncall").requiredOption(
665
693
  "--to <target>",
@@ -673,14 +701,14 @@ Examples:
673
701
  []
674
702
  ).option("--dry-run", "Describe the notification without saving it").option("--json", "Emit JSON output").action(
675
703
  async (name, options) => {
676
- const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().createNotificationGroup({
704
+ const result = await new (0, _chunkDB54ROPHjs.DeeplineClient)().createNotificationGroup({
677
705
  name,
678
706
  targets: options.to,
679
707
  legacyEvents: options.for,
680
708
  dryRun: options.dryRun
681
709
  });
682
710
  if (result.mode === "dry_run") {
683
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
711
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
684
712
  result.compatibilityMode ? {
685
713
  dryRun: true,
686
714
  name: result.name,
@@ -697,7 +725,7 @@ Examples:
697
725
  return;
698
726
  }
699
727
  if (result.mode === "legacy") {
700
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
728
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
701
729
  {
702
730
  notification: result.notification,
703
731
  render: {
@@ -719,7 +747,7 @@ Examples:
719
747
  );
720
748
  return;
721
749
  }
722
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
750
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
723
751
  {
724
752
  ...result,
725
753
  render: {
@@ -755,12 +783,12 @@ Examples:
755
783
  []
756
784
  ).option("--dry-run", "Describe the change without saving it").option("--json", "Emit JSON output").action(
757
785
  async (name, options) => {
758
- const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
786
+ const client = new (0, _chunkDB54ROPHjs.DeeplineClient)();
759
787
  const rule = notificationByName(await client.getNotifications(), name);
760
788
  const target = options.to ? parseSlackTarget(options.to) : rule.target.kind === "member" ? { memberId: rule.target.id } : { channel: rule.target.name };
761
789
  const eventTypes = options.for.length ? options.for : rule.eventTypes;
762
790
  if (options.dryRun) {
763
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
791
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
764
792
  { dryRun: true, notification: rule.id, target, eventTypes },
765
793
  { json: options.json }
766
794
  );
@@ -771,15 +799,15 @@ Examples:
771
799
  ...target,
772
800
  eventTypes
773
801
  });
774
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
802
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
775
803
  }
776
804
  );
777
805
  const slack = notifications.command("slack").description("Select a channel from the connected Slack integration.");
778
806
  slack.command("channels").option("--search <text>", "Filter channel names").option("--json", "Emit JSON output").action(async (options) => {
779
- const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().listNotificationChannels(
807
+ const result = await new (0, _chunkDB54ROPHjs.DeeplineClient)().listNotificationChannels(
780
808
  options.search
781
809
  );
782
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
810
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
783
811
  {
784
812
  ...result,
785
813
  render: {
@@ -799,31 +827,31 @@ Examples:
799
827
  ["resume", true]
800
828
  ]) {
801
829
  notifications.command(command).argument("<name>", "Notification name or ID").option("--dry-run", "Describe the change without saving it").option("--json", "Emit JSON output").action(async (name, options) => {
802
- const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
830
+ const client = new (0, _chunkDB54ROPHjs.DeeplineClient)();
803
831
  const rule = notificationByName(await client.getNotifications(), name);
804
832
  if (options.dryRun) {
805
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
833
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
806
834
  { dryRun: true, notification: rule.id, enabled },
807
835
  { json: options.json }
808
836
  );
809
837
  return;
810
838
  }
811
839
  const result = await client.updateNotification(rule.id, { enabled });
812
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
840
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
813
841
  });
814
842
  }
815
843
  notifications.command("test").argument("<name>", "Notification name or ID").option("--dry-run", "Describe the external send without sending").option("--json", "Emit JSON output").action(async (name, options) => {
816
- const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
844
+ const client = new (0, _chunkDB54ROPHjs.DeeplineClient)();
817
845
  const rule = notificationByName(await client.getNotifications(), name);
818
846
  if (options.dryRun) {
819
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
847
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
820
848
  { dryRun: true, notification: rule.id, action: "send_test" },
821
849
  { json: options.json }
822
850
  );
823
851
  return;
824
852
  }
825
853
  const result = await client.testNotification(rule.id);
826
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
854
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
827
855
  { ...result, notification: rule.name },
828
856
  { json: options.json }
829
857
  );
@@ -831,17 +859,17 @@ Examples:
831
859
  notifications.command("delete").argument("<name>", "Notification name or ID").description(
832
860
  "Archive one notification without touching its provider integration."
833
861
  ).option("--dry-run", "Describe the deletion without changing state").option("--json", "Emit JSON output").action(async (name, options) => {
834
- const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
862
+ const client = new (0, _chunkDB54ROPHjs.DeeplineClient)();
835
863
  const rule = notificationByName(await client.getNotifications(), name);
836
864
  if (options.dryRun) {
837
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
865
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
838
866
  { dryRun: true, notification: rule.id, action: "archive" },
839
867
  { json: options.json }
840
868
  );
841
869
  return;
842
870
  }
843
871
  const result = await client.deleteNotification(rule.id);
844
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
872
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
845
873
  { ...result, notification: rule.name },
846
874
  { json: options.json }
847
875
  );
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-2ABRDH3B.mjs";
3
+ } from "./chunk-YWZEBPXK.mjs";
4
4
  import {
5
5
  PRODUCT_NOTIFICATION_EVENT_CATALOG,
6
6
  resolveLegacySlackNotification
7
- } from "./chunk-OX2D6BG4.mjs";
7
+ } from "./chunk-ONBXTEFQ.mjs";
8
8
  import "./chunk-L2VKAASU.mjs";
9
9
  import "./chunk-N4TR6QRI.mjs";
10
10
  import "./chunk-S3A4IXBQ.mjs";
@@ -13,26 +13,31 @@ import {
13
13
  readCliUpdatePreferences,
14
14
  runUpdateCommand,
15
15
  setCliAutoUpdateEnabled
16
- } from "./chunk-VJVJWZ6I.mjs";
17
- import "./chunk-SVFTZTCI.mjs";
18
- import "./chunk-GGBXNQCR.mjs";
19
- import "./chunk-XHZSPMNC.mjs";
20
- import "./chunk-DEAJVQEG.mjs";
16
+ } from "./chunk-BJ5OX62J.mjs";
17
+ import "./chunk-3BFZEHBH.mjs";
18
+ import "./chunk-EN7GXLFX.mjs";
19
+ import {
20
+ isCliSkillsSyncEnabled,
21
+ setCliSkillsSyncEnabled
22
+ } from "./chunk-GJNIC2CO.mjs";
23
+ import "./chunk-TEMORCEE.mjs";
24
+ import "./chunk-FFGQR5J3.mjs";
21
25
  import {
22
26
  openInBrowser,
23
27
  printCommandEnvelope
24
- } from "./chunk-3MLFFWDM.mjs";
25
- import "./chunk-Y6XKCEPK.mjs";
26
- import "./chunk-YOQ2NNDO.mjs";
28
+ } from "./chunk-2CFTDVEP.mjs";
29
+ import "./chunk-YVOS5KSG.mjs";
30
+ import "./chunk-TS4KFQKS.mjs";
27
31
  import "./chunk-4QF2K7TM.mjs";
28
32
  import "./chunk-DLIRSHV6.mjs";
29
33
  import "./chunk-HBL4PM5Q.mjs";
30
- import "./chunk-7F4OEHQK.mjs";
34
+ import "./chunk-OPBXKB57.mjs";
31
35
  import "./chunk-WZYKRD7T.mjs";
32
36
  import "./chunk-5JPKRDFC.mjs";
33
37
  import "./chunk-KRD6H754.mjs";
34
38
 
35
39
  // src/cli/commands/settings.ts
40
+ import { Argument } from "commander";
36
41
  import { readFileSync } from "fs";
37
42
  var eventHelp = PRODUCT_NOTIFICATION_EVENT_CATALOG.map(
38
43
  (event) => ` ${event.id.padEnd(28)} ${event.description}`
@@ -178,6 +183,29 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
178
183
  executeWithJson: true
179
184
  });
180
185
  });
186
+ settings.command("skills-sync").description("Configure automatic skill syncing on this machine.").addArgument(new Argument("[mode]").choices(["on", "off"])).option("--dry-run", "Show the requested setting without saving it").option("--json", "Emit JSON output").action((mode, options) => {
187
+ const autoSkillsSyncEnabled = mode === void 0 ? isCliSkillsSyncEnabled() : mode === "on";
188
+ if (mode !== void 0 && !options.dryRun) {
189
+ setCliSkillsSyncEnabled(autoSkillsSyncEnabled);
190
+ }
191
+ printCommandEnvelope(
192
+ {
193
+ autoSkillsSyncEnabled,
194
+ ...options.dryRun ? { dryRun: true } : {},
195
+ render: {
196
+ sections: [
197
+ {
198
+ title: "automatic skill sync",
199
+ lines: [
200
+ `${options.dryRun && mode !== void 0 ? "would set" : "status"}: ${autoSkillsSyncEnabled ? "on" : "off"}`
201
+ ]
202
+ }
203
+ ]
204
+ }
205
+ },
206
+ { json: options.json }
207
+ );
208
+ });
181
209
  const notifications = settings.command("notifications").description(
182
210
  "Configure Deepline product notifications and delivery safety."
183
211
  ).addHelpText(