@agentproto/corpus-cli 0.1.0-alpha.1 → 0.1.0-alpha.2

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 (48) hide show
  1. package/dist/cli.mjs +26 -8
  2. package/dist/cli.mjs.map +1 -1
  3. package/dist/index.d.ts +1 -5
  4. package/dist/index.mjs +15 -4
  5. package/dist/index.mjs.map +1 -1
  6. package/dist/specs/resources/aip-10/draft/KNOWLEDGE.schema.json +457 -0
  7. package/dist/specs/resources/aip-11/draft/LESSON.schema.json +149 -0
  8. package/dist/specs/resources/aip-12/draft/PLAYBOOK.schema.json +349 -0
  9. package/dist/specs/resources/aip-13/draft/WORK_ITEM.schema.json +547 -0
  10. package/dist/specs/resources/aip-14/draft/TOOL.schema.json +169 -0
  11. package/dist/specs/resources/aip-15/draft/WORKFLOW.schema.json +356 -0
  12. package/dist/specs/resources/aip-16/draft/IO.schema.json +64 -0
  13. package/dist/specs/resources/aip-17/draft/RUNNER.schema.json +81 -0
  14. package/dist/specs/resources/aip-18/draft/COLLECTION.schema.json +436 -0
  15. package/dist/specs/resources/aip-19/draft/SECRETS.schema.json +261 -0
  16. package/dist/specs/resources/aip-20/draft/WORK.schema.json +371 -0
  17. package/dist/specs/resources/aip-21/draft/AGENCY.schema.json +454 -0
  18. package/dist/specs/resources/aip-22/draft/OFFICE.schema.json +390 -0
  19. package/dist/specs/resources/aip-23/draft/IDENTITY.schema.json +358 -0
  20. package/dist/specs/resources/aip-24/draft/ASSEMBLY.schema.json +411 -0
  21. package/dist/specs/resources/aip-25/draft/PERSONA.schema.json +257 -0
  22. package/dist/specs/resources/aip-26/draft/CODE.schema.json +172 -0
  23. package/dist/specs/resources/aip-28/draft/INTENT.schema.json +215 -0
  24. package/dist/specs/resources/aip-29/draft/CLI.schema.json +339 -0
  25. package/dist/specs/resources/aip-3/draft/SKILL.schema.json +206 -0
  26. package/dist/specs/resources/aip-30/draft/DRIVER.schema.json +237 -0
  27. package/dist/specs/resources/aip-31/draft/HTTP.schema.json +80 -0
  28. package/dist/specs/resources/aip-32/draft/MCP.schema.json +88 -0
  29. package/dist/specs/resources/aip-33/draft/SDK.schema.json +60 -0
  30. package/dist/specs/resources/aip-34/draft/WORKSPACE.schema.json +252 -0
  31. package/dist/specs/resources/aip-35/draft/STORAGE.schema.json +237 -0
  32. package/dist/specs/resources/aip-36/draft/SANDBOX.schema.json +246 -0
  33. package/dist/specs/resources/aip-38/draft/POLICY.schema.json +217 -0
  34. package/dist/specs/resources/aip-39/draft/ACTION.schema.json +134 -0
  35. package/dist/specs/resources/aip-4/draft/DESIGN.schema.json +189 -0
  36. package/dist/specs/resources/aip-40/draft/EXTENSION.schema.json +116 -0
  37. package/dist/specs/resources/aip-41/draft/ROUTINE.schema.json +345 -0
  38. package/dist/specs/resources/aip-42/draft/AGENT.schema.json +268 -0
  39. package/dist/specs/resources/aip-44/draft/ACP.schema.json +170 -0
  40. package/dist/specs/resources/aip-45/draft/AGENT-CLI.schema.json +371 -0
  41. package/dist/specs/resources/aip-47/draft/ROLE.schema.json +199 -0
  42. package/dist/specs/resources/aip-48/draft/MultiAgentRuntime.schema.json +108 -0
  43. package/dist/specs/resources/aip-5/draft/TEMPLATE.schema.json +231 -0
  44. package/dist/specs/resources/aip-6/draft/COMPANY.schema.json +268 -0
  45. package/dist/specs/resources/aip-7/draft/GOVERNANCE.schema.json +581 -0
  46. package/dist/specs/resources/aip-8/draft/AGENCY.schema.json +518 -0
  47. package/dist/specs/resources/aip-9/draft/OPERATOR.schema.json +297 -0
  48. package/package.json +4 -4
