@kanonak-protocol/cli 1.4.0 → 1.6.0
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/dist/agents/AgentDeploymentHandler.d.ts +19 -0
- package/dist/agents/AgentLock.d.ts +15 -0
- package/dist/agents/AgentPaths.d.ts +23 -0
- package/dist/capabilities/DeploymentHandlerRegistry.d.ts +14 -3
- package/dist/index.js +114 -47
- package/dist/skills/SkillDeploymentHandler.d.ts +8 -6
- package/dist/skills/SkillPaths.d.ts +23 -10
- package/dist/transformations/CompiledTransformation.d.ts +146 -0
- package/dist/transformations/DocAst.d.ts +84 -0
- package/dist/transformations/ExpressionEngine.d.ts +28 -0
- package/dist/transformations/ReferenceResolver.d.ts +20 -0
- package/dist/transformations/TransformationLoader.d.ts +20 -0
- package/dist/transformations/TransformationRunner.d.ts +57 -0
- package/dist/transformations/UriConstants.d.ts +145 -0
- package/dist/transformations/backends/HtmlBackend.d.ts +7 -0
- package/dist/transformations/backends/IDocumentAstBackend.d.ts +16 -0
- package/dist/transformations/backends/JsonBackend.d.ts +12 -0
- package/dist/transformations/backends/MarkdownFrontmatterBackend.d.ts +7 -0
- package/dist/transformations/backends/SimpleMarkdownRenderer.d.ts +17 -0
- package/dist/transformations/backends/SvgBackend.d.ts +7 -0
- package/dist/transformations/backends/TomlBackend.d.ts +7 -0
- package/package.json +6 -4
- package/dist/skills/SkillTransformer.d.ts +0 -19
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kanonak-protocol/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Kanonak Protocol CLI - Validate and resolve Kanonak ontology packages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"build": "tsup && node -e \"const f='dist/index.js';require('fs').writeFileSync(f,'#!/usr/bin/env node\\n'+require('fs').readFileSync(f,'utf8'))\" && tsc --emitDeclarationOnly",
|
|
17
17
|
"clean": "rimraf dist",
|
|
18
18
|
"typecheck": "tsc --noEmit",
|
|
19
|
+
"test": "node scripts/run-tests.mjs",
|
|
19
20
|
"prepublishOnly": "npm run build"
|
|
20
21
|
},
|
|
21
22
|
"publishConfig": {
|
|
@@ -34,8 +35,8 @@
|
|
|
34
35
|
"semantic-web"
|
|
35
36
|
],
|
|
36
37
|
"dependencies": {
|
|
37
|
-
"@kanonak-protocol/sdk": "^1.
|
|
38
|
-
"@kanonak-protocol/types": "^1.
|
|
38
|
+
"@kanonak-protocol/sdk": "^1.6.0",
|
|
39
|
+
"@kanonak-protocol/types": "^1.6.0",
|
|
39
40
|
"commander": "^13.0.0",
|
|
40
41
|
"js-yaml": "^4.1.1"
|
|
41
42
|
},
|
|
@@ -44,10 +45,11 @@
|
|
|
44
45
|
"@types/node": "^20.0.0",
|
|
45
46
|
"rimraf": "^5.0.0",
|
|
46
47
|
"tsup": "^8.5.1",
|
|
48
|
+
"tsx": "^4.19.0",
|
|
47
49
|
"typescript": "^5.9.3"
|
|
48
50
|
},
|
|
49
51
|
"engines": {
|
|
50
|
-
"node": ">=
|
|
52
|
+
"node": ">=20.0.0"
|
|
51
53
|
},
|
|
52
54
|
"license": "Apache-2.0"
|
|
53
55
|
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { KanonakParser, KanonakObjectParser, SubjectKanonak, Kanonak } from '@kanonak-protocol/sdk';
|
|
2
|
-
import type { IKanonakDocumentRepository } from '@kanonak-protocol/sdk';
|
|
3
|
-
/**
|
|
4
|
-
* A skill transformed from Kanonak into SKILL.md content.
|
|
5
|
-
*/
|
|
6
|
-
export interface TransformedSkill {
|
|
7
|
-
name: string;
|
|
8
|
-
description: string;
|
|
9
|
-
skillMd: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Transform every `Skill` instance in a parsed kanonak list into
|
|
13
|
-
* SKILL.md content. References (`license`, `allowedTools`) are
|
|
14
|
-
* followed through the broader repository so the generated
|
|
15
|
-
* frontmatter uses canonical values from the target packages —
|
|
16
|
-
* e.g. `Apache-2.0` (the `License.spdxId`) rather than the local
|
|
17
|
-
* entity name `Apache-2-0`.
|
|
18
|
-
*/
|
|
19
|
-
export declare function transformSkillsToSkillMd(allKanonaks: Kanonak[], skills: SubjectKanonak[], repository: IKanonakDocumentRepository, parser: KanonakParser, objectParser: KanonakObjectParser): Promise<TransformedSkill[]>;
|