solti-cli 0.1.4__tar.gz → 0.3.1__tar.gz

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,42 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags: ["v*"]
6
+
7
+ permissions:
8
+ contents: write
9
+
10
+ jobs:
11
+ release:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ - uses: pnpm/action-setup@v4
16
+ with:
17
+ version: 10
18
+ - uses: actions/setup-node@v4
19
+ with:
20
+ node-version: 22
21
+ cache: pnpm
22
+ registry-url: https://registry.npmjs.org/
23
+ - uses: oven-sh/setup-bun@v2
24
+ - run: pnpm install
25
+ - run: pnpm test
26
+ - run: pnpm build
27
+ - name: Compile node-free darwin binaries
28
+ run: |
29
+ bun build --compile --target=bun-darwin-arm64 dist/index.js --outfile solti-darwin-arm64
30
+ bun build --compile --target=bun-darwin-x64 dist/index.js --outfile solti-darwin-x64
31
+ - name: Package tarballs (binary at archive root)
32
+ run: |
33
+ mkdir -p stage
34
+ cp solti-darwin-arm64 stage/solti && tar -czf solti-${GITHUB_REF_NAME#v}-darwin-arm64.tar.gz -C stage solti
35
+ cp solti-darwin-x64 stage/solti && tar -czf solti-${GITHUB_REF_NAME#v}-darwin-x64.tar.gz -C stage solti
36
+ - run: npm publish --access public
37
+ env:
38
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
39
+ - name: Create GitHub Release with brew tarballs
40
+ run: gh release create "${{ github.ref_name }}" solti-*.tar.gz --title "${{ github.ref_name }}" --generate-notes
41
+ env:
42
+ GH_TOKEN: ${{ github.token }}
@@ -0,0 +1,7 @@
1
+ node_modules/
2
+ dist/
3
+ solti_cli/vendor/
4
+
5
+ # build artifacts (committed by accident; every release re-attached them as stale assets)
6
+ solti-darwin-*
7
+ *.tar.gz
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: solti-cli
3
- Version: 0.1.4
3
+ Version: 0.3.1
4
4
  Summary: Solti Platform CLI — schedule and run asynchronous workloads without managing infrastructure.
5
5
  Project-URL: Homepage, https://solti.run
6
6
  Project-URL: Documentation, https://docs.solti.run
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solti/cli",
3
- "version": "0.1.4",
3
+ "version": "0.3.1",
4
4
  "description": "Solti Platform CLI — schedule and run asynchronous workloads without managing infrastructure.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "solti-cli"
3
- version = "0.1.4"
3
+ version = "0.3.1"
4
4
  description = "Solti Platform CLI — schedule and run asynchronous workloads without managing infrastructure."
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -1206,7 +1206,7 @@ var require_command = __commonJS({
1206
1206
  var EventEmitter = require("node:events").EventEmitter;
1207
1207
  var childProcess = require("node:child_process");
1208
1208
  var path3 = require("node:path");
1209
- var fs4 = require("node:fs");
1209
+ var fs5 = require("node:fs");
1210
1210
  var process2 = require("node:process");
1211
1211
  var { Argument: Argument2, humanReadableArgName } = require_argument();
1212
1212
  var { CommanderError: CommanderError2 } = require_error();
@@ -2200,7 +2200,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
2200
2200
  * @param {string} subcommandName
2201
2201
  */
2202
2202
  _checkForMissingExecutable(executableFile, executableDir, subcommandName) {
2203
- if (fs4.existsSync(executableFile)) return;
2203
+ if (fs5.existsSync(executableFile)) return;
2204
2204
  const executableDirMessage = executableDir ? `searched for local subcommand relative to directory '${executableDir}'` : "no directory for search for local subcommand, use .executableDir() to supply a custom directory";
2205
2205
  const executableMissing = `'${executableFile}' does not exist
2206
2206
  - if '${subcommandName}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
@@ -2219,10 +2219,10 @@ Expecting one of '${allowedValues.join("', '")}'`);
2219
2219
  const sourceExt = [".js", ".ts", ".tsx", ".mjs", ".cjs"];
2220
2220
  function findFile(baseDir, baseName) {
2221
2221
  const localBin = path3.resolve(baseDir, baseName);
2222
- if (fs4.existsSync(localBin)) return localBin;
2222
+ if (fs5.existsSync(localBin)) return localBin;
2223
2223
  if (sourceExt.includes(path3.extname(baseName))) return void 0;
2224
2224
  const foundExt = sourceExt.find(
2225
- (ext) => fs4.existsSync(`${localBin}${ext}`)
2225
+ (ext) => fs5.existsSync(`${localBin}${ext}`)
2226
2226
  );
2227
2227
  if (foundExt) return `${localBin}${foundExt}`;
2228
2228
  return void 0;
@@ -2234,7 +2234,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
2234
2234
  if (this._scriptPath) {
2235
2235
  let resolvedScriptPath;
2236
2236
  try {
2237
- resolvedScriptPath = fs4.realpathSync(this._scriptPath);
2237
+ resolvedScriptPath = fs5.realpathSync(this._scriptPath);
2238
2238
  } catch {
2239
2239
  resolvedScriptPath = this._scriptPath;
2240
2240
  }
@@ -10486,14 +10486,14 @@ var require_parser = __commonJS({
10486
10486
  case "scalar":
10487
10487
  case "single-quoted-scalar":
10488
10488
  case "double-quoted-scalar": {
10489
- const fs4 = this.flowScalar(this.type);
10489
+ const fs5 = this.flowScalar(this.type);
10490
10490
  if (atNextItem || it.value) {
10491
- map.items.push({ start, key: fs4, sep: [] });
10491
+ map.items.push({ start, key: fs5, sep: [] });
10492
10492
  this.onKeyLine = true;
10493
10493
  } else if (it.sep) {
10494
- this.stack.push(fs4);
10494
+ this.stack.push(fs5);
10495
10495
  } else {
10496
- Object.assign(it, { key: fs4, sep: [] });
10496
+ Object.assign(it, { key: fs5, sep: [] });
10497
10497
  this.onKeyLine = true;
10498
10498
  }
10499
10499
  return;
@@ -10621,13 +10621,13 @@ var require_parser = __commonJS({
10621
10621
  case "scalar":
10622
10622
  case "single-quoted-scalar":
10623
10623
  case "double-quoted-scalar": {
10624
- const fs4 = this.flowScalar(this.type);
10624
+ const fs5 = this.flowScalar(this.type);
10625
10625
  if (!it || it.value)
10626
- fc.items.push({ start: [], key: fs4, sep: [] });
10626
+ fc.items.push({ start: [], key: fs5, sep: [] });
10627
10627
  else if (it.sep)
10628
- this.stack.push(fs4);
10628
+ this.stack.push(fs5);
10629
10629
  else
10630
- Object.assign(it, { key: fs4, sep: [] });
10630
+ Object.assign(it, { key: fs5, sep: [] });
10631
10631
  return;
10632
10632
  }
10633
10633
  case "flow-map-end":
@@ -11500,7 +11500,7 @@ async function connectionGet(name) {
11500
11500
  }
11501
11501
  async function connectionCreate(options) {
11502
11502
  const body = { name: options.name, type: options.type };
11503
- const fs4 = await import("node:fs");
11503
+ const fs5 = await import("node:fs");
11504
11504
  switch (options.type) {
11505
11505
  case "aws":
11506
11506
  body.access_key_id = options.accessKey;
@@ -11508,7 +11508,7 @@ async function connectionCreate(options) {
11508
11508
  break;
11509
11509
  case "gcp":
11510
11510
  body.gcp_project_id = options.projectId;
11511
- body.keyfile_json = options.keyfile !== void 0 ? fs4.readFileSync(options.keyfile, "utf8") : void 0;
11511
+ body.keyfile_json = options.keyfile !== void 0 ? fs5.readFileSync(options.keyfile, "utf8") : void 0;
11512
11512
  break;
11513
11513
  case "azure":
11514
11514
  body.client_id = options.accessKey;
@@ -11559,6 +11559,25 @@ async function cronjobShow(idOrName) {
11559
11559
  console.log(`Image: ${c.job_definition?.image ?? "\u2014"}`);
11560
11560
  console.log(`Last run: ${c.last_triggered_at ?? "Never"}`);
11561
11561
  }
11562
+ async function cronjobWorkflows(idOrName, options = {}) {
11563
+ const query = new URLSearchParams();
11564
+ if (options.status !== void 0)
11565
+ query.set("status", options.status);
11566
+ if (options.limit !== void 0)
11567
+ query.set("limit", options.limit);
11568
+ if (options.offset !== void 0)
11569
+ query.set("offset", options.offset);
11570
+ const qs = query.toString();
11571
+ const data = await request(`cronjobs/${idOrName}/workflows${qs ? `?${qs}` : ""}`);
11572
+ if (data.workflows.length === 0) {
11573
+ console.log(`No workflow runs for ${idOrName} yet.`);
11574
+ return;
11575
+ }
11576
+ console.log("NAME | STATUS | CREATED | ENDED");
11577
+ for (const workflow of data.workflows) {
11578
+ console.log(`${workflow.name} | ${workflow.status} | ${workflow.created_at ?? "\u2014"} | ${workflow.ended_at ?? "\u2014"}`);
11579
+ }
11580
+ }
11562
11581
  async function cronjobCreate(options) {
11563
11582
  let jobDefinition;
11564
11583
  if (options.file !== void 0) {
@@ -11619,6 +11638,15 @@ function parseStringList(values) {
11619
11638
  const list = values === void 0 ? [] : Array.isArray(values) ? values : [values];
11620
11639
  return list.flatMap((value) => value.split(",")).map((value) => value.trim()).filter((value) => value !== "");
11621
11640
  }
11641
+ function parsePositiveInt(value, flag, fallback) {
11642
+ if (value === void 0 || value === "")
11643
+ return fallback;
11644
+ const parsed = Number(value);
11645
+ if (!Number.isInteger(parsed) || parsed < 1) {
11646
+ throw new Error(`Invalid ${flag} '${value}' \u2014 expected a positive integer`);
11647
+ }
11648
+ return parsed;
11649
+ }
11622
11650
  function parseEnvFile(text) {
11623
11651
  const env = {};
11624
11652
  for (const rawLine of text.split(/\r?\n/)) {
@@ -11639,6 +11667,47 @@ function parseEnvFile(text) {
11639
11667
  return env;
11640
11668
  }
11641
11669
  var VRAM_RE = /^\d+(\.\d+)?(Gi|Mi)?$/;
11670
+ var RUN_AFTER_RE = /^(\d{4})-(\d{2})-(\d{2})[Tt ](\d{2}):(\d{2}):(\d{2})(\.\d+)?(?:[Zz]|([+-])(\d{2}):?(\d{2})?)$/;
11671
+ var NAIVE_RUN_AFTER_RE = /^\d{4}-\d{2}-\d{2}[Tt ]\d{2}:\d{2}:\d{2}(\.\d+)?$/;
11672
+ function parseRunAfter(value) {
11673
+ const datetime = value.trim();
11674
+ if (NAIVE_RUN_AFTER_RE.test(datetime)) {
11675
+ throw new Error(`Invalid --run-after '${value}' \u2014 naive datetime without a timezone; append an offset (Z or \xB1HH:MM), e.g. 2026-11-25T02:00:00Z`);
11676
+ }
11677
+ const match = RUN_AFTER_RE.exec(datetime);
11678
+ if (!match) {
11679
+ throw new Error(`Invalid --run-after '${value}' \u2014 expected an RFC 3339 / ISO 8601 datetime with timezone, e.g. 2026-11-25T02:00:00Z or 2026-11-25T11:00:00+09:00`);
11680
+ }
11681
+ const [, year, month, day, hour, minute, second, , offsetSign, offsetHours, offsetMinutes] = match;
11682
+ const parsed = new Date(Date.UTC(Number(year), Number(month) - 1, Number(day), Number(hour), Number(minute), Number(second)));
11683
+ if (parsed.getUTCFullYear() !== Number(year) || parsed.getUTCMonth() !== Number(month) - 1 || parsed.getUTCDate() !== Number(day) || parsed.getUTCHours() !== Number(hour) || parsed.getUTCMinutes() !== Number(minute) || parsed.getUTCSeconds() !== Number(second) || offsetSign !== void 0 && (Number(offsetHours) > 23 || Number(offsetMinutes ?? "0") > 59)) {
11684
+ throw new Error(`Invalid --run-after '${value}' \u2014 not a real calendar datetime`);
11685
+ }
11686
+ return datetime;
11687
+ }
11688
+ var STORAGE_QTY_RE = /^(\d+)(Gi|Mi)?$/i;
11689
+ function parseStorage(value) {
11690
+ const match = STORAGE_QTY_RE.exec(value);
11691
+ if (!match) {
11692
+ throw new Error(`Invalid --resources storage '${value}' \u2014 expected a whole GiB integer or a quantity like 100Gi / 102400Mi (10\u201316384 GiB)`);
11693
+ }
11694
+ if (match[2] === void 0 || match[2].toLowerCase() === "gi") {
11695
+ const gib2 = Number(match[1]);
11696
+ if (gib2 < 10 || gib2 > 16384) {
11697
+ throw new Error(`Invalid --resources storage '${value}' \u2014 ${gib2} GiB out of bounds (10\u201316384)`);
11698
+ }
11699
+ return match[2] === void 0 ? gib2 : value;
11700
+ }
11701
+ const rawMi = Number(match[1]);
11702
+ if (rawMi % 1024 !== 0) {
11703
+ throw new Error(`Invalid --resources storage '${value}' \u2014 ${rawMi} Mi is not a whole number of GiB; disk sizes are integral`);
11704
+ }
11705
+ const gib = rawMi / 1024;
11706
+ if (gib < 10 || gib > 16384) {
11707
+ throw new Error(`Invalid --resources storage '${value}' \u2014 ${gib} GiB out of bounds (10\u201316384)`);
11708
+ }
11709
+ return value;
11710
+ }
11642
11711
  function parseResources(spec) {
11643
11712
  const resources = {};
11644
11713
  const gpu = {};
@@ -11672,6 +11741,9 @@ function parseResources(spec) {
11672
11741
  throw new Error("Invalid --resources memory value \u2014 expected e.g. memory=16Gi");
11673
11742
  resources.memory = value;
11674
11743
  break;
11744
+ case "storage":
11745
+ resources.storage = parseStorage(value);
11746
+ break;
11675
11747
  case "gpu":
11676
11748
  case "gpu.vram": {
11677
11749
  if (!VRAM_RE.test(value)) {
@@ -11697,7 +11769,7 @@ function parseResources(spec) {
11697
11769
  break;
11698
11770
  }
11699
11771
  default:
11700
- throw new Error(`Unknown --resources key '${key}' \u2014 supported: cpu, memory, gpu=<vram>, gpu.vram, gpu.model, gpu.count`);
11772
+ throw new Error(`Unknown --resources key '${key}' \u2014 supported: cpu, memory, storage, gpu=<vram>, gpu.vram, gpu.model, gpu.count`);
11701
11773
  }
11702
11774
  }
11703
11775
  if (gpuSeen) {
@@ -11792,6 +11864,101 @@ async function jobCancel(jobIdOrName) {
11792
11864
  await request(`jobs/${jobIdOrName}/cancel`, { method: "POST" });
11793
11865
  console.log(`Cancellation requested for ${jobIdOrName}.`);
11794
11866
  }
11867
+ var JOB_TERMINAL_STATES = /* @__PURE__ */ new Set(["succeeded", "failed", "cancelled"]);
11868
+ function normalizeLogContent(content) {
11869
+ return content.split("\n").map((line) => {
11870
+ if (!line.trim())
11871
+ return line;
11872
+ try {
11873
+ const outer = JSON.parse(line);
11874
+ if (typeof outer.log !== "string")
11875
+ return line.endsWith("\n") ? line : `${line}
11876
+ `;
11877
+ let message = outer.log;
11878
+ let ts = outer.date;
11879
+ try {
11880
+ const inner = JSON.parse(outer.log);
11881
+ if (typeof inner.log === "string") {
11882
+ message = inner.log;
11883
+ if (inner.time)
11884
+ ts = inner.time;
11885
+ }
11886
+ } catch {
11887
+ }
11888
+ const stamp = typeof ts === "number" ? new Date(ts * 1e3).toISOString().slice(11, 19) : typeof ts === "string" && ts.length >= 19 ? ts.slice(11, 19) : "";
11889
+ const prefix = stamp === "" ? "" : `${stamp} `;
11890
+ return message.endsWith("\n") ? `${prefix}${message}` : `${prefix}${message}
11891
+ `;
11892
+ } catch {
11893
+ return line.endsWith("\n") ? line : `${line}
11894
+ `;
11895
+ }
11896
+ }).join("");
11897
+ }
11898
+ async function jobLogs(jobIdOrName, options = {}) {
11899
+ const fromSeq = parsePositiveInt(options.fromSeq, "--from-seq", 1);
11900
+ const limit = parsePositiveInt(options.limit, "--limit", 20);
11901
+ let cursor = fromSeq;
11902
+ for (; ; ) {
11903
+ let page = null;
11904
+ try {
11905
+ page = await request(`jobs/${jobIdOrName}/logs?fromSeq=${cursor}&limit=${limit}`);
11906
+ } catch (error) {
11907
+ if (error instanceof ApiError && error.status === 503) {
11908
+ console.error("Log streaming is not configured.");
11909
+ process.exitCode = 1;
11910
+ return;
11911
+ }
11912
+ if (!(error instanceof ApiError && error.status === 404))
11913
+ throw error;
11914
+ if (!options.follow) {
11915
+ console.log("No logs yet.");
11916
+ return;
11917
+ }
11918
+ }
11919
+ if (page !== null && page.objects.length > 0) {
11920
+ if (options.json) {
11921
+ console.log(JSON.stringify(page.objects, null, 2));
11922
+ } else {
11923
+ for (const entry of page.objects) {
11924
+ process.stdout.write(normalizeLogContent(entry.content));
11925
+ }
11926
+ }
11927
+ cursor = page.lastSeq + 1;
11928
+ }
11929
+ if (!options.follow)
11930
+ return;
11931
+ const job = await request(`jobs/${jobIdOrName}`);
11932
+ if (job.status !== void 0 && JOB_TERMINAL_STATES.has(job.status))
11933
+ return;
11934
+ await new Promise((resolve) => setTimeout(resolve, 3e3));
11935
+ }
11936
+ }
11937
+ async function jobMetrics(jobIdOrName, options = {}) {
11938
+ let data;
11939
+ try {
11940
+ data = await request(`jobs/${jobIdOrName}/metrics`);
11941
+ } catch (error) {
11942
+ if (error instanceof ApiError && error.status === 404) {
11943
+ console.log("No metrics collected.");
11944
+ return;
11945
+ }
11946
+ throw error;
11947
+ }
11948
+ if (options.json) {
11949
+ console.log(JSON.stringify(data, null, 2));
11950
+ return;
11951
+ }
11952
+ if (data.points.length === 0) {
11953
+ console.log("No metrics collected.");
11954
+ return;
11955
+ }
11956
+ console.log("TIMESTAMP | CPU % | MEM (MB)");
11957
+ for (const point of data.points) {
11958
+ const memMb = (point.memBytes / 1048576).toFixed(1);
11959
+ console.log(`${point.ts} | ${point.cpuPercent.toFixed(1)} | ${memMb}`);
11960
+ }
11961
+ }
11795
11962
  async function jobRun(options) {
11796
11963
  let payload;
11797
11964
  if (options.file !== void 0) {
@@ -11815,6 +11982,10 @@ async function jobRun(options) {
11815
11982
  name: options.name,
11816
11983
  namePrefix: options.namePrefix,
11817
11984
  maxRetries: options.maxRetries !== void 0 ? Number(options.maxRetries) : void 0,
11985
+ // Change 090: validated timezone-aware datetime — the job stays queued
11986
+ // (no VM, zero cost) until the instant passes. Sent verbatim; the API
11987
+ // normalizes aware values to UTC.
11988
+ runAfter: options.runAfter !== void 0 ? parseRunAfter(options.runAfter) : void 0,
11818
11989
  env: {
11819
11990
  // --env-from-file provides the base set; explicit --env flags win.
11820
11991
  ...options.envFromFile !== void 0 ? parseEnvFile(readEnvFile(options.envFromFile)) : {},
@@ -11850,6 +12021,8 @@ async function jobRun(options) {
11850
12021
  payload.resources = {
11851
12022
  ...parsed.cpu !== void 0 ? { cpu: parsed.cpu } : {},
11852
12023
  ...parsed.memory !== void 0 ? { memory: parsed.memory } : {},
12024
+ // Change 100: boot-disk override (integer GiB or Gi/Mi quantity).
12025
+ ...parsed.storage !== void 0 ? { storage: parsed.storage } : {},
11853
12026
  ...parsed.gpu !== void 0 ? { gpu: parsed.gpu } : {}
11854
12027
  };
11855
12028
  }
@@ -12077,7 +12250,15 @@ function printProjects(projects) {
12077
12250
  console.log(`${project.id} ${project.displayName ?? "(unnamed)"}`);
12078
12251
  }
12079
12252
  }
12253
+ function resolveRoutingMode(value) {
12254
+ const mode = value ?? "serverless";
12255
+ if (mode !== "byoc" && mode !== "serverless") {
12256
+ throw new Error(`Invalid routing mode '${mode}' \u2014 expected byoc | serverless`);
12257
+ }
12258
+ return mode;
12259
+ }
12080
12260
  async function projectCreate(name, options) {
12261
+ const routingMode = resolveRoutingMode(options.routingMode);
12081
12262
  const { organizations } = await request("organizations", { global: true });
12082
12263
  const org = organizations.find((o) => o.id === options.org) ?? organizations.find((o) => o.displayName === options.org);
12083
12264
  if (org === void 0) {
@@ -12088,15 +12269,26 @@ async function projectCreate(name, options) {
12088
12269
  const project = await request(`organizations/${org.id}/projects`, {
12089
12270
  method: "POST",
12090
12271
  global: true,
12091
- body: { name }
12272
+ body: { name, routingMode }
12092
12273
  });
12093
12274
  console.log(`Project created: ${project.displayName} (${project.id})`);
12275
+ console.log(`Routing mode: ${project.routingMode ?? routingMode}`);
12276
+ }
12277
+ async function projectUpdate(projectId, options) {
12278
+ const routingMode = resolveRoutingMode(options.routingMode);
12279
+ const project = await request(`projects/${projectId}`, {
12280
+ method: "PATCH",
12281
+ global: true,
12282
+ body: { routingMode }
12283
+ });
12284
+ console.log(`Routing mode set to ${project.routingMode ?? routingMode}.`);
12094
12285
  }
12095
12286
  async function projectShow(projectId) {
12096
12287
  const project = await request(`projects/${projectId}`, { global: true });
12097
12288
  console.log(`Project: ${project.displayName ?? "(unnamed)"}`);
12098
12289
  console.log(`ID: ${project.id}`);
12099
12290
  console.log(`Organization ID: ${project.organizationId}`);
12291
+ console.log(`Routing mode: ${project.routingMode ?? "\u2014"}`);
12100
12292
  }
12101
12293
  async function projectUse(projectId) {
12102
12294
  const account = await getActiveAccount();
@@ -12161,11 +12353,78 @@ ${type} (${items.length}):`);
12161
12353
  }
12162
12354
  }
12163
12355
 
12356
+ // dist/commands/workflow.js
12357
+ var import_node_fs3 = __toESM(require("node:fs"), 1);
12358
+ async function workflowSubmit(file, options = {}) {
12359
+ const raw = import_node_fs3.default.readFileSync(file, "utf8");
12360
+ let parsed;
12361
+ try {
12362
+ parsed = JSON.parse(raw);
12363
+ } catch {
12364
+ const { parse } = await Promise.resolve().then(() => __toESM(require_dist(), 1));
12365
+ parsed = parse(raw);
12366
+ }
12367
+ const templates = parsed.templates;
12368
+ if (!Array.isArray(templates) || templates.length === 0) {
12369
+ throw new Error(`Invalid workflow file '${file}' \u2014 expected an object with a non-empty \`templates\` list (WorkflowCreateRequest)`);
12370
+ }
12371
+ const payload = {
12372
+ name: options.name ?? parsed.name,
12373
+ namePrefix: options.namePrefix ?? parsed.namePrefix,
12374
+ templates
12375
+ };
12376
+ const workflow = await request("workflows/", { method: "POST", body: payload });
12377
+ console.log(`Workflow submitted: ${workflow.name} (${workflow.workflow_id ?? workflow.id}) \u2014 ${workflow.status}`);
12378
+ }
12379
+ async function workflowGet(idOrName) {
12380
+ const workflow = await request(`workflows/${idOrName}`);
12381
+ console.log(`Name: ${workflow.name}`);
12382
+ console.log(`ID: ${workflow.id}`);
12383
+ console.log(`Status: ${workflow.status}`);
12384
+ if (workflow.error_message)
12385
+ console.log(`Error: ${workflow.error_message}`);
12386
+ console.log(`Nodes: ${workflow.node_count ?? workflow.nodes?.length ?? "\u2014"}`);
12387
+ console.log(`Cost (EST): ${workflow.estimated_cost ?? "\u2014"}`);
12388
+ console.log(`Cost (ACT): ${workflow.actual_cost ?? "\u2014"}`);
12389
+ console.log("\nNODE | STATUS | VM STATUS | JOB ID | COST (EST/ACT) | ERROR");
12390
+ for (const node of workflow.nodes ?? []) {
12391
+ console.log(`${node.name} | ${node.status} | ${node.vm_status ?? "\u2014"} | ${node.job_id} | ${node.estimated_cost ?? "\u2014"}/${node.actual_cost ?? "\u2014"} | ${node.error_message ?? "\u2014"}`);
12392
+ }
12393
+ }
12394
+ async function workflowList(options = {}) {
12395
+ const query = new URLSearchParams();
12396
+ if (options.status !== void 0)
12397
+ query.set("status", options.status);
12398
+ if (options.limit !== void 0)
12399
+ query.set("limit", options.limit);
12400
+ if (options.offset !== void 0)
12401
+ query.set("offset", options.offset);
12402
+ const qs = query.toString();
12403
+ const data = await request(`workflows/${qs ? `?${qs}` : ""}`);
12404
+ if (data.workflows.length === 0) {
12405
+ console.log("No workflows. Submit one with `solti workflow submit <file.yaml>`.");
12406
+ return;
12407
+ }
12408
+ console.log("NAME | STATUS | NODES");
12409
+ for (const workflow of data.workflows) {
12410
+ console.log(`${workflow.name} | ${workflow.status} | ${workflow.node_count ?? "\u2014"}`);
12411
+ }
12412
+ }
12413
+ async function workflowCancel(idOrName, options = {}) {
12414
+ if (!options.yes) {
12415
+ console.error("This cancels every non-terminal node job of the workflow. Re-run with --yes to confirm.");
12416
+ process.exitCode = 1;
12417
+ return;
12418
+ }
12419
+ await request(`workflows/${idOrName}/cancel`, { method: "POST" });
12420
+ console.log(`Cancellation requested for ${idOrName}.`);
12421
+ }
12422
+
12164
12423
  // dist/index.js
12165
12424
  var program2 = new Command();
12166
- program2.name("solti").description("Solti Platform CLI \u2014 schedule and run asynchronous workloads without managing infrastructure.").version("0.1.4").option("--profile <name>", "override the active profile (or set SOLTI_PROFILE)").option("--api-key <key>", "override the API key (or set SOLTI_API_KEY)");
12167
- program2.hook("preAction", (thisCommand) => {
12168
- const globalOptions = thisCommand.opts();
12425
+ program2.name("solti").description("Solti Platform CLI \u2014 schedule and run asynchronous workloads without managing infrastructure.").version("0.3.1").option("--profile <name>", "override the active profile (or set SOLTI_PROFILE)").option("--api-key <key>", "override the API key (or set SOLTI_API_KEY)").enablePositionalOptions();
12426
+ program2.hook("preAction", () => {
12427
+ const globalOptions = program2.opts();
12169
12428
  if (globalOptions.profile)
12170
12429
  process.env.SOLTI_PROFILE = globalOptions.profile;
12171
12430
  if (globalOptions.apiKey)
@@ -12228,9 +12487,12 @@ var projectCommand = program2.command("project").description("Manage projects (r
12228
12487
  projectCommand.command("list").description("List projects (across your organizations, or --org to filter)").option("--org <org_id_or_name>", "filter by organization").action(async (options) => {
12229
12488
  await projectList(options).catch(fail);
12230
12489
  });
12231
- projectCommand.command("create <name>").description("Create a project in an organization").requiredOption("--org <org_id_or_name>", "target organization").action(async (name, options) => {
12490
+ projectCommand.command("create <name>").description("Create a project in an organization").requiredOption("--org <org_id_or_name>", "target organization").option("--routing-mode <mode>", "compute routing mode (byoc | serverless; default serverless)").action(async (name, options) => {
12232
12491
  await projectCreate(name, options).catch(fail);
12233
12492
  });
12493
+ projectCommand.command("update <project_id>").description("Update project settings (project admin only)").requiredOption("--routing-mode <mode>", "compute routing mode (byoc | serverless)").action(async (projectId, options) => {
12494
+ await projectUpdate(projectId, options).catch(fail);
12495
+ });
12234
12496
  projectCommand.command("show <project_id>").description("Show project details").action(async (projectId) => {
12235
12497
  await projectShow(projectId).catch(fail);
12236
12498
  });
@@ -12244,7 +12506,7 @@ program2.command("resource").description("Discover cloud resources of the active
12244
12506
  await resourceList(options).catch(fail);
12245
12507
  });
12246
12508
  var jobCommand = program2.command("job").description("Manage workloads");
12247
- jobCommand.command("run").description("Submit a workload (-f workload.yaml, or --image with a command)").option("-f, --file <path>", "declarative workload YAML/JSON file").option("--image <image>", "container image").option("--command <cmd...>", "container command override").option("--args <args...>", "container command arguments").option("--name <name>", "explicit job name").option("--name-prefix <prefix>", "prefix for auto-generated names").option("--max-retries <n>", "maximum container retries").option("--env <key=value>", "environment variable (repeatable)").option("--env-from-file <path>", "load KEY=VALUE lines from a .env file (explicit --env flags win)").option("--volume <spec>", "storage volume mount: <bucket>[/<prefix>]:<mountPath> or bucket=<b>,mountPath=<p>[,connection=...][,prefix=...] (repeatable)").option("--volume-name <name>", "explicit volume name (map key) for --volume").option("--resources <spec>", "e.g. cpu=4,memory=16Gi,gpu=24Gi or gpu.model=A100,gpu.count=2").option("--label <key=value>", "label (repeatable)").option("--tag <tag>", "tag (repeatable)").option("--cloud <provider>", "cloud constraint (aws | gcp | azure; repeatable or comma-separated)", collectValues, []).option("--region <region>", "region constraint (repeatable or comma-separated)", collectValues, []).allowUnknownOption(true).argument("[operands...]", "positional command and args (after --)").action(async (_operands, options, command) => {
12509
+ jobCommand.command("run").description("Submit a workload (-f workload.yaml, or --image with a command)").option("-f, --file <path>", "declarative workload YAML/JSON file").option("--image <image>", "container image").option("--command <cmd...>", "container command override").option("--args <args...>", "container command arguments").option("--name <name>", "explicit job name").option("--name-prefix <prefix>", "prefix for auto-generated names").option("--max-retries <n>", "maximum container retries").option("--run-after <datetime>", "start the job only after this RFC 3339 datetime (timezone required, e.g. 2026-11-25T02:00:00Z) \u2014 it stays queued with no VM until the instant passes").option("--env <key=value>", "environment variable (repeatable)").option("--env-from-file <path>", "load KEY=VALUE lines from a .env file (explicit --env flags win)").option("--volume <spec>", "storage volume mount: <bucket>[/<prefix>]:<mountPath> or bucket=<b>,mountPath=<p>[,connection=...][,prefix=...] (repeatable)").option("--volume-name <name>", "explicit volume name (map key) for --volume").option("--resources <spec>", "e.g. cpu=4,memory=16Gi,storage=100Gi,gpu=24Gi or gpu.model=A100,gpu.count=2").option("--label <key=value>", "label (repeatable)").option("--tag <tag>", "tag (repeatable)").option("--cloud <provider>", "cloud constraint (aws | gcp | azure; repeatable or comma-separated)", collectValues, []).option("--region <region>", "region constraint (repeatable or comma-separated)", collectValues, []).allowUnknownOption(true).argument("[operands...]", "positional command and args (after --)").action(async (_operands, options, command) => {
12248
12510
  const positional = (command.args ?? []).filter((a) => a !== "--");
12249
12511
  await jobRun({ ...options, positional }).catch(fail);
12250
12512
  });
@@ -12257,6 +12519,25 @@ jobCommand.command("status <job_id_or_name>").description("Show detailed status
12257
12519
  jobCommand.command("cancel <job_id_or_name>").description("Cancel a workload").action(async (jobIdOrName) => {
12258
12520
  await jobCancel(jobIdOrName).catch(fail);
12259
12521
  });
12522
+ jobCommand.command("logs <job_id_or_name>").description("Print a workload's logs (fluent-bit/docker-json envelopes are normalized to plain lines)").option("--follow", "poll every 3 s for new lines until the job reaches a terminal state (Ctrl-C to stop)").option("--from-seq <n>", "first log sequence number to fetch (default 1)").option("--limit <n>", "maximum log objects per page (default 20)").option("--json", "print the raw log objects as JSON").action(async (jobIdOrName, options) => {
12523
+ await jobLogs(jobIdOrName, options).catch(fail);
12524
+ });
12525
+ jobCommand.command("metrics <job_id_or_name>").description("Show a workload's CPU/memory usage series").option("--json", "print the raw metrics response as JSON").action(async (jobIdOrName, options) => {
12526
+ await jobMetrics(jobIdOrName, options).catch(fail);
12527
+ });
12528
+ var workflowCommand = program2.command("workflow").description("Manage DAG workflows (templates of standard jobs)");
12529
+ workflowCommand.command("submit <file>").description("Submit a workflow from a YAML/JSON file (Argo-ish templates payload)").option("--name <name>", "explicit workflow name (overrides the file)").option("--name-prefix <prefix>", "prefix for auto-generated names (overrides the file)").action(async (file, options) => {
12530
+ await workflowSubmit(file, options).catch(fail);
12531
+ });
12532
+ workflowCommand.command("get <id_or_name>").description("Show workflow status and its node jobs").action(async (idOrName) => {
12533
+ await workflowGet(idOrName).catch(fail);
12534
+ });
12535
+ workflowCommand.command("list").description("List recent workflows").option("--status <status>", "filter by status (running | succeeded | failed | cancelled)").option("--limit <n>", "maximum number of workflows to return").option("--offset <n>", "number of workflows to skip").action(async (options) => {
12536
+ await workflowList(options).catch(fail);
12537
+ });
12538
+ workflowCommand.command("cancel <id_or_name>").description("Cancel a workflow (cancels all non-terminal node jobs)").option("--yes", "skip the confirmation prompt").action(async (idOrName, options) => {
12539
+ await workflowCancel(idOrName, options).catch(fail);
12540
+ });
12260
12541
  var cronjobCommand = program2.command("cronjob").description("Manage cron-based schedulers (schedules evaluated in UTC)");
12261
12542
  cronjobCommand.command("list").description("List cronjobs").action(async () => {
12262
12543
  await cronjobList().catch(fail);
@@ -12264,6 +12545,9 @@ cronjobCommand.command("list").description("List cronjobs").action(async () => {
12264
12545
  cronjobCommand.command("show <id_or_name>").description("Show cronjob details").action(async (idOrName) => {
12265
12546
  await cronjobShow(idOrName).catch(fail);
12266
12547
  });
12548
+ cronjobCommand.command("workflows <id_or_name>").description("List the workflow runs spawned by a cronjob").option("--status <status>", "filter by status (running | succeeded | failed | cancelled)").option("--limit <n>", "maximum number of workflows to return").option("--offset <n>", "number of workflows to skip").action(async (idOrName, options) => {
12549
+ await cronjobWorkflows(idOrName, options).catch(fail);
12550
+ });
12267
12551
  cronjobCommand.command("create").description("Create a cronjob (--image form, or --file with a workload YAML/JSON template)").requiredOption("--name <name>", "cronjob name").requiredOption("--schedule <cron>", "UTC crontab expression").option("--file <path>", "workload YAML/JSON file to use as the job definition template").option("--image <image>", "container image (inline form; required without --file)").option("--command <cmd>", "container command (space-separated)").option("--args <args>", "container arguments (space-separated)").option("--active <true|false>", "start active (default true)").action(async (options) => {
12268
12552
  await cronjobCreate(options).catch(fail);
12269
12553
  });
@@ -0,0 +1,4 @@
1
+ .terraform/
2
+ *.tfstate
3
+ *.tfstate.backup
4
+ *.tfvars
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 GitHub
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,42 @@
1
+ # Terraform Provider GitHub
2
+
3
+ |<img src="https://cloud.githubusercontent.com/assets/98681/24211275/c4ebd04e-0ee8-11e7-8606-061d656a42df.png" width="72" height="" alt="GitHub Logo"> | <img src="https://raw.githubusercontent.com/hashicorp/terraform-website/d841a1e5fca574416b5ca24306f85a0f4f41b36d/content/source/assets/images/logo-terraform-main.svg" width="300px" alt="Terraform Logo">|
4
+
5
+ This provider manages GitHub resources — repositories, teams, branch protections, actions secrets/variables, organization settings, rulesets, deploy keys, webhooks, and more — using Terraform. It supports both GitHub.com and GitHub Enterprise Server via the REST and GraphQL APIs.
6
+
7
+ See the [GitHub Provider page on the Terraform Registry](https://registry.terraform.io/providers/integrations/github/) for installation and documentation.
8
+
9
+ ## Quick Start
10
+
11
+ ```hcl
12
+ provider "github" {
13
+ owner = "my-org"
14
+ }
15
+
16
+ resource "github_repository" "example" {
17
+ name = "example-repo"
18
+ description = "Managed by Terraform"
19
+ visibility = "private"
20
+ }
21
+ ```
22
+
23
+ ## Requirements
24
+
25
+ - [Terraform](https://www.terraform.io/downloads.html) 1.x
26
+ - [Go](https://golang.org/doc/install) 1.26.x (to build the provider plugin)
27
+
28
+ ## Usage
29
+
30
+ Detailed documentation for the GitHub provider can be found in the [Terraform Registry](https://registry.terraform.io/providers/integrations/github).
31
+
32
+ ## Contributing
33
+
34
+ For instructions on how to contribute to the GitHub Terraform provider, see the [Contributing Guide](CONTRIBUTING.md).
35
+
36
+ ## Roadmap
37
+
38
+ This project uses [Milestones](https://github.com/integrations/terraform-provider-github/milestones) to scope upcoming features and bug fixes. Issues that receive the most recent discussion or the most reactions will be more likely to be included in an upcoming release.
39
+
40
+ ## Support
41
+
42
+ GitHub Support does not provide support for this integration. This is a community-supported project. GitHub's SDK team triages issues and PRs periodically.
@@ -0,0 +1,24 @@
1
+ # This file is maintained automatically by "terraform init".
2
+ # Manual edits may be lost in future updates.
3
+
4
+ provider "registry.terraform.io/integrations/github" {
5
+ version = "6.13.0"
6
+ constraints = "~> 6.0"
7
+ hashes = [
8
+ "h1:y0Sujto8gttV86innNp/LTMzq7CqsFpBs7XKH8AlMl4=",
9
+ "zh:0ab29fc21699f34345cf0bbbe44745fd1b143b7c73b410c1dc4abe05ffad0a84",
10
+ "zh:1aed10d06755d420bb3a893bf548ab2932297a9d094c04c5a8501e949ca186ed",
11
+ "zh:2a6a11c21eae408055f45b9533c07afd2e845f6d496fd1b645aec2e873012103",
12
+ "zh:5dd05dee677f6ebdbed00cbb1b9be444ab2d1062d345cbc9ec50a47cb41b8622",
13
+ "zh:6b757d034831243d67ddda869eac4368cef539848bd97511f4d68f1aa38a9c88",
14
+ "zh:947c9b5b238f0364c57a705beabd24d3eea3159a6f3a24c07e3fbb13657ffae0",
15
+ "zh:a676549a98164b61630658cbeb6c17820331ca04a049dc9b5095996a0c31ffbe",
16
+ "zh:a8a81b7fe41dd61eb6a6fa5e08a4dd9ee070e862868252a7fd4cfce30364efee",
17
+ "zh:c26a9bca4865665084e7f59b1402d7aff34ee63a418d7401a0658fa280cad4d4",
18
+ "zh:c638d8d0762e62ea188f86302954ef4c92803f2160f0a45fca0cd13974bd3725",
19
+ "zh:e739a0b7e81ca816944a18a38e679f4015edf8be7ac319815cdea865ba7727d7",
20
+ "zh:ec099487ea3de8999c84b3b791e242d728461e51fe344832b37bd8d521201c77",
21
+ "zh:f016ff9e2daab5b88185cec0795213049d105439ffd585d3309a714514ccae13",
22
+ "zh:fbd1fee2c9df3aa19cf8851ce134dea6e45ea01cb85695c1726670c285797e25",
23
+ ]
24
+ }
@@ -0,0 +1,38 @@
1
+ # Change 091/092 — GitHub Actions release secrets, codified.
2
+ # Public repo: secret VALUES come from terraform vars (never committed).
3
+ # Apply: terraform apply -var github_token=$(gh auth token) -var token_value=$(<secret source>)
4
+ # State (contains sensitive values) is gitignored.
5
+
6
+ terraform {
7
+ required_providers {
8
+ github = {
9
+ source = "integrations/github"
10
+ version = "~> 6.0"
11
+ }
12
+ }
13
+ }
14
+
15
+ variable "github_token" {
16
+ type = string
17
+ sensitive = true
18
+ }
19
+
20
+ variable "token_value" {
21
+ type = string
22
+ sensitive = true
23
+ }
24
+
25
+ provider "github" {
26
+ owner = "trysolti"
27
+ token = var.github_token
28
+ }
29
+
30
+ data "github_repository" "this" {
31
+ name = "solti-cli"
32
+ }
33
+
34
+ resource "github_actions_secret" "NPM_TOKEN" {
35
+ repository = data.github_repository.this.name
36
+ secret_name = "NPM_TOKEN"
37
+ plaintext_value = var.token_value
38
+ }
@@ -0,0 +1,157 @@
1
+ {
2
+ "version": 4,
3
+ "terraform_version": "1.17.2",
4
+ "serial": 3,
5
+ "lineage": "46d8dcdd-f44d-f3fa-3529-0c0145d060fd",
6
+ "outputs": {},
7
+ "resources": [
8
+ {
9
+ "mode": "data",
10
+ "type": "github_repository",
11
+ "name": "this",
12
+ "provider": "provider[\"registry.terraform.io/integrations/github\"]",
13
+ "instances": [
14
+ {
15
+ "schema_version": 0,
16
+ "attributes": {
17
+ "allow_auto_merge": false,
18
+ "allow_forking": true,
19
+ "allow_merge_commit": true,
20
+ "allow_rebase_merge": true,
21
+ "allow_squash_merge": true,
22
+ "allow_update_branch": false,
23
+ "archived": false,
24
+ "default_branch": "main",
25
+ "delete_branch_on_merge": false,
26
+ "description": "Official command-line interface for the Solti Platform",
27
+ "fork": false,
28
+ "full_name": "trysolti/solti-cli",
29
+ "git_clone_url": "git://github.com/trysolti/solti-cli.git",
30
+ "has_discussions": false,
31
+ "has_downloads": false,
32
+ "has_issues": true,
33
+ "has_projects": true,
34
+ "has_wiki": false,
35
+ "homepage_url": "https://docs.solti.run",
36
+ "html_url": "https://github.com/trysolti/solti-cli",
37
+ "http_clone_url": "https://github.com/trysolti/solti-cli.git",
38
+ "id": "solti-cli",
39
+ "is_template": false,
40
+ "merge_commit_message": "PR_TITLE",
41
+ "merge_commit_title": "MERGE_MESSAGE",
42
+ "name": "solti-cli",
43
+ "node_id": "R_kgDOVWAg3Q",
44
+ "pages": [],
45
+ "primary_language": "TypeScript",
46
+ "private": false,
47
+ "repo_id": 1432363229,
48
+ "repository_license": [
49
+ {
50
+ "content": "TUlUIExpY2Vuc2UKCkNvcHlyaWdodCAoYykgMjAyNiBTb2x0aQoKUGVybWlz\nc2lvbiBpcyBoZXJlYnkgZ3JhbnRlZCwgZnJlZSBvZiBjaGFyZ2UsIHRvIGFu\neSBwZXJzb24gb2J0YWluaW5nIGEgY29weQpvZiB0aGlzIHNvZnR3YXJlIGFu\nZCBhc3NvY2lhdGVkIGRvY3VtZW50YXRpb24gZmlsZXMgKHRoZSAiU29mdHdh\ncmUiKSwgdG8gZGVhbAppbiB0aGUgU29mdHdhcmUgd2l0aG91dCByZXN0cmlj\ndGlvbiwgaW5jbHVkaW5nIHdpdGhvdXQgbGltaXRhdGlvbiB0aGUgcmlnaHRz\nCnRvIHVzZSwgY29weSwgbW9kaWZ5LCBtZXJnZSwgcHVibGlzaCwgZGlzdHJp\nYnV0ZSwgc3VibGljZW5zZSwgYW5kL29yIHNlbGwKY29waWVzIG9mIHRoZSBT\nb2Z0d2FyZSwgYW5kIHRvIHBlcm1pdCBwZXJzb25zIHRvIHdob20gdGhlIFNv\nZnR3YXJlIGlzCmZ1cm5pc2hlZCB0byBkbyBzbywgc3ViamVjdCB0byB0aGUg\nZm9sbG93aW5nIGNvbmRpdGlvbnM6CgpUaGUgYWJvdmUgY29weXJpZ2h0IG5v\ndGljZSBhbmQgdGhpcyBwZXJtaXNzaW9uIG5vdGljZSBzaGFsbCBiZSBpbmNs\ndWRlZCBpbiBhbGwKY29waWVzIG9yIHN1YnN0YW50aWFsIHBvcnRpb25zIG9m\nIHRoZSBTb2Z0d2FyZS4KClRIRSBTT0ZUV0FSRSBJUyBQUk9WSURFRCAiQVMg\nSVMiLCBXSVRIT1VUIFdBUlJBTlRZIE9GIEFOWSBLSU5ELCBFWFBSRVNTIE9S\nCklNUExJRUQsIElOQ0xVRElORyBCVVQgTk9UIExJTUlURUQgVE8gVEhFIFdB\nUlJBTlRJRVMgT0YgTUVSQ0hBTlRBQklMSVRZLApGSVRORVNTIEZPUiBBIFBB\nUlRJQ1VMQVIgUFVSUE9TRSBBTkQgTk9OSU5GUklOR0VNRU5ULiBJTiBOTyBF\nVkVOVCBTSEFMTCBUSEUKQVVUSE9SUyBPUiBDT1BZUklHSFQgSE9MREVSUyBC\nRSBMSUFCTEUgRk9SIEFOWSBDTEFJTSwgREFNQUdFUyBPUiBPVEhFUgpMSUFC\nSUxJVFksIFdIRVRIRVIgSU4gQU4gQUNUSU9OIE9GIENPTlRSQUNULCBUT1JU\nIE9SIE9USEVSV0lTRSwgQVJJU0lORyBGUk9NLApPVVQgT0YgT1IgSU4gQ09O\nTkVDVElPTiBXSVRIIFRIRSBTT0ZUV0FSRSBPUiBUSEUgVVNFIE9SIE9USEVS\nIERFQUxJTkdTIElOIFRIRQpTT0ZUV0FSRS4K\n",
51
+ "download_url": "https://raw.githubusercontent.com/trysolti/solti-cli/main/LICENSE",
52
+ "encoding": "base64",
53
+ "git_url": "https://api.github.com/repos/trysolti/solti-cli/git/blobs/1688a21c5aca63ef34d38a1744a02c3599a0ec0c",
54
+ "html_url": "https://github.com/trysolti/solti-cli/blob/main/LICENSE",
55
+ "license": [
56
+ {
57
+ "body": "",
58
+ "conditions": [],
59
+ "description": "",
60
+ "featured": false,
61
+ "html_url": "",
62
+ "implementation": "",
63
+ "key": "mit",
64
+ "limitations": [],
65
+ "name": "MIT License",
66
+ "permissions": [],
67
+ "spdx_id": "MIT",
68
+ "url": "https://api.github.com/licenses/mit"
69
+ }
70
+ ],
71
+ "name": "LICENSE",
72
+ "path": "LICENSE",
73
+ "sha": "1688a21c5aca63ef34d38a1744a02c3599a0ec0c",
74
+ "size": 1062,
75
+ "type": "file",
76
+ "url": "https://api.github.com/repos/trysolti/solti-cli/contents/LICENSE?ref=main"
77
+ }
78
+ ],
79
+ "squash_merge_commit_message": "COMMIT_MESSAGES",
80
+ "squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
81
+ "ssh_clone_url": "git@github.com:trysolti/solti-cli.git",
82
+ "svn_url": "https://github.com/trysolti/solti-cli",
83
+ "template": [],
84
+ "topics": [
85
+ "batch-processing",
86
+ "cli",
87
+ "job-scheduler",
88
+ "solti",
89
+ "typescript"
90
+ ],
91
+ "visibility": "public"
92
+ },
93
+ "sensitive_attributes": [],
94
+ "identity_schema_version": 0
95
+ }
96
+ ]
97
+ },
98
+ {
99
+ "mode": "managed",
100
+ "type": "github_actions_secret",
101
+ "name": "NPM_TOKEN",
102
+ "provider": "provider[\"registry.terraform.io/integrations/github\"]",
103
+ "instances": [
104
+ {
105
+ "schema_version": 2,
106
+ "attributes": {
107
+ "created_at": "2026-11-23 02:37:49 +0000 UTC",
108
+ "destroy_on_drift": null,
109
+ "encrypted_value": null,
110
+ "id": "solti-cli:NPM_TOKEN",
111
+ "key_id": "3380204578043523366",
112
+ "plaintext_value": "\"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\"",
113
+ "remote_updated_at": "2026-11-23 02:48:29 +0000 UTC",
114
+ "repository": "solti-cli",
115
+ "repository_id": 1432363229,
116
+ "secret_name": "NPM_TOKEN",
117
+ "updated_at": "2026-11-23 02:48:29 +0000 UTC",
118
+ "value": null,
119
+ "value_encrypted": null
120
+ },
121
+ "sensitive_attributes": [
122
+ [
123
+ {
124
+ "type": "get_attr",
125
+ "value": "encrypted_value"
126
+ }
127
+ ],
128
+ [
129
+ {
130
+ "type": "get_attr",
131
+ "value": "plaintext_value"
132
+ }
133
+ ],
134
+ [
135
+ {
136
+ "type": "get_attr",
137
+ "value": "value"
138
+ }
139
+ ],
140
+ [
141
+ {
142
+ "type": "get_attr",
143
+ "value": "value_encrypted"
144
+ }
145
+ ]
146
+ ],
147
+ "identity_schema_version": 0,
148
+ "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjIifQ==",
149
+ "dependencies": [
150
+ "data.github_repository.this"
151
+ ]
152
+ }
153
+ ]
154
+ }
155
+ ],
156
+ "check_results": null
157
+ }
@@ -0,0 +1,154 @@
1
+ {
2
+ "version": 4,
3
+ "terraform_version": "1.17.2",
4
+ "serial": 1,
5
+ "lineage": "46d8dcdd-f44d-f3fa-3529-0c0145d060fd",
6
+ "outputs": {},
7
+ "resources": [
8
+ {
9
+ "mode": "data",
10
+ "type": "github_repository",
11
+ "name": "this",
12
+ "provider": "provider[\"registry.terraform.io/integrations/github\"]",
13
+ "instances": [
14
+ {
15
+ "schema_version": 0,
16
+ "attributes": {
17
+ "allow_auto_merge": false,
18
+ "allow_forking": true,
19
+ "allow_merge_commit": true,
20
+ "allow_rebase_merge": true,
21
+ "allow_squash_merge": true,
22
+ "allow_update_branch": false,
23
+ "archived": false,
24
+ "default_branch": "main",
25
+ "delete_branch_on_merge": false,
26
+ "description": "Official command-line interface for the Solti Platform",
27
+ "fork": false,
28
+ "full_name": "trysolti/solti-cli",
29
+ "git_clone_url": "git://github.com/trysolti/solti-cli.git",
30
+ "has_discussions": false,
31
+ "has_downloads": false,
32
+ "has_issues": true,
33
+ "has_projects": true,
34
+ "has_wiki": false,
35
+ "homepage_url": "https://docs.solti.run",
36
+ "html_url": "https://github.com/trysolti/solti-cli",
37
+ "http_clone_url": "https://github.com/trysolti/solti-cli.git",
38
+ "id": "solti-cli",
39
+ "is_template": false,
40
+ "merge_commit_message": "PR_TITLE",
41
+ "merge_commit_title": "MERGE_MESSAGE",
42
+ "name": "solti-cli",
43
+ "node_id": "R_kgDOVWAg3Q",
44
+ "pages": [],
45
+ "primary_language": "TypeScript",
46
+ "private": false,
47
+ "repo_id": 1432363229,
48
+ "repository_license": [
49
+ {
50
+ "content": "TUlUIExpY2Vuc2UKCkNvcHlyaWdodCAoYykgMjAyNiBTb2x0aQoKUGVybWlz\nc2lvbiBpcyBoZXJlYnkgZ3JhbnRlZCwgZnJlZSBvZiBjaGFyZ2UsIHRvIGFu\neSBwZXJzb24gb2J0YWluaW5nIGEgY29weQpvZiB0aGlzIHNvZnR3YXJlIGFu\nZCBhc3NvY2lhdGVkIGRvY3VtZW50YXRpb24gZmlsZXMgKHRoZSAiU29mdHdh\ncmUiKSwgdG8gZGVhbAppbiB0aGUgU29mdHdhcmUgd2l0aG91dCByZXN0cmlj\ndGlvbiwgaW5jbHVkaW5nIHdpdGhvdXQgbGltaXRhdGlvbiB0aGUgcmlnaHRz\nCnRvIHVzZSwgY29weSwgbW9kaWZ5LCBtZXJnZSwgcHVibGlzaCwgZGlzdHJp\nYnV0ZSwgc3VibGljZW5zZSwgYW5kL29yIHNlbGwKY29waWVzIG9mIHRoZSBT\nb2Z0d2FyZSwgYW5kIHRvIHBlcm1pdCBwZXJzb25zIHRvIHdob20gdGhlIFNv\nZnR3YXJlIGlzCmZ1cm5pc2hlZCB0byBkbyBzbywgc3ViamVjdCB0byB0aGUg\nZm9sbG93aW5nIGNvbmRpdGlvbnM6CgpUaGUgYWJvdmUgY29weXJpZ2h0IG5v\ndGljZSBhbmQgdGhpcyBwZXJtaXNzaW9uIG5vdGljZSBzaGFsbCBiZSBpbmNs\ndWRlZCBpbiBhbGwKY29waWVzIG9yIHN1YnN0YW50aWFsIHBvcnRpb25zIG9m\nIHRoZSBTb2Z0d2FyZS4KClRIRSBTT0ZUV0FSRSBJUyBQUk9WSURFRCAiQVMg\nSVMiLCBXSVRIT1VUIFdBUlJBTlRZIE9GIEFOWSBLSU5ELCBFWFBSRVNTIE9S\nCklNUExJRUQsIElOQ0xVRElORyBCVVQgTk9UIExJTUlURUQgVE8gVEhFIFdB\nUlJBTlRJRVMgT0YgTUVSQ0hBTlRBQklMSVRZLApGSVRORVNTIEZPUiBBIFBB\nUlRJQ1VMQVIgUFVSUE9TRSBBTkQgTk9OSU5GUklOR0VNRU5ULiBJTiBOTyBF\nVkVOVCBTSEFMTCBUSEUKQVVUSE9SUyBPUiBDT1BZUklHSFQgSE9MREVSUyBC\nRSBMSUFCTEUgRk9SIEFOWSBDTEFJTSwgREFNQUdFUyBPUiBPVEhFUgpMSUFC\nSUxJVFksIFdIRVRIRVIgSU4gQU4gQUNUSU9OIE9GIENPTlRSQUNULCBUT1JU\nIE9SIE9USEVSV0lTRSwgQVJJU0lORyBGUk9NLApPVVQgT0YgT1IgSU4gQ09O\nTkVDVElPTiBXSVRIIFRIRSBTT0ZUV0FSRSBPUiBUSEUgVVNFIE9SIE9USEVS\nIERFQUxJTkdTIElOIFRIRQpTT0ZUV0FSRS4K\n",
51
+ "download_url": "https://raw.githubusercontent.com/trysolti/solti-cli/main/LICENSE",
52
+ "encoding": "base64",
53
+ "git_url": "https://api.github.com/repos/trysolti/solti-cli/git/blobs/1688a21c5aca63ef34d38a1744a02c3599a0ec0c",
54
+ "html_url": "https://github.com/trysolti/solti-cli/blob/main/LICENSE",
55
+ "license": [
56
+ {
57
+ "body": "",
58
+ "conditions": [],
59
+ "description": "",
60
+ "featured": false,
61
+ "html_url": "",
62
+ "implementation": "",
63
+ "key": "mit",
64
+ "limitations": [],
65
+ "name": "MIT License",
66
+ "permissions": [],
67
+ "spdx_id": "MIT",
68
+ "url": "https://api.github.com/licenses/mit"
69
+ }
70
+ ],
71
+ "name": "LICENSE",
72
+ "path": "LICENSE",
73
+ "sha": "1688a21c5aca63ef34d38a1744a02c3599a0ec0c",
74
+ "size": 1062,
75
+ "type": "file",
76
+ "url": "https://api.github.com/repos/trysolti/solti-cli/contents/LICENSE?ref=main"
77
+ }
78
+ ],
79
+ "squash_merge_commit_message": "COMMIT_MESSAGES",
80
+ "squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
81
+ "ssh_clone_url": "git@github.com:trysolti/solti-cli.git",
82
+ "svn_url": "https://github.com/trysolti/solti-cli",
83
+ "template": [],
84
+ "topics": [
85
+ "batch-processing",
86
+ "cli",
87
+ "job-scheduler",
88
+ "solti",
89
+ "typescript"
90
+ ],
91
+ "visibility": "public"
92
+ },
93
+ "sensitive_attributes": [],
94
+ "identity_schema_version": 0
95
+ }
96
+ ]
97
+ },
98
+ {
99
+ "mode": "managed",
100
+ "type": "github_actions_secret",
101
+ "name": "NPM_TOKEN",
102
+ "provider": "provider[\"registry.terraform.io/integrations/github\"]",
103
+ "instances": [
104
+ {
105
+ "schema_version": 2,
106
+ "attributes": {
107
+ "created_at": "2026-11-23 02:37:49 +0000 UTC",
108
+ "destroy_on_drift": null,
109
+ "encrypted_value": null,
110
+ "id": "solti-cli:NPM_TOKEN",
111
+ "key_id": null,
112
+ "plaintext_value": null,
113
+ "remote_updated_at": "2026-11-23 02:37:49 +0000 UTC",
114
+ "repository": "solti-cli",
115
+ "repository_id": 1432363229,
116
+ "secret_name": "NPM_TOKEN",
117
+ "updated_at": "2026-11-23 02:37:49 +0000 UTC",
118
+ "value": null,
119
+ "value_encrypted": null
120
+ },
121
+ "sensitive_attributes": [
122
+ [
123
+ {
124
+ "type": "get_attr",
125
+ "value": "encrypted_value"
126
+ }
127
+ ],
128
+ [
129
+ {
130
+ "type": "get_attr",
131
+ "value": "plaintext_value"
132
+ }
133
+ ],
134
+ [
135
+ {
136
+ "type": "get_attr",
137
+ "value": "value"
138
+ }
139
+ ],
140
+ [
141
+ {
142
+ "type": "get_attr",
143
+ "value": "value_encrypted"
144
+ }
145
+ ]
146
+ ],
147
+ "identity_schema_version": 0,
148
+ "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjIifQ=="
149
+ }
150
+ ]
151
+ }
152
+ ],
153
+ "check_results": null
154
+ }
@@ -1,3 +0,0 @@
1
- node_modules/
2
- dist/
3
- solti_cli/vendor/
File without changes
File without changes
File without changes