@meridian-flow/mars-schema 0.29.1 → 0.31.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.
Files changed (52) hide show
  1. package/fixtures/normalize/agent-translation/normalized.json +2 -2
  2. package/fixtures/normalize/opencode-with-standard-skill/normalized.json +2 -2
  3. package/fixtures/normalize/skill-translation/normalized.json +2 -2
  4. package/fixtures/prepare/agent-structural-raw/expected.json +2 -2
  5. package/fixtures/prepare/policy-override-bad-key/expected/agents/runner.md +13 -0
  6. package/fixtures/prepare/policy-override-bad-key/expected/mars.toml +4 -0
  7. package/fixtures/prepare/policy-override-bad-key/expected.json +178 -0
  8. package/fixtures/prepare/policy-override-bad-key/input/agents/runner.md +10 -0
  9. package/fixtures/prepare/policy-override-bad-key/input/mars.toml +3 -0
  10. package/fixtures/prepare/policy-override-bad-key/request.json +3 -0
  11. package/fixtures/read/agent-anchor/expected.json +2 -2
  12. package/fixtures/read/agent-approval-yolo/expected.json +1 -1
  13. package/fixtures/read/agent-integer-range/expected.json +4 -4
  14. package/fixtures/read/agent-nested-order/expected.json +4 -4
  15. package/fixtures/read/agent-network-invalid/expected.json +1 -1
  16. package/fixtures/read/agent-proto-key/expected.json +2 -2
  17. package/fixtures/read/agent-removed-autocompact/expected.json +1 -1
  18. package/fixtures/read/agent-removed-autocompact-pct/expected.json +1 -1
  19. package/fixtures/read/agent-removed-disallowed-tools/expected.json +1 -1
  20. package/fixtures/read/agent-removed-fanout/expected.json +1 -1
  21. package/fixtures/read/agent-removed-host-namespaces/expected.json +2 -2
  22. package/fixtures/read/agent-removed-mcp-tools/expected.json +1 -1
  23. package/fixtures/read/agent-removed-meridian-keys/expected.json +2 -2
  24. package/fixtures/read/agent-removed-model-invocable/expected.json +1 -1
  25. package/fixtures/read/agent-removed-models/expected.json +1 -1
  26. package/fixtures/read/agent-removed-permission/expected.json +1 -1
  27. package/fixtures/read/agent-removed-user-invocable/expected.json +1 -1
  28. package/fixtures/read/agent-unknown/expected.json +2 -2
  29. package/fixtures/read/manifest-order/expected.json +16 -16
  30. package/fixtures/read/manifest-removed-visibility/expected.json +1 -1
  31. package/fixtures/read/manifest-unknown/expected.json +2 -2
  32. package/fixtures/read/skill-anchor/expected.json +2 -2
  33. package/fixtures/read/skill-removed-allow-implicit-invocation/expected.json +1 -1
  34. package/fixtures/read/skill-removed-allowed-tools/expected.json +1 -1
  35. package/fixtures/read/skill-removed-disable-model-invocation/expected.json +1 -1
  36. package/fixtures/read/skill-removed-disallowed-tools/expected.json +1 -1
  37. package/fixtures/read/skill-removed-invocation/expected.json +1 -1
  38. package/fixtures/read/skill-removed-model-invocable-alias/expected.json +1 -1
  39. package/fixtures/read/skill-removed-tools/expected.json +1 -1
  40. package/fixtures/read/skill-removed-type/expected.json +1 -1
  41. package/fixtures/read/skill-removed-user-invocable-alias/expected.json +1 -1
  42. package/fixtures/read/skill-removed-when-to-use/expected.json +1 -1
  43. package/fixtures/read/skill-unknown/expected.json +2 -2
  44. package/fixtures/read/yaml-anchor/expected.json +2 -2
  45. package/fixtures/upgrade/agent-unreadable-values/expected-diagnostics.json +0 -1
  46. package/fixtures/upgrade/agent-unreadable-values/expected.md +4 -0
  47. package/fixtures/upgrade/manifest-v1-idempotent/expected.toml +0 -1
  48. package/fixtures/upgrade/manifest-v1-idempotent/input.toml +0 -1
  49. package/index.d.ts +2 -0
  50. package/node/mars_schema_wasm_bg.wasm +0 -0
  51. package/package.json +1 -1
  52. package/web/mars_schema_wasm_bg.wasm +0 -0
