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.
- package/dist/bundling-sources/sdk/src/client.ts +12 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/runs/overview.ts +17 -10
- package/dist/bundling-sources/sdk/src/types.ts +16 -5
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +217 -488
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +15 -0
- package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +4 -1
- package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +13 -4
- package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/live-events.ts +31 -0
- package/dist/bundling-sources/shared_libs/play-runtime/map-execution-frame.ts +444 -51
- package/dist/bundling-sources/shared_libs/play-runtime/run-snapshot-stream.ts +22 -43
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +4 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +136 -87
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +24 -6
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +56 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sheet-errors.ts +94 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +5 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +20 -11
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +18 -12
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +140 -9
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-dispatch-authority.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-storage-contract.ts +13 -0
- package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +2 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +3 -2
- package/dist/bundling-sources/shared_libs/plays/docflow-binding-owner.ts +61 -11
- package/dist/cli/{auth-GWF55S3N.mjs → auth-JP7ZJ4OI.mjs} +4 -4
- package/dist/cli/auth-SPUJ4EXC.js +31 -0
- package/dist/cli/{billing-WWOJN7GV.mjs → billing-KG6MC2BC.mjs} +4 -4
- package/dist/cli/{billing-2YU6E2IF.js → billing-WZGS32ME.js} +70 -70
- package/dist/cli/{chunk-OJ243ZA5.js → chunk-2HKPAZVJ.js} +1 -1
- package/dist/cli/{chunk-YVMJTXEG.js → chunk-35YXDTOB.js} +26 -26
- package/dist/cli/{chunk-QB5MAFCU.mjs → chunk-46ZOD4PQ.mjs} +1 -1
- package/dist/cli/{chunk-CPN2N6EZ.mjs → chunk-6R5ACEWN.mjs} +43 -17
- package/dist/cli/{chunk-US4S3E4Y.mjs → chunk-7PZFGB7L.mjs} +1 -1
- package/dist/cli/{chunk-3CKNUJVZ.mjs → chunk-AXAPMVUC.mjs} +4 -4
- package/dist/cli/{chunk-ENQZV7NR.js → chunk-B6OOVO3A.js} +562 -536
- package/dist/cli/{chunk-WDPRE6DU.js → chunk-BOKHMPCZ.js} +48 -48
- package/dist/cli/{chunk-VFRZG4OW.js → chunk-C6QGM72M.js} +1 -1
- package/dist/cli/{chunk-IZTIBG7A.mjs → chunk-D3NMIACS.mjs} +29 -15
- package/dist/cli/{chunk-DR3S76BG.mjs → chunk-DAFGPNVW.mjs} +1 -1
- package/dist/cli/{chunk-3K6QD7Z3.mjs → chunk-F2T5UENG.mjs} +1 -1
- package/dist/cli/{chunk-VWW6VHQX.js → chunk-G2G67D3L.js} +60 -60
- package/dist/cli/{chunk-ODEWOXWW.js → chunk-GHLWDXUB.js} +6 -6
- package/dist/cli/{chunk-25SPKKF2.mjs → chunk-IDSDRGKF.mjs} +1 -1
- package/dist/cli/{chunk-OUHCJL5B.mjs → chunk-J3ZPMADG.mjs} +1 -1
- package/dist/cli/{chunk-MLEJ2FYH.js → chunk-K3BIRBT3.js} +248 -234
- package/dist/cli/{chunk-N5V2SBB2.mjs → chunk-KP7W5NO6.mjs} +1 -1
- package/dist/cli/{chunk-B5LUKLKH.js → chunk-MCPHK7AF.js} +4 -4
- package/dist/cli/{chunk-2Q2IKUL5.mjs → chunk-OB3SYJGU.mjs} +3 -3
- package/dist/cli/{chunk-UZTTPEG2.js → chunk-PJERS5VW.js} +6 -6
- package/dist/cli/{chunk-VBRO5QCI.js → chunk-RBBSRB56.js} +15 -15
- package/dist/cli/{chunk-NG4WDOGN.js → chunk-SRUWVQ66.js} +6 -6
- package/dist/cli/{chunk-WTO3ITBC.mjs → chunk-TYSAKSX7.mjs} +2 -2
- package/dist/cli/{chunk-HTXZLCSP.mjs → chunk-VC25WFXV.mjs} +2 -2
- package/dist/cli/{chunk-3A4LJUX6.mjs → chunk-VDPBQCRQ.mjs} +2 -2
- package/dist/cli/{chunk-IALPYID6.js → chunk-XSEMQ4II.js} +3 -3
- package/dist/cli/{chunk-JNUHGWB2.js → chunk-YEMOOWZI.js} +50 -50
- package/dist/cli/{chunk-JZZT4GAY.mjs → chunk-YNSAVFWL.mjs} +5 -5
- package/dist/cli/{chunk-GSRDZD7R.js → chunk-ZNHGAWYI.js} +2 -2
- package/dist/cli/client-GMMPQT7B.js +20 -0
- package/dist/cli/{client-EYGNDORT.mjs → client-MNPM4ME3.mjs} +3 -3
- package/dist/cli/{csv-YOW5JMOH.js → csv-G72FIQWI.js} +12 -12
- package/dist/cli/{csv-NZCN7SVV.mjs → csv-ZME7HAPR.mjs} +3 -3
- package/dist/cli/{db-HALJV3KY.mjs → db-K2DS4PEY.mjs} +4 -4
- package/dist/cli/{db-6BIYLZ6F.js → db-KRBWHSMA.js} +20 -20
- package/dist/cli/{describe-KY2ZYGBR.mjs → describe-LXBJP6OP.mjs} +10 -10
- package/dist/cli/{describe-WA6R2JSH.js → describe-UKFV376D.js} +17 -17
- package/dist/cli/{executions-CBOAN6KI.mjs → executions-2V3AROY6.mjs} +4 -4
- package/dist/cli/{executions-NMCTN7XM.js → executions-E66AM4JU.js} +6 -6
- package/dist/cli/{feedback-ZZFDSCWS.js → feedback-7C2N7M37.js} +6 -6
- package/dist/cli/{feedback-FOMPE3DJ.mjs → feedback-IEPZ2XKZ.mjs} +3 -3
- package/dist/cli/{git-YQR2NBCO.mjs → git-AR5KGN4O.mjs} +4 -4
- package/dist/cli/git-EXYB66IH.js +23 -0
- package/dist/cli/index.js +171 -98
- package/dist/cli/index.mjs +114 -41
- package/dist/cli/{legacy-noops-XH2TFFI6.js → legacy-noops-A2SH45P4.js} +7 -7
- package/dist/cli/{legacy-noops-KMU6P3K4.mjs → legacy-noops-LC2EGAZU.mjs} +4 -4
- package/dist/cli/{monitors-2ONK5L3I.mjs → monitors-5YPW3IZQ.mjs} +4 -4
- package/dist/cli/{monitors-5M3BZ5OR.js → monitors-IZBUPKPW.js} +85 -85
- package/dist/cli/{org-LR5BMCGL.mjs → org-2OMYI5KJ.mjs} +4 -4
- package/dist/cli/{org-6MKULUZI.js → org-L42SQ65U.js} +60 -60
- package/dist/cli/play-CQI3IDDN.js +152 -0
- package/dist/cli/{play-4NOSD7DW.mjs → play-UPCBLAOH.mjs} +9 -9
- package/dist/cli/{providers-UFJD3VKF.js → providers-GGNDWUKB.js} +7 -7
- package/dist/cli/{providers-UBGIKGCA.mjs → providers-VE2RM56M.mjs} +4 -4
- package/dist/cli/{quickstart-KQZHZE6C.js → quickstart-4CZHURUX.js} +5 -5
- package/dist/cli/{quickstart-KDUKQRUH.mjs → quickstart-HSJ7FU7Z.mjs} +3 -3
- package/dist/cli/{search-4BVOOS5Q.mjs → search-MWBM3I2L.mjs} +5 -5
- package/dist/cli/search-PD5FBCUN.js +26 -0
- package/dist/cli/{secrets-TVXZ3WJ3.js → secrets-CWBPGDZV.js} +13 -13
- package/dist/cli/{secrets-YGV23N3N.mjs → secrets-W5DQYKGU.mjs} +4 -4
- package/dist/cli/{sessions-RWIQWDFD.js → sessions-EDCFU6P2.js} +5 -5
- package/dist/cli/{sessions-G7ROUW35.mjs → sessions-Q42GUYTF.mjs} +4 -4
- package/dist/cli/{settings-TG3E2NR7.js → settings-OKRENZGX.js} +74 -74
- package/dist/cli/{settings-QZEVGCXE.mjs → settings-SO56AJPQ.mjs} +7 -7
- package/dist/cli/{setup-3KDUNEEE.js → setup-7PLHLNLS.js} +41 -41
- package/dist/cli/{setup-HUXINKOH.mjs → setup-OTYMF5CZ.mjs} +6 -6
- package/dist/cli/{skills-LHU3DB7J.mjs → skills-4UFS4FXP.mjs} +4 -4
- package/dist/cli/skills-IP7IW7EQ.js +28 -0
- package/dist/cli/{tools-J5WQ33BB.mjs → tools-6FV543YV.mjs} +6 -6
- package/dist/cli/tools-A2YNR6PI.js +38 -0
- package/dist/cli/{update-T6744RM7.mjs → update-6POGDXYW.mjs} +6 -6
- package/dist/cli/update-QXSGKLJG.js +28 -0
- package/dist/cli/{workflow-CG2B65HD.mjs → workflow-HVZSFWYR.mjs} +5 -5
- package/dist/cli/{workflow-YF5SQJLG.js → workflow-RB4POZP5.js} +15 -15
- package/dist/{client-OBwghxPC.d.ts → client-BV68GMPo.d.ts} +19 -6
- package/dist/{client-CtVdLZux.d.mts → client-D9ACjiRC.d.mts} +19 -6
- package/dist/{compiler-manifest-wOKNiXpa.d.mts → compiler-manifest-BXcZ4P4W.d.mts} +2 -2
- package/dist/{compiler-manifest-wOKNiXpa.d.ts → compiler-manifest-BXcZ4P4W.d.ts} +2 -2
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +7 -7
- package/dist/index.mjs +4 -4
- package/dist/install-integrity.json +82 -82
- package/dist/plays/bundle-play-file.d.mts +2 -2
- package/dist/plays/bundle-play-file.d.ts +2 -2
- package/dist/plays/bundle-play-file.mjs +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-QX2L4LPM.js +0 -31
- package/dist/cli/client-Z4VFNTUB.js +0 -20
- package/dist/cli/git-AC2ATBDK.js +0 -23
- package/dist/cli/play-U3CZ4F2W.js +0 -152
- package/dist/cli/search-Y7OTFRCI.js +0 -26
- package/dist/cli/skills-CO5YUWBK.js +0 -28
- package/dist/cli/tools-MWPT5X47.js +0 -38
- package/dist/cli/update-VVIJW7ZJ.js +0 -28
package/dist/cli/index.mjs
CHANGED
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
resolveUpdatePlan,
|
|
12
12
|
runAutomaticUpdatePlan,
|
|
13
13
|
shouldRunCliAutoUpdate
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-AXAPMVUC.mjs";
|
|
15
|
+
import "./chunk-J3ZPMADG.mjs";
|
|
16
16
|
import {
|
|
17
17
|
SDK_COMPATIBILITY_FAST_DEADLINE_MS,
|
|
18
18
|
SKILLS_AUTO_SYNC_COMMAND,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
readTrustedCleanCompatibility,
|
|
26
26
|
resolveSdkCliFailureExitCode,
|
|
27
27
|
syncSdkSkillsIfNeeded
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-TYSAKSX7.mjs";
|
|
29
29
|
import {
|
|
30
30
|
recordCliTrace,
|
|
31
31
|
traceCliSpan
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
printJson,
|
|
40
40
|
printJsonError,
|
|
41
41
|
shouldEmitJson
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-46ZOD4PQ.mjs";
|
|
43
43
|
import {
|
|
44
44
|
HttpClient,
|
|
45
45
|
SDK_VERSION,
|
|
@@ -47,65 +47,116 @@ import {
|
|
|
47
47
|
readSdkSkillsLocalVersion,
|
|
48
48
|
resolveApiKeyForBaseUrl,
|
|
49
49
|
resolveConfig
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-IDSDRGKF.mjs";
|
|
51
51
|
import "./chunk-DLIRSHV6.mjs";
|
|
52
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-F2T5UENG.mjs";
|
|
53
53
|
import "./chunk-NXGCO4JB.mjs";
|
|
54
54
|
import "./chunk-WZYKRD7T.mjs";
|
|
55
55
|
import "./chunk-KRD6H754.mjs";
|
|
56
56
|
|
|
57
|
+
// src/cli/command-invocation.ts
|
|
58
|
+
import { Command, CommanderError } from "commander";
|
|
59
|
+
function parserPolicy(command, name) {
|
|
60
|
+
const value = Object.getOwnPropertyDescriptor(command, name)?.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 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 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
|
import { mkdtemp, rm, writeFile } from "fs/promises";
|
|
59
110
|
import { join } from "path";
|
|
60
111
|
import { tmpdir } from "os";
|
|
61
|
-
import { Command } from "commander";
|
|
112
|
+
import { Command as Command2 } from "commander";
|
|
62
113
|
|
|
63
114
|
// src/cli/command-registry.ts
|
|
64
115
|
var COMMAND_GROUPS = [
|
|
65
116
|
{
|
|
66
117
|
names: ["auth"],
|
|
67
|
-
load: async () => (await import("./auth-
|
|
118
|
+
load: async () => (await import("./auth-JP7ZJ4OI.mjs")).registerAuthCommands
|
|
68
119
|
},
|
|
69
120
|
{
|
|
70
121
|
names: ["providers"],
|
|
71
|
-
load: async () => (await import("./providers-
|
|
122
|
+
load: async () => (await import("./providers-VE2RM56M.mjs")).registerProviderCommands
|
|
72
123
|
},
|
|
73
124
|
{
|
|
74
125
|
names: ["search"],
|
|
75
|
-
load: async () => (await import("./search-
|
|
126
|
+
load: async () => (await import("./search-MWBM3I2L.mjs")).registerSearchCommand
|
|
76
127
|
},
|
|
77
128
|
{
|
|
78
129
|
names: ["describe"],
|
|
79
|
-
load: async () => (await import("./describe-
|
|
130
|
+
load: async () => (await import("./describe-LXBJP6OP.mjs")).registerDescribeCommand
|
|
80
131
|
},
|
|
81
132
|
{
|
|
82
133
|
names: ["tools"],
|
|
83
|
-
load: async () => (await import("./tools-
|
|
134
|
+
load: async () => (await import("./tools-6FV543YV.mjs")).registerToolsCommands
|
|
84
135
|
},
|
|
85
136
|
{
|
|
86
137
|
names: ["executions"],
|
|
87
|
-
load: async () => (await import("./executions-
|
|
138
|
+
load: async () => (await import("./executions-2V3AROY6.mjs")).registerExecutionsCommands
|
|
88
139
|
},
|
|
89
140
|
{
|
|
90
141
|
names: ["plays", "runs"],
|
|
91
|
-
load: async () => (await import("./play-
|
|
142
|
+
load: async () => (await import("./play-UPCBLAOH.mjs")).registerPlayCommands
|
|
92
143
|
},
|
|
93
144
|
{
|
|
94
145
|
names: ["sessions"],
|
|
95
|
-
load: async () => (await import("./sessions-
|
|
146
|
+
load: async () => (await import("./sessions-Q42GUYTF.mjs")).registerSessionsCommands
|
|
96
147
|
},
|
|
97
148
|
{
|
|
98
149
|
names: ["workflows"],
|
|
99
|
-
load: async () => (await import("./workflow-
|
|
150
|
+
load: async () => (await import("./workflow-HVZSFWYR.mjs")).registerWorkflowCommands
|
|
100
151
|
},
|
|
101
152
|
{
|
|
102
153
|
names: ["secrets"],
|
|
103
|
-
load: async () => (await import("./secrets-
|
|
154
|
+
load: async () => (await import("./secrets-W5DQYKGU.mjs")).registerSecretsCommands
|
|
104
155
|
},
|
|
105
156
|
{
|
|
106
157
|
names: ["settings", "notifications"],
|
|
107
158
|
load: async () => {
|
|
108
|
-
const commands = await import("./settings-
|
|
159
|
+
const commands = await import("./settings-SO56AJPQ.mjs");
|
|
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 import("./billing-
|
|
168
|
+
load: async () => (await import("./billing-KG6MC2BC.mjs")).registerBillingCommands
|
|
118
169
|
},
|
|
119
170
|
{
|
|
120
171
|
names: ["monitors"],
|
|
121
|
-
load: async () => (await import("./monitors-
|
|
172
|
+
load: async () => (await import("./monitors-5YPW3IZQ.mjs")).registerMonitorsCommands
|
|
122
173
|
},
|
|
123
174
|
{
|
|
124
175
|
names: ["org"],
|
|
125
|
-
load: async () => (await import("./org-
|
|
176
|
+
load: async () => (await import("./org-2OMYI5KJ.mjs")).registerOrgCommands
|
|
126
177
|
},
|
|
127
178
|
{
|
|
128
179
|
names: ["git", "projects", "deployments"],
|
|
129
|
-
load: async () => (await import("./git-
|
|
180
|
+
load: async () => (await import("./git-AR5KGN4O.mjs")).registerGitCommands
|
|
130
181
|
},
|
|
131
182
|
{
|
|
132
183
|
names: ["csv"],
|
|
133
|
-
load: async () => (await import("./csv-
|
|
184
|
+
load: async () => (await import("./csv-ZME7HAPR.mjs")).registerCsvCommands
|
|
134
185
|
},
|
|
135
186
|
{
|
|
136
187
|
names: ["db"],
|
|
137
|
-
load: async () => (await import("./db-
|
|
188
|
+
load: async () => (await import("./db-K2DS4PEY.mjs")).registerDbCommands
|
|
138
189
|
},
|
|
139
190
|
{
|
|
140
191
|
names: ["feedback"],
|
|
141
|
-
load: async () => (await import("./feedback-
|
|
192
|
+
load: async () => (await import("./feedback-IEPZ2XKZ.mjs")).registerFeedbackCommands
|
|
142
193
|
},
|
|
143
194
|
{
|
|
144
195
|
names: ["enrich", "session", "backend"],
|
|
145
|
-
load: async () => (await import("./legacy-noops-
|
|
196
|
+
load: async () => (await import("./legacy-noops-LC2EGAZU.mjs")).registerDeprecatedCommands
|
|
146
197
|
},
|
|
147
198
|
{
|
|
148
199
|
names: ["update"],
|
|
149
|
-
load: async () => (await import("./update-
|
|
200
|
+
load: async () => (await import("./update-6POGDXYW.mjs")).registerUpdateCommand
|
|
150
201
|
},
|
|
151
202
|
{
|
|
152
203
|
names: ["skills", "skills-auto-sync"],
|
|
153
|
-
load: async () => (await import("./skills-
|
|
204
|
+
load: async () => (await import("./skills-4UFS4FXP.mjs")).registerSkillsCommand
|
|
154
205
|
},
|
|
155
206
|
{
|
|
156
207
|
names: ["setup", "doctor"],
|
|
157
|
-
load: async () => (await import("./setup-
|
|
208
|
+
load: async () => (await import("./setup-OTYMF5CZ.mjs")).registerSetupCommands
|
|
158
209
|
},
|
|
159
210
|
{
|
|
160
211
|
names: ["quickstart"],
|
|
161
|
-
load: async () => (await import("./quickstart-
|
|
212
|
+
load: async () => (await import("./quickstart-HSJ7FU7Z.mjs")).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
|
import { spawn } from "child_process";
|
|
@@ -461,7 +521,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
461
521
|
});
|
|
462
522
|
let exitCode = 1;
|
|
463
523
|
try {
|
|
464
|
-
const { handlePlayRun } = await import("./play-
|
|
524
|
+
const { handlePlayRun } = await import("./play-UPCBLAOH.mjs");
|
|
465
525
|
exitCode = await handlePlayRun([
|
|
466
526
|
file,
|
|
467
527
|
"--input",
|
|
@@ -645,7 +705,7 @@ async function runMain(ensureTransport) {
|
|
|
645
705
|
if (printStartupPhase) {
|
|
646
706
|
progress?.phase("loading deepline cli");
|
|
647
707
|
}
|
|
648
|
-
const program = new
|
|
708
|
+
const program = new Command2();
|
|
649
709
|
program.name("deepline").description(
|
|
650
710
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
651
711
|
).version(SDK_VERSION, "-v, --version", "Show version").exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
|
|
@@ -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
|
-
|
|
859
|
+
const { preflight, health, version } = registerDeeplineInlineCommands(program);
|
|
860
|
+
preflight.addHelpText(
|
|
800
861
|
"after",
|
|
801
862
|
`
|
|
802
863
|
Notes:
|
|
@@ -815,10 +876,7 @@ Examples:
|
|
|
815
876
|
printPreflightHuman(data);
|
|
816
877
|
}
|
|
817
878
|
});
|
|
818
|
-
|
|
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:
|
|
@@ -838,7 +896,7 @@ Examples:
|
|
|
838
896
|
printJson(data2);
|
|
839
897
|
return;
|
|
840
898
|
}
|
|
841
|
-
const { DeeplineClient } = await import("./client-
|
|
899
|
+
const { DeeplineClient } = await import("./client-MNPM4ME3.mjs");
|
|
842
900
|
const client = new DeeplineClient();
|
|
843
901
|
const data = await client.health();
|
|
844
902
|
printJson(data);
|
|
@@ -848,7 +906,7 @@ Examples:
|
|
|
848
906
|
);
|
|
849
907
|
}
|
|
850
908
|
});
|
|
851
|
-
|
|
909
|
+
version.addHelpText(
|
|
852
910
|
"after",
|
|
853
911
|
`
|
|
854
912
|
Notes:
|
|
@@ -860,7 +918,7 @@ Examples:
|
|
|
860
918
|
deepline version --json
|
|
861
919
|
deepline --version
|
|
862
920
|
`
|
|
863
|
-
).
|
|
921
|
+
).action((options) => {
|
|
864
922
|
if (options.json) {
|
|
865
923
|
printCompactJson({ version: SDK_VERSION });
|
|
866
924
|
return;
|
|
@@ -931,7 +989,22 @@ Examples:
|
|
|
931
989
|
progress?.fail();
|
|
932
990
|
const wantsJson = process.argv.includes("--json");
|
|
933
991
|
if (commanderError) {
|
|
934
|
-
if (
|
|
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
|
+
autoDetectBaseUrl(),
|
|
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 : commanderError.exitCode ?? 1;
|
|
937
1010
|
return;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkSRUWVQ66js = require('./chunk-SRUWVQ66.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunk3XX5TEA4js = require('./chunk-3XX5TEA4.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
10
|
-
require('./chunk-
|
|
9
|
+
var _chunkGHLWDXUBjs = require('./chunk-GHLWDXUB.js');
|
|
10
|
+
require('./chunk-MCPHK7AF.js');
|
|
11
11
|
require('./chunk-XNYIZMNQ.js');
|
|
12
|
-
require('./chunk-
|
|
12
|
+
require('./chunk-C6QGM72M.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
|
-
|
|
54
|
+
_chunkGHLWDXUBjs.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
|
-
|
|
74
|
+
_chunkGHLWDXUBjs.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
|
-
|
|
117
|
+
_chunkSRUWVQ66js.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-
|
|
3
|
+
} from "./chunk-DAFGPNVW.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-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-46ZOD4PQ.mjs";
|
|
10
|
+
import "./chunk-IDSDRGKF.mjs";
|
|
11
11
|
import "./chunk-DLIRSHV6.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-F2T5UENG.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-
|
|
4
|
+
} from "./chunk-D3NMIACS.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-
|
|
19
|
+
} from "./chunk-46ZOD4PQ.mjs";
|
|
20
20
|
import {
|
|
21
21
|
AuthError
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-IDSDRGKF.mjs";
|
|
23
23
|
import "./chunk-DLIRSHV6.mjs";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-F2T5UENG.mjs";
|
|
25
25
|
import "./chunk-6IKARAYD.mjs";
|
|
26
26
|
import {
|
|
27
27
|
DeeplineError
|