@agentproto/corpus-cli 0.11.6 → 0.11.7
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.
|
@@ -498,6 +498,32 @@
|
|
|
498
498
|
"uniqueItems": true,
|
|
499
499
|
"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."
|
|
500
500
|
},
|
|
501
|
+
"boundaries": {
|
|
502
|
+
"type": "object",
|
|
503
|
+
"additionalProperties": false,
|
|
504
|
+
"description": "Filesystem boundary policy for sessions the app spawns (app_run, workflow agent steps). The host confines them to the app's zones: app dir read-only, run workspace and data dir writable, everything else denied, including the host repo the app is installed inside. The host repo's own config (.git, .gitignore, .claude/, .codex/, .mcp.json, CLAUDE.md, AGENTS.md at its root) stays readable, never writable. The hidden zone gates the working tree only: committed content is reachable through the readable .git. See AIP-53 § Session boundaries.",
|
|
505
|
+
"properties": {
|
|
506
|
+
"enforce": {
|
|
507
|
+
"type": "string",
|
|
508
|
+
"enum": [
|
|
509
|
+
"required",
|
|
510
|
+
"best-effort"
|
|
511
|
+
],
|
|
512
|
+
"default": "best-effort",
|
|
513
|
+
"description": "required: refuse the spawn when the zones cannot be enforced on the chosen harness or platform. best-effort: spawn with an explicit warning."
|
|
514
|
+
},
|
|
515
|
+
"hostReads": {
|
|
516
|
+
"type": "array",
|
|
517
|
+
"maxItems": 64,
|
|
518
|
+
"uniqueItems": true,
|
|
519
|
+
"items": {
|
|
520
|
+
"type": "string",
|
|
521
|
+
"pattern": "^(?!/)(?!\\.?/*$)(?!\\s)(?!(?:.*/)?\\.\\.(?:/|$)).*\\S$"
|
|
522
|
+
},
|
|
523
|
+
"description": "Paths in the app's own host repo (the git repo whose working tree holds the app dir) its sessions may READ, relative to the host repo root, no '..' segment, not '.' itself: a sibling package's built CLI, a shared folder. The host resolves symlinks and refuses an entry that lands outside the host repo or names the whole repo; secret files inside an entry (.env, keys) stay masked. Never writable. Ignored when the app is not inside a git repo."
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
},
|
|
501
527
|
"category": {
|
|
502
528
|
"type": "string",
|
|
503
529
|
"minLength": 1,
|
|
@@ -68,6 +68,27 @@
|
|
|
68
68
|
"items": { "$ref": "#/$defs/partitionId" },
|
|
69
69
|
"description": "Optional tie-break after the AIP-49 normative order."
|
|
70
70
|
},
|
|
71
|
+
"usage": {
|
|
72
|
+
"type": "object",
|
|
73
|
+
"additionalProperties": false,
|
|
74
|
+
"required": ["categories"],
|
|
75
|
+
"description": "Metered usage as data (rules 29 to 32 and 35). Which primitive a host calls (hold, debit, shadow) is the host's choice, not a field. A category never carries a rate: the anchor is the only place a rate is written, so a category with `rate`, `ratio` or `creditsPerUnit` is refused by this schema (rule 30). Values of `margin`, `marginFloor` and `floorMinor` are the host's, the AIP sets none. Cross-references (a fixed cost in a currency that is neither the anchor currency nor an fx key; `at-cost` with a marginFloor above 1; duplicate ids) belong to the parser.",
|
|
76
|
+
"properties": {
|
|
77
|
+
"defaults": {
|
|
78
|
+
"type": "object",
|
|
79
|
+
"additionalProperties": false,
|
|
80
|
+
"properties": {
|
|
81
|
+
"margin": { "type": "number", "exclusiveMinimum": 0 },
|
|
82
|
+
"floorMinor": { "type": "integer", "minimum": 0 }
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"categories": {
|
|
86
|
+
"type": "array",
|
|
87
|
+
"minItems": 1,
|
|
88
|
+
"items": { "$ref": "#/$defs/usageCategory" }
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
71
92
|
"taxBasis": {
|
|
72
93
|
"enum": ["net", "gross"],
|
|
73
94
|
"description": "Required by the parser when any conversion starts from fiat (rule 13)."
|
|
@@ -202,6 +223,39 @@
|
|
|
202
223
|
},
|
|
203
224
|
"$defs": {
|
|
204
225
|
"id": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$" },
|
|
226
|
+
"usageCategory": {
|
|
227
|
+
"type": "object",
|
|
228
|
+
"additionalProperties": false,
|
|
229
|
+
"required": ["id", "cost"],
|
|
230
|
+
"properties": {
|
|
231
|
+
"id": { "$ref": "#/$defs/id" },
|
|
232
|
+
"match": {
|
|
233
|
+
"type": "object",
|
|
234
|
+
"additionalProperties": false,
|
|
235
|
+
"description": "Every given field must equal the event's. Of the categories that match, the one with the most fields wins (rule 29).",
|
|
236
|
+
"properties": {
|
|
237
|
+
"kind": { "type": "string", "minLength": 1 },
|
|
238
|
+
"model": { "type": "string", "minLength": 1 },
|
|
239
|
+
"channel": { "type": "string", "minLength": 1 },
|
|
240
|
+
"op": { "type": "string", "minLength": 1 }
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
"cost": {
|
|
244
|
+
"description": "Where the provider cost comes from (rule 29).",
|
|
245
|
+
"oneOf": [
|
|
246
|
+
{ "type": "object", "additionalProperties": false, "required": ["source"], "properties": { "source": { "const": "measured" } } },
|
|
247
|
+
{ "type": "object", "additionalProperties": false, "required": ["source"], "properties": { "source": { "const": "catalog" } } },
|
|
248
|
+
{ "type": "object", "additionalProperties": false, "required": ["source", "amount", "currency"], "properties": { "source": { "const": "fixed" }, "amount": { "type": "number", "minimum": 0 }, "currency": { "$ref": "#/$defs/currency" } } }
|
|
249
|
+
]
|
|
250
|
+
},
|
|
251
|
+
"margin": {
|
|
252
|
+
"oneOf": [{ "type": "number", "exclusiveMinimum": 0 }, { "const": "at-cost" }],
|
|
253
|
+
"description": "A multiplier on the cost, or `at-cost` (margin 1.0, nothing overrides it, rule 31)."
|
|
254
|
+
},
|
|
255
|
+
"marginFloor": { "type": "number", "exclusiveMinimum": 0, "description": "The lowest real margin (price / cost) the category may sell at (rule 35)." },
|
|
256
|
+
"floorMinor": { "type": "integer", "minimum": 0, "description": "Smallest charge per action, minor units of primaryAsset." }
|
|
257
|
+
}
|
|
258
|
+
},
|
|
205
259
|
"featureId": {
|
|
206
260
|
"type": "string",
|
|
207
261
|
"pattern": "^[a-z][a-z0-9_-]*$",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentproto/corpus-cli",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.7",
|
|
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",
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"unpdf": "~1.8.1",
|
|
54
54
|
"zod": "^4.6.7",
|
|
55
55
|
"@agentproto/batch": "0.2.3",
|
|
56
|
+
"@agentproto/corpus-presets": "0.2.21",
|
|
56
57
|
"@agentproto/cli-exec": "0.1.2",
|
|
57
|
-
"@agentproto/corpus": "1.0.
|
|
58
|
-
"@agentproto/corpus-presets": "0.2.20"
|
|
58
|
+
"@agentproto/corpus": "1.0.3"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/node": "^25.9.9",
|