@markdown-ai/cli 1.0.0-rc.3 → 1.1.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/HOW-TO-USE.md +279 -173
- package/README.md +103 -34
- package/dist/cli.js +3488 -272
- package/dist/conformance/compile/46-basic-targets/expected/AGENTS.md +20 -0
- package/dist/conformance/compile/46-basic-targets/expected/MCP-SERVER.md +20 -0
- package/dist/conformance/compile/46-basic-targets/expected/SKILL.md +19 -0
- package/dist/conformance/compile/46-basic-targets/expected/mcp-server.json +5 -0
- package/dist/conformance/compile/46-basic-targets/input.mda +18 -0
- package/dist/conformance/manifest.yaml +55 -49
- package/dist/conformance/valid/27-trust-policy-github-actions.json +14 -11
- package/dist/schemas/mda-trust-policy.schema.json +144 -111
- package/package.json +47 -46
|
@@ -1,113 +1,146 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://mda.sno.dev/spec/v1.0/schemas/mda-trust-policy.schema.json",
|
|
4
|
+
"title": "MDA trust policy",
|
|
5
|
+
"description": "Trust policy for the MDA trusted-runtime verification profile.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["version", "trustedSigners"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"version": {
|
|
10
|
+
"type": "integer",
|
|
11
|
+
"const": 1
|
|
12
|
+
},
|
|
13
|
+
"minSignatures": {
|
|
14
|
+
"type": "integer",
|
|
15
|
+
"minimum": 1
|
|
16
|
+
},
|
|
17
|
+
"trustedSigners": {
|
|
18
|
+
"type": "array",
|
|
19
|
+
"minItems": 1,
|
|
20
|
+
"uniqueItems": true,
|
|
21
|
+
"items": {
|
|
22
|
+
"oneOf": [
|
|
23
|
+
{
|
|
24
|
+
"type": "object",
|
|
25
|
+
"required": ["type", "issuer", "subject"],
|
|
26
|
+
"properties": {
|
|
27
|
+
"type": { "const": "sigstore-oidc" },
|
|
28
|
+
"issuer": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"format": "uri",
|
|
31
|
+
"minLength": 1
|
|
32
|
+
},
|
|
33
|
+
"subject": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"minLength": 1
|
|
36
|
+
},
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$"
|
|
40
|
+
},
|
|
41
|
+
"workflow": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"minLength": 1
|
|
44
|
+
},
|
|
45
|
+
"ref": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"pattern": "^refs/(heads|tags)/.+$"
|
|
48
|
+
},
|
|
49
|
+
"jobWorkflowRef": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"minLength": 1
|
|
52
|
+
},
|
|
53
|
+
"environment": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"minLength": 1
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"allOf": [
|
|
59
|
+
{
|
|
60
|
+
"if": {
|
|
61
|
+
"properties": {
|
|
62
|
+
"issuer": { "const": "https://token.actions.githubusercontent.com" }
|
|
63
|
+
},
|
|
64
|
+
"required": ["issuer"]
|
|
65
|
+
},
|
|
66
|
+
"then": {
|
|
67
|
+
"anyOf": [{ "required": ["repository", "workflow", "ref"] }, { "required": ["repository", "jobWorkflowRef"] }]
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"additionalProperties": false
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"type": "object",
|
|
75
|
+
"required": ["type", "domain"],
|
|
76
|
+
"properties": {
|
|
77
|
+
"type": { "const": "did-web" },
|
|
78
|
+
"domain": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"pattern": "^[A-Za-z0-9](?:[A-Za-z0-9.-]{0,251}[A-Za-z0-9])?$"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"additionalProperties": false
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"rekor": {
|
|
89
|
+
"type": "object",
|
|
90
|
+
"required": ["url"],
|
|
91
|
+
"properties": {
|
|
92
|
+
"url": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"format": "uri"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"additionalProperties": false
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"allOf": [
|
|
101
|
+
{
|
|
102
|
+
"if": {
|
|
103
|
+
"properties": {
|
|
104
|
+
"trustedSigners": {
|
|
105
|
+
"contains": {
|
|
106
|
+
"type": "object",
|
|
107
|
+
"properties": {
|
|
108
|
+
"type": { "const": "sigstore-oidc" }
|
|
109
|
+
},
|
|
110
|
+
"required": ["type"]
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"required": ["trustedSigners"]
|
|
115
|
+
},
|
|
116
|
+
"then": {
|
|
117
|
+
"required": ["rekor"],
|
|
118
|
+
"properties": {
|
|
119
|
+
"rekor": { "required": ["url"] }
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"if": {
|
|
125
|
+
"properties": {
|
|
126
|
+
"trustedSigners": {
|
|
127
|
+
"not": {
|
|
128
|
+
"contains": {
|
|
129
|
+
"type": "object",
|
|
130
|
+
"properties": {
|
|
131
|
+
"type": { "const": "sigstore-oidc" }
|
|
132
|
+
},
|
|
133
|
+
"required": ["type"]
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"required": ["trustedSigners"]
|
|
139
|
+
},
|
|
140
|
+
"then": {
|
|
141
|
+
"not": { "required": ["rekor"] }
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"additionalProperties": false
|
|
113
146
|
}
|
package/package.json
CHANGED
|
@@ -1,48 +1,49 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
2
|
+
"name": "@markdown-ai/cli",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "MDA command-line tools for authoring, validating, compiling, and checking Markdown AI artifacts.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/sno-ai/mda.git",
|
|
9
|
+
"directory": "apps/cli"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/sno-ai/mda",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/sno-ai/mda/issues"
|
|
14
|
+
},
|
|
15
|
+
"type": "module",
|
|
16
|
+
"bin": {
|
|
17
|
+
"mda": "dist/cli.js"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist",
|
|
21
|
+
"README.md",
|
|
22
|
+
"HOW-TO-USE.md"
|
|
23
|
+
],
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public",
|
|
26
|
+
"registry": "https://registry.npmjs.org"
|
|
27
|
+
},
|
|
28
|
+
"keywords": [
|
|
29
|
+
"mda",
|
|
30
|
+
"markdown-ai",
|
|
31
|
+
"markdown",
|
|
32
|
+
"ai-agent",
|
|
33
|
+
"agent",
|
|
34
|
+
"cli",
|
|
35
|
+
"skill",
|
|
36
|
+
"agents-md",
|
|
37
|
+
"mcp",
|
|
38
|
+
"integrity",
|
|
39
|
+
"conformance"
|
|
40
|
+
],
|
|
41
|
+
"engines": {
|
|
42
|
+
"node": ">=20"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "node scripts/build.mjs",
|
|
46
|
+
"smoke:package": "node scripts/package-smoke.mjs",
|
|
47
|
+
"test": "node dist/cli.js --help >/dev/null && node dist/cli.js conformance --suite ../../conformance --level V --json >/dev/null && node test/e2e.mjs"
|
|
48
|
+
}
|
|
48
49
|
}
|