@omniharmonic/openspace-cli 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +26 -0
- package/README.md +74 -2
- package/dist/agents-md-2DTXWUZQ.js +8 -0
- package/dist/agents-md-2DTXWUZQ.js.map +1 -0
- package/dist/bin.d.ts +1 -0
- package/dist/bin.js +11 -0
- package/dist/bin.js.map +1 -0
- package/dist/chunk-3F6TAUAT.js +41167 -0
- package/dist/chunk-3F6TAUAT.js.map +1 -0
- package/dist/chunk-LTJEM3DN.js +17161 -0
- package/dist/chunk-LTJEM3DN.js.map +1 -0
- package/dist/index.d.ts +83 -0
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -0
- package/dist/starter/site/.github/workflows/publish.yml +38 -0
- package/dist/starter/site/AGENTS.md +392 -0
- package/dist/starter/site/astro.config.mjs +8 -0
- package/dist/starter/site/package.json +21 -0
- package/dist/starter/site/public/.gitkeep +0 -0
- package/dist/starter/site/src/pages/[...slug].astro +10 -0
- package/dist/starter/site/tsconfig.json +5 -0
- package/dist/starter/variants/cloudflare/.github/openspace/gated-sync.mjs +121 -0
- package/dist/starter/variants/cloudflare/.github/workflows/publish.yml +70 -0
- package/dist/starter/variants/cloudflare/astro.config.mjs +11 -0
- package/dist/starter/variants/cloudflare/package.json +23 -0
- package/dist/starter/variants/cloudflare/wrangler.jsonc +13 -0
- package/dist/templates/atelier/content/collections/projects/_collection.json +13 -0
- package/dist/templates/atelier/content/collections/projects/cordillera.mdoc +32 -0
- package/dist/templates/atelier/content/collections/projects/field-studies.mdoc +32 -0
- package/dist/templates/atelier/content/collections/projects/salt-and-glass.mdoc +32 -0
- package/dist/templates/atelier/content/collections/projects/white-city.mdoc +32 -0
- package/dist/templates/atelier/content/pages/about.json +180 -0
- package/dist/templates/atelier/content/pages/commissions.json +307 -0
- package/dist/templates/atelier/content/pages/contact.json +117 -0
- package/dist/templates/atelier/content/pages/home.json +524 -0
- package/dist/templates/atelier/content/pages/work.json +332 -0
- package/dist/templates/atelier/content/site.json +190 -0
- package/dist/templates/atelier/content/styles.json +25 -0
- package/dist/templates/atelier/media/LICENSES.json +218 -0
- package/dist/templates/atelier/openspace.json +21 -0
- package/dist/templates/atelier/template.json +115 -0
- package/dist/templates/commons/content/collections/gatherings/_collection.json +13 -0
- package/dist/templates/commons/content/collections/gatherings/grant-writing-workshop.mdoc +17 -0
- package/dist/templates/commons/content/collections/gatherings/seed-swap.mdoc +16 -0
- package/dist/templates/commons/content/collections/gatherings/winter-general-assembly.mdoc +17 -0
- package/dist/templates/commons/content/pages/about.json +227 -0
- package/dist/templates/commons/content/pages/home.json +540 -0
- package/dist/templates/commons/content/pages/join.json +304 -0
- package/dist/templates/commons/content/pages/members.json +499 -0
- package/dist/templates/commons/content/site.json +306 -0
- package/dist/templates/commons/content/styles.json +27 -0
- package/dist/templates/commons/media/LICENSES.json +108 -0
- package/dist/templates/commons/openspace.json +21 -0
- package/dist/templates/commons/template.json +113 -0
- package/dist/templates/encore/content/collections/sessions/_collection.json +19 -0
- package/dist/templates/encore/content/collections/sessions/session-10-headphones-on.mdoc +16 -0
- package/dist/templates/encore/content/collections/sessions/session-11-neon-tide.mdoc +16 -0
- package/dist/templates/encore/content/collections/sessions/session-12-slow-static.mdoc +16 -0
- package/dist/templates/encore/content/collections/tour/_collection.json +13 -0
- package/dist/templates/encore/content/collections/tour/brooklyn-elsewhere.mdoc +18 -0
- package/dist/templates/encore/content/collections/tour/chicago-thalia-hall.mdoc +18 -0
- package/dist/templates/encore/content/collections/tour/london-electric-ballroom.mdoc +18 -0
- package/dist/templates/encore/content/collections/tour/minneapolis-first-avenue.mdoc +18 -0
- package/dist/templates/encore/content/collections/tour/toronto-danforth.mdoc +18 -0
- package/dist/templates/encore/content/pages/about.json +251 -0
- package/dist/templates/encore/content/pages/contact.json +122 -0
- package/dist/templates/encore/content/pages/home.json +363 -0
- package/dist/templates/encore/content/pages/music.json +297 -0
- package/dist/templates/encore/content/site.json +293 -0
- package/dist/templates/encore/content/styles.json +17 -0
- package/dist/templates/encore/media/LICENSES.json +97 -0
- package/dist/templates/encore/openspace.json +21 -0
- package/dist/templates/encore/template.json +103 -0
- package/dist/templates/field-notes/content/collections/essays/_collection.json +31 -0
- package/dist/templates/field-notes/content/collections/essays/a-year-of-apples.mdoc +25 -0
- package/dist/templates/field-notes/content/collections/essays/learning-a-field.mdoc +32 -0
- package/dist/templates/field-notes/content/collections/essays/small-weather.mdoc +25 -0
- package/dist/templates/field-notes/content/collections/essays/the-wall-builders.mdoc +29 -0
- package/dist/templates/field-notes/content/pages/about.json +236 -0
- package/dist/templates/field-notes/content/pages/contact.json +116 -0
- package/dist/templates/field-notes/content/pages/home.json +428 -0
- package/dist/templates/field-notes/content/pages/subscribe.json +273 -0
- package/dist/templates/field-notes/content/site.json +218 -0
- package/dist/templates/field-notes/content/styles.json +27 -0
- package/dist/templates/field-notes/media/LICENSES.json +119 -0
- package/dist/templates/field-notes/openspace.json +21 -0
- package/dist/templates/field-notes/template.json +112 -0
- package/dist/templates/harbor/content/collections/events/_collection.json +13 -0
- package/dist/templates/harbor/content/collections/events/coat-drive-sorting-day.mdoc +17 -0
- package/dist/templates/harbor/content/collections/events/safe-at-home-build-day.mdoc +17 -0
- package/dist/templates/harbor/content/collections/events/spring-community-supper.mdoc +17 -0
- package/dist/templates/harbor/content/collections/events/winter-coat-giveaway.mdoc +16 -0
- package/dist/templates/harbor/content/collections/news/2026-08-28-back-to-school-at-homework-harbor.mdoc +17 -0
- package/dist/templates/harbor/content/collections/news/2026-09-15-meet-the-repair-crew.mdoc +21 -0
- package/dist/templates/harbor/content/collections/news/2026-10-08-the-2025-annual-report.mdoc +25 -0
- package/dist/templates/harbor/content/collections/news/_collection.json +34 -0
- package/dist/templates/harbor/content/pages/about.json +366 -0
- package/dist/templates/harbor/content/pages/contact.json +233 -0
- package/dist/templates/harbor/content/pages/get-involved.json +425 -0
- package/dist/templates/harbor/content/pages/home.json +524 -0
- package/dist/templates/harbor/content/pages/programs.json +611 -0
- package/dist/templates/harbor/content/site.json +377 -0
- package/dist/templates/harbor/content/styles.json +25 -0
- package/dist/templates/harbor/media/LICENSES.json +141 -0
- package/dist/templates/harbor/openspace.json +21 -0
- package/dist/templates/harbor/template.json +115 -0
- package/dist/templates/hearth/content/pages/about.json +246 -0
- package/dist/templates/hearth/content/pages/home.json +937 -0
- package/dist/templates/hearth/content/pages/menu.json +396 -0
- package/dist/templates/hearth/content/pages/private-dining.json +288 -0
- package/dist/templates/hearth/content/pages/visit.json +257 -0
- package/dist/templates/hearth/content/site.json +214 -0
- package/dist/templates/hearth/content/styles.json +25 -0
- package/dist/templates/hearth/media/LICENSES.json +196 -0
- package/dist/templates/hearth/openspace.json +21 -0
- package/dist/templates/hearth/template.json +116 -0
- package/dist/templates/kiln/content/collections/classes/_collection.json +13 -0
- package/dist/templates/kiln/content/collections/classes/glaze-day-march.mdoc +17 -0
- package/dist/templates/kiln/content/collections/classes/hand-building-february.mdoc +17 -0
- package/dist/templates/kiln/content/collections/classes/spring-studio-sale.mdoc +15 -0
- package/dist/templates/kiln/content/collections/classes/wheel-weekend-january.mdoc +17 -0
- package/dist/templates/kiln/content/collections/shop/_collection.json +14 -0
- package/dist/templates/kiln/content/collections/shop/ash-bud-vases.mdoc +18 -0
- package/dist/templates/kiln/content/collections/shop/harbor-planter.mdoc +18 -0
- package/dist/templates/kiln/content/collections/shop/morning-cup-pair.mdoc +24 -0
- package/dist/templates/kiln/content/collections/shop/sea-glass-planter.mdoc +18 -0
- package/dist/templates/kiln/content/collections/shop/tide-vase.mdoc +23 -0
- package/dist/templates/kiln/content/collections/shop/walnut-step-stool.mdoc +18 -0
- package/dist/templates/kiln/content/pages/about.json +344 -0
- package/dist/templates/kiln/content/pages/contact.json +232 -0
- package/dist/templates/kiln/content/pages/home.json +754 -0
- package/dist/templates/kiln/content/pages/workshops.json +352 -0
- package/dist/templates/kiln/content/site.json +263 -0
- package/dist/templates/kiln/content/styles.json +17 -0
- package/dist/templates/kiln/media/LICENSES.json +119 -0
- package/dist/templates/kiln/openspace.json +21 -0
- package/dist/templates/kiln/template.json +103 -0
- package/dist/templates/ledger/content/collections/case-studies/_collection.json +14 -0
- package/dist/templates/ledger/content/collections/case-studies/fieldwork-coffee.mdoc +29 -0
- package/dist/templates/ledger/content/collections/case-studies/larkspur-foods.mdoc +29 -0
- package/dist/templates/ledger/content/collections/case-studies/ostrander-clinics.mdoc +29 -0
- package/dist/templates/ledger/content/collections/insights/2026-08-10-one-page-of-numbers.mdoc +12 -0
- package/dist/templates/ledger/content/collections/insights/2026-09-07-hiring-your-first-coo.mdoc +17 -0
- package/dist/templates/ledger/content/collections/insights/2026-10-05-the-decision-log.mdoc +15 -0
- package/dist/templates/ledger/content/collections/insights/_collection.json +21 -0
- package/dist/templates/ledger/content/pages/about.json +298 -0
- package/dist/templates/ledger/content/pages/contact.json +158 -0
- package/dist/templates/ledger/content/pages/home.json +621 -0
- package/dist/templates/ledger/content/pages/services.json +639 -0
- package/dist/templates/ledger/content/site.json +336 -0
- package/dist/templates/ledger/content/styles.json +17 -0
- package/dist/templates/ledger/media/LICENSES.json +86 -0
- package/dist/templates/ledger/openspace.json +21 -0
- package/dist/templates/ledger/template.json +102 -0
- package/dist/templates/link/content/pages/home.json +278 -0
- package/dist/templates/link/content/site.json +168 -0
- package/dist/templates/link/content/styles.json +17 -0
- package/dist/templates/link/media/LICENSES.json +97 -0
- package/dist/templates/link/openspace.json +21 -0
- package/dist/templates/link/template.json +87 -0
- package/dist/templates/meadow/content/collections/journal/2026-09-02-meet-daniel.mdoc +20 -0
- package/dist/templates/meadow/content/collections/journal/2026-09-28-a-practice-for-dark-mornings.mdoc +24 -0
- package/dist/templates/meadow/content/collections/journal/2026-10-12-why-twelve-mats.mdoc +26 -0
- package/dist/templates/meadow/content/collections/journal/_collection.json +34 -0
- package/dist/templates/meadow/content/collections/workshops/_collection.json +13 -0
- package/dist/templates/meadow/content/collections/workshops/breath-and-rest-workshop.mdoc +17 -0
- package/dist/templates/meadow/content/collections/workshops/foundations-four-weeks.mdoc +17 -0
- package/dist/templates/meadow/content/collections/workshops/manzanita-spring-retreat.mdoc +17 -0
- package/dist/templates/meadow/content/collections/workshops/winter-solstice-restorative.mdoc +17 -0
- package/dist/templates/meadow/content/pages/about.json +344 -0
- package/dist/templates/meadow/content/pages/bodywork.json +330 -0
- package/dist/templates/meadow/content/pages/classes.json +820 -0
- package/dist/templates/meadow/content/pages/contact.json +240 -0
- package/dist/templates/meadow/content/pages/home.json +556 -0
- package/dist/templates/meadow/content/site.json +290 -0
- package/dist/templates/meadow/content/styles.json +25 -0
- package/dist/templates/meadow/media/LICENSES.json +130 -0
- package/dist/templates/meadow/openspace.json +21 -0
- package/dist/templates/meadow/template.json +116 -0
- package/dist/templates/signal/content/collections/changelog/2026-09-08-faster-sms.mdoc +11 -0
- package/dist/templates/signal/content/collections/changelog/2026-09-22-postmortem-drafts.mdoc +11 -0
- package/dist/templates/signal/content/collections/changelog/2026-10-06-quiet-hours.mdoc +13 -0
- package/dist/templates/signal/content/collections/changelog/2026-10-20-status-pages-that-update-themselves.mdoc +17 -0
- package/dist/templates/signal/content/collections/changelog/_collection.json +39 -0
- package/dist/templates/signal/content/pages/about.json +258 -0
- package/dist/templates/signal/content/pages/contact.json +122 -0
- package/dist/templates/signal/content/pages/home.json +1062 -0
- package/dist/templates/signal/content/pages/pricing.json +460 -0
- package/dist/templates/signal/content/site.json +345 -0
- package/dist/templates/signal/content/styles.json +17 -0
- package/dist/templates/signal/media/LICENSES.json +119 -0
- package/dist/templates/signal/openspace.json +21 -0
- package/dist/templates/signal/template.json +103 -0
- package/dist/templates/vow/content/pages/about.json +314 -0
- package/dist/templates/vow/content/pages/home.json +400 -0
- package/dist/templates/vow/content/pages/registry.json +207 -0
- package/dist/templates/vow/content/pages/rsvp.json +145 -0
- package/dist/templates/vow/content/pages/schedule.json +281 -0
- package/dist/templates/vow/content/pages/travel.json +326 -0
- package/dist/templates/vow/content/site.json +200 -0
- package/dist/templates/vow/content/styles.json +17 -0
- package/dist/templates/vow/media/LICENSES.json +130 -0
- package/dist/templates/vow/openspace.json +21 -0
- package/dist/templates/vow/template.json +113 -0
- package/package.json +71 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 The OpenSpace contributors
|
|
4
|
+
|
|
5
|
+
This license covers everything in this repository except where a directory
|
|
6
|
+
states otherwise: apps/studio and apps/hub are licensed under AGPL-3.0-only
|
|
7
|
+
(see LICENSE-AGPL), and documentation and template designs are licensed under
|
|
8
|
+
CC-BY-4.0.
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,75 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @omniharmonic/openspace-cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The `openspace` command line: `check`, `dev`, `migrate`, `new`, `eject`, `agents-md` and `mcp`.
|
|
4
|
+
|
|
5
|
+
## `openspace mcp [dir]` — let Claude edit and design your site
|
|
6
|
+
|
|
7
|
+
Runs the OpenSpace MCP server over stdio against a local site folder (default: the current
|
|
8
|
+
folder). It is the same tool set the Hub serves remotely: typed, validated edits (every change is
|
|
9
|
+
an `@omniharmonic/openspace-ops` operation checked against the schema), section presets, Site Styles,
|
|
10
|
+
Design check, page rendering and screenshots.
|
|
11
|
+
|
|
12
|
+
### Claude Code
|
|
13
|
+
|
|
14
|
+
Add a `.mcp.json` to the site folder (or run `claude mcp add openspace -- npx openspace mcp`):
|
|
15
|
+
|
|
16
|
+
```json
|
|
17
|
+
{
|
|
18
|
+
"mcpServers": {
|
|
19
|
+
"openspace": {
|
|
20
|
+
"command": "npx",
|
|
21
|
+
"args": ["openspace", "mcp", "."]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
For unattended or autonomous runs (scheduled jobs, agents working without you watching), add
|
|
28
|
+
`--no-publish` to the args so the connection can edit the draft but never commit or roll back:
|
|
29
|
+
`"args": ["openspace", "mcp", ".", "--no-publish"]`.
|
|
30
|
+
|
|
31
|
+
Options:
|
|
32
|
+
|
|
33
|
+
| Option | Effect |
|
|
34
|
+
| -------------------- | ----------------------------------------------------------------------------- |
|
|
35
|
+
| `--no-publish` | Hide publishing from this connection (the `publish`/`rollback` tools refuse). |
|
|
36
|
+
| `--no-screenshots` | Don't start a browser for the `screenshot` tool. |
|
|
37
|
+
| `--preview-port <n>` | Fixed port for the local preview server (default: random, `127.0.0.1` only). |
|
|
38
|
+
|
|
39
|
+
### What happens to your files
|
|
40
|
+
|
|
41
|
+
- Edits are written straight to `content/` and `media/` through the same loader/writer the site
|
|
42
|
+
build uses, so unchanged files are never rewritten. Agents can't write `src/`, workflows or
|
|
43
|
+
`openspace.json` (no agent path ever rewrites it, not even discard or rollback), and can't
|
|
44
|
+
change custom code (custom CSS, head/footer injection). Discard and rollback are replayed as
|
|
45
|
+
validated operations, like any other edit.
|
|
46
|
+
- **With git**, the draft is your working tree and the published version is `HEAD`:
|
|
47
|
+
- before Claude's first edit in a session, a snapshot tag `os/snap/agent-<time>` records the
|
|
48
|
+
working tree (made from a temporary index — your index and branch are untouched), so
|
|
49
|
+
`git checkout os/snap/agent-… -- content media` undoes everything Claude did;
|
|
50
|
+
- `publish` (only with `confirm: true`) commits `content/` and `media/` on the current branch
|
|
51
|
+
with a summary message; push to deploy;
|
|
52
|
+
- `discard_draft` and `rollback` take a snapshot first (`os/snap/before-discard-…`,
|
|
53
|
+
`os/snap/before-rollback-…`).
|
|
54
|
+
- **Without git**, edits are saved to the files and there is no publish step.
|
|
55
|
+
|
|
56
|
+
### Screenshots and preview
|
|
57
|
+
|
|
58
|
+
`preview` starts a small preview server on `127.0.0.1` (it only answers requests addressed to
|
|
59
|
+
`127.0.0.1`/`localhost`, and serves files only from `media/`) that renders the current files with the
|
|
60
|
+
real renderer. `screenshot` captures a page or one section at desktop (1440), tablet (834) or
|
|
61
|
+
mobile (390) width when Playwright is installed:
|
|
62
|
+
|
|
63
|
+
```sh
|
|
64
|
+
npm i -D playwright
|
|
65
|
+
npx playwright install chromium # or have Google Chrome installed
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Without Playwright, `screenshot` explains how to enable it and `render_page` still returns the
|
|
69
|
+
rendered HTML. Uploads larger than 2400 px are resized when `sharp` is installed; otherwise they
|
|
70
|
+
are refused with a message.
|
|
71
|
+
|
|
72
|
+
### A good first prompt
|
|
73
|
+
|
|
74
|
+
> Read openspace://guidance/design, then use the `iterate-design` prompt on the home page:
|
|
75
|
+
> make the hero stronger and check it on mobile.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/bin.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
package/dist/bin.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __osCreateRequire } from "node:module"; const require = __osCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
processIo,
|
|
5
|
+
run
|
|
6
|
+
} from "./chunk-LTJEM3DN.js";
|
|
7
|
+
import "./chunk-3F6TAUAT.js";
|
|
8
|
+
|
|
9
|
+
// src/bin.ts
|
|
10
|
+
process.exitCode = await run(process.argv.slice(2), processIo());
|
|
11
|
+
//# sourceMappingURL=bin.js.map
|
package/dist/bin.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/bin.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { processIo } from \"./io\";\nimport { run } from \"./program\";\n\nprocess.exitCode = await run(process.argv.slice(2), processIo());\n"],"mappings":";;;;;;;;;AAIA,QAAQ,WAAW,MAAM,IAAI,QAAQ,KAAK,MAAM,CAAC,GAAG,UAAU,CAAC;","names":[]}
|