@agentproto/corpus-cli 0.11.7 → 0.11.8

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.
@@ -174,7 +174,7 @@
174
174
  "ref": {
175
175
  "type": "string",
176
176
  "minLength": 1,
177
- "description": "Ref to a published or local ROUTINE.md (AIP-41), e.g. \"@agentik/routines-standard/daily-9am-utc\"."
177
+ "description": "Ref to a published or local ROUTINE.md (AIP-41), e.g. \"@acme/routines-standard/daily-9am-utc\"."
178
178
  }
179
179
  }
180
180
  },
@@ -56,7 +56,7 @@
56
56
  "properties": {
57
57
  "handle": { "type": "string" },
58
58
  "kind": { "enum": ["personal", "brand"] },
59
- "owner": { "type": "string", "description": "Principal ref, e.g. user:jeremy. Whose account it is." }
59
+ "owner": { "type": "string", "description": "Principal ref, e.g. user:alice. Whose account it is." }
60
60
  }
61
61
  },
62
62
  "connection": {
@@ -178,7 +178,7 @@
178
178
  "additionalProperties": false,
179
179
  "properties": {
180
180
  "mode": { "$ref": "#/$defs/approvalMode" },
181
- "approver": { "type": "string", "description": "Principal ref, e.g. user:jeremy." }
181
+ "approver": { "type": "string", "description": "Principal ref, e.g. user:alice." }
182
182
  }
183
183
  },
184
184
  "gates": {
@@ -135,6 +135,17 @@
135
135
  }
136
136
  ]
137
137
  },
138
+ "access": {
139
+ "type": "object",
140
+ "additionalProperties": false,
141
+ "properties": {
142
+ "remote": {
143
+ "type": "boolean",
144
+ "description": "false: never listed to, nor callable from, a paired device."
145
+ }
146
+ },
147
+ "description": "Who may open the app from another device."
148
+ },
138
149
  "ui": {
139
150
  "type": "object",
140
151
  "required": [
@@ -185,6 +196,63 @@
185
196
  }
186
197
  }
187
198
  },
199
+ "install": {
200
+ "type": "object",
201
+ "additionalProperties": false,
202
+ "description": "How the UI installs as a web app (see \"Installable UI\"). Refines the manifest the host derives; every field is optional.",
203
+ "properties": {
204
+ "shortName": {
205
+ "type": "string",
206
+ "minLength": 1,
207
+ "maxLength": 12
208
+ },
209
+ "themeColor": {
210
+ "type": "string",
211
+ "pattern": "^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
212
+ },
213
+ "backgroundColor": {
214
+ "type": "string",
215
+ "pattern": "^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
216
+ },
217
+ "display": {
218
+ "enum": [
219
+ "standalone",
220
+ "minimal-ui",
221
+ "browser"
222
+ ]
223
+ },
224
+ "icons": {
225
+ "type": "array",
226
+ "minItems": 1,
227
+ "maxItems": 8,
228
+ "items": {
229
+ "type": "object",
230
+ "required": [
231
+ "path"
232
+ ],
233
+ "additionalProperties": false,
234
+ "properties": {
235
+ "path": {
236
+ "type": "string",
237
+ "pattern": "^(?!/)(?!.*(^|/)\\.\\.(/|$)).+\\.(png|svg|webp)$",
238
+ "description": "Relative to the app dir, no `..` segment."
239
+ },
240
+ "sizes": {
241
+ "type": "string",
242
+ "pattern": "^(any|[0-9]+x[0-9]+( [0-9]+x[0-9]+)*)$"
243
+ },
244
+ "purpose": {
245
+ "enum": [
246
+ "any",
247
+ "maskable",
248
+ "monochrome"
249
+ ]
250
+ }
251
+ }
252
+ }
253
+ }
254
+ }
255
+ },
188
256
  "toolScope": {
189
257
  "type": "object",
190
258
  "additionalProperties": {
@@ -673,7 +741,7 @@
673
741
  "pattern": "^[a-z][a-z0-9]{1,15}_[a-zA-Z0-9-](?:[a-zA-Z0-9_-]*[a-zA-Z0-9-])?$"
674
742
  },
675
743
  "uniqueItems": true,
676
- "description": "Provider tools granted to this app's own agents: the MCP names the provider's `exposes.tools` entries compute (`<prefix>_<name>`, for example `bureau_navigate`). Each is granted at the access class the provider declares, as if every AGENT.md of this app had opted in to it by name. Omitted or empty means nothing is granted."
744
+ "description": "Provider tools granted to this app's own agents: the MCP names the provider's `exposes.tools` entries compute (`<prefix>_<name>`, for example `webpilot_navigate`). Each is granted at the access class the provider declares, as if every AGENT.md of this app had opted in to it by name. Omitted or empty means nothing is granted."
677
745
  }
