@pen.dev/cli 0.3.7 → 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.
- package/README.md +15 -5
- package/dist/index.mjs +2 -2
- package/dist/out/mcp-server-darwin-arm64 +0 -0
- package/dist/out/mcp-server-darwin-x64 +0 -0
- package/dist/out/mcp-server-linux-arm64 +0 -0
- package/dist/out/mcp-server-linux-x64 +0 -0
- package/dist/out/mcp-server-windows-arm64.exe +0 -0
- package/dist/out/mcp-server-windows-x64.exe +0 -0
- package/dist/out/skills/pen-dev/SKILL.md +1 -1
- package/dist/out/skills/pen-dev/execute.md +10 -74
- package/dist/out/skills/pen-dev/generate.md +124 -0
- package/dist/out/skills/pen-dev/pen-schema.md +16 -3
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ Creates a new account. You'll receive a verification email — click the link, t
|
|
|
30
30
|
pen login
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
This starts an interactive session where you choose your login method (email + password or email + OTP code
|
|
33
|
+
This starts an interactive session where you choose your login method (browser on pen.dev, email + password, or email + OTP). Browser sign-in opens pen.dev for consent, then asks you to paste a one-time code into the CLI. On success the session token is stored in `~/.pencil/session-cli.json`.
|
|
34
34
|
|
|
35
35
|
### Non-Interactive Login
|
|
36
36
|
|
|
@@ -105,7 +105,7 @@ pen [command] [options]
|
|
|
105
105
|
|
|
106
106
|
Commands:
|
|
107
107
|
signup Create a new account (flags required, see below)
|
|
108
|
-
login Log in interactively (email + password or OTP)
|
|
108
|
+
login Log in interactively (browser, email + password, or OTP)
|
|
109
109
|
status Check authentication status
|
|
110
110
|
version Show CLI version
|
|
111
111
|
interactive Start an interactive tool shell (see below)
|
|
@@ -236,12 +236,22 @@ PNG/JPEG/WEBP/PDF images and HTML output.
|
|
|
236
236
|
|
|
237
237
|
### Image Generation
|
|
238
238
|
|
|
239
|
-
The `execute` `Generate()` operation
|
|
239
|
+
The `execute` `Generate()` operation brings images and vector artwork into the
|
|
240
|
+
document, either from a prompt or by transforming an image the document already
|
|
241
|
+
has. Generated images are saved to an `images/` directory alongside the output
|
|
242
|
+
`.pen` file.
|
|
240
243
|
|
|
241
244
|
| Type | Description |
|
|
242
245
|
|------|-------------|
|
|
243
|
-
| `Generate(
|
|
244
|
-
| `Generate(
|
|
246
|
+
| `Generate("ai", nodeId, prompt)` | AI-generated image from a text prompt |
|
|
247
|
+
| `Generate("stock", nodeId, keywords)` | Stock photo from Unsplash |
|
|
248
|
+
| `Generate("svg", frameId, prompt)` | Vector artwork drawn into the frame |
|
|
249
|
+
| `Generate("vectorize-image", frameId, imageUrl)` | Traces an existing image into vector paths inside the frame |
|
|
250
|
+
| `Generate("remove-background", imageUrl)` | Returns the url of a transparent cutout of the subject |
|
|
251
|
+
| `Generate("replace-background", imageUrl, prompt)` | Returns the url of the subject composed onto a described background |
|
|
252
|
+
|
|
253
|
+
The two `*-background` types write nothing themselves - apply the url they
|
|
254
|
+
return with `Update(nodeId, {fill: {type: "image", url}})`.
|
|
245
255
|
|
|
246
256
|
### Guidelines
|
|
247
257
|
|