aigma 0.1.10 → 0.1.12

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/CHANGELOG.md ADDED
@@ -0,0 +1,100 @@
1
+ # Changelog
2
+
3
+ All notable changes to the `aigma` CLI. Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
4
+
5
+ ## [0.1.11] — 2026-05-09
6
+
7
+ ### Changed
8
+ - `aigma create-node --asset` now sends a clean prompt + structured `assets[]` payload. The Prompt node on the canvas no longer contains the URL list — it only holds the user's prompt text.
9
+ - The server builds an **ImageBucket** node (single bucket containing all assets) connected to the HTML Output node, mirroring the web's `/nodes` mental model.
10
+ - Asset describe / PDF extract pipeline runs server-side via the same OpenRouter model + system prompts the web uses.
11
+ - Taste directives no longer force-substitute `picsum.photos`; when assets are provided, the model embeds the real asset URLs.
12
+
13
+ ## [0.1.10] — 2026-05-09
14
+
15
+ ### Added
16
+ - Device-code login (`aigma login --device`, `aigma device-start`, `aigma device-poll <code>`) — sign in from a managed agent / chat bot frontend without a local browser.
17
+ - Web route `/cli-link` for users to authorize device-code logins.
18
+
19
+ ## [0.1.9] — 2026-05-08
20
+
21
+ ### Added
22
+ - `aigma export-token` — print a base64 session for the `AIGMA_TOKEN` env var (managed-agent auth).
23
+ - Web `/nodes` realtime: changes from the CLI appear within ~1s on an open canvas with a toast.
24
+
25
+ ### Changed
26
+ - Edge functions use a Postgres RPC (`cli_append_to_graph`) for atomic appends — no more race against the web's saveGraph.
27
+ - CLI reads `AIGMA_TOKEN` env var before falling back to `~/.aigma/credentials.json`.
28
+
29
+ ## [0.1.8] — 2026-05-08
30
+
31
+ ### Changed
32
+ - **Pivot to `node_graphs`**: the CLI now writes into the `/nodes` view (the only canvas surface the product exposes today). `list-canvases`, `create-canvas`, `describe-canvas`, `create-node`, `clone-node` all read/write `node_graphs`.
33
+ - Each `create-node` produces a connected dataflow on the canvas: PromptCreator → HTMLOutput, with one Image node per `--asset`.
34
+ - Removed the legacy `cli_node_drafts` polling on the web side.
35
+
36
+ ## [0.1.7] — 2026-05-08
37
+
38
+ ### Added
39
+ - `aigma copy-node <id>` — pure HTML duplicate (no LLM call); always forks to a new node.
40
+ - `aigma create-node --from-node <id>` — regenerate from an existing node's HTML as starting context.
41
+ - `aigma re-create --node <id> --prompt "..."` — sugar over `--from-node`.
42
+ - `aigma list-assets`, `aigma delete-asset <key>`.
43
+ - `aigma do "<request>"` — agent one-shot: picks/creates a canvas, then runs `create-node`.
44
+
45
+ ## [0.1.6] — 2026-05-08
46
+
47
+ ### Added
48
+ - `aigma upload-asset <file>` — upload any file (images, PDFs, audio, video, text up to 25 MB).
49
+ - `aigma create-node --asset <file>` (repeatable) — auto-uploads and references uploaded assets.
50
+ - `aigma create-node --prompt-file <path>` and stdin support — handle long prompts without shell-escaping.
51
+
52
+ ## [0.1.5] — 2026-05-08
53
+
54
+ ### Added
55
+ - `aigma config get/set/unset` for `default-canvas`.
56
+ - `aigma list-nodes` — TSV listing of frames on a canvas.
57
+ - Stderr progress lines during `create-node`.
58
+
59
+ ## [0.1.4] — 2026-05-08
60
+
61
+ ### Added
62
+ - `aigma open` — open `/nodes` in the browser; `--published <slug>` and `--draft <id>` deep-link variants.
63
+
64
+ ### Changed
65
+ - Smarter frame names from prompts (first sentence, max 60 chars).
66
+ - `describe-canvas` dedupes rootIds.
67
+ - Auto-publish workflow rebases against `origin/main` to avoid concurrent-version collisions.
68
+
69
+ ## [0.1.3] — 2026-05-08
70
+
71
+ ### Added
72
+ - `aigma describe-canvas <id|name>` — frames + node count for one canvas.
73
+ - `aigma whoami` — show the currently signed-in user.
74
+
75
+ ### Changed
76
+ - `aigma --version` reads from `package.json` instead of being hard-coded.
77
+ - All commands surface the server's `detail` field on errors.
78
+
79
+ ## [0.1.2] — 2026-05-08
80
+
81
+ ### Added
82
+ - Canvas selection: `aigma list-canvases`, `aigma create-canvas --name "..."`, `aigma create-node --canvas <id|name>`.
83
+ - `AGENTS.md` integration guide, surfaced via `aigma agent-help`.
84
+
85
+ ## [0.1.1] — 2026-05-08
86
+
87
+ ### Added
88
+ - First public release: `aigma login` (browser loopback OAuth via Supabase) and `aigma create-node --prompt "..."`.
89
+
90
+ [0.1.11]: https://www.npmjs.com/package/aigma/v/0.1.11
91
+ [0.1.10]: https://www.npmjs.com/package/aigma/v/0.1.10
92
+ [0.1.9]: https://www.npmjs.com/package/aigma/v/0.1.9
93
+ [0.1.8]: https://www.npmjs.com/package/aigma/v/0.1.8
94
+ [0.1.7]: https://www.npmjs.com/package/aigma/v/0.1.7
95
+ [0.1.6]: https://www.npmjs.com/package/aigma/v/0.1.6
96
+ [0.1.5]: https://www.npmjs.com/package/aigma/v/0.1.5
97
+ [0.1.4]: https://www.npmjs.com/package/aigma/v/0.1.4
98
+ [0.1.3]: https://www.npmjs.com/package/aigma/v/0.1.3
99
+ [0.1.2]: https://www.npmjs.com/package/aigma/v/0.1.2
100
+ [0.1.1]: https://www.npmjs.com/package/aigma/v/0.1.1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Aigma
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,88 +1,125 @@
1
1
  # aigma
