@mago-foundation/mago-ski 0.1.0 → 0.2.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/README.md +25 -7
- package/action.yml +2 -2
- package/dist/hosts/github/run.d.ts +6 -0
- package/dist/hosts/github/run.js +38 -5
- package/dist/hosts/pi/index.d.ts +5 -3
- package/dist/hosts/pi/index.js +171 -9
- package/dist/src/admin.d.ts +4 -0
- package/dist/src/admin.js +178 -50
- package/dist/src/canonical-json.js +73 -28
- package/dist/src/certificate.js +23 -15
- package/dist/src/cli.js +256 -80
- package/dist/src/diff.d.ts +0 -4
- package/dist/src/diff.js +326 -70
- package/dist/src/dsse.d.ts +6 -4
- package/dist/src/dsse.js +22 -6
- package/dist/src/fs-safe.d.ts +17 -1
- package/dist/src/fs-safe.js +162 -29
- package/dist/src/keys.js +81 -35
- package/dist/src/main-module.js +1 -1
- package/dist/src/names.js +2 -4
- package/dist/src/policy.d.ts +28 -6
- package/dist/src/policy.js +134 -22
- package/dist/src/revocations.js +3 -1
- package/dist/src/time.d.ts +19 -3
- package/dist/src/time.js +50 -8
- package/dist/src/tree-digest.d.ts +3 -0
- package/dist/src/tree-digest.js +40 -15
- package/dist/src/trust-root.d.ts +5 -0
- package/dist/src/trust-root.js +34 -13
- package/dist/src/verify.d.ts +36 -13
- package/dist/src/verify.js +307 -61
- package/docs/hosts/github-action.md +3 -3
- package/docs/hosts/pi.md +8 -3
- package/docs/spec/root-recovery-v1.md +430 -0
- package/docs/spec/skill-certificate-v1.md +1 -1
- package/docs/spec/skill-tree-v2.md +2 -2
- package/docs/spec/trust-documents-v1.md +5 -5
- package/docs/spec/verification.md +11 -1
- package/docs/threat-model.md +6 -5
- package/package.json +47 -44
package/package.json
CHANGED
|
@@ -1,69 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mago-foundation/mago-ski",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"author": "The Mago Foundation",
|
|
3
|
+
"version": "0.2.0",
|
|
5
4
|
"description": "Skills PKI: organization-approved, exact-version Skill certificates enforced on the agent host",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"author": "The Mago Foundation",
|
|
7
|
+
"homepage": "https://magofoundation.dev",
|
|
6
8
|
"repository": {
|
|
7
9
|
"type": "git",
|
|
8
10
|
"url": "https://github.com/mago-foundation/mago-ski.git"
|
|
9
11
|
},
|
|
10
|
-
"homepage": "https://magofoundation.dev",
|
|
11
12
|
"bugs": {
|
|
12
13
|
"url": "https://github.com/mago-foundation/mago-ski/issues"
|
|
13
14
|
},
|
|
14
|
-
"keywords": [
|
|
15
|
-
"pi-package",
|
|
16
|
-
"agent-skills",
|
|
17
|
-
"skills",
|
|
18
|
-
"pki",
|
|
19
|
-
"supply-chain",
|
|
20
|
-
"signing"
|
|
21
|
-
],
|
|
22
|
-
"license": "Apache-2.0",
|
|
23
15
|
"type": "module",
|
|
24
|
-
"engines": {
|
|
25
|
-
"node": ">=22.0.0"
|
|
26
|
-
},
|
|
27
|
-
"os": [
|
|
28
|
-
"linux",
|
|
29
|
-
"darwin"
|
|
30
|
-
],
|
|
31
|
-
"bin": {
|
|
32
|
-
"mago-ski": "dist/src/cli.js"
|
|
33
|
-
},
|
|
34
16
|
"exports": {
|
|
35
17
|
".": {
|
|
36
18
|
"types": "./dist/src/index.d.ts",
|
|
37
19
|
"import": "./dist/src/index.js"
|
|
38
20
|
}
|
|
39
21
|
},
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"./dist/hosts/pi/index.js"
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
"scripts": {
|
|
46
|
-
"build": "tsc -p tsconfig.build.json",
|
|
47
|
-
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
48
|
-
"test": "node --test --test-concurrency=1 \"tests/**/*.test.ts\"",
|
|
49
|
-
"check": "npm run typecheck && npm test",
|
|
50
|
-
"prepublishOnly": "npm run check && npm run build"
|
|
22
|
+
"bin": {
|
|
23
|
+
"mago-ski": "dist/src/cli.js"
|
|
51
24
|
},
|
|
52
25
|
"files": [
|
|
53
|
-
"
|
|
26
|
+
"docs/hosts/",
|
|
54
27
|
"action.yml",
|
|
55
|
-
"
|
|
56
|
-
"LICENSE",
|
|
57
|
-
"NOTICE",
|
|
28
|
+
"dist",
|
|
58
29
|
"docs/spec",
|
|
59
|
-
"docs/
|
|
60
|
-
"
|
|
30
|
+
"docs/threat-model.md",
|
|
31
|
+
"LICENSE",
|
|
32
|
+
"README.md",
|
|
33
|
+
"NOTICE"
|
|
61
34
|
],
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "tsc -p tsconfig.build.json",
|
|
37
|
+
"check": "npm run typecheck && npm test",
|
|
38
|
+
"prepublishOnly": "npm run check && npm run build",
|
|
39
|
+
"test": "node --test --test-concurrency=1 \"tests/**/*.test.ts\"",
|
|
40
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
67
41
|
},
|
|
68
42
|
"peerDependencies": {
|
|
69
43
|
"@earendil-works/pi-coding-agent": ">=1.0.4"
|
|
@@ -72,5 +46,34 @@
|
|
|
72
46
|
"@earendil-works/pi-coding-agent": {
|
|
73
47
|
"optional": true
|
|
74
48
|
}
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@earendil-works/pi-ai": "1.1.0",
|
|
52
|
+
"@earendil-works/pi-coding-agent": "1.1.0",
|
|
53
|
+
"@types/node": "22.20.4",
|
|
54
|
+
"typescript": "5.8.3"
|
|
55
|
+
},
|
|
56
|
+
"keywords": [
|
|
57
|
+
"agent-skills",
|
|
58
|
+
"pi-package",
|
|
59
|
+
"pki",
|
|
60
|
+
"signing",
|
|
61
|
+
"skills",
|
|
62
|
+
"supply-chain"
|
|
63
|
+
],
|
|
64
|
+
"engines": {
|
|
65
|
+
"node": "^22.23.4 || ^24.22.1 || >=26.12.1"
|
|
66
|
+
},
|
|
67
|
+
"os": [
|
|
68
|
+
"darwin",
|
|
69
|
+
"linux"
|
|
70
|
+
],
|
|
71
|
+
"imports": {
|
|
72
|
+
"#package.json": "./package.json"
|
|
73
|
+
},
|
|
74
|
+
"pi": {
|
|
75
|
+
"extensions": [
|
|
76
|
+
"./dist/hosts/pi/index.js"
|
|
77
|
+
]
|
|
75
78
|
}
|
|
76
79
|
}
|