@agentproto/corpus-cli 0.11.3 → 0.11.4
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/dist/cli.mjs +1 -1
- package/dist/cli.mjs.map +1 -1
- package/dist/specs/resources/aip-14/draft/TOOL.schema.json +2 -2
- package/dist/specs/resources/aip-22/draft/OFFICE.schema.json +8 -8
- package/dist/specs/resources/aip-23/draft/IDENTITY.schema.json +2 -2
- package/dist/specs/resources/aip-34/draft/TYPES.schema.json +1 -1
- package/dist/specs/resources/aip-34/draft/WORKSPACE.schema.json +5 -2
- package/dist/specs/resources/aip-38/draft/POLICY.schema.json +22 -2
- package/dist/specs/resources/aip-42/draft/AGENT.schema.json +42 -4
- package/dist/specs/resources/aip-45/draft/HARNESS.schema.json +79 -1
- package/dist/specs/resources/aip-45/draft/STREAM-EVENTS.schema.json +151 -0
- package/dist/specs/resources/aip-47/draft/ROLE.schema.json +93 -1
- package/dist/specs/resources/aip-53/draft/APP.schema.json +30 -42
- package/dist/specs/resources/aip-54/draft/WS-REF.schema.json +2 -1
- package/dist/specs/resources/aip-6/draft/COMPANY.schema.json +67 -105
- package/dist/specs/resources/{pending/memory → aip-72}/draft/MEMORY.schema.json +115 -62
- package/dist/specs/resources/aip-9/draft/OPERATOR.schema.json +229 -138
- package/package.json +3 -3
- package/dist/specs/resources/pending/harness/HARNESS.schema.json +0 -254
- package/dist/specs/resources/pending/services/SERVICES.schema.json +0 -55
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://agentproto.sh/schemas/pending/harness/HARNESS.schema.json",
|
|
4
|
-
"title": "HarnessDefinition",
|
|
5
|
-
"description": "Validates the YAML frontmatter of a .harness/<slug>.md file. A Harness is a stateful conversational shell with modes, threads, tool-approval gates, subagents, and observational memory. Today the canonical runtime is Mastra's Harness class (@mastra/core/harness); the spec is implementation-agnostic.",
|
|
6
|
-
"$comment": "Relationship to other AIPs: a Harness HAS agents (via modes[].agent and HarnessConfig.agent) but IS NOT a subtype of AIP-42. AIP-42 agents are referenced from harness manifests via $resolver. See also AIP-12 for agent pack ingestion — packs can auto-generate .harness/ manifests from modes/*.md files.",
|
|
7
|
-
"type": "object",
|
|
8
|
-
"required": ["spec", "id", "name", "version", "storage", "modes", "models"],
|
|
9
|
-
"additionalProperties": false,
|
|
10
|
-
"properties": {
|
|
11
|
-
"spec": {
|
|
12
|
-
"const": "harness/v1",
|
|
13
|
-
"description": "Pins the spec version this manifest conforms to."
|
|
14
|
-
},
|
|
15
|
-
"id": {
|
|
16
|
-
"type": "string",
|
|
17
|
-
"minLength": 1,
|
|
18
|
-
"pattern": "^[a-z][a-z0-9-]*$",
|
|
19
|
-
"description": "Unique harness identifier (kebab-case). Used as the $id in the resolver registry."
|
|
20
|
-
},
|
|
21
|
-
"name": {
|
|
22
|
-
"type": "string",
|
|
23
|
-
"minLength": 1,
|
|
24
|
-
"maxLength": 80,
|
|
25
|
-
"description": "Human-readable harness name."
|
|
26
|
-
},
|
|
27
|
-
"description": {
|
|
28
|
-
"type": "string",
|
|
29
|
-
"description": "One-sentence description of this harness's purpose."
|
|
30
|
-
},
|
|
31
|
-
"version": {
|
|
32
|
-
"type": "string",
|
|
33
|
-
"pattern": "^\\d+\\.\\d+\\.\\d+$",
|
|
34
|
-
"description": "Manifest semver. Bump on breaking mode/subagent changes."
|
|
35
|
-
},
|
|
36
|
-
"storage": {
|
|
37
|
-
"$ref": "#/$defs/refOrString",
|
|
38
|
-
"description": "Storage backend resolver. Must resolve to a MastraCompositeStore."
|
|
39
|
-
},
|
|
40
|
-
"stateSchema": {
|
|
41
|
-
"$ref": "#/$defs/refOrString",
|
|
42
|
-
"description": "Optional JSON Schema defining the conversation state shape (validated by the Harness)."
|
|
43
|
-
},
|
|
44
|
-
"initialState": {
|
|
45
|
-
"description": "Default values for the state schema fields."
|
|
46
|
-
},
|
|
47
|
-
"modes": {
|
|
48
|
-
"type": "array",
|
|
49
|
-
"minItems": 1,
|
|
50
|
-
"items": { "$ref": "#/$defs/mode" },
|
|
51
|
-
"description": "Operational modes (e.g. plan/execute, brief/draft/review). At least one required."
|
|
52
|
-
},
|
|
53
|
-
"memory": {
|
|
54
|
-
"$ref": "#/$defs/refOrString",
|
|
55
|
-
"description": "Optional memory resolver. Observational Memory is configured via omConfig on the Harness constructor, not here."
|
|
56
|
-
},
|
|
57
|
-
"workspace": {
|
|
58
|
-
"$ref": "#/$defs/refOrString",
|
|
59
|
-
"description": "Optional workspace resolver (Mastra Workspace or WorkspaceConfig)."
|
|
60
|
-
},
|
|
61
|
-
"models": {
|
|
62
|
-
"type": "object",
|
|
63
|
-
"required": ["resolver"],
|
|
64
|
-
"properties": {
|
|
65
|
-
"resolver": {
|
|
66
|
-
"$ref": "#/$defs/refOrString",
|
|
67
|
-
"description": "Resolver for (modelId: string) => LanguageModel. Used as Harness.resolveModel."
|
|
68
|
-
},
|
|
69
|
-
"access": {
|
|
70
|
-
"$ref": "#/$defs/refOrString",
|
|
71
|
-
"description": "Optional model access checker resolver (ModelAuthChecker)."
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
"additionalProperties": false
|
|
75
|
-
},
|
|
76
|
-
"subagents": {
|
|
77
|
-
"type": "array",
|
|
78
|
-
"default": [],
|
|
79
|
-
"items": { "$ref": "#/$defs/subagent" },
|
|
80
|
-
"description": "Child agents that can be spawned by the builtin subagent tool."
|
|
81
|
-
},
|
|
82
|
-
"extensions": {
|
|
83
|
-
"type": "object",
|
|
84
|
-
"properties": {
|
|
85
|
-
"consumes": {
|
|
86
|
-
"type": "array",
|
|
87
|
-
"items": { "type": "string" },
|
|
88
|
-
"default": [],
|
|
89
|
-
"description": "Extension slugs this harness consumes from the host (e.g. 'workspace:files')."
|
|
90
|
-
},
|
|
91
|
-
"exposes": {
|
|
92
|
-
"type": "array",
|
|
93
|
-
"items": { "type": "string" },
|
|
94
|
-
"default": [],
|
|
95
|
-
"description": "Extension slugs this harness makes available to subagents."
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
"additionalProperties": false
|
|
99
|
-
},
|
|
100
|
-
"heartbeats": {
|
|
101
|
-
"type": "array",
|
|
102
|
-
"items": { "$ref": "#/$defs/refOrString" },
|
|
103
|
-
"default": [],
|
|
104
|
-
"description": "Periodic background handlers (e.g. OM reflector, progress reporter)."
|
|
105
|
-
},
|
|
106
|
-
"observability": {
|
|
107
|
-
"$ref": "#/$defs/refOrString",
|
|
108
|
-
"description": "Optional observability entrypoint resolver."
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
"$defs": {
|
|
112
|
-
"refOrString": {
|
|
113
|
-
"oneOf": [
|
|
114
|
-
{
|
|
115
|
-
"type": "string",
|
|
116
|
-
"minLength": 1,
|
|
117
|
-
"description": "Inline string value."
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"type": "object",
|
|
121
|
-
"required": ["$ref"],
|
|
122
|
-
"properties": {
|
|
123
|
-
"$ref": { "type": "string", "minLength": 1 }
|
|
124
|
-
},
|
|
125
|
-
"additionalProperties": false,
|
|
126
|
-
"description": "Reference to a named value in the resolver registry."
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"type": "object",
|
|
130
|
-
"required": ["$resolver"],
|
|
131
|
-
"properties": {
|
|
132
|
-
"$resolver": { "type": "string", "minLength": 1 },
|
|
133
|
-
"input": {}
|
|
134
|
-
},
|
|
135
|
-
"additionalProperties": false,
|
|
136
|
-
"description": "Dynamic resolver invocation with optional typed input."
|
|
137
|
-
}
|
|
138
|
-
]
|
|
139
|
-
},
|
|
140
|
-
"mode": {
|
|
141
|
-
"type": "object",
|
|
142
|
-
"required": ["id", "agent", "model"],
|
|
143
|
-
"additionalProperties": true,
|
|
144
|
-
"properties": {
|
|
145
|
-
"id": {
|
|
146
|
-
"type": "string",
|
|
147
|
-
"minLength": 1,
|
|
148
|
-
"description": "Unique mode identifier within this harness (e.g. 'plan', 'execute', 'review')."
|
|
149
|
-
},
|
|
150
|
-
"name": { "type": "string", "description": "Human-readable mode label." },
|
|
151
|
-
"description": { "type": "string" },
|
|
152
|
-
"default": {
|
|
153
|
-
"type": "boolean",
|
|
154
|
-
"description": "If true, this mode is activated on new sessions."
|
|
155
|
-
},
|
|
156
|
-
"color": {
|
|
157
|
-
"type": "string",
|
|
158
|
-
"description": "UI hint — hex or CSS color name."
|
|
159
|
-
},
|
|
160
|
-
"transitionsTo": {
|
|
161
|
-
"type": "string",
|
|
162
|
-
"description": "Mode id to switch to after submit_plan approval completes."
|
|
163
|
-
},
|
|
164
|
-
"defaultModelId": {
|
|
165
|
-
"type": "string",
|
|
166
|
-
"description": "Bootstrap model id for this mode. Falls back to the harness-level resolveModel."
|
|
167
|
-
},
|
|
168
|
-
"agent": {
|
|
169
|
-
"$ref": "#/$defs/refOrString",
|
|
170
|
-
"description": "Backing Mastra Agent. Prefer a single shared agent on HarnessConfig.agent with per-mode instructions layered on top."
|
|
171
|
-
},
|
|
172
|
-
"model": {
|
|
173
|
-
"$ref": "#/$defs/refOrString",
|
|
174
|
-
"description": "Model resolution config for this mode. Resolver must produce a { modelId, defaultModelId?, allowed? } object."
|
|
175
|
-
},
|
|
176
|
-
"tools": {
|
|
177
|
-
"$ref": "#/$defs/refOrString",
|
|
178
|
-
"description": "Tools for this mode. Mutually exclusive with additionalTools — setting this REPLACES agent tools."
|
|
179
|
-
},
|
|
180
|
-
"prompt": {
|
|
181
|
-
"type": "object",
|
|
182
|
-
"properties": {
|
|
183
|
-
"blocks": {
|
|
184
|
-
"type": "array",
|
|
185
|
-
"items": { "$ref": "#/$defs/refOrString" },
|
|
186
|
-
"default": [],
|
|
187
|
-
"description": "Ordered instruction blocks. Resolved to strings and concatenated for the mode's instructions field."
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
"builtins": {
|
|
192
|
-
"type": "object",
|
|
193
|
-
"additionalProperties": true,
|
|
194
|
-
"properties": {
|
|
195
|
-
"ask_user": { "type": "boolean", "default": true },
|
|
196
|
-
"submit_plan": {
|
|
197
|
-
"oneOf": [{ "type": "boolean" }, { "const": "required" }],
|
|
198
|
-
"default": false
|
|
199
|
-
},
|
|
200
|
-
"task_write": { "type": "boolean", "default": true },
|
|
201
|
-
"task_check": { "type": "boolean", "default": true },
|
|
202
|
-
"subagent": { "type": "boolean", "default": false }
|
|
203
|
-
}
|
|
204
|
-
},
|
|
205
|
-
"permissions": {
|
|
206
|
-
"$ref": "#/$defs/refOrString",
|
|
207
|
-
"description": "Default permission rules for this mode (PermissionRules from @mastra/core/harness)."
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
"subagent": {
|
|
212
|
-
"type": "object",
|
|
213
|
-
"required": ["id", "name", "description", "agent"],
|
|
214
|
-
"additionalProperties": true,
|
|
215
|
-
"properties": {
|
|
216
|
-
"id": { "type": "string", "minLength": 1 },
|
|
217
|
-
"name": { "type": "string" },
|
|
218
|
-
"description": { "type": "string" },
|
|
219
|
-
"agent": {
|
|
220
|
-
"$ref": "#/$defs/refOrString",
|
|
221
|
-
"description": "Backing agent resolver. The bridge instantiateHarness() derives instructions from prompt.blocks."
|
|
222
|
-
},
|
|
223
|
-
"model": { "$ref": "#/$defs/refOrString" },
|
|
224
|
-
"tools": { "$ref": "#/$defs/refOrString" },
|
|
225
|
-
"forked": {
|
|
226
|
-
"type": "boolean",
|
|
227
|
-
"default": false,
|
|
228
|
-
"description": "If true, inherits parent thread + prompt cache (cheaper). If false, gets a fresh isolated thread."
|
|
229
|
-
},
|
|
230
|
-
"maxSteps": { "type": "integer", "minimum": 1 },
|
|
231
|
-
"allowedHarnessTools": {
|
|
232
|
-
"type": "array",
|
|
233
|
-
"items": { "type": "string" },
|
|
234
|
-
"description": "Subset of parent harness builtin tools available to this subagent."
|
|
235
|
-
},
|
|
236
|
-
"allowedWorkspaceTools": {
|
|
237
|
-
"type": "array",
|
|
238
|
-
"items": { "type": "string" },
|
|
239
|
-
"description": "Subset of workspace tools available to this subagent."
|
|
240
|
-
},
|
|
241
|
-
"prompt": {
|
|
242
|
-
"type": "object",
|
|
243
|
-
"properties": {
|
|
244
|
-
"blocks": {
|
|
245
|
-
"type": "array",
|
|
246
|
-
"items": { "$ref": "#/$defs/refOrString" },
|
|
247
|
-
"description": "Instruction blocks. Flattened to a string and passed as HarnessSubagent.instructions (required by Mastra API)."
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://agentproto.sh/schemas/pending/services/SERVICES.schema.json",
|
|
4
|
-
"title": "AppService list — app/v1 APP.md `services`",
|
|
5
|
-
"description": "Validates the `services` frontmatter array of an AIP-53 APP.md — the app's production hosting surface. One entry = one supervised service process the host runs for the app; there is NO dependency graph, NO scaling and NO scheduler behind it. Names MUST be unique across the array (the loader rejects a duplicate `name` as a load error; JSON Schema 2020-12 cannot express per-key uniqueness, hence the additional `uniqueItems` guard against exact duplicates). This is NOT `dev.launch`: `dev.launch` stays dev-only and is never executed by the loader.",
|
|
6
|
-
"type": "array",
|
|
7
|
-
"minItems": 1,
|
|
8
|
-
"uniqueItems": true,
|
|
9
|
-
"items": { "$ref": "#/$defs/service" },
|
|
10
|
-
"$defs": {
|
|
11
|
-
"service": {
|
|
12
|
-
"type": "object",
|
|
13
|
-
"required": ["name"],
|
|
14
|
-
"additionalProperties": false,
|
|
15
|
-
"oneOf": [
|
|
16
|
-
{ "required": ["entry"], "not": { "anyOf": [{ "required": ["command"] }, { "required": ["args"] }] } },
|
|
17
|
-
{ "required": ["command"], "not": { "required": ["entry"] } }
|
|
18
|
-
],
|
|
19
|
-
"properties": {
|
|
20
|
-
"name": {
|
|
21
|
-
"type": "string",
|
|
22
|
-
"pattern": "^[a-z][a-z0-9-]*$",
|
|
23
|
-
"description": "Service identifier — kebab-case slug, unique across the `services` array."
|
|
24
|
-
},
|
|
25
|
-
"entry": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"minLength": 1,
|
|
28
|
-
"description": "Legacy shell command line that starts the service, e.g. `pnpm --filter x start` or `node dist/server.js`. Carried verbatim; a launcher command, never executed by the loader/`defineApp`. Exactly one of entry/command."
|
|
29
|
-
},
|
|
30
|
-
"command": {
|
|
31
|
-
"type": "string",
|
|
32
|
-
"minLength": 1,
|
|
33
|
-
"description": "Structured (preferred) command form: the binary/script to run, never shell-interpreted — the runner passes it as argv[0]. Exactly one of entry/command."
|
|
34
|
-
},
|
|
35
|
-
"args": {
|
|
36
|
-
"type": "array",
|
|
37
|
-
"minItems": 1,
|
|
38
|
-
"items": { "type": "string" },
|
|
39
|
-
"description": "Structured command form: argv after `command`, passed verbatim. Requires `command`."
|
|
40
|
-
},
|
|
41
|
-
"cwd": {
|
|
42
|
-
"type": "string",
|
|
43
|
-
"minLength": 1,
|
|
44
|
-
"description": "Working directory the runner starts the service in; relative paths resolve against the app's installed dir."
|
|
45
|
-
},
|
|
46
|
-
"port": {
|
|
47
|
-
"type": "integer",
|
|
48
|
-
"minimum": 1,
|
|
49
|
-
"maximum": 65535,
|
|
50
|
-
"description": "Optional TCP port the service listens on. Omitted = a service that does not listen (no port). One process per entry, one port."
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|