@@ -0,0 +1,268 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agentproto.sh/schemas/aip-42/AGENT.schema.json",
4
+ "title": "AGENT.md frontmatter — agentagent/v1 (base runnable agent primitive)",
5
+ "description": "Validates the YAML frontmatter portion of an AIP-42 AGENT.md manifest. Composes identity, persona, model, tools, actions, skills, workflows, runner, memory, governance, policy, routines into a single runnable definition.",
6
+ "type": "object",
7
+ "required": ["schema", "id", "description", "model"],
8
+ "additionalProperties": false,
9
+ "properties": {
10
+ "schema": {
11
+ "const": "agent/v1"
12
+ },
13
+ "id": {
14
+ "type": "string",
15
+ "minLength": 2,
16
+ "maxLength": 80,
17
+ "pattern": "^[a-z0-9@][a-z0-9.@/_-]*$",
18
+ "description": "Machine identifier. Optional @<owner>/ prefix. Unique within the registry that hosts the agent."
19
+ },
20
+ "description": {
21
+ "type": "string",
22
+ "minLength": 1,
23
+ "maxLength": 2000,
24
+ "description": "One-paragraph purpose."
25
+ },
26
+ "version": {
27
+ "type": "string",
28
+ "pattern": "^\\d+\\.\\d+\\.\\d+(?:[-+][\\w.\\-]+)?$",
29
+ "default": "1.0.0",
30
+ "description": "Spec version of THIS file."
31
+ },
32
+ "extends": {
33
+ "$ref": "#/$defs/agentRef",
34
+ "description": "Parent AGENT this extends. Inherits all fields; child overrides win."
35
+ },
36
+ "model": {
37
+ "$ref": "#/$defs/modelRef",
38
+ "description": "The brain — provider/model id string or structured ref."
39
+ },
40
+ "identity": {
41
+ "$ref": "#/$defs/identityRef",
42
+ "description": "AIP-23 identity ref. Defaults to host policy."
43
+ },
44
+ "persona": {
45
+ "$ref": "#/$defs/anyRef",
46
+ "description": "AIP-25 persona ref."
47
+ },
48
+ "runner": {
49
+ "$ref": "#/$defs/anyRef",
50
+ "description": "AIP-17 runtime engine ref."
51
+ },
52
+ "tools": {
53
+ "type": "array",
54
+ "items": { "$ref": "#/$defs/toolRef" },
55
+ "default": [],
56
+ "description": "AIP-14 tool refs."
57
+ },
58
+ "actions": {
59
+ "type": "object",
60
+ "additionalProperties": false,
61
+ "properties": {
62
+ "granted": {
63
+ "type": "array",
64
+ "items": { "$ref": "#/$defs/actionRef" },
65
+ "default": []
66
+ }
67
+ },
68
+ "description": "Explicit action allow-list. POLICY checks union of this + tools' implements."
69
+ },
70
+ "skills": {
71
+ "type": "array",
72
+ "items": { "$ref": "#/$defs/anyRef" },
73
+ "default": [],
74
+ "description": "AIP-3 skill refs."
75
+ },
76
+ "workflows": {
77
+ "type": "array",
78
+ "items": { "$ref": "#/$defs/anyRef" },
79
+ "default": [],
80
+ "description": "AIP-15 workflow refs."
81
+ },
82
+ "routines": {
83
+ "type": "array",
84
+ "items": { "$ref": "#/$defs/anyRef" },
85
+ "default": [],
86
+ "description": "AIP-41 routine refs that auto-fire this agent."
87
+ },
88
+ "delegates_to": {
89
+ "type": "array",
90
+ "items": { "$ref": "#/$defs/agentRef" },
91
+ "default": [],
92
+ "description": "Sub-agents this agent may dispatch to (council pattern, AIP-24)."
93
+ },
94
+ "memory": {
95
+ "$ref": "#/$defs/memoryConfig",
96
+ "description": "Memory configuration."
97
+ },
98
+ "governance": {
99
+ "$ref": "#/$defs/anyRef",
100
+ "description": "AIP-7 governance binding."
101
+ },
102
+ "policy": {
103
+ "$ref": "#/$defs/anyRef",
104
+ "description": "AIP-38 POLICY binding."
105
+ },
106
+ "traits": {
107
+ "type": "object",
108
+ "additionalProperties": {
109
+ "type": "number",
110
+ "minimum": 0,
111
+ "maximum": 10
112
+ },
113
+ "default": {},
114
+ "description": "Free-form numeric trait scores (0-10)."
115
+ },
116
+ "autonomy": {
117
+ "type": "integer",
118
+ "minimum": 0,
119
+ "maximum": 10,
120
+ "default": 5,
121
+ "description": "How much the agent acts vs asks. 0 = always asks, 10 = full autonomy."
122
+ },
123
+ "boundaries": {
124
+ "type": "array",
125
+ "items": { "type": "string", "minLength": 1 },
126
+ "default": [],
127
+ "description": "Hard rules the agent MUST decline / escalate. Surfaced into system prompt."
128
+ },
129
+ "on": {
130
+ "type": "object",
131
+ "additionalProperties": {
132
+ "oneOf": [
133
+ { "$ref": "#/$defs/actionRef" },
134
+ {
135
+ "type": "array",
136
+ "items": { "$ref": "#/$defs/actionRef" }
137
+ }
138
+ ]
139
+ },
140
+ "default": {},
141
+ "description": "Lifecycle hooks. AIP-37 event name -> action-ref(s) to invoke."
142
+ },
143
+ "publish": {
144
+ "type": "object",
145
+ "additionalProperties": false,
146
+ "properties": {
147
+ "visibility": {
148
+ "enum": ["private", "unlisted", "public"],
149
+ "default": "private"
150
+ },
151
+ "registry": {
152
+ "type": "string"
153
+ }
154
+ },
155
+ "default": { "visibility": "private" }
156
+ },
157
+ "tags": {
158
+ "type": "array",
159
+ "items": { "type": "string" },
160
+ "default": []
161
+ },
162
+ "metadata": {
163
+ "type": "object",
164
+ "additionalProperties": true
165
+ }
166
+ },
167
+ "$defs": {
168
+ "anyRef": {
169
+ "oneOf": [
170
+ { "type": "string", "minLength": 1 },
171
+ {
172
+ "type": "object",
173
+ "additionalProperties": false,
174
+ "properties": {
175
+ "ref": { "type": "string", "minLength": 1 },
176
+ "file": { "type": "string", "minLength": 1 },
177
+ "inline": { "type": "object", "additionalProperties": true }
178
+ }
179
+ }
180
+ ],
181
+ "description": "AIP-27 ref primitive — string shorthand or { ref | file | inline }."
182
+ },
183
+ "agentRef": {
184
+ "$ref": "#/$defs/anyRef"
185
+ },
186
+ "toolRef": {
187
+ "$ref": "#/$defs/anyRef"
188
+ },
189
+ "actionRef": {
190
+ "oneOf": [
191
+ { "type": "string", "minLength": 1 },
192
+ {
193
+ "type": "object",
194
+ "additionalProperties": true,
195
+ "properties": {
196
+ "action": { "type": "string", "minLength": 1 },
197
+ "ref": { "type": "string", "minLength": 1 },
198
+ "inputs": { "type": "object", "additionalProperties": true }
199
+ }
200
+ }
201
+ ]
202
+ },
203
+ "identityRef": {
204
+ "oneOf": [
205
+ { "type": "string", "minLength": 1 },
206
+ {
207
+ "type": "object",
208
+ "additionalProperties": true,
209
+ "properties": {
210
+ "ref": { "type": "string", "minLength": 1 },
211
+ "file": { "type": "string", "minLength": 1 },
212
+ "inline": {
213
+ "type": "object",
214
+ "properties": {
215
+ "name": { "type": "string" },
216
+ "email": { "type": "string" }
217
+ }
218
+ }
219
+ }
220
+ }
221
+ ]
222
+ },
223
+ "modelRef": {
224
+ "oneOf": [
225
+ {
226
+ "type": "string",
227
+ "minLength": 1,
228
+ "description": "Provider/model id shorthand (e.g. anthropic/claude-opus-4-7)."
229
+ },
230
+ {
231
+ "type": "object",
232
+ "additionalProperties": true,
233
+ "properties": {
234
+ "ref": { "type": "string", "minLength": 1 },
235
+ "inline": { "type": "object", "additionalProperties": true },
236
+ "temperature": { "type": "number", "minimum": 0, "maximum": 2 },
237
+ "max_tokens": { "type": "integer", "minimum": 1 },
238
+ "top_p": { "type": "number", "minimum": 0, "maximum": 1 }
239
+ }
240
+ }
241
+ ]
242
+ },
243
+ "memoryConfig": {
244
+ "type": "object",
245
+ "additionalProperties": false,
246
+ "properties": {
247
+ "scope": {
248
+ "enum": ["per-conversation", "per-thread", "per-workspace", "none"],
249
+ "default": "per-conversation"
250
+ },
251
+ "retention_turns": {
252
+ "type": "integer",
253
+ "minimum": 0,
254
+ "default": 50
255
+ },
256
+ "semantic": {
257
+ "type": "object",
258
+ "additionalProperties": false,
259
+ "properties": {
260
+ "enabled": { "type": "boolean", "default": false },
261
+ "embedder": { "$ref": "#/$defs/modelRef" },
262
+ "top_k": { "type": "integer", "minimum": 1, "default": 5 }
263
+ }
264
+ }
265
+ }
266
+ }
267
+ }
268
+ }
@@ -0,0 +1,170 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agentproto.sh/docs/aip-44/ACP.schema.json",
4
+ "title": "ACP.md frontmatter — agentacp/v1",
5
+ "description": "JSON Schema for the YAML frontmatter of an AIP-44 ACP.md manifest. AIP-44 is a profile of the upstream Agent Client Protocol at agentclientprotocol.com — top-level fields describe a runtime's role/transport/conformance, and AIP-44-specific bindings live under metadata.aip44.* so upstream ACP runtimes preserve them verbatim.",
6
+ "type": "object",
7
+ "additionalProperties": true,
8
+ "required": ["name", "id", "description", "version", "kind", "transport", "metadata"],
9
+ "properties": {
10
+ "name": {
11
+ "type": "string",
12
+ "minLength": 1,
13
+ "maxLength": 80,
14
+ "description": "Kebab id, MUST equal the parent directory name."
15
+ },
16
+ "id": {
17
+ "type": "string",
18
+ "pattern": "^[a-z0-9][a-z0-9\\-]{1,63}$",
19
+ "description": "Stable runtime id used for cross-references."
20
+ },
21
+ "description": {
22
+ "type": "string",
23
+ "minLength": 1,
24
+ "maxLength": 2000,
25
+ "description": "One-paragraph purpose."
26
+ },
27
+ "version": {
28
+ "type": "string",
29
+ "pattern": "^\\d+\\.\\d+\\.\\d+(?:[-+][\\w.\\-]+)?$",
30
+ "description": "Semver of this manifest (independent from upstream ACP version)."
31
+ },
32
+ "kind": {
33
+ "enum": ["client", "server", "bridge"],
34
+ "description": "client = drives a subprocess agent; server = exposes an operator; bridge = both."
35
+ },
36
+ "transport": {
37
+ "oneOf": [
38
+ { "$ref": "#/$defs/transport" },
39
+ { "type": "array", "items": { "$ref": "#/$defs/transport" }, "minItems": 1, "uniqueItems": true }
40
+ ],
41
+ "description": "stdio (REQUIRED), websocket (OPTIONAL but RECOMMENDED for remote use)."
42
+ },
43
+ "metadata": {
44
+ "type": "object",
45
+ "additionalProperties": true,
46
+ "required": ["aip44"],
47
+ "properties": {
48
+ "aip44": { "$ref": "#/$defs/aip44Extensions" }
49
+ }
50
+ },
51
+ "tags": {
52
+ "type": "array",
53
+ "items": { "type": "string", "pattern": "^[a-z0-9][a-z0-9\\-]{0,63}$" },
54
+ "uniqueItems": true
55
+ }
56
+ },
57
+ "$defs": {
58
+ "transport": {
59
+ "enum": ["stdio", "websocket"]
60
+ },
61
+ "aip44Extensions": {
62
+ "type": "object",
63
+ "additionalProperties": true,
64
+ "required": ["acp_rev", "tier"],
65
+ "description": "AIP-44-specific bindings. Upstream ACP runtimes preserve unknown metadata.* keys verbatim, so these survive end-to-end.",
66
+ "properties": {
67
+ "acp_rev": {
68
+ "type": "string",
69
+ "pattern": "^[a-f0-9]{7,40}$",
70
+ "description": "Commit SHA of the agentclientprotocol/agent-client-protocol repository this manifest validates against."
71
+ },
72
+ "tier": {
73
+ "enum": ["basic", "governance-aware", "sandboxed"],
74
+ "description": "Capability tier shorthand. basic = session/{new,prompt,update} only; governance-aware = + loadSession + tool-call streaming; sandboxed = + mcpCapabilities + sandbox profile."
75
+ },
76
+ "capabilities": {
77
+ "$ref": "#/$defs/capabilities",
78
+ "description": "Optional explicit capability map. When present, overrides tier defaults."
79
+ },
80
+ "operator": {
81
+ "type": "string",
82
+ "description": "Workspace-relative ref to the AIP-9 OPERATOR.md this server exposes. REQUIRED when kind=server."
83
+ },
84
+ "governance": {
85
+ "type": "string",
86
+ "description": "Optional ref to AIP-7 GOVERNANCE.md. Defaults to the operator's governance binding."
87
+ },
88
+ "sandbox": {
89
+ "type": "string",
90
+ "description": "Ref to AIP-36 SANDBOX.md. REQUIRED when tier=sandboxed."
91
+ },
92
+ "audit": {
93
+ "type": "object",
94
+ "additionalProperties": false,
95
+ "description": "Optional audit log target override. Defaults to the governance binding's log.",
96
+ "properties": {
97
+ "ref": { "type": "string" },
98
+ "kind": { "enum": ["governance", "external", "off"] }
99
+ }
100
+ },
101
+ "mcp_servers": {
102
+ "type": "array",
103
+ "description": "Optional list of MCP server refs the runtime mounts via session/new.mcpServers.",
104
+ "items": {
105
+ "type": "object",
106
+ "additionalProperties": false,
107
+ "required": ["name", "transport"],
108
+ "properties": {
109
+ "name": { "type": "string" },
110
+ "transport": { "enum": ["stdio", "http", "sse"] },
111
+ "ref": { "type": "string" }
112
+ }
113
+ }
114
+ }
115
+ },
116
+ "allOf": [
117
+ {
118
+ "if": { "properties": { "tier": { "const": "sandboxed" } }, "required": ["tier"] },
119
+ "then": { "required": ["sandbox"] }
120
+ }
121
+ ]
122
+ },
123
+ "capabilities": {
124
+ "type": "object",
125
+ "additionalProperties": false,
126
+ "description": "Mirror of upstream ACP initialize capabilities. Omitted keys MUST be treated as unsupported.",
127
+ "properties": {
128
+ "client": {
129
+ "type": "object",
130
+ "additionalProperties": false,
131
+ "properties": {
132
+ "fs": {
133
+ "type": "object",
134
+ "additionalProperties": false,
135
+ "properties": {
136
+ "readTextFile": { "type": "boolean" },
137
+ "writeTextFile": { "type": "boolean" }
138
+ }
139
+ },
140
+ "terminal": { "type": "boolean" }
141
+ }
142
+ },
143
+ "agent": {
144
+ "type": "object",
145
+ "additionalProperties": false,
146
+ "properties": {
147
+ "loadSession": { "type": "boolean" },
148
+ "promptCapabilities": {
149
+ "type": "object",
150
+ "additionalProperties": false,
151
+ "properties": {
152
+ "image": { "type": "boolean" },
153
+ "audio": { "type": "boolean" },
154
+ "embeddedContext": { "type": "boolean" }
155
+ }
156
+ },
157
+ "mcpCapabilities": {
158
+ "type": "object",
159
+ "additionalProperties": false,
160
+ "properties": {
161
+ "http": { "type": "boolean" },
162
+ "sse": { "type": "boolean" }
163
+ }
164
+ }
165
+ }
166
+ }
167
+ }
168
+ }
169
+ }
170
+ }