@meridian-flow/mars-schema 0.29.1 → 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.
@@ -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
+ "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
+ }
@@ -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
+ }
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.30.1",
4
4
  "description": "Mars agent schema reader and lossless editor",
5
5
  "license": "MIT",
6
6
  "repository": {
Binary file