@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.
@@ -1,113 +1,146 @@
1
1
  {
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
- },
38
- "additionalProperties": false
39
- },
40
- {
41
- "type": "object",
42
- "required": ["type", "domain"],
43
- "properties": {
44
- "type": { "const": "did-web" },
45
- "domain": {
46
- "type": "string",
47
- "pattern": "^[A-Za-z0-9](?:[A-Za-z0-9.-]{0,251}[A-Za-z0-9])?$"
48
- }
49
- },
50
- "additionalProperties": false
51
- }
52
- ]
53
- }
54
- },
55
- "rekor": {
56
- "type": "object",
57
- "required": ["url"],
58
- "properties": {
59
- "url": {
60
- "type": "string",
61
- "format": "uri"
62
- }
63
- },
64
- "additionalProperties": false
65
- }
66
- },
67
- "allOf": [
68
- {
69
- "if": {
70
- "properties": {
71
- "trustedSigners": {
72
- "contains": {
73
- "type": "object",
74
- "properties": {
75
- "type": { "const": "sigstore-oidc" }
76
- },
77
- "required": ["type"]
78
- }
79
- }
80
- },
81
- "required": ["trustedSigners"]
82
- },
83
- "then": {
84
- "required": ["rekor"],
85
- "properties": {
86
- "rekor": { "required": ["url"] }
87
- }
88
- }
89
- },
90
- {
91
- "if": {
92
- "properties": {
93
- "trustedSigners": {
94
- "not": {
95
- "contains": {
96
- "type": "object",
97
- "properties": {
98
- "type": { "const": "sigstore-oidc" }
99
- },
100
- "required": ["type"]
101
- }
102
- }
103
- }
104
- },
105
- "required": ["trustedSigners"]
106
- },
107
- "then": {
108
- "not": { "required": ["rekor"] }
109
- }
110
- }
111
- ],
112
- "additionalProperties": false
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
- "name": "@markdown-ai/cli",
3
- "version": "1.0.0-rc.3",
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
- "test": "node dist/cli.js --help >/dev/null && node dist/cli.js conformance --suite ../../conformance --level V --json >/dev/null && node test/e2e.mjs"
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
  }