@shop-on/theme-dev-host 0.8.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/LICENSE.md CHANGED
@@ -1,9 +1,9 @@
1
- # Cody Theme Development License
1
+ # Shopon Theme Development License
2
2
 
3
3
  Copyright (c) 2026 Cody LLC. All rights reserved except as granted below.
4
4
 
5
5
  "The Software" is this package, its source, and its documentation. "The
6
- Platform" is Cody, the commerce platform operated by Cody LLC.
6
+ Platform" is Shopon, the commerce platform operated by Cody LLC.
7
7
 
8
8
  ## 1. Grant
9
9
 
@@ -10,7 +10,7 @@ import { readFile, readdir, stat } from "node:fs/promises";
10
10
  import { currentPresetHandle } from "@shop-on/theme-contract/preset-listing";
11
11
  import { bodyLimit } from "hono/body-limit";
12
12
  import { MAX_BATCH_BYTES, OpBatchBodySchema, TabOpBatchBodySchema, agentClientId, chunkOps, touchedEntries } from "@shop-on/theme-contract/ops";
13
- import { applyEditorTool, isEditorToolName } from "@shop-on/theme-contract/editor-tools";
13
+ import { CUSTOM_SECTION_VALIDATING_TOOLS, applyEditorTool, isEditorToolName } from "@shop-on/theme-contract/editor-tools";
14
14
  import { readThemeAiDir } from "@shop-on/theme-contract/ai-files";
15
15
  import { invalidTemplateId } from "@shop-on/theme-contract/store-path";
16
16
  //#region src/editor-app.ts
@@ -241,7 +241,8 @@ function registerEditorRoutes(app, configDir, auth, store, opts) {
241
241
  ...inputs,
242
242
  doc: await documentFor(key),
243
243
  sanitizeRichText: await loadRichTextSanitizer(),
244
- images: "trusted"
244
+ images: "trusted",
245
+ ...CUSTOM_SECTION_VALIDATING_TOOLS.has(tool) ? { validateCustomSection: (await import("@shop-on/theme-contract/custom-section")).validateCustomSection } : {}
245
246
  });
246
247
  if (!out.ok) return c.json({
247
248
  ok: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shop-on/theme-dev-host",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "description": "Local theme-editor dev server: serves the editor contract + proxies a theme's dev server behind one origin, so a theme runs locally and previews in a real admin theme-editor. Nucleus of the future theme CLI.",
5
5
  "license": "SEE LICENSE IN dist/LICENSE.md",
6
6
  "bin": {
@@ -16,7 +16,7 @@
16
16
  "hono": "^4.13.13",
17
17
  "isomorphic-dompurify": "4.6.0",
18
18
  "jose": "^6.2.13",
19
- "@shop-on/theme-contract": "0.8.0"
19
+ "@shop-on/theme-contract": "0.10.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/node": "26.6.5",