@@ -263,11 +263,11 @@
263
263
  "diagnostics": [
264
264
  {
265
265
  "code": "field.unknown",
266
- "severity": "warning",
266
+ "severity": "info",
267
267
  "path": [
268
268
  "x-custom"
269
269
  ],
270
- "message": "unknown field `x-custom` is kept in the file but written to no native file; put harness-specific keys under `harness-overrides.<harness>`"
270
+ "message": "unknown key `x-custom` is not read by Mars v{version} (a typo, or a key from a newer Mars); it stays in the file"
271
271
  }
272
272
  ]
273
273
  },
@@ -192,11 +192,11 @@
192
192
  "diagnostics": [
193
193
  {
194
194
  "code": "field.unknown",
195
- "severity": "warning",
195
+ "severity": "info",
196
196
  "path": [
197
197
  "argument-hint"
198
198
  ],
199
- "message": "unknown field `argument-hint` is kept in the file but written to no native file; put harness-specific keys under `harness-overrides.<harness>`"
199
+ "message": "unknown key `argument-hint` is not read by Mars v{version} (a typo, or a key from a newer Mars); it stays in the file"
200
200
  }
201
201
  ]
202
202
  },
@@ -212,11 +212,11 @@
212
212
  "diagnostics": [
213
213
  {
214
214
  "code": "field.unknown",
215
- "severity": "warning",
215
+ "severity": "info",
216
216
  "path": [
217
217
  "x-custom"
218
218
  ],
219
- "message": "unknown field `x-custom` is kept in the file but written to no native file; put harness-specific keys under `harness-overrides.<harness>`"
219
+ "message": "unknown key `x-custom` is not read by Mars v{version} (a typo, or a key from a newer Mars); it stays in the file"
220
220
  }
221
221
  ]
222
222
  },
@@ -61,11 +61,11 @@
61
61
  },
62
62
  {
63
63
  "code": "field.unknown",
64
- "severity": "warning",
64
+ "severity": "info",
65
65
  "path": [
66
66
  "future"
67
67
  ],
68
- "message": "unknown field `future` is kept in the file but written to no native file; put harness-specific keys under `harness-overrides.<harness>`"
68
+ "message": "unknown key `future` is not read by Mars v{version} (a typo, or a key from a newer Mars); it stays in the file"
69
69
  }
70
70
  ]
71
71
  },
