foldkit-plus 0.15.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +1 -2
- package/dist/form-recipes/html.d.mts +1 -0
- package/dist/form-recipes/html.mjs +2 -0
- package/dist/form-recipes/image.d.mts +1 -0
- package/dist/form-recipes/image.mjs +2 -0
- package/dist/form-recipes/ui.d.mts +1 -0
- package/dist/form-recipes/ui.mjs +2 -0
- package/dist/form-recipes.d.mts +1 -0
- package/dist/form-recipes.mjs +2 -0
- package/dist/mixins-crud/recipes.d.mts +1 -0
- package/dist/mixins-crud/recipes.mjs +2 -0
- package/dist/mixins-form/recipes.d.mts +1 -0
- package/dist/mixins-form/recipes.mjs +2 -0
- package/dist/setup.d.mts +0 -2
- package/dist/setup.d.mts.map +1 -1
- package/dist/setup.mjs +7 -4
- package/dist/setup.mjs.map +1 -1
- package/package.json +69 -38
package/dist/cli.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { existsSync, readFileSync } from "node:fs";
|
|
|
5
5
|
import { homedir } from "node:os";
|
|
6
6
|
import { dirname, join } from "node:path";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
8
|
-
|
|
8
|
+
// src/cli.ts
|
|
9
9
|
/**
|
|
10
10
|
* `npx foldkit-plus setup`: reads the project in the current folder and this
|
|
11
11
|
* package's own manifest, and prints `setup.ts`'s instructions for it.
|
|
@@ -85,7 +85,6 @@ if (command === "setup") {
|
|
|
85
85
|
process.stdout.write(`${usage}\n`);
|
|
86
86
|
process.exitCode = command === "--help" || command === "-h" || command === "help" ? 0 : 1;
|
|
87
87
|
}
|
|
88
|
-
//#endregion
|
|
89
88
|
export {};
|
|
90
89
|
|
|
91
90
|
//# sourceMappingURL=cli.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-form-recipes/html";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-form-recipes/image";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-form-recipes/ui";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-form-recipes";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-mixins-crud/recipes";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-mixins-form/recipes";
|
package/dist/setup.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Option } from "effect";
|
|
2
|
-
//#region src/setup.d.ts
|
|
3
2
|
export type Manager = 'pnpm' | 'npm' | 'yarn' | 'bun';
|
|
4
3
|
/** What the project's `package.json` says about the libraries Foldkit Plus needs. */
|
|
5
4
|
export interface Project {
|
|
@@ -42,5 +41,4 @@ export declare const adapters: ReadonlyArray<{
|
|
|
42
41
|
/** The command that adds `packages` with `manager`. */
|
|
43
42
|
export declare const addCommand: (manager: Manager, packages: ReadonlyArray<string>) => string;
|
|
44
43
|
export declare const setupGuide: ({ project, manager, versions }: SetupInput) => string;
|
|
45
|
-
//#endregion
|
|
46
44
|
//# sourceMappingURL=setup.d.mts.map
|
package/dist/setup.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.mts","names":[],"sources":["../src/setup.ts"],"mappings":"
|
|
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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Option } from "effect";
|
|
2
|
-
|
|
2
|
+
// src/setup.ts
|
|
3
3
|
/**
|
|
4
4
|
* What `npx foldkit-plus setup` prints: instructions a coding agent can follow
|
|
5
5
|
* in order, for the project it is run in. Pure: the CLI reads the project and
|
|
@@ -75,8 +75,12 @@ const jobs = [
|
|
|
75
75
|
guide: "mirror"
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
job: "Forms: drafts, validation, a decoded value",
|
|
79
|
-
imports: [
|
|
78
|
+
job: "Forms: drafts, validation, a decoded value, and dates, times and addresses in them",
|
|
79
|
+
imports: [
|
|
80
|
+
"form",
|
|
81
|
+
"mixins-form",
|
|
82
|
+
"form-recipes"
|
|
83
|
+
],
|
|
80
84
|
guide: "form"
|
|
81
85
|
},
|
|
82
86
|
{
|
|
@@ -298,7 +302,6 @@ const setupGuide = ({ project, manager, versions }) => {
|
|
|
298
302
|
""
|
|
299
303
|
].join("\n");
|
|
300
304
|
};
|
|
301
|
-
//#endregion
|
|
302
305
|
export { SCAFFOLDER, adapters, addCommand, jobs, setupGuide };
|
|
303
306
|
|
|
304
307
|
//# 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/**\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;EA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AAQ;GACrD;GACA,QAAQ,OAAO,UAAU,SAAS,MAAM;GACxC,QAAQ,OAAO,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"}
|
|
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, and dates, times and addresses in them',\n imports: ['form', 'mixins-form', 'form-recipes'],\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,S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S;EAClC,cAAc;GACZ;GACA;GACA,KAAK,WAAW;GAChB;GACA;GACA;GACA;GACA,OAAO,WAAW,+EAA+E;GACjG;GACA;GACA;EACF;EACA,SAAQ,UAAS;GACf,aAAa,MAAM,KAAK,qBAAqB,QAAQ;GACrD;GACA,QAAQ,OAAO,UAAU,SAAS,MAAM;GACxC,QAAQ,OAAO,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.17.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",
|
|
@@ -163,6 +163,26 @@
|
|
|
163
163
|
"types": "./dist/form.d.mts",
|
|
164
164
|
"import": "./dist/form.mjs"
|
|
165
165
|
},
|
|
166
|
+
"./form-recipes/html": {
|
|
167
|
+
"foldkit-plus:source": "./src/form-recipes/html.ts",
|
|
168
|
+
"types": "./dist/form-recipes/html.d.mts",
|
|
169
|
+
"import": "./dist/form-recipes/html.mjs"
|
|
170
|
+
},
|
|
171
|
+
"./form-recipes/image": {
|
|
172
|
+
"foldkit-plus:source": "./src/form-recipes/image.ts",
|
|
173
|
+
"types": "./dist/form-recipes/image.d.mts",
|
|
174
|
+
"import": "./dist/form-recipes/image.mjs"
|
|
175
|
+
},
|
|
176
|
+
"./form-recipes/ui": {
|
|
177
|
+
"foldkit-plus:source": "./src/form-recipes/ui.ts",
|
|
178
|
+
"types": "./dist/form-recipes/ui.d.mts",
|
|
179
|
+
"import": "./dist/form-recipes/ui.mjs"
|
|
180
|
+
},
|
|
181
|
+
"./form-recipes": {
|
|
182
|
+
"foldkit-plus:source": "./src/form-recipes.ts",
|
|
183
|
+
"types": "./dist/form-recipes.d.mts",
|
|
184
|
+
"import": "./dist/form-recipes.mjs"
|
|
185
|
+
},
|
|
166
186
|
"./guard": {
|
|
167
187
|
"foldkit-plus:source": "./src/guard.ts",
|
|
168
188
|
"types": "./dist/guard.d.mts",
|
|
@@ -303,6 +323,11 @@
|
|
|
303
323
|
"types": "./dist/mixins-crud.d.mts",
|
|
304
324
|
"import": "./dist/mixins-crud.mjs"
|
|
305
325
|
},
|
|
326
|
+
"./mixins-crud/recipes": {
|
|
327
|
+
"foldkit-plus:source": "./src/mixins-crud/recipes.ts",
|
|
328
|
+
"types": "./dist/mixins-crud/recipes.d.mts",
|
|
329
|
+
"import": "./dist/mixins-crud/recipes.mjs"
|
|
330
|
+
},
|
|
306
331
|
"./mixins-data-grid": {
|
|
307
332
|
"foldkit-plus:source": "./src/mixins-data-grid.ts",
|
|
308
333
|
"types": "./dist/mixins-data-grid.d.mts",
|
|
@@ -313,6 +338,11 @@
|
|
|
313
338
|
"types": "./dist/mixins-form/ui.d.mts",
|
|
314
339
|
"import": "./dist/mixins-form/ui.mjs"
|
|
315
340
|
},
|
|
341
|
+
"./mixins-form/recipes": {
|
|
342
|
+
"foldkit-plus:source": "./src/mixins-form/recipes.ts",
|
|
343
|
+
"types": "./dist/mixins-form/recipes.d.mts",
|
|
344
|
+
"import": "./dist/mixins-form/recipes.mjs"
|
|
345
|
+
},
|
|
316
346
|
"./mixins-form": {
|
|
317
347
|
"foldkit-plus:source": "./src/mixins-form.ts",
|
|
318
348
|
"types": "./dist/mixins-form.d.mts",
|
|
@@ -552,52 +582,53 @@
|
|
|
552
582
|
"dependencies": {
|
|
553
583
|
"foldkit-agent": "0.8.3",
|
|
554
584
|
"foldkit-agent-a2a": "0.6.2",
|
|
555
|
-
"foldkit-agent-webmcp": "0.7.2",
|
|
556
|
-
"foldkit-builder": "0.3.12",
|
|
557
585
|
"foldkit-agent-mcp": "0.7.1",
|
|
586
|
+
"foldkit-agent-webmcp": "0.7.2",
|
|
587
|
+
"foldkit-builder": "0.3.14",
|
|
558
588
|
"foldkit-bundle": "0.8.1",
|
|
559
589
|
"foldkit-bundle-surface": "0.4.3",
|
|
560
|
-
"foldkit-cms": "0.
|
|
561
|
-
"foldkit-
|
|
562
|
-
"foldkit-composition": "0.3.10",
|
|
563
|
-
"foldkit-data-grid": "0.3.0",
|
|
590
|
+
"foldkit-cms": "0.8.1",
|
|
591
|
+
"foldkit-data-grid": "0.3.2",
|
|
564
592
|
"foldkit-durable": "0.9.1",
|
|
565
|
-
"foldkit-
|
|
566
|
-
"foldkit-
|
|
567
|
-
"foldkit-
|
|
593
|
+
"foldkit-crud": "0.11.0",
|
|
594
|
+
"foldkit-composition": "0.3.12",
|
|
595
|
+
"foldkit-entity": "0.13.0",
|
|
596
|
+
"foldkit-form-recipes": "0.1.1",
|
|
597
|
+
"foldkit-form": "0.8.1",
|
|
598
|
+
"foldkit-media": "0.3.1",
|
|
599
|
+
"foldkit-guard": "0.6.0",
|
|
568
600
|
"foldkit-metadata": "0.1.0",
|
|
569
|
-
"foldkit-media": "0.2.0",
|
|
570
601
|
"foldkit-mirror": "0.6.3",
|
|
571
|
-
"foldkit-mixins": "0.
|
|
572
|
-
"foldkit-mixins-data-grid": "0.2.
|
|
573
|
-
"foldkit-mixins-
|
|
574
|
-
"foldkit-mixins-
|
|
575
|
-
"foldkit-mixins-richtext": "0.5.
|
|
576
|
-
"foldkit-mixins-
|
|
577
|
-
"foldkit-mixins-
|
|
578
|
-
"foldkit-remote": "0.
|
|
579
|
-
"foldkit-primitives": "0.15.
|
|
580
|
-
"foldkit-
|
|
581
|
-
"foldkit-richtext": "0.
|
|
582
|
-
"foldkit-richtext-code": "0.2.
|
|
583
|
-
"foldkit-richtext-
|
|
584
|
-
"foldkit-
|
|
602
|
+
"foldkit-mixins": "0.20.0",
|
|
603
|
+
"foldkit-mixins-data-grid": "0.2.15",
|
|
604
|
+
"foldkit-mixins-form": "0.10.0",
|
|
605
|
+
"foldkit-mixins-builder": "0.3.16",
|
|
606
|
+
"foldkit-mixins-richtext": "0.5.7",
|
|
607
|
+
"foldkit-mixins-surface": "0.6.9",
|
|
608
|
+
"foldkit-mixins-crud": "0.9.0",
|
|
609
|
+
"foldkit-remote": "0.21.0",
|
|
610
|
+
"foldkit-primitives": "0.15.4",
|
|
611
|
+
"foldkit-richtext": "0.5.3",
|
|
612
|
+
"foldkit-richtext-dom": "0.6.6",
|
|
613
|
+
"foldkit-richtext-code": "0.2.5",
|
|
614
|
+
"foldkit-richtext-markdown": "0.3.4",
|
|
615
|
+
"foldkit-remote-server": "0.18.0",
|
|
585
616
|
"foldkit-site": "0.4.4",
|
|
586
|
-
"foldkit-ssr": "0.8.2",
|
|
587
617
|
"foldkit-surface": "0.10.2",
|
|
588
|
-
"foldkit-
|
|
618
|
+
"foldkit-ssr": "0.8.2",
|
|
619
|
+
"foldkit-sync": "0.12.4"
|
|
589
620
|
},
|
|
590
621
|
"peerDependencies": {
|
|
591
622
|
"effect": "^4.0.0",
|
|
592
623
|
"foldkit": "^0.169.0",
|
|
593
624
|
"foldkit-agent-native": "^0.6.2",
|
|
594
|
-
"foldkit-
|
|
595
|
-
"foldkit-
|
|
625
|
+
"foldkit-mixins-ui": "^0.21.0",
|
|
626
|
+
"foldkit-auth": "^0.1.5",
|
|
596
627
|
"foldkit-react": "^0.4.1",
|
|
597
|
-
"foldkit-
|
|
628
|
+
"foldkit-remote-drizzle": "^0.15.0",
|
|
629
|
+
"foldkit-cms-drizzle": "^0.6.17",
|
|
598
630
|
"foldkit-react-codegen": "^0.3.0",
|
|
599
|
-
"foldkit-richtext-code-shiki": "^0.2.
|
|
600
|
-
"foldkit-remote-drizzle": "^0.13.0"
|
|
631
|
+
"foldkit-richtext-code-shiki": "^0.2.5"
|
|
601
632
|
},
|
|
602
633
|
"peerDependenciesMeta": {
|
|
603
634
|
"foldkit-agent-native": {
|
|
@@ -632,13 +663,13 @@
|
|
|
632
663
|
"tsx": "^4.23.15",
|
|
633
664
|
"typescript": "7.0.2",
|
|
634
665
|
"foldkit-agent-native": "0.6.2",
|
|
635
|
-
"foldkit-cms-drizzle": "0.6.
|
|
636
|
-
"foldkit-
|
|
637
|
-
"foldkit-
|
|
638
|
-
"foldkit-mixins-ui": "0.20.1",
|
|
666
|
+
"foldkit-cms-drizzle": "0.6.17",
|
|
667
|
+
"foldkit-mixins-ui": "0.21.0",
|
|
668
|
+
"foldkit-auth": "0.1.5",
|
|
639
669
|
"foldkit-react-codegen": "0.3.0",
|
|
640
|
-
"foldkit-remote-drizzle": "0.
|
|
641
|
-
"foldkit-
|
|
670
|
+
"foldkit-remote-drizzle": "0.15.0",
|
|
671
|
+
"foldkit-react": "0.4.1",
|
|
672
|
+
"foldkit-richtext-code-shiki": "0.2.5"
|
|
642
673
|
},
|
|
643
674
|
"setup": {
|
|
644
675
|
"foldkit": "0.169.0",
|