deepline 0.3.314 → 0.3.316

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 (134) hide show
  1. package/dist/bundling-sources/sdk/src/client.ts +12 -0
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/sdk/src/runs/overview.ts +17 -10
  4. package/dist/bundling-sources/sdk/src/types.ts +16 -5
  5. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +217 -488
  6. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +15 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +4 -1
  8. package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +13 -4
  9. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +1 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/live-events.ts +31 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/map-execution-frame.ts +444 -51
  12. package/dist/bundling-sources/shared_libs/play-runtime/run-snapshot-stream.ts +22 -43
  13. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +4 -3
  14. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +136 -87
  15. package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +24 -6
  16. package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +56 -0
  17. package/dist/bundling-sources/shared_libs/play-runtime/runtime-sheet-errors.ts +94 -0
  18. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +2 -0
  19. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +5 -2
  20. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +20 -11
  21. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +18 -12
  22. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +140 -9
  23. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-dispatch-authority.ts +2 -0
  24. package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-storage-contract.ts +13 -0
  25. package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +2 -0
  26. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +3 -2
  27. package/dist/bundling-sources/shared_libs/plays/docflow-binding-owner.ts +61 -11
  28. package/dist/cli/{auth-GWF55S3N.mjs → auth-JP7ZJ4OI.mjs} +4 -4
  29. package/dist/cli/auth-SPUJ4EXC.js +31 -0
  30. package/dist/cli/{billing-WWOJN7GV.mjs → billing-KG6MC2BC.mjs} +4 -4
  31. package/dist/cli/{billing-2YU6E2IF.js → billing-WZGS32ME.js} +70 -70
  32. package/dist/cli/{chunk-OJ243ZA5.js → chunk-2HKPAZVJ.js} +1 -1
  33. package/dist/cli/{chunk-YVMJTXEG.js → chunk-35YXDTOB.js} +26 -26
  34. package/dist/cli/{chunk-QB5MAFCU.mjs → chunk-46ZOD4PQ.mjs} +1 -1
  35. package/dist/cli/{chunk-CPN2N6EZ.mjs → chunk-6R5ACEWN.mjs} +43 -17
  36. package/dist/cli/{chunk-US4S3E4Y.mjs → chunk-7PZFGB7L.mjs} +1 -1
  37. package/dist/cli/{chunk-3CKNUJVZ.mjs → chunk-AXAPMVUC.mjs} +4 -4
  38. package/dist/cli/{chunk-ENQZV7NR.js → chunk-B6OOVO3A.js} +562 -536
  39. package/dist/cli/{chunk-WDPRE6DU.js → chunk-BOKHMPCZ.js} +48 -48
  40. package/dist/cli/{chunk-VFRZG4OW.js → chunk-C6QGM72M.js} +1 -1
  41. package/dist/cli/{chunk-IZTIBG7A.mjs → chunk-D3NMIACS.mjs} +29 -15
  42. package/dist/cli/{chunk-DR3S76BG.mjs → chunk-DAFGPNVW.mjs} +1 -1
  43. package/dist/cli/{chunk-3K6QD7Z3.mjs → chunk-F2T5UENG.mjs} +1 -1
  44. package/dist/cli/{chunk-VWW6VHQX.js → chunk-G2G67D3L.js} +60 -60
  45. package/dist/cli/{chunk-ODEWOXWW.js → chunk-GHLWDXUB.js} +6 -6
  46. package/dist/cli/{chunk-25SPKKF2.mjs → chunk-IDSDRGKF.mjs} +1 -1
  47. package/dist/cli/{chunk-OUHCJL5B.mjs → chunk-J3ZPMADG.mjs} +1 -1
  48. package/dist/cli/{chunk-MLEJ2FYH.js → chunk-K3BIRBT3.js} +248 -234
  49. package/dist/cli/{chunk-N5V2SBB2.mjs → chunk-KP7W5NO6.mjs} +1 -1
  50. package/dist/cli/{chunk-B5LUKLKH.js → chunk-MCPHK7AF.js} +4 -4
  51. package/dist/cli/{chunk-2Q2IKUL5.mjs → chunk-OB3SYJGU.mjs} +3 -3
  52. package/dist/cli/{chunk-UZTTPEG2.js → chunk-PJERS5VW.js} +6 -6
  53. package/dist/cli/{chunk-VBRO5QCI.js → chunk-RBBSRB56.js} +15 -15
  54. package/dist/cli/{chunk-NG4WDOGN.js → chunk-SRUWVQ66.js} +6 -6
  55. package/dist/cli/{chunk-WTO3ITBC.mjs → chunk-TYSAKSX7.mjs} +2 -2
  56. package/dist/cli/{chunk-HTXZLCSP.mjs → chunk-VC25WFXV.mjs} +2 -2
  57. package/dist/cli/{chunk-3A4LJUX6.mjs → chunk-VDPBQCRQ.mjs} +2 -2
  58. package/dist/cli/{chunk-IALPYID6.js → chunk-XSEMQ4II.js} +3 -3
  59. package/dist/cli/{chunk-JNUHGWB2.js → chunk-YEMOOWZI.js} +50 -50
  60. package/dist/cli/{chunk-JZZT4GAY.mjs → chunk-YNSAVFWL.mjs} +5 -5
  61. package/dist/cli/{chunk-GSRDZD7R.js → chunk-ZNHGAWYI.js} +2 -2
  62. package/dist/cli/client-GMMPQT7B.js +20 -0
  63. package/dist/cli/{client-EYGNDORT.mjs → client-MNPM4ME3.mjs} +3 -3
  64. package/dist/cli/{csv-YOW5JMOH.js → csv-G72FIQWI.js} +12 -12
  65. package/dist/cli/{csv-NZCN7SVV.mjs → csv-ZME7HAPR.mjs} +3 -3
  66. package/dist/cli/{db-HALJV3KY.mjs → db-K2DS4PEY.mjs} +4 -4
  67. package/dist/cli/{db-6BIYLZ6F.js → db-KRBWHSMA.js} +20 -20
  68. package/dist/cli/{describe-KY2ZYGBR.mjs → describe-LXBJP6OP.mjs} +10 -10
  69. package/dist/cli/{describe-WA6R2JSH.js → describe-UKFV376D.js} +17 -17
  70. package/dist/cli/{executions-CBOAN6KI.mjs → executions-2V3AROY6.mjs} +4 -4
  71. package/dist/cli/{executions-NMCTN7XM.js → executions-E66AM4JU.js} +6 -6
  72. package/dist/cli/{feedback-ZZFDSCWS.js → feedback-7C2N7M37.js} +6 -6
  73. package/dist/cli/{feedback-FOMPE3DJ.mjs → feedback-IEPZ2XKZ.mjs} +3 -3
  74. package/dist/cli/{git-YQR2NBCO.mjs → git-AR5KGN4O.mjs} +4 -4
  75. package/dist/cli/git-EXYB66IH.js +23 -0
  76. package/dist/cli/index.js +171 -98
  77. package/dist/cli/index.mjs +114 -41
  78. package/dist/cli/{legacy-noops-XH2TFFI6.js → legacy-noops-A2SH45P4.js} +7 -7
  79. package/dist/cli/{legacy-noops-KMU6P3K4.mjs → legacy-noops-LC2EGAZU.mjs} +4 -4
  80. package/dist/cli/{monitors-2ONK5L3I.mjs → monitors-5YPW3IZQ.mjs} +4 -4
  81. package/dist/cli/{monitors-5M3BZ5OR.js → monitors-IZBUPKPW.js} +85 -85
  82. package/dist/cli/{org-LR5BMCGL.mjs → org-2OMYI5KJ.mjs} +4 -4
  83. package/dist/cli/{org-6MKULUZI.js → org-L42SQ65U.js} +60 -60
  84. package/dist/cli/play-CQI3IDDN.js +152 -0
  85. package/dist/cli/{play-4NOSD7DW.mjs → play-UPCBLAOH.mjs} +9 -9
  86. package/dist/cli/{providers-UFJD3VKF.js → providers-GGNDWUKB.js} +7 -7
  87. package/dist/cli/{providers-UBGIKGCA.mjs → providers-VE2RM56M.mjs} +4 -4
  88. package/dist/cli/{quickstart-KQZHZE6C.js → quickstart-4CZHURUX.js} +5 -5
  89. package/dist/cli/{quickstart-KDUKQRUH.mjs → quickstart-HSJ7FU7Z.mjs} +3 -3
  90. package/dist/cli/{search-4BVOOS5Q.mjs → search-MWBM3I2L.mjs} +5 -5
  91. package/dist/cli/search-PD5FBCUN.js +26 -0
  92. package/dist/cli/{secrets-TVXZ3WJ3.js → secrets-CWBPGDZV.js} +13 -13
  93. package/dist/cli/{secrets-YGV23N3N.mjs → secrets-W5DQYKGU.mjs} +4 -4
  94. package/dist/cli/{sessions-RWIQWDFD.js → sessions-EDCFU6P2.js} +5 -5
  95. package/dist/cli/{sessions-G7ROUW35.mjs → sessions-Q42GUYTF.mjs} +4 -4
  96. package/dist/cli/{settings-TG3E2NR7.js → settings-OKRENZGX.js} +74 -74
  97. package/dist/cli/{settings-QZEVGCXE.mjs → settings-SO56AJPQ.mjs} +7 -7
  98. package/dist/cli/{setup-3KDUNEEE.js → setup-7PLHLNLS.js} +41 -41
  99. package/dist/cli/{setup-HUXINKOH.mjs → setup-OTYMF5CZ.mjs} +6 -6
  100. package/dist/cli/{skills-LHU3DB7J.mjs → skills-4UFS4FXP.mjs} +4 -4
  101. package/dist/cli/skills-IP7IW7EQ.js +28 -0
  102. package/dist/cli/{tools-J5WQ33BB.mjs → tools-6FV543YV.mjs} +6 -6
  103. package/dist/cli/tools-A2YNR6PI.js +38 -0
  104. package/dist/cli/{update-T6744RM7.mjs → update-6POGDXYW.mjs} +6 -6
  105. package/dist/cli/update-QXSGKLJG.js +28 -0
  106. package/dist/cli/{workflow-CG2B65HD.mjs → workflow-HVZSFWYR.mjs} +5 -5
  107. package/dist/cli/{workflow-YF5SQJLG.js → workflow-RB4POZP5.js} +15 -15
  108. package/dist/{client-OBwghxPC.d.ts → client-BV68GMPo.d.ts} +19 -6
  109. package/dist/{client-CtVdLZux.d.mts → client-D9ACjiRC.d.mts} +19 -6
  110. package/dist/{compiler-manifest-wOKNiXpa.d.mts → compiler-manifest-BXcZ4P4W.d.mts} +2 -2
  111. package/dist/{compiler-manifest-wOKNiXpa.d.ts → compiler-manifest-BXcZ4P4W.d.ts} +2 -2
  112. package/dist/index.d.mts +4 -4
  113. package/dist/index.d.ts +4 -4
  114. package/dist/index.js +7 -7
  115. package/dist/index.mjs +4 -4
  116. package/dist/install-integrity.json +82 -82
  117. package/dist/plays/bundle-play-file.d.mts +2 -2
  118. package/dist/plays/bundle-play-file.d.ts +2 -2
  119. package/dist/plays/bundle-play-file.mjs +2 -2
  120. package/dist/plays/run-request.d.mts +2 -2
  121. package/dist/plays/run-request.d.ts +2 -2
  122. package/dist/release.d.mts +1 -1
  123. package/dist/release.d.ts +1 -1
  124. package/dist/release.js +2 -2
  125. package/dist/release.mjs +1 -1
  126. package/package.json +1 -1
  127. package/dist/cli/auth-QX2L4LPM.js +0 -31
  128. package/dist/cli/client-Z4VFNTUB.js +0 -20
  129. package/dist/cli/git-AC2ATBDK.js +0 -23
  130. package/dist/cli/play-U3CZ4F2W.js +0 -152
  131. package/dist/cli/search-Y7OTFRCI.js +0 -26
  132. package/dist/cli/skills-CO5YUWBK.js +0 -28
  133. package/dist/cli/tools-MWPT5X47.js +0 -38
  134. package/dist/cli/update-VVIJW7ZJ.js +0 -28
