@introspection-ai/recipes 0.44.0 → 0.45.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.
@@ -12,7 +12,7 @@ import {
12
12
  installMcpCommandIoRouting,
13
13
  mcpDaemonRequestContext,
14
14
  serializeMcpDaemonEnvelope
15
- } from "./mcp-chunks/chunk-GODH4VLN.js";
15
+ } from "./mcp-chunks/chunk-3M4OCQR5.js";
16
16
  import "./mcp-chunks/chunk-S2F7DDP5.js";
17
17
  import "./mcp-chunks/chunk-HNQSUT44.js";
18
18
  import "./mcp-chunks/chunk-UFV6SVQG.js";
@@ -2,7 +2,7 @@ import { createRequire as __createRequire } from "node:module"; const require =
2
2
  import {
3
3
  executeMcpCommand,
4
4
  installMcpCommandIoRouting
5
- } from "./mcp-chunks/chunk-GODH4VLN.js";
5
+ } from "./mcp-chunks/chunk-3M4OCQR5.js";
6
6
  import "./mcp-chunks/chunk-S2F7DDP5.js";
7
7
  import "./mcp-chunks/chunk-HNQSUT44.js";
8
8
  import "./mcp-chunks/chunk-UFV6SVQG.js";
@@ -2,8 +2,9 @@
2
2
  export declare function recipesVersion(): string;
3
3
  /**
4
4
  * Companion package name to compatible version range, from
5
- * `package.json#optionalDependencies`. Inside this repository a range reads
6
- * `workspace:<range>`; the published manifest carries `<range>`.
5
+ * `package.json#optionalDependencies`: the tool packages
6
+ * (`@introspection-ai/recipe-*`), not the MCP client's platform binaries the
7
+ * release also stamps in there.
7
8
  */
8
9
  export declare function companionPackages(): Readonly<Record<string, string>>;
9
10
  /** Whether Recipes installs `name` alongside itself, so a Recipe may omit it. */
@@ -1 +1 @@
1
- {"version":3,"file":"companions.d.ts","sourceRoot":"","sources":["../../src/recipe/companions.ts"],"names":[],"mappings":"AA8CA,8DAA8D;AAC9D,wBAAgB,cAAc,IAAI,MAAM,CAEvC;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,IAAI,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE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AAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAKvD;AAOD,kEAAkE;AAClE,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,oCAAoC;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,EAAE,QAAQ,GAAG,MAAM,CAAC;CAC3B;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,MAAM,GACf,qBAAqB,GAAG,SAAS,CAkBnC;AA4CD,sGAAsG;AACtG,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AA2BD;;;;;;GAMG;AACH,wBAAsB,uBAAuB,CAC3C,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,eAAe,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GAChE,OAAO,CAAC,OAAO,CAAC,CA0BlB"}
@@ -3,6 +3,7 @@ import { dirname, join } from "node:path";
3
3
  import { fileURLToPath } from "node:url";
4
4
  import semver from "semver";
5
5
  import { loadRecipeModule, packageEntry } from "./extensions.js";
6
+ import { RECIPES_MANIFEST } from "./manifest.generated.js";
6
7
  import { resolveDependencyDir } from "./package.js";
7
8
  /**
8
9
  * Companion packages: the first-party channel and document format packages
@@ -18,41 +19,28 @@ import { resolveDependencyDir } from "./package.js";
18
19
  * with `npm view @introspection-ai/recipes@<v> optionalDependencies --json`.
19
20
  */
20
21
  const RECIPES_PACKAGE = "@introspection-ai/recipes";
21
- /** This package's own `package.json`: `src/recipe` and `dist/recipe` both sit two levels below it. */
22
+ /**
23
+ * This package's own `package.json`: `src/recipe` and `dist/recipe` both sit
24
+ * two levels below it. Only finding the companions installed beside Recipes
25
+ * reads it; a host that bundles Recipes passes `hostDir` instead.
26
+ */
22
27
  const recipesManifestPath = fileURLToPath(new URL("../../package.json", import.meta.url));
23
- let recipesManifest;
24
- /** Read on first use, so a bundle that never loads a package never looks for it. */
25
- function readRecipesManifest() {
26
- recipesManifest ??= JSON.parse(readFileSync(recipesManifestPath, "utf8"));
27
- return recipesManifest;
28
- }
29
28
  /** The version of the running `@introspection-ai/recipes`. */
30
29
  export function recipesVersion() {
31
- return readRecipesManifest().version;
30
+ return RECIPES_MANIFEST.version;
32
31
  }
