fascicle 0.6.0 → 0.8.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,57 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.8.1 — 2026-06-17
4
+
5
+ ### Internal
6
+
7
+ - Documentation only (no change to the published surface or bundle): realigned the live docs to the single-package `src/` layout introduced in v0.8.0. Fixed stale `packages/<x>` references (README links, the provider types path, the live-test path and command), rewrote `configuration.md` to read credentials straight from `process.env` now that the `@repo/config` module is gone, updated the harness layout note to the `#<module>` aliases, and refreshed the roadmap (Phase 1 marked shipped, the MCP tools adapter flagged as the next pending task).
8
+
9
+ ## v0.8.0 — 2026-06-17
10
+
11
+ ### Changed
12
+
13
+ - Collapsed the internal pnpm workspace (the nine `@repo/*` packages) into a single package with `src/<module>/` deep modules. The published `fascicle` surface is unchanged — same exports, same bundle, same install; this restructures the repo's source layout and dev-time tooling only.
14
+
15
+ ### Internal
16
+
17
+ - Cross-module access is sealed through barrel-only `#<module>` import aliases (declared in `package.json` `imports`, mirrored in `tsconfig.json` paths and the vitest alias); `rules/no-cross-module-relative-import.yml` closes the relative-path escape, so every module is reachable only through its `index.ts`.
18
+ - Replaced the per-package manifest dependency graph with a directory-level default-deny boundary DAG in `fallow.toml`, plus `no-core-npm-dep-except-zod` and `no-engine-npm-dep-except-ai-zod` ast-grep rules that recover the old `check-deps.mjs` dependency-shape invariants at the import level.
19
+ - Removed the unused `config` module; examples now import the published surface (`fascicle`, `fascicle/adapters`, `fascicle/agents`) and depend on the library via `fascicle: workspace:*`.
20
+ - Realigned AGENTS.md, README, docs, and `.ridgeline/{taste,constraints}.md` to the single-package layout (taste Principles 15 and 16 rewritten).
21
+
22
+ ## v0.7.0 — 2026-06-16
23
+
24
+ ### Added
25
+
26
+ - **AWS Bedrock provider.** A new `bedrock` adapter reaches Bedrock-hosted models (Claude, Llama, Nova, …) through the `@ai-sdk/amazon-bedrock` optional peer, wired like every other AI SDK provider: `create_engine({ providers: { bedrock: { region, ... } } })`, then `generate({ provider: 'bedrock', model: '<bedrock-model-id>' })`. Authenticates with a Bedrock API key (bearer), SigV4 keys, or the ambient AWS credential chain; `region` is required. Reasoning effort maps to Bedrock's `reasoningConfig.budgetTokens` for Claude models. Adds `BEDROCK_*` config env vars and `get_bedrock_*` getters in `@repo/config`.
27
+
28
+ ### Changed
29
+
30
+ - **Breaking: model resolution is now a verbatim pass-through.** `model` is an opaque string sent to the provider unchanged; `provider` selects the transport. There is one canonical input shape — separate `provider` + `model` params — and no interpretation in between.
31
+ - Removed the `provider:model` colon shorthand. Pass `{ provider: 'openrouter', model: 'anthropic/claude-sonnet-4.5' }` instead of `model: 'openrouter:anthropic/claude-sonnet-4.5'`. Model ids that contain colons (Ollama tags like `qwen3-coder:30b`, Bedrock `...-v1:0`) now ride through untouched.
32
+ - Removed the built-in `MODEL_FAMILIES` catalog and the `families` engine-config field. Family tokens (`opus`, `sonnet`, `gpt`, `gemini`) no longer expand — pass the provider's concrete id. (The `claude_cli` transport still resolves `opus`/`sonnet`/`haiku` itself, via the CLI.)
33
+ - Removed the user alias table: `Engine.register_alias` / `unregister_alias` / `resolve_alias` / `list_aliases` and `EngineConfig.aliases`. Keep your own name→id map in your harness if you want shortcuts.
34
+ - `generate` with no `model` and no `defaults.model` now throws the new `model_required_error` (previously fell back silently to `sonnet`).
35
+
36
+ ### Removed
37
+
38
+ - **Breaking:** types `AliasTable` and `FamilyCatalog`, and errors `model_not_found_error` and `model_family_unavailable_error`. The resolved-target type `AliasTarget` is renamed `ResolvedModel` (`{ provider, model_id }`).
39
+
40
+ ## v0.6.3 — 2026-06-11
41
+
42
+ ### Fixed
43
+ - CI `pnpm install --frozen-lockfile` no longer fails with `ERR_PNPM_IGNORED_BUILDS`; the `esbuild` build script is now approved in the `allowBuilds` map, classifying a transitive dependency that a recent toolchain bump introduced.
44
+
45
+ ## v0.6.2 — 2026-06-11
46
+
47
+ ### Internal
48
+ - Stopped tracking the local `.codegraph` tooling config (`config.json` and its `.gitignore`). These are per-machine artifacts and no longer belong in version control.
49
+
50
+ ## v0.6.1 — 2026-06-11
51
+
52
+ ### Fixed
53
+ - AI-SDK adapter: the caller's `system` prompt is now delivered through the AI SDK's top-level `system` option instead of as a `role: "system"` entry in the `messages` array. This removes the SDK's "System messages in the prompt or messages fields can be a security risk..." warning that fired on every `generateText`/`streamText` call (most visibly on non-Claude providers, flooding build logs), without changing what the model receives. A leading run of system messages is joined into the single `system` option; the `claude_cli` subprocess transport is unaffected.
54
+
3
55
  ## v0.6.0 — 2026-06-10
4
56
 
5
57
  ### Added
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ![A substrate for agents — three mushrooms (model_call, step, tool) fruit from a shared mycelium network; every mushroom is a Step<i, o>, every thread is a composition](./mycelium.svg)
4
4
 
5
- Compose agents out of LLM calls, tool calls, and plain functions. Everything is a `Step<i, o>`. Wire steps together with 18 primitives (`sequence`, `parallel`, `branch`, `retry`, `loop`, `ensemble`, `checkpoint`, …) and run them as plain values. One `generate` surface fronts seven provider adapters: Anthropic, OpenAI, Google, OpenRouter, Ollama, LM Studio, and a `claude_cli` subprocess that drives the Claude Code CLI.
5
+ Compose agents out of LLM calls, tool calls, and plain functions. Everything is a `Step<i, o>`. Wire steps together with 18 primitives (`sequence`, `parallel`, `branch`, `retry`, `loop`, `ensemble`, `checkpoint`, …) and run them as plain values. One `generate` surface fronts eight provider adapters: Anthropic, OpenAI, Google, OpenRouter, AWS Bedrock, Ollama, LM Studio, and a `claude_cli` subprocess that drives the Claude Code CLI.
6
6
 
7
7
  No framework lifecycle. No ambient state. No decorators. Adapters are passed in per run.
8
8
 
