@meridian-flow/mars-schema 0.29.0 → 0.30.1
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/fixtures/prepare/policy-override-bad-key/expected/agents/runner.md +13 -0
- package/fixtures/prepare/policy-override-bad-key/expected/mars.toml +4 -0
- package/fixtures/prepare/policy-override-bad-key/expected.json +178 -0
- package/fixtures/prepare/policy-override-bad-key/input/agents/runner.md +10 -0
- package/fixtures/prepare/policy-override-bad-key/input/mars.toml +3 -0
- package/fixtures/prepare/policy-override-bad-key/request.json +3 -0
- package/index.d.ts +2 -0
- package/node/mars_schema_wasm_bg.wasm +0 -0
- package/package.json +1 -1
- package/web/mars_schema_wasm_bg.wasm +0 -0
|
@@ -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
|
+
"approval"
|
|
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"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"code": "field.execution-ignored",
|
|
156
|
+
"severity": "warning",
|
|
157
|
+
"path": [
|
|
158
|
+
"model-policies",
|
|
159
|
+
0,
|
|
160
|
+
"override",
|
|
161
|
+
"effort"
|
|
162
|
+
],
|
|
163
|
+
"message": "agent `runner`: `model-policies.0.override.effort: 3` ignored (not valid here); use none, low, medium, high, xhigh or max"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"code": "field.restriction-lost",
|
|
167
|
+
"severity": "warning",
|
|
168
|
+
"path": [
|
|
169
|
+
"model-policies",
|
|
170
|
+
1,
|
|
171
|
+
"override",
|
|
172
|
+
"network"
|
|
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"
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
}
|
|
178
|
+
}
|
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
|
Binary file
|