@@ -0,0 +1,13 @@
1
+ ---
2
+ name: runner
3
+ description: Runs things
4
+ model-policies:
5
+ - match:
6
+ model: x
7
+ override:
8
+ sandbox: read-only
9
+ - match:
10
+ model: y
11
+ override: {}
12
+ ---
13
+ Body
@@ -0,0 +1,4 @@
1
+ [package]
2
+ name = "demo"
3
+ version = "1.0.0"
4
+ schema = 1
@@ -0,0 +1,178 @@
1
+ {
2
+ "classification": {
3
+ "kind": "mars-legacy"
4
+ },
5
+ "manifest": {
6
+ "source_path": "mars.toml",
7
+ "output_path": "mars.toml",
8
+ "reading": {
9
+ "frontmatter": [
10
+ [
11
+ "name",
12
+ "demo"
13
+ ],
14
+ [
15
+ "version",
16
+ "1.0.0"
17
+ ],
18
+ [
19
+ "schema",
20
+ 1
21
+ ]
22
+ ],
23
+ "fields": {
24
+ "name": "demo",
25
+ "version": "1.0.0",
26
+ "schema": 1
27
+ },
28
+ "body": null,
29
+ "diagnostics": []
30
+ },
31
+ "change": {
32
+ "kind": "edited",
33
+ "paths": [
34
+ [
35
+ "package",
36
+ "schema"
37
+ ]
38
+ ]
39
+ }
40
+ },
41
+ "definitions": [
42
+ {
43
+ "kind": "agent",
44
+ "slug": "runner",
45
+ "source_path": "agents/runner.md",
46
+ "output_path": "agents/runner.md",
47
+ "reading": {
48
+ "frontmatter": [
49
+ [
50
+ "name",
51
+ "runner"
52
+ ],
53
+ [
54
+ "description",
55
+ "Runs things"
56
+ ],
57
+ [
58
+ "model-policies",
59
+ [
60
+ {
61
+ "match": {
62
+ "model": "x"
63
+ },
64
+ "override": {
65
+ "sandbox": "read-only"
66
+ }
67
+ },
68
+ {
69
+ "match": {
70
+ "model": "y"
71
+ },
72
+ "override": {}
73
+ }
74
+ ]
75
+ ]
76
+ ],
77
+ "fields": {
78
+ "name": "runner",
79
+ "description": "Runs things",
80
+ "harness": null,
81
+ "model": null,
82
+ "mode": null,
83
+ "model-invocable": true,
84
+ "user-invocable": true,
85
+ "approval": null,
86
+ "sandbox": null,
87
+ "network": null,
88
+ "network-allow": [],
89
+ "network-deny": [],
90
+ "effort": null,
91
+ "skills": {
92
+ "load": [],
93
+ "available": []
94
+ },
95
+ "subagents": [],
96
+ "tools": [],
97
+ "harness-overrides": {},
98
+ "model-policies": [
99
+ {
100
+ "match": {
101
+ "model": "x"
102
+ },
103
+ "override": {
104
+ "sandbox": "read-only"
105
+ }
106
+ },
107
+ {
108
+ "match": {
109
+ "model": "y"
110
+ }
111
+ }
112
+ ]
113
+ },
114
+ "body": "Body\n",
115
+ "diagnostics": []
116
+ },
117
+ "change": {
118
+ "kind": "edited",
119
+ "paths": [
120
+ [
121
+ "model-policies"
122
+ ]
123
+ ]
124
+ }
125
+ }
126
+ ],
127
+ "payload": [],
128
+ "selection": {
129
+ "definitions": [
130
+ {
131
+ "kind": "agent",
132
+ "slug": "runner",
133
+ "output_path": "agents/runner.md",
134
+ "skills": []
135
+ }
136
+ ],
137
+ "edges": [],
138
+ "uses_providers": []
139
+ },
140
+ "diagnostics": {},
141
+ "changes": {
142
+ "agents/runner.md": [
143
+ {
144
+ "code": "field.restriction-lost",
145
+ "severity": "warning",
146
+ "path": [
147
+ "model-policies",
148
+ 1,
149
+ "override",
150
+ "network"
151
+ ],
152
+ "message": "agent `runner` lost the restriction `model-policies.1.override.network`: that override was dropped and the rest of the rule is kept. Schema v1 does not accept it (agent field `model-policies[1].override.network` has invalid value `5`; allowed: allow, deny, allowlist); use allow, deny or allowlist"
153
+ },
154
+ {
155
+ "code": "field.restriction-lost",
156
+ "severity": "warning",
157
+ "path": [
158
+ "model-policies",
159
+ 1,
160
+ "override",
161
+ "approval"
162
+ ],
163
+ "message": "agent `runner` lost the restriction `model-policies.1.override.approval`: that override was dropped and the rest of the rule is kept. Schema v1 does not accept it (agent field `model-policies[1].override.approval` has invalid value `bogus`; allowed: default, auto, confirm, never); use default, auto, confirm or never"
164
+ },
165
+ {
166
+ "code": "field.execution-ignored",
167
+ "severity": "warning",
168
+ "path": [
169
+ "model-policies",
170
+ 0,
171
+ "override",
172
+ "effort"
173
+ ],
174
+ "message": "agent `runner`: `model-policies.0.override.effort: 3` ignored (not valid here); use none, low, medium, high, xhigh or max"
175
+ }
176
+ ]
177
+ }
178
+ }
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: runner
3
+ description: Runs things
4
+ model-policies:
5
+ - match: { model: x }
6
+ override: { effort: 3, sandbox: read-only }
7
+ - match: { model: y }
8
+ override: { approval: bogus, network: 5 }
9
+ ---
10
+ Body
@@ -0,0 +1,3 @@
1
+ [package]
2
+ name = "demo"
3
+ version = "1.0.0"
@@ -0,0 +1,3 @@
1
+ {
2
+ "context": "package"
3
+ }
@@ -46,11 +46,11 @@
46
46
  },
