@introspection-ai/recipes 0.43.0 → 0.44.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.
- package/dist/agents.d.ts.map +1 -1
- package/dist/agents.js +11 -4
- package/dist/agents.js.map +1 -1
- package/dist/api/session.d.ts +2 -1
- package/dist/api/session.d.ts.map +1 -1
- package/dist/artifact-review-tui.d.ts +0 -2
- package/dist/artifact-review-tui.d.ts.map +1 -1
- package/dist/artifact-review-tui.js +1 -1
- package/dist/artifact-review-tui.js.map +1 -1
- package/dist/artifact-review.d.ts +30 -13
- package/dist/artifact-review.d.ts.map +1 -1
- package/dist/artifact-review.js +80 -12
- package/dist/artifact-review.js.map +1 -1
- package/dist/artifact-viewer-tui.d.ts.map +1 -1
- package/dist/artifact-viewer-tui.js.map +1 -1
- package/dist/artifact-viewer.d.ts +1 -63
- package/dist/artifact-viewer.d.ts.map +1 -1
- package/dist/artifact-viewer.js +6 -9
- package/dist/artifact-viewer.js.map +1 -1
- package/dist/ask-user-question.d.ts +0 -32
- package/dist/ask-user-question.d.ts.map +1 -1
- package/dist/ask-user-question.js +9 -5
- package/dist/ask-user-question.js.map +1 -1
- package/dist/channels/index.d.ts +1 -1
- package/dist/channels/index.d.ts.map +1 -1
- package/dist/channels/index.js +1 -1
- package/dist/channels/index.js.map +1 -1
- package/dist/channels/module.d.ts.map +1 -1
- package/dist/channels/module.js +15 -5
- package/dist/channels/module.js.map +1 -1
- package/dist/channels/refs.d.ts.map +1 -1
- package/dist/channels/refs.js +10 -2
- package/dist/channels/refs.js.map +1 -1
- package/dist/channels/tools.d.ts.map +1 -1
- package/dist/channels/tools.js +80 -36
- package/dist/channels/tools.js.map +1 -1
- package/dist/child/agent-completions.d.ts.map +1 -1
- package/dist/child/agent-completions.js +3 -1
- package/dist/child/agent-completions.js.map +1 -1
- package/dist/child/agent-store.d.ts +3 -2
- package/dist/child/agent-store.d.ts.map +1 -1
- package/dist/child/agent-store.js.map +1 -1
- package/dist/child/agent.d.ts.map +1 -1
- package/dist/child/agent.js +1 -3
- package/dist/child/agent.js.map +1 -1
- package/dist/child/session.d.ts +2 -2
- package/dist/child/session.d.ts.map +1 -1
- package/dist/child/session.js +1 -3
- package/dist/child/session.js.map +1 -1
- package/dist/connector-tools.d.ts +5 -4
- package/dist/connector-tools.d.ts.map +1 -1
- package/dist/connector-tools.js +19 -9
- package/dist/connector-tools.js.map +1 -1
- package/dist/documents/index.d.ts +3 -3
- package/dist/documents/index.d.ts.map +1 -1
- package/dist/documents/index.js +1 -1
- package/dist/documents/index.js.map +1 -1
- package/dist/documents/module.d.ts +0 -2
- package/dist/documents/module.d.ts.map +1 -1
- package/dist/documents/module.js +30 -11
- package/dist/documents/module.js.map +1 -1
- package/dist/documents/profile.d.ts.map +1 -1
- package/dist/documents/profile.js +10 -4
- package/dist/documents/profile.js.map +1 -1
- package/dist/documents/python.d.ts.map +1 -1
- package/dist/documents/python.js +12 -3
- package/dist/documents/python.js.map +1 -1
- package/dist/documents/tools.d.ts.map +1 -1
- package/dist/documents/tools.js +105 -29
- package/dist/documents/tools.js.map +1 -1
- package/dist/documents/types.d.ts.map +1 -1
- package/dist/extensions.d.ts.map +1 -1
- package/dist/extensions.js +6 -2
- package/dist/extensions.js.map +1 -1
- package/dist/genai-spans-file.d.ts +1 -14
- package/dist/genai-spans-file.d.ts.map +1 -1
- package/dist/genai-spans-file.js +5 -3
- package/dist/genai-spans-file.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/inspect.d.ts.map +1 -1
- package/dist/inspect.js +2 -3
- package/dist/inspect.js.map +1 -1
- package/dist/interaction-tui.d.ts +0 -2
- package/dist/interaction-tui.d.ts.map +1 -1
- package/dist/interaction-tui.js +9 -4
- package/dist/interaction-tui.js.map +1 -1
- package/dist/interactions.d.ts.map +1 -1
- package/dist/interactions.js +1 -3
- package/dist/interactions.js.map +1 -1
- package/dist/mcp/catalog.d.ts.map +1 -1
- package/dist/mcp/catalog.js.map +1 -1
- package/dist/mcp/cli/command-context.d.ts.map +1 -1
- package/dist/mcp/cli/command-context.js.map +1 -1
- package/dist/mcp/cli/core.d.ts +0 -41
- package/dist/mcp/cli/core.d.ts.map +1 -1
- package/dist/mcp/cli/core.js +79 -37
- package/dist/mcp/cli/core.js.map +1 -1
- package/dist/mcp/cli/help.js +3 -3
- package/dist/mcp/cli/help.js.map +1 -1
- package/dist/mcp/cli/index.js.map +1 -1
- package/dist/mcp/cli/policy.d.ts +2 -1
- package/dist/mcp/cli/policy.d.ts.map +1 -1
- package/dist/mcp/cli/policy.js +19 -11
- package/dist/mcp/cli/policy.js.map +1 -1
- package/dist/mcp/client-entry.js.map +1 -1
- package/dist/mcp/contract.d.ts.map +1 -1
- package/dist/mcp/contract.js +8 -3
- package/dist/mcp/contract.js.map +1 -1
- package/dist/mcp/daemon/client.d.ts +4 -0
- package/dist/mcp/daemon/client.d.ts.map +1 -1
- package/dist/mcp/daemon/client.js +4 -0
- package/dist/mcp/daemon/client.js.map +1 -1
- package/dist/mcp/daemon/index.js +9 -4
- package/dist/mcp/daemon/index.js.map +1 -1
- package/dist/mcp/daemon/protocol.d.ts +7 -6
- package/dist/mcp/daemon/protocol.d.ts.map +1 -1
- package/dist/mcp/index.d.ts +2 -6
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +36 -20
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/tools.d.ts +1 -14
- package/dist/mcp/tools.d.ts.map +1 -1
- package/dist/mcp/tools.js +9 -4
- package/dist/mcp/tools.js.map +1 -1
- package/dist/mcp-chunks/{chunk-EZKOZO3F.js → chunk-GODH4VLN.js} +179 -70
- package/dist/mcp-daemon.js +29 -19
- package/dist/mcp-run-worker.js +1 -1
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +1 -1
- package/dist/memory.js.map +1 -1
- package/dist/model-binding.d.ts +4 -5
- package/dist/model-binding.d.ts.map +1 -1
- package/dist/model-binding.js +5 -5
- package/dist/model-binding.js.map +1 -1
- package/dist/pi-extension.d.ts.map +1 -1
- package/dist/pi-extension.js +39 -33
- package/dist/pi-extension.js.map +1 -1
- package/dist/python.d.ts.map +1 -1
- package/dist/python.js +5 -1
- package/dist/python.js.map +1 -1
- package/dist/recipe/agent.d.ts +9 -6
- package/dist/recipe/agent.d.ts.map +1 -1
- package/dist/recipe/agent.js +23 -28
- package/dist/recipe/agent.js.map +1 -1
- package/dist/recipe/companions.d.ts +0 -15
- package/dist/recipe/companions.d.ts.map +1 -1
- package/dist/recipe/companions.js +29 -11
- package/dist/recipe/companions.js.map +1 -1
- package/dist/recipe/extensions.d.ts.map +1 -1
- package/dist/recipe/extensions.js +23 -6
- package/dist/recipe/extensions.js.map +1 -1
- package/dist/recipe/mcp-config.d.ts +0 -12
- package/dist/recipe/mcp-config.d.ts.map +1 -1
- package/dist/recipe/mcp-config.js +1 -70
- package/dist/recipe/mcp-config.js.map +1 -1
- package/dist/recipe/model.d.ts +8 -7
- package/dist/recipe/model.d.ts.map +1 -1
- package/dist/recipe/model.js +2 -6
- package/dist/recipe/model.js.map +1 -1
- package/dist/recipe/package.d.ts +3 -16
- package/dist/recipe/package.d.ts.map +1 -1
- package/dist/recipe/package.js +105 -40
- package/dist/recipe/package.js.map +1 -1
- package/dist/recipe/python.d.ts +0 -8
- package/dist/recipe/python.d.ts.map +1 -1
- package/dist/recipe/python.js +40 -13
- package/dist/recipe/python.js.map +1 -1
- package/dist/recipe/resolve.d.ts.map +1 -1
- package/dist/recipe/resolve.js +4 -9
- package/dist/recipe/resolve.js.map +1 -1
- package/dist/recipe/session.d.ts +3 -2
- package/dist/recipe/session.d.ts.map +1 -1
- package/dist/recipe/session.js +4 -3
- package/dist/recipe/session.js.map +1 -1
- package/dist/recipe/skills-prompt.d.ts.map +1 -1
- package/dist/recipe/skills-prompt.js +6 -1
- package/dist/recipe/skills-prompt.js.map +1 -1
- package/dist/recipe/skills.d.ts +0 -6
- package/dist/recipe/skills.d.ts.map +1 -1
- package/dist/recipe/skills.js +8 -5
- package/dist/recipe/skills.js.map +1 -1
- package/dist/recipe/suggestions.d.ts.map +1 -1
- package/dist/recipe/suggestions.js +21 -8
- package/dist/recipe/suggestions.js.map +1 -1
- package/dist/run-controller.d.ts +0 -2
- package/dist/run-controller.d.ts.map +1 -1
- package/dist/run-controller.js +4 -2
- package/dist/run-controller.js.map +1 -1
- package/dist/session.d.ts +10 -4
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +30 -26
- package/dist/session.js.map +1 -1
- package/dist/skill-progress.d.ts +69 -20
- package/dist/skill-progress.d.ts.map +1 -1
- package/dist/skill-progress.js +153 -37
- package/dist/skill-progress.js.map +1 -1
- package/dist/suggestion-picker.d.ts +0 -3
- package/dist/suggestion-picker.d.ts.map +1 -1
- package/dist/suggestion-picker.js +4 -2
- package/dist/suggestion-picker.js.map +1 -1
- package/dist/test-utils.d.ts.map +1 -1
- package/dist/test-utils.js.map +1 -1
- package/docs/agent-composition.md +1 -0
- package/docs/pi-extension.md +41 -5
- package/docs/recipe-format.md +6 -0
- package/package.json +18 -6
|
@@ -94,6 +94,7 @@ Omission means "inherit" for a derived agent. Declaring a field means
|
|
|
94
94
|
| `session` | Merges by key; nested settings objects merge recursively |
|
|
95
95
|
| `tools` | Child array replaces the inherited allowlist; `[]` clears it |
|
|
96
96
|
| `skills` | Child array replaces the inherited selection; `[]` clears it |
|
|
97
|
+
| `phases` | Child array replaces the inherited phases; omission inherits them |
|
|
97
98
|
| `subagents` | Child array replaces inherited visibility; `[]` clears it |
|
|
98
99
|
| `mcp` | Omission inherits; a declared block replaces the complete inherited policy |
|
|
99
100
|
| `system_instructions` | Omission inherits; `append` composes after inherited instructions; `replace` replaces the complete inherited prompt |
|
package/docs/pi-extension.md
CHANGED
|
@@ -57,7 +57,30 @@ A Recipe agent's step shows in Pi's footer, with how long the agent has worked:
|
|
|
57
57
|
⧈ Introspection build ✓ brainstorm ▸ draft ○ review · 12:04
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
-
Nothing
|
|
60
|
+
Nothing need be declared for it. The step is the agent's skill it last read, among the skills of the phase it lists first (`build-*` for an agent listing `build-brainstorm` first; others it consults, such as `eval-case`, don't move it): a skill named `<phase>-<step>` shows its phase's steps in the order the agent lists them, done ticked, the current one marked and the rest to come; any other skill shows by its name. The clock is the agent's working time from the start of the session, across every step, redrawn every second. It pauses while the person is in the loop, when the agent's turn has ended or a question or review is open, and the current step then shows ⏸ in place of ▸. It's never an estimate of what's left. Pi's "Working" line and the terminal title are left as they are. A resumed session shows its step at once, from its earlier reads.
|
|
61
|
+
|
|
62
|
+
An agent that moves through several phases declares them in its agent file, in order:
|
|
63
|
+
|
|
64
|
+
```yaml
|
|
65
|
+
skills: [build-brainstorm, build-draft, build-review, build-deploy, improve-collect, improve-classify, improve-propose, eval-run]
|
|
66
|
+
phases: [build, improve]
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
The phase is then that of the last step skill it read, a skill named `<phase>-<step>` of a declared phase, and its steps and ticks are that phase's skills in the order listed. Reading `improve-classify` shows:
|
|
70
|
+
|
|
71
|
+
```text
|
|
72
|
+
⧈ Introspection improve ✓ collect ▸ classify ○ propose · 31:40
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Any other of the agent's skills is a helper: reading it never changes the phase, and it shows after the current step, its first dash as a space (`eval-run` as `eval run`, a name without a dash as it is), until the agent next reads a step:
|
|
76
|
+
|
|
77
|
+
```text
|
|
78
|
+
⧈ Introspection build ✓ brainstorm ▸ draft · eval run ○ review ○ deploy · 12:04
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
A helper read counts the same way a step read does: a glance at its top (fewer than 100 lines, or `head`) doesn't. While the clock is paused the step shows ⏸ as before, and a resumed session restores phase, step and helper from its earlier reads. Without `phases`, the footer works as described above.
|
|
82
|
+
|
|
83
|
+
A host that draws its own line (the platform's task chat) passes `onRecipeStep` to `createAgentSession`, with or without a UI. It receives the same step as data, `{ skill, phase?, steps: [{ name, state: "done" | "current" | "todo" }], paused, worked_ms }`, whenever the step changes or the clock starts or stops, not every second; the host runs the clock on from `worked_ms` while `paused` is false. A skill outside a phase has no `steps` and shows by `skill`.
|
|
61
84
|
|
|
62
85
|
## The Recipe a session runs
|
|
63
86
|
|
|
@@ -175,10 +198,23 @@ file has one, to the Submit tab; nothing is sent until the user submits there
|
|
|
175
198
|
It is an interaction ([Interactions](interactions.md)), so it works on every
|
|
176
199
|
host: over RPC each file is a select (`Approve`, `Request changes`, `Skip`),
|
|
177
200
|
then a comment (required for changes); on a pause/resume host it pauses with
|
|
178
|
-
`details.interrupt.metadata` `{ kind: "review_artifacts", items: [
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
201
|
+
`details.interrupt.metadata` `{ kind: "review_artifacts", items: [...] }` for
|
|
202
|
+
the host to render its own review, and resumes with `{ answer }` in the format
|
|
203
|
+
below; headless runs and child agents decline, so nothing is approved without a
|
|
204
|
+
person.
|
|
205
|
+
|
|
206
|
+
Each item carries what the reviewer is shown, so the host needs no access to
|
|
207
|
+
the files:
|
|
208
|
+
|
|
209
|
+
| Field | What it is |
|
|
210
|
+
| --- | --- |
|
|
211
|
+
| `path`, `label`, `section` | As given; `section` only when one was |
|
|
212
|
+
| `content` | The file as the terminal review shows it: front matter folded into one line, only `section` when given |
|
|
213
|
+
| `sha256` | Of the whole file on disk when asked (`null` when it doesn't exist), so a record of approval can say exactly which file was approved |
|
|
214
|
+
| `previous_content` | What this session's last review of the path showed, when the file has changed since; kept in memory only, so a restarted session sends none |
|
|
215
|
+
| `truncated` | `true` when `content` was cut to the interrupt's cap (256 KB of content across the review); the host lets such a file be read but not approved |
|
|
216
|
+
|
|
217
|
+
`details.files` holds `{ path, sha256 }` for every item, on every host. The model sees, after `Answer: `:
|
|
182
218
|
|
|
183
219
|
```text
|
|
184
220
|
Reviewed 2 files: 1 approved, 1 with changes requested, 0 not reviewed.
|
package/docs/recipe-format.md
CHANGED
|
@@ -132,6 +132,12 @@ All remaining agent fields are optional. Omitted `tools`, `skills`, and
|
|
|
132
132
|
provider or session default. Omitted agent instructions preserve `SYSTEM.md`
|
|
133
133
|
when present, or Pi's normal base prompt otherwise.
|
|
134
134
|
|
|
135
|
+
`phases` MAY list, in order, the phases the agent moves through, each the
|
|
136
|
+
prefix of its step skills (`build` for `build-draft`). It changes only what
|
|
137
|
+
Pi's footer shows: the phase of the step skill last read, with the agent's
|
|
138
|
+
other skills shown as helpers. See
|
|
139
|
+
[Where the agent is](pi-extension.md#where-the-agent-is).
|
|
140
|
+
|
|
135
141
|
Recipe-authored configuration uses `snake_case`. `ai.options` is normalized at
|
|
136
142
|
the Pi boundary to Pi's camelCase portable `streamSimple` request options, so
|
|
137
143
|
newly added portable Pi options do not require a Recipe schema release. It is
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@introspection-ai/recipes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.44.0",
|
|
4
4
|
"description": "The open format for vertical agents, built on Pi.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -106,10 +106,10 @@
|
|
|
106
106
|
"@introspection-ai/recipe-channel-slack": ">=0.6.0",
|
|
107
107
|
"@introspection-ai/recipe-documents-docx": ">=0.3.0",
|
|
108
108
|
"@introspection-ai/recipe-documents-pdf": ">=0.2.0",
|
|
109
|
-
"@introspection-ai/mcp-client-linux-x64": "0.
|
|
110
|
-
"@introspection-ai/mcp-client-linux-arm64": "0.
|
|
111
|
-
"@introspection-ai/mcp-client-darwin-arm64": "0.
|
|
112
|
-
"@introspection-ai/mcp-client-darwin-x64": "0.
|
|
109
|
+
"@introspection-ai/mcp-client-linux-x64": "0.44.0",
|
|
110
|
+
"@introspection-ai/mcp-client-linux-arm64": "0.44.0",
|
|
111
|
+
"@introspection-ai/mcp-client-darwin-arm64": "0.44.0",
|
|
112
|
+
"@introspection-ai/mcp-client-darwin-x64": "0.44.0"
|
|
113
113
|
},
|
|
114
114
|
"peerDependencies": {
|
|
115
115
|
"@earendil-works/pi-agent-core": ">=1.1.0 <2.0.0",
|
|
@@ -123,11 +123,19 @@
|
|
|
123
123
|
"@earendil-works/pi-ai": "1.4.0",
|
|
124
124
|
"@earendil-works/pi-coding-agent": "1.4.0",
|
|
125
125
|
"@earendil-works/pi-tui": "1.4.0",
|
|
126
|
+
"@eslint/js": "9.39.5",
|
|
126
127
|
"@types/node": "^26.1.2",
|
|
127
128
|
"@types/semver": "^7.8.0",
|
|
129
|
+
"@typescript/native": "npm:typescript@^7.0.2",
|
|
128
130
|
"esbuild": "^0.28.1",
|
|
131
|
+
"eslint": "9.39.5",
|
|
132
|
+
"eslint-config-prettier": "10.1.8",
|
|
133
|
+
"eslint-plugin-only-warn": "1.2.1",
|
|
134
|
+
"knip": "6.44.0",
|
|
135
|
+
"prettier": "3.9.10",
|
|
129
136
|
"typebox": "^1.0.56",
|
|
130
|
-
"typescript": "
|
|
137
|
+
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
138
|
+
"typescript-eslint": "8.72.1",
|
|
131
139
|
"vitest": "^5.0.1"
|
|
132
140
|
},
|
|
133
141
|
"scripts": {
|
|
@@ -137,6 +145,10 @@
|
|
|
137
145
|
"build:native": "cargo build --release -p pi-mcp-client && node scripts/package-mcp-client.mjs",
|
|
138
146
|
"bench:mcp-client": "pnpm build:ts && cargo build --release -p pi-mcp-client && node scripts/benchmark-mcp-client.mjs",
|
|
139
147
|
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.test.json && pnpm --filter './packages/**' --filter './examples/**' typecheck",
|
|
148
|
+
"lint": "eslint . --max-warnings 0",
|
|
149
|
+
"format": "prettier --write \"{src,test,packages,examples}/**/*.{ts,mjs,md}\" \"*.{ts,mjs}\"",
|
|
150
|
+
"format:check": "prettier --check \"{src,test,packages,examples}/**/*.{ts,mjs,md}\" \"*.{ts,mjs}\"",
|
|
151
|
+
"knip": "knip",
|
|
140
152
|
"test": "pnpm build:ts && cargo test -p pi-mcp-client -p introspection-recipe-check && cargo build -p pi-mcp-client && MCP_CLIENT_BIN=target/debug/mcp-client node scripts/package-mcp-client.mjs && vitest run && pnpm --filter './examples/**' test",
|
|
141
153
|
"pack:check": "pnpm pack --dry-run --json | node scripts/check-npm-pack.mjs && pnpm --filter './packages/**' pack:check",
|
|
142
154
|
"clean": "rm -rf dist .turbo node_modules target vendor/mcp-client"
|