deepline 0.3.324 → 0.3.326

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 (133) hide show
  1. package/dist/bundling-sources/sdk/src/client.ts +23 -25
  2. package/dist/bundling-sources/sdk/src/compat.ts +11 -6
  3. package/dist/bundling-sources/sdk/src/db/query.ts +172 -0
  4. package/dist/bundling-sources/sdk/src/errors.ts +35 -0
  5. package/dist/bundling-sources/sdk/src/index.ts +13 -0
  6. package/dist/bundling-sources/sdk/src/play.ts +34 -31
  7. package/dist/bundling-sources/sdk/src/plays/authoring-graph-path.ts +13 -0
  8. package/dist/bundling-sources/sdk/src/plays/bundle-play-file.ts +2 -1
  9. package/dist/bundling-sources/sdk/src/plays/local-play-execution.ts +189 -0
  10. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  11. package/dist/bundling-sources/sdk/src/tool-calls.ts +1 -1
  12. package/dist/bundling-sources/sdk/src/types.ts +6 -0
  13. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +2 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +7 -1
  15. package/dist/bundling-sources/shared_libs/play-runtime/runtime-actions.ts +1 -0
  16. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +5 -0
  17. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +84 -10
  18. package/dist/bundling-sources/shared_libs/plays/artifact-types.ts +9 -0
  19. package/dist/cli/auth-6STWK6UK.js +31 -0
  20. package/dist/cli/{auth-6KWNR6AI.mjs → auth-VON5FFUK.mjs} +4 -4
  21. package/dist/cli/{billing-VQ2NUJLB.mjs → billing-X6JUEFRE.mjs} +4 -4
  22. package/dist/cli/{billing-CLLWHIAT.js → billing-YI4RZI2O.js} +70 -70
  23. package/dist/cli/{chunk-NC2ZXG2Y.js → chunk-3NGWGFVL.js} +26 -26
  24. package/dist/cli/{chunk-5CQ554BM.mjs → chunk-4AB4Y6FF.mjs} +1 -1
  25. package/dist/cli/{chunk-EXKRHZRG.js → chunk-4LNBSQM4.js} +5928 -5730
  26. package/dist/cli/{chunk-G4F2AIQ5.js → chunk-5NXHSRRE.js} +6 -6
  27. package/dist/cli/{chunk-XNL3SEMC.js → chunk-AFNEQ43J.js} +8 -3
  28. package/dist/cli/{chunk-XSEMQ4II.js → chunk-AGH6YP2T.js} +2 -1
  29. package/dist/cli/chunk-AID3OYVJ.js +8 -0
  30. package/dist/cli/{chunk-HHZDWBSQ.mjs → chunk-BQJVMKWL.mjs} +1 -1
  31. package/dist/cli/{chunk-TJGJTB5T.mjs → chunk-BR7GGTAE.mjs} +24 -1
  32. package/dist/cli/{chunk-IXYR65PW.js → chunk-BUYZEUY4.js} +1 -1
  33. package/dist/cli/{chunk-GROXVGGW.js → chunk-CUUHQ3AO.js} +6 -6
  34. package/dist/cli/{chunk-NIOFMRYW.mjs → chunk-DFDXKOLR.mjs} +98 -113
  35. package/dist/cli/{chunk-GMO3NBE2.js → chunk-EMZ7Y5SW.js} +70 -67
  36. package/dist/cli/chunk-GVESPYSY.mjs +234 -0
  37. package/dist/cli/{chunk-N5E66DP3.js → chunk-GVYKY6T6.js} +344 -254
  38. package/dist/cli/{chunk-EHSI2DMO.mjs → chunk-IQCCGOQH.mjs} +4 -20
  39. package/dist/cli/{chunk-76VKBPOC.mjs → chunk-JOA6IKDE.mjs} +7 -2
  40. package/dist/cli/{chunk-3ZKAKQYC.mjs → chunk-KLWBAQ5A.mjs} +104 -14
  41. package/dist/cli/{chunk-PAA4FYCF.js → chunk-KZ4PCK4O.js} +29 -45
  42. package/dist/cli/chunk-LVEDPCLJ.js +234 -0
  43. package/dist/cli/{chunk-I7RLL7LN.mjs → chunk-M7CPVMDB.mjs} +1 -1
  44. package/dist/cli/{chunk-2UQUOUAW.js → chunk-MDQZQ3NY.js} +2 -2
  45. package/dist/cli/{chunk-V5PA6TCT.js → chunk-MKHSZA2X.js} +48 -48
  46. package/dist/cli/{chunk-LHJKYMTS.mjs → chunk-MOBZS4F3.mjs} +1 -1
  47. package/dist/cli/chunk-OVDNJAJN.mjs +8 -0
  48. package/dist/cli/{chunk-QM2Z4FQF.js → chunk-T33W6JUJ.js} +6 -6
  49. package/dist/cli/{chunk-DO2VA5UP.mjs → chunk-TDSNAC3C.mjs} +2 -2
  50. package/dist/cli/{chunk-D5YJHGST.js → chunk-TXVOB5J2.js} +29 -6
  51. package/dist/cli/{chunk-TZZNI2A4.js → chunk-TZQMFWLF.js} +147 -162
  52. package/dist/cli/{chunk-NQJQ3CLX.mjs → chunk-VGKVLADU.mjs} +3 -3
  53. package/dist/cli/{chunk-U2RPP53P.mjs → chunk-VKXGOQG5.mjs} +5674 -5476
  54. package/dist/cli/{chunk-AKM5JVPG.mjs → chunk-W74E5ETE.mjs} +12 -9
  55. package/dist/cli/{chunk-7PZFGB7L.mjs → chunk-YIY74KUF.mjs} +2 -1
  56. package/dist/cli/{chunk-5QZFWY7C.mjs → chunk-ZRN6YOF2.mjs} +2 -2
  57. package/dist/cli/client-TEBW2P24.js +20 -0
  58. package/dist/cli/{client-VHUKTDAZ.mjs → client-ZMOKUNL2.mjs} +3 -3
  59. package/dist/cli/{csv-5MZY7HU5.js → csv-HZRKEI7J.js} +12 -12
  60. package/dist/cli/{csv-7DA4APB6.mjs → csv-IICJHJZ4.mjs} +3 -3
  61. package/dist/cli/{db-ICG3FUVE.js → db-TM5NZF73.js} +226 -149
  62. package/dist/cli/{db-7UPW3N5U.mjs → db-X4B7YFNY.mjs} +214 -137
  63. package/dist/cli/{describe-VDRY2JCE.js → describe-BDBARWZJ.js} +28 -27
  64. package/dist/cli/{describe-ZAPGM5ND.mjs → describe-GMVS3LFC.mjs} +12 -11
  65. package/dist/cli/{executions-TK3C2FAQ.mjs → executions-447ZJMN4.mjs} +4 -4
  66. package/dist/cli/{executions-D5GYCY3A.js → executions-QX25UOQM.js} +6 -6
  67. package/dist/cli/{feedback-PZAZZUXF.js → feedback-4IXUTBX7.js} +6 -6
  68. package/dist/cli/{feedback-T4EIP5QR.mjs → feedback-JB7HHIC6.mjs} +3 -3
  69. package/dist/cli/git-C7C7DTEH.js +23 -0
  70. package/dist/cli/{git-WBFWIVO5.mjs → git-VID6KGAA.mjs} +4 -4
  71. package/dist/cli/index.js +105 -87
  72. package/dist/cli/index.mjs +65 -47
  73. package/dist/cli/{legacy-noops-LRBJWXRK.js → legacy-noops-3FYTCOZO.js} +7 -7
  74. package/dist/cli/{legacy-noops-DUCK7OKN.mjs → legacy-noops-SGR3G5WS.mjs} +4 -4
  75. package/dist/cli/{monitors-WYH5AQIO.mjs → monitors-SH4FOMBM.mjs} +4 -4
  76. package/dist/cli/{monitors-7S2SL62G.js → monitors-SP52UHS4.js} +85 -85
  77. package/dist/cli/{org-XCSMLTUW.mjs → org-B32MMIQT.mjs} +4 -4
  78. package/dist/cli/{org-EQNGGHPV.js → org-UQMX7JOR.js} +60 -60
  79. package/dist/cli/play-UCIWBN7U.js +153 -0
  80. package/dist/cli/{play-A5ISFBJM.mjs → play-XTE4LUP7.mjs} +11 -10
  81. package/dist/cli/{providers-DR2CLD3N.js → providers-JNMJJ2OH.js} +7 -7
  82. package/dist/cli/{providers-KHTZFQ5I.mjs → providers-RWLN6FUR.mjs} +4 -4
  83. package/dist/cli/{quickstart-NIRWI6YU.js → quickstart-HK6WZ342.js} +5 -5
  84. package/dist/cli/{quickstart-KT4LKORA.mjs → quickstart-IDB3Y375.mjs} +3 -3
  85. package/dist/cli/{search-WCEXPBAT.mjs → search-6D3IFNPT.mjs} +5 -5
  86. package/dist/cli/search-LUZ2S7DH.js +26 -0
  87. package/dist/cli/{secrets-QSFEZGVE.js → secrets-JOQB57IE.js} +13 -13
  88. package/dist/cli/{secrets-TN7DW3QR.mjs → secrets-TZ53CQ3D.mjs} +4 -4
  89. package/dist/cli/{sessions-WSE5FN4H.mjs → sessions-4MBDC4EK.mjs} +4 -4
  90. package/dist/cli/{sessions-LJS6W67T.js → sessions-QSAICDXX.js} +5 -5
  91. package/dist/cli/{settings-FGS3VYJN.js → settings-OTOCW7L7.js} +74 -74
  92. package/dist/cli/{settings-Z3V53A6J.mjs → settings-RKQFMLDU.mjs} +7 -7
  93. package/dist/cli/{setup-GMH4VJS3.mjs → setup-2S5TNTUB.mjs} +6 -6
  94. package/dist/cli/{setup-ZA234HEY.js → setup-AKZUDVYY.js} +41 -41
  95. package/dist/cli/skills-26LASHZF.js +28 -0
  96. package/dist/cli/{skills-7G2RZMYH.mjs → skills-AGZXDLSA.mjs} +4 -4
  97. package/dist/cli/{tools-7EE4BGXO.mjs → tools-7Y6RD6FY.mjs} +8 -7
  98. package/dist/cli/tools-L5VIJQWX.js +39 -0
  99. package/dist/cli/{update-O5QEWS7K.mjs → update-M7YGF67I.mjs} +6 -6
  100. package/dist/cli/update-MNHF6M2F.js +28 -0
  101. package/dist/cli/{workflow-KE54RUTR.mjs → workflow-CTVE7S7W.mjs} +5 -5
  102. package/dist/cli/{workflow-M5PAAW3O.js → workflow-NGMY425T.js} +15 -15
  103. package/dist/{client-BV68GMPo.d.ts → client-DHq8dJ56.d.ts} +45 -11
  104. package/dist/{client-D9ACjiRC.d.mts → client-wiWPZhnI.d.mts} +45 -11
  105. package/dist/{compiler-manifest-BXcZ4P4W.d.mts → compiler-manifest-9TkZ_ykI.d.mts} +717 -711
  106. package/dist/{compiler-manifest-BXcZ4P4W.d.ts → compiler-manifest-9TkZ_ykI.d.ts} +717 -711
  107. package/dist/index-B-5_Xhud.d.mts +75 -0
  108. package/dist/index-ykksoEyR.d.ts +75 -0
  109. package/dist/index.d.mts +52 -13
  110. package/dist/index.d.ts +52 -13
  111. package/dist/index.js +92 -28
  112. package/dist/index.mjs +91 -27
  113. package/dist/install-integrity.json +91 -84
  114. package/dist/plays/bundle-play-file.d.mts +7 -75
  115. package/dist/plays/bundle-play-file.d.ts +7 -75
  116. package/dist/plays/bundle-play-file.mjs +1 -1
  117. package/dist/plays/run-request.d.mts +2 -2
  118. package/dist/plays/run-request.d.ts +2 -2
  119. package/dist/release.d.mts +1 -1
  120. package/dist/release.d.ts +1 -1
  121. package/dist/release.js +2 -2
  122. package/dist/release.mjs +1 -1
  123. package/package.json +1 -1
  124. package/dist/cli/auth-LKSTC3YV.js +0 -31
  125. package/dist/cli/chunk-OWJZUE3Y.mjs +0 -103
  126. package/dist/cli/chunk-SDK3ZA2C.js +0 -103
  127. package/dist/cli/client-WMSTRUGP.js +0 -20
  128. package/dist/cli/git-73N6EUZ3.js +0 -23
  129. package/dist/cli/play-CLC2Z5SO.js +0 -152
  130. package/dist/cli/search-DM7IQS5F.js +0 -26
  131. package/dist/cli/skills-6APAQV6W.js +0 -28
  132. package/dist/cli/tools-EPYUFWPB.js +0 -38
  133. package/dist/cli/update-FPVX3XJC.js +0 -28
