@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.
- package/README.md +26 -4
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +4 -17
- package/dist/commands/ensemble-gateway.js +0 -2
- package/dist/commands/ensemble-records.d.ts +2 -1
- package/dist/commands/ensemble-records.js +3 -1
- package/dist/commands/ensemble.js +3 -4
- package/dist/commands/fusion.js +14 -15
- package/dist/commands/local.js +3 -3
- package/dist/cursor-acp.d.ts +18 -0
- package/dist/cursor-acp.js +206 -0
- package/dist/dashboard.d.ts +65 -0
- package/dist/dashboard.js +587 -0
- package/dist/fusion/env.d.ts +108 -0
- package/dist/fusion/env.js +98 -0
- package/dist/fusion/observability.d.ts +39 -0
- package/dist/fusion/observability.js +227 -0
- package/dist/fusion/preflight.d.ts +12 -0
- package/dist/fusion/preflight.js +42 -0
- package/dist/fusion/stack.d.ts +62 -0
- package/dist/fusion/stack.js +295 -0
- package/dist/fusion-config.d.ts +0 -1
- package/dist/fusion-config.js +0 -6
- package/dist/fusion-init.js +2 -11
- package/dist/fusion-quickstart.d.ts +11 -222
- package/dist/fusion-quickstart.js +57 -759
- package/dist/gateway.d.ts +0 -2
- package/dist/gateway.js +12 -2
- package/dist/local.d.ts +10 -17
- package/dist/local.js +50 -116
- package/dist/shared/options.d.ts +2 -1
- package/dist/shared/options.js +13 -19
- package/dist/shared/proc.d.ts +4 -70
- package/dist/shared/proc.js +3 -228
- package/dist/test/cli.test.js +32 -142
- package/dist/test/dashboard.test.d.ts +1 -0
- package/dist/test/dashboard.test.js +214 -0
- package/dist/test/gateway-e2e.test.js +13 -10
- package/dist/test/local.test.js +4 -4
- package/dist/tools.d.ts +2 -0
- package/dist/tools.js +25 -0
- package/package.json +14 -9
- package/scope/.next/BUILD_ID +1 -1
- package/scope/.next/app-build-manifest.json +12 -12
- package/scope/.next/app-path-routes-manifest.json +3 -3
- package/scope/.next/build-manifest.json +2 -2
- package/scope/.next/prerender-manifest.json +16 -16
- package/scope/.next/server/app/_not-found.html +1 -1
- package/scope/.next/server/app/_not-found.rsc +1 -1
- package/scope/.next/server/app/environments.html +1 -1
- package/scope/.next/server/app/environments.rsc +1 -1
- package/scope/.next/server/app/index.html +1 -1
- package/scope/.next/server/app/index.rsc +1 -1
- package/scope/.next/server/app/models.html +1 -1
- package/scope/.next/server/app/models.rsc +1 -1
- package/scope/.next/server/app-paths-manifest.json +3 -3
- package/scope/.next/server/functions-config-manifest.json +2 -2
- package/scope/.next/server/pages/404.html +1 -1
- package/scope/.next/server/pages/500.html +1 -1
- package/scope/.next/server/server-reference-manifest.json +1 -1
- package/dist/commands/init.d.ts +0 -2
- package/dist/commands/init.js +0 -24
- package/dist/commands/lifecycle.d.ts +0 -2
- package/dist/commands/lifecycle.js +0 -124
- package/dist/commands/plane.d.ts +0 -2
- package/dist/commands/plane.js +0 -38
- package/dist/commands/run.d.ts +0 -2
- package/dist/commands/run.js +0 -149
- package/dist/commands/runner.d.ts +0 -2
- package/dist/commands/runner.js +0 -33
- package/dist/commands/secrets.d.ts +0 -2
- package/dist/commands/secrets.js +0 -21
- /package/scope/.next/static/{5tnFLuvnSbNZNtqRgoot8 → x7wPUCpgS31-5ZHJkcKsU}/_buildManifest.js +0 -0
- /package/scope/.next/static/{5tnFLuvnSbNZNtqRgoot8 → x7wPUCpgS31-5ZHJkcKsU}/_ssgManifest.js +0 -0
package/dist/commands/runner.js
DELETED
|
@@ -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
|
-
}
|
package/dist/commands/secrets.js
DELETED
|
@@ -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
|
-
}
|
/package/scope/.next/static/{5tnFLuvnSbNZNtqRgoot8 → x7wPUCpgS31-5ZHJkcKsU}/_buildManifest.js
RENAMED
|
File without changes
|
|
File without changes
|