@agentproto/corpus-cli 0.10.1 → 0.11.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.
- package/dist/cli.mjs +164 -93
- package/dist/cli.mjs.map +1 -1
- package/dist/ports/index.d.ts +37 -1
- package/dist/ports/index.mjs +141 -74
- package/dist/ports/index.mjs.map +1 -1
- package/dist/specs/resources/aip-14/draft/TOOL.schema.json +1 -1
- package/dist/specs/resources/aip-15/draft/WORKFLOW.schema.json +47 -52
- package/dist/specs/resources/aip-18/draft/COLLECTION.schema.json +128 -7
- package/dist/specs/resources/aip-36/draft/SANDBOX.schema.json +13 -0
- package/dist/specs/resources/aip-41/draft/ROUTINE.schema.json +21 -2
- package/dist/specs/resources/aip-42/draft/AGENT.schema.json +1 -1
- package/dist/specs/resources/aip-47/draft/ROLE.schema.json +1 -1
- package/dist/specs/resources/aip-49/draft/ASSET.schema.json +232 -0
- package/dist/specs/resources/aip-50/draft/AUTH.schema.json +114 -0
- package/dist/specs/resources/aip-53/draft/APP.schema.json +273 -0
- package/dist/specs/resources/aip-54/draft/REF.schema.json +1 -1
- package/dist/specs/resources/aip-54/draft/WS-REF.schema.json +46 -0
- package/dist/specs/resources/aip-55/draft/PRODUCT.schema.json +172 -38
- package/dist/specs/resources/aip-58/draft/vectors/v8-heuristic-not-suspend.json +1 -1
- package/dist/specs/resources/aip-62/draft/ATTESTATION.schema.json +197 -0
- package/dist/specs/resources/aip-62/draft/REVIEW-PACK.schema.json +70 -0
- package/dist/specs/resources/aip-62/draft/REVIEW.schema.json +192 -0
- package/dist/specs/resources/aip-63/draft/BROWSER.schema.json +423 -0
- package/dist/specs/resources/aip-7/draft/GOVERNANCE.schema.json +147 -1
- package/dist/specs/resources/{aip-52/draft → pending/harness}/HARNESS.schema.json +1 -1
- package/package.json +3 -3
- package/dist/specs/resources/aip-52/draft/ADAPTER.md +0 -193
- package/dist/specs/resources/aip-54/draft/REF.md +0 -89
- package/dist/specs/resources/aip-55/draft/PRODUCT.md +0 -143
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agentproto.sh/schemas/aip-49/ASSET.schema.json",
|
|
4
|
+
"title": "Asset declaration — agentwallet/v1 (ERC-20-style)",
|
|
5
|
+
"description": "Validates an AIP-49 asset declaration: the registry-keyed (ref) unit of value a wallet holds. Borrows ERC-20 metadata (symbol/decimals) and ERC-1400/1410 partitioning (via the ruleSet + partitions). `standard` discriminates the settlement/valuation adapter; it is NOT a user-facing taxonomy.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["ref", "name", "symbol", "decimals", "standard", "ruleSet"],
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"ref": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"pattern": "^[A-Z0-9][A-Z0-9_]{1,79}$",
|
|
13
|
+
"description": "Unique, human-readable key. Convention `<ORIGIN>_<SYMBOL>` (GUILDE_CREDITS, ERC20_USDT, SPL_USDC) or a bare ISO-4217 code (USD, EUR)."
|
|
14
|
+
},
|
|
15
|
+
"name": { "type": "string", "minLength": 1, "description": "Display name, e.g. \"Guilde Credits\"." },
|
|
16
|
+
"symbol": { "type": "string", "minLength": 1, "description": "Short ticker, e.g. GCR." },
|
|
17
|
+
"decimals": {
|
|
18
|
+
"type": "integer",
|
|
19
|
+
"minimum": 0,
|
|
20
|
+
"maximum": 18,
|
|
21
|
+
"description": "Smallest-unit precision. 2 = centi (credits), 6 = USDC, 18 = most ERC-20. Amounts everywhere are minor units of the asset."
|
|
22
|
+
},
|
|
23
|
+
"standard": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"enum": ["internal", "iso4217", "erc20", "spl"],
|
|
26
|
+
"description": "Discriminator routing to a settlement/valuation adapter. Not a taxonomy."
|
|
27
|
+
},
|
|
28
|
+
"chain": { "type": "string", "minLength": 1, "description": "Chain id for on-chain standards (erc20/spl), e.g. ethereum, solana." },
|
|
29
|
+
"peg": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"additionalProperties": false,
|
|
32
|
+
"required": ["vs", "source"],
|
|
33
|
+
"description": "How this asset is valued against a reference asset; resolved by RatePort.",
|
|
34
|
+
"properties": {
|
|
35
|
+
"vs": { "type": "string", "minLength": 1, "description": "Reference asset ref (usually USD)." },
|
|
36
|
+
"source": { "type": "string", "minLength": 1, "description": "Rate source key — `fixed:<ratio>` or an oracle id." }
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"ruleSet": { "$ref": "#/$defs/ruleSet" },
|
|
40
|
+
"partitions": {
|
|
41
|
+
"type": "array",
|
|
42
|
+
"items": { "$ref": "#/$defs/partitionSpec" },
|
|
43
|
+
"description": "The asset's tranches + lifecycle policies — the partition catalog, co-located on the asset."
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"$defs": {
|
|
47
|
+
"restriction": {
|
|
48
|
+
"type": "array",
|
|
49
|
+
"items": { "type": "string", "minLength": 1 },
|
|
50
|
+
"description": "Canonical (sorted, deduped) set of restriction tags. Accumulates at the lattice meet on convert."
|
|
51
|
+
},
|
|
52
|
+
"convertEdge": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"additionalProperties": false,
|
|
55
|
+
"required": ["to", "rate"],
|
|
56
|
+
"description": "A legal conversion to another asset — the only inter-asset edge. Subject to the no-arbitrage law.",
|
|
57
|
+
"properties": {
|
|
58
|
+
"to": { "type": "string", "minLength": 1, "description": "Destination asset ref (MUST differ from the declaring asset)." },
|
|
59
|
+
"rate": {
|
|
60
|
+
"oneOf": [
|
|
61
|
+
{
|
|
62
|
+
"type": "object",
|
|
63
|
+
"additionalProperties": false,
|
|
64
|
+
"required": ["kind", "ratio"],
|
|
65
|
+
"properties": {
|
|
66
|
+
"kind": { "const": "fixed" },
|
|
67
|
+
"ratio": { "type": "number", "exclusiveMinimum": 0, "description": "Destination-major per source-major units." }
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"type": "object",
|
|
72
|
+
"additionalProperties": false,
|
|
73
|
+
"required": ["kind", "source"],
|
|
74
|
+
"properties": {
|
|
75
|
+
"kind": { "const": "oracle" },
|
|
76
|
+
"source": { "type": "string", "minLength": 1, "description": "RatePort source id resolving the rate at convert time." }
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
"addsRestriction": { "$ref": "#/$defs/restriction", "description": "Restriction added to the output (accumulated at the meet)." },
|
|
82
|
+
"cap": {
|
|
83
|
+
"type": "object",
|
|
84
|
+
"additionalProperties": false,
|
|
85
|
+
"required": ["amount", "windowSec"],
|
|
86
|
+
"description": "Throughput cap (anti-inflation; load-bearing for runtime/guild-minted assets).",
|
|
87
|
+
"properties": {
|
|
88
|
+
"amount": { "type": "number", "minimum": 0 },
|
|
89
|
+
"windowSec": { "type": "number", "exclusiveMinimum": 0 }
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"timeSpec": {
|
|
95
|
+
"description": "A point in time: relative to the lot's grant, or absolute (epoch ms).",
|
|
96
|
+
"oneOf": [
|
|
97
|
+
{
|
|
98
|
+
"type": "object",
|
|
99
|
+
"additionalProperties": false,
|
|
100
|
+
"required": ["kind", "ms"],
|
|
101
|
+
"properties": {
|
|
102
|
+
"kind": { "const": "afterGrant" },
|
|
103
|
+
"ms": { "type": "number", "minimum": 0, "description": "Offset from the lot's grant instant." }
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"type": "object",
|
|
108
|
+
"additionalProperties": false,
|
|
109
|
+
"required": ["kind", "at"],
|
|
110
|
+
"properties": {
|
|
111
|
+
"kind": { "const": "absolute" },
|
|
112
|
+
"at": { "type": "number", "minimum": 0, "description": "Absolute epoch-ms instant." }
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
"partitionRule": {
|
|
118
|
+
"description": "One lifecycle rule. `kind` discriminates; rules are serialisable data evaluated by `evaluatePolicy`.",
|
|
119
|
+
"oneOf": [
|
|
120
|
+
{
|
|
121
|
+
"type": "object",
|
|
122
|
+
"additionalProperties": false,
|
|
123
|
+
"required": ["kind", "categories"],
|
|
124
|
+
"properties": {
|
|
125
|
+
"kind": { "const": "spendOn" },
|
|
126
|
+
"categories": { "type": "array", "items": { "type": "string", "minLength": 1 }, "description": "Narrows payable categories (∩ with the asset's spendableOn)." }
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"type": "object",
|
|
131
|
+
"additionalProperties": false,
|
|
132
|
+
"required": ["kind", "tags"],
|
|
133
|
+
"properties": {
|
|
134
|
+
"kind": { "const": "restrict" },
|
|
135
|
+
"tags": { "$ref": "#/$defs/restriction" }
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"type": "object",
|
|
140
|
+
"additionalProperties": false,
|
|
141
|
+
"required": ["kind", "at"],
|
|
142
|
+
"properties": {
|
|
143
|
+
"kind": { "const": "expire" },
|
|
144
|
+
"at": { "$ref": "#/$defs/timeSpec", "description": "Hard cliff: spendable drops to 0 once this passes." }
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"type": "object",
|
|
149
|
+
"additionalProperties": false,
|
|
150
|
+
"required": ["kind", "curve", "ratePerDay"],
|
|
151
|
+
"properties": {
|
|
152
|
+
"kind": { "const": "decay" },
|
|
153
|
+
"curve": { "type": "string", "enum": ["linear", "exponential"] },
|
|
154
|
+
"ratePerDay": { "type": "number", "minimum": 0, "maximum": 1, "description": "Fraction lost per day. Linear hits 0 at 1/rate days; exponential is asymptotic." }
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"type": "object",
|
|
159
|
+
"additionalProperties": false,
|
|
160
|
+
"required": ["kind", "durationMs"],
|
|
161
|
+
"properties": {
|
|
162
|
+
"kind": { "const": "vest" },
|
|
163
|
+
"cliff": { "$ref": "#/$defs/timeSpec", "description": "No value unlocks before this instant." },
|
|
164
|
+
"durationMs": { "type": "number", "exclusiveMinimum": 0, "description": "Linear unlock completes this many ms after grant (or cliff)." }
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"type": "object",
|
|
169
|
+
"additionalProperties": false,
|
|
170
|
+
"required": ["kind", "scope"],
|
|
171
|
+
"properties": {
|
|
172
|
+
"kind": { "const": "transfer" },
|
|
173
|
+
"scope": { "type": "string", "enum": ["soulbound", "account", "open"] }
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
"partitionSpec": {
|
|
179
|
+
"type": "object",
|
|
180
|
+
"additionalProperties": false,
|
|
181
|
+
"required": ["id", "asset", "restriction"],
|
|
182
|
+
"description": "A tranche within an asset, identified `<asset>:<tranche>`. Carries its lifecycle policy.",
|
|
183
|
+
"properties": {
|
|
184
|
+
"id": { "type": "string", "minLength": 1, "description": "`<asset>:<tranche>`." },
|
|
185
|
+
"asset": { "type": "string", "minLength": 1, "description": "Owning asset ref (the prefix of `id`)." },
|
|
186
|
+
"restriction": { "$ref": "#/$defs/restriction" },
|
|
187
|
+
"spendableOn": { "type": "array", "items": { "type": "string" }, "description": "Legacy shorthand: narrows the asset's categories for this tranche." },
|
|
188
|
+
"defaultTtlMs": { "type": "number", "exclusiveMinimum": 0, "description": "Legacy shorthand: default lot lifetime." },
|
|
189
|
+
"policy": {
|
|
190
|
+
"type": "array",
|
|
191
|
+
"items": { "$ref": "#/$defs/partitionRule" },
|
|
192
|
+
"description": "The unified lifecycle policy (restrict/expire/decay/vest/transfer). Source of truth when present."
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"ruleSet": {
|
|
197
|
+
"type": "object",
|
|
198
|
+
"additionalProperties": false,
|
|
199
|
+
"required": ["settleOut", "spendableOn", "convertEdges", "transfer"],
|
|
200
|
+
"description": "What the asset is allowed to do.",
|
|
201
|
+
"properties": {
|
|
202
|
+
"settleOut": {
|
|
203
|
+
"description": "Whether value may LEAVE the wallet and via which network. `false` = never settles out (e.g. loyalty points).",
|
|
204
|
+
"oneOf": [
|
|
205
|
+
{ "const": false },
|
|
206
|
+
{ "type": "string", "enum": ["internal-ledger", "stripe", "pawapay", "x402", "solana"] }
|
|
207
|
+
]
|
|
208
|
+
},
|
|
209
|
+
"spendableOn": {
|
|
210
|
+
"type": "array",
|
|
211
|
+
"items": { "type": "string" },
|
|
212
|
+
"description": "Spend categories payable. `[\"*\"]` = anything; `[]` = convertible-only (loyalty)."
|
|
213
|
+
},
|
|
214
|
+
"convertEdges": {
|
|
215
|
+
"type": "array",
|
|
216
|
+
"items": { "$ref": "#/$defs/convertEdge" },
|
|
217
|
+
"description": "Legal conversions to other assets."
|
|
218
|
+
},
|
|
219
|
+
"transfer": {
|
|
220
|
+
"type": "string",
|
|
221
|
+
"enum": ["none", "internal", "external"],
|
|
222
|
+
"description": "Who may move this asset between wallets."
|
|
223
|
+
},
|
|
224
|
+
"custody": {
|
|
225
|
+
"type": "string",
|
|
226
|
+
"enum": ["custodial-mirror", "on-chain-authority"],
|
|
227
|
+
"description": "Custody model for on-chain assets. Defaults to custodial-mirror."
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agentproto.sh/schemas/aip-50/auth-provider.json",
|
|
4
|
+
"title": "AUTH.md — agentauth/v1 frontmatter",
|
|
5
|
+
"description": "AIP-50: auth-provider manifest frontmatter. Declares how a CLI tool or agent authenticates to a remote API server.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["id", "description", "apiBase", "auth"],
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"id": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"minLength": 2,
|
|
13
|
+
"maxLength": 80,
|
|
14
|
+
"pattern": "^[a-z0-9][a-z0-9._-]*$",
|
|
15
|
+
"description": "Vendor id — kebab/dot, 2–80 chars, leading alphanumeric."
|
|
16
|
+
},
|
|
17
|
+
"description": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"minLength": 1,
|
|
20
|
+
"maxLength": 2000,
|
|
21
|
+
"description": "Human/LLM-facing description of the vendor and its auth."
|
|
22
|
+
},
|
|
23
|
+
"apiBase": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"format": "uri",
|
|
26
|
+
"description": "Canonical API base URL (no trailing slash)."
|
|
27
|
+
},
|
|
28
|
+
"audience": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"minLength": 1,
|
|
31
|
+
"description": "Credential plane hint (recommended: 'tunnel', 'api', 'mcp'; free-form allowed). Clients SHOULD embed this in the credential store key. Enforcement is server-side; this is defense-in-depth only."
|
|
32
|
+
},
|
|
33
|
+
"auth": {
|
|
34
|
+
"description": "Authentication configuration.",
|
|
35
|
+
"oneOf": [
|
|
36
|
+
{
|
|
37
|
+
"description": "PAT flow — read existing token from Keychain or prompt.",
|
|
38
|
+
"type": "object",
|
|
39
|
+
"required": ["flow", "tokenStore"],
|
|
40
|
+
"additionalProperties": false,
|
|
41
|
+
"properties": {
|
|
42
|
+
"flow": { "const": "pat" },
|
|
43
|
+
"tokenStore": { "$ref": "#/$defs/tokenStoreSpec" }
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"description": "service-auth flow — auth.md claim ceremony (RFC 8628 + JWT-bearer).",
|
|
48
|
+
"type": "object",
|
|
49
|
+
"required": ["flow", "tokenStore"],
|
|
50
|
+
"additionalProperties": false,
|
|
51
|
+
"properties": {
|
|
52
|
+
"flow": { "const": "service-auth" },
|
|
53
|
+
"clientId": { "type": "string", "minLength": 1 },
|
|
54
|
+
"loginHint": { "type": "string", "minLength": 1 },
|
|
55
|
+
"tokenStore": { "$ref": "#/$defs/tokenStoreSpec" }
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"description": "device-code flow — plain RFC 8628 device authorization, yielding a durable access token.",
|
|
60
|
+
"type": "object",
|
|
61
|
+
"required": ["flow", "tokenStore"],
|
|
62
|
+
"additionalProperties": false,
|
|
63
|
+
"properties": {
|
|
64
|
+
"flow": { "const": "device-code" },
|
|
65
|
+
"clientId": { "type": "string", "minLength": 1 },
|
|
66
|
+
"scope": { "type": "string", "minLength": 1 },
|
|
67
|
+
"deviceLabel": { "type": "string", "minLength": 1 },
|
|
68
|
+
"tokenStore": { "$ref": "#/$defs/tokenStoreSpec" }
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
"install": {
|
|
74
|
+
"description": "AIP-19 provision target — pair auth with an install endpoint.",
|
|
75
|
+
"$ref": "#/$defs/installConfig"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"$defs": {
|
|
79
|
+
"tokenStoreSpec": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"required": ["keychain"],
|
|
82
|
+
"additionalProperties": false,
|
|
83
|
+
"properties": {
|
|
84
|
+
"keychain": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"minLength": 1,
|
|
87
|
+
"description": "macOS Keychain service name."
|
|
88
|
+
},
|
|
89
|
+
"account": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"minLength": 1,
|
|
92
|
+
"description": "Keychain account. '{server}' is substituted with the resolved server URL."
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"installConfig": {
|
|
97
|
+
"type": "object",
|
|
98
|
+
"required": ["sealKey", "secretBacked"],
|
|
99
|
+
"additionalProperties": false,
|
|
100
|
+
"properties": {
|
|
101
|
+
"sealKey": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"minLength": 1,
|
|
104
|
+
"description": "URL path for the seal-key endpoint."
|
|
105
|
+
},
|
|
106
|
+
"secretBacked": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"minLength": 1,
|
|
109
|
+
"description": "URL path template for the secret-backed install endpoint. May contain {guildId}."
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agentproto.sh/docs/aip-53/APP.schema.json",
|
|
4
|
+
"title": "APP.md frontmatter — app/v1 (agent app bundle + UI surface)",
|
|
5
|
+
"description": "Validates the YAML frontmatter portion of an AIP-53 APP.md manifest — the on-disk form of an AppDefinition. Codifies shipped behaviour: `agents` may be empty for a UI-only app when `ui` is present (packages/app-kit/src/define-app.ts:49-52), and `data` / `category` are carried verbatim (packages/app-kit/src/types.ts).",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["schema", "version"],
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"schema": {
|
|
11
|
+
"const": "app/v1",
|
|
12
|
+
"description": "Exactly `app/v1`. Any other value MUST be refused by the loader."
|
|
13
|
+
},
|
|
14
|
+
"id": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"description": "Machine identifier for the app itself. Optional — an anonymous bundle cannot be installed by id. Written with any `@owner/` prefix as authored."
|
|
18
|
+
},
|
|
19
|
+
"name": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"minLength": 1,
|
|
22
|
+
"description": "Human-readable app name."
|
|
23
|
+
},
|
|
24
|
+
"version": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+(?:[-+][\\w.\\-]+)?$",
|
|
27
|
+
"description": "App version. Defaulted to `0.1.0` by defineApp when `id` is set and version is omitted (conformance rule 8)."
|
|
28
|
+
},
|
|
29
|
+
"description": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "App description. Also the APP.md markdown body."
|
|
32
|
+
},
|
|
33
|
+
"agents": {
|
|
34
|
+
"type": "array",
|
|
35
|
+
"items": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"required": ["id", "path"],
|
|
38
|
+
"additionalProperties": false,
|
|
39
|
+
"properties": {
|
|
40
|
+
"id": { "type": "string", "minLength": 1 },
|
|
41
|
+
"path": { "type": "string", "minLength": 1, "description": "Path to the AGENT.md, relative to the app dir." }
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"description": "`{ id, path }` refs, one per bundled agent. MAY be empty ONLY when `ui` is present (UI-only app) — see the allOf guard below."
|
|
45
|
+
},
|
|
46
|
+
"workflows": {
|
|
47
|
+
"type": "array",
|
|
48
|
+
"items": {
|
|
49
|
+
"type": "object",
|
|
50
|
+
"required": ["id", "path"],
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"properties": {
|
|
53
|
+
"id": { "type": "string", "minLength": 1 },
|
|
54
|
+
"path": { "type": "string", "minLength": 1, "description": "Path to the WORKFLOW.md, relative to the app dir." }
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"description": "`{ id, path }` refs, one per bundled workflow. Every bundled workflow MUST be referenced by at least one agent's workflows[] (attachment invariant, both directions)."
|
|
58
|
+
},
|
|
59
|
+
"workspace": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"minLength": 1,
|
|
62
|
+
"description": "Optional home workspace id (AIP-34). When set, a sibling WORKSPACE.md exists at the app dir root."
|
|
63
|
+
},
|
|
64
|
+
"requires": {
|
|
65
|
+
"description": "What the app needs from its host. Either a flat array of APP ids this app depends on (legacy form), or an object { browser?, fs?, gpu?, secrets?, apps? }. Each `apps` entry is a bare id (dependency only) or an object { id, version?, workflows? }: `version` is a semver range (exact \"1.2.3\", caret \"^1\"/\"^1.2\"/\"^1.2.3\", or tilde \"~1\"/\"~1.2\"/\"~1.2.3\") the provider's installed version must satisfy; `workflows` lists which of the provider's `exposes.workflows` this consumer may call via the app_call tool — omitted/empty means the dependency carries no call permission.",
|
|
66
|
+
"anyOf": [
|
|
67
|
+
{
|
|
68
|
+
"type": "array",
|
|
69
|
+
"items": { "type": "string", "minLength": 1 },
|
|
70
|
+
"uniqueItems": true
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"type": "object",
|
|
74
|
+
"additionalProperties": false,
|
|
75
|
+
"properties": {
|
|
76
|
+
"browser": { "type": "boolean", "description": "Needs the user's real browser." },
|
|
77
|
+
"fs": { "type": "boolean", "description": "Needs the user's local filesystem beyond app data." },
|
|
78
|
+
"gpu": { "type": "boolean", "description": "Needs a GPU." },
|
|
79
|
+
"secrets": {
|
|
80
|
+
"type": "array",
|
|
81
|
+
"items": { "type": "string", "minLength": 1 },
|
|
82
|
+
"description": "Env/secret names the app needs."
|
|
83
|
+
},
|
|
84
|
+
"apps": {
|
|
85
|
+
"type": "array",
|
|
86
|
+
"description": "Other app ids this app depends on — bare ids or { id, version?, workflows? } objects.",
|
|
87
|
+
"items": {
|
|
88
|
+
"anyOf": [
|
|
89
|
+
{ "type": "string", "minLength": 1 },
|
|
90
|
+
{
|
|
91
|
+
"type": "object",
|
|
92
|
+
"required": ["id"],
|
|
93
|
+
"additionalProperties": false,
|
|
94
|
+
"properties": {
|
|
95
|
+
"id": { "type": "string", "minLength": 1, "description": "The depended-on app id." },
|
|
96
|
+
"version": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"minLength": 1,
|
|
99
|
+
"description": "Optional semver range the provider's installed version must satisfy: exact (\"1.2.3\"), caret (\"^1\", \"^1.2\", \"^1.2.3\"), or tilde (\"~1\", \"~1.2\", \"~1.2.3\")."
|
|
100
|
+
},
|
|
101
|
+
"workflows": {
|
|
102
|
+
"type": "array",
|
|
103
|
+
"items": { "type": "string", "minLength": 1 },
|
|
104
|
+
"description": "Provider workflows (ids from its exposes.workflows) this consumer may call via app_call. Omitted/empty = dependency only, no call permission."
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"exposes": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"additionalProperties": false,
|
|
118
|
+
"properties": {
|
|
119
|
+
"agents": {
|
|
120
|
+
"type": "array",
|
|
121
|
+
"items": { "type": "string", "minLength": 1 },
|
|
122
|
+
"description": "Agent ids this app exposes. Every id must name one of the app's own agents."
|
|
123
|
+
},
|
|
124
|
+
"workflows": {
|
|
125
|
+
"type": "array",
|
|
126
|
+
"items": { "type": "string", "minLength": 1 },
|
|
127
|
+
"description": "Workflow ids this app exposes — the callable surface other apps' requires.apps[].workflows entries may name (consumed via the app_call tool). Every id must name one of the app's own workflows."
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"description": "A2A-visible agents/workflows. Ids must exist in the app's agents / workflows."
|
|
131
|
+
},
|
|
132
|
+
"ui": {
|
|
133
|
+
"type": "object",
|
|
134
|
+
"required": ["path"],
|
|
135
|
+
"additionalProperties": false,
|
|
136
|
+
"properties": {
|
|
137
|
+
"path": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"const": ".agentproto/ui/index.html",
|
|
140
|
+
"description": "The UI surface entry point."
|
|
141
|
+
},
|
|
142
|
+
"title": { "type": "string" },
|
|
143
|
+
"description": { "type": "string" },
|
|
144
|
+
"tools": {
|
|
145
|
+
"type": "array",
|
|
146
|
+
"items": { "type": "string", "minLength": 1 },
|
|
147
|
+
"description": "The ui_tool_call / app_tool_call allowlist — every tool a UI-originated call may reach. Enforced server-side on every call."
|
|
148
|
+
},
|
|
149
|
+
"port": {
|
|
150
|
+
"type": "integer",
|
|
151
|
+
"minimum": 1,
|
|
152
|
+
"maximum": 65535,
|
|
153
|
+
"description": "Preferred local port hint for `app serve`."
|
|
154
|
+
},
|
|
155
|
+
"csp": {
|
|
156
|
+
"type": "object",
|
|
157
|
+
"additionalProperties": false,
|
|
158
|
+
"properties": {
|
|
159
|
+
"connectDomains": { "type": "array", "items": { "type": "string" } },
|
|
160
|
+
"resourceDomains": { "type": "array", "items": { "type": "string" } }
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"description": "The UI surface. `html` (the full document) is required on the in-memory AppDefinition at defineApp time and is NOT carried in APP.md frontmatter — it is emitted to `ui.path`. Its non-emptiness is enforced by defineApp (conformance rule 5)."
|
|
165
|
+
},
|
|
166
|
+
"artifact": {
|
|
167
|
+
"type": "object",
|
|
168
|
+
"required": ["path"],
|
|
169
|
+
"additionalProperties": false,
|
|
170
|
+
"properties": {
|
|
171
|
+
"path": { "type": "string", "minLength": 1, "description": "Emitted bundle path .agentproto/artifact/index.html." },
|
|
172
|
+
"title": { "type": "string" },
|
|
173
|
+
"description": { "type": "string" }
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"skill": {
|
|
177
|
+
"type": "object",
|
|
178
|
+
"required": ["path"],
|
|
179
|
+
"additionalProperties": false,
|
|
180
|
+
"properties": {
|
|
181
|
+
"path": { "type": "string", "minLength": 1, "description": "Emitted bundle path .agentproto/skill (must contain a SKILL.md)." },
|
|
182
|
+
"title": { "type": "string" },
|
|
183
|
+
"description": { "type": "string" }
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"artifacts": {
|
|
187
|
+
"type": "array",
|
|
188
|
+
"items": {
|
|
189
|
+
"type": "object",
|
|
190
|
+
"required": ["type"],
|
|
191
|
+
"additionalProperties": false,
|
|
192
|
+
"properties": {
|
|
193
|
+
"type": { "type": "string", "minLength": 1 },
|
|
194
|
+
"description": { "type": "string" }
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"description": "Artifact types this app's agents may produce, declared for discovery."
|
|
198
|
+
},
|
|
199
|
+
"dev": {
|
|
200
|
+
"type": "object",
|
|
201
|
+
"required": ["launch"],
|
|
202
|
+
"additionalProperties": false,
|
|
203
|
+
"properties": {
|
|
204
|
+
"launch": {
|
|
205
|
+
"type": "array",
|
|
206
|
+
"minItems": 1,
|
|
207
|
+
"items": {
|
|
208
|
+
"type": "object",
|
|
209
|
+
"required": ["name", "runtimeExecutable"],
|
|
210
|
+
"additionalProperties": false,
|
|
211
|
+
"properties": {
|
|
212
|
+
"name": { "type": "string", "minLength": 1 },
|
|
213
|
+
"runtimeExecutable": { "type": "string", "minLength": 1 },
|
|
214
|
+
"runtimeArgs": { "type": "array", "items": { "type": "string" } },
|
|
215
|
+
"port": { "type": "integer", "minimum": 1, "maximum": 65535 },
|
|
216
|
+
"url": { "type": "string" }
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"description": "Dev-launch configuration, carried verbatim in frontmatter."
|
|
222
|
+
},
|
|
223
|
+
"data": {
|
|
224
|
+
"type": "object",
|
|
225
|
+
"additionalProperties": false,
|
|
226
|
+
"properties": {
|
|
227
|
+
"dir": {
|
|
228
|
+
"type": "string",
|
|
229
|
+
"minLength": 1,
|
|
230
|
+
"description": "Default data-dir hint for the app_data_* plane, RELATIVE to the app dir (e.g. `data` means `<appDir>/data`). Overridden by an explicit dataDir at install time."
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"description": "Default data-directory hint (AppDataDefinition). See AIP-53 § The app data plane."
|
|
234
|
+
},
|
|
235
|
+
"externalReadRoots": {
|
|
236
|
+
"type": "array",
|
|
237
|
+
"items": { "type": "string", "minLength": 1 },
|
|
238
|
+
"uniqueItems": true,
|
|
239
|
+
"description": "Host directories the app is granted READ-ONLY access to outside its sandboxed dir (absolute or ~-relative). Carried verbatim in frontmatter by emit/load; validated to exist at install time. Read-only everywhere — there is no write/delete path for these roots."
|
|
240
|
+
},
|
|
241
|
+
"category": {
|
|
242
|
+
"type": "string",
|
|
243
|
+
"minLength": 1,
|
|
244
|
+
"description": "Coarse grouping surfaced in host catalogs/trees (e.g. `book`). Freeform — not validated against a fixed enum."
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"allOf": [
|
|
248
|
+
{
|
|
249
|
+
"title": "UI-only carve-out",
|
|
250
|
+
"description": "An app with an empty or absent `agents` array is conforming ONLY when `ui` is present (codifies packages/app-kit/src/define-app.ts:49-52 and the five builtin panels in packages/apps/src/index.ts that ship as agents: []).",
|
|
251
|
+
"if": {
|
|
252
|
+
"anyOf": [
|
|
253
|
+
{ "not": { "required": ["agents"] } },
|
|
254
|
+
{ "properties": { "agents": { "maxItems": 0 } } }
|
|
255
|
+
]
|
|
256
|
+
},
|
|
257
|
+
"then": { "required": ["ui"] }
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"title": "Attachment invariant (structural part)",
|
|
261
|
+
"description": "A UI-only app bundles zero workflows: a bundled workflow with no referencing agent would be an orphan (conformance rule 3).",
|
|
262
|
+
"if": {
|
|
263
|
+
"anyOf": [
|
|
264
|
+
{ "not": { "required": ["agents"] } },
|
|
265
|
+
{ "properties": { "agents": { "maxItems": 0 } } }
|
|
266
|
+
]
|
|
267
|
+
},
|
|
268
|
+
"then": {
|
|
269
|
+
"properties": { "workflows": { "maxItems": 0 } }
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
]
|
|
273
|
+
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"aip": {
|
|
11
11
|
"type": "integer",
|
|
12
12
|
"minimum": 1,
|
|
13
|
-
"description": "The referenced artifact's owning AIP number — the type discriminator that names the registry family (
|
|
13
|
+
"description": "The referenced artifact's owning AIP number — the type discriminator that names the registry family (53 = app, 52 = adapter, 14 = tool, …)."
|
|
14
14
|
},
|
|
15
15
|
"id": {
|
|
16
16
|
"type": "string",
|