@introspection-ai/recipes 0.39.0 → 0.41.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 (98) hide show
  1. package/README.md +5 -2
  2. package/dist/artifact-viewer-tui.d.ts +74 -0
  3. package/dist/artifact-viewer-tui.d.ts.map +1 -0
  4. package/dist/artifact-viewer-tui.js +179 -0
  5. package/dist/artifact-viewer-tui.js.map +1 -0
  6. package/dist/artifact-viewer.d.ts +148 -0
  7. package/dist/artifact-viewer.d.ts.map +1 -0
  8. package/dist/artifact-viewer.js +538 -0
  9. package/dist/artifact-viewer.js.map +1 -0
  10. package/dist/ask-user-question.d.ts +5 -1
  11. package/dist/ask-user-question.d.ts.map +1 -1
  12. package/dist/ask-user-question.js +43 -10
  13. package/dist/ask-user-question.js.map +1 -1
  14. package/dist/channels/index.d.ts +2 -2
  15. package/dist/channels/index.d.ts.map +1 -1
  16. package/dist/channels/index.js +1 -1
  17. package/dist/channels/index.js.map +1 -1
  18. package/dist/channels/module.d.ts +18 -0
  19. package/dist/channels/module.d.ts.map +1 -1
  20. package/dist/channels/module.js +6 -0
  21. package/dist/channels/module.js.map +1 -1
  22. package/dist/connector-tools.d.ts +4 -0
  23. package/dist/connector-tools.d.ts.map +1 -1
  24. package/dist/connector-tools.js +27 -11
  25. package/dist/connector-tools.js.map +1 -1
  26. package/dist/documents/index.d.ts +2 -2
  27. package/dist/documents/index.d.ts.map +1 -1
  28. package/dist/documents/index.js +1 -1
  29. package/dist/documents/index.js.map +1 -1
  30. package/dist/documents/module.d.ts +28 -4
  31. package/dist/documents/module.d.ts.map +1 -1
  32. package/dist/documents/module.js +34 -24
  33. package/dist/documents/module.js.map +1 -1
  34. package/dist/inspect.d.ts +3 -0
  35. package/dist/inspect.d.ts.map +1 -1
  36. package/dist/inspect.js +2 -0
  37. package/dist/inspect.js.map +1 -1
  38. package/dist/interaction-tui.d.ts +25 -3
  39. package/dist/interaction-tui.d.ts.map +1 -1
  40. package/dist/interaction-tui.js +145 -31
  41. package/dist/interaction-tui.js.map +1 -1
  42. package/dist/interactions.d.ts.map +1 -1
  43. package/dist/interactions.js +5 -0
  44. package/dist/interactions.js.map +1 -1
  45. package/dist/mcp-chunks/{chunk-ZK2E4S7E.js → chunk-EZKOZO3F.js} +2005 -0
  46. package/dist/mcp-daemon.js +1 -1
  47. package/dist/mcp-run-worker.js +1 -1
  48. package/dist/pi-extension.d.ts.map +1 -1
  49. package/dist/pi-extension.js +62 -4
  50. package/dist/pi-extension.js.map +1 -1
  51. package/dist/recipe/companions.d.ts +68 -0
  52. package/dist/recipe/companions.d.ts.map +1 -0
  53. package/dist/recipe/companions.js +149 -0
  54. package/dist/recipe/companions.js.map +1 -0
  55. package/dist/recipe/extensions.d.ts +6 -0
  56. package/dist/recipe/extensions.d.ts.map +1 -1
  57. package/dist/recipe/extensions.js +51 -14
  58. package/dist/recipe/extensions.js.map +1 -1
  59. package/dist/recipe/package.d.ts +60 -11
  60. package/dist/recipe/package.d.ts.map +1 -1
  61. package/dist/recipe/package.js +179 -81
  62. package/dist/recipe/package.js.map +1 -1
  63. package/dist/recipe/python.d.ts +16 -5
  64. package/dist/recipe/python.d.ts.map +1 -1
  65. package/dist/recipe/python.js +41 -31
  66. package/dist/recipe/python.js.map +1 -1
  67. package/dist/recipe/resolve.d.ts.map +1 -1
  68. package/dist/recipe/resolve.js +30 -16
  69. package/dist/recipe/resolve.js.map +1 -1
  70. package/dist/recipe/skills-prompt.d.ts +29 -1
  71. package/dist/recipe/skills-prompt.d.ts.map +1 -1
  72. package/dist/recipe/skills-prompt.js +42 -1
  73. package/dist/recipe/skills-prompt.js.map +1 -1
  74. package/dist/recipe/skills.d.ts +28 -1
  75. package/dist/recipe/skills.d.ts.map +1 -1
  76. package/dist/recipe/skills.js +63 -11
  77. package/dist/recipe/skills.js.map +1 -1
  78. package/dist/recipe/suggestions.d.ts +58 -0
  79. package/dist/recipe/suggestions.d.ts.map +1 -0
  80. package/dist/recipe/suggestions.js +157 -0
  81. package/dist/recipe/suggestions.js.map +1 -0
  82. package/dist/session.d.ts +5 -1
  83. package/dist/session.d.ts.map +1 -1
  84. package/dist/session.js +19 -4
  85. package/dist/session.js.map +1 -1
  86. package/dist/suggestion-picker.d.ts +30 -0
  87. package/dist/suggestion-picker.d.ts.map +1 -0
  88. package/dist/suggestion-picker.js +124 -0
  89. package/dist/suggestion-picker.js.map +1 -0
  90. package/docs/agent-composition.md +2 -2
  91. package/docs/channels.md +55 -11
  92. package/docs/documents.md +77 -17
  93. package/docs/host-api.md +3 -0
  94. package/docs/interactions.md +1 -1
  95. package/docs/pi-extension.md +41 -0
  96. package/docs/recipe-format.md +225 -63
  97. package/docs/slack.md +4 -5
  98. package/package.json +16 -7