678
746
  }
679
747
  }
@@ -364,7 +364,7 @@
364
364
  "description": "A host record of one account on one site in one profile (C17). It authorizes nothing: only grants do. It never holds a cookie, token or storage value (C9).",
365
365
  "required": ["id", "site", "profileRef", "session", "source", "grantIds"],
366
366
  "properties": {
367
- "id": { "type": "string", "minLength": 1, "description": "Stable name, for example linkedin-jeremy." },
367
+ "id": { "type": "string", "minLength": 1, "description": "Stable name, for example linkedin-alice." },
368
368
  "site": { "$ref": "#/$defs/domain" },
369
369
  "account": { "type": "string", "minLength": 1, "maxLength": 200, "description": "Display name or address on the site. Personal data, not a secret." },
370
370
  "profileRef": { "type": "string", "minLength": 1, "description": "<instance>/<profile> the account lives in." },
@@ -85,7 +85,7 @@
85
85
  "minLength": 1
86
86
  },
87
87
  "default": [],
88
- "description": "Free-form labels. Scope anchors are carried here in their formatted form (e.g. 'global', 'project:acme', 'agent:assistant', 'pr:acme/app#42'). Two anchors tie an item to an AIP-34 tree and an AIP-9 operator: 'node:<id>' (the AIP-34 node id, e.g. 'node:@acme/agentik') scopes visibility, and 'operator:<id>' (e.g. 'operator:pm-demo') marks ownership and never widens visibility. An item carries at most one of each; the node projection and write rules are in AIP-72 section 10."
88
+ "description": "Free-form labels. Scope anchors are carried here in their formatted form (e.g. 'global', 'project:acme', 'agent:assistant', 'pr:acme/app#42'). Two anchors tie an item to an AIP-34 tree and an AIP-9 operator: 'node:<id>' (the AIP-34 node id, e.g. 'node:@acme/demo-app') scopes visibility, and 'operator:<id>' (e.g. 'operator:pm-demo') marks ownership and never widens visibility. An item carries at most one of each; the node projection and write rules are in AIP-72 section 10."
89
89
  },
90
90
  "polarity": {
91
91
  "enum": [
@@ -481,6 +481,10 @@
481
481
  "$ref": "#/$defs/id",
482
482
  "description": "prepaid-pool only: the conversion the payment runs."
483
483
  },
484
+ "discounts": {
485
+ "enum": ["allow", "refuse"],
486
+ "description": "Whether a payment may carry a discount (coupon, promotion code): amount plus discount then equals the price. Absent means refuse."
487
+ },
484
488
  "includes": {
485
489
  "type": "array",
486
490
  "items": { "$ref": "#/$defs/include" },
@@ -497,7 +501,11 @@
497
501
  "description": "When the period's includes are given: at the payment date, or at the calendar period boundary."
498
502
  },
499
503
  "grace": { "$ref": "#/$defs/duration" },
500
- "onUpgrade": { "enum": ["none", "prorate"] }
504
+ "onUpgrade": { "enum": ["none", "prorate"] },
505
+ "trial": {
506
+ "$ref": "#/$defs/duration",
507
+ "description": "A free first period of this length: a zero payment opens it with the features and includes of the offer. Absent means a zero payment is refused."
508
+ }
501
509
  }