47
47
  {
48
48
  "code": "field.unknown",
49
- "severity": "warning",
49
+ "severity": "info",
50
50
  "path": [
51
51
  "x"
52
52
  ],
53
- "message": "unknown field `x` is kept in the file but written to no native file; put harness-specific keys under `harness-overrides.<harness>`"
53
+ "message": "unknown key `x` is not read by Mars v{version} (a typo, or a key from a newer Mars); it stays in the file"
54
54
  }
55
55
  ]
56
56
  }
@@ -36,7 +36,7 @@
36
36
  "path": [
37
37
  "approval"
38
38
  ],
39
- "message": "approval value `yolo` was removed; use `never`"
39
+ "message": "`approval: yolo` is a pre-v1 value; `mars migrate` upgrades this file"
40
40
  }
41
41
  ]
42
42
  }
@@ -32,19 +32,19 @@
32
32
  "diagnostics": [
33
33
  {
34
34
  "code": "field.unknown",
35
- "severity": "warning",
35
+ "severity": "info",
36
36
  "path": [
37
37
  "x-fits"
38
38
  ],
39
- "message": "unknown field `x-fits` is kept in the file but written to no native file; put harness-specific keys under `harness-overrides.<harness>`"
39
+ "message": "unknown key `x-fits` is not read by Mars v{version} (a typo, or a key from a newer Mars); it stays in the file"
40
40
  },
41
41
  {
42
42
  "code": "field.unknown",
43
- "severity": "warning",
43
+ "severity": "info",
44
44
  "path": [
45
45
  "x-big"
46
46
  ],
47
- "message": "unknown field `x-big` is kept in the file but written to no native file; put harness-specific keys under `harness-overrides.<harness>`"
47
+ "message": "unknown key `x-big` is not read by Mars v{version} (a typo, or a key from a newer Mars); it stays in the file"
48
48
  },
49
49
  {
50
50
  "code": "field.value",
@@ -102,19 +102,19 @@
102
102
  "diagnostics": [
103
103
  {
104
104
  "code": "field.unknown",
105
- "severity": "warning",
105
+ "severity": "info",
106
106
  "path": [
107
107
  "z"
108
108
  ],
109
- "message": "unknown field `z` is kept in the file but written to no native file; put harness-specific keys under `harness-overrides.<harness>`"
109
+ "message": "unknown key `z` is not read by Mars v{version} (a typo, or a key from a newer Mars); it stays in the file"
110
110
  },
111
111
  {
112
112
  "code": "field.unknown",
113
- "severity": "warning",
113
+ "severity": "info",
114
114
  "path": [
115
115
  "x-last"
116
116
  ],
117
- "message": "unknown field `x-last` is kept in the file but written to no native file; put harness-specific keys under `harness-overrides.<harness>`"
117
+ "message": "unknown key `x-last` is not read by Mars v{version} (a typo, or a key from a newer Mars); it stays in the file"
118
118
  }
119
119
  ]
120
120
  }
@@ -134,7 +134,7 @@
134
134
  "path": [
135
135
  "network_allow"
136
136
  ],
137
- "message": "`network_allow` was removed; use `network-allow`"
137
+ "message": "`network_allow` is a pre-v1 key; `mars migrate` upgrades this file"
138
138
  }
139
139
  ]
140
140
  }
@@ -31,11 +31,11 @@
31
31
  "diagnostics": [
32
32
  {
33
33
  "code": "field.unknown",
34
- "severity": "warning",
34
+ "severity": "info",
35
35
  "path": [
36
36
  "x-u"
37
37
  ],
38
- "message": "unknown field `x-u` is kept in the file but written to no native file; put harness-specific keys under `harness-overrides.<harness>`"
38
+ "message": "unknown key `x-u` is not read by Mars v{version} (a typo, or a key from a newer Mars); it stays in the file"
39
39
  },
40
40
  {
41
41
  "code": "yaml.non-json-value",
@@ -36,7 +36,7 @@
36
36
  "path": [
37
37
  "autocompact"
38
38
  ],
39
- "message": "`autocompact` was removed; configure compaction on the model alias"
39
+ "message": "`autocompact` is a pre-v1 key; `mars migrate` upgrades this file"
40
40
  }
41
41
  ]
