@introspection-ai/recipes 0.36.1 → 0.37.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.
Files changed (143) hide show
  1. package/dist/agents.d.ts.map +1 -1
  2. package/dist/agents.js +46 -11
  3. package/dist/agents.js.map +1 -1
  4. package/dist/ask-user-question.d.ts +82 -0
  5. package/dist/ask-user-question.d.ts.map +1 -0
  6. package/dist/ask-user-question.js +314 -0
  7. package/dist/ask-user-question.js.map +1 -0
  8. package/dist/child/agent-completions.d.ts +2 -1
  9. package/dist/child/agent-completions.d.ts.map +1 -1
  10. package/dist/child/agent-completions.js +4 -3
  11. package/dist/child/agent-completions.js.map +1 -1
  12. package/dist/connector-tools.d.ts.map +1 -1
  13. package/dist/connector-tools.js +10 -2
  14. package/dist/connector-tools.js.map +1 -1
  15. package/dist/documents/index.d.ts +6 -0
  16. package/dist/documents/index.d.ts.map +1 -0
  17. package/dist/documents/index.js +3 -0
  18. package/dist/documents/index.js.map +1 -0
  19. package/dist/documents/module.d.ts +51 -0
  20. package/dist/documents/module.d.ts.map +1 -0
  21. package/dist/documents/module.js +116 -0
  22. package/dist/documents/module.js.map +1 -0
  23. package/dist/documents/tools.d.ts +40 -0
  24. package/dist/documents/tools.d.ts.map +1 -0
  25. package/dist/documents/tools.js +327 -0
  26. package/dist/documents/tools.js.map +1 -0
  27. package/dist/documents/types.d.ts +144 -0
  28. package/dist/documents/types.d.ts.map +1 -0
  29. package/dist/documents/types.js +10 -0
  30. package/dist/documents/types.js.map +1 -0
  31. package/dist/extensions.d.ts +2 -0
  32. package/dist/extensions.d.ts.map +1 -1
  33. package/dist/extensions.js +3 -0
  34. package/dist/extensions.js.map +1 -1
  35. package/dist/interaction-tui.d.ts +1 -1
  36. package/dist/interaction-tui.d.ts.map +1 -1
  37. package/dist/interaction-tui.js +2 -2
  38. package/dist/interaction-tui.js.map +1 -1
  39. package/dist/mcp-chunks/{auth-command-GMMLBU24.js → auth-command-M7TQE3AL.js} +26 -23
  40. package/dist/mcp-chunks/call-arguments-GCXZA4HC.js +16 -0
  41. package/dist/mcp-chunks/{call-command-2VF6IKAZ.js → call-command-7LD7UEFK.js} +33 -33
  42. package/dist/mcp-chunks/{chunk-TYL2NVXI.js → chunk-2AKSS7WR.js} +2 -2
  43. package/dist/mcp-chunks/{chunk-LZUKBEQZ.js → chunk-2YV72LUA.js} +12 -12
  44. package/dist/mcp-chunks/{chunk-2JTXIMGE.js → chunk-3ETUDW7N.js} +1 -1
  45. package/dist/mcp-chunks/{chunk-5UK2JLTN.js → chunk-3FRLDHVD.js} +5 -5
  46. package/dist/mcp-chunks/{chunk-ENBJFQ6H.js → chunk-3HSC6NHZ.js} +1 -1
  47. package/dist/mcp-chunks/{chunk-IHOU2BEL.js → chunk-3LENTPGE.js} +2 -2
  48. package/dist/mcp-chunks/{chunk-ZJWZY54X.js → chunk-3P3KGT4H.js} +2 -2
  49. package/dist/mcp-chunks/{chunk-IMXPLUKE.js → chunk-3SXP4S2A.js} +2 -2
  50. package/dist/mcp-chunks/{chunk-22WCLO4D.js → chunk-5Z6WSV5D.js} +5 -5
  51. package/dist/mcp-chunks/{chunk-QNZGFUKC.js → chunk-63L6SHK3.js} +2 -2
  52. package/dist/mcp-chunks/{chunk-OI3RTQXY.js → chunk-66VSGFXA.js} +1 -1
  53. package/dist/mcp-chunks/{chunk-DUBQHYW4.js → chunk-6O42UGLI.js} +9 -9
  54. package/dist/mcp-chunks/{chunk-R4OYHQ4V.js → chunk-6P3KAQ5N.js} +1 -1
  55. package/dist/mcp-chunks/{chunk-5OO6WVPL.js → chunk-7U5NSQ5T.js} +1 -1
  56. package/dist/mcp-chunks/{chunk-O2C3HXGS.js → chunk-B6S43WID.js} +1 -1
  57. package/dist/mcp-chunks/{chunk-VWPKJFK4.js → chunk-BHXCAVFP.js} +1 -1
  58. package/dist/mcp-chunks/{chunk-WXNGATQ7.js → chunk-BUOGKTKK.js} +2 -1
  59. package/dist/mcp-chunks/{chunk-4U4BUXQD.js → chunk-CXST5CVH.js} +33 -17
  60. package/dist/mcp-chunks/{chunk-YWFQPA4D.js → chunk-DU4SDPEV.js} +2 -2
  61. package/dist/mcp-chunks/{chunk-ZI5XYM4C.js → chunk-E76ZUBOJ.js} +4 -4
  62. package/dist/mcp-chunks/{chunk-D2SZ7KRY.js → chunk-ELHS763C.js} +1 -1
  63. package/dist/mcp-chunks/{chunk-RHXZKYM7.js → chunk-F2X4Y2TQ.js} +1 -1
  64. package/dist/mcp-chunks/{chunk-6XC5JJWD.js → chunk-GTETFUPQ.js} +28 -25
  65. package/dist/mcp-chunks/{chunk-UQUM7ICD.js → chunk-GZ53GNFP.js} +10 -10
  66. package/dist/mcp-chunks/{chunk-LUVLTUKR.js → chunk-H5PBSJP3.js} +1 -1
  67. package/dist/mcp-chunks/{chunk-FLUF2FRN.js → chunk-HNQSUT44.js} +3 -3
  68. package/dist/mcp-chunks/{chunk-CN5KSNWG.js → chunk-I6UFV7RW.js} +1 -1
  69. package/dist/mcp-chunks/{chunk-OSTHIELS.js → chunk-IRARVOUM.js} +1 -1
  70. package/dist/mcp-chunks/{webapi-NNCZGUMZ.js → chunk-IRSL7JRH.js} +255 -249
  71. package/dist/mcp-chunks/{chunk-ZXIF7MKN.js → chunk-IWCVZ46B.js} +2 -2
  72. package/dist/mcp-chunks/{chunk-RZZO3ZD4.js → chunk-JEHI2YU4.js} +3 -3
  73. package/dist/mcp-chunks/{chunk-ANNJGB6F.js → chunk-JTPTAO4M.js} +13 -13
  74. package/dist/mcp-chunks/{chunk-U5QZHPCC.js → chunk-KJ5FPQF6.js} +1 -1
  75. package/dist/mcp-chunks/{chunk-7IVXKYTI.js → chunk-L2MSWQDL.js} +1 -1
  76. package/dist/mcp-chunks/{chunk-DBNBEWRX.js → chunk-MEQXX43K.js} +1 -1
  77. package/dist/mcp-chunks/{chunk-3AAF3FSI.js → chunk-MHUMLEBO.js} +1 -1
  78. package/dist/mcp-chunks/{chunk-HFHIY5TO.js → chunk-N2U2FODH.js} +4 -4
  79. package/dist/mcp-chunks/{chunk-YFCNRWLV.js → chunk-N6YUOYDS.js} +2 -2
  80. package/dist/mcp-chunks/{chunk-C4TJGC4F.js → chunk-O3RTM5HD.js} +1 -1
  81. package/dist/mcp-chunks/{chunk-35LLRCRA.js → chunk-O7SIXJM6.js} +1308 -912
  82. package/dist/mcp-chunks/{chunk-QDFL757K.js → chunk-PSE442BC.js} +91 -77
  83. package/dist/mcp-chunks/{chunk-YPSODIQX.js → chunk-QNXOIF5U.js} +15 -14
  84. package/dist/mcp-chunks/{chunk-RKQC2EE6.js → chunk-RUF27IUF.js} +2 -2
  85. package/dist/mcp-chunks/{chunk-SS7V7GVT.js → chunk-S2F7DDP5.js} +4 -4
  86. package/dist/mcp-chunks/{chunk-D65GOMYV.js → chunk-TC2JPBFB.js} +2 -2
  87. package/dist/mcp-chunks/{chunk-7BVYBZ4J.js → chunk-THRMUZZD.js} +39 -14
  88. package/dist/mcp-chunks/{chunk-P5YLK5G2.js → chunk-UFV6SVQG.js} +11 -11
  89. package/dist/mcp-chunks/{chunk-LISNXOIQ.js → chunk-US63Y6XE.js} +1 -1
  90. package/dist/mcp-chunks/{chunk-BIVX2WFX.js → chunk-UVEZNUN3.js} +285 -322
  91. package/dist/mcp-chunks/{chunk-HI6VG5LR.js → chunk-UVRJ3AAD.js} +2 -2
  92. package/dist/mcp-chunks/{chunk-6TIU2CDB.js → chunk-V42T3QNK.js} +456 -64
  93. package/dist/mcp-chunks/{chunk-347GOMV4.js → chunk-WDWSA7RL.js} +4 -4
  94. package/dist/mcp-chunks/{chunk-4PN2J74H.js → chunk-WQL7FJQ3.js} +4 -4
  95. package/dist/mcp-chunks/{chunk-LRGMFF5S.js → chunk-ZEA3Y5ZD.js} +7 -7
  96. package/dist/mcp-chunks/{cli-4OQD3H4N.js → cli-IYD7Y7MO.js} +67 -67
  97. package/dist/mcp-chunks/client-5MNBV3Z7.js +32 -0
  98. package/dist/mcp-chunks/{config-command-72TCIWPV.js → config-command-6DXILFNO.js} +129 -34
  99. package/dist/mcp-chunks/daemon-command-V3B3EMXD.js +32 -0
  100. package/dist/mcp-chunks/{dist-74UCKZK5.js → dist-Q7WSCBBK.js} +74 -55
  101. package/dist/mcp-chunks/{emit-ts-command-KD4ON2SE.js → emit-ts-command-NDCDFDRM.js} +17 -17
  102. package/dist/mcp-chunks/{generate-cli-runner-HWGI6HPL.js → generate-cli-runner-PW5WJ7KI.js} +136 -92
  103. package/dist/mcp-chunks/generated-daemon-runtime-3C4NWGAU.js +32 -0
  104. package/dist/mcp-chunks/{inspect-cli-command-FT5JSB7V.js → inspect-cli-command-4MGF5CPP.js} +9 -9
  105. package/dist/mcp-chunks/{launch-AHLKP2VM.js → launch-UG7IH27P.js} +1 -1
  106. package/dist/mcp-chunks/{lifecycle-BJDITFWN.js → lifecycle-QBYGUHQ3.js} +1 -1
  107. package/dist/mcp-chunks/{list-command-YKF7RN6Y.js → list-command-SDITI3ZM.js} +36 -35
  108. package/dist/mcp-chunks/{output-utils-LYB5IJRD.js → output-utils-YTMZTA7J.js} +3 -3
  109. package/dist/mcp-chunks/{prompt-CH6TK0bC-B3USYOND.js → prompt-DkftHXS7-N7UENQ4C.js} +1 -1
  110. package/dist/mcp-chunks/{record-command-MJW3Z5E5.js → record-command-JGTMATYI.js} +5 -5
  111. package/dist/mcp-chunks/{replay-command-5ZHBUOLE.js → replay-command-S2VAC4RW.js} +6 -6
  112. package/dist/mcp-chunks/{resource-command-L4I24AX5.js → resource-command-SRFQQROJ.js} +9 -9
  113. package/dist/mcp-chunks/{result-utils-5WRI66KV.js → result-utils-JASGNHXK.js} +3 -3
  114. package/dist/mcp-chunks/runtime-RMI3XCYJ.js +39 -0
  115. package/dist/mcp-chunks/{runtime-wrapper-WFMNIHD5.js → runtime-wrapper-7HYO3NM5.js} +3 -3
  116. package/dist/mcp-chunks/{serve-command-KNCSJUXS.js → serve-command-UF5SVREV.js} +1111 -697
  117. package/dist/mcp-chunks/{timeouts-2ZHGSB3R.js → timeouts-BJWDJEMH.js} +3 -3
  118. package/dist/mcp-chunks/{vault-command-7EDL45AA.js → vault-command-EYOIFWEY.js} +5 -4
  119. package/dist/mcp-chunks/webapi-WMMA3OEC.js +82 -0
  120. package/dist/mcp-daemon.js +28 -27
  121. package/dist/mcp-run-worker.js +28 -27
  122. package/dist/pi-extension.d.ts.map +1 -1
  123. package/dist/pi-extension.js +6 -0
  124. package/dist/pi-extension.js.map +1 -1
  125. package/dist/recipe/package.d.ts +7 -0
  126. package/dist/recipe/package.d.ts.map +1 -1
  127. package/dist/recipe/package.js +69 -0
  128. package/dist/recipe/package.js.map +1 -1
  129. package/dist/session.d.ts.map +1 -1
  130. package/dist/session.js +6 -0
  131. package/dist/session.js.map +1 -1
  132. package/docs/agent-composition.md +8 -0
  133. package/docs/documents.md +249 -0
  134. package/docs/index.md +1 -0
  135. package/docs/interactions.md +76 -8
  136. package/docs/mcp-configuration.md +10 -5
  137. package/docs/recipe-format.md +69 -1
  138. package/package.json +10 -6
  139. package/dist/mcp-chunks/call-arguments-WSURHOLV.js +0 -16
  140. package/dist/mcp-chunks/client-LXKCCVMT.js +0 -31
  141. package/dist/mcp-chunks/daemon-command-QHS3ACBM.js +0 -31
  142. package/dist/mcp-chunks/generated-daemon-runtime-7ORS5KBR.js +0 -31
  143. package/dist/mcp-chunks/runtime-IKWDQLZF.js +0 -38