33
32
  /**
34
33
  * Companion package name to compatible version range, from
35
- * `package.json#optionalDependencies`. Inside this repository a range reads
36
- * `workspace:<range>`; the published manifest carries `<range>`.
34
+ * `package.json#optionalDependencies`: the tool packages
35
+ * (`@introspection-ai/recipe-*`), not the MCP client's platform binaries the
36
+ * release also stamps in there.
37
37
  */
38
38
  export function companionPackages() {
39
- return Object.fromEntries(Object.entries(readRecipesManifest().optionalDependencies ?? {})
40
- .filter(([name]) => isCompanionName(name))
41
- .map(([name, range]) => [name, range.replace(/^workspace:/, "")]));
42
- }
43
- /**
44
- * The published manifest's `optionalDependencies` also names the MCP client's
45
- * platform binaries, which the release stamps in; only the tool packages
46
- * (`@introspection-ai/recipe-*`) are companions.
47
- */
48
- function isCompanionName(name) {
49
- return name.startsWith(COMPANION_PREFIX);
39
+ return RECIPES_MANIFEST.companions;
50
40
  }
51
- const COMPANION_PREFIX = "@introspection-ai/recipe-";
52
41
  /** Whether Recipes installs `name` alongside itself, so a Recipe may omit it. */
53
42
  export function isCompanionPackage(name) {
54
- return (isCompanionName(name) &&
55
- Object.hasOwn(readRecipesManifest().optionalDependencies ?? {}, name));
43
+ return Object.hasOwn(RECIPES_MANIFEST.companions, name);
56
44
  }
57
45
  /**
58
46
  * Whether the host imports `name` itself and so always provides it: Recipes,
@@ -60,7 +48,7 @@ export function isCompanionPackage(name) {
60
48
  */
61
49
  export function isHostPeerPackage(name) {
62
50
  return (name === RECIPES_PACKAGE ||
63
- Object.hasOwn(readRecipesManifest().peerDependencies ?? {}, name));
51
+ Object.hasOwn(RECIPES_MANIFEST.peerDependencies, name));
64
52
  }
65
53
  /** Where the running `@introspection-ai/recipes` is installed; companion packages resolve from here. */