42
42
  }
@@ -36,7 +36,7 @@
36
36
  "path": [
37
37
  "autocompact_pct"
38
38
  ],
39
- "message": "`autocompact_pct` was removed; configure compaction on the model alias"
39
+ "message": "`autocompact_pct` is a pre-v1 key; `mars migrate` upgrades this file"
40
40
  }
41
41
  ]
42
42
  }
@@ -38,7 +38,7 @@
38
38
  "path": [
39
39
  "disallowed-tools"
40
40
  ],
41
- "message": "`disallowed-tools` was removed; use `tools: {<capability>: deny}`"
41
+ "message": "`disallowed-tools` is a pre-v1 key; `mars migrate` upgrades this file"
42
42
  }
43
43
  ]
44
44
  }
@@ -36,7 +36,7 @@
36
36
  "path": [
37
37
  "fanout"
38
38
  ],
39
- "message": "`fanout` was removed; use consumer `[settings.meridian.fanout]`"
39
+ "message": "`fanout` is a pre-v1 key; `mars migrate` upgrades this file"
40
40
  }
41
41
  ]
42
42
  }
@@ -44,7 +44,7 @@
44
44
  "harness-overrides",
45
45
  "flow"
46
46
  ],
47
- "message": "`harness-overrides.flow` was renamed; use `harness-overrides.meridian-flow`"
47
+ "message": "`harness-overrides.flow` is a pre-v1 key; `mars migrate` upgrades this file"
48
48
  },
49
49
  {
50
50
  "code": "field.removed",
@@ -53,7 +53,7 @@
53
53
  "harness-overrides",
54
54
  "meridian"
55
55
  ],
56
- "message": "`harness-overrides.meridian` was renamed; use `harness-overrides.meridian-cli`"
56
+ "message": "`harness-overrides.meridian` is a pre-v1 key; `mars migrate` upgrades this file"
57
57
  }
58
58
  ]
59
59
  }
@@ -38,7 +38,7 @@
38
38
  "path": [
39
39
  "mcp-tools"
40
40
  ],
41
- "message": "`mcp-tools` was removed; put MCP capability references in `tools`"
41
+ "message": "`mcp-tools` is a pre-v1 key; `mars migrate` upgrades this file"
42
42
  }
43
43
  ]
44
44
  }
@@ -42,7 +42,7 @@
42
42
  "path": [
43
43
  "resident-rearm-budget"
44
44
  ],
45
- "message": "`resident-rearm-budget` was removed; move it under `harness-overrides.meridian-cli.resident-rearm-budget`"
45
+ "message": "`resident-rearm-budget` is a pre-v1 key; `mars migrate` upgrades this file"
46
46
  },
47
47
  {
48
48
  "code": "field.removed",
@@ -50,7 +50,7 @@
50
50
  "path": [
51
51
  "meridian-capabilities"
52
52
  ],
53
- "message": "`meridian-capabilities` was removed; move it under `harness-overrides.meridian-cli.capabilities`"
53
+ "message": "`meridian-capabilities` is a pre-v1 key; `mars migrate` upgrades this file"
54
54
  }
55
55
  ]
56
56
  }
@@ -36,7 +36,7 @@
36
36
  "path": [
37
37
  "model_invocable"
38
38
  ],
39
- "message": "`model_invocable` was removed; use `model-invocable`"
39
+ "message": "`model_invocable` is a pre-v1 key; `mars migrate` upgrades this file"
40
40
  }
41
41
  ]
42
42
  }
@@ -38,7 +38,7 @@
38
38
  "path": [
39
39
  "models"
40
40
  ],
41
- "message": "`models` was removed; use `model-policies`"
41
+ "message": "`models` is a pre-v1 key; `mars migrate` upgrades this file"
42
42
  }
43
43
  ]
44
44
  }
@@ -36,7 +36,7 @@
36
36
  "path": [
37
37
  "permission"
38
38
  ],
