@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kanonak-protocol/cli",
3
- "version": "1.4.0",
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.4.0",
38
- "@kanonak-protocol/types": "^1.4.0",
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": ">=18.0.0"
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[]>;