@@ -5,13 +5,81 @@ asking the user a question or requesting approval that works on every Pi host:
5
5
  the local TUI, RPC-driven UIs, headless runs, and hosts that stream tool
6
6
  results to a remote frontend and can pause/resume a run.
7
7
 
8
- The module registers no tools. Recipes own their interaction tools — their
9
- names, schemas, and prompts — and call `askUserQuestion()` or
10
- `askUserApproval()` from the tool's `execute()`. Those helpers build the
11
- `details.interrupt` request, local Pi dialog copy, and host metadata. Use raw
12
- `askUser()` only when a tool needs a lower-level interaction shape.
8
+ Most Recipes need only the built-in `ask_user_question` tool: list it in an
9
+ agent's `tools` (see below). The module itself registers no tools. A Recipe
10
+ that needs its own interaction tool — its own name, schema, and prompt — calls
11
+ `askUserQuestion()` or `askUserApproval()` from the tool's `execute()`. Those
12
+ helpers build the `details.interrupt` request, local Pi dialog copy, and host
13
+ metadata. Use raw `askUser()` only when a tool needs a lower-level interaction
14
+ shape.
15
+
16
+ ## The built-in `ask_user_question` tool
17
+
18
+ List `ask_user_question` in an agent's `tools` and the host registers it for
19
+ that agent; agents that do not list it never see it.
20
+
21
+ ```yaml
22
+ name: agent
23
+ ai:
24
+ model: anthropic/claude-sonnet-4-5
25
+ tools: [read, bash, ask_user_question]
26
+ ```
27
+
28
+ Its inputs mirror Claude Code's `AskUserQuestion`, so models use it without
29
+ extra prompting:
30
+
31
+ ```ts
32
+ ask_user_question({
33
+ questions: [ // 1 to 4
34
+ {
35
+ question: string, // the full question, ending in "?"
36
+ header: string, // short label, at most 12 characters
37
+ options: [ // 2 to 4
38
+ { label: string, description?: string }
39
+ ],
40
+ multiSelect?: boolean
41
+ }
42
+ ]
43
+ })
44
+ ```
45
+
46
+ The model never adds an "Other" option: the user can always give their own
47
+ answer. The tool description carries the usage guidance (one decision per
48
+ question, short enough to read aloud, enough context that a bare option makes
49
+ sense, no options inside the question text, no "change it" option on
50
+ approvals, and prefer the tool over asking in plain text).
51
+
52
+ How each host renders it:
53
+
54
+ | Host | Rendering | Result the model sees |
55
+ | --- | --- | --- |
56
+ | Pi terminal (TUI) and RPC | One dialog per question, in order. Options are numbered (numbers the model put in labels are stripped), with descriptions after the label, and a last option, `Something else — I'll type it`, opens a text input. `multiSelect` uses the toggle list in the TUI and a toggle-then-`Done` selector over RPC. | One line per question, `<header>: <answer>` (several answers joined with `, `), and `details.questions` / `details.answers` with each answer. |
57
+ | Pause/resume host (`PI_INTERRUPT_RESUME`) | The tool returns the `details.interrupt` request from `askUserQuestion()` with bare option labels and their descriptions, `metadata.header` and `metadata.question`; the host renders its own option list and free-text answer. | The host's resume envelope, for example `Answer: Email link`. |
58
+ | Headless (`PI_ASK_USER_AUTO_APPROVE`) and child agents | Nothing is shown; every question declines. | `<header>: (no answer)` per question, then an instruction to proceed with best judgment. |
59
+ | No channel | Nothing is shown. | The unavailable envelope, telling the model to ask in its reply. |
60
+
61
+ The built-in tool reads `PI_INTERRUPT_RESUME` and `PI_ASK_USER_AUTO_APPROVE`
62
+ from the session's environment, the `env` passed to `createAgentSession()` or
63
+ `createRecipesExtension()`, and falls back to `process.env` when none is given.
64
+ A Recipe's own tool can do the same by passing `env` to the helpers.
65
+
66
+ A pause carries one interrupt per tool call, so on a pause/resume host the
67
+ schema asks for one question per call and the description tells the model to
68
+ make one call per question in the same turn; the host collects them into one
69
+ pause. A call that still carries several questions shows nothing and returns
70
+ text asking the model to split it.
71
+
72
+ If a Recipe extension registers its own `ask_user_question`, the host keeps
73
+ it and skips the built-in tool, so a Recipe can migrate at its own pace.
74
+
75
+ ### Skills shared with other hosts
76
+
77
+ A skill that also runs in Claude Code or another host should not name one
78
+ host's tool as the only way to ask. Write, for example: "Ask with the host's
79
+ question tool (`ask_user_question` here, `AskUserQuestion` in Claude Code);
80
+ otherwise ask with numbered options in text."
13
81
 