66
54
  function hostRecipesDir() {
@@ -72,12 +60,12 @@ function hostRecipesDir() {
72
60
  * `@introspection-ai/recipes` itself is installed (`hostDir`). Undefined when
73
61
  * neither has it.
74
62
  */
75
- export function resolveRecipePackage(recipeDir, name, hostDir = hostRecipesDir()) {
63
+ export function resolveRecipePackage(recipeDir, name, hostDir) {
76
64
  const fromRecipe = resolveDependencyDir(recipeDir, name);
77
65
  const source = fromRecipe ? "recipe" : "host";
78
66
  const packageDir = fromRecipe ??
79
67
  (isCompanionPackage(name)
80
- ? resolveDependencyDir(hostDir, name)
68
+ ? resolveDependencyDir(hostDir ?? hostRecipesDir(), name)
81
69
  : undefined);
82
70
  if (!packageDir)
83
71
  return undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"companions.js","sourceRoot":"","sources":["../../src/recipe/companions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpD;;;;;;;;;;;;GAYG;AAEH,MAAM,eAAe,GAAG,2BAA2B,CAAC;AAEpD,sGAAsG;AACtG,MAAM,mBAAmB,GAAG,aAAa,CACvC,IAAI,GAAG,CAAC,oBAAoB,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAC/C,CAAC;AAQF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CAAC;IAChD,IAAI,CAAC,KAAK;QACR,MAAM,IAAI,KAAK,CACb,GAAG,OAAO,CAAC,IAAI,KAAK,IAAI,OAAO,QAAQ,CAAC,UAAU,qBAAqB,CACxE,CAAC;IACJ,IAAI,QAAiB,CAAC;IACtB,IAAI,CAAC;QACH,QAAQ,GAAG,MAAM,gBAAgB,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IACtD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CACb,GAAG,OAAO,CAAC,IAAI,oBAAoB,IAAI,SAAS,QAAQ,CAAC,UAAU,EAAE,EACrE,EAAE,KAAK,EAAE,KAAK,EAAE,CACjB,CAAC;IACJ,CAAC;IACD,eAAe,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IACjD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -0,0 +1,16 @@
1
+ export declare const RECIPES_MANIFEST: {
2
+ readonly version: "0.45.0";
3
+ readonly peerDependencies: {
4
+ readonly "@earendil-works/pi-agent-core": ">=1.1.0 <2.0.0";
5
+ readonly "@earendil-works/pi-ai": ">=1.1.0 <2.0.0";
6
+ readonly "@earendil-works/pi-coding-agent": ">=1.1.0 <2.0.0";
7
+ readonly "@earendil-works/pi-tui": ">=1.1.0 <2.0.0";
8
+ readonly typebox: "*";
9
+ };
10
+ readonly companions: {
11
+ readonly "@introspection-ai/recipe-channel-slack": ">=0.6.0";
12
+ readonly "@introspection-ai/recipe-documents-docx": ">=0.3.0";
13
+ readonly "@introspection-ai/recipe-documents-pdf": ">=0.2.0";
14
+ };
15
+ };
16
+ //# sourceMappingURL=manifest.generated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest.generated.d.ts","sourceRoot":"","sources":["../../src/recipe/manifest.generated.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB;aAC3B,OAAS,EAAE,QAAQ;aACnB,gBAAkB;iBAChB,+BAA+B,EAAE,gBAAgB;iBACjD,uBAAuB,EAAE,gBAAgB;iBACzC,iCAAiC,EAAE,gBAAgB;iBACnD,wBAAwB,EAAE,gBAAgB;iBAC1C,OAAS,EAAE,GAAG;;aAEhB,UAAY;iBACV,wCAAwC,EAAE,SAAS;iBACnD,yCAAyC,EAAE,SAAS;iBACpD,wCAAwC,EAAE,SAAS;;CAE7C,CAAC"}
@@ -0,0 +1,17 @@
1
+ // Generated from package.json by scripts/write-manifest.mjs; do not edit.
2
+ export const RECIPES_MANIFEST = {
3
+ "version": "0.45.0",
4
+ "peerDependencies": {
5
+ "@earendil-works/pi-agent-core": ">=1.1.0 <2.0.0",
6
+ "@earendil-works/pi-ai": ">=1.1.0 <2.0.0",
7
+ "@earendil-works/pi-coding-agent": ">=1.1.0 <2.0.0",
8
+ "@earendil-works/pi-tui": ">=1.1.0 <2.0.0",
9
+ "typebox": "*"
10
+ },
11
+ "companions": {
12
+ "@introspection-ai/recipe-channel-slack": ">=0.6.0",
13
+ "@introspection-ai/recipe-documents-docx": ">=0.3.0",
14
+ "@introspection-ai/recipe-documents-pdf": ">=0.2.0"
15
+ }
16
+ };
17
+ //# sourceMappingURL=manifest.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest.generated.js","sourceRoot":"","sources":["../../src/recipe/manifest.generated.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,SAAS,EAAE,QAAQ;IACnB,kBAAkB,EAAE;QAClB,+BAA+B,EAAE,gBAAgB;QACjD,uBAAuB,EAAE,gBAAgB;QACzC,iCAAiC,EAAE,gBAAgB;QACnD,wBAAwB,EAAE,gBAAgB;QAC1C,SAAS,EAAE,GAAG;KACf;IACD,YAAY,EAAE;QACZ,wCAAwC,EAAE,SAAS;QACnD,yCAAyC,EAAE,SAAS;QACpD,wCAAwC,EAAE,SAAS;KACpD;CACO,CAAC"}
@@ -726,6 +726,7 @@ A case file is YAML front matter, then a body. The front matter:
726
726
  | `inputs` | A list of `{ name, sha256, location }`: each input by its hash and where it came from. The case file never holds an input; the implementation carries the copy it runs on, such as a Harbor task's `environment/`. |
727
727
  | `sources` | What the agent must reach for this case, such as `[documents]`. |
728
728
  | `approved_by`, `approved_at`, `approved_in` | Who approved the case, when, and in which message. All empty means a draft. |
729
+ | `approved_hash` | Optional: `sha256:<hex>` of the body when the case was approved, written by `introspection eval approve <id>`. An edited body no longer matches, so the case is unapproved until the owner approves it again. |
729
730
  | `conversation` | Optional: `{ id, task_id, turn }` of the real conversation the case came from, `task_id` only when it ran as a platform task. Provenance only: a run never fetches it. |
730
731
  | `issue` | Optional: the UUID of the issue recording the hypothesis the case tests. |
731
732
 
@@ -734,6 +735,23 @@ convention the body has the sections Situation, A good result and A bad
734
735
  result, and optionally Verification. `evals/cases/inputs/` holds only
735
736
  synthetic inputs; real inputs stay where `location` says.
736
737
 
738
+ `approved_hash` covers the body, not the front matter, so editing a
739
+ front-matter field (the approval fields included) keeps the approval. It is
740
+ `sha256:` followed by the lowercase hexadecimal SHA-256 of the UTF-8 body,
741
+ computed as follows:
742
+
743
+ 1. The body is everything after the line that closes the front matter.
744
+ 2. Each CRLF becomes LF.
745
+ 3. Trailing whitespace is removed from every line.
746
+ 4. Trailing whitespace at the end of the body is removed.
747
+
748
+ Line endings and stray trailing spaces therefore never unapprove a case. The
749
+ `introspection-recipe-check` crate exports this algorithm as
750
+ `spec::case_approval_hash(body: &str) -> String`, with `spec::eval_case_body`
751
+ to take the body out of a case file. A case with all three approval fields
752
+ and no `approved_hash` stays approved: cases approved before the hash existed
753
+ keep their approval.
754
+
737
755
  ```markdown
738
756
  ---
739
757
  id: C3
@@ -805,9 +823,9 @@ eval paths, and the links between cases and implementations, all as warnings:
805
823
  | --- | --- |
806
824
  | `pi.evals_case_unknown` | A Vitest row or Harbor task names a case with no case file. |
807
825
  | `pi.evals_case_duplicate` | A case has more than one implementation on one runner. |
808
- | `pi.evals_case_unapproved` | A case with an implementation has an empty approval field. It stays a warning: a draft case is how one is proposed, and the owner approves it in review. |
826
+ | `pi.evals_case_unapproved` | A case with an implementation has an empty approval field, or a body that no longer matches its `approved_hash`; `introspection eval approve <id>` approves it again. It stays a warning: a draft case is how one is proposed, and the owner approves it in review. |
809
827
  | `pi.evals_case_row_missing_id` | A `.eval.jsonl` row has no `case`. |
810
- | `pi.evals_case_invalid` | A case file has no readable front matter, an `id` other than its file name, or an `issue` that is not a UUID. |
828
+ | `pi.evals_case_invalid` | A case file has no readable front matter, an `id` other than its file name, an `issue` that is not a UUID, or an `approved_hash` that is not `sha256:` and 64 hexadecimal digits. |
811
829
 
812
830
  ## Conformance
813
831
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@introspection-ai/recipes",
3
- "version": "0.44.0",
3
+ "version": "0.45.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.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"
109
+ "@introspection-ai/mcp-client-linux-x64": "0.45.0",
110
+ "@introspection-ai/mcp-client-linux-arm64": "0.45.0",
111
+ "@introspection-ai/mcp-client-darwin-arm64": "0.45.0",
112
+ "@introspection-ai/mcp-client-darwin-x64": "0.45.0"
113
113
  },
114
114
  "peerDependencies": {
115
115
  "@earendil-works/pi-agent-core": ">=1.1.0 <2.0.0",
@@ -141,14 +141,15 @@
141
141
  "scripts": {
142
142
  "build": "pnpm build:ts && pnpm build:native",
143
143
  "build:workspace-packages": "pnpm --filter './packages/**' build",
144
- "build:ts": "rm -rf dist && tsc && node scripts/build-mcp-daemon.mjs && pnpm build:workspace-packages",
144
+ "build:ts": "rm -rf dist && pnpm manifest && tsc && node scripts/build-mcp-daemon.mjs && pnpm build:workspace-packages",
145
145
  "build:native": "cargo build --release -p pi-mcp-client && node scripts/package-mcp-client.mjs",
146
146
  "bench:mcp-client": "pnpm build:ts && cargo build --release -p pi-mcp-client && node scripts/benchmark-mcp-client.mjs",
147
- "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.test.json && pnpm --filter './packages/**' --filter './examples/**' typecheck",
148
- "lint": "eslint . --max-warnings 0",
147
+ "typecheck": "pnpm manifest && tsc --noEmit && tsc --noEmit -p tsconfig.test.json && pnpm --filter './packages/**' --filter './examples/**' typecheck",
148
+ "lint": "pnpm manifest && eslint . --max-warnings 0",
149
+ "manifest": "node scripts/write-manifest.mjs",
149
150
  "format": "prettier --write \"{src,test,packages,examples}/**/*.{ts,mjs,md}\" \"*.{ts,mjs}\"",
150
151
  "format:check": "prettier --check \"{src,test,packages,examples}/**/*.{ts,mjs,md}\" \"*.{ts,mjs}\"",
151
- "knip": "knip",
152
+ "knip": "pnpm manifest && knip",
152
153
  "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",
153
154
  "pack:check": "pnpm pack --dry-run --json | node scripts/check-npm-pack.mjs && pnpm --filter './packages/**' pack:check",
154
155
  "clean": "rm -rf dist .turbo node_modules target vendor/mcp-client"