@@ -82,7 +82,7 @@ try {
82
82
 
83
83
  Plus `run`, `run.stream`, and `describe`.
84
84
 
85
- **AI engine.** `create_engine(config)` returns one `generate` surface across seven providers. Two axes: `model` names a family (`sonnet`, `opus`, `gpt` — latest of that family) or a specific id (`claude-opus-4-8`), and `provider` names the transport (`anthropic`, `claude_cli`, `openrouter`, …) — so the same `model: 'opus'` runs anywhere. Reasoning effort (`'none'` through `'max'`) is translated per provider. Cost estimation uses a pricing table with per-engine overrides.
85
+ **AI engine.** `create_engine(config)` returns one `generate` surface across eight providers. Two axes: `model` is an opaque id sent to the provider verbatim (`claude-opus-4-8`, `gpt-4o`, `us.anthropic.claude-sonnet-4-20250514-v1:0`), and `provider` names the transport (`anthropic`, `bedrock`, `openrouter`, `claude_cli`, …) — swap `provider` to move a call between transports. Reasoning effort (`'none'` through `'max'`) is translated per provider. Cost estimation uses a pricing table with per-engine overrides.
86
86
 
87
87
  **Adapters injected per run.** Trajectory loggers and checkpoint stores ship under the `fascicle/adapters` subpath:
88
88
 
@@ -137,7 +137,7 @@ const handle = await start_viewer({ port: 4242 });
137
137
  await handle.close();
138
138
  ```
139
139
 
140
- For zero-latency streaming from inside a long-running flow, pair it with `http_logger` from `fascicle/adapters`. See [packages/viewer/README.md](./packages/viewer/README.md) for the full transport story.
140
+ For zero-latency streaming from inside a long-running flow, pair it with `http_logger` from `fascicle/adapters`. See [src/viewer/README.md](./src/viewer/README.md) for the full transport story.
141
141
 
142
142
  ## Where to go next
143
143
 
@@ -149,7 +149,7 @@ For zero-latency streaming from inside a long-running flow, pair it with `http_l
149
149
  - [docs/cookbook.md](./docs/cookbook.md) — retries, fan-out, judges, HITL, tool loops
150
150
  - [docs/writing-a-harness.md](./docs/writing-a-harness.md) — building a runner around fascicle
151
151
  - [examples/](./examples/) — runnable reference flows
152
- - [packages/viewer/README.md](./packages/viewer/README.md) — viewer details and transport options
152
+ - [src/viewer/README.md](./src/viewer/README.md) — viewer details and transport options
153
153
 
154
154
  ## Contributing
155
155
 
@@ -157,7 +157,7 @@ Fascicle is early and not accepting outside pull requests yet. Bug reports and f
157
157
 
158
158
  ## Development
159
159
 
160
- This repo is a pnpm workspace. Internally the code is split into `@repo/core`, `@repo/engine`, `@repo/observability`, `@repo/stores`, and `@repo/fascicle` (umbrella). Only the umbrella reaches npm as `fascicle`. The split exists to enforce architectural boundaries (e.g. `@repo/core` cannot import adapters; only `@repo/config` reads `process.env`); fallow and the ast-grep rules in `rules/` police them.
160
+ This repo is a **single package**. The code is organized as deep modules under `src/` — `src/core`, `src/engine`, `src/composites`, `src/observability`, `src/stores`, `src/viewer`, `src/agents` — each reachable only through its barrel via the `#<module>` import alias. The umbrella surface at the `src/` root is what publishes to npm as `fascicle`. Architectural boundaries (e.g. core cannot import adapters; engine imports core type-only; no `process.env` outside the audited exceptions) are enforced by the ast-grep rules in `rules/` and a directory-level boundary DAG in `fallow.toml`. The 5 apps under `examples/*/` are separate workspace members that consume the library via `fascicle: workspace:*`.
161
161
 
162
162
  ```bash
163
163
  pnpm install
@@ -1,15 +1,15 @@
1
- import { G as CheckpointStore, X as TrajectoryLogger } from "./index-CCFSc--s.js";
1
+ import { G as CheckpointStore, X as TrajectoryLogger } from "./index-BjOnbuc9.js";
2
2
 
3
- //#region packages/observability/src/noop.d.ts
3
+ //#region src/observability/noop.d.ts
4
4
  declare function noop_logger(): TrajectoryLogger;
5
5
  //#endregion
6
- //#region packages/observability/src/filesystem.d.ts
6
+ //#region src/observability/filesystem.d.ts
7
7
  type FilesystemLoggerOptions = {
8
8
  readonly output_path: string;
9
9
  };
10
10
  declare function filesystem_logger(options: FilesystemLoggerOptions): TrajectoryLogger;
11
11
  //#endregion
12
- //#region packages/observability/src/http.d.ts
12
+ //#region src/observability/http.d.ts
13
13
  type HttpLoggerFetch = (url: string, init: {
14
14
  method: 'POST';
15
15
  headers: Record<string, string>;
@@ -25,10 +25,10 @@ type HttpLoggerOptions = {
25
25
  };
26
26
  declare function http_logger(options: HttpLoggerOptions): TrajectoryLogger;
27
27
  //#endregion
28
- //#region packages/observability/src/tee.d.ts
28
+ //#region src/observability/tee.d.ts
29
29
  declare function tee_logger(...loggers: ReadonlyArray<TrajectoryLogger>): TrajectoryLogger;
30
30
  //#endregion
31
- //#region packages/stores/src/filesystem.d.ts
31
+ //#region src/stores/filesystem.d.ts
32
32
  type FilesystemStoreOptions = {
33
33
  readonly root_dir: string;
34
34
  };
package/dist/adapters.js CHANGED
@@ -1,12 +1,12 @@
1
- import { n as http_logger, r as filesystem_logger, t as tee_logger } from "./tee-D_Qh_vfY.js";
1
+ import { n as http_logger, r as filesystem_logger, t as tee_logger } from "./tee-B-MeNi7d.js";
2
2
  import { createHash, randomUUID } from "node:crypto";
3
3
  import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
4
4
  import { join } from "node:path";
5
- //#region packages/observability/src/noop.ts
5
+ //#region src/observability/noop.ts
6
6
  /**
7
7
  * No-op trajectory logger.
8
8
  *
9
- * Satisfies `TrajectoryLogger` from `@repo/core` without emitting any
9
+ * Satisfies `TrajectoryLogger` from `core` without emitting any
10
10
  * output. Used as the default when no logger is supplied to `run(...)` and as
11
11
  * a cheap fallback in tests that do not care about trajectory output.
12
12
  */
@@ -18,11 +18,11 @@ function noop_logger() {
18
18
  };
19
19
  }
20
20
  //#endregion
21
- //#region packages/stores/src/filesystem.ts
21
+ //#region src/stores/filesystem.ts
22
22
  /**
23
23
  * Filesystem-backed checkpoint store.
24
24
  *
25
- * Satisfies `CheckpointStore` from `@repo/core`. Each key is stored as
25
+ * Satisfies `CheckpointStore` from `core`. Each key is stored as
26
26
  * a JSON file under the configured root directory. Writes are all-or-nothing:
27
27
  * values are written to a temporary sibling file and then atomically renamed
28
28
  * into place, so an interrupted write never leaves a partially-written file
@@ -1 +1 @@
1
- {"version":3,"file":"adapters.js","names":[],"sources":["../packages/observability/src/noop.ts","../packages/stores/src/filesystem.ts"],"sourcesContent":["/**\n * No-op trajectory logger.\n *\n * Satisfies `TrajectoryLogger` from `@repo/core` without emitting any\n * output. Used as the default when no logger is supplied to `run(...)` and as\n * a cheap fallback in tests that do not care about trajectory output.\n */\n\nimport { randomUUID } from 'node:crypto'\nimport type { TrajectoryLogger } from '@repo/core'\n\nexport function noop_logger(): TrajectoryLogger {\n return {\n record: () => {},\n start_span: (name) => `${name}:${randomUUID().slice(0, 8)}`,\n end_span: () => {},\n }\n}\n","/**\n * Filesystem-backed checkpoint store.\n *\n * Satisfies `CheckpointStore` from `@repo/core`. Each key is stored as\n * a JSON file under the configured root directory. Writes are all-or-nothing:\n * values are written to a temporary sibling file and then atomically renamed\n * into place, so an interrupted write never leaves a partially-written file\n * at the target key (spec.md §6.3, §6.8). On `get`, a missing file, a partial\n * temp file that is not atomically renamed, or a JSON parse failure each read\n * as a cache miss (returning `null`) rather than an error.\n *\n * Paths are accepted at construction; the store never reads `process.env`.\n */\n\nimport { createHash, randomUUID } from 'node:crypto'\nimport { mkdir, readFile, rename, rm, writeFile } from 'node:fs/promises'\nimport { join } from 'node:path'\nimport type { CheckpointStore } from '@repo/core'\n\nexport type FilesystemStoreOptions = {\n readonly root_dir: string\n}\n\nfunction safe_filename(key: string): string {\n const hash = createHash('sha256').update(key).digest('hex').slice(0, 12)\n const slug = key.replace(/[^a-zA-Z0-9._-]/g, '_').slice(0, 64)\n return `${slug}.${hash}.json`\n}\n\nexport function filesystem_store(options: FilesystemStoreOptions): CheckpointStore {\n const { root_dir } = options\n\n const ensure_root = async (): Promise<void> => {\n await mkdir(root_dir, { recursive: true })\n }\n\n const path_for = (key: string): string => join(root_dir, safe_filename(key))\n\n const get = async (key: string): Promise<unknown> => {\n const path = path_for(key)\n let raw: string\n try {\n raw = await readFile(path, 'utf8')\n } catch {\n return null\n }\n try {\n return JSON.parse(raw) as unknown\n } catch {\n return null\n }\n }\n\n const set = async (key: string, value: unknown): Promise<void> => {\n await ensure_root()\n const target = path_for(key)\n const tmp = `${target}.${randomUUID().slice(0, 8)}.tmp`\n await writeFile(tmp, JSON.stringify(value), 'utf8')\n await rename(tmp, target)\n }\n\n const delete_key = async (key: string): Promise<void> => {\n const target = path_for(key)\n await rm(target, { force: true })\n }\n\n return { get, set, delete: delete_key }\n}\n"],"mappings":";;;;;;;;;;;;AAWA,SAAgB,cAAgC;AAC9C,QAAO;EACL,cAAc;EACd,aAAa,SAAS,GAAG,KAAK,GAAG,YAAY,CAAC,MAAM,GAAG,EAAE;EACzD,gBAAgB;EACjB;;;;;;;;;;;;;;;;;ACOH,SAAS,cAAc,KAAqB;CAC1C,MAAM,OAAO,WAAW,SAAS,CAAC,OAAO,IAAI,CAAC,OAAO,MAAM,CAAC,MAAM,GAAG,GAAG;AAExE,QAAO,GADM,IAAI,QAAQ,oBAAoB,IAAI,CAAC,MAAM,GAAG,GAAG,CAC/C,GAAG,KAAK;;AAGzB,SAAgB,iBAAiB,SAAkD;CACjF,MAAM,EAAE,aAAa;CAErB,MAAM,cAAc,YAA2B;AAC7C,QAAM,MAAM,UAAU,EAAE,WAAW,MAAM,CAAC;;CAG5C,MAAM,YAAY,QAAwB,KAAK,UAAU,cAAc,IAAI,CAAC;CAE5E,MAAM,MAAM,OAAO,QAAkC;EACnD,MAAM,OAAO,SAAS,IAAI;EAC1B,IAAI;AACJ,MAAI;AACF,SAAM,MAAM,SAAS,MAAM,OAAO;UAC5B;AACN,UAAO;;AAET,MAAI;AACF,UAAO,KAAK,MAAM,IAAI;UAChB;AACN,UAAO;;;CAIX,MAAM,MAAM,OAAO,KAAa,UAAkC;AAChE,QAAM,aAAa;EACnB,MAAM,SAAS,SAAS,IAAI;EAC5B,MAAM,MAAM,GAAG,OAAO,GAAG,YAAY,CAAC,MAAM,GAAG,EAAE,CAAC;AAClD,QAAM,UAAU,KAAK,KAAK,UAAU,MAAM,EAAE,OAAO;AACnD,QAAM,OAAO,KAAK,OAAO;;CAG3B,MAAM,aAAa,OAAO,QAA+B;AAEvD,QAAM,GADS,SAAS,IAAI,EACX,EAAE,OAAO,MAAM,CAAC;;AAGnC,QAAO;EAAE;EAAK;EAAK,QAAQ;EAAY"}
1
+ {"version":3,"file":"adapters.js","names":[],"sources":["../src/observability/noop.ts","../src/stores/filesystem.ts"],"sourcesContent":["/**\n * No-op trajectory logger.\n *\n * Satisfies `TrajectoryLogger` from `core` without emitting any\n * output. Used as the default when no logger is supplied to `run(...)` and as\n * a cheap fallback in tests that do not care about trajectory output.\n */\n\nimport { randomUUID } from 'node:crypto'\nimport type { TrajectoryLogger } from '#core'\n\nexport function noop_logger(): TrajectoryLogger {\n return {\n record: () => {},\n start_span: (name) => `${name}:${randomUUID().slice(0, 8)}`,\n end_span: () => {},\n }\n}\n","/**\n * Filesystem-backed checkpoint store.\n *\n * Satisfies `CheckpointStore` from `core`. Each key is stored as\n * a JSON file under the configured root directory. Writes are all-or-nothing:\n * values are written to a temporary sibling file and then atomically renamed\n * into place, so an interrupted write never leaves a partially-written file\n * at the target key (spec.md §6.3, §6.8). On `get`, a missing file, a partial\n * temp file that is not atomically renamed, or a JSON parse failure each read\n * as a cache miss (returning `null`) rather than an error.\n *\n * Paths are accepted at construction; the store never reads `process.env`.\n */\n\nimport { createHash, randomUUID } from 'node:crypto'\nimport { mkdir, readFile, rename, rm, writeFile } from 'node:fs/promises'\nimport { join } from 'node:path'\nimport type { CheckpointStore } from '#core'\n\nexport type FilesystemStoreOptions = {\n readonly root_dir: string\n}\n\nfunction safe_filename(key: string): string {\n const hash = createHash('sha256').update(key).digest('hex').slice(0, 12)\n const slug = key.replace(/[^a-zA-Z0-9._-]/g, '_').slice(0, 64)\n return `${slug}.${hash}.json`\n}\n\nexport function filesystem_store(options: FilesystemStoreOptions): CheckpointStore {\n const { root_dir } = options\n\n const ensure_root = async (): Promise<void> => {\n await mkdir(root_dir, { recursive: true })\n }\n\n const path_for = (key: string): string => join(root_dir, safe_filename(key))\n\n const get = async (key: string): Promise<unknown> => {\n const path = path_for(key)\n let raw: string\n try {\n raw = await readFile(path, 'utf8')\n } catch {\n return null\n }\n try {\n return JSON.parse(raw) as unknown\n } catch {\n return null\n }\n }\n\n const set = async (key: string, value: unknown): Promise<void> => {\n await ensure_root()\n const target = path_for(key)\n const tmp = `${target}.${randomUUID().slice(0, 8)}.tmp`\n await writeFile(tmp, JSON.stringify(value), 'utf8')\n await rename(tmp, target)\n }\n\n const delete_key = async (key: string): Promise<void> => {\n const target = path_for(key)\n await rm(target, { force: true })\n }\n\n return { get, set, delete: delete_key }\n}\n"],"mappings":";;;;;;;;;;;;AAWA,SAAgB,cAAgC;AAC9C,QAAO;EACL,cAAc;EACd,aAAa,SAAS,GAAG,KAAK,GAAG,YAAY,CAAC,MAAM,GAAG,EAAE;EACzD,gBAAgB;EACjB;;;;;;;;;;;;;;;;;ACOH,SAAS,cAAc,KAAqB;CAC1C,MAAM,OAAO,WAAW,SAAS,CAAC,OAAO,IAAI,CAAC,OAAO,MAAM,CAAC,MAAM,GAAG,GAAG;AAExE,QAAO,GADM,IAAI,QAAQ,oBAAoB,IAAI,CAAC,MAAM,GAAG,GAAG,CAC/C,GAAG,KAAK;;AAGzB,SAAgB,iBAAiB,SAAkD;CACjF,MAAM,EAAE,aAAa;CAErB,MAAM,cAAc,YAA2B;AAC7C,QAAM,MAAM,UAAU,EAAE,WAAW,MAAM,CAAC;;CAG5C,MAAM,YAAY,QAAwB,KAAK,UAAU,cAAc,IAAI,CAAC;CAE5E,MAAM,MAAM,OAAO,QAAkC;EACnD,MAAM,OAAO,SAAS,IAAI;EAC1B,IAAI;AACJ,MAAI;AACF,SAAM,MAAM,SAAS,MAAM,OAAO;UAC5B;AACN,UAAO;;AAET,MAAI;AACF,UAAO,KAAK,MAAM,IAAI;UAChB;AACN,UAAO;;;CAIX,MAAM,MAAM,OAAO,KAAa,UAAkC;AAChE,QAAM,aAAa;EACnB,MAAM,SAAS,SAAS,IAAI;EAC5B,MAAM,MAAM,GAAG,OAAO,GAAG,YAAY,CAAC,MAAM,GAAG,EAAE,CAAC;AAClD,QAAM,UAAU,KAAK,KAAK,UAAU,MAAM,EAAE,OAAO;AACnD,QAAM,OAAO,KAAK,OAAO;;CAG3B,MAAM,aAAa,OAAO,QAA+B;AAEvD,QAAM,GADS,SAAS,IAAI,EACX,EAAE,OAAO,MAAM,CAAC;;AAGnC,QAAO;EAAE;EAAK;EAAK,QAAQ;EAAY"}
@@ -1,12 +1,12 @@
1
1
  import { z } from "zod";
2
2
 
3
- //#region packages/core/src/types.d.ts
3
+ //#region src/core/types.d.ts
4
4
  /**
5
5
  * Shared type surface for the composition layer.
6
6
  *
7
7
  * These types are the public value contract between composers, the runner,
8
- * and adapter packages (@repo/observability, @repo/stores,
9
- * @repo/engine). Adapter packages import types from here; nothing in
8
+ * and adapter packages (observability, stores,
9
+ * engine). Adapter packages import types from here; nothing in
10
10
  * this file imports from any adapter.
11
11
  *
12
12
  * Type aliases and interfaces use PascalCase per constraints.md §2.
@@ -61,7 +61,7 @@ type Step<i, o> = {
61
61
  readonly meta?: StepMetadata;
62
62
  };
63
63
  //#endregion
64
- //#region packages/core/src/runner.d.ts
64
+ //#region src/core/runner.d.ts
65
65
  type RunOptions = {
66
66
  readonly install_signal_handlers?: boolean;
67
67
  readonly trajectory?: TrajectoryLogger;
@@ -78,11 +78,11 @@ declare const run: typeof run_impl & {
78
78
  stream: typeof run_stream;
79
79
  };
80
80
  //#endregion
81
- //#region packages/core/src/step.d.ts
81
+ //#region src/core/step.d.ts
82
82
  declare function step<i, o>(id: string, fn: StepFn<i, o>, meta?: StepMetadata): Step<i, o>;
83
83
  declare function step<i, o>(fn: StepFn<i, o>): Step<i, o>;
84
84
  //#endregion
85
- //#region packages/core/src/describe.d.ts
85
+ //#region src/core/describe.d.ts
86
86
  type FlowValue = string | number | boolean | null | ReadonlyArray<FlowValue> | Readonly<{
87
87
  [key: string]: FlowValue;
88
88
  }> | {
@@ -111,7 +111,7 @@ declare const describe: {
111
111
  json: <i, o>(root: Step<i, o>, options?: DescribeOptions) => FlowNode;
112
112
  };
113
113
  //#endregion
114
- //#region packages/core/src/sequence.d.ts
114
+ //#region src/core/sequence.d.ts
115
115
  type AnyStep$2 = Step<unknown, unknown>;
116
116
  type FirstInput<children> = children extends readonly [Step<infer i, unknown>, ...unknown[]] ? i : unknown;
117
117
  type LastOutput$1<children> = children extends readonly [...unknown[], Step<unknown, infer o>] ? o : children extends readonly [Step<unknown, infer o>] ? o : unknown;
@@ -120,7 +120,7 @@ type SequenceOptions = {
120
120
  };
121
121
  declare function sequence<const children extends readonly AnyStep$2[]>(children: children, options?: SequenceOptions): Step<FirstInput<children>, LastOutput$1<children>>;
122
122
  //#endregion
123
- //#region packages/core/src/parallel.d.ts
123
+ //#region src/core/parallel.d.ts
124
124
  type AnyStep$1 = Step<unknown, unknown>;
125
125
  type OutputOf<s> = s extends Step<unknown, infer o> ? o : unknown;
126
126
  type ParallelOutputs<children extends Record<string, AnyStep$1>> = { [k in keyof children]: OutputOf<children[k]> };
@@ -129,7 +129,7 @@ type ParallelOptions = {
129
129
  };
130
130
  declare function parallel<i, children extends Record<string, Step<i, unknown>>>(members: children, options?: ParallelOptions): Step<i, ParallelOutputs<children>>;
131
131
  //#endregion
132
- //#region packages/core/src/branch.d.ts
132
+ //#region src/core/branch.d.ts
133
133
  type BranchConfig<i, o> = {
134
134
  readonly name?: string;
135
135
  readonly when: (input: i) => boolean | Promise<boolean>;
@@ -138,7 +138,7 @@ type BranchConfig<i, o> = {
138
138
  };
139
139
  declare function branch<i, o>(config: BranchConfig<i, o>): Step<i, o>;
140
140
  //#endregion
141
- //#region packages/core/src/map.d.ts
141
+ //#region src/core/map.d.ts
142
142
  type MapConfig<input, item, result> = {
143
143
  readonly name?: string;
144
144
  readonly items: (input: input) => ReadonlyArray<item> | Promise<ReadonlyArray<item>>;
@@ -147,13 +147,13 @@ type MapConfig<input, item, result> = {
147
147
  };
148
148
  declare function map<input, item, result>(config: MapConfig<input, item, result>): Step<input, result[]>;
149
149
  //#endregion
150
- //#region packages/core/src/pipe.d.ts
150
+ //#region src/core/pipe.d.ts
151
151
  type PipeOptions = {
152
152
  readonly name?: string;
153
153
  };
154
154
  declare function pipe<i, a, b>(inner: Step<i, a>, fn: (value: a) => b | Promise<b>, options?: PipeOptions): Step<i, b>;
155
155
  //#endregion
156
- //#region packages/core/src/retry.d.ts
156
+ //#region src/core/retry.d.ts
157
157
  type RetryConfig = {
158
158
  readonly name?: string;
159
159
  readonly max_attempts: number;
@@ -162,19 +162,19 @@ type RetryConfig = {
162
162
  };
163
163
  declare function retry<i, o>(inner: Step<i, o>, config: RetryConfig): Step<i, o>;
164
164
  //#endregion
165
- //#region packages/core/src/fallback.d.ts
165
+ //#region src/core/fallback.d.ts
166
166
  type FallbackOptions = {
167
167
  readonly name?: string;
168
168
  };
169
169
  declare function fallback<i, o>(primary: Step<i, o>, backup: Step<i, o>, options?: FallbackOptions): Step<i, o>;
170
170
  //#endregion
171
- //#region packages/core/src/timeout.d.ts
171
+ //#region src/core/timeout.d.ts
172
172
  type TimeoutOptions = {
173
173
  readonly name?: string;
174
174
  };
175
175
  declare function timeout<i, o>(inner: Step<i, o>, ms: number, options?: TimeoutOptions): Step<i, o>;
176
176
  //#endregion
177
- //#region packages/core/src/loop.d.ts
177
+ //#region src/core/loop.d.ts
178
178
  type LoopGuardResult<state> = {
179
179
  readonly stop: boolean;
180
180
  readonly state: state;
@@ -194,17 +194,17 @@ type LoopResult<o> = {
194
194
  };
195
195
  declare function loop<i, state, o>(config: LoopConfig<i, state, o>): Step<i, LoopResult<o>>;
196
196
  //#endregion
197
- //#region packages/core/src/compose.d.ts
197
+ //#region src/core/compose.d.ts
198
198
  declare function compose<i, o>(name: string, inner: Step<i, o>): Step<i, o>;
199
199
  //#endregion
200
- //#region packages/core/src/checkpoint.d.ts
200
+ //#region src/core/checkpoint.d.ts
201
201
  type CheckpointConfig<i> = {
202
202
  readonly name?: string;
203
203
  readonly key: string | ((input: i) => string);
204
204
  };
205
205
  declare function checkpoint<i, o>(inner: Step<i, o>, config: CheckpointConfig<i>): Step<i, o>;
206
206
  //#endregion
207
- //#region packages/core/src/suspend.d.ts
207
+ //#region src/core/suspend.d.ts
208
208
  type SuspendConfig<i, o, resume> = {
209
209
  readonly id: string;
210
210
  readonly name?: string;
@@ -214,7 +214,7 @@ type SuspendConfig<i, o, resume> = {
214
214
  };
215
215
  declare function suspend<i, o, resume>(config: SuspendConfig<i, o, resume>): Step<i, o>;
216
216
  //#endregion
217
- //#region packages/core/src/scope.d.ts
217
+ //#region src/core/scope.d.ts
218
218
  type AnyStep = Step<unknown, unknown>;
219
219
  type LastOutput<children> = children extends readonly [...unknown[], Step<unknown, infer o>] ? o : children extends readonly [Step<unknown, infer o>] ? o : unknown;
220
220
  type ScopeOptions = {
@@ -230,7 +230,7 @@ declare function scope<const children extends readonly AnyStep[]>(children: chil
230
230
  declare function stash<i, v>(key: string, source: Step<i, v>, options?: StashOptions): Step<i, v>;
231
231
  declare function use<const keys extends readonly string[], i, o>(keys: keys, fn: (state: { [k in keys[number]]: unknown }, input: i, ctx: RunContext) => Promise<o> | o, options?: UseOptions): Step<i, o>;
232
232
  //#endregion
233
- //#region packages/core/src/errors.d.ts
233
+ //#region src/core/errors.d.ts
234
234
  /**
235
235
  * Typed errors for the composition layer.
236
236
  *
@@ -277,7 +277,7 @@ declare class aborted_error extends Error {
277
277
  });
278
278
  }
279
279
  //#endregion
280
- //#region packages/core/src/step_kinds.d.ts
280
+ //#region src/core/step_kinds.d.ts
281
281
  /**
282
282
  * Closed registry of every `Step.kind` produced by the composition layer.
283
283
  *
@@ -291,7 +291,7 @@ declare const STEP_KINDS: readonly ["step", "sequence", "parallel", "branch", "m
291
291
  type StepKind = (typeof STEP_KINDS)[number];
292
292
  declare function is_step_kind(value: unknown): value is StepKind;
293
293
  //#endregion
294
- //#region packages/core/src/trajectory.d.ts
294
+ //#region src/core/trajectory.d.ts
295
295
  declare const span_start_event_schema: z.ZodObject<{
296
296
  kind: z.ZodLiteral<"span_start">;
297
297
  span_id: z.ZodString;
@@ -325,10 +325,10 @@ type EmitEvent = z.infer<typeof emit_event_schema>;
325
325
  type CustomTrajectoryEvent = z.infer<typeof custom_event_schema>;
326
326
  type ParsedTrajectoryEvent = z.infer<typeof trajectory_event_schema>;
327
327
  //#endregion
328
- //#region packages/core/src/version.d.ts
329
- declare const version = "0.6.0";
328
+ //#region src/core/version.d.ts
329
+ declare const version = "0.8.1";
330
330
  //#endregion
331
- //#region packages/core/src/index.d.ts
331
+ //#region src/core/index.d.ts
332
332
  declare const flow_schema: {
333
333
  $schema: string;
334
334
  $id: string;
@@ -707,4 +707,4 @@ declare const flow_schema: {
707
707
  };
708
708
  //#endregion
709
709
  export { loop as A, FlowNode as B, use as C, LoopConfig as D, compose as E, map as F, CheckpointStore as G, describe as H, branch as I, StepMetadata as J, RunContext as K, parallel as L, fallback as M, retry as N, LoopGuardResult as O, pipe as P, sequence as R, stash as S, checkpoint as T, step as U, FlowValue as V, run as W, TrajectoryLogger as X, TrajectoryEvent as Y, describe_cycle_error as _, ParsedTrajectoryEvent as a, timeout_error as b, custom_event_schema as c, span_start_event_schema as d, trajectory_event_schema as f, aborted_error as g, is_step_kind as h, EmitEvent as i, timeout as j, LoopResult as k, emit_event_schema as l, StepKind as m, version as n, SpanEndEvent as o, STEP_KINDS as p, Step as q, CustomTrajectoryEvent as r, SpanStartEvent as s, flow_schema as t, span_end_event_schema as u, resume_validation_error as v, suspend as w, scope as x, suspended_error as y, DescribeOptions as z };
710
- //# sourceMappingURL=index-CCFSc--s.d.ts.map
710
+ //# sourceMappingURL=index-BjOnbuc9.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { A as loop, B as FlowNode, C as use, D as LoopConfig, E as compose, F as map, G as CheckpointStore, H as describe, I as branch, J as StepMetadata, K as RunContext, L as parallel, M as fallback, N as retry, O as LoopGuardResult, P as pipe, R as sequence, S as stash, T as checkpoint, U as step, V as FlowValue, W as run, X as TrajectoryLogger, Y as TrajectoryEvent, _ as describe_cycle_error, a as ParsedTrajectoryEvent, b as timeout_error, c as custom_event_schema, d as span_start_event_schema, f as trajectory_event_schema, g as aborted_error, h as is_step_kind, i as EmitEvent, j as timeout, k as LoopResult, l as emit_event_schema, m as StepKind, n as version, o as SpanEndEvent, p as STEP_KINDS, q as Step, r as CustomTrajectoryEvent, s as SpanStartEvent, t as flow_schema, u as span_end_event_schema, v as resume_validation_error, w as suspend, x as scope, y as suspended_error, z as DescribeOptions } from "./index-CCFSc--s.js";
1
+ import { A as loop, B as FlowNode, C as use, D as LoopConfig, E as compose, F as map, G as CheckpointStore, H as describe, I as branch, J as StepMetadata, K as RunContext, L as parallel, M as fallback, N as retry, O as LoopGuardResult, P as pipe, R as sequence, S as stash, T as checkpoint, U as step, V as FlowValue, W as run, X as TrajectoryLogger, Y as TrajectoryEvent, _ as describe_cycle_error, a as ParsedTrajectoryEvent, b as timeout_error, c as custom_event_schema, d as span_start_event_schema, f as trajectory_event_schema, g as aborted_error, h as is_step_kind, i as EmitEvent, j as timeout, k as LoopResult, l as emit_event_schema, m as StepKind, n as version, o as SpanEndEvent, p as STEP_KINDS, q as Step, r as CustomTrajectoryEvent, s as SpanStartEvent, t as flow_schema, u as span_end_event_schema, v as resume_validation_error, w as suspend, x as scope, y as suspended_error, z as DescribeOptions } from "./index-BjOnbuc9.js";
2
2
  import { z } from "zod";
3
3
 
4
- //#region packages/composites/src/adversarial.d.ts
4
+ //#region src/composites/adversarial.d.ts
5
5
  type AdversarialBuildInput<input, candidate> = {
6
6
  readonly input: input;
7
7
  readonly prior?: candidate;
@@ -24,7 +24,7 @@ type AdversarialConfig<input, candidate> = {
24
24
  };
25
25
  declare function adversarial<input, candidate>(config: AdversarialConfig<input, candidate>): Step<input, AdversarialResult<candidate>>;
26
26
  //#endregion
27
- //#region packages/composites/src/consensus.d.ts
27
+ //#region src/composites/consensus.d.ts
28
28
  type ConsensusConfig<i, o> = {
29
29
  readonly name?: string;
30
30
  readonly members: Record<string, Step<i, o>>;
@@ -37,7 +37,7 @@ type ConsensusResult<o> = {
37
37
  };
38
38
  declare function consensus<i, o>(config: ConsensusConfig<i, o>): Step<i, ConsensusResult<o>>;
39
39
  //#endregion
40
- //#region packages/composites/src/ensemble.d.ts
40
+ //#region src/composites/ensemble.d.ts
41
41
  type EnsembleConfig<i, o> = {
42
42
  readonly name?: string;
43
43
  readonly members: Record<string, Step<i, o>>;
@@ -50,7 +50,7 @@ type EnsembleResult<o> = {
50
50
  };
51
51
  declare function ensemble<i, o>(config: EnsembleConfig<i, o>): Step<i, EnsembleResult<o>>;
52
52
  //#endregion
53
- //#region packages/composites/src/ensemble_step.d.ts
53
+ //#region src/composites/ensemble_step.d.ts
54
54
  type EnsembleStepConfig<i, o, ranked> = {
55
55
  readonly name?: string;
56
56
  readonly members: Record<string, Step<i, o>>;
@@ -66,7 +66,7 @@ type EnsembleStepResult<o, ranked> = {
66
66
  };
67
67
  declare function ensemble_step<i, o, ranked>(config: EnsembleStepConfig<i, o, ranked>): Step<i, EnsembleStepResult<o, ranked>>;
68
68
  //#endregion
69
- //#region packages/composites/src/improve.d.ts
69
+ //#region src/composites/improve.d.ts
70
70
  type Candidate<c> = {
71
71
  readonly content: c;
72
72
  readonly proposer_id: string;
@@ -123,7 +123,7 @@ type ImproveResult<c> = {
123
123
  };
124
124
  declare function improve<i, c>(config: ImproveConfig<i, c>): Step<i, ImproveResult<c>>;
125
125
  //#endregion
126
- //#region packages/composites/src/learn.d.ts
126
+ //#region src/composites/learn.d.ts
127
127
  type TrajectorySource = {
128
128
  readonly kind: 'events';
129
129
  readonly events: ReadonlyArray<TrajectoryEvent>;
@@ -160,7 +160,7 @@ type LearnResult<o> = {
160
160
  };
161
161
  declare function learn<i extends LearnInput, o>(config: LearnConfig<i, o>): Step<unknown, LearnResult<o>>;
162
162
  //#endregion
163
- //#region packages/composites/src/tournament.d.ts
163
+ //#region src/composites/tournament.d.ts
164
164
  type BracketRecord = {
165
165
  readonly round: number;
166
166
  readonly a_id: string;
@@ -178,7 +178,7 @@ type TournamentResult<o> = {
178
178
  };
179
179
  declare function tournament<i, o>(config: TournamentConfig<i, o>): Step<i, TournamentResult<o>>;
180
180
  //#endregion
181
- //#region packages/composites/src/bench.d.ts
181
+ //#region src/composites/bench.d.ts
182
182
  type Score = {
183
183
  readonly score: number;
184
184
  readonly reason?: string;
@@ -229,7 +229,7 @@ type BenchOptions = {
229
229
  declare function bench<I, O, S = Score>(flow: Step<I, O>, cases: ReadonlyArray<BenchCase<I>>, judges: Record<string, Judge<I, O, S>>, options?: BenchOptions): Promise<BenchReport<I, O, S>>;
230
230
  declare function normalize_score(raw: unknown): Score | undefined;
231
231
  //#endregion
232
- //#region packages/composites/src/judges.d.ts
232
+ //#region src/composites/judges.d.ts
233
233
  declare function judge_equals<O>(): Judge<unknown, O>;
234
234
  type JudgeWithFn<I, O> = (args: JudgeArgs<I, O>) => number | Score | undefined | Promise<number | Score | undefined>;
235
235
  declare function judge_with<I, O>(fn: JudgeWithFn<I, O>): Judge<I, O>;
@@ -243,7 +243,7 @@ type JudgeLlmConfig = {
243
243
  };
244
244
  declare function judge_llm<I, O>(config: JudgeLlmConfig): Judge<I, O>;
245
245
  //#endregion
246
- //#region packages/composites/src/regression.d.ts
246
+ //#region src/composites/regression.d.ts
247
247
  type RegressionDelta = {
248
248
  readonly metric: string;
249
249
  readonly baseline: number;
@@ -272,10 +272,10 @@ declare function regression_compare(current: BenchReport, baseline: BenchReport,
272
272
  declare function read_baseline(path: string): Promise<BenchReport>;
273
273
  declare function write_baseline(path: string, report: BenchReport): Promise<void>;
274
274
  //#endregion
275
- //#region packages/engine/src/version.d.ts
276
- declare const version$1 = "0.6.0";
275
+ //#region src/engine/version.d.ts
276
+ declare const version$1 = "0.8.1";
277
277
  //#endregion
278
- //#region packages/engine/src/providers/claude_cli/types.d.ts
278
+ //#region src/engine/providers/claude_cli/types.d.ts
279
279
  /**
280
280
  * Public types for the claude_cli subprocess provider (spec §5.1, §5.3, §5.4).
281
281
  *
@@ -324,7 +324,7 @@ type ClaudeCliProviderConfig = {
324
324
  readonly skip_probe?: boolean;
325
325
  };
326
326
  //#endregion
327
- //#region packages/engine/src/types.d.ts
327
+ //#region src/engine/types.d.ts
328
328
  type EffortLevel = 'none' | 'low' | 'medium' | 'high' | 'xhigh' | 'max';
329
329
  type FinishReason = 'stop' | 'tool_calls' | 'length' | 'content_filter' | 'aborted' | 'max_steps';
330
330
  type RetryFailureKind = 'rate_limit' | 'provider_5xx' | 'network' | 'timeout';
@@ -334,21 +334,14 @@ type RetryPolicy = {
334
334
  max_delay_ms: number;
335
335
  retry_on: ReadonlyArray<RetryFailureKind>;
336
336
  };
337
- type AliasTarget = {
337
+ /**
338
+ * The resolved transport + model id a generate call dispatches to. `model_id`
339
+ * is passed verbatim to the provider; the engine does not interpret it.
340
+ */
341
+ type ResolvedModel = {
338
342
  provider: string;
339
343
  model_id: string;
340
- defaults?: {
341
- temperature?: number;
342
- max_tokens?: number;
343
- effort?: EffortLevel;
344
- };
345
344
  };
346
- type AliasTable = Readonly<Record<string, AliasTarget>>;
347
- /**
348
- * Family catalog: family name -> provider name -> the latest model id to send
349
- * to that provider for the family. See `MODEL_FAMILIES` in aliases.ts.
350
- */
351
- type FamilyCatalog = Readonly<Record<string, Readonly<Record<string, string>>>>;
352
345
  type Pricing = {
353
346
  input_per_million: number;
354
347
  output_per_million: number;
@@ -552,6 +545,14 @@ type ProviderConfigMap = {
552
545
  http_referer?: string;
553
546
  x_title?: string;
554
547
  };
548
+ bedrock?: {
549
+ region: string;
550
+ api_key?: string;
551
+ access_key_id?: string;
552
+ secret_access_key?: string;
553
+ session_token?: string;
554
+ base_url?: string;
555
+ };
555
556
  claude_cli?: ClaudeCliProviderConfig;
556
557
  [custom: string]: ProviderInit | undefined;
557
558
  };
@@ -582,8 +583,6 @@ type EngineDefaults = {
582
583
  };
583
584
  type EngineConfig = {
584
585
  providers: ProviderConfigMap;
585
- aliases?: AliasTable;
586
- families?: FamilyCatalog;
587
586
  pricing?: PricingTable;
588
587
  default_retry?: RetryPolicy;
589
588
  default_effort?: EffortLevel;
@@ -592,20 +591,16 @@ type EngineConfig = {
592
591
  };
593
592
  type Engine = {
594
593
  generate: <t = string>(opts: GenerateOptions<t>) => Promise<GenerateResult<t>>;
595
- register_alias: (alias: string, target: AliasTarget) => void;
596
- unregister_alias: (alias: string) => void;
597
- resolve_alias: (alias: string) => AliasTarget;
598
- list_aliases: () => AliasTable;
599
594
  register_price: (provider: string, model_id: string, pricing: Pricing) => void;
600
595
  resolve_price: (provider: string, model_id: string) => Pricing | undefined;
601
596
  list_prices: () => PricingTable;
602
597
  dispose: () => Promise<void>;
603
598
  };
604
599
  //#endregion
605
- //#region packages/engine/src/create_engine.d.ts
600
+ //#region src/engine/create_engine.d.ts
606
601
  declare function create_engine(config: EngineConfig): Engine;
607
602
  //#endregion
608
- //#region packages/engine/src/errors.d.ts
603
+ //#region src/engine/errors.d.ts
609
604
  declare class rate_limit_error extends Error {
610
605
  readonly kind: "rate_limit_error";
611
606
  readonly retry_after_ms?: number;
@@ -656,18 +651,9 @@ declare class tool_approval_denied_error extends Error {
656
651
  tool_call_id: string;
657
652
  });
658
653
  }
659
- declare class model_not_found_error extends Error {
660
- readonly kind: "model_not_found_error";
661
- readonly model: string;
662
- readonly registered: ReadonlyArray<string>;
663
- constructor(model: string, registered: ReadonlyArray<string>);
664
- }
665
- declare class model_family_unavailable_error extends Error {
666
- readonly kind: "model_family_unavailable_error";
667
- readonly family: string;
668
- readonly provider: string;
669
- readonly available_providers: ReadonlyArray<string>;
670
- constructor(family: string, provider: string, available_providers: ReadonlyArray<string>);
654
+ declare class model_required_error extends Error {
655
+ readonly kind: "model_required_error";
656
+ constructor(message?: string);
671
657
  }
672
658
  declare class provider_not_configured_error extends Error {
673
659
  readonly kind: "provider_not_configured_error";
@@ -714,7 +700,7 @@ declare class provider_auth_error extends Error {
714
700
  });
715
701
  }
716
702
  //#endregion
717
- //#region packages/fascicle/src/model_call.d.ts
703
+ //#region src/model_call.d.ts
718
704
  type ModelCallInput = string | ReadonlyArray<Message>;
719
705
  type ModelCallConfig<T = string> = {
720
706
  readonly engine: Engine;
@@ -743,10 +729,10 @@ type ModelCallConfig<T = string> = {
743
729
  };
744
730
  declare function model_call<T = string>(cfg: ModelCallConfig<T>): Step<ModelCallInput, GenerateResult<T>>;
745
731
  //#endregion
746
- //#region packages/fascicle/src/forward_standard_env.d.ts
732
+ //#region src/forward_standard_env.d.ts
747
733
  declare function forward_standard_env(): Record<string, string>;
748
734
  //#endregion
749
- //#region packages/viewer/src/cli.d.ts
735
+ //#region src/viewer/cli.d.ts
750
736
  /**
751
737
  * fascicle-viewer CLI.
752
738
  *
@@ -762,13 +748,13 @@ declare function forward_standard_env(): Record<string, string>;
762
748
  */
763
749
  declare function run_viewer_cli(argv: readonly string[]): Promise<void>;
764
750
  //#endregion
765
- //#region packages/viewer/src/index.d.ts
751
+ //#region src/viewer/index.d.ts
766
752
  /**
767
- * Public surface for @repo/viewer.
753
+ * Public surface for viewer.
768
754
  *
769
755
  * `start_viewer({ ... })` is the programmatic embed: spin up the server,
770
756
  * optionally start tailing a JSONL file, and return a handle that can stop
771
- * both. `start_viewer` only depends on @repo/core's wire-format schema; it
757
+ * both. `start_viewer` only depends on core's wire-format schema; it
772
758
  * never reaches into the engine, composites, or any provider.
773
759
  */
774
760
  type StartViewerOptions = {
@@ -788,5 +774,5 @@ type ViewerHandle = {
788
774
  };
789
775
  declare function start_viewer(options?: StartViewerOptions): Promise<ViewerHandle>;
790
776
  //#endregion
791
- export { type AdversarialBuildInput, type AdversarialConfig, type AdversarialCritiqueResult, type AdversarialResult, type AliasTable, type AliasTarget, type AssistantContentPart, type BenchCase, type BenchOptions, type BenchReport, type BenchSummary, type BracketRecord, type Candidate, type CaseResult, CheckpointStore, type ConsensusConfig, type ConsensusResult, type CostBreakdown, CustomTrajectoryEvent, DescribeOptions, type EffortLevel, EmitEvent, type Engine, type EngineConfig, type EngineDefaults, type EnsembleConfig, type EnsembleResult, type EnsembleStepConfig, type EnsembleStepResult, type FinishReason, FlowNode, FlowValue, type GenerateOptions, type GenerateResult, type HistoryEntry, type ImproveBudget, type ImproveConfig, type ImproveResult, type ImproveRoundInput, type Improvement, type Judge, type JudgeArgs, type JudgeLlmConfig, type JudgeWithFn, type LearnConfig, type LearnInput, type LearnResult, type Lesson, LoopConfig, LoopGuardResult, LoopResult, type Message, type ModelCallConfig, type ModelCallInput, ParsedTrajectoryEvent, type PerCaseDelta, type Pricing, type PricingTable, type ProviderConfigMap, type ProviderInit, type RegressionCompareOptions, type RegressionDelta, type RegressionReport, type RetryFailureKind, type RetryPolicy, RunContext, STEP_KINDS, type Score, type ScoredCandidate, SpanEndEvent, SpanStartEvent, type StartViewerOptions, Step, StepKind, StepMetadata, type StepRecord, type StreamChunk, type Tool, type ToolApprovalHandler, type ToolApprovalRequest, type ToolCallRecord, type ToolExecContext, type TournamentConfig, type TournamentResult, TrajectoryEvent, TrajectoryLogger, type TrajectorySource, type UsageTotals, type UserContentPart, type ViewerHandle, aborted_error, adversarial, bench, branch, checkpoint, claude_cli_error, compose, consensus, version as core_version, create_engine, custom_event_schema, describe, describe_cycle_error, emit_event_schema, engine_config_error, engine_disposed_error, version$1 as engine_version, ensemble, ensemble_step, fallback, flow_schema, forward_standard_env, improve, is_step_kind, judge_equals, judge_llm, judge_with, learn, loop, map, model_call, model_family_unavailable_error, model_not_found_error, normalize_score, on_chunk_error, parallel, pipe, provider_auth_error, provider_capability_error, provider_error, provider_not_configured_error, rate_limit_error, read_baseline, regression_compare, resume_validation_error, retry, run, run_viewer_cli, schema_validation_error, scope, sequence, span_end_event_schema, span_start_event_schema, start_viewer, stash, step, suspend, suspended_error, timeout, timeout_error, tool_approval_denied_error, tool_error, tournament, trajectory_event_schema, use, write_baseline };
777
+ export { type AdversarialBuildInput, type AdversarialConfig, type AdversarialCritiqueResult, type AdversarialResult, type AssistantContentPart, type BenchCase, type BenchOptions, type BenchReport, type BenchSummary, type BracketRecord, type Candidate, type CaseResult, CheckpointStore, type ConsensusConfig, type ConsensusResult, type CostBreakdown, CustomTrajectoryEvent, DescribeOptions, type EffortLevel, EmitEvent, type Engine, type EngineConfig, type EngineDefaults, type EnsembleConfig, type EnsembleResult, type EnsembleStepConfig, type EnsembleStepResult, type FinishReason, FlowNode, FlowValue, type GenerateOptions, type GenerateResult, type HistoryEntry, type ImproveBudget, type ImproveConfig, type ImproveResult, type ImproveRoundInput, type Improvement, type Judge, type JudgeArgs, type JudgeLlmConfig, type JudgeWithFn, type LearnConfig, type LearnInput, type LearnResult, type Lesson, LoopConfig, LoopGuardResult, LoopResult, type Message, type ModelCallConfig, type ModelCallInput, ParsedTrajectoryEvent, type PerCaseDelta, type Pricing, type PricingTable, type ProviderConfigMap, type ProviderInit, type RegressionCompareOptions, type RegressionDelta, type RegressionReport, type ResolvedModel, type RetryFailureKind, type RetryPolicy, RunContext, STEP_KINDS, type Score, type ScoredCandidate, SpanEndEvent, SpanStartEvent, type StartViewerOptions, Step, StepKind, StepMetadata, type StepRecord, type StreamChunk, type Tool, type ToolApprovalHandler, type ToolApprovalRequest, type ToolCallRecord, type ToolExecContext, type TournamentConfig, type TournamentResult, TrajectoryEvent, TrajectoryLogger, type TrajectorySource, type UsageTotals, type UserContentPart, type ViewerHandle, aborted_error, adversarial, bench, branch, checkpoint, claude_cli_error, compose, consensus, version as core_version, create_engine, custom_event_schema, describe, describe_cycle_error, emit_event_schema, engine_config_error, engine_disposed_error, version$1 as engine_version, ensemble, ensemble_step, fallback, flow_schema, forward_standard_env, improve, is_step_kind, judge_equals, judge_llm, judge_with, learn, loop, map, model_call, model_required_error, normalize_score, on_chunk_error, parallel, pipe, provider_auth_error, provider_capability_error, provider_error, provider_not_configured_error, rate_limit_error, read_baseline, regression_compare, resume_validation_error, retry, run, run_viewer_cli, schema_validation_error, scope, sequence, span_end_event_schema, span_start_event_schema, start_viewer, stash, step, suspend, suspended_error, timeout, timeout_error, tool_approval_denied_error, tool_error, tournament, trajectory_event_schema, use, write_baseline };
792
778
  //# sourceMappingURL=index.d.ts.map