@solti/cli 0.0.0-stage → 0.1.1

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.
@@ -0,0 +1,97 @@
1
+ import fs from "node:fs/promises";
2
+ import path from "node:path";
3
+ import { accountsDir, activeStorePath, authFilePath, profileConfigPath, profilesDir, } from "./paths.js";
4
+ async function readJson(filePath) {
5
+ try {
6
+ const raw = await fs.readFile(filePath, "utf8");
7
+ return JSON.parse(raw);
8
+ }
9
+ catch {
10
+ return null;
11
+ }
12
+ }
13
+ async function writeJson(filePath, value, mode) {
14
+ await fs.mkdir(path.dirname(filePath), { recursive: true });
15
+ await fs.writeFile(filePath, JSON.stringify(value, null, 2) + "\n", { mode });
16
+ }
17
+ // --- active store -----------------------------------------------------------
18
+ export async function readActive() {
19
+ return (await readJson(activeStorePath)) ?? {};
20
+ }
21
+ export async function writeActive(store) {
22
+ await writeJson(activeStorePath, store);
23
+ }
24
+ export async function getActiveAccount() {
25
+ return (await readActive()).active_account ?? null;
26
+ }
27
+ export async function getActiveProfileName() {
28
+ return (await readActive()).active_profile ?? null;
29
+ }
30
+ // --- accounts ---------------------------------------------------------------
31
+ export async function listAccounts() {
32
+ try {
33
+ const entries = await fs.readdir(accountsDir, { withFileTypes: true });
34
+ return entries.filter((entry) => entry.isDirectory()).map((entry) => entry.name);
35
+ }
36
+ catch {
37
+ return [];
38
+ }
39
+ }
40
+ export async function readAuth(email) {
41
+ return readJson(authFilePath(email));
42
+ }
43
+ export async function writeAuth(email, auth) {
44
+ // Credentials are stored with owner-only permissions (0600).
45
+ await writeJson(authFilePath(email), { ...auth, email }, 0o600);
46
+ }
47
+ export async function deleteAuth(email) {
48
+ try {
49
+ await fs.unlink(authFilePath(email));
50
+ }
51
+ catch {
52
+ // already gone
53
+ }
54
+ }
55
+ // --- profiles ---------------------------------------------------------------
56
+ export async function listProfiles(email) {
57
+ try {
58
+ const entries = await fs.readdir(profilesDir(email), { withFileTypes: true });
59
+ return entries.filter((entry) => entry.isDirectory()).map((entry) => entry.name);
60
+ }
61
+ catch {
62
+ return [];
63
+ }
64
+ }
65
+ export async function readProfile(email, profileName) {
66
+ return readJson(profileConfigPath(email, profileName));
67
+ }
68
+ export async function writeProfile(email, profileName, config) {
69
+ await writeJson(profileConfigPath(email, profileName), config);
70
+ }
71
+ export async function deleteProfile(email, profileName) {
72
+ try {
73
+ await fs.rm(profileConfigPath(email, profileName).replace("/config.json", ""), {
74
+ recursive: true,
75
+ force: true,
76
+ });
77
+ }
78
+ catch {
79
+ // already gone
80
+ }
81
+ }
82
+ /**
83
+ * Resolves the active profile per spec §1.1: `SOLTI_PROFILE` env var wins,
84
+ * then `active_profile` from active.json.
85
+ */
86
+ export async function resolveActiveProfile() {
87
+ const account = await getActiveAccount();
88
+ if (account === null)
89
+ return null;
90
+ const profileName = process.env.SOLTI_PROFILE ?? (await getActiveProfileName());
91
+ if (profileName === null || profileName === undefined)
92
+ return null;
93
+ const config = await readProfile(account, profileName);
94
+ if (config === null)
95
+ return null;
96
+ return { account, profileName, config };
97
+ }
package/dist/index.js ADDED
@@ -0,0 +1,323 @@
1
+ #!/usr/bin/env node
2
+ import { Command } from "commander";
3
+ import * as account from "./commands/account.js";
4
+ import * as connection from "./commands/connection.js";
5
+ import * as cronjob from "./commands/cronjob.js";
6
+ import * as job from "./commands/job.js";
7
+ import * as key from "./commands/key.js";
8
+ import * as organization from "./commands/organization.js";
9
+ import * as profile from "./commands/profile.js";
10
+ import * as project from "./commands/project.js";
11
+ import * as resource from "./commands/resource.js";
12
+ const program = new Command();
13
+ program
14
+ .name("solti")
15
+ .description("Solti Platform CLI — schedule and run asynchronous workloads without managing infrastructure.")
16
+ .version("0.1.1")
17
+ .option("--profile <name>", "override the active profile (or set SOLTI_PROFILE)")
18
+ .option("--api-key <key>", "override the API key (or set SOLTI_API_KEY)");
19
+ function fail(error) {
20
+ console.error(`error: ${error.message}`);
21
+ process.exit(1);
22
+ }
23
+ // --- account ----------------------------------------------------------------
24
+ const accountCommand = program.command("account").description("Manage logged-in accounts");
25
+ accountCommand
26
+ .command("login")
27
+ .description("Log in via your browser (LogTo OAuth)")
28
+ .option("--no-launch-browser", "print the sign-in URL instead of opening a browser")
29
+ .action(async (_args, command) => {
30
+ const { launchBrowser } = command.opts();
31
+ await account.accountLogin({ launchBrowser }).catch(fail);
32
+ });
33
+ accountCommand
34
+ .command("logout")
35
+ .description("Log out the active account")
36
+ .action(async () => {
37
+ await account.accountLogout().catch(fail);
38
+ });
39
+ accountCommand
40
+ .command("list")
41
+ .description("List locally logged-in accounts")
42
+ .action(async () => {
43
+ await account.accountList().catch(fail);
44
+ });
45
+ accountCommand
46
+ .command("switch <email>")
47
+ .description("Switch the active account")
48
+ .action(async (email) => {
49
+ await account.accountSwitch(email).catch(fail);
50
+ });
51
+ accountCommand
52
+ .command("show [email]")
53
+ .description("Show account information (defaults to the active account)")
54
+ .action(async (email) => {
55
+ await account.accountShow(email).catch(fail);
56
+ });
57
+ // --- profile ----------------------------------------------------------------
58
+ const profileCommand = program
59
+ .command("profile")
60
+ .description("Manage project profiles of the active account");
61
+ profileCommand
62
+ .command("list")
63
+ .description("List profiles of the active account")
64
+ .action(async () => {
65
+ await profile.profileList().catch(fail);
66
+ });
67
+ profileCommand
68
+ .command("set <profile_name>")
69
+ .description("Create or update a profile")
70
+ .requiredOption("--project-id <id>", "the project UUID")
71
+ .option("--api-key <key>", "the Solti API key (Zitadel PAT); omit to use OAuth tokens")
72
+ .option("--api-url <url>", "custom base API URL override")
73
+ .action(async (profileName, options) => {
74
+ await profile.profileSet(profileName, options).catch(fail);
75
+ });
76
+ profileCommand
77
+ .command("use <profile_name>")
78
+ .description("Switch the active profile (prints `export SOLTI_PROFILE=...` for eval)")
79
+ .action(async (profileName) => {
80
+ await profile.profileUse(profileName).catch(fail);
81
+ });
82
+ profileCommand
83
+ .command("show [profile_name]")
84
+ .description("Show profile details (API key is redacted)")
85
+ .action(async (profileName) => {
86
+ await profile.profileShow(profileName).catch(fail);
87
+ });
88
+ profileCommand
89
+ .command("delete <profile_name>")
90
+ .description("Delete a profile")
91
+ .action(async (profileName) => {
92
+ await profile.profileDelete(profileName).catch(fail);
93
+ });
94
+ // --- organization -----------------------------------------------------------
95
+ const orgCommand = program
96
+ .command("organization")
97
+ .description("Manage organizations (requires OAuth login)");
98
+ orgCommand
99
+ .command("list")
100
+ .description("List organizations you belong to")
101
+ .action(async () => {
102
+ await organization.organizationList().catch(fail);
103
+ });
104
+ orgCommand
105
+ .command("create <name>")
106
+ .description("Create an organization (you become its owner)")
107
+ .action(async (name) => {
108
+ await organization.organizationCreate(name).catch(fail);
109
+ });
110
+ orgCommand
111
+ .command("show <org_id_or_name>")
112
+ .description("Show organization details, including members")
113
+ .action(async (orgIdOrName) => {
114
+ await organization.organizationShow(orgIdOrName).catch(fail);
115
+ });
116
+ orgCommand
117
+ .command("delete <org_id_or_name>")
118
+ .description("Delete an organization (owner only)")
119
+ .option("--yes", "skip the confirmation prompt")
120
+ .action(async (orgIdOrName, options) => {
121
+ await organization.organizationDelete(orgIdOrName, options).catch(fail);
122
+ });
123
+ // --- project ----------------------------------------------------------------
124
+ const projectCommand = program
125
+ .command("project")
126
+ .description("Manage projects (requires OAuth login)");
127
+ projectCommand
128
+ .command("list")
129
+ .description("List projects (across your organizations, or --org to filter)")
130
+ .option("--org <org_id_or_name>", "filter by organization")
131
+ .action(async (options) => {
132
+ await project.projectList(options).catch(fail);
133
+ });
134
+ projectCommand
135
+ .command("create <name>")
136
+ .description("Create a project in an organization")
137
+ .requiredOption("--org <org_id_or_name>", "target organization")
138
+ .action(async (name, options) => {
139
+ await project.projectCreate(name, options).catch(fail);
140
+ });
141
+ projectCommand
142
+ .command("show <project_id>")
143
+ .description("Show project details")
144
+ .action(async (projectId) => {
145
+ await project.projectShow(projectId).catch(fail);
146
+ });
147
+ projectCommand
148
+ .command("use <project_id>")
149
+ .description("Set the active project of the current profile")
150
+ .action(async (projectId) => {
151
+ await project.projectUse(projectId).catch(fail);
152
+ });
153
+ projectCommand
154
+ .command("delete <project_id>")
155
+ .description("Delete a project (org owner only)")
156
+ .option("--yes", "skip the confirmation prompt")
157
+ .action(async (projectId, options) => {
158
+ await project.projectDelete(projectId, options).catch(fail);
159
+ });
160
+ // --- resource ---------------------------------------------------------------
161
+ program
162
+ .command("resource")
163
+ .description("Discover cloud resources of the active project")
164
+ .command("list")
165
+ .option("--type <type>", "storages | repositories | vm-pools")
166
+ .option("--connection <name>", "filter by connection name")
167
+ .description("List discovered resources")
168
+ .action(async (options) => {
169
+ await resource.resourceList(options).catch(fail);
170
+ });
171
+ // --- job --------------------------------------------------------------------
172
+ const jobCommand = program.command("job").description("Manage workloads");
173
+ jobCommand
174
+ .command("run")
175
+ .description("Submit a workload (-f workload.yaml, or --image with a command)")
176
+ .option("-f, --file <path>", "declarative workload YAML/JSON file")
177
+ .option("--image <image>", "container image")
178
+ .option("--command <cmd...>", "container command override")
179
+ .option("--args <args...>", "container command arguments")
180
+ .option("--name <name>", "explicit job name")
181
+ .option("--name-prefix <prefix>", "prefix for auto-generated names")
182
+ .option("--max-retries <n>", "maximum container retries")
183
+ .option("--env <key=value>", "environment variable (repeatable)")
184
+ .option("--env-from-file <path>", "load KEY=VALUE lines from a .env file (explicit --env flags win)")
185
+ .option("--volume <spec>", "storage volume mount: <bucket>[/<prefix>]:<mountPath> or bucket=<b>,mountPath=<p>[,connection=...][,prefix=...] (repeatable)")
186
+ .option("--volume-name <name>", "explicit volume name (map key) for --volume")
187
+ .option("--resources <spec>", "e.g. cpu=4,memory=16Gi,gpu=24Gi or gpu.model=A100,gpu.count=2")
188
+ .option("--label <key=value>", "label (repeatable)")
189
+ .option("--tag <tag>", "tag (repeatable)")
190
+ .option("--cloud <provider>", "cloud constraint (aws | gcp | azure)")
191
+ .option("--region <region>", "region constraint")
192
+ .allowUnknownOption(true)
193
+ .argument("[operands...]", "positional command and args (after --)")
194
+ .action(async (_operands, options, command) => {
195
+ const positional = (command.args ?? []).filter((a) => a !== "--");
196
+ await job.jobRun({ ...options, positional }).catch(fail);
197
+ });
198
+ jobCommand
199
+ .command("list")
200
+ .description("List recent workloads")
201
+ .option("--tag <tag>", "filter by tag (repeatable)")
202
+ .option("--label <key:value>", "filter by label (repeatable; key=value accepted)")
203
+ .action(async (options) => {
204
+ await job.jobList(options).catch(fail);
205
+ });
206
+ jobCommand
207
+ .command("status <job_id_or_name>")
208
+ .description("Show detailed status of a workload (--watch streams until a terminal state)")
209
+ .option("--watch", "poll and stream status until the job reaches a terminal state")
210
+ .action(async (jobIdOrName, options) => {
211
+ await job.jobStatus(jobIdOrName, { watch: options.watch }).catch(fail);
212
+ });
213
+ jobCommand
214
+ .command("cancel <job_id_or_name>")
215
+ .description("Cancel a workload")
216
+ .action(async (jobIdOrName) => {
217
+ await job.jobCancel(jobIdOrName).catch(fail);
218
+ });
219
+ // --- cronjob ----------------------------------------------------------------
220
+ const cronjobCommand = program
221
+ .command("cronjob")
222
+ .description("Manage cron-based schedulers (schedules evaluated in UTC)");
223
+ cronjobCommand
224
+ .command("list")
225
+ .description("List cronjobs")
226
+ .action(async () => {
227
+ await cronjob.cronjobList().catch(fail);
228
+ });
229
+ cronjobCommand
230
+ .command("show <id_or_name>")
231
+ .description("Show cronjob details")
232
+ .action(async (idOrName) => {
233
+ await cronjob.cronjobShow(idOrName).catch(fail);
234
+ });
235
+ cronjobCommand
236
+ .command("create")
237
+ .description("Create a cronjob (--image form, or --file with a workload YAML/JSON template)")
238
+ .requiredOption("--name <name>", "cronjob name")
239
+ .requiredOption("--schedule <cron>", "UTC crontab expression")
240
+ .option("--file <path>", "workload YAML/JSON file to use as the job definition template")
241
+ .option("--image <image>", "container image (inline form; required without --file)")
242
+ .option("--command <cmd>", "container command (space-separated)")
243
+ .option("--args <args>", "container arguments (space-separated)")
244
+ .option("--active <true|false>", "start active (default true)")
245
+ .action(async (options) => {
246
+ await cronjob.cronjobCreate(options).catch(fail);
247
+ });
248
+ cronjobCommand
249
+ .command("update <id_or_name>")
250
+ .description("Update a cronjob without recreating it")
251
+ .option("--schedule <cron>", "new UTC crontab expression")
252
+ .option("--active <true|false>", "toggle active state")
253
+ .option("--image <image>", "new container image")
254
+ .action(async (idOrName, options) => {
255
+ await cronjob.cronjobUpdate(idOrName, options).catch(fail);
256
+ });
257
+ cronjobCommand
258
+ .command("delete <id_or_name>")
259
+ .description("Delete a cronjob")
260
+ .action(async (idOrName) => {
261
+ await cronjob.cronjobDelete(idOrName).catch(fail);
262
+ });
263
+ // --- connection -------------------------------------------------------------
264
+ const connectionCommand = program
265
+ .command("connection")
266
+ .description("Manage cloud credential connections (admin only)");
267
+ connectionCommand
268
+ .command("list")
269
+ .description("List connections")
270
+ .action(async () => {
271
+ await connection.connectionList().catch(fail);
272
+ });
273
+ connectionCommand
274
+ .command("get <name>")
275
+ .description("Show connection details (credentials redacted)")
276
+ .action(async (name) => {
277
+ await connection.connectionGet(name).catch(fail);
278
+ });
279
+ connectionCommand
280
+ .command("create")
281
+ .description("Create a cloud connection")
282
+ .requiredOption("--name <name>", "connection name")
283
+ .requiredOption("--type <type>", "aws | gcp | azure | r2 | github")
284
+ .option("--access-key <key>", "access key id (aws) / client id (azure)")
285
+ .option("--secret-key <key>", "secret access key (aws) / client secret (azure)")
286
+ .option("--keyfile <path>", "GCP service-account keyfile (gcp)")
287
+ .option("--project-id <id>", "GCP project id (gcp) / Azure subscription id (azure)")
288
+ .option("--tenant-id <id>", "Azure tenant id")
289
+ .option("--account <id>", "Cloudflare account id (r2)")
290
+ .option("--token <token>", "GitHub personal access token (github)")
291
+ .action(async (options) => {
292
+ await connection.connectionCreate(options).catch(fail);
293
+ });
294
+ connectionCommand
295
+ .command("delete <name>")
296
+ .description("Delete a connection")
297
+ .action(async (name) => {
298
+ await connection.connectionDelete(name).catch(fail);
299
+ });
300
+ // --- key --------------------------------------------------------------------
301
+ const keyCommand = program.command("key").description("Manage API keys (admin only)");
302
+ keyCommand
303
+ .command("list")
304
+ .description("List API keys")
305
+ .action(async () => {
306
+ await key.keyList().catch(fail);
307
+ });
308
+ keyCommand
309
+ .command("create")
310
+ .description("Create an API key (the token is shown only once)")
311
+ .requiredOption("--name <name>", "key name")
312
+ .requiredOption("--role <role>", "admin | developer | viewer")
313
+ .option("--expires-at <date>", "optional expiration (ISO date)")
314
+ .action(async (options) => {
315
+ await key.keyCreate(options).catch(fail);
316
+ });
317
+ keyCommand
318
+ .command("delete <id_or_name>")
319
+ .description("Delete an API key")
320
+ .action(async (idOrName) => {
321
+ await key.keyDelete(idOrName).catch(fail);
322
+ });
323
+ program.parseAsync(process.argv).catch(fail);
@@ -0,0 +1,124 @@
1
+ /**
2
+ * Pure parsers for `solti job run` flag payloads (constitution tools/cli.md
3
+ * §2.2). Kept free of I/O so they can be unit-tested directly (tests/parse.test.ts).
4
+ */
5
+ /** Parses `.env`-style content: KEY=VALUE lines; blank lines and `#`
6
+ * comments are ignored; whitespace is trimmed; matching surrounding quotes
7
+ * are stripped from values. */
8
+ export function parseEnvFile(text) {
9
+ const env = {};
10
+ for (const rawLine of text.split(/\r?\n/)) {
11
+ const line = rawLine.trim();
12
+ if (line === "" || line.startsWith("#"))
13
+ continue;
14
+ const eq = line.indexOf("=");
15
+ if (eq <= 0) {
16
+ throw new Error(`Invalid env line '${line}' — expected KEY=VALUE`);
17
+ }
18
+ const key = line.slice(0, eq).trim();
19
+ let value = line.slice(eq + 1).trim();
20
+ if ((value.startsWith('"') && value.endsWith('"') && value.length >= 2) ||
21
+ (value.startsWith("'") && value.endsWith("'") && value.length >= 2)) {
22
+ value = value.slice(1, -1);
23
+ }
24
+ env[key] = value;
25
+ }
26
+ return env;
27
+ }
28
+ const VRAM_RE = /^\d+(\.\d+)?(Gi|Mi)?$/;
29
+ /** Parses a `--resources` spec, e.g. `cpu=4,memory=16Gi,gpu=24Gi` or
30
+ * `cpu=4,memory=16Gi,gpu.model=A100,gpu.count=2`. Unknown keys, duplicates
31
+ * of the same key, non-numeric cpu/count values, and `gpu.count` without
32
+ * `gpu.model` throw — nothing is silently dropped. */
33
+ export function parseResources(spec) {
34
+ const resources = {};
35
+ const gpu = {};
36
+ let gpuSeen = false;
37
+ const seen = new Set();
38
+ for (const rawPair of spec.split(",")) {
39
+ const pair = rawPair.trim();
40
+ if (pair === "")
41
+ continue;
42
+ const eq = pair.indexOf("=");
43
+ if (eq <= 0) {
44
+ throw new Error(`Invalid --resources entry '${pair}' — expected key=value (e.g. cpu=4,memory=16Gi,gpu=24Gi)`);
45
+ }
46
+ const key = pair.slice(0, eq).trim();
47
+ const value = pair.slice(eq + 1).trim();
48
+ if (seen.has(key)) {
49
+ throw new Error(`Duplicate --resources key '${key}'`);
50
+ }
51
+ seen.add(key);
52
+ switch (key) {
53
+ case "cpu": {
54
+ const cpu = Number(value);
55
+ if (!Number.isFinite(cpu) || cpu <= 0) {
56
+ throw new Error(`Invalid --resources cpu value '${value}' — expected a positive number`);
57
+ }
58
+ resources.cpu = cpu;
59
+ break;
60
+ }
61
+ case "memory":
62
+ if (value === "")
63
+ throw new Error("Invalid --resources memory value — expected e.g. memory=16Gi");
64
+ resources.memory = value;
65
+ break;
66
+ case "gpu":
67
+ case "gpu.vram": {
68
+ if (!VRAM_RE.test(value)) {
69
+ throw new Error(`Invalid --resources GPU VRAM '${value}' — expected a quantity like 24Gi (or gpu.model=A100)`);
70
+ }
71
+ gpu.vram = value;
72
+ gpuSeen = true;
73
+ break;
74
+ }
75
+ case "gpu.model":
76
+ if (value === "")
77
+ throw new Error("Invalid --resources gpu.model value — expected e.g. gpu.model=A100");
78
+ gpu.model = value;
79
+ gpuSeen = true;
80
+ break;
81
+ case "gpu.count": {
82
+ const count = Number(value);
83
+ if (!Number.isInteger(count) || count < 1) {
84
+ throw new Error(`Invalid --resources gpu.count '${value}' — expected a positive integer`);
85
+ }
86
+ gpu.count = count;
87
+ gpuSeen = true;
88
+ break;
89
+ }
90
+ default:
91
+ throw new Error(`Unknown --resources key '${key}' — supported: cpu, memory, gpu=<vram>, gpu.vram, gpu.model, gpu.count`);
92
+ }
93
+ }
94
+ if (gpuSeen) {
95
+ if (gpu.count !== undefined && gpu.model === undefined) {
96
+ throw new Error("--resources gpu.count requires gpu.model (e.g. gpu.model=A100,gpu.count=2)");
97
+ }
98
+ resources.gpu = gpu;
99
+ }
100
+ return resources;
101
+ }
102
+ /** Parses the volume shorthand `<bucket>[/<prefix>]:<mountPath>` (the first
103
+ * colon separates the bucket part from the mount path; the first slash of the
104
+ * bucket part separates bucket from prefix). */
105
+ export function parseVolumeShorthand(spec) {
106
+ const colon = spec.indexOf(":");
107
+ if (colon === -1) {
108
+ throw new Error(`Invalid --volume spec '${spec}' — expected <bucket>[/<prefix>]:<mountPath>`);
109
+ }
110
+ const bucketPart = spec.slice(0, colon);
111
+ const mountPath = spec.slice(colon + 1);
112
+ if (bucketPart === "" || mountPath === "") {
113
+ throw new Error(`Invalid --volume spec '${spec}' — expected <bucket>[/<prefix>]:<mountPath>`);
114
+ }
115
+ const slash = bucketPart.indexOf("/");
116
+ if (slash === -1)
117
+ return { bucket: bucketPart, mountPath };
118
+ const bucket = bucketPart.slice(0, slash);
119
+ const prefix = bucketPart.slice(slash + 1);
120
+ if (bucket === "" || prefix === "") {
121
+ throw new Error(`Invalid --volume spec '${spec}' — expected <bucket>[/<prefix>]:<mountPath>`);
122
+ }
123
+ return { bucket, prefix, mountPath };
124
+ }
package/package.json CHANGED
@@ -1,6 +1,31 @@
1
1
  {
2
2
  "name": "@solti/cli",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.1",
4
+ "description": "Solti Platform CLI — schedule and run asynchronous workloads without managing infrastructure.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "files": [
8
+ "dist",
9
+ "README.md",
10
+ "LICENSE"
11
+ ],
12
+ "bin": {
13
+ "solti": "dist/index.js"
14
+ },
15
+ "engines": {
16
+ "node": ">=20"
17
+ },
18
+ "scripts": {
19
+ "build": "tsc",
20
+ "dev": "tsc --watch",
21
+ "test": "bun test"
22
+ },
23
+ "dependencies": {
24
+ "commander": "^14.0.2",
25
+ "yaml": "^2.9.1"
26
+ },
27
+ "devDependencies": {
28
+ "@types/node": "^24.10.1",
29
+ "typescript": "^5.9.3"
30
+ }
31
+ }