14
- ## Quick start
82
+ ## Writing your own interaction tool
15
83
 
16
84
  ```ts
17
85
  import { Type } from "typebox";
@@ -20,8 +88,8 @@ import { askUserQuestion } from "@introspection-ai/recipes/interactions";
20
88
 
21
89
  export default function (pi: ExtensionAPI) {
22
90
  pi.registerTool({
23
- name: "ask_user_question",
24
- label: "Ask user",
91
+ name: "clarify",
92
+ label: "Clarify",
25
93
  description: "Ask the user a clarifying question and wait for the answer.",
26
94
  parameters: Type.Object({
27
95
  question: Type.String(),
@@ -155,11 +155,16 @@ endpoint or credential; Recipe validation rejects local configuration. Commit
155
155
  `.pi/mcp.local.example.json` when a binding template is helpful.
156
156
 
157
157
  The one committed form validation accepts is an evaluation binding: every
158
- server is `streamable_http` to a loopback URL (`http://localhost:<port>/...`,
159
- `127.0.0.0/8` or `::1`) with no `auth` flow and no `command`. Such a file can
160
- only stand a fake that runs beside the Recipe in for a declared server, so it
161
- distributes nothing reachable elsewhere; a host that runs evaluations reads it
162
- in place of its own bindings for the ids it names. An environment reference in
158
+ server is an id `package.json` declares, named once, `streamable_http` to a
159
+ loopback URL (`http://localhost:<port>/...`, `127.0.0.0/8` or `::1`) or a
160
+ single-label host such as a compose service (`http://fakes:7353/<id>/mcp`),
161
+ with no `auth` flow and no `command`. Such a file can only stand a fake that
162
+ runs beside the Recipe in for a declared server, so it distributes nothing
163
+ reachable elsewhere: a name without a dot resolves only on the evaluation's own
164
+ network. A host that runs evaluations reads it in place of its own bindings for
165
+ the ids it names. An id the package does not declare would be ignored at run
166
+ time, so validation rejects it rather than let a misspelling fall through to the
167
+ live endpoint. An environment reference in
163
168
  the URL is not expanded in a committed binding, so write the literal loopback
