@creator-notes/cnotes 0.132.0 → 0.133.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "creator-notes-cli",
3
- "version": "0.132.0",
3
+ "version": "0.133.0",
4
4
  "description": "CreatorNotes CLI: create notes, build canvases, search knowledge from the terminal",
5
5
  "author": {
6
6
  "name": "CreatorNotes",
@@ -68,7 +68,7 @@ export function buildMcpSpec(z, opts) {
68
68
  // -------------------------------------------------------------------------
69
69
  //
70
70
  // The authoritative schema (lib/canvas/layout-engine/spec.ts in the app) is
71
- // a `z.lazy` recursion, and zod-to-json-schema renders recursion as `$ref`,
71
+ // a `z.lazy` recursion, and Zod's JSON Schema output renders recursion as `$ref`,
72
72
  // which ChatGPT does not follow and the remote protocol tests forbid. So the
73
73
  // advertised copy UNROLLS the recursion to a fixed depth and flattens the
74
74
  // five-way union into one object whose fields are all optional. That is
@@ -77,7 +77,7 @@ export function buildMcpSpec(z, opts) {
77
77
  const gap = z.union([z.enum(["tight", "medium", "spacious"]), z.number()]);
78
78
  /** Below the unrolled depth, a child is typed as "some object", never left untyped. */
79
79
  const deeperLayoutNode = z
80
- .record(z.unknown())
80
+ .record(z.string(), z.unknown())
81
81
  .describe("A LayoutNode nested deeper than this schema spells out — same grammar");
82
82
  const layoutNodeAt = (child) => z
83
83
  .object({
@@ -161,7 +161,7 @@ export function buildMcpSpec(z, opts) {
161
161
  */
162
162
  const createLayoutDoc = z
163
163
  .object({
164
- root: z.record(z.unknown()).describe("Root LayoutNode, the same grammar as cnotes_canvas_place's doc.root"),
164
+ root: z.record(z.string(), z.unknown()).describe("Root LayoutNode, the same grammar as cnotes_canvas_place's doc.root"),
165
165
  edges: z
166
166
  .array(z.object({ from: z.string(), to: z.string(), label: z.string().optional() }).passthrough())
167
167
  .optional()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@creator-notes/cnotes",
3
- "version": "0.132.0",
3
+ "version": "0.133.0",
4
4
  "description": "CLI for CreatorNotes — create notes, build canvases, search knowledge from the terminal",
5
5
  "type": "module",
6
6
  "bin": {
@@ -62,8 +62,8 @@
62
62
  "@modelcontextprotocol/sdk": "^1.32.2",
63
63
  "commander": "^12.1.0",
64
64
  "open": "^10.1.0",
65
- "update-notifier": "^5.1.0",
66
- "zod": "^3.24.0"
65
+ "update-notifier": "^7.3.1",
66
+ "zod": "^4.6.7"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@types/node": "^20.0.0",