@introspection-ai/recipes 0.38.0 → 0.40.1

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 (83) hide show
  1. package/README.md +10 -4
  2. package/dist/channels/index.d.ts +2 -2
  3. package/dist/channels/index.d.ts.map +1 -1
  4. package/dist/channels/index.js +1 -1
  5. package/dist/channels/index.js.map +1 -1
  6. package/dist/channels/module.d.ts +18 -0
  7. package/dist/channels/module.d.ts.map +1 -1
  8. package/dist/channels/module.js +6 -0
  9. package/dist/channels/module.js.map +1 -1
  10. package/dist/child/session.d.ts +2 -0
  11. package/dist/child/session.d.ts.map +1 -1
  12. package/dist/child/session.js +3 -0
  13. package/dist/child/session.js.map +1 -1
  14. package/dist/connector-tools.d.ts +6 -0
  15. package/dist/connector-tools.d.ts.map +1 -1
  16. package/dist/connector-tools.js +26 -11
  17. package/dist/connector-tools.js.map +1 -1
  18. package/dist/documents/index.d.ts +4 -2
  19. package/dist/documents/index.d.ts.map +1 -1
  20. package/dist/documents/index.js +2 -1
  21. package/dist/documents/index.js.map +1 -1
  22. package/dist/documents/module.d.ts +44 -11
  23. package/dist/documents/module.d.ts.map +1 -1
  24. package/dist/documents/module.js +35 -24
  25. package/dist/documents/module.js.map +1 -1
  26. package/dist/documents/python.d.ts +30 -0
  27. package/dist/documents/python.d.ts.map +1 -0
  28. package/dist/documents/python.js +64 -0
  29. package/dist/documents/python.js.map +1 -0
  30. package/dist/extensions.d.ts +16 -0
  31. package/dist/extensions.d.ts.map +1 -1
  32. package/dist/extensions.js +12 -0
  33. package/dist/extensions.js.map +1 -1
  34. package/dist/mcp-chunks/{chunk-EQCSXVQ7.js → chunk-EZKOZO3F.js} +5184 -1309
  35. package/dist/mcp-daemon.js +1 -1
  36. package/dist/mcp-run-worker.js +1 -1
  37. package/dist/pi-extension.d.ts.map +1 -1
  38. package/dist/pi-extension.js +89 -14
  39. package/dist/pi-extension.js.map +1 -1
  40. package/dist/python.d.ts +56 -0
  41. package/dist/python.d.ts.map +1 -0
  42. package/dist/python.js +100 -0
  43. package/dist/python.js.map +1 -0
  44. package/dist/recipe/companions.d.ts +68 -0
  45. package/dist/recipe/companions.d.ts.map +1 -0
  46. package/dist/recipe/companions.js +149 -0
  47. package/dist/recipe/companions.js.map +1 -0
  48. package/dist/recipe/extensions.d.ts +6 -0
  49. package/dist/recipe/extensions.d.ts.map +1 -1
  50. package/dist/recipe/extensions.js +51 -14
  51. package/dist/recipe/extensions.js.map +1 -1
  52. package/dist/recipe/package.d.ts +72 -9
  53. package/dist/recipe/package.d.ts.map +1 -1
  54. package/dist/recipe/package.js +261 -76
  55. package/dist/recipe/package.js.map +1 -1
  56. package/dist/recipe/python.d.ts +152 -0
  57. package/dist/recipe/python.d.ts.map +1 -0
  58. package/dist/recipe/python.js +708 -0
  59. package/dist/recipe/python.js.map +1 -0
  60. package/dist/recipe/resolve.d.ts +3 -0
  61. package/dist/recipe/resolve.d.ts.map +1 -1
  62. package/dist/recipe/resolve.js +32 -16
  63. package/dist/recipe/resolve.js.map +1 -1
  64. package/dist/recipe/skills.d.ts +15 -1
  65. package/dist/recipe/skills.d.ts.map +1 -1
  66. package/dist/recipe/skills.js +26 -9
  67. package/dist/recipe/skills.js.map +1 -1
  68. package/dist/run-controller.d.ts +2 -0
  69. package/dist/run-controller.d.ts.map +1 -1
  70. package/dist/run-controller.js +3 -0
  71. package/dist/run-controller.js.map +1 -1
  72. package/dist/session.d.ts +8 -0
  73. package/dist/session.d.ts.map +1 -1
  74. package/dist/session.js +37 -15
  75. package/dist/session.js.map +1 -1
  76. package/docs/agent-composition.md +2 -2
  77. package/docs/channels.md +55 -11
  78. package/docs/documents.md +109 -27
  79. package/docs/interactions.md +1 -1
  80. package/docs/pi-extension.md +4 -1
  81. package/docs/recipe-format.md +262 -62
  82. package/docs/slack.md +4 -5
  83. package/package.json +17 -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,9 +293,11 @@ 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`.
259
301
 
260
302
  Prompt templates are declared by `pi.prompts`. They retain Pi's normal SDK and
261
303
  TUI behavior: hosts expose them through `AgentSession.promptTemplates`, and a
@@ -290,6 +332,69 @@ resources loaded; compatible hosts MUST keep those additions distinguishable
290
332
  from Recipe-owned inputs. `tools` limits model-callable tools, not extension
291
333
  hook execution.
292
334
 
335
+ ## Shipping skills in a package
336
+
337
+ An npm package ships skills by declaring them in its own `package.json`, with
338
+ the same `pi.skills` key a Recipe uses:
339
+
340
+ ```json
341
+ {
342
+ "name": "@acme/contract-skills",
343
+ "version": "1.2.0",
344
+ "files": ["skills"],
345
+ "pi": { "skills": ["skills"] }
346
+ }
347
+ ```
348
+
349
+ A Recipe uses those skills by listing the package in `dependencies` (or in
350
+ `peerDependencies`, when the platform provides it) and selecting them by name
351
+ in an agent's `skills`, like its own:
352
+
353
+ ```json
354
+ {
355
+ "name": "contracts",
356
+ "dependencies": { "@acme/contract-skills": "^1.2.0" },
357
+ "pi": {}
358
+ }
359
+ ```
360
+
361
+ ```yaml
362
+ name: agent
363
+ skills: [review-nda]
364
+ ```
365
+
366
+ The rules:
367
+
368
+ - Hosts read `pi.skills` from each direct `dependencies` and
369
+ `peerDependencies` entry, found with Node's package resolution from the
370
+ Recipe directory: in the Recipe's own `node_modules`, or in one above it,
371
+ where an npm install hoists a dependency beside the Recipe and a platform
372
+ image installs the peers it provides. One that is not installed is skipped.
373
+ `devDependencies` and transitive dependencies are not read.
374
+ - Only an explicit `pi.skills` counts. A dependency's `skills/` folder is not
375
+ discovered by convention, and a dependency without `pi.skills` contributes
376
+ no skills.
377
+ - Paths are relative to the dependency package, MUST NOT resolve outside it
378
+ (including through symlinks, compared by real path), and every explicit path
379
+ MUST match. A violation is an error naming the package.
380
+ - Dependency skills join the Recipe's own skills. An agent's `skills` list
381
+ selects among all of them; an agent gets no skill it does not list.
382
+ - A name an agent selects MUST resolve to exactly one `SKILL.md` across the
383
+ Recipe and its dependencies. Two with the same name are an error naming
384
+ both. Give each skill a unique frontmatter `name`.
385
+
386
+ These skills arrive with the install: the build installs the Recipe's
387
+ dependencies from its lockfile, and nothing is fetched at run time. A check
388
+ run without `node_modules` cannot see dependency skills, so a skill an agent
389
+ selects that is not in the Recipe is a warning there rather than an error.
390
+
391
+ Document profiles use a different path. A Recipe such as
392
+ [`introspection-org/recipe-redlining`](https://github.com/introspection-org/recipe-redlining)
393
+ selects a profile in `pi.documents`, from a pinned docx package or the host
394
+ default (see [First-party packages](#first-party-packages)); the `documents`
395
+ tool delivers the core `documents` skill and that profile itself, for agents
396
+ that list the tool.
397
+
293
398
  ## Tools, subagents, and capabilities
294
399
 
295
400
  `tools` is an allowlist. A host MUST expose no undeclared Pi or extension tool
@@ -372,9 +477,6 @@ first model call or reject the Recipe with an actionable diagnostic.
372
477
  "lockfile": "python/uv.lock",
373
478
  "version": ">=3.12,<3.15",
374
479
  "imports": ["pandas", "openpyxl"]
375
- },
376
- "system": {
377
- "packages": [{ "id": "document.pdf-tools", "version": "1" }]
378
480
  }
379
481
  }
380
482
  }
@@ -382,14 +484,112 @@ first model call or reject the Recipe with an actionable diagnostic.
382
484
  ```