164
169
  address. A host binds its own endpoint and credential system to the same
165
170
  shape. A binding overrides a package-manifest endpoint with the same id,
@@ -128,6 +128,11 @@ are enabled. Incoming turns then require a successful final `reply`, so an
128
128
  enabled command allowlist must include `reply`. Set `requireReply: false` for
129
129
  intentional silence, such as a read-only allowlist. See [Channel tools](channels.md).
130
130
 
131
+ `pi.documents` lists the document formats the `documents` tool opens, each as
132
+ `{"format": "<format>"}` with the package
133
+ `@introspection-ai/recipe-documents-<format>` as a dependency, and an optional
134
+ `commands` allowlist. See [Document tools](documents.md).
135
+
131
136
  ## Agents
132
137
 
133
138
  `pi.agents` may declare YAML agent definitions explicitly. When omitted,
@@ -273,7 +278,8 @@ own Pi runtime. Interactive Pi keeps one extension runtime for the selected
273
278
  Recipe launch and does not retry a partially failed closure without rebuilding
274
279
  that runtime. Extension load failures stop the agent before a model call.
275
280
  Recipe extensions MUST NOT override host or Pi built-in tool names; use a
276
- distinct tool name when behavior differs. Extension code retains its non-tool
281
+ distinct tool name when behavior differs. The one exception is
282
+ `ask_user_question` (see [Tools](#tools-subagents-and-capabilities)). Extension code retains its non-tool
277
283
  behavior even when none of its tools appear in the selected agent's `tools`
278
284
  allowlist.
279
285
 
@@ -289,6 +295,23 @@ hook execution.
289
295
  `tools` is an allowlist. A host MUST expose no undeclared Pi or extension tool
290
296
  through this field.
291
297
 
298
+ Besides Pi's own tools (`read`, `bash`, `edit`, `write`, `grep`, `find`,
299
+ `ls`), Recipes provides these built-in tools, available only to an agent that
300
+ lists them in `tools`:
301
+
302
+ | Tool | What it does |
303
+ | --- | --- |
304
+ | `ask_user_question` | Asks the user one to four multiple-choice questions and waits for the answers; the user can always type their own answer. Works in Pi's terminal, on pause/resume hosts and headless. See [Interactions](interactions.md#the-built-in-ask_user_question-tool). |
305
+
306
+ ```yaml
307
+ tools: [read, bash, ask_user_question]
308
+ ```
309
+
310
+ If a Recipe extension registers its own `ask_user_question`, the host keeps
311
+ the Recipe's tool and does not register the built-in one. This exception to
312
+ the rule below lets a Recipe migrate from its own question tool without a
313
+ coordinated release; new Recipes list the built-in tool instead.
314
+
292
315
  `subagents` names agents the selected agent may invoke. A host MUST expose only
293
316
  those resolved definitions through the shared `agent` tool. How child work is
294
317
  scheduled or isolated belongs to the host.
@@ -373,6 +396,51 @@ TypeScript extensions execute inside the Pi process with its authority. A host
373
396
  that accepts third-party Recipes MUST review or isolate them before execution;
374
397
  the format and Host API are not a sandbox boundary.
375
398
 
399
+ ## Evaluations
400
+
401
+ A Recipe's evaluations live under `evals/` by default:
402
+
403
+ ```text
404
+ evals/
405
+ vitest/ vitest-evals suites
406
+ harbor/<task>/ one Harbor task per folder
407
+ lib/ code shared by several tasks or suites
408
+ sources/ pinned generators of derived eval data
409
+ fakes/<server>/ MCP fakes and their scenarios
410
+ ```
411
+
412
+ `pi.evals` is optional and overrides those locations. Absent, hosts and tools
413
+ discover `evals/vitest` and `evals/harbor` when they exist.
414
+
415
+ ```json
416
+ {
417
+ "pi": {
418
+ "evals": {
419
+ "suites": [
420
+ { "type": "harbor", "path": "evals/harbor" },
421
+ { "type": "vitest", "path": "evals/vitest" }
422
+ ],
423
+ "lib": "evals/lib",
424
+ "sources": "evals/sources",
425
+ "fakes": "evals/fakes"
426
+ }
427
+ }
428
+ }
429
+ ```
430
+
431
+ `suites[].type` is `harbor` or `vitest`; several suites of one type may exist,
432
+ and no two share a path. Every path is Recipe-relative, uses `/`, and stays
433
+ inside the package. Unknown keys are errors.
434
+
435
+ Nothing eval-only reaches a running agent: every suite, `lib`, `sources` and
436
+ `fakes` path MUST be excluded by `.recipeignore` (a single `evals/` line does
437
+ it), and in a Harbor trial only a task's `environment/` reaches the agent.
438
+ Hosts accept `pi.evals` without reading it; it is for evaluation tooling and
439
+ `recipe-check`. `recipe-check` warns about eval paths missing from `.recipeignore`
440
+ for every Recipe, and checks the rest of the layout (Harbor task folders, eval
441
+ files outside the eval paths) only for a Recipe that declares `pi.evals`; an
442
+ empty `{}` adopts those checks with the default paths.
443
+
376
444
  ## Conformance
377
445
 
378
446
  There are two conformance layers:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@introspection-ai/recipes",
3
- "version": "0.36.1",
3
+ "version": "0.37.0",
4
4
  "description": "The open format for vertical agents, built on Pi.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -66,6 +66,10 @@
66
66
  "types": "./dist/channels/index.d.ts",
67
67
  "import": "./dist/channels/index.js"
68
68
  },
