foldkit-plus 0.11.0 → 0.13.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/README.md +11 -0
- package/dist/guard/media.d.mts +1 -0
- package/dist/guard/media.mjs +2 -0
- package/dist/setup.d.mts +6 -0
- package/dist/setup.d.mts.map +1 -1
- package/dist/setup.mjs +25 -2
- package/dist/setup.mjs.map +1 -1
- package/package.json +33 -28
package/README.md
CHANGED
|
@@ -14,6 +14,17 @@ your `package.json` first and says when `effect` or `foldkit` is missing or at a
|
|
|
14
14
|
version this release does not support. It writes nothing; the agent runs what it
|
|
15
15
|
says.
|
|
16
16
|
|
|
17
|
+
For a new application, run it in an empty folder. With no `package.json` it
|
|
18
|
+
sends the agent to the skill's
|
|
19
|
+
[greenfield guide](https://github.com/doeixd/foldkit-plus/blob/main/skills/foldkit-plus/references/greenfield.md):
|
|
20
|
+
ask about the goals, the look (a theme designed at
|
|
21
|
+
[/create](https://foldkit-plus.pages.dev/create)) and the domain first, record
|
|
22
|
+
the answers in the project,
|
|
23
|
+
map them to these packages with you, plan the architecture, performance, SEO,
|
|
24
|
+
testing, CI and deployment, and build once you agree. It prints the
|
|
25
|
+
`create-foldkit-app` command, at the release that installs this release's
|
|
26
|
+
Foldkit, for when it is time to scaffold.
|
|
27
|
+
|
|
17
28
|
## What it is
|
|
18
29
|
|
|
19
30
|
[Foldkit Plus](https://foldkit-plus.pages.dev) is a family of packages that
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-guard/media";
|
package/dist/setup.d.mts
CHANGED
|
@@ -18,6 +18,12 @@ export interface SetupInput {
|
|
|
18
18
|
readonly manager: Manager;
|
|
19
19
|
readonly versions: Versions;
|
|
20
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* The `create-foldkit-app` release whose templates pin the Foldkit this
|
|
23
|
+
* release needs (0.39.1 installs `foldkit` 0.168.0). A release that moves
|
|
24
|
+
* the `foldkit` peer moves this with it.
|
|
25
|
+
*/
|
|
26
|
+
export declare const SCAFFOLDER = "create-foldkit-app@0.39.1";
|
|
21
27
|
/** What each job needs, where to import it from, and where it is explained. */
|
|
22
28
|
export declare const jobs: ReadonlyArray<{
|
|
23
29
|
readonly job: string;
|
package/dist/setup.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.mts","names":[],"sources":["../src/setup.ts"],"mappings":";;YAOY;;iBAGK;WACN;;WAEA,UAAU,SAAS;;;iBAIb;WACN;WACA;WACA;;iBAGM;WACN,SAAS,OAAO,OAAO;WACvB,SAAS;WACT,UAAU
|
|
1
|
+
{"version":3,"file":"setup.d.mts","names":[],"sources":["../src/setup.ts"],"mappings":";;YAOY;;iBAGK;WACN;;WAEA,UAAU,SAAS;;;iBAIb;WACN;WACA;WACA;;iBAGM;WACN,SAAS,OAAO,OAAO;WACvB,SAAS;WACT,UAAU;;;;;;;qBAWR;;qBAKA,MAAM;WACR;WACA,SAAS;WACT;;;;;;qBA4GE,UAAU;WACZ;WACA,WAAW;WACX;;;qBAqCE,aAAU,SAAa,SAAO,UAAY;qBAuB1C,eAAU,SAAA,SAAA,YAAoC"}
|
package/dist/setup.mjs
CHANGED
|
@@ -7,6 +7,13 @@ import { Option } from "effect";
|
|
|
7
7
|
*/
|
|
8
8
|
const SITE = "https://foldkit-plus.pages.dev";
|
|
9
9
|
const REPOSITORY = "https://github.com/doeixd/foldkit-plus";
|
|
10
|
+
/**
|
|
11
|
+
* The `create-foldkit-app` release whose templates pin the Foldkit this
|
|
12
|
+
* release needs (0.39.1 installs `foldkit` 0.168.0). A release that moves
|
|
13
|
+
* the `foldkit` peer moves this with it.
|
|
14
|
+
*/
|
|
15
|
+
const SCAFFOLDER = "create-foldkit-app@0.39.1";
|
|
16
|
+
const GREENFIELD = `${REPOSITORY}/blob/main/skills/foldkit-plus/references/greenfield.md`;
|
|
10
17
|
/** What each job needs, where to import it from, and where it is explained. */
|
|
11
18
|
const jobs = [
|
|
12
19
|
{
|
|
@@ -205,7 +212,19 @@ const setupGuide = ({ project, manager, versions }) => {
|
|
|
205
212
|
"foldkit-plus"
|
|
206
213
|
]);
|
|
207
214
|
const check = Option.match(project, {
|
|
208
|
-
onNone: () => [
|
|
215
|
+
onNone: () => [
|
|
216
|
+
"There is no `package.json` here: this is a new application. Do not scaffold yet. Follow the greenfield guide, which asks the user about the goals, the look and the domain before any code:",
|
|
217
|
+
"",
|
|
218
|
+
`- ${GREENFIELD} (in the skill of step 3, \`references/greenfield.md\`)`,
|
|
219
|
+
"",
|
|
220
|
+
"When its first step has a name and a rendering mode, it scaffolds with:",
|
|
221
|
+
"",
|
|
222
|
+
"```bash",
|
|
223
|
+
`npx ${SCAFFOLDER} --name <name> --rendering <spa|ssg|ssr> --example counter --package-manager ${manager}`,
|
|
224
|
+
"```",
|
|
225
|
+
"",
|
|
226
|
+
"Then run `npx foldkit-plus setup` again in the new folder and continue from step 2."
|
|
227
|
+
],
|
|
209
228
|
onSome: (found) => [
|
|
210
229
|
`This is \`${found.name}\`, installed with ${manager}.`,
|
|
211
230
|
"",
|
|
@@ -245,6 +264,10 @@ const setupGuide = ({ project, manager, versions }) => {
|
|
|
245
264
|
"```",
|
|
246
265
|
"",
|
|
247
266
|
"It teaches you which package owns which kind of state, when to reach for each, and a working example of each. Read its `SKILL.md` before writing code with Foldkit Plus, and the reference for the package at hand before changing it.",
|
|
267
|
+
...Option.match(project, {
|
|
268
|
+
onNone: () => [],
|
|
269
|
+
onSome: () => ["", `Building a new application rather than extending one? Follow its \`references/greenfield.md\` (${GREENFIELD}): goals and the look, then the domain with the user, recorded in the project and mapped to these packages, then a plan for architecture, performance, SEO, testing, CI and deployment, before implementing.`]
|
|
270
|
+
}),
|
|
248
271
|
"",
|
|
249
272
|
"## 4. Import",
|
|
250
273
|
"",
|
|
@@ -276,6 +299,6 @@ const setupGuide = ({ project, manager, versions }) => {
|
|
|
276
299
|
].join("\n");
|
|
277
300
|
};
|
|
278
301
|
//#endregion
|
|
279
|
-
export { adapters, addCommand, jobs, setupGuide };
|
|
302
|
+
export { SCAFFOLDER, adapters, addCommand, jobs, setupGuide };
|
|
280
303
|
|
|
281
304
|
//# sourceMappingURL=setup.mjs.map
|
package/dist/setup.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.mjs","names":[],"sources":["../src/setup.ts"],"sourcesContent":["/**\n * What `npx foldkit-plus setup` prints: instructions a coding agent can follow\n * in order, for the project it is run in. Pure: the CLI reads the project and\n * this package's manifest and passes them in, so a test can give any project.\n */\nimport { Option } from 'effect'\n\nexport type Manager = 'pnpm' | 'npm' | 'yarn' | 'bun'\n\n/** What the project's `package.json` says about the libraries Foldkit Plus needs. */\nexport interface Project {\n readonly name: string\n /** Each named library's version range, from any dependency field. */\n readonly versions: Readonly<Record<string, string>>\n}\n\n/** The versions this release is built and tested against, from its own manifest. */\nexport interface Versions {\n readonly plus: string\n readonly effect: string\n readonly foldkit: string\n}\n\nexport interface SetupInput {\n readonly project: Option.Option<Project>\n readonly manager: Manager\n readonly versions: Versions\n}\n\nconst SITE = 'https://foldkit-plus.pages.dev'\nconst REPOSITORY = 'https://github.com/doeixd/foldkit-plus'\n\n/** What each job needs, where to import it from, and where it is explained. */\nexport const jobs: ReadonlyArray<{\n readonly job: string\n readonly imports: ReadonlyArray<string>\n readonly guide: string\n}> = [\n {\n job: 'Name what a feature may read and which Messages it may send',\n imports: ['surface', 'metadata'],\n guide: 'surface',\n },\n {\n job: 'A reusable Submodel placed several times, every part wired',\n imports: ['bundle', 'bundle-surface'],\n guide: 'bundle',\n },\n {\n job: 'Restyle or extend views from outside, through typed slots',\n imports: ['mixins', 'mixins-surface', 'mixins-ui'],\n guide: 'mixins',\n },\n {\n job: 'Media queries, timers, sockets, clipboard, undo history',\n imports: ['primitives'],\n guide: 'primitives',\n },\n {\n job: 'Declare the domain once: entities, relations, queries',\n imports: ['entity'],\n guide: 'entity',\n },\n {\n job: 'Server-owned data in the Model: queries, mutations, live updates',\n imports: ['remote', 'remote-server', 'remote-drizzle'],\n guide: 'remote',\n },\n {\n job: 'Edits that survive offline and converge across devices',\n imports: ['sync', 'durable'],\n guide: 'sync',\n },\n { job: 'Who may do what, enforced on every seam', imports: ['guard'], guide: 'guard' },\n {\n job: 'Who is signed in: a Yielded Auth session as the principal',\n imports: ['auth'],\n guide: 'auth',\n },\n {\n job: 'A slice of the Model kept in the URL or in storage',\n imports: ['mirror'],\n guide: 'mirror',\n },\n {\n job: 'Forms: drafts, validation, a decoded value',\n imports: ['form', 'mixins-form'],\n guide: 'form',\n },\n {\n job: 'Edit, create and list screens over Remote',\n imports: ['crud', 'mixins-crud'],\n guide: 'crud',\n },\n {\n job: 'An interactive data grid over rows you own',\n imports: ['data-grid', 'mixins-data-grid'],\n guide: 'data-grid',\n },\n {\n job: 'Drafts, revisions and publishing for content',\n imports: ['cms', 'cms-drizzle'],\n guide: 'cms',\n },\n {\n job: 'Pages as data, and a builder that edits them',\n imports: ['composition', 'builder', 'mixins-builder'],\n guide: 'composition',\n },\n {\n job: 'Rich text: the document, its editor, Markdown and code',\n imports: [\n 'richtext',\n 'richtext-dom',\n 'mixins-richtext',\n 'richtext-markdown',\n 'richtext-code',\n 'richtext-code-shiki',\n ],\n guide: 'richtext',\n },\n { job: 'Server rendering that hands the Model over', imports: ['ssr'], guide: 'ssr' },\n {\n job: 'Responsive images, their variants and placeholders, and icons as data',\n imports: ['media'],\n guide: 'media',\n },\n { job: 'Route topology as data: nodes, typed targets, titles', imports: ['site'], guide: 'site' },\n {\n job: 'What an AI agent may see and do, over MCP, WebMCP, A2A or Agent Native',\n imports: ['agent', 'agent-mcp', 'agent-webmcp', 'agent-a2a', 'agent-native'],\n guide: 'agent',\n },\n {\n job: 'React components in a Foldkit view, or Foldkit inside React',\n imports: ['react', 'react-codegen'],\n guide: 'react',\n },\n]\n\n/**\n * The packages `foldkit-plus` does not install, since each needs a library of\n * its own, and that library. `test/setup.test.ts` holds this to the manifest.\n */\nexport const adapters: ReadonlyArray<{\n readonly name: string\n readonly libraries: ReadonlyArray<string>\n readonly when: string\n}> = [\n {\n name: 'foldkit-agent-native',\n libraries: ['@agent-native/core'],\n when: 'agents through Agent Native',\n },\n {\n name: 'foldkit-auth',\n libraries: ['@yielded/auth'],\n when: 'sign-in and sessions with Yielded Auth',\n },\n { name: 'foldkit-cms-drizzle', libraries: ['drizzle-orm'], when: \"the CMS's server on Drizzle\" },\n {\n name: 'foldkit-mixins-ui',\n libraries: ['@foldkit/ui'],\n when: 'styling `@foldkit/ui` components through slots',\n },\n { name: 'foldkit-react', libraries: ['react', 'react-dom'], when: 'React interop' },\n {\n name: 'foldkit-react-codegen',\n libraries: ['typescript'],\n when: 'compiling Foldkit views to React TSX (a dev dependency)',\n },\n {\n name: 'foldkit-remote-drizzle',\n libraries: ['drizzle-orm'],\n when: 'answering Remote reads with Drizzle',\n },\n {\n name: 'foldkit-richtext-code-shiki',\n libraries: ['shiki'],\n when: 'highlighting code blocks with Shiki',\n },\n]\n\n/** The command that adds `packages` with `manager`. */\nexport const addCommand = (manager: Manager, packages: ReadonlyArray<string>): string =>\n `${manager} ${manager === 'npm' ? 'install' : 'add'} ${packages.join(' ')}`\n\n/** The major version a range asks for: `^4.0.0`, `~4.1`, `4.0.0-beta.1` all ask for 4. */\nconst majorOf = (range: string): Option.Option<number> =>\n Option.fromNullishOr(/(\\d+)/.exec(range)?.[1]).pipe(Option.map(Number))\n\n/** What the project has of a library against what this release needs, as a line to act on. */\nconst finding = (project: Project, library: string, wanted: string): string =>\n Option.match(Option.fromNullishOr(project.versions[library]), {\n onNone: () => `- \\`${library}\\` is not installed: step 2 adds \\`${library}@${wanted}\\`.`,\n onSome: range => {\n // Foldkit is 0.x, where a minor version breaks; Effect is past 1.\n const matches =\n library === 'foldkit'\n ? range.replace(/^[\\^~=v]*/, '').startsWith(wanted.split('.').slice(0, 2).join('.'))\n : Option.getOrUndefined(majorOf(range)) === Option.getOrUndefined(majorOf(wanted))\n return matches\n ? `- \\`${library}\\` ${range}: fits.`\n : `- \\`${library}\\` is ${range}, and Foldkit Plus needs ${wanted}: step 2 moves it to ${wanted}. Check the application builds after.`\n },\n })\n\nexport const setupGuide = ({ project, manager, versions }: SetupInput): string => {\n const install = addCommand(manager, [\n `effect@${versions.effect}`,\n `foldkit@${versions.foldkit}`,\n `@effect/platform-browser@${versions.effect}`,\n 'foldkit-plus',\n ])\n const check = Option.match(project, {\n onNone: () => [\n 'There is no `package.json` here. Create the Foldkit application first (https://foldkit.dev shows how), then run `npx foldkit-plus setup` again in its folder.',\n ],\n onSome: found => [\n `This is \\`${found.name}\\`, installed with ${manager}.`,\n '',\n finding(found, 'effect', versions.effect),\n finding(found, 'foldkit', versions.foldkit),\n ],\n })\n return [\n `# Foldkit Plus ${versions.plus}: setup`,\n '',\n 'Instructions for a coding agent, in order. Each step says what to run and why. Tell the user what you did at the end.',\n '',\n '## What these are',\n '',\n '- **Effect** (https://effect.website): TypeScript for typed effects, errors, schemas and streams. Foldkit Plus targets Effect 4.',\n '- **Foldkit** (https://foldkit.dev): an application is one state machine on Effect, a Schema-typed `Model`, a `Message` union and one pure `update`; I/O runs in Commands and Subscriptions.',\n '- **Foldkit Plus**: packages that extend a Foldkit application to agents, servers, other devices, the URL and design systems without a second place to keep state. An agent sends only Messages `update` already handles; server data lives in the Model; replicas replay the same Messages; the URL mirrors a slice of the Model.',\n '',\n '## 1. Check the project',\n '',\n ...check,\n '',\n '## 2. Install',\n '',\n '```bash',\n install,\n '```',\n '',\n '`foldkit-plus` brings every package except the adapters below, each of which needs a library of its own. Add one only when the application needs it:',\n '',\n ...adapters.map(\n each => `- ${each.when}: \\`${addCommand(manager, [each.name, ...each.libraries])}\\``,\n ),\n '',\n '## 3. Add the agent skill',\n '',\n '```bash',\n 'npx skills add doeixd/foldkit-plus --skill foldkit-plus',\n '```',\n '',\n 'It teaches you which package owns which kind of state, when to reach for each, and a working example of each. Read its `SKILL.md` before writing code with Foldkit Plus, and the reference for the package at hand before changing it.',\n '',\n '## 4. Import',\n '',\n 'The namespaces most applications use come from the root:',\n '',\n '```ts',\n \"import { Surface, Projection, Remote, Sync, Mirror, Agent, Style } from 'foldkit-plus'\",\n '```',\n '',\n 'Everything else is a subpath named for its package, for example `foldkit-plus/remote-server` on the server, `foldkit-plus/sync/journal`, `foldkit-plus/mixins/theme`. Pick a package by who owns the data:',\n '',\n '| Job | Import from | Guide |',\n '| --- | --- | --- |',\n ...jobs.map(\n each =>\n `| ${each.job} | ${each.imports.map(name => `\\`foldkit-plus/${name}\\``).join(', ')} | ${SITE}/${each.guide} |`,\n ),\n '',\n '## 5. Rules every package keeps',\n '',\n '- One owner per datum: never keep a fact in the Model and again in a cache, a URL store or a second reducer.',\n '- Behaviour goes through Messages and `update`; agents, replicas and Behaviors never change the Model directly.',\n '- Rendering performs no I/O: fetching, syncing and mirroring run in Commands and Subscriptions.',\n '- Absence is an Effect `Option`, not `null`, except at a JSON, database or DOM boundary.',\n '',\n '## More',\n '',\n `- Guides and API: ${SITE}`,\n `- Demos: ${SITE}/demos`,\n `- Source and changelog: ${REPOSITORY}`,\n '',\n ].join('\\n')\n}\n"],"mappings":";;;;;;;AA6BA,MAAM,OAAO;AACb,MAAM,aAAa;;AAGnB,MAAa,OAIR;CACH;EACE,KAAK;EACL,SAAS,CAAC,WAAW,UAAU;EAC/B,OAAO;CACT;CACA;EACE,KAAK;EACL,SAAS,CAAC,UAAU,gBAAgB;EACpC,OAAO;CACT;CACA;EACE,KAAK;EACL,SAAS;GAAC;GAAU;GAAkB;EAAW;EACjD,OAAO;CACT;CACA;EACE,KAAK;EACL,SAAS,CAAC,YAAY;EACtB,OAAO;CACT;CACA;EACE,KAAK;EACL,SAAS,CAAC,QAAQ;EAClB,OAAO;CACT;CACA;EACE,KAAK;EACL,SAAS;GAAC;GAAU;GAAiB;EAAgB;EACrD,OAAO;CACT;CACA;EACE,KAAK;EACL,SAAS,CAAC,QAAQ,SAAS;EAC3B,OAAO;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CACF,CAAC;CACD,OAAO;EACL,kBAAkB,SAAS,KAAK;EAChC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,GAAG;EACH;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,GAAG,SAAS,KACV,SAAQ,KAAK,KAAK,KAAK,MAAM,WAAW,SAAS,CAAC,KAAK,MAAM,GAAG,KAAK,SAAS,CAAC,EAAE,GACnF;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,GAAG,KAAK,KACN,SACE,KAAK,KAAK,IAAI,KAAK,KAAK,QAAQ,KAAI,SAAQ,kBAAkB,KAAK,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE,KAAK,KAAK,GAAG,KAAK,MAAM,GAC/G;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,qBAAqB;EACrB,YAAY,KAAK;EACjB,2BAA2B;EAC3B;CACF,CAAC,CAAC,KAAK,IAAI;AACb"}
|
|
1
|
+
{"version":3,"file":"setup.mjs","names":[],"sources":["../src/setup.ts"],"sourcesContent":["/**\n * What `npx foldkit-plus setup` prints: instructions a coding agent can follow\n * in order, for the project it is run in. Pure: the CLI reads the project and\n * this package's manifest and passes them in, so a test can give any project.\n */\nimport { Option } from 'effect'\n\nexport type Manager = 'pnpm' | 'npm' | 'yarn' | 'bun'\n\n/** What the project's `package.json` says about the libraries Foldkit Plus needs. */\nexport interface Project {\n readonly name: string\n /** Each named library's version range, from any dependency field. */\n readonly versions: Readonly<Record<string, string>>\n}\n\n/** The versions this release is built and tested against, from its own manifest. */\nexport interface Versions {\n readonly plus: string\n readonly effect: string\n readonly foldkit: string\n}\n\nexport interface SetupInput {\n readonly project: Option.Option<Project>\n readonly manager: Manager\n readonly versions: Versions\n}\n\nconst SITE = 'https://foldkit-plus.pages.dev'\nconst REPOSITORY = 'https://github.com/doeixd/foldkit-plus'\n\n/**\n * The `create-foldkit-app` release whose templates pin the Foldkit this\n * release needs (0.39.1 installs `foldkit` 0.168.0). A release that moves\n * the `foldkit` peer moves this with it.\n */\nexport const SCAFFOLDER = 'create-foldkit-app@0.39.1'\n\nconst GREENFIELD = `${REPOSITORY}/blob/main/skills/foldkit-plus/references/greenfield.md`\n\n/** What each job needs, where to import it from, and where it is explained. */\nexport const jobs: ReadonlyArray<{\n readonly job: string\n readonly imports: ReadonlyArray<string>\n readonly guide: string\n}> = [\n {\n job: 'Name what a feature may read and which Messages it may send',\n imports: ['surface', 'metadata'],\n guide: 'surface',\n },\n {\n job: 'A reusable Submodel placed several times, every part wired',\n imports: ['bundle', 'bundle-surface'],\n guide: 'bundle',\n },\n {\n job: 'Restyle or extend views from outside, through typed slots',\n imports: ['mixins', 'mixins-surface', 'mixins-ui'],\n guide: 'mixins',\n },\n {\n job: 'Media queries, timers, sockets, clipboard, undo history',\n imports: ['primitives'],\n guide: 'primitives',\n },\n {\n job: 'Declare the domain once: entities, relations, queries',\n imports: ['entity'],\n guide: 'entity',\n },\n {\n job: 'Server-owned data in the Model: queries, mutations, live updates',\n imports: ['remote', 'remote-server', 'remote-drizzle'],\n guide: 'remote',\n },\n {\n job: 'Edits that survive offline and converge across devices',\n imports: ['sync', 'durable'],\n guide: 'sync',\n },\n { job: 'Who may do what, enforced on every seam', imports: ['guard'], guide: 'guard' },\n {\n job: 'Who is signed in: a Yielded Auth session as the principal',\n imports: ['auth'],\n guide: 'auth',\n },\n {\n job: 'A slice of the Model kept in the URL or in storage',\n imports: ['mirror'],\n guide: 'mirror',\n },\n {\n job: 'Forms: drafts, validation, a decoded value',\n imports: ['form', 'mixins-form'],\n guide: 'form',\n },\n {\n job: 'Edit, create and list screens over Remote',\n imports: ['crud', 'mixins-crud'],\n guide: 'crud',\n },\n {\n job: 'An interactive data grid over rows you own',\n imports: ['data-grid', 'mixins-data-grid'],\n guide: 'data-grid',\n },\n {\n job: 'Drafts, revisions and publishing for content',\n imports: ['cms', 'cms-drizzle'],\n guide: 'cms',\n },\n {\n job: 'Pages as data, and a builder that edits them',\n imports: ['composition', 'builder', 'mixins-builder'],\n guide: 'composition',\n },\n {\n job: 'Rich text: the document, its editor, Markdown and code',\n imports: [\n 'richtext',\n 'richtext-dom',\n 'mixins-richtext',\n 'richtext-markdown',\n 'richtext-code',\n 'richtext-code-shiki',\n ],\n guide: 'richtext',\n },\n { job: 'Server rendering that hands the Model over', imports: ['ssr'], guide: 'ssr' },\n {\n job: 'Responsive images, their variants and placeholders, and icons as data',\n imports: ['media'],\n guide: 'media',\n },\n { job: 'Route topology as data: nodes, typed targets, titles', imports: ['site'], guide: 'site' },\n {\n job: 'What an AI agent may see and do, over MCP, WebMCP, A2A or Agent Native',\n imports: ['agent', 'agent-mcp', 'agent-webmcp', 'agent-a2a', 'agent-native'],\n guide: 'agent',\n },\n {\n job: 'React components in a Foldkit view, or Foldkit inside React',\n imports: ['react', 'react-codegen'],\n guide: 'react',\n },\n]\n\n/**\n * The packages `foldkit-plus` does not install, since each needs a library of\n * its own, and that library. `test/setup.test.ts` holds this to the manifest.\n */\nexport const adapters: ReadonlyArray<{\n readonly name: string\n readonly libraries: ReadonlyArray<string>\n readonly when: string\n}> = [\n {\n name: 'foldkit-agent-native',\n libraries: ['@agent-native/core'],\n when: 'agents through Agent Native',\n },\n {\n name: 'foldkit-auth',\n libraries: ['@yielded/auth'],\n when: 'sign-in and sessions with Yielded Auth',\n },\n { name: 'foldkit-cms-drizzle', libraries: ['drizzle-orm'], when: \"the CMS's server on Drizzle\" },\n {\n name: 'foldkit-mixins-ui',\n libraries: ['@foldkit/ui'],\n when: 'styling `@foldkit/ui` components through slots',\n },\n { name: 'foldkit-react', libraries: ['react', 'react-dom'], when: 'React interop' },\n {\n name: 'foldkit-react-codegen',\n libraries: ['typescript'],\n when: 'compiling Foldkit views to React TSX (a dev dependency)',\n },\n {\n name: 'foldkit-remote-drizzle',\n libraries: ['drizzle-orm'],\n when: 'answering Remote reads with Drizzle',\n },\n {\n name: 'foldkit-richtext-code-shiki',\n libraries: ['shiki'],\n when: 'highlighting code blocks with Shiki',\n },\n]\n\n/** The command that adds `packages` with `manager`. */\nexport const addCommand = (manager: Manager, packages: ReadonlyArray<string>): string =>\n `${manager} ${manager === 'npm' ? 'install' : 'add'} ${packages.join(' ')}`\n\n/** The major version a range asks for: `^4.0.0`, `~4.1`, `4.0.0-beta.1` all ask for 4. */\nconst majorOf = (range: string): Option.Option<number> =>\n Option.fromNullishOr(/(\\d+)/.exec(range)?.[1]).pipe(Option.map(Number))\n\n/** What the project has of a library against what this release needs, as a line to act on. */\nconst finding = (project: Project, library: string, wanted: string): string =>\n Option.match(Option.fromNullishOr(project.versions[library]), {\n onNone: () => `- \\`${library}\\` is not installed: step 2 adds \\`${library}@${wanted}\\`.`,\n onSome: range => {\n // Foldkit is 0.x, where a minor version breaks; Effect is past 1.\n const matches =\n library === 'foldkit'\n ? range.replace(/^[\\^~=v]*/, '').startsWith(wanted.split('.').slice(0, 2).join('.'))\n : Option.getOrUndefined(majorOf(range)) === Option.getOrUndefined(majorOf(wanted))\n return matches\n ? `- \\`${library}\\` ${range}: fits.`\n : `- \\`${library}\\` is ${range}, and Foldkit Plus needs ${wanted}: step 2 moves it to ${wanted}. Check the application builds after.`\n },\n })\n\nexport const setupGuide = ({ project, manager, versions }: SetupInput): string => {\n const install = addCommand(manager, [\n `effect@${versions.effect}`,\n `foldkit@${versions.foldkit}`,\n `@effect/platform-browser@${versions.effect}`,\n 'foldkit-plus',\n ])\n const check = Option.match(project, {\n onNone: () => [\n 'There is no `package.json` here: this is a new application. Do not scaffold yet. Follow the greenfield guide, which asks the user about the goals, the look and the domain before any code:',\n '',\n `- ${GREENFIELD} (in the skill of step 3, \\`references/greenfield.md\\`)`,\n '',\n 'When its first step has a name and a rendering mode, it scaffolds with:',\n '',\n '```bash',\n `npx ${SCAFFOLDER} --name <name> --rendering <spa|ssg|ssr> --example counter --package-manager ${manager}`,\n '```',\n '',\n 'Then run `npx foldkit-plus setup` again in the new folder and continue from step 2.',\n ],\n onSome: found => [\n `This is \\`${found.name}\\`, installed with ${manager}.`,\n '',\n finding(found, 'effect', versions.effect),\n finding(found, 'foldkit', versions.foldkit),\n ],\n })\n return [\n `# Foldkit Plus ${versions.plus}: setup`,\n '',\n 'Instructions for a coding agent, in order. Each step says what to run and why. Tell the user what you did at the end.',\n '',\n '## What these are',\n '',\n '- **Effect** (https://effect.website): TypeScript for typed effects, errors, schemas and streams. Foldkit Plus targets Effect 4.',\n '- **Foldkit** (https://foldkit.dev): an application is one state machine on Effect, a Schema-typed `Model`, a `Message` union and one pure `update`; I/O runs in Commands and Subscriptions.',\n '- **Foldkit Plus**: packages that extend a Foldkit application to agents, servers, other devices, the URL and design systems without a second place to keep state. An agent sends only Messages `update` already handles; server data lives in the Model; replicas replay the same Messages; the URL mirrors a slice of the Model.',\n '',\n '## 1. Check the project',\n '',\n ...check,\n '',\n '## 2. Install',\n '',\n '```bash',\n install,\n '```',\n '',\n '`foldkit-plus` brings every package except the adapters below, each of which needs a library of its own. Add one only when the application needs it:',\n '',\n ...adapters.map(\n each => `- ${each.when}: \\`${addCommand(manager, [each.name, ...each.libraries])}\\``,\n ),\n '',\n '## 3. Add the agent skill',\n '',\n '```bash',\n 'npx skills add doeixd/foldkit-plus --skill foldkit-plus',\n '```',\n '',\n 'It teaches you which package owns which kind of state, when to reach for each, and a working example of each. Read its `SKILL.md` before writing code with Foldkit Plus, and the reference for the package at hand before changing it.',\n // An empty folder was sent to the guide in step 1.\n ...Option.match(project, {\n onNone: () => [],\n onSome: () => [\n '',\n `Building a new application rather than extending one? Follow its \\`references/greenfield.md\\` (${GREENFIELD}): goals and the look, then the domain with the user, recorded in the project and mapped to these packages, then a plan for architecture, performance, SEO, testing, CI and deployment, before implementing.`,\n ],\n }),\n '',\n '## 4. Import',\n '',\n 'The namespaces most applications use come from the root:',\n '',\n '```ts',\n \"import { Surface, Projection, Remote, Sync, Mirror, Agent, Style } from 'foldkit-plus'\",\n '```',\n '',\n 'Everything else is a subpath named for its package, for example `foldkit-plus/remote-server` on the server, `foldkit-plus/sync/journal`, `foldkit-plus/mixins/theme`. Pick a package by who owns the data:',\n '',\n '| Job | Import from | Guide |',\n '| --- | --- | --- |',\n ...jobs.map(\n each =>\n `| ${each.job} | ${each.imports.map(name => `\\`foldkit-plus/${name}\\``).join(', ')} | ${SITE}/${each.guide} |`,\n ),\n '',\n '## 5. Rules every package keeps',\n '',\n '- One owner per datum: never keep a fact in the Model and again in a cache, a URL store or a second reducer.',\n '- Behaviour goes through Messages and `update`; agents, replicas and Behaviors never change the Model directly.',\n '- Rendering performs no I/O: fetching, syncing and mirroring run in Commands and Subscriptions.',\n '- Absence is an Effect `Option`, not `null`, except at a JSON, database or DOM boundary.',\n '',\n '## More',\n '',\n `- Guides and API: ${SITE}`,\n `- Demos: ${SITE}/demos`,\n `- Source and changelog: ${REPOSITORY}`,\n '',\n ].join('\\n')\n}\n"],"mappings":";;;;;;;AA6BA,MAAM,OAAO;AACb,MAAM,aAAa;;;;;;AAOnB,MAAa,aAAa;AAE1B,MAAM,aAAa,GAAG,WAAW;;AAGjC,MAAa,OAIR;CACH;EACE,KAAK;EACL,SAAS,CAAC,WAAW,UAAU;EAC/B,OAAO;CACT;CACA;EACE,KAAK;EACL,SAAS,CAAC,UAAU,gBAAgB;EACpC,OAAO;CACT;CACA;EACE,KAAK;EACL,SAAS;GAAC;GAAU;GAAkB;EAAW;EACjD,OAAO;CACT;CACA;EACE,KAAK;EACL,SAAS,CAAC,YAAY;EACtB,OAAO;CACT;CACA;EACE,KAAK;EACL,SAAS,CAAC,QAAQ;EAClB,OAAO;CACT;CACA;EACE,KAAK;EACL,SAAS;GAAC;GAAU;GAAiB;EAAgB;EACrD,OAAO;CACT;CACA;EACE,KAAK;EACL,SAAS,CAAC,QAAQ,SAAS;EAC3B,OAAO;CACT;CACA;EAAE,KAAK;EAA2C,SAAS,CAAC,OAAO;EAAG,OAA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WAAW,SAAS,OAAO;EAC5C;CACF,CAAC;CACD,OAAO;EACL,kBAAkB,SAAS,KAAK;EAChC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,GAAG;EACH;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,GAAG,SAAS,KACV,SAAQ,KAAK,KAAK,KAAK,MAAM,WAAW,SAAS,CAAC,KAAK,MAAM,GAAG,KAAK,SAAS,CAAC,EAAE,GACnF;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA,GAAG,OAAO,MAAM,SAAS;GACvB,cAAc,CAAC;GACf,cAAc,CACZ,IACA,kGAAkG,WAAW,6MAC/G;EACF,CAAC;EACD;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,GAAG,KAAK,KACN,SACE,KAAK,KAAK,IAAI,KAAK,KAAK,QAAQ,KAAI,SAAQ,kBAAkB,KAAK,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE,KAAK,KAAK,GAAG,KAAK,MAAM,GAC/G;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,qBAAqB;EACrB,YAAY,KAAK;EACjB,2BAA2B;EAC3B;CACF,CAAC,CAAC,KAAK,IAAI;AACb"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "foldkit-plus",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "Every Foldkit Plus package in one install, and `npx foldkit-plus setup`, which tells a coding agent how to start.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"foldkit",
|
|
@@ -188,6 +188,11 @@
|
|
|
188
188
|
"types": "./dist/guard/sync.d.mts",
|
|
189
189
|
"import": "./dist/guard/sync.mjs"
|
|
190
190
|
},
|
|
191
|
+
"./guard/media": {
|
|
192
|
+
"foldkit-plus:source": "./src/guard/media.ts",
|
|
193
|
+
"types": "./dist/guard/media.d.mts",
|
|
194
|
+
"import": "./dist/guard/media.mjs"
|
|
195
|
+
},
|
|
191
196
|
"./media": {
|
|
192
197
|
"foldkit-plus:source": "./src/media.ts",
|
|
193
198
|
"types": "./dist/media.d.mts",
|
|
@@ -545,52 +550,52 @@
|
|
|
545
550
|
"LICENSE"
|
|
546
551
|
],
|
|
547
552
|
"dependencies": {
|
|
553
|
+
"foldkit-agent": "0.8.1",
|
|
548
554
|
"foldkit-agent-a2a": "0.6.1",
|
|
549
|
-
"foldkit-agent-mcp": "0.7.0",
|
|
550
|
-
"foldkit-builder": "0.3.8",
|
|
551
555
|
"foldkit-agent-webmcp": "0.7.1",
|
|
552
|
-
"foldkit-agent": "0.
|
|
556
|
+
"foldkit-agent-mcp": "0.7.0",
|
|
553
557
|
"foldkit-bundle": "0.8.0",
|
|
554
|
-
"foldkit-cms": "0.7.8",
|
|
555
558
|
"foldkit-bundle-surface": "0.4.1",
|
|
556
|
-
"foldkit-
|
|
557
|
-
"foldkit-
|
|
559
|
+
"foldkit-builder": "0.3.10",
|
|
560
|
+
"foldkit-composition": "0.3.8",
|
|
558
561
|
"foldkit-crud": "0.8.2",
|
|
559
562
|
"foldkit-durable": "0.9.0",
|
|
560
|
-
"foldkit-
|
|
561
|
-
"foldkit-form": "0.6.0",
|
|
562
|
-
"foldkit-media": "0.2.0",
|
|
563
|
+
"foldkit-data-grid": "0.2.2",
|
|
563
564
|
"foldkit-guard": "0.3.0",
|
|
565
|
+
"foldkit-form": "0.6.0",
|
|
566
|
+
"foldkit-entity": "0.10.0",
|
|
567
|
+
"foldkit-cms": "0.7.10",
|
|
564
568
|
"foldkit-metadata": "0.1.0",
|
|
569
|
+
"foldkit-media": "0.2.0",
|
|
565
570
|
"foldkit-mirror": "0.6.1",
|
|
566
|
-
"foldkit-mixins": "0.
|
|
567
|
-
"foldkit-mixins
|
|
568
|
-
"foldkit-mixins-
|
|
569
|
-
"foldkit-mixins-
|
|
570
|
-
"foldkit-mixins-form": "0.7.
|
|
571
|
-
"foldkit-mixins-richtext": "0.5.
|
|
572
|
-
"foldkit-mixins-surface": "0.6.
|
|
573
|
-
"foldkit-primitives": "0.15.
|
|
574
|
-
"foldkit-remote": "0.18.0",
|
|
571
|
+
"foldkit-mixins-builder": "0.3.12",
|
|
572
|
+
"foldkit-mixins": "0.19.0",
|
|
573
|
+
"foldkit-mixins-data-grid": "0.2.11",
|
|
574
|
+
"foldkit-mixins-crud": "0.7.10",
|
|
575
|
+
"foldkit-mixins-form": "0.7.8",
|
|
576
|
+
"foldkit-mixins-richtext": "0.5.3",
|
|
577
|
+
"foldkit-mixins-surface": "0.6.7",
|
|
578
|
+
"foldkit-primitives": "0.15.2",
|
|
575
579
|
"foldkit-remote-server": "0.15.0",
|
|
580
|
+
"foldkit-remote": "0.18.0",
|
|
576
581
|
"foldkit-richtext": "0.5.1",
|
|
577
|
-
"foldkit-richtext-code": "0.2.3",
|
|
578
582
|
"foldkit-richtext-dom": "0.6.2",
|
|
579
|
-
"foldkit-site": "0.4.2",
|
|
580
583
|
"foldkit-richtext-markdown": "0.3.2",
|
|
584
|
+
"foldkit-richtext-code": "0.2.3",
|
|
585
|
+
"foldkit-ssr": "0.8.0",
|
|
581
586
|
"foldkit-surface": "0.10.0",
|
|
582
|
-
"foldkit-
|
|
583
|
-
"foldkit-
|
|
587
|
+
"foldkit-site": "0.4.2",
|
|
588
|
+
"foldkit-sync": "0.12.0"
|
|
584
589
|
},
|
|
585
590
|
"peerDependencies": {
|
|
586
591
|
"effect": "^4.0.0",
|
|
587
592
|
"foldkit": "^0.168.0",
|
|
588
593
|
"foldkit-agent-native": "^0.6.1",
|
|
589
594
|
"foldkit-auth": "^0.1.1",
|
|
590
|
-
"foldkit-cms-drizzle": "^0.6.
|
|
595
|
+
"foldkit-cms-drizzle": "^0.6.13",
|
|
591
596
|
"foldkit-react": "^0.4.0",
|
|
592
|
-
"foldkit-mixins-ui": "^0.18.0",
|
|
593
597
|
"foldkit-remote-drizzle": "^0.12.3",
|
|
598
|
+
"foldkit-mixins-ui": "^0.20.0",
|
|
594
599
|
"foldkit-richtext-code-shiki": "^0.2.3",
|
|
595
600
|
"foldkit-react-codegen": "^0.3.0"
|
|
596
601
|
},
|
|
@@ -626,11 +631,11 @@
|
|
|
626
631
|
"tsdown": "^0.23.1",
|
|
627
632
|
"tsx": "^4.23.15",
|
|
628
633
|
"typescript": "7.0.2",
|
|
629
|
-
"foldkit-auth": "0.1.1",
|
|
630
634
|
"foldkit-agent-native": "0.6.1",
|
|
631
|
-
"foldkit-
|
|
635
|
+
"foldkit-auth": "0.1.1",
|
|
636
|
+
"foldkit-cms-drizzle": "0.6.13",
|
|
637
|
+
"foldkit-mixins-ui": "0.20.0",
|
|
632
638
|
"foldkit-react": "0.4.0",
|
|
633
|
-
"foldkit-mixins-ui": "0.18.0",
|
|
634
639
|
"foldkit-react-codegen": "0.3.0",
|
|
635
640
|
"foldkit-remote-drizzle": "0.12.3",
|
|
636
641
|
"foldkit-richtext-code-shiki": "0.2.3"
|