fimo 2.10.1 → 2.10.2-staging.2
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/skills/fimo-cli/references/assets.md +1 -23
- package/assets/skills/fimo-cli/references/content.md +1 -0
- package/assets/skills/fimo-code/references/assets.md +1 -1
- package/assets/skills/fimo-code/references/frameworks/astro.md +7 -11
- package/assets/skills/fimo-migration/references/content.md +14 -28
- package/assets/skills/fimo-migration/references/frameworks/nextjs.md +30 -42
- package/assets/skills/fimo-studio/references/cms.md +11 -37
- package/dist/cli/bundle.json +1 -1
- package/dist/cli/index.js +2 -2
- package/package.json +8 -8
- package/release.json +2 -2
- package/templates/astro/package.json +3 -3
- package/templates/nextjs/package.json +4 -4
- package/templates/react-router/package.json +5 -5
- package/templates/sveltekit/package.json +3 -3
- package/templates/vite/package.json +5 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Assets workflow (media library)
|
|
2
2
|
|
|
3
3
|
> Package contract: run `fimo skills get fimo-code --ref assets` for `FimoMedia`, `--ref ui` for rendering primitives, and load the detected framework reference for framework-specific integration.
|
|
4
|
-
>
|
|
4
|
+
> To **generate** or edit images and videos with AI, and to decide when to generate, read **`references/media.md`**.
|
|
5
5
|
|
|
6
6
|
This file covers the **CLI workflow** for media that already exists: uploading files, browsing the library, inspecting reference impact, replacing references, and removing assets safely.
|
|
7
7
|
|
|
@@ -63,28 +63,6 @@ The result preserves manifest order and reports each `sourceId` as `uploaded`
|
|
|
63
63
|
or `failed`, plus final counts. Partial failure exits non-zero. Use
|
|
64
64
|
`--concurrency <1-16>` to change the default concurrency of four.
|
|
65
65
|
|
|
66
|
-
## Generate AI media
|
|
67
|
-
|
|
68
|
-
Moved to **`references/media.md`**. Choose the task that describes the outcome:
|
|
69
|
-
|
|
70
|
-
```bash
|
|
71
|
-
fimo image generate --prompt "<prompt>"
|
|
72
|
-
fimo image edit --prompt "<instruction>" --images <asset-id-or-url>
|
|
73
|
-
fimo video generate --prompt "<prompt>"
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
Task flags come from the API. Run `fimo <namespace> <task> --help` for the current options. Fimo owns the internal generation route.
|
|
77
|
-
|
|
78
|
-
### When to prefer generation over uploads / placeholders
|
|
79
|
-
|
|
80
|
-
- Page needs a unique hero, card thumbnail, avatar, OG image, empty-state illustration.
|
|
81
|
-
- The user describes an image / video ("a calm beach at sunset") without providing a file.
|
|
82
|
-
|
|
83
|
-
### Do NOT generate when
|
|
84
|
-
|
|
85
|
-
- The user has already uploaded or referenced a specific file.
|
|
86
|
-
- The image must be a real photo of a real thing (team photos, real product shots).
|
|
87
|
-
|
|
88
66
|
## Browse the library — `fimo assets list`
|
|
89
67
|
|
|
90
68
|
```bash
|
|
@@ -31,6 +31,7 @@ fimo singles update <Type> [--locale es] (--body '<json>' | --file <path> | --st
|
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
- `--body` is always a `{"data":{...}}` envelope, also for `singles update`. Put `slug` inside `data`.
|
|
34
|
+
- `entries create` and `entries update` require exactly one of `--body '<json>'`, `--file <path>`, or `--stdin`. Files and stdin use the same `{"data":{...}}` envelope.
|
|
34
35
|
- Before you write a body, load fimo-code `content/richtext`. Rich text is Tiptap JSON (`{"type":"doc","content":[...]}`), a reference is `{"id":"<id>"}`, and media has its own shape.
|
|
35
36
|
- `get`, `update`, and `delete` take the `id` (a UUID) that `create` and `list` return. Never pass a slug as the id.
|
|
36
37
|
- `update` and `singles update` change only the top-level fields in `data`; each field you send replaces its old value. The first `singles update` for a locale creates the Single, so it needs every required field.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Assets in code
|
|
2
2
|
|
|
3
|
-
> For the CLI commands (`fimo assets upload`, `fimo image generate`,
|
|
3
|
+
> For the CLI commands, see **`fimo-cli/references/assets.md`** (`fimo assets upload`, folder management) and **`fimo-cli/references/media.md`** (`fimo image generate`, and when to generate AI images).
|
|
4
4
|
|
|
5
5
|
This file covers media fields and the Fimo image components. Image and video bytes live in the media library, never in the repository; see `SKILL.md` § Non-negotiable boundaries for the rule and its exceptions.
|
|
6
6
|
|
|
@@ -31,10 +31,9 @@ Astro site that hosts elsewhere can import `fimo` from `fimo/astro/config`
|
|
|
31
31
|
instead for the preview connector and branch env alone; the runtime
|
|
32
32
|
(`fimo/astro`, `fimo/astro/components`) always comes from `fimo`.
|
|
33
33
|
|
|
34
|
-
Compatibility:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
existing adapter until a matching server adapter is supported.
|
|
34
|
+
Compatibility: Astro 5–7, with static output on all of them. Fimo's server
|
|
35
|
+
adapter is validated on Astro 7 only: an Astro 5/6 server app keeps its own
|
|
36
|
+
adapter.
|
|
38
37
|
|
|
39
38
|
`fimo()` loads the platform script only in Fimo previews, reports location to Studio, and performs full-page navigation when Studio changes routes. With `output: 'server'` and no adapter, it also supplies Fimo's hosted server adapter; it never replaces an adapter the application already owns for another deployment target.
|
|
40
39
|
|
|
@@ -118,13 +117,10 @@ then `<Base lang={locale} seo={seo}>`. Route templates can read
|
|
|
118
117
|
`{{article.title}}`. Apply app-owned overrides before conversion so the title,
|
|
119
118
|
Open Graph and Twitter tags agree.
|
|
120
119
|
|
|
121
|
-
The example canonical
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
follows the route's rendering and caching policy.
|
|
126
|
-
|
|
127
|
-
Full field and composition contract: read `references/frameworks/seo-head.md` when changing SEO.
|
|
120
|
+
The example canonical fits a root-hosted site: keep the app's own production
|
|
121
|
+
domain, base path and trailing-slash policy. Imported config changes need sync
|
|
122
|
+
and rebuild/redeploy. Read `references/frameworks/seo-head.md` (fields,
|
|
123
|
+
canonical and `og:url`, composition) before you change SEO.
|
|
128
124
|
|
|
129
125
|
## Static and on-demand rendering
|
|
130
126
|
|
|
@@ -8,8 +8,8 @@ Model editorial content the way an editor should see it in Fimo, and keep the
|
|
|
8
8
|
source's behavior and content shape. A better model never silently redesigns the
|
|
9
9
|
site: the same routes render the same content, in the same order, with the same
|
|
10
10
|
copy. Record the source-to-Fimo mapping - source file, frontmatter key, or
|
|
11
|
-
export column -> content type, field, block, or reference - in the
|
|
12
|
-
|
|
11
|
+
export column -> content type, field, block, or reference - in the content plan
|
|
12
|
+
(`.fimo/migration/content-plan.md`).
|
|
13
13
|
|
|
14
14
|
- **Blocks first.** Repeatable or structured editorial sections (hero, feature
|
|
15
15
|
grid, FAQ, testimonial list, pricing tiers, a page's section stack) become a
|
|
@@ -71,10 +71,9 @@ hardcoded after the worker has established that editors should manage it.
|
|
|
71
71
|
|
|
72
72
|
For each candidate:
|
|
73
73
|
|
|
74
|
-
- name it as a singular content type with a plural label (`
|
|
75
|
-
`
|
|
76
|
-
`
|
|
77
|
-
generic page route (no `EnBe`, no `Page`).
|
|
74
|
+
- name it as a singular content type with a plural label (`location`/Locations,
|
|
75
|
+
`newsPost`/News), never after a locale code or a generic page route (no
|
|
76
|
+
`EnBe`, no `Page`).
|
|
78
77
|
- infer fields from the item shape using the Field Mapping below, while keeping
|
|
79
78
|
source-specific constraints and rationale in the plain-text migration plan.
|
|
80
79
|
- push the schema, then create one entry per item.
|
|
@@ -95,27 +94,14 @@ schema merely because a shape repeats.
|
|
|
95
94
|
## Field Mapping
|
|
96
95
|
|
|
97
96
|
Choose from source semantics and the editing experience, not the source
|
|
98
|
-
container type
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
- Editor-authored prose, Markdown, HTML, or other portable formatted content ->
|
|
102
|
-
`richtext`; convert it to the current Fimo richtext contract and render it
|
|
103
|
-
with the corresponding Fimo primitive.
|
|
104
|
-
- Repeatable editor-authored structures such as FAQs, cards, features, pricing
|
|
105
|
-
items, testimonials, and page sections -> `blocks`, with nested richtext,
|
|
106
|
-
media, or references where their semantics require them.
|
|
107
|
-
- Reusable, independently editable categories, tags, authors, and similar
|
|
108
|
-
concepts -> `reference`, or blocks containing references, only when stable
|
|
109
|
-
source records or clear independent management prove the relationship.
|
|
110
|
-
- Opaque or unconstrained metadata, third-party payloads, and intentionally
|
|
111
|
-
non-editor-authored data -> generic `json`, with a concise rationale in the
|
|
112
|
-
content plan and worker report.
|
|
113
|
-
|
|
114
|
-
Then use source headers, values, and repeated patterns:
|
|
97
|
+
container type: an object or array is not by itself a reason to use `json`.
|
|
98
|
+
Use source headers, values, and repeated patterns:
|
|
115
99
|
|
|
116
100
|
- title/name/heading -> `string`
|
|
117
101
|
- slug/path/url/permalink -> `string`
|
|
118
|
-
- body/content/post/html/description -> `richtext` when editor-authored prose
|
|
102
|
+
- body/content/post/html/description -> `richtext` when editor-authored prose;
|
|
103
|
+
convert it to the current Fimo richtext contract and render it with the
|
|
104
|
+
matching Fimo primitive
|
|
119
105
|
- excerpt/summary/dek -> `text`
|
|
120
106
|
- image/photo/thumbnail/media/asset/file -> `media`, carrying the source alt on
|
|
121
107
|
the media value; never add a separate alt field (`references/media.md`)
|
|
@@ -127,9 +113,10 @@ Then use source headers, values, and repeated patterns:
|
|
|
127
113
|
- repeated section/section stack/nested item list -> `blocks` with one named
|
|
128
114
|
variant per distinct section shape
|
|
129
115
|
- category/tag/author/related item/shared entity -> `reference` to the content
|
|
130
|
-
type that models it
|
|
131
|
-
|
|
132
|
-
|
|
116
|
+
type that models it, only when stable source records or clear independent
|
|
117
|
+
management prove the relationship (see References below)
|
|
118
|
+
- opaque metadata, third-party payloads, and data no editor writes -> `json`,
|
|
119
|
+
with the reason in the content plan and the worker report
|
|
133
120
|
|
|
134
121
|
Keep media as `media`, including inside blocks, and preserve proven relationship
|
|
135
122
|
targets, direction, and cardinality. Do not turn a fixed enum, application-owned
|
|
@@ -145,7 +132,6 @@ For every content type:
|
|
|
145
132
|
- preserve slugs
|
|
146
133
|
- preserve SEO title, description, share image, canonical URL when available
|
|
147
134
|
- preserve publish status and dates
|
|
148
|
-
- preserve authors, categories, and tags as references to their content types
|
|
149
135
|
- preserve each media value's source alt text on the media value itself
|
|
150
136
|
- convert rich HTML to the current Fimo rich text representation
|
|
151
137
|
- keep source count, generated count, imported count, and skipped count in the
|
|
@@ -5,27 +5,25 @@ user explicitly chose Next.js as a conversion target. It describes what each
|
|
|
5
5
|
worker must read in that source; use the target project's `fimo-code`
|
|
6
6
|
framework guidance when implementing the migrated application.
|
|
7
7
|
|
|
8
|
-
A Next.js source stays
|
|
9
|
-
`next.config.*`, middleware, and runtime configuration
|
|
10
|
-
to
|
|
11
|
-
detection is ambiguous, stop and
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
##
|
|
15
|
-
|
|
16
|
-
When the
|
|
17
|
-
|
|
18
|
-
`
|
|
19
|
-
`fimo migrate init` actually created, keeps that single tree, and rebuilds the
|
|
8
|
+
A Next.js source stays Next.js: keep the detected router flavor,
|
|
9
|
+
`next.config.*`, middleware, and runtime configuration, and never convert the
|
|
10
|
+
app to simplify the migration. A conversion, to or from Next.js, happens only on
|
|
11
|
+
the owner's explicit choice. When framework detection is ambiguous, stop and
|
|
12
|
+
ask.
|
|
13
|
+
|
|
14
|
+
## Conversions
|
|
15
|
+
|
|
16
|
+
When the owner chose a conversion, the framework conversion worker in
|
|
17
|
+
`references/workers.md` owns the target. Into Next.js, it inspects the app tree
|
|
18
|
+
that `fimo migrate init` created, keeps that single tree, and rebuilds the
|
|
20
19
|
source routes, 404, redirects, headers, middleware, sitemap/robots/OG
|
|
21
|
-
structure, and locale routing
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
structure, and locale routing inside it. It ports the source's own loaders,
|
|
21
|
+
APIs, hardcoded content, and integrations unchanged; Fimo wiring comes later
|
|
22
|
+
through the content workers. The conversion passes the framework gate before
|
|
23
|
+
content data and code workers start.
|
|
25
24
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
claim only when its source evidence supports it.
|
|
25
|
+
Package versions suggest likely shapes, not proof: projects backport, customize,
|
|
26
|
+
and combine conventions, so accept a claim only when source evidence supports it.
|
|
29
27
|
|
|
30
28
|
## Runtime and routes
|
|
31
29
|
|
|
@@ -46,16 +44,10 @@ claim only when its source evidence supports it.
|
|
|
46
44
|
|
|
47
45
|
Load the target project's `fimo-code` `frameworks/next` and
|
|
48
46
|
`frameworks/hosting` references before implementing. Use normal Next.js
|
|
49
|
-
equivalents
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
- `not-found` and `notFound()` for framework-owned 404 behavior;
|
|
54
|
-
- metadata APIs and OG/Twitter image routes for SEO and social output;
|
|
55
|
-
- `redirects()`, `rewrites()`, `headers()`, middleware, or response headers for
|
|
56
|
-
rules that the chosen runtime actually executes; and
|
|
57
|
-
- Next.js fetch/cache/revalidation APIs only when freshness is an observable
|
|
58
|
-
requirement rather than copied provider machinery.
|
|
47
|
+
equivalents (route handlers, `notFound()`, metadata APIs and OG image routes,
|
|
48
|
+
`redirects()`/`rewrites()`/`headers()`, middleware), and cache/revalidation APIs
|
|
49
|
+
only when freshness is an observable requirement rather than copied provider
|
|
50
|
+
machinery.
|
|
59
51
|
|
|
60
52
|
These are application-level options, not guarantees that Fimo hosting supports
|
|
61
53
|
every header, redirect, route handler, cache mode, edge API, or middleware
|
|
@@ -104,11 +96,8 @@ browser.
|
|
|
104
96
|
Do not create or edit `.env` / `.env.local` for a linked project's Fimo
|
|
105
97
|
connection. Run the project's normal `next dev`, `next build`, and `next start`
|
|
106
98
|
commands, then exercise at least one server read and one client-side data read.
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
Keep the generated `FimoProvider` and `withFimo` integration. It supports
|
|
111
|
-
rendering Fimo Preview in Fimo Studio and enabling Edit Mode.
|
|
99
|
+
Keep the generated `FimoProvider` and `withFimo` integration: Fimo Preview in
|
|
100
|
+
Studio and Edit Mode need it.
|
|
112
101
|
|
|
113
102
|
## Locales
|
|
114
103
|
|
|
@@ -135,11 +124,10 @@ target module in `affectedFiles` before code workers start. Nested frontmatter,
|
|
|
135
124
|
mixed locale conventions, missing local assets, and unproven route references
|
|
136
125
|
need a decision from the source, not a guess.
|
|
137
126
|
|
|
138
|
-
Map what the source proves
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
than using a filename or extension as an automatic classification.
|
|
127
|
+
Map what the source proves, from the consuming route and data shape, never from a
|
|
128
|
+
filename or extension alone: a directory of Markdown files may be one
|
|
129
|
+
collection, locale-suffixed files may be locale payloads of one document, and a
|
|
130
|
+
`public/` reference may become a media upload.
|
|
143
131
|
|
|
144
132
|
Preserve how that content reaches the page. Local Markdown rendered during a
|
|
145
133
|
Next build stays a Server Component or static-generation read after it moves to
|
|
@@ -162,9 +150,9 @@ observable order explicitly. The matching data batch count must equal the
|
|
|
162
150
|
source item count. A schema and query with zero planned entry items is an
|
|
163
151
|
incomplete handoff.
|
|
164
152
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
153
|
+
A read-only extractor follows `workers/content-planner` (Optional extraction
|
|
154
|
+
helpers); a general Next.js AST parser is not required. Record the mapping in
|
|
155
|
+
the content plan and the worker report.
|
|
168
156
|
|
|
169
157
|
Content that is not file-backed follows the content planner's discovery branches
|
|
170
158
|
in `references/workers.md`; preserve every provider gap as unresolved evidence.
|
|
@@ -1,27 +1,20 @@
|
|
|
1
1
|
## How the CMS Works
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Content (the database icon) holds the site's structured content:
|
|
4
4
|
|
|
5
|
-
- **Pages**
|
|
6
|
-
- **Collections** hold
|
|
7
|
-
- **Singles** hold one set of content, such as Site settings
|
|
8
|
-
- **
|
|
9
|
-
|
|
10
|
-
Both use schemas to define their fields. The difference is whether you edit one set of content or manage a repeatable list.
|
|
5
|
+
- **Pages** group the Labels, Singles, and Collection queries each route declares.
|
|
6
|
+
- **Collections** hold many entries of one kind, such as Blog posts or Testimonials. Open one to search, sort, create, and manage its entries.
|
|
7
|
+
- **Singles** hold one set of content, such as Site settings or a Homepage. Open one and edit it directly.
|
|
8
|
+
- **Forms** lists the submissions collected by the site's forms: open and delete them, or export them as CSV.
|
|
9
|
+
- **Labels & Text** is where you edit the site's interface copy as key-and-value rows, not translated copies of entries.
|
|
11
10
|
|
|
12
11
|
Pages is still a pre-release Studio surface. It is visible in development and staging, but hidden in production until the public release. If Pages is absent, use Collections, Singles, and Labels & Text normally.
|
|
13
12
|
|
|
14
13
|
## Browsing Your Content
|
|
15
14
|
|
|
16
|
-
1. Open **Content**
|
|
17
|
-
2.
|
|
18
|
-
3.
|
|
19
|
-
4. Pages shows the site's route tree. Collections and Singles show cards for the schemas in that group.
|
|
20
|
-
5. Select a page to edit its declared sources together. For a dynamic route, choose the concrete entry from the header selector.
|
|
21
|
-
6. Click a Collection to see its entries, then click an entry to edit it.
|
|
22
|
-
7. Click a Single to edit it directly.
|
|
23
|
-
|
|
24
|
-
Collection cards show their entry count. Single cards are labeled **Single** instead because they always represent one set of content.
|
|
15
|
+
1. Open **Content** and choose **Pages**, **Collections**, **Singles**, **Forms**, or **Labels & Text** in the left sidebar. Hover over or focus the info icon beside any item for a short explanation.
|
|
16
|
+
2. Pages shows the site's route tree. Select a page to edit its declared sources together; for a dynamic route, choose the concrete entry from the header selector.
|
|
17
|
+
3. Collections and Singles show cards for their schemas. Collection cards show their entry count; Single cards are labeled **Single**.
|
|
25
18
|
|
|
26
19
|
## Editing by Page
|
|
27
20
|
|
|
@@ -38,11 +31,7 @@ A route with several parameters, such as `/shop/:category/:product`, is chosen l
|
|
|
38
31
|
|
|
39
32
|
## Editing a Single
|
|
40
33
|
|
|
41
|
-
|
|
42
|
-
2. Select the Single you want, such as Site settings.
|
|
43
|
-
3. Update its fields.
|
|
44
|
-
|
|
45
|
-
Changes save automatically. A Single has no entry list, create action, bulk actions, or delete action because it always represents the same set of content.
|
|
34
|
+
Open **Content → Singles**, select the Single (such as Site settings), and update its fields. Changes save automatically. A Single has no entry list, create action, bulk actions, or delete action.
|
|
46
35
|
|
|
47
36
|
## Navigating the Entry List
|
|
48
37
|
|
|
@@ -110,19 +99,4 @@ Bulk operations are available for Collections, not Singles.
|
|
|
110
99
|
|
|
111
100
|
## Working with AI
|
|
112
101
|
|
|
113
|
-
The AI chat can
|
|
114
|
-
|
|
115
|
-
- Ask the AI to **create a Single or Collection** (for example, "Create a Site settings Single" or "Create a Testimonials Collection with name, quote, and photo fields").
|
|
116
|
-
- Ask it to **populate entries** (for example, "Add 5 sample blog posts about web design").
|
|
117
|
-
- Use **@** in the chat to reference specific content when discussing changes.
|
|
118
|
-
- Ask the AI to **wire content to a page** so entries display on your site automatically.
|
|
119
|
-
|
|
120
|
-
## Key Concepts
|
|
121
|
-
|
|
122
|
-
- **Collections** are best for repeatable content. Open one to search, sort, create, and manage its entries.
|
|
123
|
-
- **Singles** are best for one-off content. Open one and edit it directly.
|
|
124
|
-
- **Pages** organize existing labels and entries around the structure of the site.
|
|
125
|
-
- **Page sources organize usage, not entry membership.** A Collection query decides which reusable entries the Pages workspace shows; the entries remain available under Collections.
|
|
126
|
-
- **Forms tab**: View and manage form submissions collected from your site's forms.
|
|
127
|
-
- **Labels & Text tab**: Edit your site's UI labels and static text strings as key-and-value rows. This is for your site's interface copy, not for translated copies of collection entries.
|
|
128
|
-
- **Search and sort**: Use the search bar to filter entries and the sort dropdown to order them quickly.
|
|
102
|
+
The AI chat can create a Single or Collection ("Create a Testimonials Collection with name, quote, and photo fields"), add entries ("Add 5 sample blog posts about web design"), and wire content to a page so entries display on the site. Use **@** in the chat to reference specific content.
|
package/dist/cli/bundle.json
CHANGED
package/dist/cli/index.js
CHANGED
|
@@ -2501,7 +2501,7 @@ ${failure.stderr}`});break}}__name(emitPushFailure,"emitPushFailure");function e
|
|
|
2501
2501
|
Purchase: ${formatPrice(pricing.price)} \xD7 ${effectiveYears} year${effectiveYears===1?"":"s"} = ${formatPrice(totalCents)}
|
|
2502
2502
|
Renewal: ${formatPrice(pricing.renewalPrice)}/year${autoRenew===!1?" (auto-renew off)":" (auto-renews)"}`);let confirmed=await ot2({message:`Create a checkout invoice for ${domain}?`,initialValue:!1});if(q(confirmed)||!confirmed){ui.info({command:"domains buy",message:"Cancelled."});return}}let purchased;try{purchased=await fimo.execute("registeredDomains.purchase",{organizationId,domain,years:effectiveYears,autoRenew})}catch(err){rethrowCliAuthError(err);let featureMsg=featureDisabledMessage(err);if(featureMsg){ui.error({command:"domains buy",code:"DOMAIN_PURCHASE_DISABLED",message:featureMsg});return}if(err instanceof ApiRequestError){if(err.status===403){ui.error({command:"domains buy",code:"PURCHASE_FORBIDDEN",message:"You don't have permission to buy domains for this organization.",hint:"Org admins only."});return}ui.error({command:"domains buy",code:"PURCHASE_FAILED",message:`Purchase failed: ${err.detail}`});return}throw err}ui.result({command:"domains buy",data:purchased,render:__name(()=>{let lines=[];return lines.push(""),lines.push(`Invoice created for ${purchased.domain} (${formatPrice(purchased.price)}).`),lines.push("Pay to complete registration:"),lines.push(""),lines.push(` ${purchased.checkoutUrl??"(checkout URL pending \u2014 refresh in a moment)"}`),lines.push(""),lines.push("No money moves until you complete payment in the browser."),lines.push(`Once paid, ${purchased.domain} registers automatically and shows up in \`fimo domains owned\`.`),lines.join(`
|
|
2503
2503
|
`)},"render")}),options.open&&purchased.checkoutUrl&&await open_default(purchased.checkoutUrl).catch(()=>{});let{enabled:waitEnabled,timeoutMs}=parseWait(options,!1);waitEnabled&&await pollPurchasePayment(fimo,organizationId,purchased,timeoutMs)}__name(domainsBuyCommand,"domainsBuyCommand");async function pollPurchasePayment(fimo,organizationId,initial,timeoutMs){let start=Date.now(),sp=spinner(`Waiting for payment (status: ${initial.status})`),current=initial;for(;Date.now()-start<timeoutMs;){if(current.status==="owned")return sp.succeed(`Registered \u2014 ${current.domain} is now yours.`),current;if(current.status==="registration_failed"||current.status==="payment_failed")return sp.fail(`${current.status==="payment_failed"?"Payment":"Registration"} failed for ${current.domain}.`),current;await new Promise(resolve10=>setTimeout(resolve10,5e3));try{current=await fimo.execute("registeredDomains.refreshPayment",{organizationId,domainId:current.id}),sp.update(`Waiting (status: ${current.status})`)}catch(err){return rethrowCliAuthError(err,()=>sp.fail("Authentication required")),sp.fail(`Refresh failed: ${err instanceof Error?err.message:String(err)}`),current}}return sp.fail("Timed out. Run `fimo domains owned` later to check status."),current}__name(pollPurchasePayment,"pollPurchasePayment");async function domainsOwnedCommand(options){let cfg=loadConfig(),fimo=createCliFimoClient(cfg),organizationId=resolveOrgId(options),domains2;try{domains2=await fimo.execute("registeredDomains.list",{organizationId})}catch(err){rethrowCliAuthError(err);let featureMsg=featureDisabledMessage(err);if(featureMsg){ui.error({command:"domains owned",code:"DOMAIN_PURCHASE_DISABLED",message:featureMsg});return}if(err instanceof ApiRequestError&&err.status===403){ui.error({command:"domains owned",code:"OWNED_DOMAINS_FORBIDDEN",message:"You don't have access to this organization's domains.",hint:"Org admins only."});return}throw err}let statusFilter=options.status?.split(",").map(s=>s.trim().toLowerCase()).filter(s=>s.length>0),limit=options.limit?parseInt(options.limit,10):null,filtered=domains2;if(statusFilter&&statusFilter.length>0&&(filtered=filtered.filter(d3=>statusFilter.includes(d3.status.toLowerCase()))),limit!==null&&Number.isFinite(limit)&&limit>0&&(filtered=filtered.slice(0,limit)),filtered.length===0){ui.info({command:"domains owned",message:"No domains registered through Fimo yet.",hint:"Try `fimo domains search <keyword>`."});return}ui.result({command:"domains owned",data:{domains:filtered,total:filtered.length},render:__name(()=>{let nameW=Math.max(8,...filtered.map(d3=>d3.domain.length)),statusW=Math.max(8,...filtered.map(d3=>d3.status.length)),lines=[];lines.push(` ${pad("DOMAIN",nameW)} ${pad("STATUS",statusW)} EXPIRES`);for(let d3 of filtered){let expires=d3.expirationDate?new Date(d3.expirationDate).toISOString().slice(0,10):"\u2014";lines.push(` ${pad(d3.domain,nameW)} ${pad(d3.status,statusW)} ${expires}`)}return lines.join(`
|
|
2504
|
-
`)},"render")})}__name(domainsOwnedCommand,"domainsOwnedCommand");init_dist();init_config();init_sdk_transport();init_project_context();init_project2();import fs28 from"node:fs";import path27 from"node:path";function selectedInputSources(options,inlineFlag){return[options.body!==void 0?inlineFlag:void 0,options.file?"--file":void 0,options.stdin?"--stdin":void 0].filter(source=>!!source)}__name(selectedInputSources,"selectedInputSources");async function readContentInputSource(options,createError,inlineFlag="--body"){if(selectedInputSources(options,inlineFlag).length!==1)throw createError(`Pass exactly one of ${inlineFlag}, --file, or --stdin.`);if(options.body!==void 0)return options.body;if(options.file){let filePath=path27.resolve(resolveProjectCwd(options.cwd),options.file);try{return fs28.readFileSync(filePath,"utf8")}catch(error){throw createError(error instanceof Error?error.message:`Could not read ${filePath}.`)}}if(process.stdin.isTTY)throw createError("Pipe input to the command when using --stdin.");let chunks=[];for await(let chunk of process.stdin)chunks.push(Buffer.isBuffer(chunk)?chunk:Buffer.from(chunk));return Buffer.concat(chunks).toString("utf8")}__name(readContentInputSource,"readContentInputSource");function renderPrettyJson5(data){return JSON.stringify(data,null,2)}__name(renderPrettyJson5,"renderPrettyJson");var EntriesInputError=class extends Error{static{__name(this,"EntriesInputError")}constructor(message){super(message),this.name="EntriesInputError"}};function reportSingleContentTypeError(command,error){return!(error instanceof ApiRequestError)||error.code!=="single_content_type"?!1:(ui.error({command,code:"SINGLE_CONTENT_TYPE",message:"This content type is a Single. Use `fimo singles update` to create or update it."}),!0)}__name(reportSingleContentTypeError,"reportSingleContentTypeError");var DEFAULT_BULK_CHUNK_SIZE=100,MAX_BULK_CHUNK_SIZE=1e3;function parseJsonObject(value){let parsed=JSON.parse(value);if(!parsed||typeof parsed!="object"||Array.isArray(parsed))throw new Error("Expected a JSON object");return parsed}__name(parseJsonObject,"parseJsonObject");function parseJsonArray(value){let parsed;try{parsed=JSON.parse(value)}catch(error){throw new EntriesInputError(error instanceof Error?`Invalid JSON: ${error.message}`:"Invalid JSON.")}if(!Array.isArray(parsed))throw new EntriesInputError("Expected a JSON array.");return parsed}__name(parseJsonArray,"parseJsonArray");function parseChunkSize(value){if(value===void 0)return DEFAULT_BULK_CHUNK_SIZE;let size=Number(value);if(!Number.isInteger(size)||size<1||size>MAX_BULK_CHUNK_SIZE)throw new EntriesInputError(`--chunk-size must be an integer from 1 to ${MAX_BULK_CHUNK_SIZE}.`);return size}__name(parseChunkSize,"parseChunkSize");function chunksOf(items,size){let chunks=[];for(let offset=0;offset<items.length;offset+=size)chunks.push(items.slice(offset,offset+size));return chunks}__name(chunksOf,"chunksOf");function parseEntryInput(value,index){if(!value||typeof value!="object"||Array.isArray(value))throw new EntriesInputError(`Entry ${index+1} must be a JSON object.`);let input=value;if(!input.data||typeof input.data!="object"||Array.isArray(input.data))throw new EntriesInputError(`Entry ${index+1} must include a data object.`);return input}__name(parseEntryInput,"parseEntryInput");function identityValue(input,field,index){let value=field==="slug"?input.data.slug??input.data[field]:input.data[field];if(typeof value!="string"||value.length===0)throw new EntriesInputError(`Entry ${index+1} needs a non-empty data.${field} for --upsert-by ${field}.`);return value}__name(identityValue,"identityValue");function identityKey(value,locale){return`${locale??""}\0${value}`}__name(identityKey,"identityKey");async function listEntriesByIdentity(content2,projectId2,typeName,field,inputs){let byLocale=new Map;for(let[index,input]of inputs.entries()){let values=byLocale.get(input.locale)??new Set;values.add(identityValue(input,field,index)),byLocale.set(input.locale,values)}let found=new Map;for(let[locale,values]of byLocale){let result=await content2.listEntries(projectId2,typeName,{limit:"100",where:JSON.stringify({[field]:{$in:[...values]}}),fields:`id,documentId,${field},locale`,...locale?{locale}:{}});if(result.meta.hasMore)throw new EntriesInputError(`More than 100 ${typeName} entries matched this ${field} batch; reduce --chunk-size.`);for(let entry of result.data){let value=entry[field];if(typeof value!="string")continue;let key=identityKey(value,locale);found.set(key,[...found.get(key)??[],entry])}}return found}__name(listEntriesByIdentity,"listEntriesByIdentity");async function createWithReconciliation(fimo,content2,projectId2,branch,typeName,field,inputs){let pending=inputs,created=0,reconciled=0;for(let attempt=0;attempt<2&&pending.length>0;attempt+=1)try{let result=await fimo.execute("entries.bulkCreate",{projectId:projectId2,branch,typeName,entries:pending});created+=result.meta.created,pending=[]}catch(error){if(!(error instanceof ApiRequestError)||error.status!==504)throw error;let existing=await listEntriesByIdentity(content2,projectId2,typeName,field,pending),absent=pending.filter((input,index)=>{let key=identityKey(identityValue(input,field,index),input.locale);return(existing.get(key)?.length??0)===0});reconciled+=pending.length-absent.length,pending=absent}if(pending.length>0)throw new EntriesInputError(`${pending.length} entries remain absent after reconciling an ambiguous 504; rerun the same upsert input safely.`);return{created,reconciled}}__name(createWithReconciliation,"createWithReconciliation");async function upsertChunk(fimo,content2,projectId2,branch,typeName,field,inputs,chunk,identityCounts){let existing=await listEntriesByIdentity(content2,projectId2,typeName,field,inputs),creates=[],updates=[],conflicts=0;for(let[index,input]of inputs.entries()){let key=identityKey(identityValue(input,field,index),input.locale),matches=existing.get(key)??[];if((identityCounts.get(key)??0)>1||matches.length>1){conflicts+=1;continue}matches.length===1?updates.push({id:matches[0].documentId,body:input}):creates.push(input)}let updated=0;if(updates.length>0)try{let result=await fimo.execute("entries.bulkUpdate",{projectId:projectId2,branch,typeName,selection:{updates}});updated=result.meta.updated,conflicts+=result.meta.missing.length}catch(error){throw!(error instanceof ApiRequestError)||error.status!==504?error:(await listEntriesByIdentity(content2,projectId2,typeName,field,inputs),new EntriesInputError(`${updates.length} updates had an ambiguous 504; identities were reread without replay. Rerun the same upsert input safely.`))}let createResult=await createWithReconciliation(fimo,content2,projectId2,branch,typeName,field,creates);return{chunk,input:inputs.length,created:createResult.created,updated,conflicts,reconciled:createResult.reconciled}}__name(upsertChunk,"upsertChunk");function parseBulkJsonObject(value){try{return parseJsonObject(value)}catch(error){throw new EntriesInputError(error instanceof Error?error.message:"Expected a JSON object.")}}__name(parseBulkJsonObject,"parseBulkJsonObject");function parseIds(value){let ids=[...new Set(value.split(",").map(id=>id.trim()).filter(Boolean))];if(ids.length===0)throw new EntriesInputError("--ids must include at least one ID.");return ids}__name(parseIds,"parseIds");function missingIdWarnings(result,action){let{missing}=result.meta;if(missing.length===0)return[];let changed=action==="updated"?result.meta.updated:result.meta.deleted,ids=missing.join(", ");if(changed===0)return missing.length===1?[`No entries were ${action}; the requested ID was not found: ${ids}.`]:[`No entries were ${action}; all ${missing.length} requested IDs were not found: ${ids}.`];let subject=missing.length===1?"ID was":"IDs were";return[`${missing.length} requested ${subject} not found: ${ids}.`]}__name(missingIdWarnings,"missingIdWarnings");function addDefinedMetadata(body,metadata){for(let[key,value]of Object.entries(metadata))value!==void 0&&(body[key]=value);return body}__name(addDefinedMetadata,"addDefinedMetadata");async function entriesListCommand(typeName,options,cmd){let pagination=parsePaginationOptions(options,{defaultLimit:20,maxLimit:100,legacyCursor:"offset"}),{ctx}=await bootstrapProjectCommand(options,cmd),content2=createContentTransferService(loadConfig(),ctx.branch);await requireOperation("cms.list",{projectId:ctx.projectId,branch:ctx.branch});let params={};params.limit=String(pagination.limit),options.search&&(params.search=options.search),options.sort&&(params.sort=options.sort),!options.sort&&options.sortBy&&(params.sortBy=options.sortBy),!options.sort&&options.sortDirection&&(params.sortDirection=options.sortDirection),options.where&&(JSON.parse(options.where),params.where=options.where),options.fields&&(params.fields=options.fields),options.populate&&(params.populate=options.populate),options.locale&&(params.locale=options.locale);let initialOffset=parseCursorNumber(pagination.cursor,{defaultValue:0,minimum:0}),page=await collectPaginatedItems({cursor:pagination.cursor,allPages:pagination.allPages,fetchPage:__name(async cursor=>{let offset=parseCursorNumber(cursor,{defaultValue:0,minimum:0});return toOffsetPaginationPage(await content2.listEntries(ctx.projectId,typeName,{...params,offset:String(offset)}))},"fetchPage")}),result={data:page.items,items:page.items,nextCursor:page.nextCursor,total:page.total,meta:{...page.meta,offset:initialOffset,hasMore:page.nextCursor!==null}},trailingArgs=paginationTrailingArgs(options,ctx.branch);ui.result({command:"entries list",data:result,render:__name(()=>renderPrettyJson5(result),"render"),...page.nextCursor?{hint:buildPaginationHint(["fimo","entries","list",typeName],{cursor:page.nextCursor,limit:pagination.limit,trailingArgs})}:{}})}__name(entriesListCommand,"entriesListCommand");function paginationTrailingArgs(options,branch){return[["--branch",branch],["--search",options.search],["--sort",options.sort],["--sort-by",options.sortBy],["--sort-direction",options.sortDirection],["--where",options.where],["--fields",options.fields],["--populate",options.populate],["--locale",options.locale],["--cwd",options.cwd]].flatMap(([flag2,value])=>value===void 0?[]:[flag2,value])}__name(paginationTrailingArgs,"paginationTrailingArgs");async function entriesGetCommand(typeName,id,options,cmd){let{ctx,fimo}=await bootstrapProjectCommand(options,cmd);await requireOperation("cms.get",{projectId:ctx.projectId,branch:ctx.branch});let{data:result}=await fimo.execute("entries.get",{projectId:ctx.projectId,branch:ctx.branch,typeName,id,locale:options.locale,populate:options.populate?[options.populate]:void 0});ui.result({command:"entries get",data:result,render:__name(()=>renderPrettyJson5(result),"render")})}__name(entriesGetCommand,"entriesGetCommand");async function entriesCreateCommand(typeName,options,cmd){let{ctx,fimo}=await bootstrapProjectCommand(options,cmd,{refuseReadOnly:!0});await requireOperation("cms.create",{projectId:ctx.projectId,branch:ctx.branch});let input=addDefinedMetadata(parseJsonObject(options.body),{locale:options.locale,documentId:options.documentId}),{data:result}=await fimo.execute("entries.create",{projectId:ctx.projectId,branch:ctx.branch,typeName,...input});ui.result({command:"entries create",data:result,render:__name(()=>renderPrettyJson5(result),"render")})}__name(entriesCreateCommand,"entriesCreateCommand");async function entriesUpdateCommand(typeName,id,options,cmd){let{ctx,fimo}=await bootstrapProjectCommand(options,cmd,{refuseReadOnly:!0});await requireOperation("cms.update",{projectId:ctx.projectId,branch:ctx.branch});let data=parseJsonObject(options.body),result=await fimo.execute("entries.updateFields",{projectId:ctx.projectId,branch:ctx.branch,typeName,id,locale:options.locale,fields:data});ui.result({command:"entries update",data:result,render:__name(()=>renderPrettyJson5(result),"render")})}__name(entriesUpdateCommand,"entriesUpdateCommand");async function entriesDeleteCommand(typeName,id,options,cmd){let{ctx,fimo}=await bootstrapProjectCommand(options,cmd,{refuseReadOnly:!0});await requireOperation("cms.delete",{projectId:ctx.projectId,branch:ctx.branch});let{data:result}=await fimo.execute("entries.delete",{projectId:ctx.projectId,branch:ctx.branch,typeName,id,locale:options.locale});ui.result({command:"entries delete",data:result,render:__name(()=>renderPrettyJson5(result),"render")})}__name(entriesDeleteCommand,"entriesDeleteCommand");async function entriesQueryCommand(options,cmd){let{ctx,fimo}=await bootstrapProjectCommand(options,cmd);await requireOperation("cms.query",{projectId:ctx.projectId,branch:ctx.branch});let sql=await readContentInputSource({...options,body:options.sql},message=>new EntriesInputError(message),"--sql"),result=await fimo.execute("entries.querySql",{projectId:ctx.projectId,branch:ctx.branch,sql});ui.result({command:"entries query",data:result,render:__name(()=>renderPrettyJson5(result),"render")})}__name(entriesQueryCommand,"entriesQueryCommand");async function entriesBulkCreateCommand(typeName,options,cmd){let{ctx,fimo}=await bootstrapProjectCommand(options,cmd,{refuseReadOnly:!0}),content2=createContentTransferService(loadConfig(),ctx.branch);await requireOperation("cms.bulk_create",{projectId:ctx.projectId,branch:ctx.branch}),options.upsertBy&&(await requireOperation("cms.list",{projectId:ctx.projectId,branch:ctx.branch}),await requireOperation("cms.bulk_update",{projectId:ctx.projectId,branch:ctx.branch}));let entries2=parseJsonArray(await readContentInputSource(options,message=>new EntriesInputError(message))),chunkSize=parseChunkSize(options.chunkSize);if(entries2.length===0){if(options.upsertBy)throw new EntriesInputError("Upsert input must be a non-empty JSON array.");let result2=await fimo.execute("entries.bulkCreate",{projectId:ctx.projectId,branch:ctx.branch,typeName,entries:entries2});ui.result({command:"entries bulk-create",data:result2,render:__name(()=>renderPrettyJson5(result2),"render")});return}let upsertInputs=options.upsertBy?entries2.map((entry,index)=>parseEntryInput(entry,index)):[],identityCounts=new Map;if(options.upsertBy)for(let[index,input]of upsertInputs.entries()){let key=identityKey(identityValue(input,options.upsertBy,index),input.locale);identityCounts.set(key,(identityCounts.get(key)??0)+1)}let chunks=chunksOf(options.upsertBy?upsertInputs:entries2,chunkSize),receipts=[],data=[];for(let[index,chunk]of chunks.entries()){if(options.upsertBy){receipts.push(await upsertChunk(fimo,content2,ctx.projectId,ctx.branch,typeName,options.upsertBy,chunk,index+1,identityCounts));continue}let result2=await fimo.execute("entries.bulkCreate",{projectId:ctx.projectId,branch:ctx.branch,typeName,entries:chunk});data.push(...result2.data),receipts.push({chunk:index+1,input:chunk.length,created:result2.meta.created,updated:0,conflicts:0,reconciled:0})}let result={data,meta:{created:receipts.reduce((sum,receipt)=>sum+receipt.created,0),updated:receipts.reduce((sum,receipt)=>sum+receipt.updated,0),conflicts:receipts.reduce((sum,receipt)=>sum+receipt.conflicts,0),chunks:receipts}};ui.result({command:"entries bulk-create",data:result,render:__name(()=>renderPrettyJson5(result),"render")})}__name(entriesBulkCreateCommand,"entriesBulkCreateCommand");function withBulkLocale(body,locale,source){if(locale===void 0||!body||typeof body!="object"||Array.isArray(body))return body;let bodyLocale=body.locale;if(bodyLocale!==void 0&&bodyLocale!==locale)throw new EntriesInputError(`--locale ${locale} disagrees with "locale": ${JSON.stringify(bodyLocale)} in ${source}. Pass the locale once.`);return{...body,locale}}__name(withBulkLocale,"withBulkLocale");async function entriesBulkUpdateCommand(typeName,options,cmd){let{ctx,fimo}=await bootstrapProjectCommand(options,cmd,{refuseReadOnly:!0});await requireOperation("cms.bulk_update",{projectId:ctx.projectId,branch:ctx.branch});let usesBatchInput=!!(options.file||options.stdin),selection,body;if(usesBatchInput){if(options.body!==void 0||options.ids||options.where)throw new EntriesInputError("Use --file or --stdin alone for per-entry updates.");selection={updates:parseJsonArray(await readContentInputSource(options,message=>new EntriesInputError(message))).map((update,index)=>update&&typeof update=="object"&&!Array.isArray(update)?{...update,body:withBulkLocale(update.body,options.locale,`update ${index+1}`)}:update)}}else{if((options.ids?1:0)+(options.where?1:0)!=1||options.body===void 0)throw new EntriesInputError("Pass --body with exactly one of --ids or --where.");selection=options.ids?{ids:parseIds(options.ids)}:{where:parseBulkJsonObject(options.where)},body=withBulkLocale(parseBulkJsonObject(options.body),options.locale,"--body")}let result=await fimo.execute("entries.bulkUpdate",{projectId:ctx.projectId,branch:ctx.branch,typeName,selection,body});ui.result({command:"entries bulk-update",data:result,warnings:missingIdWarnings(result,"updated"),render:__name(()=>renderPrettyJson5(result),"render")})}__name(entriesBulkUpdateCommand,"entriesBulkUpdateCommand");async function entriesBulkDeleteCommand(typeName,options,cmd){let{ctx,fimo}=await bootstrapProjectCommand(options,cmd,{refuseReadOnly:!0});if(await requireOperation("cms.bulk_delete",{projectId:ctx.projectId,branch:ctx.branch}),(options.ids?1:0)+(options.where?1:0)!=1)throw new EntriesInputError("Pass exactly one of --ids or --where.");let selection=options.ids?{ids:parseIds(options.ids)}:{where:parseBulkJsonObject(options.where)},result=await fimo.execute("entries.bulkDelete",{projectId:ctx.projectId,branch:ctx.branch,typeName,selection,locale:options.locale});ui.result({command:"entries bulk-delete",data:result,warnings:missingIdWarnings(result,"deleted"),render:__name(()=>renderPrettyJson5(result),"render")})}__name(entriesBulkDeleteCommand,"entriesBulkDeleteCommand");init_dist();init_config();init_sdk_transport();init_project2();function collect(value,previous){return[...previous??[],value]}__name(collect,"collect");function addScopeOptions(command){return command.option("--project <id>","Site id (defaults to the locally linked site)").option("-C, --cwd <dir>","Site directory")}__name(addScopeOptions,"addScopeOptions");function registerEnvironmentsCommands(program2){let environments=program2.command("environments").description("Group site Branches into deployment Environments").addHelpText("after",`
|
|
2504
|
+
`)},"render")})}__name(domainsOwnedCommand,"domainsOwnedCommand");init_dist();init_config();init_sdk_transport();init_project_context();init_project2();import fs28 from"node:fs";import path27 from"node:path";function selectedInputSources(options,inlineFlag){return[options.body!==void 0?inlineFlag:void 0,options.file?"--file":void 0,options.stdin?"--stdin":void 0].filter(source=>!!source)}__name(selectedInputSources,"selectedInputSources");async function readContentInputSource(options,createError,inlineFlag="--body"){if(selectedInputSources(options,inlineFlag).length!==1)throw createError(`Pass exactly one of ${inlineFlag}, --file, or --stdin.`);if(options.body!==void 0)return options.body;if(options.file){let filePath=path27.resolve(resolveProjectCwd(options.cwd),options.file);try{return fs28.readFileSync(filePath,"utf8")}catch(error){throw createError(error instanceof Error?error.message:`Could not read ${filePath}.`)}}if(process.stdin.isTTY)throw createError("Pipe input to the command when using --stdin.");let chunks=[];for await(let chunk of process.stdin)chunks.push(Buffer.isBuffer(chunk)?chunk:Buffer.from(chunk));return Buffer.concat(chunks).toString("utf8")}__name(readContentInputSource,"readContentInputSource");function renderPrettyJson5(data){return JSON.stringify(data,null,2)}__name(renderPrettyJson5,"renderPrettyJson");var EntriesInputError=class extends Error{static{__name(this,"EntriesInputError")}constructor(message){super(message),this.name="EntriesInputError"}};function reportSingleContentTypeError(command,error){return!(error instanceof ApiRequestError)||error.code!=="single_content_type"?!1:(ui.error({command,code:"SINGLE_CONTENT_TYPE",message:"This content type is a Single. Use `fimo singles update` to create or update it."}),!0)}__name(reportSingleContentTypeError,"reportSingleContentTypeError");var DEFAULT_BULK_CHUNK_SIZE=100,MAX_BULK_CHUNK_SIZE=1e3;function parseJsonObject(value){let parsed=JSON.parse(value);if(!parsed||typeof parsed!="object"||Array.isArray(parsed))throw new Error("Expected a JSON object");return parsed}__name(parseJsonObject,"parseJsonObject");function parseJsonArray(value){let parsed;try{parsed=JSON.parse(value)}catch(error){throw new EntriesInputError(error instanceof Error?`Invalid JSON: ${error.message}`:"Invalid JSON.")}if(!Array.isArray(parsed))throw new EntriesInputError("Expected a JSON array.");return parsed}__name(parseJsonArray,"parseJsonArray");function parseChunkSize(value){if(value===void 0)return DEFAULT_BULK_CHUNK_SIZE;let size=Number(value);if(!Number.isInteger(size)||size<1||size>MAX_BULK_CHUNK_SIZE)throw new EntriesInputError(`--chunk-size must be an integer from 1 to ${MAX_BULK_CHUNK_SIZE}.`);return size}__name(parseChunkSize,"parseChunkSize");function chunksOf(items,size){let chunks=[];for(let offset=0;offset<items.length;offset+=size)chunks.push(items.slice(offset,offset+size));return chunks}__name(chunksOf,"chunksOf");function parseEntryInput(value,index){if(!value||typeof value!="object"||Array.isArray(value))throw new EntriesInputError(`Entry ${index+1} must be a JSON object.`);let input=value;if(!input.data||typeof input.data!="object"||Array.isArray(input.data))throw new EntriesInputError(`Entry ${index+1} must include a data object.`);return input}__name(parseEntryInput,"parseEntryInput");function identityValue(input,field,index){let value=field==="slug"?input.data.slug??input.data[field]:input.data[field];if(typeof value!="string"||value.length===0)throw new EntriesInputError(`Entry ${index+1} needs a non-empty data.${field} for --upsert-by ${field}.`);return value}__name(identityValue,"identityValue");function identityKey(value,locale){return`${locale??""}\0${value}`}__name(identityKey,"identityKey");async function listEntriesByIdentity(content2,projectId2,typeName,field,inputs){let byLocale=new Map;for(let[index,input]of inputs.entries()){let values=byLocale.get(input.locale)??new Set;values.add(identityValue(input,field,index)),byLocale.set(input.locale,values)}let found=new Map;for(let[locale,values]of byLocale){let result=await content2.listEntries(projectId2,typeName,{limit:"100",where:JSON.stringify({[field]:{$in:[...values]}}),fields:`id,documentId,${field},locale`,...locale?{locale}:{}});if(result.meta.hasMore)throw new EntriesInputError(`More than 100 ${typeName} entries matched this ${field} batch; reduce --chunk-size.`);for(let entry of result.data){let value=entry[field];if(typeof value!="string")continue;let key=identityKey(value,locale);found.set(key,[...found.get(key)??[],entry])}}return found}__name(listEntriesByIdentity,"listEntriesByIdentity");async function createWithReconciliation(fimo,content2,projectId2,branch,typeName,field,inputs){let pending=inputs,created=0,reconciled=0;for(let attempt=0;attempt<2&&pending.length>0;attempt+=1)try{let result=await fimo.execute("entries.bulkCreate",{projectId:projectId2,branch,typeName,entries:pending});created+=result.meta.created,pending=[]}catch(error){if(!(error instanceof ApiRequestError)||error.status!==504)throw error;let existing=await listEntriesByIdentity(content2,projectId2,typeName,field,pending),absent=pending.filter((input,index)=>{let key=identityKey(identityValue(input,field,index),input.locale);return(existing.get(key)?.length??0)===0});reconciled+=pending.length-absent.length,pending=absent}if(pending.length>0)throw new EntriesInputError(`${pending.length} entries remain absent after reconciling an ambiguous 504; rerun the same upsert input safely.`);return{created,reconciled}}__name(createWithReconciliation,"createWithReconciliation");async function upsertChunk(fimo,content2,projectId2,branch,typeName,field,inputs,chunk,identityCounts){let existing=await listEntriesByIdentity(content2,projectId2,typeName,field,inputs),creates=[],updates=[],conflicts=0;for(let[index,input]of inputs.entries()){let key=identityKey(identityValue(input,field,index),input.locale),matches=existing.get(key)??[];if((identityCounts.get(key)??0)>1||matches.length>1){conflicts+=1;continue}matches.length===1?updates.push({id:matches[0].documentId,body:input}):creates.push(input)}let updated=0;if(updates.length>0)try{let result=await fimo.execute("entries.bulkUpdate",{projectId:projectId2,branch,typeName,selection:{updates}});updated=result.meta.updated,conflicts+=result.meta.missing.length}catch(error){throw!(error instanceof ApiRequestError)||error.status!==504?error:(await listEntriesByIdentity(content2,projectId2,typeName,field,inputs),new EntriesInputError(`${updates.length} updates had an ambiguous 504; identities were reread without replay. Rerun the same upsert input safely.`))}let createResult=await createWithReconciliation(fimo,content2,projectId2,branch,typeName,field,creates);return{chunk,input:inputs.length,created:createResult.created,updated,conflicts,reconciled:createResult.reconciled}}__name(upsertChunk,"upsertChunk");function parseBulkJsonObject(value){try{return parseJsonObject(value)}catch(error){throw new EntriesInputError(error instanceof Error?error.message:"Expected a JSON object.")}}__name(parseBulkJsonObject,"parseBulkJsonObject");function parseIds(value){let ids=[...new Set(value.split(",").map(id=>id.trim()).filter(Boolean))];if(ids.length===0)throw new EntriesInputError("--ids must include at least one ID.");return ids}__name(parseIds,"parseIds");function missingIdWarnings(result,action){let{missing}=result.meta;if(missing.length===0)return[];let changed=action==="updated"?result.meta.updated:result.meta.deleted,ids=missing.join(", ");if(changed===0)return missing.length===1?[`No entries were ${action}; the requested ID was not found: ${ids}.`]:[`No entries were ${action}; all ${missing.length} requested IDs were not found: ${ids}.`];let subject=missing.length===1?"ID was":"IDs were";return[`${missing.length} requested ${subject} not found: ${ids}.`]}__name(missingIdWarnings,"missingIdWarnings");function addDefinedMetadata(body,metadata){for(let[key,value]of Object.entries(metadata))value!==void 0&&(body[key]=value);return body}__name(addDefinedMetadata,"addDefinedMetadata");async function entriesListCommand(typeName,options,cmd){let pagination=parsePaginationOptions(options,{defaultLimit:20,maxLimit:100,legacyCursor:"offset"}),{ctx}=await bootstrapProjectCommand(options,cmd),content2=createContentTransferService(loadConfig(),ctx.branch);await requireOperation("cms.list",{projectId:ctx.projectId,branch:ctx.branch});let params={};params.limit=String(pagination.limit),options.search&&(params.search=options.search),options.sort&&(params.sort=options.sort),!options.sort&&options.sortBy&&(params.sortBy=options.sortBy),!options.sort&&options.sortDirection&&(params.sortDirection=options.sortDirection),options.where&&(JSON.parse(options.where),params.where=options.where),options.fields&&(params.fields=options.fields),options.populate&&(params.populate=options.populate),options.locale&&(params.locale=options.locale);let initialOffset=parseCursorNumber(pagination.cursor,{defaultValue:0,minimum:0}),page=await collectPaginatedItems({cursor:pagination.cursor,allPages:pagination.allPages,fetchPage:__name(async cursor=>{let offset=parseCursorNumber(cursor,{defaultValue:0,minimum:0});return toOffsetPaginationPage(await content2.listEntries(ctx.projectId,typeName,{...params,offset:String(offset)}))},"fetchPage")}),result={data:page.items,items:page.items,nextCursor:page.nextCursor,total:page.total,meta:{...page.meta,offset:initialOffset,hasMore:page.nextCursor!==null}},trailingArgs=paginationTrailingArgs(options,ctx.branch);ui.result({command:"entries list",data:result,render:__name(()=>renderPrettyJson5(result),"render"),...page.nextCursor?{hint:buildPaginationHint(["fimo","entries","list",typeName],{cursor:page.nextCursor,limit:pagination.limit,trailingArgs})}:{}})}__name(entriesListCommand,"entriesListCommand");function paginationTrailingArgs(options,branch){return[["--branch",branch],["--search",options.search],["--sort",options.sort],["--sort-by",options.sortBy],["--sort-direction",options.sortDirection],["--where",options.where],["--fields",options.fields],["--populate",options.populate],["--locale",options.locale],["--cwd",options.cwd]].flatMap(([flag2,value])=>value===void 0?[]:[flag2,value])}__name(paginationTrailingArgs,"paginationTrailingArgs");async function entriesGetCommand(typeName,id,options,cmd){let{ctx,fimo}=await bootstrapProjectCommand(options,cmd);await requireOperation("cms.get",{projectId:ctx.projectId,branch:ctx.branch});let{data:result}=await fimo.execute("entries.get",{projectId:ctx.projectId,branch:ctx.branch,typeName,id,locale:options.locale,populate:options.populate?[options.populate]:void 0});ui.result({command:"entries get",data:result,render:__name(()=>renderPrettyJson5(result),"render")})}__name(entriesGetCommand,"entriesGetCommand");async function entriesCreateCommand(typeName,options,cmd){let{ctx,fimo}=await bootstrapProjectCommand(options,cmd,{refuseReadOnly:!0});await requireOperation("cms.create",{projectId:ctx.projectId,branch:ctx.branch});let input=addDefinedMetadata(parseJsonObject(await readContentInputSource(options,message=>new EntriesInputError(message))),{locale:options.locale,documentId:options.documentId}),{data:result}=await fimo.execute("entries.create",{projectId:ctx.projectId,branch:ctx.branch,typeName,...input});ui.result({command:"entries create",data:result,render:__name(()=>renderPrettyJson5(result),"render")})}__name(entriesCreateCommand,"entriesCreateCommand");async function entriesUpdateCommand(typeName,id,options,cmd){let{ctx,fimo}=await bootstrapProjectCommand(options,cmd,{refuseReadOnly:!0});await requireOperation("cms.update",{projectId:ctx.projectId,branch:ctx.branch});let data=parseJsonObject(await readContentInputSource(options,message=>new EntriesInputError(message))),result=await fimo.execute("entries.updateFields",{projectId:ctx.projectId,branch:ctx.branch,typeName,id,locale:options.locale,fields:data});ui.result({command:"entries update",data:result,render:__name(()=>renderPrettyJson5(result),"render")})}__name(entriesUpdateCommand,"entriesUpdateCommand");async function entriesDeleteCommand(typeName,id,options,cmd){let{ctx,fimo}=await bootstrapProjectCommand(options,cmd,{refuseReadOnly:!0});await requireOperation("cms.delete",{projectId:ctx.projectId,branch:ctx.branch});let{data:result}=await fimo.execute("entries.delete",{projectId:ctx.projectId,branch:ctx.branch,typeName,id,locale:options.locale});ui.result({command:"entries delete",data:result,render:__name(()=>renderPrettyJson5(result),"render")})}__name(entriesDeleteCommand,"entriesDeleteCommand");async function entriesQueryCommand(options,cmd){let{ctx,fimo}=await bootstrapProjectCommand(options,cmd);await requireOperation("cms.query",{projectId:ctx.projectId,branch:ctx.branch});let sql=await readContentInputSource({...options,body:options.sql},message=>new EntriesInputError(message),"--sql"),result=await fimo.execute("entries.querySql",{projectId:ctx.projectId,branch:ctx.branch,sql});ui.result({command:"entries query",data:result,render:__name(()=>renderPrettyJson5(result),"render")})}__name(entriesQueryCommand,"entriesQueryCommand");async function entriesBulkCreateCommand(typeName,options,cmd){let{ctx,fimo}=await bootstrapProjectCommand(options,cmd,{refuseReadOnly:!0}),content2=createContentTransferService(loadConfig(),ctx.branch);await requireOperation("cms.bulk_create",{projectId:ctx.projectId,branch:ctx.branch}),options.upsertBy&&(await requireOperation("cms.list",{projectId:ctx.projectId,branch:ctx.branch}),await requireOperation("cms.bulk_update",{projectId:ctx.projectId,branch:ctx.branch}));let entries2=parseJsonArray(await readContentInputSource(options,message=>new EntriesInputError(message))),chunkSize=parseChunkSize(options.chunkSize);if(entries2.length===0){if(options.upsertBy)throw new EntriesInputError("Upsert input must be a non-empty JSON array.");let result2=await fimo.execute("entries.bulkCreate",{projectId:ctx.projectId,branch:ctx.branch,typeName,entries:entries2});ui.result({command:"entries bulk-create",data:result2,render:__name(()=>renderPrettyJson5(result2),"render")});return}let upsertInputs=options.upsertBy?entries2.map((entry,index)=>parseEntryInput(entry,index)):[],identityCounts=new Map;if(options.upsertBy)for(let[index,input]of upsertInputs.entries()){let key=identityKey(identityValue(input,options.upsertBy,index),input.locale);identityCounts.set(key,(identityCounts.get(key)??0)+1)}let chunks=chunksOf(options.upsertBy?upsertInputs:entries2,chunkSize),receipts=[],data=[];for(let[index,chunk]of chunks.entries()){if(options.upsertBy){receipts.push(await upsertChunk(fimo,content2,ctx.projectId,ctx.branch,typeName,options.upsertBy,chunk,index+1,identityCounts));continue}let result2=await fimo.execute("entries.bulkCreate",{projectId:ctx.projectId,branch:ctx.branch,typeName,entries:chunk});data.push(...result2.data),receipts.push({chunk:index+1,input:chunk.length,created:result2.meta.created,updated:0,conflicts:0,reconciled:0})}let result={data,meta:{created:receipts.reduce((sum,receipt)=>sum+receipt.created,0),updated:receipts.reduce((sum,receipt)=>sum+receipt.updated,0),conflicts:receipts.reduce((sum,receipt)=>sum+receipt.conflicts,0),chunks:receipts}};ui.result({command:"entries bulk-create",data:result,render:__name(()=>renderPrettyJson5(result),"render")})}__name(entriesBulkCreateCommand,"entriesBulkCreateCommand");function withBulkLocale(body,locale,source){if(locale===void 0||!body||typeof body!="object"||Array.isArray(body))return body;let bodyLocale=body.locale;if(bodyLocale!==void 0&&bodyLocale!==locale)throw new EntriesInputError(`--locale ${locale} disagrees with "locale": ${JSON.stringify(bodyLocale)} in ${source}. Pass the locale once.`);return{...body,locale}}__name(withBulkLocale,"withBulkLocale");async function entriesBulkUpdateCommand(typeName,options,cmd){let{ctx,fimo}=await bootstrapProjectCommand(options,cmd,{refuseReadOnly:!0});await requireOperation("cms.bulk_update",{projectId:ctx.projectId,branch:ctx.branch});let usesBatchInput=!!(options.file||options.stdin),selection,body;if(usesBatchInput){if(options.body!==void 0||options.ids||options.where)throw new EntriesInputError("Use --file or --stdin alone for per-entry updates.");selection={updates:parseJsonArray(await readContentInputSource(options,message=>new EntriesInputError(message))).map((update,index)=>update&&typeof update=="object"&&!Array.isArray(update)?{...update,body:withBulkLocale(update.body,options.locale,`update ${index+1}`)}:update)}}else{if((options.ids?1:0)+(options.where?1:0)!=1||options.body===void 0)throw new EntriesInputError("Pass --body with exactly one of --ids or --where.");selection=options.ids?{ids:parseIds(options.ids)}:{where:parseBulkJsonObject(options.where)},body=withBulkLocale(parseBulkJsonObject(options.body),options.locale,"--body")}let result=await fimo.execute("entries.bulkUpdate",{projectId:ctx.projectId,branch:ctx.branch,typeName,selection,body});ui.result({command:"entries bulk-update",data:result,warnings:missingIdWarnings(result,"updated"),render:__name(()=>renderPrettyJson5(result),"render")})}__name(entriesBulkUpdateCommand,"entriesBulkUpdateCommand");async function entriesBulkDeleteCommand(typeName,options,cmd){let{ctx,fimo}=await bootstrapProjectCommand(options,cmd,{refuseReadOnly:!0});if(await requireOperation("cms.bulk_delete",{projectId:ctx.projectId,branch:ctx.branch}),(options.ids?1:0)+(options.where?1:0)!=1)throw new EntriesInputError("Pass exactly one of --ids or --where.");let selection=options.ids?{ids:parseIds(options.ids)}:{where:parseBulkJsonObject(options.where)},result=await fimo.execute("entries.bulkDelete",{projectId:ctx.projectId,branch:ctx.branch,typeName,selection,locale:options.locale});ui.result({command:"entries bulk-delete",data:result,warnings:missingIdWarnings(result,"deleted"),render:__name(()=>renderPrettyJson5(result),"render")})}__name(entriesBulkDeleteCommand,"entriesBulkDeleteCommand");init_dist();init_config();init_sdk_transport();init_project2();function collect(value,previous){return[...previous??[],value]}__name(collect,"collect");function addScopeOptions(command){return command.option("--project <id>","Site id (defaults to the locally linked site)").option("-C, --cwd <dir>","Site directory")}__name(addScopeOptions,"addScopeOptions");function registerEnvironmentsCommands(program2){let environments=program2.command("environments").description("Group site Branches into deployment Environments").addHelpText("after",`
|
|
2505
2505
|
Environments group Branches. Production is the deployed snapshot published from the configured Production source.
|
|
2506
2506
|
Automatic previews receives every unclaimed Branch.
|
|
2507
2507
|
|
|
@@ -2871,7 +2871,7 @@ Examples (BlogPost must have a title field):
|
|
|
2871
2871
|
fimo entries update BlogPost <id> --body '{"data":{"title":"Updated"}}'
|
|
2872
2872
|
|
|
2873
2873
|
Use the UUID returned as id by create/list for get, update, and delete.
|
|
2874
|
-
The content type is positional. Create/update require --body; JSON files use bulk-create/bulk-update.`);addPaginationOptions(entries.command("list").description("List entries of a content type"),{defaultLimit:20,maxLimit:100,legacyCursor:"offset"}).argument("<typeName>","Content type name").option("-C, --cwd <dir>","Site directory").option("--search <query>","Search query").option("--where <json>",`JSON filter object, e.g. '{"featured":true}'`).option("--sort <field>","Sort field, prefix with - for descending").option("--fields <fields>","Comma-separated fields to return, e.g. slug,title,excerpt").option("--populate <fields>","Comma-separated reference, media, or blocks fields to populate, e.g. author,cover").option("--locale <locale>","Locale to list (default en)").option("--sort-by <field>","Sort field").option("--sort-direction <dir>","Sort direction (asc|desc)").action(entriesListCommand);entries.command("get").description("Get a single entry").argument("<typeName>","Content type name").argument("<id>","Entry UUID returned as id by create/list").option("-C, --cwd <dir>","Site directory").option("--locale <locale>","Entry locale (defaults to the site locale)").option("--populate <fields>","Comma-separated reference, media, or blocks fields to populate, e.g. author,cover").action(entriesGetCommand);entries.command("create").description("Create a new entry").argument("<typeName>","Content type name").option("-C, --cwd <dir>","Site directory").
|
|
2874
|
+
The content type is positional. Create/update require --body; JSON files use bulk-create/bulk-update.`);addPaginationOptions(entries.command("list").description("List entries of a content type"),{defaultLimit:20,maxLimit:100,legacyCursor:"offset"}).argument("<typeName>","Content type name").option("-C, --cwd <dir>","Site directory").option("--search <query>","Search query").option("--where <json>",`JSON filter object, e.g. '{"featured":true}'`).option("--sort <field>","Sort field, prefix with - for descending").option("--fields <fields>","Comma-separated fields to return, e.g. slug,title,excerpt").option("--populate <fields>","Comma-separated reference, media, or blocks fields to populate, e.g. author,cover").option("--locale <locale>","Locale to list (default en)").option("--sort-by <field>","Sort field").option("--sort-direction <dir>","Sort direction (asc|desc)").action(entriesListCommand);entries.command("get").description("Get a single entry").argument("<typeName>","Content type name").argument("<id>","Entry UUID returned as id by create/list").option("-C, --cwd <dir>","Site directory").option("--locale <locale>","Entry locale (defaults to the site locale)").option("--populate <fields>","Comma-separated reference, media, or blocks fields to populate, e.g. author,cover").action(entriesGetCommand);entries.command("create").description("Create a new entry").argument("<typeName>","Content type name").option("-C, --cwd <dir>","Site directory").option("--body <json>",`Entry body, e.g. '{"data":{"slug":"hello","title":"Hello"}}'`).option("--file <path>","Read the entry JSON body from a file").option("--stdin","Read the entry JSON body from stdin").option("--locale <locale>","Entry locale (default en)").option("--document-id <id>","Document ID shared by localized variants").action(entriesCreateCommand);entries.command("update").description("Update an existing entry").argument("<typeName>","Content type name").argument("<id>","Entry UUID returned as id by create/list").option("-C, --cwd <dir>","Site directory").option("--body <json>",`Entry body, e.g. '{"data":{"title":"Updated"}}'`).option("--file <path>","Read the entry JSON body from a file").option("--stdin","Read the entry JSON body from stdin").option("--locale <locale>","Entry locale (defaults to the site locale)").action(entriesUpdateCommand);entries.command("delete").description("Delete an entry").argument("<typeName>","Content type name").argument("<id>","Entry UUID returned as id by create/list").option("-C, --cwd <dir>","Site directory").option("--locale <locale>","Entry locale (defaults to the site locale)").action(entriesDeleteCommand);entries.command("query").description("Run a read-only SQL query over the entries table").option("-C, --cwd <dir>","Site directory").option("--sql <query>","SQL SELECT query").option("--file <path>","Read the SQL query from a file").option("--stdin","Read the SQL query from stdin").addHelpText("after",`
|
|
2875
2875
|
One SELECT that reads only the entries table. Writes are rejected. Limits: 5 seconds, 1,000 rows.
|
|
2876
2876
|
|
|
2877
2877
|
Columns (one row per locale variant):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fimo",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.2-staging.2",
|
|
4
4
|
"description": "Fimo CLI - create, deploy, and manage Fimo sites",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"astro-component"
|
|
@@ -194,13 +194,13 @@
|
|
|
194
194
|
"devDependencies": {
|
|
195
195
|
"@clack/core": "^1.2.0",
|
|
196
196
|
"@clack/prompts": "^1.2.0",
|
|
197
|
-
"@fimo/agents-bundle": "2.10.
|
|
198
|
-
"@fimo/api-contracts": "2.10.
|
|
199
|
-
"@fimo/cli-kit": "2.10.
|
|
200
|
-
"@fimo/framework-detect": "2.10.
|
|
201
|
-
"@fimo/routes": "2.10.
|
|
202
|
-
"@fimo/sdk": "2.10.
|
|
203
|
-
"@fimo/tsconfig": "2.10.
|
|
197
|
+
"@fimo/agents-bundle": "2.10.2-staging.2",
|
|
198
|
+
"@fimo/api-contracts": "2.10.2-staging.2",
|
|
199
|
+
"@fimo/cli-kit": "2.10.2-staging.2",
|
|
200
|
+
"@fimo/framework-detect": "2.10.2-staging.2",
|
|
201
|
+
"@fimo/routes": "2.10.2-staging.2",
|
|
202
|
+
"@fimo/sdk": "2.10.2-staging.2",
|
|
203
|
+
"@fimo/tsconfig": "2.10.2-staging.2",
|
|
204
204
|
"@types/node": "22.18.6",
|
|
205
205
|
"agent-install": "^0.0.5",
|
|
206
206
|
"astro": "^7.1.6",
|
package/release.json
CHANGED
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"check": "astro sync && astro check"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"fimo": "2.10.
|
|
13
|
-
"fimo-analytics": "2.10.
|
|
14
|
-
"fimo-astro": "2.10.
|
|
12
|
+
"fimo": "2.10.2-staging.2",
|
|
13
|
+
"fimo-analytics": "2.10.2-staging.2",
|
|
14
|
+
"fimo-astro": "2.10.2-staging.2",
|
|
15
15
|
"zod": "^4.4.3"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@tanstack/react-query": "^5.80.6",
|
|
15
|
-
"fimo": "2.10.
|
|
16
|
-
"fimo-analytics": "2.10.
|
|
17
|
-
"fimo-next": "2.10.
|
|
18
|
-
"fimo-react": "2.10.
|
|
15
|
+
"fimo": "2.10.2-staging.2",
|
|
16
|
+
"fimo-analytics": "2.10.2-staging.2",
|
|
17
|
+
"fimo-next": "2.10.2-staging.2",
|
|
18
|
+
"fimo-react": "2.10.2-staging.2",
|
|
19
19
|
"next": "16.4.2",
|
|
20
20
|
"react": "^19.2.7",
|
|
21
21
|
"react-dom": "^19.2.7",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"cn": "0.2.4",
|
|
22
22
|
"date-fns": "^4.1.0",
|
|
23
23
|
"embla-carousel-react": "^8.6.0",
|
|
24
|
-
"fimo": "2.10.
|
|
25
|
-
"fimo-analytics": "2.10.
|
|
26
|
-
"fimo-react": "2.10.
|
|
27
|
-
"fimo-react-router": "2.10.
|
|
28
|
-
"fimo-vite": "2.10.
|
|
24
|
+
"fimo": "2.10.2-staging.2",
|
|
25
|
+
"fimo-analytics": "2.10.2-staging.2",
|
|
26
|
+
"fimo-react": "2.10.2-staging.2",
|
|
27
|
+
"fimo-react-router": "2.10.2-staging.2",
|
|
28
|
+
"fimo-vite": "2.10.2-staging.2",
|
|
29
29
|
"input-otp": "^1.4.2",
|
|
30
30
|
"isbot": "^5",
|
|
31
31
|
"lucide-react": "^0.577.0",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"prepare": "svelte-kit sync"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"fimo": "2.10.
|
|
15
|
-
"fimo-analytics": "2.10.
|
|
16
|
-
"fimo-sveltekit": "2.10.
|
|
14
|
+
"fimo": "2.10.2-staging.2",
|
|
15
|
+
"fimo-analytics": "2.10.2-staging.2",
|
|
16
|
+
"fimo-sveltekit": "2.10.2-staging.2",
|
|
17
17
|
"zod": "^4.4.3"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@tanstack/react-query": "^5.80.6",
|
|
14
|
-
"fimo": "2.10.
|
|
15
|
-
"fimo-analytics": "2.10.
|
|
16
|
-
"fimo-react": "2.10.
|
|
17
|
-
"fimo-react-router": "2.10.
|
|
18
|
-
"fimo-vite": "2.10.
|
|
14
|
+
"fimo": "2.10.2-staging.2",
|
|
15
|
+
"fimo-analytics": "2.10.2-staging.2",
|
|
16
|
+
"fimo-react": "2.10.2-staging.2",
|
|
17
|
+
"fimo-react-router": "2.10.2-staging.2",
|
|
18
|
+
"fimo-vite": "2.10.2-staging.2",
|
|
19
19
|
"react": "^19.2.7",
|
|
20
20
|
"react-dom": "^19.2.7",
|
|
21
21
|
"react-router": "^8.3.0",
|