383
485
 
384
486
  `python.project` names a Recipe-relative Python project directory and
385
- `python.lockfile` names its committed `uv.lock`. Hosts MUST install with frozen
386
- resolution into a Recipe-local environment. `imports` are optional boot
387
- preflights. Hosts MUST NOT install into system Python or resolve an unlocked
388
- dependency graph.
389
-
390
- System package ids name versioned, host-approved bundles. They are not apt,
391
- brew, or shell commands. A host that does not provide a declared bundle MUST
392
- fail closed; Recipes cannot run privileged installers.
487
+ `python.lockfile` names its committed `uv.lock`, which must be the
488
+ `uv.lock` beside the project's `pyproject.toml`. Hosts MUST install with
489
+ frozen resolution (`uv sync --frozen --no-dev`) and MUST NOT install into
490
+ system Python or resolve an unlocked dependency graph. `version` is passed to
491
+ uv as the interpreter request. `imports` are optional boot preflights, each a
492
+ dotted Python module name (`docx`, `paper_docx.api`); hosts import them with
493
+ `PYTHONHOME` removed.
494
+
495
+ `pi.runtime.python` is the only runtime key; any other key under `pi.runtime`
496
+ is rejected. PDF and Word work goes through the `documents` tool (`pi.documents`
497
+ with the `pdf` or `docx` format), not shell utilities. A Recipe that only uses
498
+ the `documents` tool needs no `pi.runtime.python`; the format packages bring
499
+ their own.
500
+
501
+ ### Package declarations
502
+
503
+ A package the Recipe depends on MAY declare `pi.runtime.python` in its own
504
+ `package.json`, with the same fields relative to the package. Hosts read it
505
+ from each direct `dependencies` or `peerDependencies` entry, found with Node's
506
+ package resolution from the Recipe directory (the Recipe's own `node_modules`,
507
+ or one above it when an npm install hoists the dependency beside the Recipe);
508
+ `devDependencies` and transitive dependencies are
509
+ not read, and a declared dependency that is not installed is skipped. A
510
+ package declaring it MUST ship the project's `pyproject.toml` and `uv.lock`:
511
+ when its `package.json` lists `files`, both must be covered.
512
+
513
+ Each declaration gets its own environment:
514
+
515
+ - **The Recipe's own declaration is the shell environment.** Hosts activate
516
+ it for the agent's shell tools: `VIRTUAL_ENV` and `UV_PROJECT_ENVIRONMENT`
517
+ name it, its `bin` (`Scripts` on Windows) comes first on `PATH`, and
518
+ `PYTHONHOME` is removed.
519
+ - **Each package's declaration gets a separate environment**, installed with
520
+ `--no-editable` and never activated or put on `PATH`. The host hands the
521
+ package its interpreter; a documents format receives it as
522
+ `createAdapter({ env, cwd, python })`.
523
+
524
+ A package extension asks for a package's interpreter with
525
+ `packagePython(name)` on its session context, by the package's name; it is
526
+ `undefined` when that package declares no `pi.runtime.python` or is not a
527
+ direct dependency. `@introspection-ai/recipes/python` runs a script with it:
528
+ `pythonExecutable({ python, env, override })` picks the interpreter
529
+ (`env[override]`, then `python`, then `VIRTUAL_ENV`, then `python3`), and
530
+ `runPythonJson(script, request, { python, env, cwd, signal, timeoutMs })`
531
+ runs `python -I <script>` with the request as JSON on stdin and resolves its
532
+ stdout parsed as JSON (default timeout 300 s, 64 MB output):
533
+
534
+ ```ts
535
+ import { getRecipeSessionContext } from "@introspection-ai/recipes/extensions";
536
+ import { pythonExecutable, runPythonJson } from "@introspection-ai/recipes/python";
537
+
538
+ export default function tables(pi) {
539
+ const python = pythonExecutable({
540
+ python: getRecipeSessionContext(pi).packagePython("@acme/recipe-tables"),
541
+ override: "ACME_TABLES_PYTHON",
542
+ });
543
+ // ... later, in a tool:
544
+ // await runPythonJson(helperScript, { path }, { python, cwd: ctx.cwd });
545
+ }
546
+ ```
547
+
548
+ No declaration has to agree with another: two packages may lock different
549
+ versions of the same library.
550
+
551
+ ### Preparing environments
552
+
553
+ `prepareRecipePython(recipeDir, options)` from
554
+ `@introspection-ai/recipes/recipe` finds every declaration and prepares it:
555
+
556
+ - `mode: "check"` runs `uv sync --frozen --no-dev --check --offline`, then
557
+ `uv python find` with the environment active, and the import preflight. The
558
+ second step catches an environment whose interpreter no longer satisfies the
559
+ declared version or `requires-python`, which uv's check passes. It writes
560
+ nothing and uses no network.
561
+ - `mode: "sync"` checks first and installs only a missing or outdated
562
+ environment, with `uv sync --frozen --no-dev --compile-bytecode`. A current
563
+ environment is never recompiled.
564
+ - uv runs with `--no-python-downloads` unless `allowPythonDownloads` is set.
565
+
566
+ By default environments live in a shared cache,
567
+ `~/.introspection/python/<hash>`, keyed by the environment kind (shell or
568
+ package), platform and architecture, the `uv.lock` and `pyproject.toml`
569
+ contents, and the declared `version`. Without a declared `version` it also
570
+ keys on what uv would pick the interpreter from: `UV_PYTHON`, every
571
+ `.python-version` or `.python-versions` file from the project directory up to
572
+ the filesystem root, and uv's global pin. A Recipe project that is itself a
573
+ package (it has `[build-system]`, so it installs editable) also keys on its
574
+ directory. `environmentRoot` (or `PI_RECIPES_PYTHON_ROOT`) fixes the
575
+ location instead: the shell environment is `<root>/python` and each package's
576
+ `<root>/python-packages/<name>`, so a host baking environments into a Recipe
577
+ image passes `<recipe>/.pi`. Concurrent preparations of one environment are
578
+ serialised by a lock file beside it.
579
+
580
+ Each prepared environment reports its directory and interpreter, plus the
581
+ activation for the shell environment. Failures are named errors:
582
+ `RecipePythonUvMissingError` (uv not installed), `RecipePythonVersionError`
583
+ (no interpreter satisfies the version), `RecipePythonOutdatedError` (check
584
+ mode found an environment missing or not matching its lock) and
585
+ `RecipePythonImportError`.
586
+
587
+ **Hosts fail closed.** Pi's extension prepares in sync mode with interpreter
588
+ downloads allowed when it loads a Recipe, tells the user when a first build
589
+ downloads packages, and refuses to start the session if any environment fails.
590
+ The session API (`createAgentSession`) only checks: it never installs, so the
591
+ host prepares the environments before it creates sessions, and an unprepared
592
+ one fails construction.
393
593
 