39
- "message": "`permission` was removed; move it under `harness-overrides.meridian-flow.permission`"
39
+ "message": "`permission` is a pre-v1 key; `mars migrate` upgrades this file"
40
40
  }
41
41
  ]
42
42
  }
@@ -36,7 +36,7 @@
36
36
  "path": [
37
37
  "user_invocable"
38
38
  ],
39
- "message": "`user_invocable` was removed; use `user-invocable`"
39
+ "message": "`user_invocable` is a pre-v1 key; `mars migrate` upgrades this file"
40
40
  }
41
41
  ]
42
42
  }
@@ -32,11 +32,11 @@
32
32
  "diagnostics": [
33
33
  {
34
34
  "code": "field.unknown",
35
- "severity": "warning",
35
+ "severity": "info",
36
36
  "path": [
37
37
  "future-key"
38
38
  ],
39
- "message": "unknown field `future-key` is kept in the file but written to no native file; put harness-specific keys under `harness-overrides.<harness>`"
39
+ "message": "unknown key `future-key` is not read by Mars v{version} (a typo, or a key from a newer Mars); it stays in the file"
40
40
  }
41
41
  ]
42
42
  }
@@ -50,75 +50,75 @@
50
50
  "diagnostics": [
51
51
  {
52
52
  "code": "field.unknown",
53
- "severity": "warning",
53
+ "severity": "info",
54
54
  "path": [
55
55
  "package",
56
56
  "__proto__"
57
57
  ],
58
- "message": "unknown package field `__proto__` is preserved"
58
+ "message": "[package] unknown key `__proto__` is not read by Mars v{version} (a typo, or a key from a newer Mars); it stays in the file"
59
59
  },
60
60
  {
61
61
  "code": "field.unknown",
62
- "severity": "warning",
62
+ "severity": "info",
63
63
  "path": [
64
64
  "package",
65
65
  "alpha"
66
66
  ],
67
- "message": "unknown package field `alpha` is preserved"
67
+ "message": "[package] unknown key `alpha` is not read by Mars v{version} (a typo, or a key from a newer Mars); it stays in the file"
68
68
  },
69
69
  {
70
70
  "code": "field.unknown",
71
- "severity": "warning",
71
+ "severity": "info",
72
72
  "path": [
73
73
  "package",
74
74
  "big"
75
75
  ],
76
- "message": "unknown package field `big` is preserved"
76
+ "message": "[package] unknown key `big` is not read by Mars v{version} (a typo, or a key from a newer Mars); it stays in the file"
77
77
  },
78
78
  {
79
79
  "code": "field.unknown",
80
- "severity": "warning",
80
+ "severity": "info",
81
81
  "path": [
82
82
  "package",
83
83
  "meta"
84
84
  ],
85
- "message": "unknown package field `meta` is preserved"
85
+ "message": "[package] unknown key `meta` is not read by Mars v{version} (a typo, or a key from a newer Mars); it stays in the file"
86
86
  },
87
87
  {
88
88
  "code": "field.unknown",
89
- "severity": "warning",
89
+ "severity": "info",
90
90
  "path": [
91
91
  "package",
92
92
  "nan-value"
93
93
  ],
94
- "message": "unknown package field `nan-value` is preserved"
94
+ "message": "[package] unknown key `nan-value` is not read by Mars v{version} (a typo, or a key from a newer Mars); it stays in the file"
95
95
  },
96
96
  {
97
97
  "code": "field.unknown",
98
- "severity": "warning",
98
+ "severity": "info",
99
99
  "path": [
100
100
  "package",
101
101
  "table"
102
102
  ],
103
- "message": "unknown package field `table` is preserved"
103
+ "message": "[package] unknown key `table` is not read by Mars v{version} (a typo, or a key from a newer Mars); it stays in the file"
104
104
  },
105
105
  {
106
106
  "code": "field.unknown",
107
- "severity": "warning",
107
+ "severity": "info",
108
108
  "path": [
109
109
  "package",
110
110
  "when"
111
111
  ],
112
- "message": "unknown package field `when` is preserved"
112
+ "message": "[package] unknown key `when` is not read by Mars v{version} (a typo, or a key from a newer Mars); it stays in the file"
113
113
  },
114
114
  {
115
115
  "code": "field.unknown",
116
- "severity": "warning",
116
+ "severity": "info",
117
117
  "path": [
118
118
  "package",
119
119
  "zeta"
120
120
  ],
121
- "message": "unknown package field `zeta` is preserved"
121
+ "message": "[package] unknown key `zeta` is not read by Mars v{version} (a typo, or a key from a newer Mars); it stays in the file"
122
122
  },
123
123
  {
124
124
  "code": "toml.non-json-value",
@@ -31,7 +31,7 @@
31
31
  "package",
32
32
  "visibility"
33
33
  ],
34
- "message": "`package.visibility` was removed; remove it"
34
+ "message": "`package.visibility` is a pre-v1 key; `mars migrate` upgrades this file"
35
35
  }
