@skhema/cli 0.4.7 → 0.4.8
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/commands/component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/commands/component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAoEnC,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAkKhE"}
|
|
@@ -17,11 +17,12 @@ function renderComponents(components = []) {
|
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
19
|
logHeader(`Components (${components.length})`);
|
|
20
|
-
logTable(['id', 'name', 'type', 'pos'], components.map((c) => [
|
|
20
|
+
logTable(['id', 'name', 'type', 'pos', 'elements'], components.map((c) => [
|
|
21
21
|
c.id,
|
|
22
22
|
c.name ?? '',
|
|
23
23
|
c.componentType ?? '',
|
|
24
24
|
c.position === undefined ? '' : String(c.position),
|
|
25
|
+
c.elementCount === undefined ? '' : String(c.elementCount),
|
|
25
26
|
]));
|
|
26
27
|
}
|
|
27
28
|
function renderComponentLinks(links = []) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../../src/commands/element.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAkBnC;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../../src/commands/element.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAkBnC;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA8S9D"}
|
package/dist/commands/element.js
CHANGED
|
@@ -99,6 +99,7 @@ export function registerElementCommands(program) {
|
|
|
99
99
|
.description('Create an element')
|
|
100
100
|
.option('--content <content>', 'Element content')
|
|
101
101
|
.option('--component-type <type>', 'Component type')
|
|
102
|
+
.option('--component-id <id>', 'Target component instance (find ids with `skhema component list`); omitted, the element lands in the first instance of the type by position (auto-created if none exists)')
|
|
102
103
|
.option('--element-type <type>', 'Element type')
|
|
103
104
|
.option('--file <path>', 'JSON payload file for the full body ("-" for stdin)')).action(async (options) => {
|
|
104
105
|
await runCommand('element create', async () => {
|
|
@@ -106,6 +107,7 @@ export function registerElementCommands(program) {
|
|
|
106
107
|
const body = buildBody(readPayloadFile(options.file), {
|
|
107
108
|
content: options.content,
|
|
108
109
|
componentType: options.componentType,
|
|
110
|
+
componentId: options.componentId,
|
|
109
111
|
elementType: options.elementType,
|
|
110
112
|
});
|
|
111
113
|
if (Object.keys(body).length === 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skhema/cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.8",
|
|
4
4
|
"description": "Skhema CLI - Authentication and AI skills management for agent platforms",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@skhema/agent-sdk": "0.1.4",
|
|
45
45
|
"@skhema/method": "0.3.0",
|
|
46
|
-
"@skhema/sdk": "0.2.
|
|
46
|
+
"@skhema/sdk": "0.2.4",
|
|
47
47
|
"chalk": "^5.3.0",
|
|
48
48
|
"commander": "^12.0.0",
|
|
49
49
|
"ora": "^8.0.0"
|