502
510
  },
503
511
  "rail": {
@@ -0,0 +1,95 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agentproto.sh/docs/aip-79/actor.schema.json",
4
+ "title": "collect.actor/v1",
5
+ "description": "An author or submitter, with dated audience readings. Each reading has exactly one of value and unknown.",
6
+ "type": "object",
7
+ "properties": {
8
+ "ref": {
9
+ "type": "string",
10
+ "minLength": 1
11
+ },
12
+ "displayName": {
13
+ "type": "string"
14
+ },
15
+ "handle": {
16
+ "type": "string"
17
+ },
18
+ "profileUrl": {
19
+ "type": "string"
20
+ },
21
+ "accountCreatedAt": {
22
+ "anyOf": [
23
+ {
24
+ "type": "string",
25
+ "format": "date",
26
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
27
+ },
28
+ {
29
+ "type": "string",
30
+ "format": "date-time",
31
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
32
+ }
33
+ ]
34
+ },
35
+ "verified": {
36
+ "type": "boolean"
37
+ },
38
+ "audience": {
39
+ "default": [],
40
+ "type": "array",
41
+ "items": {
42
+ "type": "object",
43
+ "properties": {
44
+ "measuredAt": {
45
+ "type": "string",
46
+ "format": "date-time",
47
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
48
+ },
49
+ "kind": {
50
+ "type": "string",
51
+ "enum": [
52
+ "followers",
53
+ "karma",
54
+ "subscribers"
55
+ ]
56
+ },
57
+ "value": {
58
+ "type": "number",
59
+ "minimum": 0
60
+ },
61
+ "rawValue": {
62
+ "type": "string"
63
+ },
64
+ "unknown": {
65
+ "type": "string",
66
+ "enum": [
67
+ "not_exposed",
68
+ "not_fetched",
69
+ "blocked"
70
+ ]
71
+ }
72
+ },
73
+ "required": [
74
+ "measuredAt",
75
+ "kind"
76
+ ],
77
+ "oneOf": [
78
+ {
79
+ "required": [
80
+ "value"
81
+ ]
82
+ },
83
+ {
84
+ "required": [
85
+ "unknown"
86
+ ]
87
+ }
88
+ ]
89
+ }
90
+ }
91
+ },
92
+ "required": [
93
+ "ref"
94
+ ]
95
+ }
@@ -0,0 +1,238 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agentproto.sh/docs/aip-79/item.schema.json",
4
+ "title": "collect.item/v1",
5
+ "description": "One collected item (article, post, thread, submission, review, video or query result).",
6
+ "type": "object",
7
+ "properties": {
8
+ "id": {
9
+ "type": "string",
10
+ "minLength": 1
11
+ },
12
+ "source": {
13
+ "type": "string",
14
+ "minLength": 1
15
+ },
16
+ "sourceInstance": {
17
+ "type": "string"
18
+ },
19
+ "kind": {
20
+ "type": "string",
21
+ "enum": [
22
+ "article",
23
+ "post",
24
+ "thread",
25
+ "submission",
26
+ "review",
27
+ "video",
28
+ "query"
29
+ ]
30
+ },
31
+ "url": {
32
+ "type": "string"
33
+ },
34
+ "canonicalUrl": {
35
+ "type": "string"
36
+ },
37
+ "contentId": {
38
+ "type": "string"
39
+ },
40
+ "contentGroupId": {
41
+ "type": "string"
42
+ },
43
+ "subjects": {
44
+ "default": [],
45
+ "type": "array",
46
+ "items": {
47
+ "type": "object",
48
+ "properties": {
49
+ "label": {
50
+ "type": "string",
51
+ "minLength": 1
52
+ },
53
+ "provenance": {
54
+ "type": "string",
55
+ "enum": [
56
+ "query",
57
+ "source_tag",
58
+ "classifier"
59
+ ]
60
+ },
61
+ "classifier": {
62
+ "type": "object",
63
+ "properties": {
64
+ "name": {
65
+ "type": "string",
66
+ "minLength": 1
67
+ },
68
+ "version": {
69
+ "type": "string",
70
+ "minLength": 1
71
+ }
72
+ },
73
+ "required": [
74
+ "name",
75
+ "version"
76
+ ]
77
+ }
78
+ },
79
+ "required": [
80
+ "label",
81
+ "provenance"
82
+ ]
83
+ }
84
+ },
85
+ "title": {
86
+ "type": "string"
87
+ },
88
+ "text": {
89
+ "type": "string"
90
+ },
91
+ "textTruncated": {
92
+ "type": "boolean"
93
+ },
94
+ "language": {
95
+ "type": "string"
96
+ },
97
+ "wordCount": {
98
+ "type": "integer",
99
+ "minimum": 0,
100
+ "maximum": 9007199254740991
101
+ },
102
+ "format": {
103
+ "type": "string"
104
+ },
105
+ "authorRef": {
106
+ "type": "string"
107
+ },
108
+ "submitterRef": {
109
+ "type": "string"
110
+ },
111
+ "publishedAt": {
112
+ "anyOf": [
113
+ {
114
+ "type": "string",
115
+ "format": "date",
116
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
117
+ },
118
+ {
119
+ "type": "string",
120
+ "format": "date-time",
121
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
122
+ }
123
+ ]
124
+ },
125
+ "postedAt": {
126
+ "anyOf": [
127
+ {
128
+ "type": "string",
129
+ "format": "date",
130
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
131
+ },
132
+ {
133
+ "type": "string",
134
+ "format": "date-time",
135
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
136
+ }
137
+ ]
138
+ },
139
+ "firstSeenAt": {
140
+ "type": "string",
141
+ "format": "date-time",
142
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
143
+ },
144
+ "links": {
145
+ "type": "object",
146
+ "properties": {
147
+ "target": {
148
+ "type": "string"
149
+ },
150
+ "parent": {
151
+ "type": "string"
152
+ },
153
+ "root": {
154
+ "type": "string"
155
+ },
156
+ "quoted": {
157
+ "type": "string"
158
+ }
159
+ }
160
+ },
161
+ "outboundLinks": {
162
+ "type": "array",
163
+ "items": {
164
+ "type": "string"
165
+ }
166
+ },
167
+ "parts": {
168
+ "type": "array",
169
+ "items": {
170
+ "type": "object",
171
+ "properties": {
172
+ "id": {
173
+ "type": "string",
174
+ "minLength": 1
175
+ },
176
+ "text": {
177
+ "type": "string"
178
+ },
179
+ "authorRef": {
180
+ "type": "string"
181
+ },
182
+ "postedAt": {
183
+ "anyOf": [
184
+ {
185
+ "type": "string",
186
+ "format": "date",
187
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
188
+ },
189
+ {
190
+ "type": "string",
191
+ "format": "date-time",
192
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
193
+ }
194
+ ]
195
+ }
196
+ },
197
+ "required": [
198
+ "id",
199
+ "text"
200
+ ]
201
+ }
202
+ },
203
+ "tags": {
204
+ "type": "array",
205
+ "items": {
206
+ "type": "string"
207
+ }
208
+ },
209
+ "hasMedia": {
210
+ "type": "boolean"
211
+ },
212
+ "query": {
213
+ "type": "string"
214
+ },
215
+ "runId": {
216
+ "type": "string"
217
+ },
218
+ "rawRefs": {
219
+ "type": "array",
220
+ "items": {
221
+ "type": "string"
222
+ }
223
+ },
224
+ "ext": {
225
+ "type": "object",
226
+ "propertyNames": {
227
+ "type": "string"
228
+ },
229
+ "additionalProperties": {}
230
+ }
231
+ },
232
+ "required": [
233
+ "id",
234
+ "source",
235
+ "kind",
236
+ "firstSeenAt"
237
+ ]
238
+ }