@@ -86,53 +86,6 @@ partial version, or another manager. A Recipe installs with pnpm, so
86
86
  read. An npm lockfile left in the tree MUST still carry the same package name
87
87
  and version as `package.json`.
88
88
 
89
- ## Channel tools
90
-
91
- `pi.channels` declares official provider tools that the host may register for
92
- the Recipe. The declaration does not contain a connector ID, workspace ID, or
93
- credential. A host binds those values when it starts a task.
94
-
95
- ```json
96
- {
97
- "dependencies": {
98
- "@introspection-ai/recipe-channel-slack": ">=0.4.0 <1.0.0"
99
- },
100
- "pi": {
101
- "channels": [
102
- {
103
- "provider": "slack"
104
- }
105
- ]
106
- }
107
- }
108
- ```
109
-
110
- Each provider may appear once. The host derives the package name from the
111
- provider. For example, `slack` resolves to
112
- `@introspection-ai/recipe-channel-slack`. The package owns its tool catalog
113
- and marks which tools are active by default.
114
-
115
- The provider package must be in the Recipe's production dependencies and
116
- lockfile. The host imports the package only when the Recipe declares the
117
- provider. An agent lists each allowed tool by its full name, such as
118
- `channels`, in its `tools` list. The host fails when the agent names a
119
- tool that the connector does not register.
120
-
121
- Chat providers share one connector shape. A channel connector registers the
122
- provider-neutral `channels` tool with commands for supported operations. An
123
- optional `commands` array on the connector restricts these operations for all
124
- agents using it, for example `{"provider":"slack","commands":["read","reply"]}`.
125
- Omitting it allows supported commands; an empty list exposes no channel tool.
126
- `requireReply` is an optional boolean that defaults to `true` when channel tools
127
- are enabled. Incoming turns then require a successful final `reply`, so an
128
- enabled command allowlist must include `reply`. Set `requireReply: false` for
129
- intentional silence, such as a read-only allowlist. See [Channel tools](channels.md).
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
-
136
89
  ## Agents
137
90
 
138
91
  `pi.agents` may declare YAML agent definitions explicitly. When omitted,
