foldkit-plus 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +88 -2
- package/dist/agent-a2a.d.mts +1 -0
- package/dist/agent-a2a.mjs +2 -0
- package/dist/agent-mcp.d.mts +1 -0
- package/dist/agent-mcp.mjs +2 -0
- package/dist/agent-native.d.mts +1 -0
- package/dist/agent-native.mjs +2 -0
- package/dist/agent-webmcp.d.mts +1 -0
- package/dist/agent-webmcp.mjs +2 -0
- package/dist/agent.d.mts +1 -0
- package/dist/agent.mjs +2 -0
- package/dist/builder.d.mts +1 -0
- package/dist/builder.mjs +2 -0
- package/dist/bundle-surface.d.mts +1 -0
- package/dist/bundle-surface.mjs +2 -0
- package/dist/bundle.d.mts +1 -0
- package/dist/bundle.mjs +2 -0
- package/dist/cli.d.mts +1 -0
- package/dist/cli.mjs +92 -0
- package/dist/cli.mjs.map +1 -0
- package/dist/cms-drizzle.d.mts +1 -0
- package/dist/cms-drizzle.mjs +2 -0
- package/dist/cms.d.mts +1 -0
- package/dist/cms.mjs +2 -0
- package/dist/composition/appearance.d.mts +1 -0
- package/dist/composition/appearance.mjs +2 -0
- package/dist/composition/foldkit.d.mts +1 -0
- package/dist/composition/foldkit.mjs +2 -0
- package/dist/composition/remote.d.mts +1 -0
- package/dist/composition/remote.mjs +2 -0
- package/dist/composition/richtext.d.mts +1 -0
- package/dist/composition/richtext.mjs +2 -0
- package/dist/composition/surface.d.mts +1 -0
- package/dist/composition/surface.mjs +2 -0
- package/dist/composition.d.mts +1 -0
- package/dist/composition.mjs +2 -0
- package/dist/crud.d.mts +1 -0
- package/dist/crud.mjs +2 -0
- package/dist/data-grid/crud.d.mts +1 -0
- package/dist/data-grid/crud.mjs +2 -0
- package/dist/data-grid.d.mts +1 -0
- package/dist/data-grid.mjs +2 -0
- package/dist/durable/core.d.mts +1 -0
- package/dist/durable/core.mjs +2 -0
- package/dist/durable.d.mts +1 -0
- package/dist/durable.mjs +2 -0
- package/dist/entity/conformance.d.mts +1 -0
- package/dist/entity/conformance.mjs +2 -0
- package/dist/entity.d.mts +1 -0
- package/dist/entity.mjs +2 -0
- package/dist/form.d.mts +1 -0
- package/dist/form.mjs +2 -0
- package/dist/guard/agent.d.mts +1 -0
- package/dist/guard/agent.mjs +2 -0
- package/dist/guard/drizzle.d.mts +1 -0
- package/dist/guard/drizzle.mjs +2 -0
- package/dist/guard/server.d.mts +1 -0
- package/dist/guard/server.mjs +2 -0
- package/dist/guard/sync.d.mts +1 -0
- package/dist/guard/sync.mjs +2 -0
- package/dist/guard.d.mts +1 -0
- package/dist/guard.mjs +2 -0
- package/dist/index.d.mts +11 -0
- package/dist/index.mjs +11 -0
- package/dist/metadata.d.mts +1 -0
- package/dist/metadata.mjs +2 -0
- package/dist/mirror.d.mts +1 -0
- package/dist/mirror.mjs +2 -0
- package/dist/mixins/app.d.mts +1 -0
- package/dist/mixins/app.mjs +2 -0
- package/dist/mixins/defaults.d.mts +1 -0
- package/dist/mixins/defaults.mjs +2 -0
- package/dist/mixins/foundations.d.mts +1 -0
- package/dist/mixins/foundations.mjs +2 -0
- package/dist/mixins/layers.d.mts +1 -0
- package/dist/mixins/layers.mjs +2 -0
- package/dist/mixins/layout.d.mts +1 -0
- package/dist/mixins/layout.mjs +2 -0
- package/dist/mixins/prose.d.mts +1 -0
- package/dist/mixins/prose.mjs +2 -0
- package/dist/mixins/testing.d.mts +1 -0
- package/dist/mixins/testing.mjs +2 -0
- package/dist/mixins/theme.d.mts +1 -0
- package/dist/mixins/theme.mjs +2 -0
- package/dist/mixins/utilities.d.mts +1 -0
- package/dist/mixins/utilities.mjs +2 -0
- package/dist/mixins-builder.d.mts +1 -0
- package/dist/mixins-builder.mjs +2 -0
- package/dist/mixins-crud.d.mts +1 -0
- package/dist/mixins-crud.mjs +2 -0
- package/dist/mixins-data-grid.d.mts +1 -0
- package/dist/mixins-data-grid.mjs +2 -0
- package/dist/mixins-form/ui.d.mts +1 -0
- package/dist/mixins-form/ui.mjs +2 -0
- package/dist/mixins-form.d.mts +1 -0
- package/dist/mixins-form.mjs +2 -0
- package/dist/mixins-richtext.d.mts +1 -0
- package/dist/mixins-richtext.mjs +2 -0
- package/dist/mixins-surface.d.mts +1 -0
- package/dist/mixins-surface.mjs +2 -0
- package/dist/mixins-ui.d.mts +1 -0
- package/dist/mixins-ui.mjs +2 -0
- package/dist/mixins.d.mts +1 -0
- package/dist/mixins.mjs +2 -0
- package/dist/primitives/device.d.mts +1 -0
- package/dist/primitives/device.mjs +2 -0
- package/dist/primitives/dom.d.mts +1 -0
- package/dist/primitives/dom.mjs +2 -0
- package/dist/primitives/events.d.mts +1 -0
- package/dist/primitives/events.mjs +2 -0
- package/dist/primitives/interaction.d.mts +1 -0
- package/dist/primitives/interaction.mjs +2 -0
- package/dist/primitives/media.d.mts +1 -0
- package/dist/primitives/media.mjs +2 -0
- package/dist/primitives/motion.d.mts +1 -0
- package/dist/primitives/motion.mjs +2 -0
- package/dist/primitives/net.d.mts +1 -0
- package/dist/primitives/net.mjs +2 -0
- package/dist/primitives/observers.d.mts +1 -0
- package/dist/primitives/observers.mjs +2 -0
- package/dist/primitives/state.d.mts +1 -0
- package/dist/primitives/state.mjs +2 -0
- package/dist/primitives/time.d.mts +1 -0
- package/dist/primitives/time.mjs +2 -0
- package/dist/primitives.d.mts +1 -0
- package/dist/primitives.mjs +2 -0
- package/dist/react-codegen.d.mts +1 -0
- package/dist/react-codegen.mjs +2 -0
- package/dist/react.d.mts +1 -0
- package/dist/react.mjs +2 -0
- package/dist/remote/port.d.mts +1 -0
- package/dist/remote/port.mjs +2 -0
- package/dist/remote-drizzle.d.mts +1 -0
- package/dist/remote-drizzle.mjs +2 -0
- package/dist/remote-server/fetch.d.mts +1 -0
- package/dist/remote-server/fetch.mjs +2 -0
- package/dist/remote-server/port.d.mts +1 -0
- package/dist/remote-server/port.mjs +2 -0
- package/dist/remote-server.d.mts +1 -0
- package/dist/remote-server.mjs +2 -0
- package/dist/remote.d.mts +1 -0
- package/dist/remote.mjs +2 -0
- package/dist/richtext-code-shiki.d.mts +1 -0
- package/dist/richtext-code-shiki.mjs +2 -0
- package/dist/richtext-code.d.mts +1 -0
- package/dist/richtext-code.mjs +2 -0
- package/dist/richtext-dom/editor-bundle.d.mts +1 -0
- package/dist/richtext-dom/editor-bundle.mjs +2 -0
- package/dist/richtext-dom/editor.d.mts +1 -0
- package/dist/richtext-dom/editor.mjs +2 -0
- package/dist/richtext-dom/events.d.mts +1 -0
- package/dist/richtext-dom/events.mjs +2 -0
- package/dist/richtext-dom/host.d.mts +1 -0
- package/dist/richtext-dom/host.mjs +2 -0
- package/dist/richtext-dom/html.d.mts +1 -0
- package/dist/richtext-dom/html.mjs +2 -0
- package/dist/richtext-dom/input.d.mts +1 -0
- package/dist/richtext-dom/input.mjs +2 -0
- package/dist/richtext-dom/toolbar.d.mts +1 -0
- package/dist/richtext-dom/toolbar.mjs +2 -0
- package/dist/richtext-dom/view.d.mts +1 -0
- package/dist/richtext-dom/view.mjs +2 -0
- package/dist/richtext-dom.d.mts +1 -0
- package/dist/richtext-dom.mjs +2 -0
- package/dist/richtext-markdown.d.mts +1 -0
- package/dist/richtext-markdown.mjs +2 -0
- package/dist/richtext.d.mts +1 -0
- package/dist/richtext.mjs +2 -0
- package/dist/setup.d.mts +40 -0
- package/dist/setup.d.mts.map +1 -0
- package/dist/setup.mjs +266 -0
- package/dist/setup.mjs.map +1 -0
- package/dist/site.d.mts +1 -0
- package/dist/site.mjs +2 -0
- package/dist/ssr/client.d.mts +1 -0
- package/dist/ssr/client.mjs +2 -0
- package/dist/ssr/vite.d.mts +1 -0
- package/dist/ssr/vite.mjs +2 -0
- package/dist/ssr.d.mts +1 -0
- package/dist/ssr.mjs +2 -0
- package/dist/surface.d.mts +1 -0
- package/dist/surface.mjs +2 -0
- package/dist/sync/do.d.mts +1 -0
- package/dist/sync/do.mjs +2 -0
- package/dist/sync/entity.d.mts +1 -0
- package/dist/sync/entity.mjs +2 -0
- package/dist/sync/journal.d.mts +1 -0
- package/dist/sync/journal.mjs +2 -0
- package/dist/sync/remote.d.mts +1 -0
- package/dist/sync/remote.mjs +2 -0
- package/dist/sync.d.mts +1 -0
- package/dist/sync.mjs +2 -0
- package/package.json +584 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-mixins";
|
package/dist/mixins.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-primitives/device";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-primitives/dom";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-primitives/events";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-primitives/interaction";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-primitives/media";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-primitives/motion";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-primitives/net";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-primitives/observers";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-primitives/state";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-primitives/time";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-primitives";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-react-codegen";
|
package/dist/react.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-react";
|
package/dist/react.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-remote/port";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-remote-drizzle";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-remote-server/fetch";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-remote-server/port";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-remote-server";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-remote";
|
package/dist/remote.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-richtext-code-shiki";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-richtext-code";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-richtext-dom/editor-bundle";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-richtext-dom/editor";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-richtext-dom/events";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-richtext-dom/host";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-richtext-dom/html";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-richtext-dom/input";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-richtext-dom/toolbar";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-richtext-dom/view";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-richtext-dom";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-richtext-markdown";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-richtext";
|
package/dist/setup.d.mts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Option } from "effect";
|
|
2
|
+
//#region src/setup.d.ts
|
|
3
|
+
export type Manager = 'pnpm' | 'npm' | 'yarn' | 'bun';
|
|
4
|
+
/** What the project's `package.json` says about the libraries Foldkit Plus needs. */
|
|
5
|
+
export interface Project {
|
|
6
|
+
readonly name: string;
|
|
7
|
+
/** Each named library's version range, from any dependency field. */
|
|
8
|
+
readonly versions: Readonly<Record<string, string>>;
|
|
9
|
+
}
|
|
10
|
+
/** The versions this release is built and tested against, from its own manifest. */
|
|
11
|
+
export interface Versions {
|
|
12
|
+
readonly plus: string;
|
|
13
|
+
readonly effect: string;
|
|
14
|
+
readonly foldkit: string;
|
|
15
|
+
}
|
|
16
|
+
export interface SetupInput {
|
|
17
|
+
readonly project: Option.Option<Project>;
|
|
18
|
+
readonly manager: Manager;
|
|
19
|
+
readonly versions: Versions;
|
|
20
|
+
}
|
|
21
|
+
/** What each job needs, where to import it from, and where it is explained. */
|
|
22
|
+
export declare const jobs: ReadonlyArray<{
|
|
23
|
+
readonly job: string;
|
|
24
|
+
readonly imports: ReadonlyArray<string>;
|
|
25
|
+
readonly guide: string;
|
|
26
|
+
}>;
|
|
27
|
+
/**
|
|
28
|
+
* The packages `foldkit-plus` does not install, since each needs a library of
|
|
29
|
+
* its own, and that library. `test/setup.test.ts` holds this to the manifest.
|
|
30
|
+
*/
|
|
31
|
+
export declare const adapters: ReadonlyArray<{
|
|
32
|
+
readonly name: string;
|
|
33
|
+
readonly libraries: ReadonlyArray<string>;
|
|
34
|
+
readonly when: string;
|
|
35
|
+
}>;
|
|
36
|
+
/** The command that adds `packages` with `manager`. */
|
|
37
|
+
export declare const addCommand: (manager: Manager, packages: ReadonlyArray<string>) => string;
|
|
38
|
+
export declare const setupGuide: ({ project, manager, versions }: SetupInput) => string;
|
|
39
|
+
//#endregion
|
|
40
|
+
//# sourceMappingURL=setup.d.mts.map
|
|
@@ -0,0 +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;;;qBAOR,MAAM;WACR;WACA,SAAS;WACT;;;;;;qBAkGE,UAAU;WACZ;WACA,WAAW;WACX;;;qBAgCE,aAAc,SAAS,SAAS,UAAU;qBAuB1C,eAAc,SAAA,SAAA,YAAgC"}
|
package/dist/setup.mjs
ADDED
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import { Option } from "effect";
|
|
2
|
+
//#region src/setup.ts
|
|
3
|
+
/**
|
|
4
|
+
* What `npx foldkit-plus setup` prints: instructions a coding agent can follow
|
|
5
|
+
* in order, for the project it is run in. Pure: the CLI reads the project and
|
|
6
|
+
* this package's manifest and passes them in, so a test can give any project.
|
|
7
|
+
*/
|
|
8
|
+
const SITE = "https://foldkit-plus.pages.dev";
|
|
9
|
+
const REPOSITORY = "https://github.com/doeixd/foldkit-plus";
|
|
10
|
+
/** What each job needs, where to import it from, and where it is explained. */
|
|
11
|
+
const jobs = [
|
|
12
|
+
{
|
|
13
|
+
job: "Name what a feature may read and which Messages it may send",
|
|
14
|
+
imports: ["surface", "metadata"],
|
|
15
|
+
guide: "surface"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
job: "A reusable Submodel placed several times, every part wired",
|
|
19
|
+
imports: ["bundle", "bundle-surface"],
|
|
20
|
+
guide: "bundle"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
job: "Restyle or extend views from outside, through typed slots",
|
|
24
|
+
imports: [
|
|
25
|
+
"mixins",
|
|
26
|
+
"mixins-surface",
|
|
27
|
+
"mixins-ui"
|
|
28
|
+
],
|
|
29
|
+
guide: "mixins"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
job: "Media queries, timers, sockets, clipboard, undo history",
|
|
33
|
+
imports: ["primitives"],
|
|
34
|
+
guide: "primitives"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
job: "Declare the domain once: entities, relations, queries",
|
|
38
|
+
imports: ["entity"],
|
|
39
|
+
guide: "entity"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
job: "Server-owned data in the Model: queries, mutations, live updates",
|
|
43
|
+
imports: [
|
|
44
|
+
"remote",
|
|
45
|
+
"remote-server",
|
|
46
|
+
"remote-drizzle"
|
|
47
|
+
],
|
|
48
|
+
guide: "remote"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
job: "Edits that survive offline and converge across devices",
|
|
52
|
+
imports: ["sync", "durable"],
|
|
53
|
+
guide: "sync"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
job: "Who may do what, enforced on every seam",
|
|
57
|
+
imports: ["guard"],
|
|
58
|
+
guide: "guard"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
job: "A slice of the Model kept in the URL or in storage",
|
|
62
|
+
imports: ["mirror"],
|
|
63
|
+
guide: "mirror"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
job: "Forms: drafts, validation, a decoded value",
|
|
67
|
+
imports: ["form", "mixins-form"],
|
|
68
|
+
guide: "form"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
job: "Edit, create and list screens over Remote",
|
|
72
|
+
imports: ["crud", "mixins-crud"],
|
|
73
|
+
guide: "crud"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
job: "An interactive data grid over rows you own",
|
|
77
|
+
imports: ["data-grid", "mixins-data-grid"],
|
|
78
|
+
guide: "data-grid"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
job: "Drafts, revisions and publishing for content",
|
|
82
|
+
imports: ["cms", "cms-drizzle"],
|
|
83
|
+
guide: "cms"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
job: "Pages as data, and a builder that edits them",
|
|
87
|
+
imports: [
|
|
88
|
+
"composition",
|
|
89
|
+
"builder",
|
|
90
|
+
"mixins-builder"
|
|
91
|
+
],
|
|
92
|
+
guide: "composition"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
job: "Rich text: the document, its editor, Markdown and code",
|
|
96
|
+
imports: [
|
|
97
|
+
"richtext",
|
|
98
|
+
"richtext-dom",
|
|
99
|
+
"mixins-richtext",
|
|
100
|
+
"richtext-markdown",
|
|
101
|
+
"richtext-code",
|
|
102
|
+
"richtext-code-shiki"
|
|
103
|
+
],
|
|
104
|
+
guide: "richtext"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
job: "Server rendering that hands the Model over",
|
|
108
|
+
imports: ["ssr"],
|
|
109
|
+
guide: "ssr"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
job: "Route topology as data: nodes, typed targets, titles",
|
|
113
|
+
imports: ["site"],
|
|
114
|
+
guide: "site"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
job: "What an AI agent may see and do, over MCP, WebMCP, A2A or Agent Native",
|
|
118
|
+
imports: [
|
|
119
|
+
"agent",
|
|
120
|
+
"agent-mcp",
|
|
121
|
+
"agent-webmcp",
|
|
122
|
+
"agent-a2a",
|
|
123
|
+
"agent-native"
|
|
124
|
+
],
|
|
125
|
+
guide: "agent"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
job: "React components in a Foldkit view, or Foldkit inside React",
|
|
129
|
+
imports: ["react", "react-codegen"],
|
|
130
|
+
guide: "react"
|
|
131
|
+
}
|
|
132
|
+
];
|
|
133
|
+
/**
|
|
134
|
+
* The packages `foldkit-plus` does not install, since each needs a library of
|
|
135
|
+
* its own, and that library. `test/setup.test.ts` holds this to the manifest.
|
|
136
|
+
*/
|
|
137
|
+
const adapters = [
|
|
138
|
+
{
|
|
139
|
+
name: "foldkit-agent-native",
|
|
140
|
+
libraries: ["@agent-native/core"],
|
|
141
|
+
when: "agents through Agent Native"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: "foldkit-cms-drizzle",
|
|
145
|
+
libraries: ["drizzle-orm"],
|
|
146
|
+
when: "the CMS's server on Drizzle"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: "foldkit-mixins-ui",
|
|
150
|
+
libraries: ["@foldkit/ui"],
|
|
151
|
+
when: "styling `@foldkit/ui` components through slots"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: "foldkit-react",
|
|
155
|
+
libraries: ["react", "react-dom"],
|
|
156
|
+
when: "React interop"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
name: "foldkit-react-codegen",
|
|
160
|
+
libraries: ["typescript"],
|
|
161
|
+
when: "compiling Foldkit views to React TSX (a dev dependency)"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
name: "foldkit-remote-drizzle",
|
|
165
|
+
libraries: ["drizzle-orm"],
|
|
166
|
+
when: "answering Remote reads with Drizzle"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
name: "foldkit-richtext-code-shiki",
|
|
170
|
+
libraries: ["shiki"],
|
|
171
|
+
when: "highlighting code blocks with Shiki"
|
|
172
|
+
}
|
|
173
|
+
];
|
|
174
|
+
/** The command that adds `packages` with `manager`. */
|
|
175
|
+
const addCommand = (manager, packages) => `${manager} ${manager === "npm" ? "install" : "add"} ${packages.join(" ")}`;
|
|
176
|
+
/** The major version a range asks for: `^4.0.0`, `~4.1`, `4.0.0-beta.1` all ask for 4. */
|
|
177
|
+
const majorOf = (range) => Option.fromNullishOr(/(\d+)/.exec(range)?.[1]).pipe(Option.map(Number));
|
|
178
|
+
/** What the project has of a library against what this release needs, as a line to act on. */
|
|
179
|
+
const finding = (project, library, wanted) => Option.match(Option.fromNullishOr(project.versions[library]), {
|
|
180
|
+
onNone: () => `- \`${library}\` is not installed: step 2 adds \`${library}@${wanted}\`.`,
|
|
181
|
+
onSome: (range) => {
|
|
182
|
+
return (library === "foldkit" ? range.replace(/^[\^~=v]*/, "").startsWith(wanted.split(".").slice(0, 2).join(".")) : Option.getOrUndefined(majorOf(range)) === Option.getOrUndefined(majorOf(wanted))) ? `- \`${library}\` ${range}: fits.` : `- \`${library}\` is ${range}, and Foldkit Plus needs ${wanted}: step 2 moves it to ${wanted}. Check the application builds after.`;
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
const setupGuide = ({ project, manager, versions }) => {
|
|
186
|
+
const install = addCommand(manager, [
|
|
187
|
+
`effect@${versions.effect}`,
|
|
188
|
+
`foldkit@${versions.foldkit}`,
|
|
189
|
+
`@effect/platform-browser@${versions.effect}`,
|
|
190
|
+
"foldkit-plus"
|
|
191
|
+
]);
|
|
192
|
+
const check = Option.match(project, {
|
|
193
|
+
onNone: () => ["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."],
|
|
194
|
+
onSome: (found) => [
|
|
195
|
+
`This is \`${found.name}\`, installed with ${manager}.`,
|
|
196
|
+
"",
|
|
197
|
+
finding(found, "effect", versions.effect),
|
|
198
|
+
finding(found, "foldkit", versions.foldkit)
|
|
199
|
+
]
|
|
200
|
+
});
|
|
201
|
+
return [
|
|
202
|
+
`# Foldkit Plus ${versions.plus}: setup`,
|
|
203
|
+
"",
|
|
204
|
+
"Instructions for a coding agent, in order. Each step says what to run and why. Tell the user what you did at the end.",
|
|
205
|
+
"",
|
|
206
|
+
"## What these are",
|
|
207
|
+
"",
|
|
208
|
+
"- **Effect** (https://effect.website): TypeScript for typed effects, errors, schemas and streams. Foldkit Plus targets Effect 4.",
|
|
209
|
+
"- **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.",
|
|
210
|
+
"- **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.",
|
|
211
|
+
"",
|
|
212
|
+
"## 1. Check the project",
|
|
213
|
+
"",
|
|
214
|
+
...check,
|
|
215
|
+
"",
|
|
216
|
+
"## 2. Install",
|
|
217
|
+
"",
|
|
218
|
+
"```bash",
|
|
219
|
+
install,
|
|
220
|
+
"```",
|
|
221
|
+
"",
|
|
222
|
+
"`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:",
|
|
223
|
+
"",
|
|
224
|
+
...adapters.map((each) => `- ${each.when}: \`${addCommand(manager, [each.name, ...each.libraries])}\``),
|
|
225
|
+
"",
|
|
226
|
+
"## 3. Add the agent skill",
|
|
227
|
+
"",
|
|
228
|
+
"```bash",
|
|
229
|
+
"npx skills add doeixd/foldkit-plus --skill foldkit-plus",
|
|
230
|
+
"```",
|
|
231
|
+
"",
|
|
232
|
+
"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.",
|
|
233
|
+
"",
|
|
234
|
+
"## 4. Import",
|
|
235
|
+
"",
|
|
236
|
+
"The namespaces most applications use come from the root:",
|
|
237
|
+
"",
|
|
238
|
+
"```ts",
|
|
239
|
+
"import { Surface, Projection, Remote, Sync, Mirror, Agent, Style } from 'foldkit-plus'",
|
|
240
|
+
"```",
|
|
241
|
+
"",
|
|
242
|
+
"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:",
|
|
243
|
+
"",
|
|
244
|
+
"| Job | Import from | Guide |",
|
|
245
|
+
"| --- | --- | --- |",
|
|
246
|
+
...jobs.map((each) => `| ${each.job} | ${each.imports.map((name) => `\`foldkit-plus/${name}\``).join(", ")} | ${SITE}/${each.guide} |`),
|
|
247
|
+
"",
|
|
248
|
+
"## 5. Rules every package keeps",
|
|
249
|
+
"",
|
|
250
|
+
"- One owner per datum: never keep a fact in the Model and again in a cache, a URL store or a second reducer.",
|
|
251
|
+
"- Behaviour goes through Messages and `update`; agents, replicas and Behaviors never change the Model directly.",
|
|
252
|
+
"- Rendering performs no I/O: fetching, syncing and mirroring run in Commands and Subscriptions.",
|
|
253
|
+
"- Absence is an Effect `Option`, not `null`, except at a JSON, database or DOM boundary.",
|
|
254
|
+
"",
|
|
255
|
+
"## More",
|
|
256
|
+
"",
|
|
257
|
+
`- Guides and API: ${SITE}`,
|
|
258
|
+
`- Demos: ${SITE}/demos`,
|
|
259
|
+
`- Source and changelog: ${REPOSITORY}`,
|
|
260
|
+
""
|
|
261
|
+
].join("\n");
|
|
262
|
+
};
|
|
263
|
+
//#endregion
|
|
264
|
+
export { adapters, addCommand, jobs, setupGuide };
|
|
265
|
+
|
|
266
|
+
//# sourceMappingURL=setup.mjs.map
|
|
@@ -0,0 +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: '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 { 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 { 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":"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xC,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;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"}
|
package/dist/site.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-site";
|
package/dist/site.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-ssr/client";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-ssr/vite";
|
package/dist/ssr.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-ssr";
|
package/dist/ssr.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "foldkit-surface";
|