@ogygia/cli 0.11.0 → 0.11.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/ai/SKILL.md +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -25,4 +25,4 @@ It is not a plugin: nothing goes in vite.config for it.
|
|
|
25
25
|
- `ogygia perf`: render pages under the profiler and judge them against a budget in CI.
|
|
26
26
|
- `ogygia keys <name>`: make an Ed25519 key pair for federation. `ogygia fragments <origin>`: typed stubs for a peer's widgets.
|
|
27
27
|
|
|
28
|
-
Docs: [ogygiajs.dev](https://ogygiajs.dev).
|
|
28
|
+
Docs: [@ogygia/cli](https://ogygiajs.dev/docs/cli/overview), with every [command](https://ogygiajs.dev/docs/cli/commands).
|
package/ai/SKILL.md
CHANGED
|
@@ -304,7 +304,7 @@ Env: `OGYGIA_SECRET` (stable MACs + island-id salt across deploys; required for
|
|
|
304
304
|
|
|
305
305
|
Event layer: `ogygia/events` (`add_sink`, `snapshot`), compiled in only when a plugin asks (devtools does). Tests: `@ogygia/testing` (`withOgygia(test, expect)`; the server under test lists `devtools()`).
|
|
306
306
|
|
|
307
|
-
**Writing a plugin (first-party only, UNSTABLE — no promise to outside authors):** `definePlugin({ name: '<package name>', server?: import.meta.resolve('./server.ts'), client?: import.meta.resolve('./client.ts'), options /* JSON */, enforce?, build(b) })` from `'ogygia/vite'` — it RETURNS a Vite plugin the app lists beside `ogygia()`; a factory that needs Vite hooks of its own returns `[definePlugin({…}), itsVitePlugin]`; `b.routeConfig(key)` (a key inside Kit's `config` page option, read at build, answered by `ctx.routeConfig(key)`) · `b.foreignHydrate()` · `b.macro(name, fn)` · `b.markup(source)` · `b.events({ lazy })` · `b.measure()` · `b.files(scan)` · `b.pageModules({ importers, files })`. Realms are NAMED by the plugin (no package export needed): the `server` module default-exports `defineServer({ setup(app), state(), handle(ctx, next), request, page, response, done, …sharedHooks })` from `'ogygia/plugin'` (hooks: `request`/`page` first-Response-wins, `response` may replace, `done` always, `handle` wraps all); shared hooks via `app.notify.x()` / `app.ask.x()` (core names: `invalidate`, `invalidated`, `lastBuild`; declaration-merge `ServerHooks`); `ctx.facts` (`storable`, `perVisitor`, `streamed`, `private`, `answerForm`, `sources`, `assignments`; merge `RequestFacts`); the `client` module default-exports `defineClient({ boot({ kitPage }), regionMount(el, { entry, urls }), regionUnmount(el, { entry }) })` from `'ogygia/plugin/client'`. Helpers: `ogygia/plugin/utils`, `ogygia/plugin/css`, `ogygia/plugin/testing` (`startPlugin`). Docs: /docs/
|
|
307
|
+
**Writing a plugin (first-party only, UNSTABLE — no promise to outside authors):** `definePlugin({ name: '<package name>', server?: import.meta.resolve('./server.ts'), client?: import.meta.resolve('./client.ts'), options /* JSON */, enforce?, build(b) })` from `'ogygia/vite'` — it RETURNS a Vite plugin the app lists beside `ogygia()`; a factory that needs Vite hooks of its own returns `[definePlugin({…}), itsVitePlugin]`; `b.routeConfig(key)` (a key inside Kit's `config` page option, read at build, answered by `ctx.routeConfig(key)`) · `b.foreignHydrate()` · `b.macro(name, fn)` · `b.markup(source)` · `b.events({ lazy })` · `b.measure()` · `b.files(scan)` · `b.pageModules({ importers, files })`. Realms are NAMED by the plugin (no package export needed): the `server` module default-exports `defineServer({ setup(app), state(), handle(ctx, next), request, page, response, done, …sharedHooks })` from `'ogygia/plugin'` (hooks: `request`/`page` first-Response-wins, `response` may replace, `done` always, `handle` wraps all); shared hooks via `app.notify.x()` / `app.ask.x()` (core names: `invalidate`, `invalidated`, `lastBuild`; declaration-merge `ServerHooks`); `ctx.facts` (`storable`, `perVisitor`, `streamed`, `private`, `answerForm`, `sources`, `assignments`; merge `RequestFacts`); the `client` module default-exports `defineClient({ boot({ kitPage }), regionMount(el, { entry, urls }), regionUnmount(el, { entry }) })` from `'ogygia/plugin/client'`. Helpers: `ogygia/plugin/utils`, `ogygia/plugin/css`, `ogygia/plugin/testing` (`startPlugin`). Docs: /docs/core/plugins.
|
|
308
308
|
|
|
309
309
|
CLI (`@ogygia/cli`; `npx ogygia …` runs it): `npx ogygia init` · `site init` · `keys [name]` (Ed25519 pair to stdout, never a file) · `fragments <origin> [--out f|--check f]` (typed widget stubs; `--check` exits 1 on drift) · `ai` (installs this skill + MCP into `.claude/`) · `mcp` (stdio server).
|
|
310
310
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ogygia/cli",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.5",
|
|
4
4
|
"description": "The ogygia command line: init and site scaffolds, the AI skill, the MCP server, perf budgets and bisect, federation keys and catalogs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -33,21 +33,21 @@
|
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
+
"@ogygia/core": "0.11.5",
|
|
37
|
+
"@ogygia/devtools": "0.11.4",
|
|
38
|
+
"@ogygia/tooling": "0.0.0",
|
|
36
39
|
"@sveltejs/sv-utils": "^0.3.3",
|
|
37
40
|
"@types/node": "^26.1.2",
|
|
38
41
|
"@typescript/native": "npm:typescript@^7.0.2",
|
|
39
42
|
"svelte": "5.56.8",
|
|
40
43
|
"tsdown": "^0.23.4",
|
|
41
44
|
"typescript": "^6.0.3",
|
|
42
|
-
"vitest": "^4.1.12"
|
|
43
|
-
"@ogygia/core": "0.11.0",
|
|
44
|
-
"@ogygia/devtools": "0.11.0",
|
|
45
|
-
"@ogygia/tooling": "0.0.0"
|
|
45
|
+
"vitest": "^4.1.12"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
+
"@ogygia/core": "^0.11.5",
|
|
48
49
|
"playwright": "^1.62.0",
|
|
49
|
-
"svelte": "^5.56.8"
|
|
50
|
-
"@ogygia/core": "^0.11.0"
|
|
50
|
+
"svelte": "^5.56.8"
|
|
51
51
|
},
|
|
52
52
|
"peerDependenciesMeta": {
|
|
53
53
|
"playwright": {
|