fimo 2.2.0-staging.9 → 2.2.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/assets/agent-templates/_default/config.yaml +6 -0
- package/assets/agent-templates/broken-link-sweeper/config.yaml +1 -0
- package/assets/content-templates/shared/types.eta +65 -6
- package/assets/skills/fimo-cli/SKILL.md +5 -3
- package/assets/skills/fimo-cli/references/agents.md +28 -3
- package/assets/skills/fimo-cli/references/assets.md +38 -2
- package/assets/skills/fimo-cli/references/branches.md +9 -8
- package/assets/skills/fimo-cli/references/content.md +1 -1
- package/assets/skills/fimo-cli/references/credits.md +12 -19
- package/assets/skills/fimo-cli/references/deploy.md +6 -6
- package/assets/skills/fimo-cli/references/history.md +2 -2
- package/assets/skills/fimo-cli/references/inbox.md +86 -0
- package/assets/skills/fimo-cli/references/init.md +7 -6
- package/assets/skills/fimo-cli/references/invite.md +11 -9
- package/assets/skills/fimo-cli/references/labels.md +3 -11
- package/assets/skills/fimo-cli/references/locales.md +5 -3
- package/assets/skills/fimo-cli/references/preview.md +1 -2
- package/assets/skills/fimo-cli/references/projects.md +8 -8
- package/assets/skills/fimo-cli/references/schedules.md +2 -2
- package/assets/skills/fimo-cli/references/webhooks.md +4 -4
- package/assets/skills/fimo-code/references/assets.md +22 -11
- package/assets/skills/fimo-code/references/content/clients.md +15 -1
- package/assets/skills/fimo-code/references/content/schema.md +1 -0
- package/assets/skills/fimo-code/references/frameworks/astro.md +1 -1
- package/assets/skills/fimo-code/references/frameworks/next/app-router.md +12 -1
- package/assets/skills/fimo-code/references/frameworks/next/locales.md +2 -2
- package/assets/skills/fimo-code/references/frameworks/next.md +1 -1
- package/assets/skills/fimo-code/references/locales.md +4 -2
- package/assets/skills/fimo-migration/SKILL.md +54 -16
- package/assets/skills/fimo-migration/references/frameworks/nextjs.md +8 -0
- package/assets/skills/fimo-migration/references/media.md +11 -0
- package/assets/skills/fimo-migration/references/qa.md +30 -4
- package/assets/skills/fimo-migration/references/questions-and-improvements.md +188 -0
- package/assets/skills/fimo-migration/references/workers/content-planner.md +8 -3
- package/assets/skills/fimo-migration/references/workers/validator.md +20 -6
- package/assets/skills/fimo-migration/references/workers.md +17 -6
- package/assets/skills/fimo-migration/references/workflow.md +36 -6
- package/assets/skills/fimo-studio/SKILL.md +3 -1
- package/assets/skills/fimo-studio/references/agents.md +25 -0
- package/assets/skills/fimo-studio/references/ai-chat.md +1 -2
- package/assets/skills/fimo-studio/references/billing-and-credits.md +14 -7
- package/assets/skills/fimo-studio/references/webhooks.md +1 -1
- package/dist/cli/bundle.json +2 -2
- package/dist/cli/index.js +207 -176
- package/dist/runtime/content/serialization.d.ts +4 -3
- package/dist/runtime/content/serialization.js +4 -3
- package/dist/runtime/primitives/lib/primitives.d.ts +15 -7
- package/dist/runtime/primitives/lib/primitives.js +14 -1
- package/dist/runtime/shared/local-runtime-env.d.ts +2 -2
- package/dist/runtime/shared/local-runtime-env.js +14 -9
- package/dist/runtime/templates.d.ts +9 -2
- package/dist/runtime/templates.js +36 -7
- package/dist/scripts/validate-schemas.js +10 -15
- package/package.json +10 -8
- package/release.json +2 -2
- package/templates/astro/AGENTS.md +1 -1
- package/templates/astro/package.json +2 -2
- package/templates/nextjs/AGENTS.md +2 -2
- package/templates/nextjs/package.json +3 -3
- package/templates/nextjs/src/app/layout.tsx +4 -1
- package/templates/react-router/AGENTS.md +2 -2
- package/templates/react-router/package.json +4 -4
- package/templates/sveltekit/AGENTS.md +1 -1
- package/templates/sveltekit/package.json +2 -2
- package/templates/vite/AGENTS.md +5 -1
- package/templates/vite/package.json +4 -4
- package/templates/welcome/manifest.json +655 -0
- package/templates/welcome/media/analytics-overview.avif +0 -0
- package/templates/welcome/media/autonomous-loop.avif +0 -0
- package/templates/welcome/media/editable-preview.avif +0 -0
- package/templates/welcome/media/media-library.avif +0 -0
- package/templates/welcome/media/slack-teams.avif +0 -0
- package/templates/welcome/template/.fimo/agents/welcome-guide/GOAL.md +12 -0
- package/templates/welcome/template/.fimo/agents/welcome-guide/capabilities.yaml +3 -0
- package/templates/welcome/template/.fimo/agents/welcome-guide/config.yaml +8 -0
- package/templates/welcome/template/.fimo/config.json +53 -0
- package/templates/welcome/template/src/font.css +60 -0
- package/templates/welcome/template/src/pages/ArticleDetail.tsx +104 -0
- package/templates/welcome/template/src/pages/Index.tsx +36 -0
- package/templates/welcome/template/src/pages/SiteContent.tsx +674 -0
- package/templates/welcome/template/src/pages/fallback-content.ts +152 -0
- package/templates/welcome/template/src/routes.ts +9 -0
- package/templates/welcome/template/src/schemas/Article.json +34 -0
- package/templates/welcome/template/src/schemas/Article.ts +54 -0
- package/templates/welcome/template/src/schemas/Article.types.ts +93 -0
- package/templates/welcome/template/src/schemas/Author.json +17 -0
- package/templates/welcome/template/src/schemas/Author.ts +51 -0
- package/templates/welcome/template/src/schemas/Author.types.ts +54 -0
- package/templates/welcome/template/src/schemas/Category.json +17 -0
- package/templates/welcome/template/src/schemas/Category.ts +51 -0
- package/templates/welcome/template/src/schemas/Category.types.ts +54 -0
- package/templates/welcome/template/src/schemas/HomePage.json +110 -0
- package/templates/welcome/template/src/schemas/HomePage.ts +22 -0
- package/templates/welcome/template/src/schemas/HomePage.types.ts +116 -0
|
@@ -85,6 +85,16 @@ items.
|
|
|
85
85
|
and public APIs were read under their simple access rules; private sources
|
|
86
86
|
used a user export or narrowly scoped server-side credential. Missing access
|
|
87
87
|
is unresolved for that lane, and no content was guessed.
|
|
88
|
+
- Each content family moved from local or bundled files to Fimo records its
|
|
89
|
+
build-time, request-time, or browser delivery mode before and after migration.
|
|
90
|
+
Build-time and server-rendered source content did not become a browser API
|
|
91
|
+
waterfall.
|
|
92
|
+
- Detail routes use a direct generated-client lookup when available. Indexes use
|
|
93
|
+
bounded pagination and projection. Shared reads are deduplicated, independent
|
|
94
|
+
reads start together, and page-only reads do not block a shared root layout.
|
|
95
|
+
- Production evidence labels cold and warm navigation separately and records
|
|
96
|
+
observable Fimo/API request counts, duplicates, order, and longest blocking
|
|
97
|
+
read. Development-only timing is never presented as production proof.
|
|
88
98
|
|
|
89
99
|
For linked Next.js targets, the root `FimoProvider` resolves an explicit host
|
|
90
100
|
connection first, otherwise `.fimo/project.json` plus the active git branch,
|
|
@@ -124,6 +134,8 @@ Owned by the runtime lane; verified here read-only.
|
|
|
124
134
|
## Behavior
|
|
125
135
|
|
|
126
136
|
- Dependencies are installed in the target project.
|
|
137
|
+
- The recorded CLI and companion package specifiers are reproducible outside
|
|
138
|
+
the current package-manager cache and match the selected runtime channel.
|
|
127
139
|
- The project builds successfully.
|
|
128
140
|
- Local dev starts without Vite loader/schema/form generation errors.
|
|
129
141
|
- Primary routes render without console/runtime errors.
|
|
@@ -135,6 +147,10 @@ Owned by the runtime lane; verified here read-only.
|
|
|
135
147
|
- Every content-code batch exercised at least one non-empty imported item
|
|
136
148
|
through each Server-to-Client or plain-JSON boundary it introduced; build
|
|
137
149
|
success over an empty query result does not pass this check.
|
|
150
|
+
- Server-rendered source content remains in the initial server result and is not
|
|
151
|
+
fetched again after hydration. A new client waterfall, repeated full-list
|
|
152
|
+
read, avoidable sequential request chain, or stale edit fails the responsible
|
|
153
|
+
migration lane.
|
|
138
154
|
- Navigation and footer links point to migrated routes or documented external URLs.
|
|
139
155
|
- Missing integration secrets do not block these checks: build, dev, and route
|
|
140
156
|
render run with the integration inert, and the missing key is a recorded
|
|
@@ -160,7 +176,9 @@ equivalent):
|
|
|
160
176
|
5. Assert globally rendered label/button text (header/footer nav, CTAs, cookie
|
|
161
177
|
banner) is non-empty; blank text usually means the component is mounted
|
|
162
178
|
outside the label provider.
|
|
163
|
-
6.
|
|
179
|
+
6. Assert visible text and attributes contain no source-absent serialization
|
|
180
|
+
sentinels such as `undefined`, `null`, `[object Object]`, or `NaN`.
|
|
181
|
+
7. Inspect the browser console and server output for runtime errors.
|
|
164
182
|
|
|
165
183
|
Keep it bounded: representative pages and one interaction, not an interactive
|
|
166
184
|
walk of every route or a multi-hour visual audit. The Visual section below
|
|
@@ -176,6 +194,11 @@ report; never claim a visual check that did not run.
|
|
|
176
194
|
- Prioritize layout, typography, content hierarchy, media, and brand tokens.
|
|
177
195
|
- Remove generated placeholder copy from visible UI.
|
|
178
196
|
- Verify media aspect ratios and no broken images on primary routes.
|
|
197
|
+
- Compare representative component bounds; whole-page height can hide a local
|
|
198
|
+
geometry regression.
|
|
199
|
+
- Compare image loading before and after scroll. Record eager/lazy and preload
|
|
200
|
+
counts, response formats, and representative transfer sizes; an optimizer
|
|
201
|
+
URL alone is not delivery proof.
|
|
179
202
|
|
|
180
203
|
## Import Verification
|
|
181
204
|
|
|
@@ -231,6 +254,8 @@ complete | complete-with-unresolved | draft-only
|
|
|
231
254
|
|
|
232
255
|
## Hosting
|
|
233
256
|
|
|
257
|
+
## Content Delivery
|
|
258
|
+
|
|
234
259
|
## Timing
|
|
235
260
|
|
|
236
261
|
## Checks
|
|
@@ -248,9 +273,10 @@ locales) with `gate`,
|
|
|
248
273
|
coverage must not average away a missing entry or an unuploaded asset. Timing is
|
|
249
274
|
a separate section copied from the worker reports, so it never dilutes coverage.
|
|
250
275
|
|
|
251
|
-
Cache freshness is a report check
|
|
252
|
-
|
|
253
|
-
|
|
276
|
+
Cache freshness is a report check whenever migration changes the content
|
|
277
|
+
transport or rendering mode. Do not fail a migration for omitted provider cache
|
|
278
|
+
mechanics alone, but do fail stale Fimo edits caused by the target's migrated
|
|
279
|
+
read path.
|
|
254
280
|
|
|
255
281
|
Use `complete` only when all required checks pass. Use
|
|
256
282
|
`complete-with-unresolved` when the migrated site is usable and all gaps are
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
# Migration questions and content delivery
|
|
2
|
+
|
|
3
|
+
## Inspect before asking
|
|
4
|
+
|
|
5
|
+
Start with read-only source inspection. Find the framework, router, version,
|
|
6
|
+
content sources, integrations, API routes, environment variable names, and
|
|
7
|
+
obvious runtime constraints. Do not initialize or link the target, edit files,
|
|
8
|
+
write Fimo data, contact private services, deploy, or publish yet.
|
|
9
|
+
|
|
10
|
+
Do not ask the user to explain facts the source already proves. Ask only when
|
|
11
|
+
the answer changes authorization or forces a real choice:
|
|
12
|
+
|
|
13
|
+
- an integration may be removed, replaced, disconnected, or moved;
|
|
14
|
+
- environment configuration or credentials may need to move into Fimo;
|
|
15
|
+
- the source framework is unknown or the user requested a conversion;
|
|
16
|
+
- the source defines CMS content but the deployed records are unavailable;
|
|
17
|
+
- two systems could own the same content or behavior; or
|
|
18
|
+
- the requested migration includes a destructive or mutually exclusive choice.
|
|
19
|
+
|
|
20
|
+
Preserve the source's visible behavior by default. Do not ask the user to list
|
|
21
|
+
the routes, metadata, feeds, forms, locales, analytics, or content that must
|
|
22
|
+
survive. Discovering and preserving them is the migration job. Do not ask a
|
|
23
|
+
generic speed, optimization, or framework-upgrade question during migration.
|
|
24
|
+
|
|
25
|
+
## Ask one stacked batch
|
|
26
|
+
|
|
27
|
+
Use the coding agent's native structured-question UI when it has one. The tool
|
|
28
|
+
name differs between Codex, Claude Code, and other hosts.
|
|
29
|
+
|
|
30
|
+
- Collect decisions from the same inspection and ask one preflight batch. Aim
|
|
31
|
+
for one to three questions.
|
|
32
|
+
- Include setup blockers already visible at that point, such as a missing target
|
|
33
|
+
choice, organization or project, URL-only framework choice, or pinned CLI
|
|
34
|
+
artifact. Do not save them for separate follow-up turns.
|
|
35
|
+
- Give each question a short subject and two or three concrete choices. Put the
|
|
36
|
+
recommended safe default first and state the consequence of each choice.
|
|
37
|
+
- Write for the site owner, who may not know Fimo or the migration process. Do
|
|
38
|
+
not put evaluator terms such as faithful acceptance, frozen result, or probe
|
|
39
|
+
in a user-facing question. Explain Fimo terms the first time they matter.
|
|
40
|
+
- Group environment keys by the integration they enable. Never ask one question
|
|
41
|
+
per key.
|
|
42
|
+
- Use multi-select for independent choices when the host supports it. Otherwise
|
|
43
|
+
offer a few useful bundles.
|
|
44
|
+
- Restate the accepted contract once after the answers, then start. Ask again
|
|
45
|
+
only when new evidence creates a safety or consent decision that the initial
|
|
46
|
+
inspection could not reveal.
|
|
47
|
+
- When the host has no structured-question UI, send the whole batch as one
|
|
48
|
+
numbered message. Do not drip questions across turns.
|
|
49
|
+
|
|
50
|
+
## Protect integrations and environment values
|
|
51
|
+
|
|
52
|
+
Detect integration and environment key names without printing or reading their
|
|
53
|
+
values. A request to migrate the website is not consent to move any environment
|
|
54
|
+
value.
|
|
55
|
+
|
|
56
|
+
- Keep third-party behavior wired when Fimo does not replace it exactly.
|
|
57
|
+
- Never silently remove, replace, or partly imitate an integration.
|
|
58
|
+
- Ask before changing its owner, credential store, or runtime behavior.
|
|
59
|
+
- Without consent, leave current environment references unchanged. Mark live
|
|
60
|
+
verification blocked when credentials are unavailable.
|
|
61
|
+
- When the user chooses Fimo storage, load the current `fimo-cli`
|
|
62
|
+
`project-vars-and-secrets` reference. Browser-safe configuration uses project
|
|
63
|
+
variables. Hidden API keys and tokens use project secrets. Never turn a
|
|
64
|
+
secret into a public variable.
|
|
65
|
+
- When the owner chooses Fimo-managed secrets, ask them to add the values to
|
|
66
|
+
Fimo. Never read existing secret values from env files, logs, browser code,
|
|
67
|
+
migration artifacts, or worker transcripts.
|
|
68
|
+
|
|
69
|
+
## Ask before reconstructing missing CMS content
|
|
70
|
+
|
|
71
|
+
Source repositories often contain CMS schemas and rendering code without the
|
|
72
|
+
deployed records. A public website can recover what visitors can see, but it
|
|
73
|
+
cannot prove drafts, unlinked records, editorial metadata, hidden relations, or
|
|
74
|
+
private fields. Do not silently substitute scraped pages for the missing CMS.
|
|
75
|
+
|
|
76
|
+
When required CMS records are unavailable, ask one question with these choices:
|
|
77
|
+
|
|
78
|
+
- **Provide CMS access or an export (Recommended).** Use a scoped read-only
|
|
79
|
+
credential or export to preserve the selected records, relations, locales,
|
|
80
|
+
SEO, and media as completely as the source allows.
|
|
81
|
+
- **Rebuild from the public website.** Use credential-free public APIs when
|
|
82
|
+
available, then the rendered pages for the user-approved route slice. Treat
|
|
83
|
+
the run as hybrid, import only published evidence, and report everything the
|
|
84
|
+
public site cannot reveal.
|
|
85
|
+
- **Migrate code only.** Keep the CMS integration and its records outside Fimo;
|
|
86
|
+
do not claim that editorial content moved.
|
|
87
|
+
|
|
88
|
+
The question should sound like this:
|
|
89
|
+
|
|
90
|
+
> The repository contains the CMS structure, but not the content currently
|
|
91
|
+
> published on the site. Should I use a read-only CMS export, rebuild the
|
|
92
|
+
> selected pages from the public website, or migrate only the code and leave the
|
|
93
|
+
> content where it is?
|
|
94
|
+
|
|
95
|
+
If the owner chooses the public website, stay inside the selected route scope.
|
|
96
|
+
Public retrieval does not authorize private endpoint discovery, credential use,
|
|
97
|
+
or a broader crawl. Record the URL, retrieval time, redirects, and every field
|
|
98
|
+
or relation that remains unknown.
|
|
99
|
+
|
|
100
|
+
## Ask what happens outside a partial migration
|
|
101
|
+
|
|
102
|
+
When the request selects only part of a website and does not say what should
|
|
103
|
+
happen to the remaining pages, ask in the same preflight batch:
|
|
104
|
+
|
|
105
|
+
> We're moving only part of the site. What should happen when someone follows
|
|
106
|
+
> a link to a page we aren't moving?
|
|
107
|
+
|
|
108
|
+
Offer these choices:
|
|
109
|
+
|
|
110
|
+
- **Keep opening the current site.** Preserve working absolute source URLs for
|
|
111
|
+
pages outside the selected slice.
|
|
112
|
+
- **Remove those pages.** Remove their navigation links and redirect known old
|
|
113
|
+
routes to the migrated homepage instead of leaving broken relative links.
|
|
114
|
+
|
|
115
|
+
Do not ask when every route is migrating or the request already settles this
|
|
116
|
+
behavior. If the coordinator discovers an omitted route only after preflight,
|
|
117
|
+
preserve its working absolute source URL and report it. Do not interrupt the
|
|
118
|
+
migration with a late preference question.
|
|
119
|
+
|
|
120
|
+
## Preserve content delivery performance
|
|
121
|
+
|
|
122
|
+
Replacing local Markdown, MDX, JSON, or hardcoded content with Fimo reads must
|
|
123
|
+
not add an avoidable runtime wait. This is migration correctness, so apply it
|
|
124
|
+
without asking an optimization question.
|
|
125
|
+
|
|
126
|
+
First record how the source delivers each content family: at build time, on the
|
|
127
|
+
server per request, or in the browser. Load the current `fimo-code` framework
|
|
128
|
+
and generated-client references, then keep the same rendering and freshness
|
|
129
|
+
semantics unless the target framework requires a documented equivalent.
|
|
130
|
+
|
|
131
|
+
- Keep build-time or server-rendered source content on the server. Do not turn
|
|
132
|
+
a local Markdown page into a client-side loading state or browser API
|
|
133
|
+
waterfall.
|
|
134
|
+
- Preserve known-route generation. For a static blog, list slugs once for route
|
|
135
|
+
generation, then use `getBySlug` or another direct generated-client lookup for
|
|
136
|
+
each detail route. Do not list the whole collection and filter it again on
|
|
137
|
+
every page request.
|
|
138
|
+
- Start independent reads together. Keep page-only content out of shared root
|
|
139
|
+
layouts, and deduplicate the same read when metadata, a layout, and a page
|
|
140
|
+
need it during one render.
|
|
141
|
+
- Query only the fields, relations, and page of records the route consumes.
|
|
142
|
+
Populate required references explicitly. Avoid unbounded collection reads and
|
|
143
|
+
N+1 relation lookups.
|
|
144
|
+
- Keep framework links and their normal prefetch behavior. Do not add broad
|
|
145
|
+
forced prefetching that turns a page list into a burst of Fimo requests.
|
|
146
|
+
- Preserve edit freshness. Static generation, revalidation, or caching is valid
|
|
147
|
+
only when a normal rebuild or the source's normal refresh path shows the new
|
|
148
|
+
Fimo value. Cold-build once as a diagnostic when the normal result is stale.
|
|
149
|
+
- Do not upgrade the framework, change routers, add loading placeholders, or
|
|
150
|
+
redesign the page to satisfy this rule. Those are separate changes unless the
|
|
151
|
+
user explicitly requested them.
|
|
152
|
+
|
|
153
|
+
Examples:
|
|
154
|
+
|
|
155
|
+
- **Static Markdown blog:** import every post into Fimo, generate the known
|
|
156
|
+
routes from a bounded slug list, read each post on the server during static
|
|
157
|
+
generation, and ship the article in the initial HTML. A browser fetch for the
|
|
158
|
+
article body is a migration regression.
|
|
159
|
+
- **Large collection:** use a paginated, projected list for the index and a
|
|
160
|
+
direct slug lookup for the detail page. Fetching every full record for every
|
|
161
|
+
navigation is a migration regression even when the page eventually matches.
|
|
162
|
+
- **Fresh request-time page:** keep the Fimo read in the framework's server
|
|
163
|
+
loader or Server Component. Stream only when the source already tolerated
|
|
164
|
+
partial rendering or a new wait would otherwise block the whole page.
|
|
165
|
+
|
|
166
|
+
## Prove the transport did not regress
|
|
167
|
+
|
|
168
|
+
Run the production build and production server. Development mode may include
|
|
169
|
+
compilation and may disable prefetching, so label any development observation
|
|
170
|
+
as development-only.
|
|
171
|
+
|
|
172
|
+
For every content family moved from local or bundled source files to Fimo:
|
|
173
|
+
|
|
174
|
+
1. Record whether the source and target reads happen at build time, request
|
|
175
|
+
time, or in the browser.
|
|
176
|
+
2. Check one cold navigation and one warm navigation separately.
|
|
177
|
+
3. Capture Fimo/API request count, duplicate reads, request order, and the
|
|
178
|
+
longest blocking read when observable.
|
|
179
|
+
4. Verify that server-rendered source content remains in the initial server
|
|
180
|
+
result and is not fetched again after hydration.
|
|
181
|
+
5. Run the normal edit, render, and revert proof. When caching or static output
|
|
182
|
+
is involved, record normal-build and cold-build freshness separately.
|
|
183
|
+
|
|
184
|
+
Do not invent a universal millisecond budget. Timing starts as evidence. Fail
|
|
185
|
+
the migration when it introduces an objective transport regression, such as a
|
|
186
|
+
new client waterfall, repeated full-list reads, avoidable sequential requests,
|
|
187
|
+
or stale edits. A broader performance review or framework upgrade is separate
|
|
188
|
+
work and starts only when the user explicitly asks for it.
|
|
@@ -66,15 +66,20 @@ data workers start:
|
|
|
66
66
|
REST endpoints. Ask for an owner-provided export or narrowly scoped
|
|
67
67
|
server-side token only when website-required records are not public. Never
|
|
68
68
|
recover, log, persist, or copy secret values. If required access is missing
|
|
69
|
-
or unreachable, stop before planning schemas or payloads
|
|
69
|
+
or unreachable, stop before planning schemas or payloads until the owner
|
|
70
|
+
chooses scoped access, public-site reconstruction, or a code-only migration.
|
|
70
71
|
3. Fetch every required page, locale, and referenced record. For a few bounded
|
|
71
72
|
endpoints, direct requests are enough. For repeated or paginated reads,
|
|
72
73
|
write a temporary source-specific read-only script under
|
|
73
74
|
`.fimo/migration/tmp/`, then spot-check counts and references.
|
|
74
|
-
4.
|
|
75
|
+
4. When the owner chose public-site reconstruction, retrieve only the approved
|
|
76
|
+
published routes. Use credential-free public APIs when available and rendered
|
|
77
|
+
HTML otherwise. Mark drafts, unlinked records, hidden relations, and private
|
|
78
|
+
fields unknown instead of inventing them.
|
|
79
|
+
5. Preserve the retrieved responses as source evidence and payload inputs;
|
|
75
80
|
normalize transport details only. Do not create a provider registry or a
|
|
76
81
|
universal CMS model.
|
|
77
|
-
|
|
82
|
+
6. Design Fimo schemas from both the retrieved values and the code that uses
|
|
78
83
|
them. Keep uncertain fields optional unless authoritative evidence requires
|
|
79
84
|
them; sampled enum-like values are strings, and private or absent fields
|
|
80
85
|
remain unknown. Never invent replacement content when access is unavailable.
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
# Migration validator
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Validation is one independent read-only wave after all writers return. The
|
|
4
|
+
coordinator gives every validator the accepted migration scope and deliberate
|
|
5
|
+
user-approved differences, but no producer findings, repair reasoning,
|
|
6
|
+
transcript, or expected verdict. A validator checks the finished target against
|
|
7
|
+
the source within that contract. It does not report an explicitly excluded
|
|
8
|
+
route, integration, or control as migration drift.
|
|
9
|
+
|
|
10
|
+
When subagents are available, launch separate workers for build and runtime,
|
|
11
|
+
Fimo data and content, and rendered browser behavior. Run them concurrently
|
|
12
|
+
after their prerequisites pass. They may inspect overlapping files because none
|
|
13
|
+
of them writes.
|
|
5
14
|
|
|
6
15
|
Compare the source, content plan, actual `git diff`, real Fimo state, and local
|
|
7
16
|
application behavior. A worker report is a claim, not evidence.
|
|
@@ -29,7 +38,12 @@ representative page responds. After an approved deploy, browser QA must:
|
|
|
29
38
|
|
|
30
39
|
Optional development-tool failures do not fail a rendered, stable application.
|
|
31
40
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
repair
|
|
35
|
-
|
|
41
|
+
Each lane continues through independent assertions and returns status,
|
|
42
|
+
duration, checks run, counts, failing source items, blocked descendants, and
|
|
43
|
+
suggested repair ownership. Stop only when a failed prerequisite makes a check
|
|
44
|
+
meaningless.
|
|
45
|
+
|
|
46
|
+
The coordinator fans every lane into one finding set before editing. It assigns
|
|
47
|
+
disjoint repair owners, waits for the whole repair wave, then reruns one central
|
|
48
|
+
validation wave. It does not restart every worker, repair findings one at a
|
|
49
|
+
time, or loop indefinitely.
|
|
@@ -22,7 +22,7 @@ Plan a lane only when the source proves that surface exists:
|
|
|
22
22
|
| assets/forms | media uploads and form behavior | after discovery fan-in |
|
|
23
23
|
| content data | one schema/locale import | after assets |
|
|
24
24
|
| content code | listed consuming files | after its data read-back |
|
|
25
|
-
|
|
|
25
|
+
| validation wave | read-only build, data, and rendered checks | after all writers |
|
|
26
26
|
|
|
27
27
|
This is preserve mode, the default. When the user explicitly chose a framework
|
|
28
28
|
conversion, one framework worker replaces runtime and routes and owns all
|
|
@@ -55,7 +55,7 @@ read-back.
|
|
|
55
55
|
visitor-visible labels.
|
|
56
56
|
- **framework conversion** is used only after explicit user choice. Read
|
|
57
57
|
`references/workers/framework.md`.
|
|
58
|
-
- **
|
|
58
|
+
- **validation wave** authors nothing. Read `references/workers/validator.md`.
|
|
59
59
|
|
|
60
60
|
If two lanes need one file, name one owner in the text plan and sequence the
|
|
61
61
|
other after it. Do not add a metadata format for a small overlap.
|
|
@@ -76,7 +76,9 @@ other after it. Do not add a metadata format for a small overlap.
|
|
|
76
76
|
framework gate.
|
|
77
77
|
6. Start each code worker only after its own imported records read back as
|
|
78
78
|
non-empty. A build over empty data proves nothing.
|
|
79
|
-
7.
|
|
79
|
+
7. After every writer returns, start one read-only validation wave. When
|
|
80
|
+
subagents are available, run build and runtime, Fimo data and content, and
|
|
81
|
+
rendered browser checks concurrently after their prerequisites pass.
|
|
80
82
|
|
|
81
83
|
Each prompt names the worker's source paths, exact target ownership, applicable
|
|
82
84
|
reference above, and dependencies. Each report states status, duration, source
|
|
@@ -84,8 +86,17 @@ evidence, files changed, Fimo writes, source items handled, unresolved work,
|
|
|
84
86
|
and the next action. The coordinator verifies those claims against `git diff`,
|
|
85
87
|
CLI read-back, and rendered routes.
|
|
86
88
|
|
|
89
|
+
Validation prompts also carry the accepted migration scope and user-approved
|
|
90
|
+
differences, including selected routes, behavior for routes outside a partial
|
|
91
|
+
migration, excluded integrations, and the deploy boundary. This is task context,
|
|
92
|
+
not an expected verdict. Do not give validators producer findings, repair
|
|
93
|
+
reasoning, transcripts, or instructions to accept a difference.
|
|
94
|
+
|
|
87
95
|
A source item is covered only when its target value exists and the application
|
|
88
96
|
consumes it at the original behavior path, or when an explicit unresolved item
|
|
89
|
-
names the impact and owner action.
|
|
90
|
-
repair
|
|
91
|
-
|
|
97
|
+
names the impact and owner action. Collect the complete finding set before
|
|
98
|
+
repair. Fan it into one repair graph, run disjoint repair owners together, wait
|
|
99
|
+
for all of them, then rerun one central validation wave. A failed prerequisite
|
|
100
|
+
blocks only dependent checks; it does not stop unrelated diagnostics. Do not
|
|
101
|
+
restart every worker or alternate one finding with one repair when the next
|
|
102
|
+
validation pass could have exposed the full set.
|
|
@@ -4,6 +4,15 @@ Use this as the phase contract for a complete migration. The coordinator and
|
|
|
4
4
|
workers communicate in plain text. JSON is used only for Fimo schemas and the
|
|
5
5
|
content payloads that the data-plane commands import.
|
|
6
6
|
|
|
7
|
+
## Preflight: inspect and ask
|
|
8
|
+
|
|
9
|
+
Before target initialization or any other write, inspect the source read-only
|
|
10
|
+
and follow `references/questions-and-improvements.md`. Use the coding agent's
|
|
11
|
+
native structured-question UI to ask one stacked batch for integration,
|
|
12
|
+
environment, framework, and ownership decisions that the source cannot settle.
|
|
13
|
+
Never move environment values or credentials without explicit consent. Do not
|
|
14
|
+
ask a generic optimization question.
|
|
15
|
+
|
|
7
16
|
## Phase 0: Initialize the target
|
|
8
17
|
|
|
9
18
|
1. Confirm the target path. The target is a separate directory; the source
|
|
@@ -12,6 +21,9 @@ content payloads that the data-plane commands import.
|
|
|
12
21
|
- URL migration: `fimo migrate init <source-url> <target-dir> --framework <framework>`
|
|
13
22
|
- link an existing project: `fimo migrate init <target-dir> --project-id <projectId> --framework <framework>`
|
|
14
23
|
- create a project: `fimo migrate init <target-dir> --org <organizationId> --framework <framework>`
|
|
24
|
+
- add `--source-platform <platform>` when the source platform is known
|
|
25
|
+
(webflow, framer, squarespace, wix, carrd, wordpress, nextjs, astro,
|
|
26
|
+
react-router, other); URL crawls detect it themselves.
|
|
15
27
|
Use the detected source framework for source-backed migrations. A framework
|
|
16
28
|
conversion requires an explicit user choice; URL-only and rebuild
|
|
17
29
|
migrations ask the user which framework to use. Never choose a framework by
|
|
@@ -20,9 +32,15 @@ content payloads that the data-plane commands import.
|
|
|
20
32
|
3. Inspect the target's real `package.json`, `.fimo/config.json`, framework config, and route
|
|
21
33
|
directories. They are the authority for paths. Do not infer an app root
|
|
22
34
|
from a skill example and do not create a second `app/` or `src/app/` tree.
|
|
23
|
-
4.
|
|
35
|
+
4. Verify dependency provenance before workers start. A project created by a
|
|
36
|
+
published CLI pins that exact CLI release and matching companion packages.
|
|
37
|
+
A local source-checkout project uses the checkout-local CLI. Stop when the
|
|
38
|
+
target records an absolute package-manager cache path, an unapproved
|
|
39
|
+
`latest`, or a CLI and API from different runtime channels; do not let the
|
|
40
|
+
producer repair release setup inside the migration.
|
|
41
|
+
5. If the target is non-empty and not a Fimo project, stop and ask for a target
|
|
24
42
|
path; do not overlay a template on top of it.
|
|
25
|
-
|
|
43
|
+
6. Keep source material in `.fimo/migration/source` or another explicit source
|
|
26
44
|
location. Do not copy source files over the initialized target root.
|
|
27
45
|
|
|
28
46
|
Write a short `.fimo/migration/migration-plan.md` containing the source
|
|
@@ -46,8 +64,10 @@ Classify the available evidence:
|
|
|
46
64
|
For private APIs or CMSs, ask for a user-provided export or a narrowly scoped
|
|
47
65
|
server-side credential. Never recover credentials from browser bundles or copy
|
|
48
66
|
them into migration artifacts. If the source API URL or access is missing or
|
|
49
|
-
unreachable, stop and ask
|
|
50
|
-
|
|
67
|
+
unreachable, stop and ask whether to use scoped access, reconstruct only the
|
|
68
|
+
selected published routes from the public site, or migrate code without the CMS
|
|
69
|
+
records. Continue with public reconstruction only after that explicit choice,
|
|
70
|
+
and record everything the rendered site cannot reveal.
|
|
51
71
|
|
|
52
72
|
For API-backed content, trace active clients, endpoints, frontend types, and
|
|
53
73
|
consumers first. Prefer backend source schemas; otherwise use public OpenAPI,
|
|
@@ -143,12 +163,22 @@ one generic static shell. Apply the matching framework reference before
|
|
|
143
163
|
disposing of provider-specific rules; redirects, headers, feeds, metadata,
|
|
144
164
|
forms, and freshness behavior are observable contracts.
|
|
145
165
|
|
|
166
|
+
When local or bundled content becomes Fimo-backed, follow the content-delivery
|
|
167
|
+
contract in `references/questions-and-improvements.md`. Preserve build-time or
|
|
168
|
+
server rendering, direct lookups, bounded reads, request parallelism, and edit
|
|
169
|
+
freshness. A new browser waterfall, repeated full-list read, avoidable
|
|
170
|
+
sequential request chain, or stale edit is a migration regression.
|
|
171
|
+
|
|
146
172
|
## Phase 6: Fan in, validate, and report
|
|
147
173
|
|
|
148
174
|
Workers return the plain-text receipt defined in `references/workers.md`.
|
|
149
175
|
The coordinator checks those claims against the diff, source, CLI read-back,
|
|
150
|
-
build, and rendered routes. Then
|
|
151
|
-
`references/workers/validator.md
|
|
176
|
+
build, and rendered routes. Then it runs the read-only validation wave from
|
|
177
|
+
`references/workers/validator.md`, passing the accepted scope and deliberate
|
|
178
|
+
user-approved differences as task context; a worker saying "done" is not
|
|
179
|
+
evidence.
|
|
180
|
+
Collect the complete finding set before assigning repairs. Run disjoint repair
|
|
181
|
+
owners together, wait for all repairs, and rerun one central validation wave.
|
|
152
182
|
|
|
153
183
|
Write `.fimo/migration/migration-report.md` with route/content/media/form/SEO
|
|
154
184
|
coverage, import counts, worker timings, unresolved items, and next actions.
|
|
@@ -6,7 +6,7 @@ description: >-
|
|
|
6
6
|
Triggers: "in Fimo Studio", "in the dashboard", "in the web app",
|
|
7
7
|
"how do I X in the UI", or screenshots of the dashboard. Topics
|
|
8
8
|
covered: dashboard content and CMS, publishing from the dashboard,
|
|
9
|
-
dashboard SEO/domain settings, project connections, schedules and run history, outbound webhooks,
|
|
9
|
+
dashboard SEO/domain settings, project connections, agents, schedules and run history, outbound webhooks,
|
|
10
10
|
visual editing, version history UI, dashboard sharing/billing, dashboard chat,
|
|
11
11
|
and the command palette. Never describe
|
|
12
12
|
UI locations, buttons, or panels from memory — always read the relevant
|
|
@@ -39,6 +39,7 @@ Read the relevant reference file when the user's question matches a topic.
|
|
|
39
39
|
| AI Chat | references/ai-chat.md | "What can the AI do?", "How do I give context?" |
|
|
40
40
|
| Code Editor | references/code-editor.md | "How do I edit code?", "Where are my files?" |
|
|
41
41
|
| SEO Settings | references/seo-settings.md | "How do I set up SEO?", "Favicon, title, share image" |
|
|
42
|
+
| Agents | references/agents.md | "Run an agent", "Pause an agent", "Next agent run" |
|
|
42
43
|
| Schedules | references/schedules.md | "Recurring commands", "Run history", "Run now" |
|
|
43
44
|
| Webhooks | references/webhooks.md | "React to forms", "Send events to another service" |
|
|
44
45
|
| Connections | references/connections.md | "Connect a service", "Add an MCP server" |
|
|
@@ -60,6 +61,7 @@ Read the relevant reference file when the user's question matches a topic.
|
|
|
60
61
|
| Content/CMS | AI Chat, Media Library |
|
|
61
62
|
| Webhooks | Project secrets, Forms, Publishing, Agents |
|
|
62
63
|
| Connections | AI Chat, Agents, Project secrets |
|
|
64
|
+
| Agents | Connections, Project secrets, Branches |
|
|
63
65
|
| Schedules | Project secrets, Environments, Agents |
|
|
64
66
|
| Visual changes | Edit Mode (quick tweaks), AI Chat (bigger changes), Code Editor (full control) |
|
|
65
67
|
| Something went wrong | Version History, AI Chat |
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Agents
|
|
2
|
+
|
|
3
|
+
Project agents are versioned bundles from the project's repository. Studio lets project members inspect their configuration and run history, while project managers can start, stop, and resume them.
|
|
4
|
+
|
|
5
|
+
## Open an agent
|
|
6
|
+
|
|
7
|
+
1. Open the project and choose **Agents**.
|
|
8
|
+
2. Select **Agents** again to see the available bundles.
|
|
9
|
+
3. Choose an agent to open its **Runs** and **Settings** tabs.
|
|
10
|
+
|
|
11
|
+
When the agent has a live schedule, its next run appears first in **Runs**, marked **Scheduled**. The row uses **Next** for its projected ID, a relative date such as **Tomorrow at 11:00 AM**, and **—** for changes and duration until it starts. **Settings** shows the bundle's declared capabilities and trigger wiring; it is read-only because the repository remains the source of truth.
|
|
12
|
+
|
|
13
|
+
## Run, stop, or resume
|
|
14
|
+
|
|
15
|
+
Choose **Run** to start an agent whose manual trigger is live.
|
|
16
|
+
|
|
17
|
+
Choose **Stop** to pause every future trigger and stop planned or running work. Studio asks for confirmation and explains that the bundle, trigger configuration, model, capabilities, and other settings are preserved.
|
|
18
|
+
|
|
19
|
+
A stopped agent shows **Paused** in the header. **Resume** makes the same triggers live again with their previous settings.
|
|
20
|
+
|
|
21
|
+
Only project managers see Run, Stop, and Resume. Other project members can still see schedule timing, status, settings, and run history.
|
|
22
|
+
|
|
23
|
+
## Inspect runs
|
|
24
|
+
|
|
25
|
+
Open **Runs** on an agent to see only that bundle's history. Select a run to read its status, report, captured changes, and any question or review state that needs attention.
|
|
@@ -13,7 +13,7 @@ On desktop, the AI chat opens docked on the left by default. You can make it flo
|
|
|
13
13
|
|
|
14
14
|
The AI can place choices, cards, tables, images, and contextual actions directly in its reply. Optional suggestions do not interrupt the conversation.
|
|
15
15
|
|
|
16
|
-
When the AI needs an answer before it can continue, it
|
|
16
|
+
When the AI needs an answer before it can continue, it pins a form directly above the message box and waits for your response. The form stays there while you scroll the conversation; the message that asked shows **Waiting for your answer...** in its place in the history. Select **Minimize** to fold the form to one line without losing your answers, then select that line to reopen it. **Submit** sends only the completed form and leaves anything typed in the message box unsent. Sending from the message box includes any selections already made in the form with your message; with no selections, it is an ordinary reply. A form with many steps scrolls inside its own area, and its **Next** / **Submit** buttons stay in view.
|
|
17
17
|
|
|
18
18
|
## Attaching Context
|
|
19
19
|
|
|
@@ -60,7 +60,6 @@ The AI runs on credits. You can see your balance by clicking the **coin icon** n
|
|
|
60
60
|
|
|
61
61
|
Clicking it opens a breakdown showing:
|
|
62
62
|
|
|
63
|
-
- **Daily free credits** that reset each day.
|
|
64
63
|
- **Monthly credits** included with your plan.
|
|
65
64
|
- **Purchased credits** you bought separately.
|
|
66
65
|
- **Earned credits** from referrals or promotions.
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
## Credit Types
|
|
2
2
|
|
|
3
|
-
Fimo uses credits for AI-powered features. There are
|
|
3
|
+
Fimo uses credits for AI-powered features. There are three kinds:
|
|
4
4
|
|
|
5
|
-
- **
|
|
6
|
-
- **Monthly credits** -- a larger pool that comes with your plan. Resets at the start of each billing cycle.
|
|
5
|
+
- **Monthly credits** -- the pool that comes with your plan. Resets at the start of each billing cycle.
|
|
7
6
|
- **Purchased credits** -- bought with real money. These do not expire and stay in your account until you use them.
|
|
8
7
|
- **Awarded credits** -- gained through referrals or promotions. These also do not expire.
|
|
9
8
|
|
|
10
|
-
Credits are consumed in order:
|
|
9
|
+
Credits are consumed in order: monthly first, then awarded, then purchased.
|
|
11
10
|
|
|
12
11
|
## Checking Your Balance
|
|
13
12
|
|
|
@@ -16,11 +15,11 @@ Look for the **coin icon with a number** near the chat send button. That number
|
|
|
16
15
|
- Click it to open a detailed breakdown showing how many credits you have in each category.
|
|
17
16
|
- When your balance is low, opening that breakdown shows an alert-triangle warning ("No credits left" or "_N_ credits left") at the bottom.
|
|
18
17
|
|
|
19
|
-
From a linked project directory, `fimo credits` shows the same organization balance in the CLI. Its "Available now" total already includes the visible buckets
|
|
18
|
+
From a linked project directory, `fimo credits` shows the same organization balance in the CLI. Its "Available now" total already includes the visible buckets.
|
|
20
19
|
|
|
21
20
|
## Buying More Credits
|
|
22
21
|
|
|
23
|
-
Buying credits is available on
|
|
22
|
+
Buying credits is available on paid plans, since it charges the payment method already on file.
|
|
24
23
|
|
|
25
24
|
1. Click the credit display near the chat input.
|
|
26
25
|
2. Click **Buy credits**.
|
|
@@ -30,7 +29,7 @@ Buying credits is available on the **Premium** plan, since it charges the paymen
|
|
|
30
29
|
|
|
31
30
|
## Refilling Credits Automatically
|
|
32
31
|
|
|
33
|
-
Organization billing admins on
|
|
32
|
+
Organization billing admins on a paid plan can configure auto-refill from **Settings > Billing**:
|
|
34
33
|
|
|
35
34
|
1. Choose the balance threshold that should trigger a refill.
|
|
36
35
|
2. Choose the dollar amount to purchase when the balance crosses that threshold.
|
|
@@ -52,6 +51,14 @@ From there:
|
|
|
52
51
|
3. Pick a plan and complete checkout.
|
|
53
52
|
4. Your new monthly credit pool is available right away.
|
|
54
53
|
|
|
54
|
+
## Changing or leaving a paid plan
|
|
55
|
+
|
|
56
|
+
- Free to Pay as you go or Pro, and Pay as you go to Pro, use checkout and take effect after payment succeeds.
|
|
57
|
+
- Pro to Pay as you go or Free takes effect at the end of the current billing period. Billing shows the destination and effective date until then.
|
|
58
|
+
- Choosing the current plan again before that date cancels the scheduled change.
|
|
59
|
+
- Pay as you go requires an active payment method. Removing its only valid card returns the organization to Free immediately.
|
|
60
|
+
- A failed Pro renewal follows the payment-recovery flow. It never silently changes the organization to Pay as you go.
|
|
61
|
+
|
|
55
62
|
## Legacy plan transitions
|
|
56
63
|
|
|
57
64
|
Some organizations that already have Premium may see a **Plan transition**
|
|
@@ -17,7 +17,7 @@ Only project members with Full Access can see Webhooks in Settings or manage its
|
|
|
17
17
|
|
|
18
18
|
The event groups are Entries, Forms, Publish, Agents, Analytics, Media, Domains, Labels, Locales, and Environments. Webhooks belong to the project, with up to 20 configurations. Choose the Main Branch, All Branches, Production, Preview, or one custom Environment. Main Branch is the default.
|
|
19
19
|
|
|
20
|
-
Entry webhooks
|
|
20
|
+
Entry webhooks send one delivery per committed write. A bulk edit or environment merge may contain a bounded batch, and wider changes split into separately delivered batches.
|
|
21
21
|
|
|
22
22
|
## Configure the request
|
|
23
23
|
|
package/dist/cli/bundle.json
CHANGED