2
2
 
3
- Generate Aigma canvas nodes from your terminal.
3
+ [![npm version](https://img.shields.io/npm/v/aigma.svg)](https://www.npmjs.com/package/aigma)
4
+ [![npm downloads](https://img.shields.io/npm/dm/aigma.svg)](https://www.npmjs.com/package/aigma)
5
+ [![license](https://img.shields.io/npm/l/aigma.svg)](./LICENSE)
6
+ [![node](https://img.shields.io/node/v/aigma.svg)](https://www.npmjs.com/package/aigma)
4
7
 
5
- ## Install
8
+ Generate connected canvas nodes on [Aigma](https://aigma.co) from your terminal — for designers, developers, and AI agents.
6
9
 
7
10
  ```bash
8
11
  npm install -g aigma
12
+ aigma login
13
+ aigma create-node --prompt "Hero section for an AI photo editor"
9
14
  ```
10
15
 
11
- ## Usage
16
+ That call:
17
+ 1. Generates a self-contained HTML fragment with Gemini 3.1 Pro (taste skill on by default).
18
+ 2. Publishes it to a public `https://aigma.co/p/{slug}` URL.
19
+ 3. Adds a connected dataflow on your canvas at `/nodes`: **Prompt → HTML Output**, with an **Image Bucket** if you attach `--asset`s. Click **Run** in the canvas to regenerate from the prompt anytime.
20
+
21
+ ## Why aigma CLI
22
+
23
+ - **Build canvas pages from a script.** Same model + taste skill as the web app, so output looks consistent whether you click Run or run a command.
24
+ - **Agent-friendly.** Stable JSON output (`--json`), structured exit codes, an `aigma agent-help` integration guide, and a device-code login flow for managed agents that have no browser.
25
+ - **Asset-aware.** Drop in images, PDFs, text files (`--asset ./file`); the server describes images, extracts PDF text, and hands the model real URLs to embed.
26
+ - **Forking, never mutating.** `copy-node`, `re-create`, `--from-node` all produce a NEW node so iterations stack up next to each other on the canvas.
27
+
28
+ ## Install
12
29
 
13
30
  ```bash
14
- # Sign in via your browser (Google or Apple)
15
- aigma login
31
+ npm install -g aigma # global
32
+ # or
33
+ npx aigma --help # one-off
34
+ ```
16
35
 
17
- # Confirm who's signed in
18
- aigma whoami
36
+ Requires Node.js 18.17+.
19
37
 
20
- # List canvases
21
- aigma list-canvases
38
+ ## Quick start
22
39
 
23
- # Inspect a specific canvas (frames + node count)
24
- aigma describe-canvas "My Project"
40
+ ```bash
41
+ # 1. Sign in via your browser (Google or Apple)
42
+ aigma login
25
43
 
26
- # Create a canvas
27
- aigma create-canvas --name "My Project"
44
+ # 2. (Optional) Pin a default canvas so you stop typing UUIDs
45
+ aigma list-canvases
46
+ aigma config set default-canvas "My Project"
28
47
 
29
- # Generate a node from a prompt (lands on most-recently-edited canvas)
48
+ # 3. Generate
30
49
  aigma create-node --prompt "Hero section for an AI photo editor"
50
+ ```
31
51
 
32
- # Or target a specific canvas (by UUID or exact name)
33
- aigma create-node --prompt "Pricing section" --canvas "My Project"
52
+ ## Common workflows
53
+
54
+ ```bash
55
+ # List + inspect
56
+ aigma list-canvases # all canvases
57
+ aigma describe-canvas "My Project" # frames + node count
58
+ aigma list-nodes # frames on the default canvas (TSV)
34
59
 
35
- # Long prompts: read from a file or stdin
36
- aigma create-node --prompt-file brief.md --canvas "My Project"
37
- cat brief.md | aigma create-node --canvas "My Project"
60
+ # Create
61
+ aigma create-canvas --name "Project Falcon"
62
+ aigma create-node --prompt "Pricing table" --canvas "Project Falcon"
38
63
 
39
- # Attach assets — uploads each file, then references the URL in the prompt
40
- aigma create-node --prompt "Personal CV with my photo" \
41
- --asset ./me.jpg --canvas "My Project"
64
+ # Long prompts: --prompt-file or stdin
65
+ aigma create-node --prompt-file ./brief.md --canvas "Project Falcon"
66
+ cat brief.md | aigma create-node --canvas "Project Falcon"
42
67
 
43
- # Or upload separately and reference the URL yourself
68
+ # Attach assets uploads + builds an Image Bucket node connected to the HTML
69
+ aigma create-node --prompt "Personal site" --asset ./photo.jpg --asset ./resume.pdf
70
+
71
+ # Or upload separately and reference URLs yourself
44
72
  URL=$(aigma upload-asset ./logo.svg)
45
- aigma create-node --prompt "Header with our logo: $URL" --canvas "My Project"
73
+ aigma create-node --prompt "Header with our logo: $URL"
46
74
 
47
75
  # Iterate without losing the original — every flow forks to a NEW node
48
- aigma copy-node <node-id> # pure duplicate
49
- aigma re-create --node <node-id> --prompt "make it darker" # regen from HTML
50
- aigma create-node --from-node <node-id> --prompt-file edit.md # same, advanced
76
+ aigma copy-node <node-id> # pure duplicate
77
+ aigma re-create --node <node-id> --prompt "darker palette" # regen from HTML
78
+ aigma create-node --from-node <node-id> --prompt-file edit.md # same, advanced
51
79
 
52
80
  # Agent one-shot — canvas is auto-resolved from the prompt
53
- aigma do "Hero section for our SaaS Landing project"
54
-
55
- # Save the generated HTML to a file
56
- aigma create-node --prompt "Pricing section" --output pricing.html
81
+ aigma do "Hero for our SaaS Landing project"
57
82
 
58
- # Get JSON on stdout for scripting
59
- aigma create-node --prompt "Footer with links" --json
83
+ # Output / scripting
84
+ aigma create-node --prompt "Footer with links" --output footer.html
85
+ aigma create-node --prompt "Footer with links" --json | jq
60
86
  ```
61
87
 
62
88
  ## For AI agents
63
89
 
64
- If you're an AI agent integrating with `aigma`, run `aigma agent-help` to print the full integration guide (also visible at [AGENTS.md](./AGENTS.md)).
90
+ The CLI ships with an integration guide aimed at AI agents (Claude Code, custom managed agents, Telegram-bot frontends, etc.):
65
91
 
66
- Each `create-node` call:
92
+ ```bash
93
+ aigma agent-help # prints AGENTS.md to stdout
94
+ ```
67
95
 
68
- 1. Generates a self-contained HTML fragment with Gemini.
69
- 2. Publishes it to a public `https://aigma.co/p/{slug}` URL.
70
- 3. Drops a draft node onto your Aigma canvas — it appears within ~5s
71
- if you have https://aigma.co/nodes open, or on next load.
96
+ Three auth paths:
97
+
98
+ | Use case | Command |
99
+ |---|---|
100
+ | Local dev (Claude Code, your laptop) | `aigma login` (browser loopback) |
101
+ | Hosted bot / managed agent (no browser on the agent's host) | `aigma login --device` (humans) or `aigma device-start` + `aigma device-poll <code>` (bots) |
102
+ | CI / cron | `AIGMA_TOKEN=$(aigma export-token)` (paste into env) |
72
103
 
73
- You can run the same command repeatedly to iterate — every call creates
74
- a new node so you can compare variations side-by-side on the canvas.
104
+ Full details in [AGENTS.md](./AGENTS.md).
75
105
 
76
106
  ## Output rules
77
107
 
78
- - Human-readable messages go to **stderr**.
79
- - `--json` payload goes to **stdout** (one JSON object).
80
- - Exit codes: `0` ok · `1` generic · `2` validation · `3` auth required.
108
+ | Stream | Content |
109
+ |---|---|
110
+ | **stdout** | JSON only when `--json` is passed; pipe-safe (`aigma --json \| jq`) |
111
+ | **stderr** | Human-readable progress, status, and errors |
81
112
 
82
- ## Config
113
+ | Exit code | Meaning |
114
+ |---|---|
115
+ | `0` | success |
116
+ | `1` | generic failure |
117
+ | `2` | validation error (bad/missing args) |
118
+ | `3` | auth required — run `aigma login` |
83
119
 
84
- By default the CLI talks to production Aigma. To point at a different
85
- environment, set:
120
+ ## Configuration
121
+
122
+ CLI talks to production Aigma by default. Override via env to target a different deployment:
86
123
 
87
124
  ```bash
88
125
  export AIGMA_SUPABASE_URL=https://your-project.supabase.co
@@ -90,8 +127,12 @@ export AIGMA_SUPABASE_ANON_KEY=...
90
127
  export AIGMA_WEB_BASE=https://your-app.example.com
91
128
  ```
92
129
 
93
- Credentials are stored at `~/.aigma/credentials.json` (mode 0600).
130
+ Credentials are stored at `~/.aigma/credentials.json` (mode 0600). When `AIGMA_TOKEN` is set, the CLI reads the env var instead and skips disk writes — useful for read-only managed-agent runtimes.
131
+
132
+ ## Changelog
133
+
134
+ See [CHANGELOG.md](./CHANGELOG.md).
94
135
 
95
136
  ## License
96
137
 
97
- MIT
138
+ MIT — see [LICENSE](./LICENSE).
@@ -21,12 +21,6 @@ async function resolvePrompt(opts) {
21
21
  }
22
22
  return '';
23
23
  }
24
- function injectAssets(prompt, assets) {
25
- if (assets.length === 0)
26
- return prompt;
27
- const lines = assets.map((a) => `- ${a.url} (${a.content_type}, ${a.filename})`);
28
- return `${prompt}\n\nAVAILABLE ASSETS — embed appropriate ones in the HTML (e.g. <img src=\"…\"> for images). URLs are public and stable:\n${lines.join('\n')}`;
29
- }
30
24
  export async function runCreateNode(opts) {
31
25
  const promptText = await resolvePrompt(opts);
32
26
  if (!promptText) {
@@ -40,7 +34,10 @@ export async function runCreateNode(opts) {
40
34
  }
41
35
  // Resolve canvas: explicit flag > stored default > server-side fallback (most-recent).
42
36
  const canvas = opts.canvas ?? (await getDefaultCanvas());
43
- // Upload any --asset files first, then weave URLs into the prompt.
37
+ // Upload any --asset files first. The URLs go into body.assets[]
38
+ // the edge function turns them into a server-side ASSETS BUCKET context
39
+ // block AND surfaces them as a connected ImageBucket node on the canvas.
40
+ // The prompt node keeps the user's clean text.
44
41
  const uploaded = [];
45
42
  for (const file of opts.asset ?? []) {
46
43
  info(`Uploading asset ${file}…`);
@@ -52,7 +49,6 @@ export async function runCreateNode(opts) {
52
49
  process.exit(ExitCode.Generic);
53
50
  }
54
51
  }
55
- const finalPrompt = injectAssets(promptText, uploaded);
56
52
  info(canvas ? `Generating node on canvas "${canvas}"…` : 'Generating node (most-recent canvas)…');
57
53
  info(' (this can take 10–30s depending on prompt length)');
58
54
  let res;
@@ -65,7 +61,7 @@ export async function runCreateNode(opts) {
65
61
  apikey: SUPABASE_ANON_KEY,
66
62
  },
67
63
  body: JSON.stringify({
68
- prompt: finalPrompt,
64
+ prompt: promptText,
69
65
  ...(canvas ? { canvas } : {}),
70
66
  ...(opts.fromNode ? { from_node: opts.fromNode } : {}),
71
67
  ...(uploaded.length
@@ -1 +1 @@
1
- {"version":3,"file":"create-node.js","sourceRoot":"","sources":["../../src/commands/create-node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE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IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QAClB,KAAK,CAAC,8BAA8B,CAAC,CAAC;QACtC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC;IAED,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;QAChB,MAAM,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACtD,OAAO,CAAC,mBAAmB,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IAC5C,CAAC;IAED,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;QACnB,IAAI,CAAC,cAAc,OAAO,CAAC,MAAM,CAAC,IAAI,KAAK,OAAO,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC;IACnE,CAAC;IACD,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;QACvB,IAAI,CAAC,cAAc,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;IAC3C,CAAC;IACD,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;QACvB,IAAI,CAAC,cAAc,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;IAC3C,CAAC;IACD,OAAO,CAAC,cAAc,CAAC,CAAC;IAExB,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;QACd,IAAI,CAAC,OAAO,CAAC,CAAC;IAChB,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "aigma",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "Aigma CLI — generate canvas nodes from your terminal",
5
5
  "license": "MIT",
6
6
  "homepage": "https://aigma.co",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "git+https://github.com/pro-ect/nigma.git",
10
- "directory": "apps/cli"
9
+ "url": "git+https://github.com/pro-ect/aigma-cli.git"
10
+ },
11
+ "bugs": {
12
+ "url": "https://github.com/pro-ect/aigma-cli/issues"
11
13
  },
12
14
  "keywords": [
13
15
  "aigma",
@@ -43,6 +45,8 @@
43
45
  },
44
46
  "files": [
45
47
  "dist",
46
- "AGENTS.md"
48
+ "AGENTS.md",
49
+ "CHANGELOG.md",
50
+ "LICENSE"
47
51
  ]
48
52
  }