@agentproto/corpus-cli 0.9.1 → 0.9.4

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.
@@ -52,6 +52,12 @@
52
52
  "items": { "$ref": "#/$defs/trigger" },
53
53
  "default": []
54
54
  },
55
+ "routines": {
56
+ "type": "array",
57
+ "items": { "$ref": "#/$defs/routineRef" },
58
+ "default": [],
59
+ "description": "AIP-41 ROUTINE.md routines that fire this workflow (see AIP-15, `Routines`) — the preferred, decoupled form of a `kind: schedule` trigger: one schedule can drive N workflows, one workflow can be driven by N schedules. Each entry follows the `inline | ref | file` pattern. Legacy inline `triggers: [{ kind: schedule }]` remains valid."
60
+ },
55
61
  "requires": {
56
62
  "type": "object",
57
63
  "additionalProperties": false,
@@ -158,6 +164,45 @@
158
164
  }
159
165
  ]
160
166
  },
167
+ "routineRef": {
168
+ "oneOf": [
169
+ {
170
+ "type": "object",
171
+ "required": ["ref"],
172
+ "additionalProperties": false,
173
+ "properties": {
174
+ "ref": {
175
+ "type": "string",
176
+ "minLength": 1,
177
+ "description": "Ref to a published or local ROUTINE.md (AIP-41), e.g. \"@agentik/routines-standard/daily-9am-utc\"."
178
+ }
179
+ }
180
+ },
181
+ {
182
+ "type": "object",
183
+ "required": ["file"],
184
+ "additionalProperties": false,
185
+ "properties": {
186
+ "file": {
187
+ "type": "string",
188
+ "minLength": 1,
189
+ "description": "File path to a ROUTINE.md (AIP-41), relative to this WORKFLOW.md."
190
+ }
191
+ }
192
+ },
193
+ {
194
+ "type": "object",
195
+ "required": ["inline"],
196
+ "additionalProperties": false,
197
+ "properties": {
198
+ "inline": {
199
+ "type": "object",
200
+ "description": "Equivalent to a one-shot ROUTINE.md (AIP-41) declared inside this workflow: `schedule` (required), `target` (required — typically `{ workflow: { ref: \"./\" } }`), optional `identity`, `retry`, `on_failure`, `history`. Shape SHOULD satisfy the AIP-41 ROUTINE.schema.json `$defs`."
201
+ }
202
+ }
203
+ }
204
+ ]
205
+ },
161
206
  "stepCommon": {
162
207
  "type": "object",
163
208
  "required": ["id", "kind"],
@@ -28,6 +28,14 @@
28
28
  },
29
29
  "config": {
30
30
  "type": "object",
31
+ "additionalProperties": true,
32
+ "properties": {
33
+ "installAdapters": {
34
+ "type": "array",
35
+ "items": { "type": "string", "minLength": 1 },
36
+ "description": "Semantic harness slugs to pre-install in the box at boot (e.g. [\"hermes\", \"claude-code\"]). Each expands to @agentproto/adapter-<slug>@latest plus that adapter's declared boot extras; a config.installPackages pin for the same package always wins. Additive — absent means no extra install."
37
+ }
38
+ },
31
39
  "description": "Provider-specific connection fields. Shape varies per provider (see AIP-36 §Provider config shapes)."
32
40
  },
33
41
  "limits": {
@@ -50,6 +58,10 @@
50
58
  "items": { "type": "string" },
51
59
  "default": [],
52
60
  "description": "Static host env-var names to forward into the sandbox."
61
+ },
62
+ "autoPassthrough": {
63
+ "type": "boolean",
64
+ "description": "Opt-in: forward the spawn's resolved billing-credential env-var NAME (e.g. ANTHROPIC_API_KEY) into passthrough so a fresh box inherits host auth without the caller naming vars. Only the name is injected — the value travels via the normal passthrough mechanism."
53
65
  }
54
66
  }
55
67
  },
@@ -2,7 +2,7 @@
2
2
 
3
3
  > **Status:** Draft
4
4
  > **Schema:** `REF.schema.json`
