Repository navigation
Expand file tree
/
Copy pathcatalog.ts
More file actions
216 lines (209 loc) · 6.87 KB
/
Copy pathcatalog.ts
File metadata and controls
216 lines (209 loc) · 6.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
// The catalog: every effectified family and package. Every count on the site is computed from this file.
/** What a package is, as pi-effect's `piEffect.kind` says it. */
export type Kind = "facade" | "plugin" | "host" | "composition" | "docs";
/** One package of a family. */
export interface Package {
readonly name: string;
readonly kind: Kind;
/** The upstream packages it wraps or builds on, with the pinned version. */
readonly wraps: ReadonlyArray<string>;
readonly summary: string;
/** Not in the release: private like the upstream package it wraps, used from a checkout. */
readonly private?: true;
}
/** One upstream project and the packages that make it Effect-native. */
export interface Family {
readonly id: string;
readonly title: string;
readonly upstream: { readonly name: string; readonly url: string; readonly version: string };
readonly repo: string;
/** The npm scope of the family's packages. */
readonly scope: string;
readonly status: "alpha";
/** The GitHub release the packages install from: `<base>/<scope>-<name>-<version>.tgz`. */
readonly release: { readonly tag: string; readonly version: string; readonly base: string };
readonly effect: string;
readonly packages: ReadonlyArray<Package>;
}
/** Each kind in one line. */
export const KINDS = {
facade: "Upstream's capability in Effect terms. Adds no behaviour.",
plugin: "Behaviour of ours, built on the facades.",
host: "Runs the upstream harness on another platform.",
composition: "The plugins composed as a product would compose them.",
docs: "The family's docs, as pages for people and skills for agents.",
} as const satisfies Record<Kind, string>;
/** The families, in the order the site lists them. */
export const FAMILIES: ReadonlyArray<Family> = [
{
id: "pi",
title: "Pi",
upstream: { name: "earendil-works/pi", url: "https://github.com/earendil-works/pi", version: "1.6.1" },
repo: "https://github.com/effectified/pi",
scope: "@effectified",
status: "alpha",
release: {
tag: "v0.2.0",
version: "0.2.0",
base: "https://github.com/effectified/pi/releases/download/v0.2.0",
},
effect: "~4.1.5",
packages: [
{
name: "pi-ai",
kind: "facade",
wraps: ["pi-ai"],
summary: "Models as a service, requests as Stream and Effect, bridges to effect/ai both ways.",
},
{
name: "pi-durable",
kind: "facade",
wraps: ["pi-durable", "pi-ai", "chord"],
summary: "The durable agent harness as Layers, Effects and Streams.",
},
{
name: "pi-schema",
kind: "facade",
wraps: ["pi-schema"],
summary: "Effect Schema to and from Pi tool parameters, with typed decode errors.",
},
{
name: "pi-telemetry",
kind: "facade",
wraps: ["pi-telemetry"],
summary: "Pi spans, metrics and events as Effect spans, metrics and logs; typed telemetry schemas.",
},
{
name: "pi-agent",
kind: "facade",
wraps: ["pi-agent-core"],
summary: "Pi's short-lived agent loop: prompts as Effects, events as Streams, tools and hooks as Effects.",
},
{
name: "pi-coding-agent",
kind: "facade",
wraps: ["pi-coding-agent"],
summary: "Pi extensions written in Effect, sessions, built-in and MCP tools, print, RPC and interactive modes.",
},
{
name: "pi-mcp",
kind: "facade",
wraps: ["pi-mcp"],
summary: "MCP clients and transports as scoped resources, notifications as Streams, OAuth sign-in.",
},
{
name: "pi-env",
kind: "facade",
wraps: ["pi-env"],
summary: "Local and remote environments, processes, terminals and SSH as scoped resources.",
},
{
name: "pi-tui",
kind: "facade",
wraps: ["pi-tui"],
summary: "The terminal UI as a scoped service, keys and callbacks as Streams, keybindings kept configurable.",
},
{
name: "pi-codemode",
kind: "facade",
wraps: ["pi-codemode"],
summary: "Code mode over Effect tools: worker, inline and remote sandboxes, runs as Streams.",
},
{
name: "pi-chord",
kind: "facade",
wraps: ["chord"],
summary: "Chord's context from the calling fiber, its store, hosts, facets, links and clients.",
},
{
name: "pi-evals",
kind: "facade",
wraps: ["pi-evals"],
summary: "Evaluations whose runs, scorers and Docker observations are Effects and Streams.",
private: true,
},
{
name: "pi-approvals",
kind: "plugin",
wraps: ["pi-durable"],
summary: "Human approval of tool calls: a parking gate with typed requests and decisions.",
},
{
name: "pi-budget",
kind: "plugin",
wraps: ["pi-ai", "pi-durable"],
summary: "Budget leases: reserve before each request, settle after, stop when fenced.",
},
{
name: "pi-guard",
kind: "plugin",
wraps: ["pi-durable"],
summary: "Tool allow-lists, forbidden verbs and argument rules, failing closed.",
},
{
name: "pi-recorder",
kind: "plugin",
wraps: ["pi-ai", "pi-durable"],
summary: "Every message, model call and tool call to a sink, at least once, with deterministic ids.",
},
{
name: "pi-review",
kind: "plugin",
wraps: ["pi-ai", "pi-durable"],
summary: "A second model of another family and a citation check before an answer stands.",
},
{
name: "pi-router",
kind: "plugin",
wraps: ["pi-ai"],
summary: "Model routes: fallback, a limiter with backoff, prices, region filters.",
},
{
name: "pi-search",
kind: "plugin",
wraps: ["pi-durable"],
summary: "Search and fetch tools behind a provider port, with an Exa adapter.",
},
{
name: "pi-subagent",
kind: "plugin",
wraps: ["pi-durable"],
summary: "Foreground and background child agents with typed results.",
},
{
name: "pi-swarm",
kind: "plugin",
wraps: ["pi-durable"],
summary: "Prime once, fork per job under a cap, typed fan-in and cleanup.",
},
{
name: "pi-durable-rivet",
kind: "host",
wraps: ["pi-durable", "pi-ai", "chord"],
summary: "A durable harness inside a Rivet actor: actor SQLite, schedules and forks.",
},
{
name: "pi-thread",
kind: "composition",
wraps: ["pi-ai", "pi-durable"],
summary: "An agent thread: guarded, budgeted, recorded and reviewed, with subagents and swarms.",
},
{
name: "pi-docs",
kind: "docs",
wraps: [],
summary: "The family's docs as pages for people and as skills for agents.",
},
],
},
];
/** The totals the page shows, computed from the catalog. */
export const totals = {
families: FAMILIES.length,
packages: FAMILIES.reduce((sum, family) => sum + family.packages.length, 0),
upstream: new Set(FAMILIES.flatMap((family) => family.packages.flatMap((pkg) => pkg.wraps.map((w) => `${family.id}/${w}`)))).size,
};
/** The release URL of a package's tarball, as `npm pack` names it. */
export function tarballUrl(family: Family, pkg: Package): string {
return `${family.release.base}/${family.scope.slice(1)}-${pkg.name}-${family.release.version}.tgz`;
}