@fusionkit/cli 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/README.md +26 -4
  2. package/dist/cli.d.ts +1 -0
  3. package/dist/cli.js +4 -17
  4. package/dist/commands/ensemble-gateway.js +0 -2
  5. package/dist/commands/ensemble-records.d.ts +2 -1
  6. package/dist/commands/ensemble-records.js +3 -1
  7. package/dist/commands/ensemble.js +3 -4
  8. package/dist/commands/fusion.js +14 -15
  9. package/dist/commands/local.js +3 -3
  10. package/dist/cursor-acp.d.ts +18 -0
  11. package/dist/cursor-acp.js +206 -0
  12. package/dist/dashboard.d.ts +65 -0
  13. package/dist/dashboard.js +587 -0
  14. package/dist/fusion/env.d.ts +108 -0
  15. package/dist/fusion/env.js +98 -0
  16. package/dist/fusion/observability.d.ts +39 -0
  17. package/dist/fusion/observability.js +227 -0
  18. package/dist/fusion/preflight.d.ts +12 -0
  19. package/dist/fusion/preflight.js +42 -0
  20. package/dist/fusion/stack.d.ts +62 -0
  21. package/dist/fusion/stack.js +295 -0
  22. package/dist/fusion-config.d.ts +0 -1
  23. package/dist/fusion-config.js +0 -6
  24. package/dist/fusion-init.js +2 -11
  25. package/dist/fusion-quickstart.d.ts +11 -222
  26. package/dist/fusion-quickstart.js +57 -759
  27. package/dist/gateway.d.ts +0 -2
  28. package/dist/gateway.js +12 -2
  29. package/dist/local.d.ts +10 -17
  30. package/dist/local.js +50 -116
  31. package/dist/shared/options.d.ts +2 -1
  32. package/dist/shared/options.js +13 -19
  33. package/dist/shared/proc.d.ts +4 -70
  34. package/dist/shared/proc.js +3 -228
  35. package/dist/test/cli.test.js +32 -142
  36. package/dist/test/dashboard.test.d.ts +1 -0
  37. package/dist/test/dashboard.test.js +214 -0
  38. package/dist/test/gateway-e2e.test.js +13 -10
  39. package/dist/test/local.test.js +4 -4
  40. package/dist/tools.d.ts +2 -0
  41. package/dist/tools.js +25 -0
  42. package/package.json +14 -9
  43. package/scope/.next/BUILD_ID +1 -1
  44. package/scope/.next/app-build-manifest.json +12 -12
  45. package/scope/.next/app-path-routes-manifest.json +3 -3
  46. package/scope/.next/build-manifest.json +2 -2
  47. package/scope/.next/prerender-manifest.json +16 -16
  48. package/scope/.next/server/app/_not-found.html +1 -1
  49. package/scope/.next/server/app/_not-found.rsc +1 -1
  50. package/scope/.next/server/app/environments.html +1 -1
  51. package/scope/.next/server/app/environments.rsc +1 -1
  52. package/scope/.next/server/app/index.html +1 -1
  53. package/scope/.next/server/app/index.rsc +1 -1
  54. package/scope/.next/server/app/models.html +1 -1
  55. package/scope/.next/server/app/models.rsc +1 -1
  56. package/scope/.next/server/app-paths-manifest.json +3 -3
  57. package/scope/.next/server/functions-config-manifest.json +2 -2
  58. package/scope/.next/server/pages/404.html +1 -1
  59. package/scope/.next/server/pages/500.html +1 -1
  60. package/scope/.next/server/server-reference-manifest.json +1 -1
  61. package/dist/commands/init.d.ts +0 -2
  62. package/dist/commands/init.js +0 -24
  63. package/dist/commands/lifecycle.d.ts +0 -2
  64. package/dist/commands/lifecycle.js +0 -124
  65. package/dist/commands/plane.d.ts +0 -2
  66. package/dist/commands/plane.js +0 -38
  67. package/dist/commands/run.d.ts +0 -2
  68. package/dist/commands/run.js +0 -149
  69. package/dist/commands/runner.d.ts +0 -2
  70. package/dist/commands/runner.js +0 -33
  71. package/dist/commands/secrets.d.ts +0 -2
  72. package/dist/commands/secrets.js +0 -21
  73. /package/scope/.next/static/{5tnFLuvnSbNZNtqRgoot8 → x7wPUCpgS31-5ZHJkcKsU}/_buildManifest.js +0 -0
  74. /package/scope/.next/static/{5tnFLuvnSbNZNtqRgoot8 → x7wPUCpgS31-5ZHJkcKsU}/_ssgManifest.js +0 -0
@@ -1,33 +0,0 @@
1
- import { resolve } from "node:path";
2
- import { Runner } from "@fusionkit/runner";
3
- import { loadHome } from "../config.js";
4
- import { resolveDir } from "../shared/plane.js";
5
- export function registerRunner(program) {
6
- const runner = program.command("runner").description("outbound-only execution runner");
7
- runner
8
- .command("start")
9
- .description("start an outbound-only runner")
10
- .option("--pool <pool>", "runner pool", "default")
11
- .option("--plane <url>", "plane URL")
12
- .option("--enroll-token <token>", "enrollment token")
13
- .option("--data-dir <dir>", "runner data directory")
14
- .action(async (opts) => {
15
- const dir = resolveDir(program.opts().dir);
16
- let planeUrl = opts.plane;
17
- let enrollToken = opts.enrollToken;
18
- if (!planeUrl || !enrollToken) {
19
- const home = loadHome(dir);
20
- planeUrl = planeUrl ?? home.config.planeUrl;
21
- enrollToken = enrollToken ?? home.config.enrollToken;
22
- }
23
- const instance = new Runner({
24
- planeUrl,
25
- pool: opts.pool,
26
- dataDir: resolve(opts.dataDir ?? ".warrant-runner"),
27
- enrollToken
28
- });
29
- const identity = await instance.ensureEnrolled();
30
- console.log(`runner ${identity.runnerId} polling pool "${identity.pool}" (outbound-only)`);
31
- await instance.start();
32
- });
33
- }
@@ -1,2 +0,0 @@
1
- import type { Command } from "commander";
2
- export declare function registerSecrets(program: Command): void;
@@ -1,21 +0,0 @@
1
- import { loadHome, secretStoreFor } from "../config.js";
2
- import { resolveDir } from "../shared/plane.js";
3
- export function registerSecrets(program) {
4
- const secrets = program.command("secrets").description("org secret store");
5
- secrets
6
- .command("set <name> <value>")
7
- .description("store a secret in the org store")
8
- .action((name, value) => {
9
- const home = loadHome(resolveDir(program.opts().dir));
10
- secretStoreFor(home).set(name, value);
11
- console.log(`secret "${name}" stored (value encrypted at rest)`);
12
- });
13
- secrets
14
- .command("list")
15
- .description("list stored secret names")
16
- .action(() => {
17
- const home = loadHome(resolveDir(program.opts().dir));
18
- const names = secretStoreFor(home).names();
19
- console.log(names.length > 0 ? names.join("\n") : "no secrets stored");
20
- });
21
- }