394
594
  Recipe packages are trusted application code. In particular, authored
395
595
  TypeScript extensions execute inside the Pi process with its authority. A host
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.38.0",
3
+ "version": "0.40.1",
4
4
  "description": "The open format for vertical agents, built on Pi.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -67,6 +67,10 @@
67
67
  "types": "./dist/channels/index.d.ts",
68
68
  "import": "./dist/channels/index.js"
69
69
  },
70
+ "./python": {
71
+ "types": "./dist/python.d.ts",
72
+ "import": "./dist/python.js"
73
+ },
70
74
  "./documents": {
71
75
  "types": "./dist/documents/index.d.ts",
72
76
  "import": "./dist/documents/index.js"
@@ -90,8 +94,19 @@
90
94
  "@opentelemetry/api": "^1.9.1",
91
95
  "ajv": "^8.20.0",
92
96
  "mcporter": "0.16.1",
97
+ "minimatch": "^10.2.6",
98
+ "semver": "^7.8.5",
93
99
  "yaml": "^2.9.0"
94
100
  },
101
+ "optionalDependencies": {
102
+ "@introspection-ai/recipe-channel-slack": ">=0.6.0",
103
+ "@introspection-ai/recipe-documents-docx": ">=0.3.0",
104
+ "@introspection-ai/recipe-documents-pdf": ">=0.2.0",
105
+ "@introspection-ai/mcp-client-linux-x64": "0.40.1",
106
+ "@introspection-ai/mcp-client-linux-arm64": "0.40.1",
107
+ "@introspection-ai/mcp-client-darwin-arm64": "0.40.1",
108
+ "@introspection-ai/mcp-client-darwin-x64": "0.40.1"
109
+ },
95
110
  "peerDependencies": {
96
111
  "@earendil-works/pi-agent-core": ">=1.1.0 <2.0.0",
97
112
  "@earendil-works/pi-ai": ">=1.1.0 <2.0.0",
@@ -105,17 +120,12 @@
105
120
  "@earendil-works/pi-coding-agent": "1.4.0",
106
121
  "@earendil-works/pi-tui": "1.4.0",
107
122
  "@types/node": "^26.1.2",
123
+ "@types/semver": "^7.8.0",
108
124
  "esbuild": "^0.28.1",
109
125
  "typebox": "^1.0.56",
110
126
  "typescript": "^7.0.2",
111
127
  "vitest": "^5.0.1"
112
128
  },
113
- "optionalDependencies": {
114
- "@introspection-ai/mcp-client-linux-x64": "0.38.0",
115
- "@introspection-ai/mcp-client-linux-arm64": "0.38.0",
116
- "@introspection-ai/mcp-client-darwin-arm64": "0.38.0",
117
- "@introspection-ai/mcp-client-darwin-x64": "0.38.0"
118
- },
119
129
  "scripts": {
120
130
  "build": "pnpm build:ts && pnpm build:native",
121
131
  "build:workspace-packages": "pnpm --filter './packages/**' build",