@agentproto/corpus-cli 0.11.1 → 0.11.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.
- package/dist/specs/resources/aip-34/draft/PRESENCE.schema.json +237 -0
- package/dist/specs/resources/aip-34/draft/WORKSPACE.schema.json +26 -0
- package/dist/specs/resources/aip-36/draft/SANDBOX.schema.json +8 -1
- package/dist/specs/resources/aip-45/draft/AGENT-CLI.schema.json +5 -0
- package/dist/specs/resources/aip-53/draft/APP.schema.json +22 -3
- package/dist/specs/resources/pending/services/SERVICES.schema.json +22 -2
- package/package.json +3 -3
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agentproto.sh/schemas/aip-34/PRESENCE.schema.json",
|
|
4
|
+
"title": "PRESENCE.md frontmatter (AIP-34, presence/v1)",
|
|
5
|
+
"description": "Validates the YAML frontmatter of a presence/v1 document: the editorial and channel policy of one workspace node (who it talks to, about what, where, how often, in which words). The voice itself lives in the AIP-25 PERSONA.md named by `persona`. The body is markdown and is not validated.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["schema", "name", "title", "description", "version", "status"],
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"$defs": {
|
|
10
|
+
"kebab": { "type": "string", "pattern": "^[a-z][a-z0-9-]*[a-z0-9]$", "minLength": 2, "maxLength": 64 },
|
|
11
|
+
"approvalMode": { "type": "string", "pattern": "^(always|policy:.+)$" },
|
|
12
|
+
"cadence": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"additionalProperties": false,
|
|
15
|
+
"properties": {
|
|
16
|
+
"posts": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"additionalProperties": false,
|
|
19
|
+
"properties": {
|
|
20
|
+
"perWeek": { "type": "integer", "minimum": 0, "maximum": 50 },
|
|
21
|
+
"maxPerDay": { "type": "integer", "minimum": 0, "maximum": 10 }
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"comments": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"additionalProperties": false,
|
|
27
|
+
"properties": {
|
|
28
|
+
"perDay": { "type": "integer", "minimum": 0, "maximum": 50 }
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"window": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"additionalProperties": false,
|
|
34
|
+
"properties": {
|
|
35
|
+
"days": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"uniqueItems": true,
|
|
38
|
+
"items": { "enum": ["mon", "tue", "wed", "thu", "fri", "sat", "sun"] }
|
|
39
|
+
},
|
|
40
|
+
"hours": { "type": "string", "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]-([01][0-9]|2[0-3]):[0-5][0-9]$" },
|
|
41
|
+
"timezone": { "type": "string" }
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"channel": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"required": ["id", "network"],
|
|
49
|
+
"additionalProperties": false,
|
|
50
|
+
"properties": {
|
|
51
|
+
"id": { "$ref": "#/$defs/kebab" },
|
|
52
|
+
"network": { "type": "string", "description": "linkedin, x, instagram, tiktok, youtube, facebook, threads, bluesky, mastodon, or a custom slug." },
|
|
53
|
+
"account": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"additionalProperties": false,
|
|
56
|
+
"properties": {
|
|
57
|
+
"handle": { "type": "string" },
|
|
58
|
+
"kind": { "enum": ["personal", "brand"] },
|
|
59
|
+
"owner": { "type": "string", "description": "Principal ref, e.g. user:jeremy. Whose account it is." }
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"connection": {
|
|
63
|
+
"type": "object",
|
|
64
|
+
"additionalProperties": false,
|
|
65
|
+
"properties": {
|
|
66
|
+
"provider": { "type": "string", "description": "How an approved action leaves: postiz, chrome-live, manual, or a custom slug." },
|
|
67
|
+
"credentials": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$", "description": "Slug of an AIP-19 secret in this node's SECRETS.md or granted through uses_secrets. Credentials are never inline." }
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"locale": { "type": "string" },
|
|
71
|
+
"formats": { "type": "array", "uniqueItems": true, "items": { "type": "string" } },
|
|
72
|
+
"cadence": { "$ref": "#/$defs/cadence" },
|
|
73
|
+
"actions": {
|
|
74
|
+
"type": "object",
|
|
75
|
+
"additionalProperties": false,
|
|
76
|
+
"description": "Which kinds of action are allowed on this channel. Absent means post and comment are both allowed.",
|
|
77
|
+
"properties": {
|
|
78
|
+
"post": { "type": "boolean" },
|
|
79
|
+
"comment": { "type": "boolean" }
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"publish": {
|
|
83
|
+
"type": "object",
|
|
84
|
+
"additionalProperties": false,
|
|
85
|
+
"description": "Provider per action after approval. Overrides connection.provider.",
|
|
86
|
+
"properties": {
|
|
87
|
+
"post": { "type": "string" },
|
|
88
|
+
"comment": { "type": "string" }
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"approval": { "$ref": "#/$defs/approvalMode" }
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"properties": {
|
|
96
|
+
"schema": { "const": "presence/v1" },
|
|
97
|
+
"name": { "$ref": "#/$defs/kebab" },
|
|
98
|
+
"title": { "type": "string", "minLength": 1, "maxLength": 120 },
|
|
99
|
+
"description": { "type": "string", "minLength": 1, "maxLength": 2000 },
|
|
100
|
+
"version": { "type": "string", "pattern": "^\\d+\\.\\d+\\.\\d+" },
|
|
101
|
+
"status": { "enum": ["draft", "active", "paused"] },
|
|
102
|
+
"extends": { "type": "string", "description": "Relative path to a parent PRESENCE.md (company defaults)." },
|
|
103
|
+
"persona": { "type": "string", "description": "AIP-25 PERSONA.md: a relative path or a ws://personas ref. Required in the effective (merged) document." },
|
|
104
|
+
"audience": {
|
|
105
|
+
"type": "object",
|
|
106
|
+
"additionalProperties": false,
|
|
107
|
+
"properties": {
|
|
108
|
+
"primary": { "type": "string" },
|
|
109
|
+
"pains": { "type": "array", "items": { "type": "string" } },
|
|
110
|
+
"notTargeted": { "type": "array", "items": { "type": "string" } }
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"topics": {
|
|
114
|
+
"type": "object",
|
|
115
|
+
"additionalProperties": false,
|
|
116
|
+
"properties": {
|
|
117
|
+
"pillars": {
|
|
118
|
+
"type": "array",
|
|
119
|
+
"items": {
|
|
120
|
+
"type": "object",
|
|
121
|
+
"required": ["id", "title"],
|
|
122
|
+
"additionalProperties": false,
|
|
123
|
+
"properties": {
|
|
124
|
+
"id": { "$ref": "#/$defs/kebab" },
|
|
125
|
+
"title": { "type": "string" },
|
|
126
|
+
"angle": { "type": "string" }
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"exclude": { "type": "array", "items": { "type": "string" } }
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"lexicon": {
|
|
134
|
+
"type": "object",
|
|
135
|
+
"additionalProperties": false,
|
|
136
|
+
"properties": {
|
|
137
|
+
"forbidden": {
|
|
138
|
+
"type": "array",
|
|
139
|
+
"items": {
|
|
140
|
+
"type": "object",
|
|
141
|
+
"required": ["term"],
|
|
142
|
+
"additionalProperties": false,
|
|
143
|
+
"properties": {
|
|
144
|
+
"term": { "type": "string" },
|
|
145
|
+
"reason": { "type": "string" },
|
|
146
|
+
"instead": { "type": "string" }
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"required": {
|
|
151
|
+
"type": "array",
|
|
152
|
+
"items": {
|
|
153
|
+
"type": "object",
|
|
154
|
+
"required": ["phrase"],
|
|
155
|
+
"additionalProperties": false,
|
|
156
|
+
"properties": {
|
|
157
|
+
"phrase": { "type": "string" },
|
|
158
|
+
"context": { "type": "string" }
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"channels": { "type": "array", "items": { "$ref": "#/$defs/channel" } },
|
|
165
|
+
"watch": {
|
|
166
|
+
"type": "object",
|
|
167
|
+
"additionalProperties": false,
|
|
168
|
+
"properties": {
|
|
169
|
+
"keywords": { "type": "array", "items": { "type": "string" } },
|
|
170
|
+
"accounts": { "type": "array", "items": { "type": "string" } },
|
|
171
|
+
"hashtags": { "type": "array", "items": { "type": "string" } },
|
|
172
|
+
"communities": { "type": "array", "items": { "type": "string" } },
|
|
173
|
+
"commentRules": { "type": "array", "items": { "type": "string" } }
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"approval": {
|
|
177
|
+
"type": "object",
|
|
178
|
+
"additionalProperties": false,
|
|
179
|
+
"properties": {
|
|
180
|
+
"mode": { "$ref": "#/$defs/approvalMode" },
|
|
181
|
+
"approver": { "type": "string", "description": "Principal ref, e.g. user:jeremy." }
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"gates": {
|
|
185
|
+
"type": "array",
|
|
186
|
+
"items": {
|
|
187
|
+
"type": "object",
|
|
188
|
+
"required": ["id", "description", "status", "blocks"],
|
|
189
|
+
"additionalProperties": false,
|
|
190
|
+
"properties": {
|
|
191
|
+
"id": { "$ref": "#/$defs/kebab" },
|
|
192
|
+
"description": { "type": "string" },
|
|
193
|
+
"status": { "enum": ["open", "cleared"] },
|
|
194
|
+
"blocks": {
|
|
195
|
+
"type": "array",
|
|
196
|
+
"minItems": 1,
|
|
197
|
+
"items": { "type": "string", "pattern": "^(links|posts|comments|channel:[a-z][a-z0-9-]*)$" }
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"examples": {
|
|
203
|
+
"type": "object",
|
|
204
|
+
"additionalProperties": false,
|
|
205
|
+
"properties": {
|
|
206
|
+
"good": {
|
|
207
|
+
"type": "array",
|
|
208
|
+
"items": {
|
|
209
|
+
"type": "object",
|
|
210
|
+
"required": ["text"],
|
|
211
|
+
"additionalProperties": false,
|
|
212
|
+
"properties": { "channel": { "type": "string" }, "text": { "type": "string" }, "why": { "type": "string" } }
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"bad": {
|
|
216
|
+
"type": "array",
|
|
217
|
+
"items": {
|
|
218
|
+
"type": "object",
|
|
219
|
+
"required": ["text", "why"],
|
|
220
|
+
"additionalProperties": false,
|
|
221
|
+
"properties": { "channel": { "type": "string" }, "text": { "type": "string" }, "why": { "type": "string" } }
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"review": {
|
|
227
|
+
"type": "object",
|
|
228
|
+
"additionalProperties": false,
|
|
229
|
+
"properties": {
|
|
230
|
+
"cadence": { "enum": ["weekly", "monthly"] },
|
|
231
|
+
"day": { "enum": ["mon", "tue", "wed", "thu", "fri", "sat", "sun"] },
|
|
232
|
+
"kpis": { "type": "array", "items": { "type": "string" } }
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"metadata": { "type": "object" }
|
|
236
|
+
}
|
|
237
|
+
}
|
|
@@ -49,6 +49,10 @@
|
|
|
49
49
|
"$ref": "#/$defs/workRef",
|
|
50
50
|
"description": "AIP-20 WORK.md block. Optional — when present, this node's status/board is tracked there (items are AIP-18 ITEM.md records under the collection(s) WORK.md declares), not in a flat status file. Same inline/ref/file union shape as `code`."
|
|
51
51
|
},
|
|
52
|
+
"presence": {
|
|
53
|
+
"$ref": "#/$defs/presenceRef",
|
|
54
|
+
"description": "PRESENCE.md block (presence/v1, see AIP-34 §Presence block). Optional. How this node speaks in public: audience, topics, forbidden words, channels, cadence, approval. Same inline/ref/file union as `work`; a `file` is path-confined."
|
|
55
|
+
},
|
|
52
56
|
"identity": { "$ref": "#/$defs/identityRefBlock" },
|
|
53
57
|
"wall": {
|
|
54
58
|
"enum": ["shared", "isolated", "sealed", "hard"],
|
|
@@ -352,6 +356,28 @@
|
|
|
352
356
|
}
|
|
353
357
|
]
|
|
354
358
|
},
|
|
359
|
+
"presenceRef": {
|
|
360
|
+
"anyOf": [
|
|
361
|
+
{
|
|
362
|
+
"type": "object",
|
|
363
|
+
"required": ["inline"],
|
|
364
|
+
"additionalProperties": false,
|
|
365
|
+
"properties": { "inline": { "type": "object" } }
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"type": "object",
|
|
369
|
+
"required": ["ref"],
|
|
370
|
+
"additionalProperties": false,
|
|
371
|
+
"properties": { "ref": { "type": "string", "minLength": 1 } }
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"type": "object",
|
|
375
|
+
"required": ["file"],
|
|
376
|
+
"additionalProperties": false,
|
|
377
|
+
"properties": { "file": { "$ref": "#/$defs/safeRelativePath" } }
|
|
378
|
+
}
|
|
379
|
+
]
|
|
380
|
+
},
|
|
355
381
|
"identityRefBlock": {
|
|
356
382
|
"description": "AIP-23 identity-ref. Single entry or multi-attribution array. Left permissive here; AIP-23 owns the normative shape."
|
|
357
383
|
},
|
|
@@ -44,7 +44,8 @@
|
|
|
44
44
|
"properties": {
|
|
45
45
|
"timeout_ms": { "type": "integer", "minimum": 1 },
|
|
46
46
|
"memory_mb": { "type": "integer", "minimum": 1 },
|
|
47
|
-
"cpu_ms": { "type": "integer", "minimum": 1 }
|
|
47
|
+
"cpu_ms": { "type": "integer", "minimum": 1 },
|
|
48
|
+
"cpus": { "type": "number", "minimum": 0.1, "description": "vCPUs, may be fractional (AIP-36 v1.3). Provider config-level cpus maps onto this." }
|
|
48
49
|
},
|
|
49
50
|
"description": "Resource caps per command."
|
|
50
51
|
},
|
|
@@ -74,6 +75,12 @@
|
|
|
74
75
|
"items": { "type": "string" },
|
|
75
76
|
"default": [],
|
|
76
77
|
"description": "Hostnames the sandbox MAY reach. Empty / missing = no egress."
|
|
78
|
+
},
|
|
79
|
+
"egressIp": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"pattern": "^(shared|auto|dedicated|[a-z0-9]{1,8})$",
|
|
82
|
+
"default": "shared",
|
|
83
|
+
"description": "Public source address for outbound traffic (AIP-36 v1.3): shared | auto | dedicated | pool slot id. A provider without an address pool MUST refuse any value other than shared with sandbox_egress_pool_unavailable."
|
|
77
84
|
}
|
|
78
85
|
}
|
|
79
86
|
},
|
|
@@ -71,6 +71,11 @@
|
|
|
71
71
|
{ "type": "object", "description": "Inline AIP-17 runner block." }
|
|
72
72
|
]
|
|
73
73
|
},
|
|
74
|
+
"confinedReadPaths": {
|
|
75
|
+
"type": "array",
|
|
76
|
+
"items": { "type": "string", "minLength": 1 },
|
|
77
|
+
"description": "READ-only paths an OS-confined spawn needs to boot (e.g. the CLI's own global config files under $HOME, which the sandbox denies). `~/...` anchors at the operator's home; a leading `$VAR`/`${VAR}` is read from the per-spawn env and dropped when unset. Never grants write access; mutable state belongs in the adapter's state home."
|
|
78
|
+
},
|
|
74
79
|
"protocol": {
|
|
75
80
|
"enum": ["acp", "mcp", "proprietary"],
|
|
76
81
|
"description": "Wire protocol discriminator. acp = AIP-44 ACP server; mcp = MCP-over-stdio; proprietary = adapter package implements AgentCliClient."
|
|
@@ -340,10 +340,13 @@
|
|
|
340
340
|
"items": {
|
|
341
341
|
"type": "object",
|
|
342
342
|
"required": [
|
|
343
|
-
"name"
|
|
344
|
-
"entry"
|
|
343
|
+
"name"
|
|
345
344
|
],
|
|
346
345
|
"additionalProperties": false,
|
|
346
|
+
"oneOf": [
|
|
347
|
+
{ "required": ["entry"], "not": { "anyOf": [{ "required": ["command"] }, { "required": ["args"] }] } },
|
|
348
|
+
{ "required": ["command"], "not": { "required": ["entry"] } }
|
|
349
|
+
],
|
|
347
350
|
"properties": {
|
|
348
351
|
"name": {
|
|
349
352
|
"type": "string",
|
|
@@ -353,7 +356,23 @@
|
|
|
353
356
|
"entry": {
|
|
354
357
|
"type": "string",
|
|
355
358
|
"minLength": 1,
|
|
356
|
-
"description": "
|
|
359
|
+
"description": "Legacy shell command line that starts the service (e.g. `pnpm --filter x start`, `node dist/server.js`). Carried verbatim; the loader/`defineApp` never executes it. Exactly one of entry/command."
|
|
360
|
+
},
|
|
361
|
+
"command": {
|
|
362
|
+
"type": "string",
|
|
363
|
+
"minLength": 1,
|
|
364
|
+
"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."
|
|
365
|
+
},
|
|
366
|
+
"args": {
|
|
367
|
+
"type": "array",
|
|
368
|
+
"minItems": 1,
|
|
369
|
+
"items": { "type": "string" },
|
|
370
|
+
"description": "Structured command form: argv after `command`, passed verbatim. Requires `command`."
|
|
371
|
+
},
|
|
372
|
+
"cwd": {
|
|
373
|
+
"type": "string",
|
|
374
|
+
"minLength": 1,
|
|
375
|
+
"description": "Working directory the runner starts the service in; relative paths resolve against the app's installed dir."
|
|
357
376
|
},
|
|
358
377
|
"port": {
|
|
359
378
|
"type": "integer",
|
|
@@ -10,8 +10,12 @@
|
|
|
10
10
|
"$defs": {
|
|
11
11
|
"service": {
|
|
12
12
|
"type": "object",
|
|
13
|
-
"required": ["name"
|
|
13
|
+
"required": ["name"],
|
|
14
14
|
"additionalProperties": false,
|
|
15
|
+
"oneOf": [
|
|
16
|
+
{ "required": ["entry"], "not": { "anyOf": [{ "required": ["command"] }, { "required": ["args"] }] } },
|
|
17
|
+
{ "required": ["command"], "not": { "required": ["entry"] } }
|
|
18
|
+
],
|
|
15
19
|
"properties": {
|
|
16
20
|
"name": {
|
|
17
21
|
"type": "string",
|
|
@@ -21,7 +25,23 @@
|
|
|
21
25
|
"entry": {
|
|
22
26
|
"type": "string",
|
|
23
27
|
"minLength": 1,
|
|
24
|
-
"description": "
|
|
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."
|
|
25
45
|
},
|
|
26
46
|
"port": {
|
|
27
47
|
"type": "integer",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentproto/corpus-cli",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.2",
|
|
4
4
|
"description": "@agentproto/corpus-cli — the `corpus` binary. Validate, lint, and operate an AIP-10 corpus workspace from the command line. Local-topology host for @agentproto/corpus — pair with a local backing engine (qdrant docker / gbrain) for a fully offline corpus runtime.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agentproto",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"zod": "^4.6.7",
|
|
55
55
|
"@agentproto/batch": "0.2.3",
|
|
56
56
|
"@agentproto/cli-exec": "0.1.2",
|
|
57
|
-
"@agentproto/corpus": "0.8.
|
|
58
|
-
"@agentproto/corpus-presets": "0.2.
|
|
57
|
+
"@agentproto/corpus": "0.8.4",
|
|
58
|
+
"@agentproto/corpus-presets": "0.2.16"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/node": "^25.9.9",
|