5
- > **Reference runtime:** `@agentproto/ref-catalog`
5
+ > **Reference runtime:** `@agentproto/ref`
6
6
 
7
7
  ## What is a Ref?
8
8
 
@@ -25,7 +25,7 @@ registries.
25
25
  ## Reference runtime
26
26
 
27
27
  ```ts
28
- import { RefCatalog, refFor, refToUri, refFromUri } from "@agentproto/ref-catalog"
28
+ import { RefCatalog, refFor, refToUri, refFromUri } from "@agentproto/ref"
29
29
 
30
30
  const cat = new RefCatalog()
31
31
  cat.registerFamily(42, { family: "app", keyBy: h => h.id! }, appRegistry)
@@ -60,7 +60,7 @@ billingRail:
60
60
  |---|---|---|
61
61
  | `schema` | MUST | `product/v1` |
62
62
  | `id` | MUST | kebab-case |
63
- | `on` | MUST | AIP-54 `ref/v1`. The target AIP needs zero pricing awareness. Hosts MUST refuse unresolvable refs. |
63
+ | `on` | MUST | AIP-54 `ref/v1`. May also be given as the `aip://<aip>/<id>[@version]` string form, which implementations MUST normalize (parse + validate) into `ref/v1` before storing. The target AIP needs zero pricing awareness. Hosts MUST refuse unresolvable refs. |
64
64
  | `price` | MUST | Discriminated on `model`: `one-time` \| `prepaid-pool` \| `pay-per-call`. **Minor units are normative.** |
65
65
  | `billingRail` | MAY | Projection config, never the price's source of truth. See § Billing rails. |
66
66
  | `kind` | MUST | `pricing` (fixed — this AIP defines the pricing capability; future capability kinds may share the pattern). |
@@ -118,7 +118,7 @@ billingRail: { rail: tbd }
118
118
 
119
119
  ```ts
120
120
  import { attachPricing } from "@agentproto/product"
121
- import { refFor } from "@agentproto/ref-catalog"
121
+ import { refFor } from "@agentproto/ref"
122
122
 
123
123
  const cap = attachPricing(refFor(appSpec, appHandle, "1.2.0"), {
124
124
  model: "one-time", amountMinor: 4900, currency: "usd",
@@ -126,7 +126,10 @@ const cap = attachPricing(refFor(appSpec, appHandle, "1.2.0"), {
126
126
  ```
127
127
 
128
128
  "a collection of priced things" = `collectPriced(products, ref =>
129
- catalog.resolve(ref))` — one list, one shape, any target AIP.
129
+ catalog.resolve(ref))` — returns `{resolved, dangling}`: `resolved` pairs
130
+ each product with its resolved target, and `dangling` lists the products
131
+ whose `on` ref did not resolve, so a host can surface them instead of
132
+ having them silently dropped from the collection.
130
133
 
131
134
  ## Residual risks (from dogfooding)
132
135
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentproto/corpus-cli",
3
- "version": "0.9.1",
3
+ "version": "0.9.4",
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",
@@ -51,17 +51,17 @@
51
51
  "dependencies": {
52
52
  "gray-matter": "^4.0.3",
53
53
  "unpdf": "~1.8.1",
54
- "zod": "^4.5.4",
55
- "@agentproto/batch": "0.2.0",
56
- "@agentproto/cli-exec": "0.1.0",
57
- "@agentproto/corpus": "0.7.1",
58
- "@agentproto/corpus-presets": "0.2.9"
54
+ "zod": "^4.6.5",
55
+ "@agentproto/batch": "0.2.2",
56
+ "@agentproto/cli-exec": "0.1.1",
57
+ "@agentproto/corpus": "0.8.0",
58
+ "@agentproto/corpus-presets": "0.2.12"
59
59
  },
60
60
  "devDependencies": {
61
- "@types/node": "^25.6.2",
61
+ "@types/node": "^25.9.5",
62
62
  "tsup": "^8.5.1",
63
63
  "typescript": "^5.9.3",
64
- "vitest": "^3.2.4",
64
+ "vitest": "^3.2.7",
65
65
  "@agentproto/tooling": "0.1.0"
66
66
  },
67
67
  "engines": {