@omniharmonic/openspace-cli 0.1.10 → 0.1.11

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/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { Command } from 'commander';
2
2
  import { ChildProcess } from 'node:child_process';
3
3
 
4
4
  type Severity = "error" | "warning";
5
- type CheckRule = "schema" | "block" | "link" | "redirect" | "image" | "media" | "size" | "secret" | "gating";
5
+ type CheckRule = "schema" | "block" | "link" | "redirect" | "image" | "media" | "size" | "secret" | "gating" | "component" | "kit";
6
6
  interface Finding {
7
7
  severity: Severity;
8
8
  rule: CheckRule;
package/dist/index.js CHANGED
@@ -6,9 +6,9 @@ import {
6
6
  formatReport,
7
7
  run,
8
8
  runCheck
9
- } from "./chunk-RLERIG46.js";
9
+ } from "./chunk-WK2BKRNV.js";
10
10
  import "./chunk-OS5MWJZG.js";
11
- import "./chunk-RD24SW4M.js";
11
+ import "./chunk-FPW2XAQ5.js";
12
12
  import "./chunk-26AZCID5.js";
13
13
 
14
14
  // src/index.ts
@@ -36,6 +36,7 @@ content/pages/home.json the home page (slug ""); other pages mirror their U
36
36
  content/pages/about.json → /about/ content/pages/services/pricing.json → /services/pricing/
37
37
  content/collections/<name>/_collection.json collection kind, list + item page layout, feeds
38
38
  content/collections/<name>/<slug>.mdoc one item: YAML frontmatter + Markdoc body
39
+ content/components/<name>.json a custom component (designer section)
39
40
  media/ images ≤ 2400px on the long edge, audio, files
40
41
  ```
41
42
 
@@ -43,6 +44,17 @@ A page is `{ id, title, slug, seo?, sections: [...] }`; a section has a `layout`
43
44
  column spans that add up to 12, or `grid`) and `blocks`; a block is
44
45
  `{ id, type, v, fields, variant?, style? }`.
45
46
 
47
+ ## Custom components
48
+
49
+ Designer sections for moments the blocks can't express. `content/components/<name>.json` holds
50
+ typed `fields`, sample `defaults`, a logic-light `template` (`{{field}}`, `{{rich f}}`,
51
+ `{{image f}}`, `{{button f label=g}}`, `{{#if}}`, `{{#each}}`; no scripts, no raw HTML), scoped
52
+ `css` on theme tokens (`var(--os-color-…)`, `var(--os-space-…)`) and optional `js` (the body of
53
+ `function (root, ctx)`, progressive enhancement only, no network). Pages use one as a block
54
+ `{ "type": "component/<name>", "v": <version>, "fields": {…} }`. Every word, image and link is a
55
+ field, so owners keep editing in Studio. Prefer blocks and presets; `openspace check` enforces
56
+ the component gates (accessibility, reduced motion, budgets).
57
+
46
58
  ## Collection items (Markdoc)
47
59
 
48
60
  Frontmatter follows the collection kind (blog, events, portfolio, podcast, products): `title`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniharmonic/openspace-cli",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "The openspace command line: check, dev, migrate, new, import, eject, agents-md, mcp.",
5
5
  "license": "MIT",
6
6
  "author": "The OpenSpace contributors",
@@ -39,13 +39,15 @@
39
39
  "typescript": "~5.9.3",
40
40
  "vitest": "^3.2.4",
41
41
  "zod": "^4.6.7",
42
- "@omniharmonic/openspace-blocks": "0.1.10",
43
- "@omniharmonic/openspace-ops": "0.1.10",
44
- "@omniharmonic/openspace-mcp-tools": "0.1.10",
42
+ "@omniharmonic/openspace-blocks": "0.1.11",
43
+ "@omniharmonic/openspace-import": "0.1.2",
44
+ "@omniharmonic/openspace-ops": "0.1.11",
45
+ "@omniharmonic/openspace-schema": "0.1.11",
46
+ "@omniharmonic/openspace-site-kit": "0.1.11",
47
+ "@omniharmonic/openspace-renderer": "0.1.11",
48
+ "@omniharmonic/openspace-mcp-tools": "0.1.11",
45
49
  "@omniharmonic/openspace-template-starter": "0.1.0",
46
- "@omniharmonic/openspace-site-kit": "0.1.10",
47
- "@omniharmonic/openspace-schema": "0.1.10",
48
- "@omniharmonic/openspace-import": "0.1.2"
50
+ "@omniharmonic/openspace-lint": "0.1.11"
49
51
  },
50
52
  "dependencies": {
51
53
  "@modelcontextprotocol/sdk": "^1.32.2",