@@ -7,12 +7,11 @@ import {
7
7
  } from "./chunk-WXLOW623.mjs";
8
8
  import {
9
9
  canAutomaticallyApplyUpdatePlan,
10
- consumePendingCliUpdateMessages,
11
10
  resolveUpdatePlan,
12
11
  runAutomaticUpdatePlan,
13
12
  shouldRunCliAutoUpdate
14
- } from "./chunk-EHSI2DMO.mjs";
15
- import "./chunk-5CQ554BM.mjs";
13
+ } from "./chunk-IQCCGOQH.mjs";
14
+ import "./chunk-4AB4Y6FF.mjs";
16
15
  import {
17
16
  SDK_COMPATIBILITY_FAST_DEADLINE_MS,
18
17
  SKILLS_AUTO_SYNC_COMMAND,
@@ -25,7 +24,7 @@ import {
25
24
  readTrustedCleanCompatibility,
26
25
  resolveSdkCliFailureExitCode,
27
26
  syncSdkSkillsIfNeeded
28
- } from "./chunk-AKM5JVPG.mjs";
27
+ } from "./chunk-W74E5ETE.mjs";
29
28
  import {
30
29
  recordCliTrace,
31
30
  traceCliSpan
@@ -39,7 +38,7 @@ import {
39
38
  printJson,
40
39
  printJsonError,
41
40
  shouldEmitJson
42
- } from "./chunk-I7RLL7LN.mjs";
41
+ } from "./chunk-M7CPVMDB.mjs";
43
42
  import {
44
43
  HttpClient,
45
44
  SDK_VERSION,
@@ -47,9 +46,9 @@ import {
47
46
  readSdkSkillsLocalVersion,
48
47
  resolveApiKeyForBaseUrl,
49
48
  resolveConfig
50
- } from "./chunk-TJGJTB5T.mjs";
49
+ } from "./chunk-BR7GGTAE.mjs";
51
50
  import "./chunk-DLIRSHV6.mjs";