36
36
  ]
37
37
  }
@@ -26,12 +26,12 @@
26
26
  "diagnostics": [
27
27
  {
28
28
  "code": "field.unknown",
29
- "severity": "warning",
29
+ "severity": "info",
30
30
  "path": [
31
31
  "package",
32
32
  "future"
33
33
  ],
34
- "message": "unknown package field `future` is preserved"
34
+ "message": "[package] unknown key `future` is not read by Mars v{version} (a typo, or a key from a newer Mars); it stays in the file"
35
35
  }
36
36
  ]
37
37
  }
@@ -32,11 +32,11 @@
32
32
  },
33
33
  {
34
34
  "code": "field.unknown",
35
- "severity": "warning",
35
+ "severity": "info",
36
36
  "path": [
37
37
  "x"
38
38
  ],
39
- "message": "unknown field `x` is kept in the file but written to no native file; put harness-specific keys under `harness-overrides.<harness>`"
39
+ "message": "unknown key `x` is not read by Mars v{version} (a typo, or a key from a newer Mars); it stays in the file"
40
40
  }
41
41
  ]
42
42
  }
@@ -22,7 +22,7 @@
22
22
  "path": [
23
23
  "allow_implicit_invocation"
24
24
  ],
25
- "message": "`allow_implicit_invocation` was removed; use `model-invocable`"
25
+ "message": "`allow_implicit_invocation` is a pre-v1 key; `mars migrate` upgrades this file"
26
26
  },
27
27
  {
28
28
  "code": "field.required",
@@ -22,7 +22,7 @@
22
22
  "path": [
23
23
  "allowed-tools"
24
24
  ],
25
- "message": "`allowed-tools` was removed; remove this unused skill policy"
25
+ "message": "`allowed-tools` is a pre-v1 key; `mars migrate` upgrades this file"
26
26
  },
27
27
  {
28
28
  "code": "field.required",
@@ -22,7 +22,7 @@
22
22
  "path": [
23
23
  "disable-model-invocation"
24
24
  ],
25
- "message": "`disable-model-invocation` was removed; use `model-invocable`"
25
+ "message": "`disable-model-invocation` is a pre-v1 key; `mars migrate` upgrades this file"
26
26
  },
27
27
  {
28
28
  "code": "field.required",
@@ -24,7 +24,7 @@
24
24
  "path": [
25
25
  "disallowed-tools"
26
26
  ],
27
- "message": "`disallowed-tools` was removed; remove this unused skill policy"
27
+ "message": "`disallowed-tools` is a pre-v1 key; `mars migrate` upgrades this file"
28
28
  },
29
29
  {
30
30
  "code": "field.required",
@@ -22,7 +22,7 @@
22
22
  "path": [
23
23
  "invocation"
24
24
  ],
25
- "message": "`invocation` was removed; use `model-invocable` and `user-invocable`"
25
+ "message": "`invocation` is a pre-v1 key; `mars migrate` upgrades this file"
26
26
  },
27
27
  {
28
28
  "code": "field.required",
@@ -22,7 +22,7 @@
22
22
  "path": [
23
23
  "model_invocable"
24
24
  ],
25
- "message": "`model_invocable` was removed; use `model-invocable`"
25
+ "message": "`model_invocable` is a pre-v1 key; `mars migrate` upgrades this file"
26
26
  },
