@meridian-flow/mars-schema 0.30.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 (46) 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.json +10 -10
  6. package/fixtures/read/agent-anchor/expected.json +2 -2
  7. package/fixtures/read/agent-approval-yolo/expected.json +1 -1
  8. package/fixtures/read/agent-integer-range/expected.json +4 -4
  9. package/fixtures/read/agent-nested-order/expected.json +4 -4
  10. package/fixtures/read/agent-network-invalid/expected.json +1 -1
  11. package/fixtures/read/agent-proto-key/expected.json +2 -2
  12. package/fixtures/read/agent-removed-autocompact/expected.json +1 -1
  13. package/fixtures/read/agent-removed-autocompact-pct/expected.json +1 -1
  14. package/fixtures/read/agent-removed-disallowed-tools/expected.json +1 -1
  15. package/fixtures/read/agent-removed-fanout/expected.json +1 -1
  16. package/fixtures/read/agent-removed-host-namespaces/expected.json +2 -2
  17. package/fixtures/read/agent-removed-mcp-tools/expected.json +1 -1
  18. package/fixtures/read/agent-removed-meridian-keys/expected.json +2 -2
  19. package/fixtures/read/agent-removed-model-invocable/expected.json +1 -1
  20. package/fixtures/read/agent-removed-models/expected.json +1 -1
  21. package/fixtures/read/agent-removed-permission/expected.json +1 -1
  22. package/fixtures/read/agent-removed-user-invocable/expected.json +1 -1
  23. package/fixtures/read/agent-unknown/expected.json +2 -2
  24. package/fixtures/read/manifest-order/expected.json +16 -16
  25. package/fixtures/read/manifest-removed-visibility/expected.json +1 -1
  26. package/fixtures/read/manifest-unknown/expected.json +2 -2
  27. package/fixtures/read/skill-anchor/expected.json +2 -2
  28. package/fixtures/read/skill-removed-allow-implicit-invocation/expected.json +1 -1
  29. package/fixtures/read/skill-removed-allowed-tools/expected.json +1 -1
  30. package/fixtures/read/skill-removed-disable-model-invocation/expected.json +1 -1
  31. package/fixtures/read/skill-removed-disallowed-tools/expected.json +1 -1
  32. package/fixtures/read/skill-removed-invocation/expected.json +1 -1
  33. package/fixtures/read/skill-removed-model-invocable-alias/expected.json +1 -1
  34. package/fixtures/read/skill-removed-tools/expected.json +1 -1
  35. package/fixtures/read/skill-removed-type/expected.json +1 -1
  36. package/fixtures/read/skill-removed-user-invocable-alias/expected.json +1 -1
  37. package/fixtures/read/skill-removed-when-to-use/expected.json +1 -1
  38. package/fixtures/read/skill-unknown/expected.json +2 -2
  39. package/fixtures/read/yaml-anchor/expected.json +2 -2
  40. package/fixtures/upgrade/agent-unreadable-values/expected-diagnostics.json +0 -1
  41. package/fixtures/upgrade/agent-unreadable-values/expected.md +4 -0
  42. package/fixtures/upgrade/manifest-v1-idempotent/expected.toml +0 -1
  43. package/fixtures/upgrade/manifest-v1-idempotent/input.toml +0 -1
  44. package/node/mars_schema_wasm_bg.wasm +0 -0
  45. package/package.json +1 -1
  46. 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
  },
@@ -147,31 +147,31 @@
147
147
  "model-policies",
148
148
  1,
149
149
  "override",
150
- "approval"
150
+ "network"
151
151
  ],
152
- "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"
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
153
  },
154
154
  {
155
- "code": "field.execution-ignored",
155
+ "code": "field.restriction-lost",
156
156
  "severity": "warning",
157
157
  "path": [
158
158
  "model-policies",
159
- 0,
159
+ 1,
160
160
  "override",
161
- "effort"
161
+ "approval"
162
162
  ],
163
- "message": "agent `runner`: `model-policies.0.override.effort: 3` ignored (not valid here); use none, low, medium, high, xhigh or max"
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
164
  },
165
165
  {
166
- "code": "field.restriction-lost",
166
+ "code": "field.execution-ignored",
167
167
  "severity": "warning",
168
168
  "path": [
169
169
  "model-policies",
170
- 1,
170
+ 0,
171
171
  "override",
172
- "network"
172
+ "effort"
173
173
  ],
174
- "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"
174
+ "message": "agent `runner`: `model-policies.0.override.effort: 3` ignored (not valid here); use none, low, medium, high, xhigh or max"
175
175
  }
176
176
  ]
177
177
  }
@@ -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"
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meridian-flow/mars-schema",
3
- "version": "0.30.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