52
- import "./chunk-HHZDWBSQ.mjs";
51
+ import "./chunk-BQJVMKWL.mjs";
53
52
  import "./chunk-NXGCO4JB.mjs";
54
53
  import "./chunk-WZYKRD7T.mjs";
55
54
  import "./chunk-KRD6H754.mjs";
@@ -115,48 +114,48 @@ import { Command as Command2 } from "commander";
115
114
  var COMMAND_GROUPS = [
116
115
  {
117
116
  names: ["auth"],
118
- load: async () => (await import("./auth-6KWNR6AI.mjs")).registerAuthCommands
117
+ load: async () => (await import("./auth-VON5FFUK.mjs")).registerAuthCommands
119
118
  },
120
119
  {
121
120
  names: ["providers"],
122
- load: async () => (await import("./providers-KHTZFQ5I.mjs")).registerProviderCommands
121
+ load: async () => (await import("./providers-RWLN6FUR.mjs")).registerProviderCommands
123
122
  },
124
123
  {
125
124
  names: ["search"],
126
- load: async () => (await import("./search-WCEXPBAT.mjs")).registerSearchCommand
125
+ load: async () => (await import("./search-6D3IFNPT.mjs")).registerSearchCommand
127
126
  },
128
127
  {
129
128
  names: ["describe"],
130
- load: async () => (await import("./describe-ZAPGM5ND.mjs")).registerDescribeCommand
129
+ load: async () => (await import("./describe-GMVS3LFC.mjs")).registerDescribeCommand
131
130
  },
132
131
  {
133
132
  names: ["tools"],
134
- load: async () => (await import("./tools-7EE4BGXO.mjs")).registerToolsCommands
133
+ load: async () => (await import("./tools-7Y6RD6FY.mjs")).registerToolsCommands
135
134
  },
136
135
  {
137
136
  names: ["executions"],
138
- load: async () => (await import("./executions-TK3C2FAQ.mjs")).registerExecutionsCommands
137
+ load: async () => (await import("./executions-447ZJMN4.mjs")).registerExecutionsCommands
139
138
  },
140
139
  {
141
140
  names: ["plays", "runs"],
142
- load: async () => (await import("./play-A5ISFBJM.mjs")).registerPlayCommands
141
+ load: async () => (await import("./play-XTE4LUP7.mjs")).registerPlayCommands
143
142
  },
144
143
  {
145
144
  names: ["sessions"],
146
- load: async () => (await import("./sessions-WSE5FN4H.mjs")).registerSessionsCommands
145
+ load: async () => (await import("./sessions-4MBDC4EK.mjs")).registerSessionsCommands
147
146
  },
148
147
  {
149
148
  names: ["workflows"],
150
- load: async () => (await import("./workflow-KE54RUTR.mjs")).registerWorkflowCommands
149
+ load: async () => (await import("./workflow-CTVE7S7W.mjs")).registerWorkflowCommands
151
150
  },
152
151
  {
153
152
  names: ["secrets"],
154
- load: async () => (await import("./secrets-TN7DW3QR.mjs")).registerSecretsCommands
153
+ load: async () => (await import("./secrets-TZ53CQ3D.mjs")).registerSecretsCommands
155
154
  },
156
155
  {
157
156
  names: ["settings", "notifications"],
158
157
  load: async () => {
159
- const commands = await import("./settings-Z3V53A6J.mjs");
158
+ const commands = await import("./settings-RKQFMLDU.mjs");
160
159
  return (p) => {
161
160
  commands.registerSettingsCommands(p);
162
161
  commands.registerNotificationCommands(p);
@@ -165,51 +164,51 @@ var COMMAND_GROUPS = [
165
164
  },
166
165
  {
167
166
  names: ["billing"],
168
- load: async () => (await import("./billing-VQ2NUJLB.mjs")).registerBillingCommands
167
+ load: async () => (await import("./billing-X6JUEFRE.mjs")).registerBillingCommands
169
168
  },
170
169
  {
171
170
  names: ["monitors"],
172
- load: async () => (await import("./monitors-WYH5AQIO.mjs")).registerMonitorsCommands
171
+ load: async () => (await import("./monitors-SH4FOMBM.mjs")).registerMonitorsCommands
173
172
  },
174
173
  {
175
174
  names: ["org"],
176
- load: async () => (await import("./org-XCSMLTUW.mjs")).registerOrgCommands
175
+ load: async () => (await import("./org-B32MMIQT.mjs")).registerOrgCommands
177
176
  },
178
177
  {
179
178
  names: ["git", "projects", "deployments"],
180
- load: async () => (await import("./git-WBFWIVO5.mjs")).registerGitCommands
179
+ load: async () => (await import("./git-VID6KGAA.mjs")).registerGitCommands
181
180
  },
182
181
  {
183
182
  names: ["csv"],
184
- load: async () => (await import("./csv-7DA4APB6.mjs")).registerCsvCommands
183
+ load: async () => (await import("./csv-IICJHJZ4.mjs")).registerCsvCommands
185
184
  },
186
185
  {
187
186
  names: ["db"],
188
- load: async () => (await import("./db-7UPW3N5U.mjs")).registerDbCommands
187
+ load: async () => (await import("./db-X4B7YFNY.mjs")).registerDbCommands
189
188
  },
190
189
  {
191
190
  names: ["feedback"],
192
- load: async () => (await import("./feedback-T4EIP5QR.mjs")).registerFeedbackCommands
191
+ load: async () => (await import("./feedback-JB7HHIC6.mjs")).registerFeedbackCommands
193
192
  },
194
193
  {
195
194
  names: ["enrich", "session", "backend"],
196
- load: async () => (await import("./legacy-noops-DUCK7OKN.mjs")).registerDeprecatedCommands
195
+ load: async () => (await import("./legacy-noops-SGR3G5WS.mjs")).registerDeprecatedCommands
197
196
  },
198
197
  {
199
198
  names: ["update"],
200
- load: async () => (await import("./update-O5QEWS7K.mjs")).registerUpdateCommand
199
+ load: async () => (await import("./update-M7YGF67I.mjs")).registerUpdateCommand
201
200
  },
202
201
  {
203
202
  names: ["skills", "skills-auto-sync"],
204
- load: async () => (await import("./skills-7G2RZMYH.mjs")).registerSkillsCommand
203
+ load: async () => (await import("./skills-AGZXDLSA.mjs")).registerSkillsCommand
205
204
  },
206
205
  {
207
206
  names: ["setup", "doctor"],
208
- load: async () => (await import("./setup-GMH4VJS3.mjs")).registerSetupCommands
207
+ load: async () => (await import("./setup-2S5TNTUB.mjs")).registerSetupCommands
209
208
  },
210
209
  {
211
210
  names: ["quickstart"],
212
- load: async () => (await import("./quickstart-KT4LKORA.mjs")).registerQuickstartCommands
211
+ load: async () => (await import("./quickstart-IDB3Y375.mjs")).registerQuickstartCommands
213
212
  }
214
213
  ];
215
214
  async function registerDeeplineCommandGroups(program, requestedCommand) {
@@ -287,8 +286,8 @@ function envTruthy(name) {
287
286
  const value = process.env[name]?.trim().toLowerCase();
288
287
  return value === "1" || value === "true" || value === "yes";
289
288
  }
290
- function shouldSkipSelfUpdate() {
291
- return process.argv.includes("--json") || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !shouldRunCliAutoUpdate() || isCiEnvironment();
289
+ function shouldSkipSelfUpdate(policy) {
290
+ return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !shouldRunCliAutoUpdate() || isCiEnvironment();
292
291
  }
293
292
  function parseSemver(version) {
294
293
  const trimmed = version?.trim();
@@ -350,9 +349,9 @@ function relaunchCurrentCommand(plan, runtime = {}) {
350
349
  child.on("close", (code) => resolve(code ?? 1));
351
350
  });
352
351
  }
353
- async function maybeAutoUpdateAndRelaunch(response, baseUrl) {
352
+ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configured") {
354
353
  const autoUpdate = response?.auto_update;
355
- if (!response || !autoUpdate?.should_auto_update || shouldSkipSelfUpdate()) {
354
+ if (!response || !autoUpdate?.should_auto_update || shouldSkipSelfUpdate(policy)) {
356
355
  return false;
357
356
  }
358
357
  if (isDowngradeAutoUpdateResponse(response)) {
@@ -432,6 +431,18 @@ What changed in ${response.update_summary.version}: ${response.update_summary.su
432
431
  return true;
433
432
  }
434
433
 
434
+ // src/cli/maintenance-policy.ts
435
+ import { InvalidArgumentError } from "commander";
436
+ function parseCliMaintenancePolicy(value) {
437
+ if (value === "configured" || value === "off") return value;
438
+ throw new InvalidArgumentError(
439
+ "Maintenance policy must be configured or off."
440
+ );
441
+ }
442
+ function resolveCliMaintenancePolicy(input) {
443
+ return input.dryRun ? "off" : input.maintenance ?? "configured";
444
+ }
445
+
435
446
  // src/cli/index.ts
436
447
  var PREFLIGHT_TIMEOUT_MS = 3e3;
437
448
  function asCommanderError(error) {
@@ -462,7 +473,7 @@ function shouldDeferSkillsSyncForCommand() {
462
473
  }
463
474
  if (command === "providers" && subcommand === "list") return true;
464
475
  if (command === "search" || command === "describe") return true;
465
- return (command === "play" || command === "plays") && subcommand === "run" && args.includes("--json");
476
+ return false;
466
477
  }
467
478
  function isDeprecatedCommandInvocation() {
468
479
  const command = process.argv.slice(2)[0];
@@ -521,7 +532,7 @@ async function runPlayRunnerHealthCheck() {
521
532
  });
522
533
  let exitCode = 1;
523
534
  try {
524
- const { handlePlayRun } = await import("./play-A5ISFBJM.mjs");
535
+ const { handlePlayRun } = await import("./play-XTE4LUP7.mjs");
525
536
  exitCode = await handlePlayRun([
526
537
  file,
527
538
  "--input",
@@ -694,12 +705,6 @@ async function runMain(ensureTransport) {
694
705
  phase: "cli.main_start",
695
706
  argv: process.argv.slice(2)
696
707
  });
697
- if (process.stdout.isTTY && !process.argv.includes("--json")) {
698
- for (const message of consumePendingCliUpdateMessages()) {
699
- process.stderr.write(`Deepline CLI update: ${message}
700
- `);
701
- }
702
- }
703
708
  const printStartupPhase = shouldPrintStartupPhase();
704
709
  const progress = printStartupPhase ? createCliProgress(true) : null;
705
710
  if (printStartupPhase) {
@@ -708,7 +713,12 @@ async function runMain(ensureTransport) {
708
713
  const program = new Command2();
709
714
  program.name("deepline").description(
710
715
  "Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
711
- ).version(SDK_VERSION, "-v, --version", "Show version").exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
716
+ ).version(SDK_VERSION, "-v, --version", "Show version").option(
717
+ "--maintenance <policy>",
718
+ "Installation maintenance: configured preferences or off; independent of output format",
719
+ parseCliMaintenancePolicy,
720
+ "configured"
721
+ ).exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
712
722
  "beforeAll",
713
723
  "for agents: ensure you are using the /deepline-gtm skill\n"
714
724
  ).addHelpText(
@@ -739,6 +749,9 @@ Output:
739
749
 
740
750
  Safety:
741
751
  Commands that mutate state, open a browser, write files, stop work, or spend credits say so in their help.
752
+ --maintenance configured permits CLI updates according to settings and installed skill synchronization.
753
+ --maintenance off suppresses both and compatibility cache writes. --dry-run implies off.
754
+ Maintenance policy is the same for terminal, --json, and piped output. Compatibility checks still run.
742
755
 
743
756
  Exit codes:
744
757
  0 success; 2 usage/local input error; 3 auth/permission error; 4 not found;
@@ -746,6 +759,9 @@ Exit codes:
746
759
  `
747
760
  );
748
761
  program.hook("preAction", async (_thisCommand, actionCommand) => {
762
+ const maintenance = resolveCliMaintenancePolicy(
763
+ actionCommand.optsWithGlobals()
764
+ );
749
765
  if (actionCommand.name() !== "version") {
750
766
  await ensureTransport();
751
767
  }
@@ -763,8 +779,8 @@ Exit codes:
763
779
  }
764
780
  const startup = await runStartupStage("SDK compatibility", async () => {
765
781
  const baseUrl = autoDetectBaseUrl().replace(/\/$/, "");
766
- flushDeferredSkillsSyncNotices(baseUrl);
767
- const shouldDeferSkillsSync = shouldDeferSkillsSyncForCommand();
782
+ if (maintenance !== "off") flushDeferredSkillsSyncNotices(baseUrl);
783
+ const shouldDeferSkillsSync = maintenance === "off" || shouldDeferSkillsSyncForCommand();
768
784
  const skillsVersion = shouldDeferSkillsSync ? void 0 : readSdkSkillsLocalVersion(baseUrl);
769
785
  const trusted = readTrustedCleanCompatibility(
770
786
  baseUrl,
@@ -798,6 +814,7 @@ Exit codes:
798
814
  () => checkSdkCompatibility(baseUrl, {
799
815
  command: compatibilityCommand,
800
816
  skillsVersion,
817
+ persistCache: maintenance !== "off",
801
818
  catalog: compatibilityCatalog(actionCommand),
802
819
  ...fastDeadline ? { timeoutMs: SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
803
820
  })
@@ -812,7 +829,8 @@ Exit codes:
812
829
  }
813
830
  const relaunched = await maybeAutoUpdateAndRelaunch(
814
831
  compatibility.response,
815
- baseUrl
832
+ baseUrl,
833
+ maintenance
816
834
  );
817
835
  if (relaunched) {
818
836
  return {
@@ -896,7 +914,7 @@ Examples:
896
914
  printJson(data2);
897
915
  return;
898
916
  }
899
- const { DeeplineClient } = await import("./client-VHUKTDAZ.mjs");
917
+ const { DeeplineClient } = await import("./client-ZMOKUNL2.mjs");
900
918
  const client = new DeeplineClient();
901
919
  const data = await client.health();
902
920
  printJson(data);
@@ -1,15 +1,15 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkG4F2AIQ5js = require('./chunk-G4F2AIQ5.js');
3
+ var _chunk5NXHSRREjs = require('./chunk-5NXHSRRE.js');
4
4
 
5
5
 
6
6
  var _chunk3XX5TEA4js = require('./chunk-3XX5TEA4.js');
7
7
 
8
8
 
9
- var _chunkGROXVGGWjs = require('./chunk-GROXVGGW.js');
10
- require('./chunk-D5YJHGST.js');
9
+ var _chunkCUUHQ3AOjs = require('./chunk-CUUHQ3AO.js');
10
+ require('./chunk-TXVOB5J2.js');
11
11
  require('./chunk-XNYIZMNQ.js');
12
- require('./chunk-IXYR65PW.js');
12
+ require('./chunk-BUYZEUY4.js');
13
13
  require('./chunk-7P5AA3SN.js');
14
14
  require('./chunk-OG64RBAC.js');
15
15
  require('./chunk-COGTRVWW.js');
@@ -51,7 +51,7 @@ function deprecatedCommandEnvelope(input) {
51
51
  };
52
52
  }
53
53
  function printDeprecatedCommand(input) {
54
- _chunkGROXVGGWjs.printCommandEnvelope.call(void 0, deprecatedCommandEnvelope(input), {
54
+ _chunkCUUHQ3AOjs.printCommandEnvelope.call(void 0, deprecatedCommandEnvelope(input), {
55
55
  json: input.options.json
56
56
  });
57
57
  process.exitCode = 2;
@@ -71,7 +71,7 @@ function registerDeprecatedCommands(program) {
71
71
  program.command("enrich", { hidden: true }).description("Deprecated CSV enrichment command.").allowUnknownOption(true).allowExcessArguments(true).option("--json", "Emit JSON output").argument("[args...]").addHelpText("after", `
72
72
  ${_chunk3XX5TEA4js.ENRICH_COMMAND_DEPRECATION_MESSAGE}
73
73
  `).action((_args, options) => {
74
- _chunkGROXVGGWjs.printCommandEnvelope.call(void 0,
74
+ _chunkCUUHQ3AOjs.printCommandEnvelope.call(void 0,
75
75
  {
76
76
  ok: false,
77
77
  command: "deepline enrich",
@@ -114,7 +114,7 @@ Examples:
114
114
  options
115
115
  });
116
116
  });
117
- _chunkG4F2AIQ5js.registerSessionSendRenderCommands.call(void 0, session, "session");
117
+ _chunk5NXHSRREjs.registerSessionSendRenderCommands.call(void 0, session, "session");
118
118
  for (const subcommand of SESSION_SUBCOMMANDS) {
119
119
  addDeprecatedSubcommand(
120
120
  session,
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  registerSessionSendRenderCommands
3
- } from "./chunk-LHJKYMTS.mjs";
3
+ } from "./chunk-MOBZS4F3.mjs";
4
4
  import {
5
5
  ENRICH_COMMAND_DEPRECATION_MESSAGE
6
6
  } from "./chunk-ITOFSXIU.mjs";
7
7
  import {
8
8
  printCommandEnvelope
9
- } from "./chunk-I7RLL7LN.mjs";
10
- import "./chunk-TJGJTB5T.mjs";
9
+ } from "./chunk-M7CPVMDB.mjs";
10
+ import "./chunk-BR7GGTAE.mjs";
11
11
  import "./chunk-DLIRSHV6.mjs";
12
- import "./chunk-HHZDWBSQ.mjs";
12
+ import "./chunk-BQJVMKWL.mjs";
13
13
  import "./chunk-NXGCO4JB.mjs";
14
14
  import "./chunk-WZYKRD7T.mjs";
15
15
  import "./chunk-KRD6H754.mjs";
@@ -1,7 +1,7 @@
1
1
  import "./chunk-EXMLR72R.mjs";
2
2
  import {
3
3
  DeeplineClient
4
- } from "./chunk-3ZKAKQYC.mjs";
4
+ } from "./chunk-KLWBAQ5A.mjs";
5
5
  import "./chunk-CBVIJSHF.mjs";
6
6
  import {
7
7
  MONITOR_FLEET_DOCUMENTATION,
@@ -16,12 +16,12 @@ import {
16
16
  printCommandEnvelope,
17
17
  printJson,
18
18
  shouldEmitJson
19
- } from "./chunk-I7RLL7LN.mjs";
19
+ } from "./chunk-M7CPVMDB.mjs";
20
20
  import {
21
21
  AuthError
22
- } from "./chunk-TJGJTB5T.mjs";
22
+ } from "./chunk-BR7GGTAE.mjs";
23
23
  import "./chunk-DLIRSHV6.mjs";
24
- import "./chunk-HHZDWBSQ.mjs";
24
+ import "./chunk-BQJVMKWL.mjs";
25
25
  import "./chunk-6IKARAYD.mjs";
26
26
  import {
27
27
  DeeplineError