package/dist/cli/index.js CHANGED
@@ -11,8 +11,8 @@ var _chunkQJBJZVG6js = require('./chunk-QJBJZVG6.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkVBRO5QCIjs = require('./chunk-VBRO5QCI.js');
15
- require('./chunk-GSRDZD7R.js');
14
+ var _chunkRBBSRB56js = require('./chunk-RBBSRB56.js');
15
+ require('./chunk-ZNHGAWYI.js');
16
16
 
17
17
 
18
18
 
@@ -25,7 +25,7 @@ require('./chunk-GSRDZD7R.js');
25
25
 
26
26
 
27
27
 
28
- var _chunkVWW6VHQXjs = require('./chunk-VWW6VHQX.js');
28
+ var _chunkG2G67D3Ljs = require('./chunk-G2G67D3L.js');
29
29
 
30
30
 
31
31
 
@@ -39,7 +39,7 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
39
39
 
40
40
 
41
41
 
42
- var _chunkODEWOXWWjs = require('./chunk-ODEWOXWW.js');
42
+ var _chunkGHLWDXUBjs = require('./chunk-GHLWDXUB.js');
43
43
 
44
44
 
45
45
 
@@ -47,65 +47,116 @@ var _chunkODEWOXWWjs = require('./chunk-ODEWOXWW.js');
47
47
 
48
48
 
49
49
 
50
- var _chunkB5LUKLKHjs = require('./chunk-B5LUKLKH.js');
50
+ var _chunkMCPHK7AFjs = require('./chunk-MCPHK7AF.js');
51
51
  require('./chunk-XNYIZMNQ.js');
52
- require('./chunk-VFRZG4OW.js');
52
+ require('./chunk-C6QGM72M.js');
53
53
  require('./chunk-7P5AA3SN.js');
54
54
  require('./chunk-OG64RBAC.js');
55
55
  require('./chunk-COGTRVWW.js');
56
56
 
57
+ // src/cli/command-invocation.ts
58
+ var _commander = require('commander');
59
+ function parserPolicy(command, name) {
60
+ const value = _optionalChain([Object, 'access', _ => _.getOwnPropertyDescriptor, 'call', _2 => _2(command, name), 'optionalAccess', _3 => _3.value]);
61
+ if (typeof value !== "boolean")
62
+ throw new Error(`Commander parser policy ${name} is unavailable.`);
63
+ return value;
64
+ }
65
+ function inspectCliInvocation(program, argv) {
66
+ let commandPath = "";
67
+ const copy = (source, path) => {
68
+ const target = new (0, _commander.Command)(source.name()).aliases(source.aliases()).allowUnknownOption(parserPolicy(source, "_allowUnknownOption")).allowExcessArguments(parserPolicy(source, "_allowExcessArguments")).exitOverride().configureOutput({ writeOut: () => {
69
+ }, writeErr: () => {
70
+ } });
71
+ for (const option of source.options) target.addOption(option);
72
+ for (const argument of source.registeredArguments)
73
+ target.addArgument(argument);
74
+ target.hook("preSubcommand", (_parent, child) => {
75
+ commandPath = [...path, child.name()].join(" ");
76
+ });
77
+ if (source.commands.length === 0) {
78
+ target.action(() => {
79
+ commandPath = path.join(" ");
80
+ });
81
+ }
82
+ for (const child of source.commands) {
83
+ target.addCommand(copy(child, [...path, child.name()]));
84
+ }
85
+ return target;
86
+ };
87
+ const grammar = copy(program, []);
88
+ try {
89
+ grammar.parse([...argv], { from: "user" });
90
+ return { commandPath, problem: null };
91
+ } catch (error) {
92
+ if (!(error instanceof _commander.CommanderError)) throw error;
93
+ if (error.code === "commander.unknownCommand") {
94
+ const unknown = error.message.match(/unknown command '([^']+)'/);
95
+ if (unknown)
96
+ commandPath = [commandPath, unknown[1]].filter(Boolean).join(" ");
97
+ }
98
+ return {
99
+ commandPath,
100
+ problem: error.exitCode === 0 ? null : {
101
+ code: error.code,
102
+ message: error.message
103
+ }
104
+ };
105
+ }
106
+ }
107
+
57
108
  // src/cli/index.ts