@@ -143,7 +96,7 @@ Recipe MUST contain at least one agent.
143
96
  name: agent
144
97
  description: Produce a sourced research brief.
145
98
  ai:
146
- model: openrouter/anthropic/claude-sonnet-4.5
99
+ model: <provider>/<model> # one Pi has credentials for: pi --list-models
147
100
  thinking_level: high
148
101
  options:
149
102
  max_tokens: 4096
@@ -228,6 +181,93 @@ The default agent is named `agent`. If no `agent` exists, a host MAY select the
228
181
  only declared agent. When multiple agents exist without `agent`, the caller
229
182
  MUST select one explicitly.
230
183
 
184
+ ## First-party packages
185
+
186
+ Some tools come from packages we publish: **channel tools**
187
+ (`@introspection-ai/recipe-channel-<provider>`, such as Slack) and
188
+ **document tools** (`@introspection-ai/recipe-documents-<format>`, docx and
189
+ pdf). A Recipe turns one on with a `pi` declaration.
190
+
191
+ These are **companion packages**: Recipes installs them alongside itself, as
192
+ its `optionalDependencies`, so wherever Recipes is installed (Pi, a runtime
193
+ image, npm) they are there too.
194
+
195
+ - **Declare them as peers by default**, or omit them. The Recipe then uses the
196
+ copy beside the running Recipes and never brings a second one.
197
+ - **Pin one only when needed**, by listing it in `dependencies` with an exact
198
+ version. The Recipe's own copy then wins.
199
+ - **Any other package** the Recipe uses is a `dependency`, unless the platform
200
+ running it provides that package, in which case it is a peer. `recipes check`
201
+ warns about a peer a standard platform does not provide.
202
+
203
+ A package can also ship skills a Recipe uses; see
204
+ [Shipping skills in a package](#shipping-skills-in-a-package).
205
+ [Channel tools](channels.md) and [Document tools](documents.md) show full
206
+ examples, and how a loaded package is checked against the running Recipes.
207
+
208
+ ### Channel tools
209
+
210
+ `pi.channels` declares official provider tools that the host may register for
211
+ the Recipe. The declaration does not contain a connector ID, workspace ID, or
212
+ credential. A host binds those values when it starts a task.
213
+
214
+ ```json
215
+ {
216
+ "pi": {
217
+ "channels": [
218
+ {
219
+ "provider": "slack"
220
+ }
221
+ ]
222
+ }
223
+ }
224
+ ```
225
+
226
+ Each provider may appear once. The host derives the package name from the
227
+ provider. For example, `slack` resolves to
228
+ `@introspection-ai/recipe-channel-slack`. The package owns its tool catalog
229
+ and marks which tools are active by default.
230
+
231
+ The Slack package is a companion package (see above). The host imports it
232
+ only when the Recipe declares the provider. An agent lists each allowed tool by its full name, such as
233
+ `channels`, in its `tools` list. The host fails when the agent names a
234
+ tool that the connector does not register.
235
+
236
+ Chat providers share one connector shape. A channel connector registers the
237
+ provider-neutral `channels` tool with commands for supported operations. An
238
+ optional `commands` array on the connector restricts these operations for all
239
+ agents using it, for example `{"provider":"slack","commands":["read","reply"]}`.
240
+ Omitting it allows supported commands; an empty list exposes no channel tool.
241
+ `requireReply` is an optional boolean that defaults to `true` when channel tools
242
+ are enabled. Incoming turns then require a successful final `reply`, so an
243
+ enabled command allowlist must include `reply`. Set `requireReply: false` for
244
+ intentional silence, such as a read-only allowlist. See [Channel tools](channels.md).
245
+
246
+ ### Document tools
247
+
248
+ `pi.documents` lists the document formats the `documents` tool opens, each as
249
+ `{"format": "<format>"}` served by the companion package
250
+ `@introspection-ai/recipe-documents-<format>`, with an optional `commands`
251
+ allowlist and `profile`. A profile is a skill with guidance for one
252
+ kind of work, such as `legal-redlining-en-US`, which the docx package ships.
253
+
254
+ ```json
255
+ {
256
+ "peerDependencies": {
257
+ "@introspection-ai/recipe-documents-docx": ">=X.Y.Z",
258
+ "@introspection-ai/recipe-documents-pdf": ">=X.Y.Z"
259
+ },
260
+ "pi": {
261
+ "documents": [
262
+ { "format": "docx", "profile": "legal-redlining-en-US" },
263
+ { "format": "pdf" }
264
+ ]
265
+ }
266
+ }
267
+ ```
268
+
269
+ See [Document tools](documents.md).
270
+
231
271
  ## Judges
232
272
 
233
273
  A Recipe MAY include portable LLM grading definitions as direct `.yaml` or
@@ -253,14 +293,72 @@ prompt when the selected agent has model-invocable skills and a `read` or
253
293
  `bash` tool.
254
294
 
255
295
  Skills follow the [Agent Skills](https://agentskills.io) directory convention
256
- and are selected from the resources declared by `pi.skills`. A skill is named
257
- by its `SKILL.md` frontmatter `name`, then by its containing directory; a
258
- root-level unnamed `SKILL.md` uses the portable fallback name `skill`.
296
+ and are selected from the resources declared by `pi.skills` and by the
297
+ Recipe's dependencies (see [Shipping skills in a package](#shipping-skills-in-a-package)).
298
+ A skill is named by its `SKILL.md` frontmatter `name`, then by its containing
299
+ directory; a root-level unnamed `SKILL.md` uses the portable fallback name
300
+ `skill`.
301
+
302
+ In recipe mode the agent sees only the Recipe's skills: the ones its agent
303
+ selects from the Recipe and its dependency and peer packages, plus the
304
+ `documents` tool's core skill and profile, wherever the format package comes
305
+ from (a dependency, a peer, or the copy beside Recipes). These arrive through
306
+ Recipes' own resolution, so Pi's `--no-skills` does not remove them. Skills
307
+ Pi discovers anywhere else (an installed Pi package, the user or project
308
+ skills folder, `--skill <path>`) never reach the prompt or a `/skill:`
309
+ command, under `pi --recipe` and the session API alike. To use a skill, add
310
+ it to the Recipe or a package it depends on.
259
311
 
260
312
  Prompt templates are declared by `pi.prompts`. They retain Pi's normal SDK and
261
313
  TUI behavior: hosts expose them through `AgentSession.promptTemplates`, and a
262
314
  caller invokes one by prompting with its slash command and arguments.
263
315
 
316
+ ### Prompt templates are suggestions
317
+
318
+ A Recipe's suggestions are the things a new user can ask it to do. They are
319
+ the prompt templates marked with `suggest: true` in their frontmatter; there
320
+ is no separate manifest field. Templates without the mark still work as
321
+ `/name` commands and are never suggested. Give each suggested template a
322
+ short `description` (ten words or fewer), because that is what people see:
323
+
324
+ ```markdown
325
+ ---
326
+ suggest: true
327
+ description: Redline a contract against our playbook
328
+ argument-hint: "[contract]"
329
+ ---
330
+ Redline ${1:-the attached contract} against the playbook. Today is {{today}}.
331
+ ```
332
+
333
+ - **In Pi.** A new session in the terminal (`pi --recipe <dir>`, or
334
+ `introspection local`) with no messages asks once, "What would you like to
335
+ do?", with up to three marked templates (a random three, in file order,
336
+ when more are marked) and a row to type your own request. With none
337
+ marked, it does not ask. Picking one sends it as the first message;
338
+ a template whose `argument-hint` has a required `<argument>` is put in the
339
+ editor instead, for you to finish. Typing sends what you typed, and Esc
340
+ leaves the empty prompt. Set `PI_RECIPES_SUGGESTIONS_SEED` to pin which
341
+ three show. The picker never appears on resume, outside the terminal UI,
342
+ or when Pi starts with a message.
343
+ - **Starting with one.** Pi expands a template given as the initial message,
344
+ so `pi --recipe <dir> "/redline nda.docx"` (or
345
+ `introspection local -- "/redline nda.docx"`) starts with it expanded.
346
+ - **Placeholders.** Besides Pi's `$1` and `${1:-default}` arguments, a
347
+ template may use `{{member.name}}`, `{{member.email}}`, `{{org.name}}` and
348
+ `{{today}}` (an ISO date). A host fills the ones it knows and leaves the rest
349
+ as written. Pi's picker fills `{{today}}`, and `{{member.name}}` from
350
+ `git config user.name`; a template typed as `/name` is sent unfilled.
351
+ - **Other surfaces.** `listRecipeSuggestions(recipeDir)` returns the marked
352
+ templates as `{ name, description, argumentHint?, text, placeholders }[]`, and
353
+ `fillSuggestion(text, values)` fills placeholders; both are exported from
354
+ `@introspection-ai/recipes/suggestions`.
355
+ `inspectRecipe` includes the same list as `suggestions`.
356
+ - **Checks.** For a marked template, the checker warns when it has no
357
+ `description` (`prompts.description_missing`), when the description is over
358
+ ten words (`prompts.description_long`), or when it uses a placeholder outside
359
+ the list above (`prompts.placeholder_unknown`). A `suggest` value that is not
360
+ a boolean is also a warning (`prompts.suggest_invalid`).
361
+
264
362
  Recipe-owned Pi extensions are declared by `pi.extensions`. The deterministically
265
363
  resolved set forms the package's executable trust boundary and loads for every
266
364
  root and child session. Package membership means execution; agent YAML cannot
@@ -290,6 +388,69 @@ resources loaded; compatible hosts MUST keep those additions distinguishable
290
388
  from Recipe-owned inputs. `tools` limits model-callable tools, not extension
291
389
  hook execution.
292
390
 
391
+ ## Shipping skills in a package
392
+
393
+ An npm package ships skills by declaring them in its own `package.json`, with
394
+ the same `pi.skills` key a Recipe uses:
395
+
396
+ ```json
397
+ {
398
+ "name": "@acme/contract-skills",
399
+ "version": "1.2.0",
400
+ "files": ["skills"],
401
+ "pi": { "skills": ["skills"] }
402
+ }
403
+ ```
404
+
405
+ A Recipe uses those skills by listing the package in `dependencies` (or in
406
+ `peerDependencies`, when the platform provides it) and selecting them by name
407
+ in an agent's `skills`, like its own:
408
+
409
+ ```json
410
+ {
411
+ "name": "contracts",
412
+ "dependencies": { "@acme/contract-skills": "^1.2.0" },
413
+ "pi": {}
414
+ }
415
+ ```
416
+
417
+ ```yaml
418
+ name: agent
419
+ skills: [review-nda]
420
+ ```
421
+
422
+ The rules:
423
+
424
+ - Hosts read `pi.skills` from each direct `dependencies` and
425
+ `peerDependencies` entry, found with Node's package resolution from the
426
+ Recipe directory: in the Recipe's own `node_modules`, or in one above it,
427
+ where an npm install hoists a dependency beside the Recipe and a platform
428
+ image installs the peers it provides. One that is not installed is skipped.
429
+ `devDependencies` and transitive dependencies are not read.
430
+ - Only an explicit `pi.skills` counts. A dependency's `skills/` folder is not
431
+ discovered by convention, and a dependency without `pi.skills` contributes
432
+ no skills.
433
+ - Paths are relative to the dependency package, MUST NOT resolve outside it
434
+ (including through symlinks, compared by real path), and every explicit path
435
+ MUST match. A violation is an error naming the package.
436
+ - Dependency skills join the Recipe's own skills. An agent's `skills` list
437
+ selects among all of them; an agent gets no skill it does not list.
438
+ - A name an agent selects MUST resolve to exactly one `SKILL.md` across the
439
+ Recipe and its dependencies. Two with the same name are an error naming
440
+ both. Give each skill a unique frontmatter `name`.
441
+
442
+ These skills arrive with the install: the build installs the Recipe's
443
+ dependencies from its lockfile, and nothing is fetched at run time. A check
444
+ run without `node_modules` cannot see dependency skills, so a skill an agent
445
+ selects that is not in the Recipe is a warning there rather than an error.
446
+
447
+ Document profiles use a different path. A Recipe such as
448
+ [`introspection-org/recipe-redlining`](https://github.com/introspection-org/recipe-redlining)
449
+ selects a profile in `pi.documents`, from a pinned docx package or the host
450
+ default (see [First-party packages](#first-party-packages)); the `documents`
451
+ tool delivers the core `documents` skill and that profile itself, for agents
452
+ that list the tool.
453
+
293
454
  ## Tools, subagents, and capabilities
294
455
 
295
456
  `tools` is an allowlist. A host MUST expose no undeclared Pi or extension tool
@@ -302,9 +463,10 @@ lists them in `tools`:
302
463
  | Tool | What it does |
303
464
  | --- | --- |
304
465
  | `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). |
466
+ | `show_artifact` | Shows a markdown file the agent wrote (a brief, test cases, a report) in a panel on the right of Pi's terminal, and adds `/recipe view` and `/recipe close`. Elsewhere it returns the file's path as text. See [Pi extension](pi-extension.md#artifact-panel). |
305
467
 
306
468
  ```yaml
307
- tools: [read, bash, ask_user_question]
469
+ tools: [read, bash, ask_user_question, show_artifact]
308
470
  ```
309
471
 
310
472
  If a Recipe extension registers its own `ask_user_question`, the host keeps
@@ -372,9 +534,6 @@ first model call or reject the Recipe with an actionable diagnostic.
372
534
  "lockfile": "python/uv.lock",
373
535
  "version": ">=3.12,<3.15",
374
536
  "imports": ["pandas", "openpyxl"]
375
- },
376
- "system": {
377
- "packages": [{ "id": "document.pdf-tools", "version": "1" }]
378
537
  }
379
538
  }
380
539
  }
@@ -390,16 +549,23 @@ uv as the interpreter request. `imports` are optional boot preflights, each a
390
549
  dotted Python module name (`docx`, `paper_docx.api`); hosts import them with
391
550
  `PYTHONHOME` removed.
392
551
 
552
+ `pi.runtime.python` is the only runtime key; any other key under `pi.runtime`
553
+ is rejected. PDF and Word work goes through the `documents` tool (`pi.documents`
554
+ with the `pdf` or `docx` format), not shell utilities. A Recipe that only uses
555
+ the `documents` tool needs no `pi.runtime.python`; the format packages bring
556
+ their own.
557
+
393
558
  ### Package declarations
394
559
 
395
560
  A package the Recipe depends on MAY declare `pi.runtime.python` in its own
396
561
  `package.json`, with the same fields relative to the package. Hosts read it
397
- from each direct `dependencies` or `peerDependencies` entry installed in the
398
- Recipe's `node_modules`; `devDependencies` and transitive dependencies are
562
+ from each direct `dependencies` or `peerDependencies` entry, found with Node's
563
+ package resolution from the Recipe directory (the Recipe's own `node_modules`,
564
+ or one above it when an npm install hoists the dependency beside the Recipe);
565
+ `devDependencies` and transitive dependencies are
399
566
  not read, and a declared dependency that is not installed is skipped. A
400
567
  package declaring it MUST ship the project's `pyproject.toml` and `uv.lock`:
401
- when its `package.json` lists `files`, both must be covered. `pi.runtime.system`
402
- is a Recipe-only declaration.
568
+ when its `package.json` lists `files`, both must be covered.
403
569
 
404
570
  Each declaration gets its own environment:
405
571
 
@@ -482,10 +648,6 @@ The session API (`createAgentSession`) only checks: it never installs, so the
482
648
  host prepares the environments before it creates sessions, and an unprepared
483
649
  one fails construction.
484
650
 
485
- System package ids name versioned, host-approved bundles. They are not apt,
486
- brew, or shell commands. A host that does not provide a declared bundle MUST
487
- fail closed; Recipes cannot run privileged installers.
488
-
489
651
  Recipe packages are trusted application code. In particular, authored
490
652
  TypeScript extensions execute inside the Pi process with its authority. A host
491
653
  that accepts third-party Recipes MUST review or isolate them before execution;
package/docs/slack.md CHANGED
@@ -14,9 +14,6 @@ protocol.
14
14
 
15
15
  ```json
16
16
  {
17
- "dependencies": {
18
- "@introspection-ai/recipe-channel-slack": ">=0.4.0 <1.0.0"
19
- },
20
17
  "pi": {
21
18
  "channels": [
22
19
  {
@@ -27,8 +24,10 @@ protocol.
27
24
  }
28
25
  ```
29
26
 
30
- Commit the package manager lockfile. The host loads the package only for a
31
- Recipe that declares the connector.
27
+ Recipes installs the Slack package alongside itself, so the declaration is
28
+ enough. To pin a version, add `"@introspection-ai/recipe-channel-slack":
29
+ ">=0.6.0"` to `dependencies` and commit the lockfile; the Recipe's copy wins.
30
+ The host loads the package only for a Recipe that declares the connector.
32
31
 
33
32
  The connector registers one `channels` tool. Agents select `tools: [channels]`;
34
33
  all supported commands are immediately visible. An optional connector `commands`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@introspection-ai/recipes",
3
- "version": "0.39.0",
3
+ "version": "0.41.0",
4
4
  "description": "The open format for vertical agents, built on Pi.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -82,6 +82,10 @@
82
82
  "./inspect": {
83
83
  "types": "./dist/inspect.d.ts",
84
84
  "import": "./dist/inspect.js"
85
+ },
86
+ "./suggestions": {
87
+ "types": "./dist/recipe/suggestions.d.ts",
88
+ "import": "./dist/recipe/suggestions.js"
85
89
  }
86
90
  },
87
91
  "pi": {
@@ -95,8 +99,18 @@
95
99
  "ajv": "^8.20.0",
96
100
  "mcporter": "0.16.1",
97
101
  "minimatch": "^10.2.6",
102
+ "semver": "^7.8.5",
98
103
  "yaml": "^2.9.0"
99
104
  },
105
+ "optionalDependencies": {
106
+ "@introspection-ai/recipe-channel-slack": ">=0.6.0",
107
+ "@introspection-ai/recipe-documents-docx": ">=0.3.0",
108
+ "@introspection-ai/recipe-documents-pdf": ">=0.2.0",
109
+ "@introspection-ai/mcp-client-linux-x64": "0.41.0",
110
+ "@introspection-ai/mcp-client-linux-arm64": "0.41.0",
111
+ "@introspection-ai/mcp-client-darwin-arm64": "0.41.0",
112
+ "@introspection-ai/mcp-client-darwin-x64": "0.41.0"
113
+ },
100
114
  "peerDependencies": {
101
115
  "@earendil-works/pi-agent-core": ">=1.1.0 <2.0.0",
102
116
  "@earendil-works/pi-ai": ">=1.1.0 <2.0.0",
@@ -110,17 +124,12 @@
110
124
  "@earendil-works/pi-coding-agent": "1.4.0",
111
125
  "@earendil-works/pi-tui": "1.4.0",
112
126
  "@types/node": "^26.1.2",
127
+ "@types/semver": "^7.8.0",
113
128
  "esbuild": "^0.28.1",
114
129
  "typebox": "^1.0.56",
115
130
  "typescript": "^7.0.2",
116
131
  "vitest": "^5.0.1"
117
132
  },
118
- "optionalDependencies": {
119
- "@introspection-ai/mcp-client-linux-x64": "0.39.0",
120
- "@introspection-ai/mcp-client-linux-arm64": "0.39.0",
121
- "@introspection-ai/mcp-client-darwin-arm64": "0.39.0",
122
- "@introspection-ai/mcp-client-darwin-x64": "0.39.0"
123
- },
124
133
  "scripts": {
125
134
  "build": "pnpm build:ts && pnpm build:native",
126
135
  "build:workspace-packages": "pnpm --filter './packages/**' build",