@pen.dev/cli 0.3.8 → 0.3.9

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.
@@ -39,7 +39,6 @@ pen.dev is an infinite canvas design tool with nested object hierarchy.
39
39
  - Changes in the document are presented in real-time to the user. Make the changes in a logical order as a designer would.
40
40
  - Minimize the time between the user requests and showing something on the screen. Users don't want to wait a long time before they see the progress.
41
41
  - Use the canvas as part of your thinking. You don't need to preplan every little detail. Iteratively design using the document.
42
- - Reasoning policy: keep your thinking brief. Do not plan the entire task up front in your reasoning. Think only about the immediate next step, make a tool call, and continue planning incrementally between tool calls.
43
42
 
44
43
  - Do NOT use or think in CSS/HTML properties or behavior. pen.dev uses a custom format and has its own layout, rendering, and canvas behavior. pen.dev has similar concepts and naming, but it's not the same as CSS/HTML.
45
44
  - If a property is not present in the .pen schema, it's not supported. Find a different way to achieve the same visual effect.
@@ -1,7 +1,6 @@
1
1
  # Using the `execute` tool on the pen.dev canvas
2
2
 
3
3
  - The `execute` tool executes a small javascript snippet to modify the document.
4
- - Split work into multiple smaller `execute` calls focused on each section.
5
4
 
6
5
  - In case of an error, all modifications and the created globals will be reverted.
7
6
  - When an `execute` call fails, ALWAYS fix it with the `edits` parameter and the `editId` from the failure message - never resend the snippet. If the patched snippet fails again, keep fixing it with further `edits` under the same `editId`; `find` must then match the snippet as already patched.
@@ -81,7 +81,7 @@ export interface CanHaveStroke {
81
81
  strokeLinejoin?: "miter" | "bevel" | "round";
82
82
  strokeAlignment?: "inner" | "center" | "outer";
83
83
  }
84
- export type Effect = /** Blurs the entire node. */ { enabled?: BooleanOrVariable; type: "blur"; radius?: NumberOrVariable } | /** Blurs the backdrop behind the node. */ { enabled?: BooleanOrVariable; type: "background_blur"; radius?: NumberOrVariable } | /** Inner or outer drop shadow. */ { type: "shadow"; enabled?: BooleanOrVariable; shadowType?: "inner" | "outer"; offset?: { x: NumberOrVariable; y: NumberOrVariable }; spread?: NumberOrVariable; blur?: NumberOrVariable; color?: ColorOrVariable; blendMode?: BlendMode };
84
+ export type Effect = /** Blurs the entire node. */ { enabled?: BooleanOrVariable; type: "blur"; radius?: NumberOrVariable } | /** Blurs the backdrop behind the node. */ { enabled?: BooleanOrVariable; type: "background_blur"; radius?: NumberOrVariable } | /** Inner or outer drop shadow. */ { type: "shadow"; enabled?: BooleanOrVariable; shadowType?: "inner" | "outer"; offset?: { x: NumberOrVariable; y: NumberOrVariable }; blur?: NumberOrVariable; color?: ColorOrVariable; blendMode?: BlendMode };
85
85
  export type Effects = Effect | Effect[];
86
86
  export interface CanHaveEffects { effect?: Effects; }
87
87
  export interface CanHaveGraphics extends CanHaveEffects, CanHaveStroke { fill?: Fills; }
@@ -211,5 +211,5 @@ export interface Ref extends Entity {
211
211
  }
212
212
  export type Child = Frame | Group | Rectangle | Ellipse | Path | Polygon | Text | Note | Prompt | Context | Icon | Script | Browser | Ref;
213
213
  export type IdPath = string;
214
- export interface Document { version: "2.18"; themes?: { [key: string /** RegEx: [^:]+ */]: string[] }; imports?: { [key: string]: string /** Value: relative URI of imported .pen file. Key: short alias. */ }; variables?: { [key: string /** RegEx: [^:]+ */]: { type: "boolean"; value: BooleanOrVariable | { value: BooleanOrVariable; theme?: Theme }[] } | { type: "color"; value: ColorOrVariable | { value: ColorOrVariable; theme?: Theme }[] } | { type: "number"; value: NumberOrVariable | { value: NumberOrVariable; theme?: Theme }[] } | { type: "string"; value: StringOrVariable | { value: StringOrVariable; theme?: Theme }[] } }; children: (Frame | Group | Rectangle | Ellipse | Polygon | Path | Text | Note | Context | Prompt | Icon | Script | Browser | Ref)[]; }
214
+ export interface Document { version: "2.19"; themes?: { [key: string /** RegEx: [^:]+ */]: string[] }; imports?: { [key: string]: string /** Value: relative URI of imported .pen file. Key: short alias. */ }; variables?: { [key: string /** RegEx: [^:]+ */]: { type: "boolean"; value: BooleanOrVariable | { value: BooleanOrVariable; theme?: Theme }[] } | { type: "color"; value: ColorOrVariable | { value: ColorOrVariable; theme?: Theme }[] } | { type: "number"; value: NumberOrVariable | { value: NumberOrVariable; theme?: Theme }[] } | { type: "string"; value: StringOrVariable | { value: StringOrVariable; theme?: Theme }[] } }; children: (Frame | Group | Rectangle | Ellipse | Polygon | Path | Text | Note | Context | Prompt | Icon | Script | Browser | Ref)[]; }
215
215
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pen.dev/cli",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "CLI tool for running the pen.dev AI agent manipulating .pen design files",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",
@@ -35,11 +35,11 @@
35
35
  "author": "High Agency, Inc.",
36
36
  "license": "UNLICENSED",
37
37
  "dependencies": {
38
- "@anthropic-ai/claude-agent-sdk": "^0.3.257",
39
- "@earendil-works/pi-coding-agent": "^0.85.1",
38
+ "@anthropic-ai/claude-agent-sdk": "^0.3.280",
39
+ "@earendil-works/pi-coding-agent": "^0.86.1",
40
40
  "@inquirer/prompts": "^8.3.0",
41
41
  "@node-ipc/node-ipc": "^11.0.3",
42
- "@openai/codex-sdk": "^0.153.4",
42
+ "@openai/codex-sdk": "^0.155.1",
43
43
  "eventemitter3": "^5.0.1",
44
44
  "semver": "^7.7.4",
45
45
  "sharp": "^0.34.5",