58
109
  var _promises = require('fs/promises');
59
110
  var _path = require('path');
60
111
  var _os = require('os');
61
- var _commander = require('commander');
112
+
62
113
 
63
114
  // src/cli/command-registry.ts
64
115
  var COMMAND_GROUPS = [
65
116
  {
66
117
  names: ["auth"],
67
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-QX2L4LPM.js")))).registerAuthCommands
118
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-SPUJ4EXC.js")))).registerAuthCommands
68
119
  },
69
120
  {
70
121
  names: ["providers"],
71
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-UFJD3VKF.js")))).registerProviderCommands
122
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-GGNDWUKB.js")))).registerProviderCommands
72
123
  },
73
124
  {
74
125
  names: ["search"],
75
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-Y7OTFRCI.js")))).registerSearchCommand
126
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-PD5FBCUN.js")))).registerSearchCommand
76
127
  },
77
128
  {
78
129
  names: ["describe"],
79
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-WA6R2JSH.js")))).registerDescribeCommand
130
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-UKFV376D.js")))).registerDescribeCommand
80
131
  },
81
132
  {
82
133
  names: ["tools"],
83
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-MWPT5X47.js")))).registerToolsCommands
134
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-A2YNR6PI.js")))).registerToolsCommands
84
135
  },
85
136
  {
86
137
  names: ["executions"],
87
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-NMCTN7XM.js")))).registerExecutionsCommands
138
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-E66AM4JU.js")))).registerExecutionsCommands
88
139
  },
89
140
  {
90
141
  names: ["plays", "runs"],
91
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-U3CZ4F2W.js")))).registerPlayCommands
142
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-CQI3IDDN.js")))).registerPlayCommands
92
143
  },
93
144
  {
94
145
  names: ["sessions"],
95
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-RWIQWDFD.js")))).registerSessionsCommands
146
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-EDCFU6P2.js")))).registerSessionsCommands
96
147
  },
97
148
  {
98
149
  names: ["workflows"],
99
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-YF5SQJLG.js")))).registerWorkflowCommands
150
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-RB4POZP5.js")))).registerWorkflowCommands
100
151
  },
101
152
  {
102
153
  names: ["secrets"],
103
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-TVXZ3WJ3.js")))).registerSecretsCommands
154
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-CWBPGDZV.js")))).registerSecretsCommands
104
155
  },
105
156
  {
106
157
  names: ["settings", "notifications"],
107
158
  load: async () => {
108
- const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-TG3E2NR7.js")));
159
+ const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-OKRENZGX.js")));
109
160
  return (p) => {
110
161
  commands.registerSettingsCommands(p);
111
162
  commands.registerNotificationCommands(p);
@@ -114,51 +165,51 @@ var COMMAND_GROUPS = [
114
165
  },
115
166
  {
116
167
  names: ["billing"],
117
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-2YU6E2IF.js")))).registerBillingCommands
168
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-WZGS32ME.js")))).registerBillingCommands
118
169
  },
119
170
  {
120
171
  names: ["monitors"],
121
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-5M3BZ5OR.js")))).registerMonitorsCommands
172
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-IZBUPKPW.js")))).registerMonitorsCommands
122
173
  },
123
174
  {
124
175
  names: ["org"],
125
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-6MKULUZI.js")))).registerOrgCommands
176
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-L42SQ65U.js")))).registerOrgCommands
126
177
  },
127
178
  {
128
179
  names: ["git", "projects", "deployments"],
129
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-AC2ATBDK.js")))).registerGitCommands
180
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-EXYB66IH.js")))).registerGitCommands
130
181
  },
131
182
  {
132
183
  names: ["csv"],
133
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-YOW5JMOH.js")))).registerCsvCommands
184
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-G72FIQWI.js")))).registerCsvCommands
134
185
  },
135
186
  {
136
187
  names: ["db"],
137
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-6BIYLZ6F.js")))).registerDbCommands
188
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-KRBWHSMA.js")))).registerDbCommands
138
189
  },
139
190
  {
140
191
  names: ["feedback"],
141
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-ZZFDSCWS.js")))).registerFeedbackCommands
192
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-7C2N7M37.js")))).registerFeedbackCommands
142
193
  },
143
194
  {
144
195
  names: ["enrich", "session", "backend"],
145
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-XH2TFFI6.js")))).registerDeprecatedCommands
196
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-A2SH45P4.js")))).registerDeprecatedCommands
146
197
  },
147
198
  {
148
199
  names: ["update"],
149
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-VVIJW7ZJ.js")))).registerUpdateCommand
200
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-QXSGKLJG.js")))).registerUpdateCommand
150
201
  },
151
202
  {
152
203
  names: ["skills", "skills-auto-sync"],
153
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-CO5YUWBK.js")))).registerSkillsCommand
204
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-IP7IW7EQ.js")))).registerSkillsCommand
154
205
  },
155
206
  {
156
207
  names: ["setup", "doctor"],
157
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-3KDUNEEE.js")))).registerSetupCommands
208
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-7PLHLNLS.js")))).registerSetupCommands
158
209
  },
159
210
  {
160
211
  names: ["quickstart"],
161
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-KQZHZE6C.js")))).registerQuickstartCommands
212
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-4CZHURUX.js")))).registerQuickstartCommands
162
213
  }
163
214
  ];
164
215
  async function registerDeeplineCommandGroups(program, requestedCommand) {
@@ -168,6 +219,15 @@ async function registerDeeplineCommandGroups(program, requestedCommand) {
168
219
  const registrars = await Promise.all(groups.map((group) => group.load()));
169
220
  for (const register of registrars) register(program);
170
221
  }
222
+ function registerDeeplineInlineCommands(program) {
223
+ const preflight = program.command("preflight").description("Run compact health, auth, and Deepline billing checks.").option("--json", "Force JSON output.");
224
+ const health = program.command("health").description("Check server health.").option("--json", "Force JSON output.").option(
225
+ "--play-runner",
226
+ "Run a tiny no-provider play to verify the full play execution plane."
227
+ );
228
+ const version = program.command("version").description("Show version.").option("--json", "Emit JSON output");
229
+ return { preflight, health, version };
230
+ }
171
231
 
172
232
  // src/cli/self-update.ts
173
233
  var _child_process = require('child_process');
@@ -185,7 +245,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
185
245
  async function reportAutoUpdateEvent(input) {
186
246
  let apiKey = "";
187
247
  try {
188
- apiKey = _chunkB5LUKLKHjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
248
+ apiKey = _chunkMCPHK7AFjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
189
249
  } catch (e2) {
190
250
  return;
191
251
  }
@@ -201,17 +261,17 @@ async function reportAutoUpdateEvent(input) {
201
261
  headers: {
202
262
  Authorization: `Bearer ${apiKey}`,
203
263
  "Content-Type": "application/json",
204
- "User-Agent": `deepline-ts-sdk/${_chunkB5LUKLKHjs.SDK_VERSION}`,
264
+ "User-Agent": `deepline-ts-sdk/${_chunkMCPHK7AFjs.SDK_VERSION}`,
205
265
  "X-Deepline-Client-Family": "sdk",
206
266
  "X-Deepline-CLI-Family": "sdk",
207
- "X-Deepline-CLI-Version": _chunkB5LUKLKHjs.SDK_VERSION,
208
- "X-Deepline-SDK-Version": _chunkB5LUKLKHjs.SDK_VERSION
267
+ "X-Deepline-CLI-Version": _chunkMCPHK7AFjs.SDK_VERSION,
268
+ "X-Deepline-SDK-Version": _chunkMCPHK7AFjs.SDK_VERSION
209
269
  },
210
270
  body: JSON.stringify({
211
271
  event: input.event,
212
- current_version: _optionalChain([input, 'access', _ => _.response, 'access', _2 => _2.current, 'optionalAccess', _3 => _3.trim, 'call', _4 => _4()]) || _chunkB5LUKLKHjs.SDK_VERSION,
272
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkMCPHK7AFjs.SDK_VERSION,
213
273
  target_version: input.response.latest,
214
- reason: _optionalChain([input, 'access', _5 => _5.response, 'access', _6 => _6.auto_update, 'optionalAccess', _7 => _7.reason]),
274
+ reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
215
275
  command: _nullishCoalesce(input.response.command, () => ( null)),
216
276
  install_kind: input.installKind,
217
277
  ...input.exitCode === void 0 ? {} : { exit_code: input.exitCode }
@@ -224,14 +284,14 @@ async function reportAutoUpdateEvent(input) {
224
284
  }
225
285
  }
226
286
  function envTruthy(name) {
227
- const value = _optionalChain([process, 'access', _8 => _8.env, 'access', _9 => _9[name], 'optionalAccess', _10 => _10.trim, 'call', _11 => _11(), 'access', _12 => _12.toLowerCase, 'call', _13 => _13()]);
287
+ const value = _optionalChain([process, 'access', _11 => _11.env, 'access', _12 => _12[name], 'optionalAccess', _13 => _13.trim, 'call', _14 => _14(), 'access', _15 => _15.toLowerCase, 'call', _16 => _16()]);
228
288
  return value === "1" || value === "true" || value === "yes";
229
289
  }
230
290
  function shouldSkipSelfUpdate() {
231
- 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") || !_chunkVBRO5QCIjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkVWW6VHQXjs.isCiEnvironment.call(void 0, );
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") || !_chunkRBBSRB56js.shouldRunCliAutoUpdate.call(void 0, ) || _chunkG2G67D3Ljs.isCiEnvironment.call(void 0, );
232
292
  }
233
293
  function parseSemver(version) {
234
- const trimmed = _optionalChain([version, 'optionalAccess', _14 => _14.trim, 'call', _15 => _15()]);
294
+ const trimmed = _optionalChain([version, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]);
235
295
  if (!trimmed) return null;
236
296
  const match = /^v?(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/.exec(trimmed);
237
297
  if (!match) return null;
@@ -257,8 +317,8 @@ function compareSemver(left, right) {
257
317
  return a.prerelease.localeCompare(b.prerelease);
258
318
  }
259
319
  function isDowngradeAutoUpdateResponse(response) {
260
- const target = _optionalChain([response, 'optionalAccess', _16 => _16.latest, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]);
261
- const current = _optionalChain([response, 'optionalAccess', _19 => _19.current, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()]) || _chunkB5LUKLKHjs.SDK_VERSION;
320
+ const target = _optionalChain([response, 'optionalAccess', _19 => _19.latest, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()]);
321
+ const current = _optionalChain([response, 'optionalAccess', _22 => _22.current, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkMCPHK7AFjs.SDK_VERSION;
262
322
  if (!target) return false;
263
323
  return compareSemver(target, current) < 0;
264
324
  }
@@ -291,13 +351,13 @@ function relaunchCurrentCommand(plan, runtime = {}) {
291
351
  });
292
352
  }
293
353
  async function maybeAutoUpdateAndRelaunch(response, baseUrl) {
294
- const autoUpdate = _optionalChain([response, 'optionalAccess', _22 => _22.auto_update]);
295
- if (!response || !_optionalChain([autoUpdate, 'optionalAccess', _23 => _23.should_auto_update]) || shouldSkipSelfUpdate()) {
354
+ const autoUpdate = _optionalChain([response, 'optionalAccess', _25 => _25.auto_update]);
355
+ if (!response || !_optionalChain([autoUpdate, 'optionalAccess', _26 => _26.should_auto_update]) || shouldSkipSelfUpdate()) {
296
356
  return false;
297
357
  }
298
358
  if (isDowngradeAutoUpdateResponse(response)) {
299
359
  const target = response.latest;
300
- const current = _optionalChain([response, 'access', _24 => _24.current, 'optionalAccess', _25 => _25.trim, 'call', _26 => _26()]) || _chunkB5LUKLKHjs.SDK_VERSION;
360
+ const current = _optionalChain([response, 'access', _27 => _27.current, 'optionalAccess', _28 => _28.trim, 'call', _29 => _29()]) || _chunkMCPHK7AFjs.SDK_VERSION;
301
361
  process.stderr.write(
302
362
  `Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
303
363
  `
@@ -305,12 +365,12 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl) {
305
365
  return false;
306
366
  }
307
367
  const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
308
- const plan = _chunkVBRO5QCIjs.resolveUpdatePlan.call(void 0, {
368
+ const plan = _chunkRBBSRB56js.resolveUpdatePlan.call(void 0, {
309
369
  packageSpec,
310
370
  requireVerifiedNpmOwnership: true,
311
371
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
312
372
  });
313
- if (!_chunkVBRO5QCIjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
373
+ if (!_chunkRBBSRB56js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
314
374
  return false;
315
375
  }
316
376
  const label = autoUpdate.reason === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : autoUpdate.reason === "deprecated" ? "is deprecated and will update automatically" : autoUpdate.required ? "requires an update" : "has an update available and will update automatically";
@@ -324,7 +384,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl) {
324
384
  event: "started",
325
385
  installKind: plan.kind
326
386
  });
327
- const updateResult = await _chunkVBRO5QCIjs.runAutomaticUpdatePlan.call(void 0, plan);
387
+ const updateResult = await _chunkRBBSRB56js.runAutomaticUpdatePlan.call(void 0, plan);
328
388
  if (updateResult.status === "skipped_previous_failure") {
329
389
  void reportAutoUpdateEvent({
330
390
  baseUrl,
@@ -415,7 +475,7 @@ function isAutoUpdateSettingsInvocation() {
415
475
  function compatibilityCommandPath(command) {
416
476
  const names = [];
417
477
  let current = command;
418
- while (_optionalChain([current, 'optionalAccess', _27 => _27.parent])) {
478
+ while (_optionalChain([current, 'optionalAccess', _30 => _30.parent])) {
419
479
  const name = current.name();
420
480
  if (name) names.unshift(name);
421
481
  current = current.parent;
@@ -461,7 +521,7 @@ async function runPlayRunnerHealthCheck() {
461
521
  });
462
522
  let exitCode = 1;
463
523
  try {
464
- const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-U3CZ4F2W.js")));
524
+ const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-CQI3IDDN.js")));
465
525
  exitCode = await handlePlayRun([
466
526
  file,
467
527
  "--input",
@@ -501,7 +561,7 @@ function preflightErrorMessage(error) {
501
561
  return error instanceof Error ? error.message : String(error);
502
562
  }
503
563
  async function runPreflightCheck() {
504
- const baseUrl = _chunkB5LUKLKHjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
564
+ const baseUrl = _chunkMCPHK7AFjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
505
565
  const healthController = new AbortController();
506
566
  const healthTimeout = setTimeout(
507
567
  () => healthController.abort(),
@@ -516,9 +576,9 @@ async function runPreflightCheck() {
516
576
  version: pickString(payload, "version")
517
577
  };
518
578
  }).catch(() => ({ status: "unreachable", version: null })).finally(() => clearTimeout(healthTimeout));
519
- const apiKey = _chunkB5LUKLKHjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
520
- const http = apiKey ? new (0, _chunkB5LUKLKHjs.HttpClient)(
521
- _chunkB5LUKLKHjs.resolveConfig.call(void 0, {
579
+ const apiKey = _chunkMCPHK7AFjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
580
+ const http = apiKey ? new (0, _chunkMCPHK7AFjs.HttpClient)(
581
+ _chunkMCPHK7AFjs.resolveConfig.call(void 0, {
522
582
  baseUrl,
523
583
  apiKey,
524
584
  timeout: PREFLIGHT_TIMEOUT_MS,
@@ -599,8 +659,8 @@ async function runPreflightCheck() {
599
659
  }
600
660
  function printPreflightHuman(data) {
601
661
  const render = data.render;
602
- const lines = _optionalChain([render, 'optionalAccess', _28 => _28.sections, 'optionalAccess', _29 => _29.flatMap, 'call', _30 => _30((section) => _nullishCoalesce(section.lines, () => ( [])))]);
603
- if (_optionalChain([lines, 'optionalAccess', _31 => _31.length])) {
662
+ const lines = _optionalChain([render, 'optionalAccess', _31 => _31.sections, 'optionalAccess', _32 => _32.flatMap, 'call', _33 => _33((section) => _nullishCoalesce(section.lines, () => ( [])))]);
663
+ if (_optionalChain([lines, 'optionalAccess', _34 => _34.length])) {
604
664
  process.stdout.write(`${lines.join("\n")}
605
665
  `);
606
666
  return;
@@ -610,12 +670,12 @@ function printPreflightHuman(data) {
610
670
  }
611
671
  async function newerCliCommandHint(baseUrl, command) {
612
672
  if (!command.trim()) return null;
613
- const { response, error } = await _chunkVWW6VHQXjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
673
+ const { response, error } = await _chunkG2G67D3Ljs.checkSdkCompatibility.call(void 0, baseUrl, { command });
614
674
  if (error || !response) return null;
615
675
  const introduced = response.command_introduced_in;
616
676
  if (introduced) {
617
677
  return [
618
- `\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkB5LUKLKHjs.SDK_VERSION}.`,
678
+ `\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkMCPHK7AFjs.SDK_VERSION}.`,
619
679
  ` ${introduced.reason}`,
620
680
  ` Update with: ${response.update_command}`,
621
681
  " Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
@@ -624,7 +684,7 @@ async function newerCliCommandHint(baseUrl, command) {
624
684
  if (!response.update_required) return null;
625
685
  return [
626
686
  response.message,
627
- ` Installed: ${_chunkB5LUKLKHjs.SDK_VERSION}. Run: ${response.update_command}`,
687
+ ` Installed: ${_chunkMCPHK7AFjs.SDK_VERSION}. Run: ${response.update_command}`,
628
688
  " If an agent skill told you to run this, the skill is newer than this CLI."
629
689
  ].join("\n");
630
690
  }
@@ -635,7 +695,7 @@ async function runMain(ensureTransport) {
635
695
  argv: process.argv.slice(2)
636
696
  });
637
697
  if (process.stdout.isTTY && !process.argv.includes("--json")) {
638
- for (const message of _chunkVBRO5QCIjs.consumePendingCliUpdateMessages.call(void 0, )) {
698
+ for (const message of _chunkRBBSRB56js.consumePendingCliUpdateMessages.call(void 0, )) {
639
699
  process.stderr.write(`Deepline CLI update: ${message}
640
700
  `);
641
701
  }
@@ -643,12 +703,12 @@ async function runMain(ensureTransport) {
643
703
  const printStartupPhase = shouldPrintStartupPhase();
644
704
  const progress = printStartupPhase ? _chunkWJYPBHTEjs.createCliProgress.call(void 0, true) : null;
645
705
  if (printStartupPhase) {
646
- _optionalChain([progress, 'optionalAccess', _32 => _32.phase, 'call', _33 => _33("loading deepline cli")]);
706
+ _optionalChain([progress, 'optionalAccess', _35 => _35.phase, 'call', _36 => _36("loading deepline cli")]);
647
707
  }
648
708
  const program = new (0, _commander.Command)();
649
709
  program.name("deepline").description(
650
710
  "Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
651
- ).version(_chunkB5LUKLKHjs.SDK_VERSION, "-v, --version", "Show version").exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
711
+ ).version(_chunkMCPHK7AFjs.SDK_VERSION, "-v, --version", "Show version").exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
652
712
  "beforeAll",
653
713
  "for agents: ensure you are using the /deepline-gtm skill\n"
654
714
  ).addHelpText(
@@ -689,7 +749,7 @@ Exit codes:
689
749
  if (actionCommand.name() !== "version") {
690
750
  await ensureTransport();
691
751
  }
692
- if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunkVWW6VHQXjs.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || isAutoUpdateSettingsInvocation() || isDeprecatedCommandInvocation()) {
752
+ if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunkG2G67D3Ljs.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || isAutoUpdateSettingsInvocation() || isDeprecatedCommandInvocation()) {
693
753
  return;
694
754
  }
695
755
  const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
@@ -699,19 +759,19 @@ Exit codes:
699
759
  }
700
760
  const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunkQJBJZVG6js.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
701
761
  if (printStartupPhase) {
702
- _optionalChain([progress, 'optionalAccess', _34 => _34.phase, 'call', _35 => _35("checking sdk compatibility")]);
762
+ _optionalChain([progress, 'optionalAccess', _37 => _37.phase, 'call', _38 => _38("checking sdk compatibility")]);
703
763
  }
704
764
  const startup = await runStartupStage("SDK compatibility", async () => {
705
- const baseUrl = _chunkB5LUKLKHjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
706
- _chunkVWW6VHQXjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
765
+ const baseUrl = _chunkMCPHK7AFjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
766
+ _chunkG2G67D3Ljs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
707
767
  const shouldDeferSkillsSync = shouldDeferSkillsSyncForCommand();
708
- const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkB5LUKLKHjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
709
- const trusted = _chunkVWW6VHQXjs.readTrustedCleanCompatibility.call(void 0,
768
+ const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkMCPHK7AFjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
769
+ const trusted = _chunkG2G67D3Ljs.readTrustedCleanCompatibility.call(void 0,
710
770
  baseUrl,
711
771
  compatibilityCommand,
712
772
  skillsVersion
713
773
  );
714
- const fastDeadline = trusted === null && _chunkVWW6VHQXjs.readFreshCleanCompatibility.call(void 0,
774
+ const fastDeadline = trusted === null && _chunkG2G67D3Ljs.readFreshCleanCompatibility.call(void 0,
715
775
  baseUrl,
716
776
  compatibilityCommand,
717
777
  skillsVersion
@@ -735,11 +795,11 @@ Exit codes:
735
795
  skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
736
796
  fastDeadline
737
797
  },
738
- () => _chunkVWW6VHQXjs.checkSdkCompatibility.call(void 0, baseUrl, {
798
+ () => _chunkG2G67D3Ljs.checkSdkCompatibility.call(void 0, baseUrl, {
739
799
  command: compatibilityCommand,
740
800
  skillsVersion,
741
801
  catalog: _chunkQJBJZVG6js.compatibilityCatalog.call(void 0, actionCommand),
742
- ...fastDeadline ? { timeoutMs: _chunkVWW6VHQXjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
802
+ ...fastDeadline ? { timeoutMs: _chunkG2G67D3Ljs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
743
803
  })
744
804
  );
745
805
  if (compatibility.error) {
@@ -762,7 +822,7 @@ Exit codes:
762
822
  response: compatibility.response
763
823
  };
764
824
  }
765
- _chunkVWW6VHQXjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
825
+ _chunkG2G67D3Ljs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
766
826
  quietAdvisory: process.argv.includes("--json")
767
827
  });
768
828
  return {
@@ -774,7 +834,7 @@ Exit codes:
774
834
  });
775
835
  if (!startup.shouldContinue) return;
776
836
  if (printStartupPhase) {
777
- _optionalChain([progress, 'optionalAccess', _36 => _36.phase, 'call', _37 => _37("checking sdk skills")]);
837
+ _optionalChain([progress, 'optionalAccess', _39 => _39.phase, 'call', _40 => _40("checking sdk skills")]);
778
838
  }
779
839
  if (!startup.shouldDeferSkillsSync) {
780
840
  const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
@@ -783,7 +843,7 @@ Exit codes:
783
843
  () => _chunkAYHLUHE5js.traceCliSpan.call(void 0,
784
844
  "cli.sdk_skills_sync",
785
845
  { baseUrl: startup.baseUrl },
786
- () => _chunkVWW6VHQXjs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
846
+ () => _chunkG2G67D3Ljs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
787
847
  update: skillsUpdate,
788
848
  mode: "detached"
789
849
  })
@@ -796,7 +856,8 @@ Exit codes:
796
856
  program,
797
857
  !requestedCommand || requestedCommand === "help" || requestedCommand.startsWith("-") && !["-v", "--version"].includes(requestedCommand) ? void 0 : requestedCommand
798
858
  );
799
- program.command("preflight").description("Run compact health, auth, and Deepline billing checks.").option("--json", "Force JSON output.").addHelpText(
859
+ const { preflight, health, version } = registerDeeplineInlineCommands(program);
860
+ preflight.addHelpText(
800
861
  "after",
801
862
  `
802
863
  Notes:
@@ -809,16 +870,13 @@ Examples:
809
870
  `
810
871
  ).action(async (options) => {
811
872
  const data = await runPreflightCheck();
812
- if (_chunkODEWOXWWjs.shouldEmitJson.call(void 0, options.json)) {
813
- _chunkODEWOXWWjs.printJson.call(void 0, data);
873
+ if (_chunkGHLWDXUBjs.shouldEmitJson.call(void 0, options.json)) {
874
+ _chunkGHLWDXUBjs.printJson.call(void 0, data);
814
875
  } else {
815
876
  printPreflightHuman(data);
816
877
  }
817
878
  });
818
- program.command("health").description("Check server health.").option("--json", "Force JSON output.").option(
819
- "--play-runner",
820
- "Run a tiny no-provider play to verify the full play execution plane."
821
- ).addHelpText(
879
+ health.addHelpText(
822
880
  "after",
823
881
  `
824
882
  Notes:
@@ -835,20 +893,20 @@ Examples:
835
893
  try {
836
894
  if (options.playRunner) {
837
895
  const data2 = await runPlayRunnerHealthCheck();
838
- _chunkODEWOXWWjs.printJson.call(void 0, data2);
896
+ _chunkGHLWDXUBjs.printJson.call(void 0, data2);
839
897
  return;
840
898
  }
841
- const { DeeplineClient } = await Promise.resolve().then(() => _interopRequireWildcard(require("./client-Z4VFNTUB.js")));
899
+ const { DeeplineClient } = await Promise.resolve().then(() => _interopRequireWildcard(require("./client-GMMPQT7B.js")));
842
900
  const client = new DeeplineClient();
843
901
  const data = await client.health();
844
- _chunkODEWOXWWjs.printJson.call(void 0, data);
902
+ _chunkGHLWDXUBjs.printJson.call(void 0, data);
845
903
  } catch (error) {
846
904
  throw new Error(
847
905
  `Cannot reach Deepline API: ${error instanceof Error ? error.message : String(error)}`
848
906
  );
849
907
  }
850
908
  });
851
- program.command("version").description("Show version.").addHelpText(
909
+ version.addHelpText(
852
910
  "after",
853
911
  `
854
912
  Notes:
@@ -860,17 +918,17 @@ Examples:
860
918
  deepline version --json
861
919
  deepline --version
862
920
  `
863
- ).option("--json", "Emit JSON output").action((options) => {
921
+ ).action((options) => {
864
922
  if (options.json) {
865
- _chunkODEWOXWWjs.printCompactJson.call(void 0, { version: _chunkB5LUKLKHjs.SDK_VERSION });
923
+ _chunkGHLWDXUBjs.printCompactJson.call(void 0, { version: _chunkMCPHK7AFjs.SDK_VERSION });
866
924
  return;
867
925
  }
868
- process.stdout.write(`deepline ${_chunkB5LUKLKHjs.SDK_VERSION}
926
+ process.stdout.write(`deepline ${_chunkMCPHK7AFjs.SDK_VERSION}
869
927
  `);
870
928
  });
871
929
  if (process.argv.slice(2).length === 0) {
872
930
  if (!process.stdout.isTTY) {
873
- _chunkODEWOXWWjs.printJson.call(void 0, {
931
+ _chunkGHLWDXUBjs.printJson.call(void 0, {
874
932
  ok: false,
875
933
  exitCode: 2,
876
934
  code: "MISSING_COMMAND",
@@ -894,7 +952,7 @@ Examples:
894
952
  const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
895
953
  if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
896
954
  console.error(`error: unknown command '${requestedTopLevelCommand}'`);
897
- const baseUrl = _chunkB5LUKLKHjs.autoDetectBaseUrl.call(void 0, );
955
+ const baseUrl = _chunkMCPHK7AFjs.autoDetectBaseUrl.call(void 0, );
898
956
  await ensureTransport();
899
957
  const versionHint = await newerCliCommandHint(
900
958
  baseUrl,
@@ -915,7 +973,7 @@ Examples:
915
973
  ms: Date.now() - mainStartedAt,
916
974
  ok: true
917
975
  });
918
- await _chunkVWW6VHQXjs.maybeReportSdkCliFailure.call(void 0, {
976
+ await _chunkG2G67D3Ljs.maybeReportSdkCliFailure.call(void 0, {
919
977
  argv: process.argv.slice(2),
920
978
  startedAtMs: mainStartedAt,
921
979
  exitCode: typeof process.exitCode === "number" ? process.exitCode : null
@@ -928,26 +986,41 @@ Examples:
928
986
  ok: false,
929
987
  error: error instanceof Error ? error.message : String(error)
930
988
  });
931
- _optionalChain([progress, 'optionalAccess', _38 => _38.fail, 'call', _39 => _39()]);
989
+ _optionalChain([progress, 'optionalAccess', _41 => _41.fail, 'call', _42 => _42()]);
932
990
  const wantsJson = process.argv.includes("--json");
933
991
  if (commanderError) {
934
- if (commanderError.code === "commander.unknownCommand") {
992
+ if ([
993
+ "commander.unknownCommand",
994
+ "commander.unknownOption",
995
+ "commander.excessArguments"
996
+ ].includes(commanderError.code)) {
997
+ const invocation = inspectCliInvocation(program, process.argv.slice(2));
998
+ const commandPath = invocation.commandPath || requestedTopLevelCommand;
999
+ await ensureTransport();
1000
+ const versionHint = await newerCliCommandHint(
1001
+ _chunkMCPHK7AFjs.autoDetectBaseUrl.call(void 0, ),
1002
+ commandPath
1003
+ );
1004
+ if (versionHint) console.error(versionHint);
1005
+ console.error(
1006
+ `Check this installation's grammar: deepline ${commandPath} --help`
1007
+ );
935
1008
  }
936
1009
  process.exitCode = commanderError.code === "commander.unknownCommand" && !wantsJson ? 2 : _nullishCoalesce(commanderError.exitCode, () => ( 1));
937
1010
  return;
938
1011
  } else if (wantsJson) {
939
- _chunkODEWOXWWjs.printJsonError.call(void 0, error);
1012
+ _chunkGHLWDXUBjs.printJsonError.call(void 0, error);
940
1013
  } else if (error instanceof Error) {
941
1014
  console.error(`Error: ${error.message}`);
942
- const providerConcurrency = _chunkODEWOXWWjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
1015
+ const providerConcurrency = _chunkGHLWDXUBjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
943
1016
  if (providerConcurrency) console.error(providerConcurrency);
944
1017
  } else {
945
1018
  console.error(`Error: ${String(error)}`);
946
1019
  }
947
1020
  const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
948
- const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkVWW6VHQXjs.resolveSdkCliFailureExitCode.call(void 0, error)));
1021
+ const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkG2G67D3Ljs.resolveSdkCliFailureExitCode.call(void 0, error)));
949
1022
  process.exitCode = failureExitCode;
950
- await _chunkVWW6VHQXjs.maybeReportSdkCliFailure.call(void 0, {
1023
+ await _chunkG2G67D3Ljs.maybeReportSdkCliFailure.call(void 0, {
951
1024
  argv: process.argv.slice(2),
952
1025
  startedAtMs: mainStartedAt,
953
1026
  exitCode: failureExitCode,
@@ -967,7 +1040,7 @@ async function main() {
967
1040
  "http_proxy",
968
1041
  "HTTPS_PROXY",
969
1042
  "https_proxy"
970
- ].some((name) => _optionalChain([process, 'access', _40 => _40.env, 'access', _41 => _41[name], 'optionalAccess', _42 => _42.trim, 'call', _43 => _43()]));
1043
+ ].some((name) => _optionalChain([process, 'access', _43 => _43.env, 'access', _44 => _44[name], 'optionalAccess', _45 => _45.trim, 'call', _46 => _46()]));
971
1044
  if (!process.versions.bun || hasProxy) {
972
1045
  const { configureCliTransport } = await Promise.resolve().then(() => _interopRequireWildcard(require("./proxy-env-ZV2WZFAT.js")));
973
1046
  disposeTransport = configureCliTransport();
@@ -976,7 +1049,7 @@ async function main() {
976
1049
  try {
977
1050
  await runMain(ensureTransport);
978
1051
  } finally {
979
- await _optionalChain([disposeTransport, 'optionalCall', _44 => _44()]);
1052
+ await _optionalChain([disposeTransport, 'optionalCall', _47 => _47()]);
980
1053
  }
981
1054
  }
982
1055
  var DEV_CLI_AWAIT_MAIN = Symbol.for("@deepline/sdk/dev-cli-await-main");