69
+ "./documents": {
70
+ "types": "./dist/documents/index.d.ts",
71
+ "import": "./dist/documents/index.js"
72
+ },
69
73
  "./test-utils": {
70
74
  "types": "./dist/test-utils.d.ts",
71
75
  "import": "./dist/test-utils.js"
@@ -84,7 +88,7 @@
84
88
  "@introspection-sdk/introspection-pi": "^0.35.0",
85
89
  "@opentelemetry/api": "^1.9.1",
86
90
  "ajv": "^8.20.0",
87
- "mcporter": "0.15.0",
91
+ "mcporter": "0.16.1",
88
92
  "yaml": "^2.9.0"
89
93
  },
90
94
  "peerDependencies": {
@@ -106,10 +110,10 @@
106
110
  "vitest": "^5.0.1"
107
111
  },
108
112
  "optionalDependencies": {
109
- "@introspection-ai/mcp-client-linux-x64": "0.36.1",
110
- "@introspection-ai/mcp-client-linux-arm64": "0.36.1",
111
- "@introspection-ai/mcp-client-darwin-arm64": "0.36.1",
112
- "@introspection-ai/mcp-client-darwin-x64": "0.36.1"
113
+ "@introspection-ai/mcp-client-linux-x64": "0.37.0",
114
+ "@introspection-ai/mcp-client-linux-arm64": "0.37.0",
115
+ "@introspection-ai/mcp-client-darwin-arm64": "0.37.0",
116
+ "@introspection-ai/mcp-client-darwin-x64": "0.37.0"
113
117
  },