27
27
  {
28
28
  "code": "field.required",
@@ -24,7 +24,7 @@
24
24
  "path": [
25
25
  "tools"
26
26
  ],
27
- "message": "`tools` was removed; remove this unused skill policy"
27
+ "message": "`tools` is a pre-v1 key; `mars migrate` upgrades this file"
28
28
  },
29
29
  {
30
30
  "code": "field.required",
@@ -22,7 +22,7 @@
22
22
  "path": [
23
23
  "type"
24
24
  ],
25
- "message": "`type` was removed; use `metadata.type`"
25
+ "message": "`type` is a pre-v1 key; `mars migrate` upgrades this file"
26
26
  },
27
27
  {
28
28
  "code": "field.required",
@@ -22,7 +22,7 @@
22
22
  "path": [
23
23
  "user_invocable"
24
24
  ],
25
- "message": "`user_invocable` was removed; use `user-invocable`"
25
+ "message": "`user_invocable` is a pre-v1 key; `mars migrate` upgrades this file"
26
26
  },
27
27
  {
28
28
  "code": "field.required",
@@ -22,7 +22,7 @@
22
22
  "path": [
23
23
  "when_to_use"
24
24
  ],
25
- "message": "`when_to_use` was removed; fold it into `description`"
25
+ "message": "`when_to_use` is a pre-v1 key; `mars migrate` upgrades this file"
26
26
  },
27
27
  {
28
28
  "code": "field.required",
@@ -18,11 +18,11 @@
18
18
  "diagnostics": [
19
19
  {
20
20
  "code": "field.unknown",
21
- "severity": "warning",
21
+ "severity": "info",
22
22
  "path": [
23
23
  "future-key"
24
24
  ],
25
- "message": "unknown field `future-key` is kept in the file but written to no native file; put harness-specific keys under `harness-overrides.<harness>`"
25
+ "message": "unknown key `future-key` is not read by Mars v{version} (a typo, or a key from a newer Mars); it stays in the file"
26
26
  },
27
27
  {
28
28
  "code": "field.required",
@@ -38,11 +38,11 @@
38
38
  },
39
39
  {
40
40
  "code": "field.unknown",
41
- "severity": "warning",
41
+ "severity": "info",
42
42
  "path": [
43
43
  "x"
44
44
  ],
45
- "message": "unknown field `x` is kept in the file but written to no native file; put harness-specific keys under `harness-overrides.<harness>`"
45
+ "message": "unknown key `x` is not read by Mars v{version} (a typo, or a key from a newer Mars); it stays in the file"
46
46
  }
47
47
  ]
48
48
  }
@@ -3,6 +3,5 @@
3
3
  "mode",
4
4
  "approval",
5
5
  "sandbox",
6
- "permission",
7
6
  "tools.Read"
8
7
  ]
@@ -1,5 +1,9 @@
1
1
  ---
2
2
  name: planner
3
3
  description: Plans work
4
+ harness-overrides:
5
+ opencode:
6
+ permission:
7
+ edit: deny
4
8
  ---
5
9
  Plan.
@@ -2,4 +2,3 @@
2
2
  name = "demo"
3
3
  version = "1.0.0"
4
4
  schema = 1 # keep this comment
5
- visibility = "legacy-but-v1-is-untouched"
@@ -2,4 +2,3 @@
2
2
  name = "demo"
3
3
  version = "1.0.0"
4
4
  schema = 1 # keep this comment
5
- visibility = "legacy-but-v1-is-untouched"
package/index.d.ts CHANGED
@@ -144,6 +144,8 @@ export interface ManifestFields {
144
144
  "uses-providers"?: string[];
145
145
  "requires-mars"?: string;
146
146
  "requires-meridian"?: string;
147
+ /** Rules added to every agent the package ships; omitted when empty. */
148
+ tools?: Record<string, "allow" | "deny" | "ask">;
147
149
  }
148
150
 
149
151
  /**
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meridian-flow/mars-schema",
3
- "version": "0.29.1",
3
+ "version": "0.31.0",
4
4
  "description": "Mars agent schema reader and lossless editor",
5
5
  "license": "MIT",
6
6
  "repository": {
Binary file