@blkc-code/cli 0.1.1 → 0.1.2
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/bin/blkc.js +24 -0
- package/dist/cli.js +24 -0
- package/dist/commands/block.d.ts +12 -1
- package/dist/commands/block.d.ts.map +1 -0
- package/dist/commands/block.js +180 -268
- package/dist/commands/block.js.map +1 -1
- package/dist/commands/circuit.d.ts +12 -1
- package/dist/commands/circuit.d.ts.map +1 -0
- package/dist/commands/circuit.js +146 -152
- package/dist/commands/circuit.js.map +1 -1
- package/dist/commands/deploy.d.ts +14 -0
- package/dist/commands/deploy.d.ts.map +1 -0
- package/dist/commands/deploy.js +332 -0
- package/dist/commands/deploy.js.map +1 -0
- package/dist/commands/kit.d.ts +12 -1
- package/dist/commands/kit.d.ts.map +1 -0
- package/dist/commands/kit.js +137 -160
- package/dist/commands/kit.js.map +1 -1
- package/dist/commands/logbook.d.ts +12 -1
- package/dist/commands/logbook.d.ts.map +1 -0
- package/dist/commands/logbook.js +150 -136
- package/dist/commands/logbook.js.map +1 -1
- package/dist/index.d.ts +19 -2
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +46 -34
- package/dist/index.js.map +1 -1
- package/package.json +57 -33
- package/src/__tests__/smoke.test.ts +8 -0
- package/src/commands/block.ts +219 -0
- package/src/commands/circuit.ts +182 -0
- package/src/commands/deploy.ts +373 -0
- package/src/commands/kit.ts +173 -0
- package/src/commands/logbook.ts +194 -0
- package/src/index.ts +70 -0
- package/LICENSE +0 -201
- package/NOTICE +0 -5
- package/README.md +0 -13
- package/dist/utils/filesystem.d.ts +0 -5
- package/dist/utils/filesystem.js +0 -21
- package/dist/utils/filesystem.js.map +0 -1
- package/dist/utils/github.d.ts +0 -23
- package/dist/utils/github.js +0 -66
- package/dist/utils/github.js.map +0 -1
package/dist/commands/circuit.js
CHANGED
|
@@ -1,166 +1,160 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* BLKC CLI - Circuit Commands
|
|
3
|
+
*
|
|
4
|
+
* Commands for working with BLKC Circuits.
|
|
5
|
+
*
|
|
6
|
+
* @package @blkc-code/cli
|
|
7
|
+
* @license Apache-2.0
|
|
8
|
+
* @author Black Code Enterprises LLC
|
|
9
|
+
*/
|
|
3
10
|
import chalk from "chalk";
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
const manifest = await readJsonFile(manifestPath(circuitId));
|
|
38
|
-
return CircuitSchema.parse(manifest);
|
|
39
|
-
};
|
|
40
|
-
const renderReadme = (manifest) => {
|
|
41
|
-
const kits = manifest.kits.map((kit) => `- ${kit.kitId}@${kit.version}`).join("\n");
|
|
42
|
-
return `# ${manifest.name}\n\n${manifest.description}\n\n## Kits\n\n${kits}\n\n## Verticals\n\n${manifest.verticals.join(", ") || "general"}\n`;
|
|
43
|
-
};
|
|
44
|
-
const publishCircuit = async (circuitId) => {
|
|
45
|
-
const manifest = await readManifest(circuitId);
|
|
46
|
-
const registry = await readRegistry();
|
|
47
|
-
const remainder = registry.circuits.filter((circuit) => circuit.id !== circuitId);
|
|
48
|
-
const updated = {
|
|
49
|
-
updatedAt: nowISO(),
|
|
50
|
-
circuits: [...remainder, manifest].sort((a, b) => a.id.localeCompare(b.id)),
|
|
51
|
-
};
|
|
52
|
-
await saveRegistry(updated);
|
|
53
|
-
console.log(chalk.green(`✔ Published circuit ${manifest.id}@${manifest.version}`));
|
|
54
|
-
};
|
|
55
|
-
export const registerCircuitCommands = (program) => {
|
|
56
|
-
const circuit = program
|
|
57
|
-
.command("circuit")
|
|
58
|
-
.description("Manage BLKC circuits");
|
|
59
|
-
circuit
|
|
60
|
-
.command("list")
|
|
61
|
-
.description("List registered circuits")
|
|
62
|
-
.option("--json", "Emit JSON output", false)
|
|
63
|
-
.action(async (options) => {
|
|
64
|
-
const registry = await readRegistry();
|
|
65
|
-
if (registry.circuits.length === 0) {
|
|
66
|
-
console.log(chalk.yellow("No circuits registered yet."));
|
|
67
|
-
return;
|
|
11
|
+
import ora from "ora";
|
|
12
|
+
import { readFile } from "node:fs/promises";
|
|
13
|
+
import path from "node:path";
|
|
14
|
+
import { CircuitSchema } from "@blkc-code/core";
|
|
15
|
+
// ============================================================================
|
|
16
|
+
// Command: circuit validate
|
|
17
|
+
// ============================================================================
|
|
18
|
+
function setupValidateCommand(program) {
|
|
19
|
+
program
|
|
20
|
+
.command("validate <manifest-path>")
|
|
21
|
+
.description("Validate a Circuit manifest")
|
|
22
|
+
.action(async (manifestPath) => {
|
|
23
|
+
const spinner = ora("Validating Circuit manifest...").start();
|
|
24
|
+
try {
|
|
25
|
+
const absolutePath = path.resolve(process.cwd(), manifestPath);
|
|
26
|
+
const content = await readFile(absolutePath, { encoding: "utf8" });
|
|
27
|
+
const manifest = JSON.parse(content);
|
|
28
|
+
const result = CircuitSchema.safeParse(manifest);
|
|
29
|
+
if (!result.success) {
|
|
30
|
+
spinner.fail("Validation failed");
|
|
31
|
+
console.error(chalk.red("\nValidation errors:"));
|
|
32
|
+
for (const issue of result.error.issues) {
|
|
33
|
+
console.error(` - ${chalk.red(issue.path.join("."))}: ${issue.message}`);
|
|
34
|
+
}
|
|
35
|
+
process.exit(1);
|
|
36
|
+
}
|
|
37
|
+
spinner.succeed("Circuit manifest is valid");
|
|
38
|
+
const circuit = result.data;
|
|
39
|
+
console.log(chalk.gray(`\nCircuit ID: ${circuit.id}`));
|
|
40
|
+
console.log(chalk.gray(`Name: ${circuit.name}`));
|
|
41
|
+
console.log(chalk.gray(`Kits: ${circuit.kits.length}`));
|
|
42
|
+
console.log(chalk.gray(`Boards: ${circuit.boards.length}`));
|
|
43
|
+
console.log(chalk.gray(`Capabilities: ${circuit.capabilities.length}`));
|
|
68
44
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
45
|
+
catch (error) {
|
|
46
|
+
spinner.fail(`Failed to validate: ${error}`);
|
|
47
|
+
process.exit(1);
|
|
72
48
|
}
|
|
73
|
-
registry.circuits
|
|
74
|
-
.sort((a, b) => a.id.localeCompare(b.id))
|
|
75
|
-
.forEach((item) => {
|
|
76
|
-
console.log(chalk.cyan(`${item.id}@${item.version}`));
|
|
77
|
-
console.log(` name: ${item.name}`);
|
|
78
|
-
console.log(` summary: ${item.summary}`);
|
|
79
|
-
console.log(` kits: ${item.kits.map((kit) => kit.kitId).join(", ")}`);
|
|
80
|
-
console.log(` status: ${item.status}`);
|
|
81
|
-
console.log("");
|
|
82
|
-
});
|
|
83
49
|
});
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
.
|
|
91
|
-
.
|
|
92
|
-
.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
console.
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
.
|
|
121
|
-
.
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
50
|
+
}
|
|
51
|
+
// ============================================================================
|
|
52
|
+
// Command: circuit info
|
|
53
|
+
// ============================================================================
|
|
54
|
+
function setupInfoCommand(program) {
|
|
55
|
+
program
|
|
56
|
+
.command("info <manifest-path>")
|
|
57
|
+
.description("Show detailed information about a Circuit")
|
|
58
|
+
.action(async (manifestPath) => {
|
|
59
|
+
const spinner = ora("Loading Circuit info...").start();
|
|
60
|
+
try {
|
|
61
|
+
const absolutePath = path.resolve(process.cwd(), manifestPath);
|
|
62
|
+
const content = await readFile(absolutePath, { encoding: "utf8" });
|
|
63
|
+
const manifest = JSON.parse(content);
|
|
64
|
+
const result = CircuitSchema.safeParse(manifest);
|
|
65
|
+
if (!result.success) {
|
|
66
|
+
spinner.fail("Invalid Circuit manifest");
|
|
67
|
+
process.exit(1);
|
|
68
|
+
}
|
|
69
|
+
const circuit = result.data;
|
|
70
|
+
spinner.succeed(`Circuit: ${circuit.id}`);
|
|
71
|
+
console.log(chalk.bold("\nCircuit Information"));
|
|
72
|
+
console.log(chalk.gray("─".repeat(40)));
|
|
73
|
+
console.log(chalk.gray(`ID: ${circuit.id}`));
|
|
74
|
+
console.log(chalk.gray(`Name: ${circuit.name}`));
|
|
75
|
+
console.log(chalk.gray(`Summary: ${circuit.summary}`));
|
|
76
|
+
console.log(chalk.gray(`Version: ${circuit.version}`));
|
|
77
|
+
console.log(chalk.gray(`Status: ${circuit.status}`));
|
|
78
|
+
console.log(chalk.gray(`License: ${circuit.license}`));
|
|
79
|
+
if (circuit.verticals.length > 0) {
|
|
80
|
+
console.log(chalk.gray(`Verticals: ${circuit.verticals.join(", ")}`));
|
|
81
|
+
}
|
|
82
|
+
if (circuit.tags.length > 0) {
|
|
83
|
+
console.log(chalk.gray(`Tags: ${circuit.tags.join(", ")}`));
|
|
84
|
+
}
|
|
85
|
+
if (circuit.kits.length > 0) {
|
|
86
|
+
console.log(chalk.bold("\nKits"));
|
|
87
|
+
console.log(chalk.gray("─".repeat(40)));
|
|
88
|
+
for (const kitRef of circuit.kits) {
|
|
89
|
+
console.log(chalk.gray(` - ${kitRef.kitId}@${kitRef.version}`));
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
if (circuit.boards.length > 0) {
|
|
93
|
+
console.log(chalk.bold("\nBoards"));
|
|
94
|
+
console.log(chalk.gray("─".repeat(40)));
|
|
95
|
+
for (const board of circuit.boards) {
|
|
96
|
+
console.log(chalk.gray(` - ${board.id}: ${board.name}`));
|
|
97
|
+
console.log(chalk.gray(` Columns: ${board.columns.map((c) => c.name).join(", ")}`));
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
if (circuit.capabilities.length > 0) {
|
|
101
|
+
console.log(chalk.bold("\nCapabilities"));
|
|
102
|
+
console.log(chalk.gray("─".repeat(40)));
|
|
103
|
+
for (const capRef of circuit.capabilities) {
|
|
104
|
+
console.log(chalk.gray(` - ${capRef.blockId}@${capRef.version}`));
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
if (circuit.repository) {
|
|
108
|
+
console.log(chalk.bold("\nRepository"));
|
|
109
|
+
console.log(chalk.gray("─".repeat(40)));
|
|
110
|
+
console.log(chalk.gray(circuit.repository));
|
|
111
|
+
}
|
|
146
112
|
}
|
|
147
|
-
|
|
148
|
-
|
|
113
|
+
catch (error) {
|
|
114
|
+
spinner.fail(`Failed to show info: ${error}`);
|
|
115
|
+
process.exit(1);
|
|
149
116
|
}
|
|
150
117
|
});
|
|
151
|
-
|
|
118
|
+
}
|
|
119
|
+
// ============================================================================
|
|
120
|
+
// Command: circuit publish
|
|
121
|
+
// ============================================================================
|
|
122
|
+
function setupPublishCommand(program) {
|
|
123
|
+
program
|
|
152
124
|
.command("publish")
|
|
153
|
-
.description("
|
|
154
|
-
.
|
|
155
|
-
.action(async (
|
|
125
|
+
.description("Publish a Circuit to registry (simulated)")
|
|
126
|
+
.option("--dry-run", "Simulate publish without actually publishing")
|
|
127
|
+
.action(async (options) => {
|
|
128
|
+
const { dryRun } = options;
|
|
129
|
+
const spinner = ora(dryRun ? "Simulating publish..." : "Publishing Circuit...").start();
|
|
156
130
|
try {
|
|
157
|
-
|
|
158
|
-
await
|
|
131
|
+
// Simulate publish
|
|
132
|
+
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
133
|
+
if (dryRun) {
|
|
134
|
+
spinner.succeed("Dry run: Circuit would be published");
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
spinner.succeed("Circuit published successfully");
|
|
138
|
+
console.log(chalk.gray("\nNote: Actual publishing requires registry authentication."));
|
|
139
|
+
}
|
|
159
140
|
}
|
|
160
141
|
catch (error) {
|
|
161
|
-
|
|
162
|
-
process.
|
|
142
|
+
spinner.fail(`Failed to publish: ${error}`);
|
|
143
|
+
process.exit(1);
|
|
163
144
|
}
|
|
164
145
|
});
|
|
165
|
-
}
|
|
146
|
+
}
|
|
147
|
+
// ============================================================================
|
|
148
|
+
// Register Commands
|
|
149
|
+
// ============================================================================
|
|
150
|
+
/** Register all circuit commands with the program */
|
|
151
|
+
export function registerCircuitCommands(program) {
|
|
152
|
+
const circuitProgram = program
|
|
153
|
+
.command("circuit")
|
|
154
|
+
.description("Circuit commands")
|
|
155
|
+
.alias("c");
|
|
156
|
+
setupValidateCommand(circuitProgram);
|
|
157
|
+
setupInfoCommand(circuitProgram);
|
|
158
|
+
setupPublishCommand(circuitProgram);
|
|
159
|
+
}
|
|
166
160
|
//# sourceMappingURL=circuit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"circuit.js","sourceRoot":"","sources":["../../src/commands/circuit.ts"],"names":[],"mappings":"AAAA,OAAO,
|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AAC,CAAC;YACzF,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,IAAI,CAAC,sBAAsB,KAAK,EAAE,CAAC,CAAC;YAC5C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC;AAED,+EAA+E;AAC/E,oBAAoB;AACpB,+EAA+E;AAE/E,qDAAqD;AACrD,MAAM,UAAU,uBAAuB,CAAC,OAAgB;IACtD,MAAM,cAAc,GAAG,OAAO;SAC3B,OAAO,CAAC,SAAS,CAAC;SAClB,WAAW,CAAC,kBAAkB,CAAC;SAC/B,KAAK,CAAC,GAAG,CAAC,CAAC;IAEd,oBAAoB,CAAC,cAAc,CAAC,CAAC;IACrC,gBAAgB,CAAC,cAAc,CAAC,CAAC;IACjC,mBAAmB,CAAC,cAAc,CAAC,CAAC;AACtC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BLKC CLI - Deploy Commands
|
|
3
|
+
*
|
|
4
|
+
* Commands for deploying BLKC content to BCM.
|
|
5
|
+
* This is the CLI half of the deploy functionality.
|
|
6
|
+
*
|
|
7
|
+
* @package @blkc-code/cli
|
|
8
|
+
* @license Apache-2.0
|
|
9
|
+
* @author Black Code Enterprises LLC
|
|
10
|
+
*/
|
|
11
|
+
import { Command } from "commander";
|
|
12
|
+
/** Register all deploy commands with the program */
|
|
13
|
+
export declare function registerDeployCommands(program: Command): void;
|
|
14
|
+
//# sourceMappingURL=deploy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../src/commands/deploy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA6VpC,oDAAoD;AACpD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAW7D"}
|