114
118
  "scripts": {
115
119
  "build": "pnpm build:ts && pnpm build:native",
@@ -1,16 +0,0 @@
1
- import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
- import {
3
- parseCallArguments
4
- } from "./chunk-ANNJGB6F.js";
5
- import "./chunk-LUVLTUKR.js";
6
- import "./chunk-D65GOMYV.js";
7
- import "./chunk-7IVXKYTI.js";
8
- import "./chunk-LISNXOIQ.js";
9
- import "./chunk-DBNBEWRX.js";
10
- import "./chunk-DUBQHYW4.js";
11
- import "./chunk-T4MQCFIK.js";
12
- import "./chunk-VWPKJFK4.js";
13
- import "./chunk-LRKZP7DJ.js";
14
- export {
15
- parseCallArguments
16
- };
@@ -1,31 +0,0 @@
1
- import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
- import {
3
- DaemonClient,
4
- resolveDaemonPaths
5
- } from "./chunk-6XC5JJWD.js";
6
- import "./chunk-QDFL757K.js";
7
- import "./chunk-R4OYHQ4V.js";
8
- import "./chunk-RHXZKYM7.js";
9
- import "./chunk-TYL2NVXI.js";
10
- import "./chunk-LZUKBEQZ.js";
11
- import "./chunk-7BVYBZ4J.js";
12
- import "./chunk-6TIU2CDB.js";
13
- import "./chunk-C4TJGC4F.js";
14
- import "./chunk-2JTXIMGE.js";
15
- import "./chunk-YPSODIQX.js";
16
- import "./chunk-DUBQHYW4.js";
17
- import "./chunk-4U4BUXQD.js";
18
- import "./chunk-5OO6WVPL.js";
19
- import "./chunk-IHOU2BEL.js";
20
- import "./chunk-RZZO3ZD4.js";
21
- import "./chunk-ZXIF7MKN.js";
22
- import "./chunk-T4MQCFIK.js";
23
- import "./chunk-VWPKJFK4.js";
24
- import "./chunk-3AAF3FSI.js";
25
- import "./chunk-HI6VG5LR.js";
26
- import "./chunk-35LLRCRA.js";
27
- import "./chunk-LRKZP7DJ.js";
28
- export {
29
- DaemonClient,
30
- resolveDaemonPaths
31
- };
@@ -1,31 +0,0 @@
1
- import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
- import {
3
- handleDaemonCli
4
- } from "./chunk-P5YLK5G2.js";
5
- import "./chunk-O2C3HXGS.js";
6
- import "./chunk-6XC5JJWD.js";
7
- import "./chunk-QDFL757K.js";
8
- import "./chunk-R4OYHQ4V.js";
9
- import "./chunk-RHXZKYM7.js";
10
- import "./chunk-TYL2NVXI.js";
11
- import "./chunk-LZUKBEQZ.js";
12
- import "./chunk-7BVYBZ4J.js";
13
- import "./chunk-6TIU2CDB.js";
14
- import "./chunk-C4TJGC4F.js";
15
- import "./chunk-2JTXIMGE.js";
16
- import "./chunk-YPSODIQX.js";
17
- import "./chunk-DUBQHYW4.js";
18
- import "./chunk-4U4BUXQD.js";
19
- import "./chunk-5OO6WVPL.js";
20
- import "./chunk-IHOU2BEL.js";
21
- import "./chunk-RZZO3ZD4.js";
22
- import "./chunk-ZXIF7MKN.js";
23
- import "./chunk-T4MQCFIK.js";
24
- import "./chunk-VWPKJFK4.js";
25
- import "./chunk-3AAF3FSI.js";
26
- import "./chunk-HI6VG5LR.js";
27
- import "./chunk-35LLRCRA.js";
28
- import "./chunk-LRKZP7DJ.js";
29
- export {
30
- handleDaemonCli
31
- };
@@ -1,31 +0,0 @@
1
- import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
- import {
3
- createGeneratedKeepAliveRuntime
4
- } from "./chunk-SS7V7GVT.js";
5
- import "./chunk-FLUF2FRN.js";
6
- import "./chunk-6XC5JJWD.js";
7
- import "./chunk-QDFL757K.js";
8
- import "./chunk-R4OYHQ4V.js";
9
- import "./chunk-RHXZKYM7.js";
10
- import "./chunk-TYL2NVXI.js";
11
- import "./chunk-LZUKBEQZ.js";
12
- import "./chunk-7BVYBZ4J.js";
13
- import "./chunk-6TIU2CDB.js";
14
- import "./chunk-C4TJGC4F.js";
15
- import "./chunk-2JTXIMGE.js";
16
- import "./chunk-YPSODIQX.js";
17
- import "./chunk-DUBQHYW4.js";
18
- import "./chunk-4U4BUXQD.js";
19
- import "./chunk-5OO6WVPL.js";
20
- import "./chunk-IHOU2BEL.js";
21
- import "./chunk-RZZO3ZD4.js";
22
- import "./chunk-ZXIF7MKN.js";
23
- import "./chunk-T4MQCFIK.js";
24
- import "./chunk-VWPKJFK4.js";
25
- import "./chunk-3AAF3FSI.js";
26
- import "./chunk-HI6VG5LR.js";
27
- import "./chunk-35LLRCRA.js";
28
- import "./chunk-LRKZP7DJ.js";
29
- export {
30
- createGeneratedKeepAliveRuntime
31
- };
@@ -1,38 +0,0 @@
1
- import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
- import {
3
- callOnce,
4
- createRuntime
5
- } from "./chunk-QDFL757K.js";
6
- import "./chunk-R4OYHQ4V.js";
7
- import "./chunk-RHXZKYM7.js";
8
- import "./chunk-TYL2NVXI.js";
9
- import "./chunk-LZUKBEQZ.js";
10
- import "./chunk-7BVYBZ4J.js";
11
- import "./chunk-6TIU2CDB.js";
12
- import "./chunk-C4TJGC4F.js";
13
- import "./chunk-2JTXIMGE.js";
14
- import {
15
- MCPORTER_VERSION
16
- } from "./chunk-YPSODIQX.js";
17
- import "./chunk-DUBQHYW4.js";
18
- import "./chunk-4U4BUXQD.js";
19
- import "./chunk-5OO6WVPL.js";
20
- import {
21
- readJsonFile,
22
- writeJsonFile
23
- } from "./chunk-IHOU2BEL.js";
24
- import "./chunk-RZZO3ZD4.js";
25
- import "./chunk-ZXIF7MKN.js";
26
- import "./chunk-T4MQCFIK.js";
27
- import "./chunk-VWPKJFK4.js";
28
- import "./chunk-3AAF3FSI.js";
29
- import "./chunk-HI6VG5LR.js";
30
- import "./chunk-35LLRCRA.js";
31
- import "./chunk-LRKZP7DJ.js";
32
- export {
33
- MCPORTER_VERSION,
34
- callOnce,
35
- createRuntime,
36
- readJsonFile,
37
- writeJsonFile
38
- };