liteagents 2.6.0 → 2.8.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/CHANGELOG.md +53 -0
- package/LICENSE +202 -21
- package/README.md +6 -4
- package/installer/cli.js +4 -1
- package/package.json +2 -2
- package/packages/ampcode/commands/live-canvas/README.md +38 -47
- package/packages/{claude/skills/live-canvas/templates/demo → ampcode/commands/live-canvas/dev}/post-variants.html +8 -3
- package/packages/ampcode/commands/live-canvas/templates/lab-banner.html +6 -0
- package/packages/ampcode/commands/live-canvas/templates/overlay-vanilla.js +64 -6
- package/packages/ampcode/commands/live-canvas.md +140 -161
- package/packages/claude/plugins/live-canvas-marketplace/plugins/live-canvas-channel/.claude-plugin/plugin.json +1 -1
- package/packages/claude/plugins/live-canvas-marketplace/plugins/live-canvas-channel/README.md +2 -2
- package/packages/claude/plugins/live-canvas-marketplace/plugins/live-canvas-channel/package-lock.json +13 -13
- package/packages/claude/plugins/live-canvas-marketplace/plugins/live-canvas-channel/package.json +1 -1
- package/packages/claude/plugins/live-canvas-marketplace/plugins/live-canvas-channel/schema.json +1 -1
- package/packages/claude/plugins/live-canvas-marketplace/plugins/live-canvas-channel/server.js +320 -27
- package/packages/claude/plugins/live-canvas-marketplace/setup.sh +83 -24
- package/packages/claude/skills/live-canvas/README.md +53 -57
- package/packages/claude/skills/live-canvas/SKILL.md +122 -158
- package/packages/{ampcode/commands/live-canvas/templates/demo → claude/skills/live-canvas/dev}/post-variants.html +8 -3
- package/packages/claude/skills/live-canvas/templates/lab-banner.html +6 -0
- package/packages/claude/skills/live-canvas/templates/overlay-vanilla.js +64 -6
- package/packages/droid/commands/live-canvas/README.md +38 -47
- package/packages/droid/commands/live-canvas/{templates/demo → dev}/post-variants.html +8 -3
- package/packages/droid/commands/live-canvas/templates/lab-banner.html +6 -0
- package/packages/droid/commands/live-canvas/templates/overlay-vanilla.js +64 -6
- package/packages/droid/commands/live-canvas.md +140 -161
- package/packages/opencode/command/live-canvas/README.md +38 -47
- package/packages/opencode/command/live-canvas/{templates/demo → dev}/post-variants.html +8 -3
- package/packages/opencode/command/live-canvas/templates/lab-banner.html +6 -0
- package/packages/opencode/command/live-canvas/templates/overlay-vanilla.js +64 -6
- package/packages/opencode/command/live-canvas.md +140 -161
- package/packages/ampcode/commands/live-canvas/templates/.claude/settings.local.json +0 -8
- package/packages/ampcode/commands/live-canvas/templates/feedback-react/FeedbackOverlay.tsx +0 -1299
- package/packages/ampcode/commands/live-canvas/templates/feedback-react/format-utils.ts +0 -283
- package/packages/ampcode/commands/live-canvas/templates/feedback-react/index.ts +0 -62
- package/packages/ampcode/commands/live-canvas/templates/feedback-react/selector-utils.ts +0 -423
- package/packages/ampcode/commands/live-canvas/templates/feedback-react/types.ts +0 -118
- package/packages/claude/skills/live-canvas/INTEGRATION_NOTES.md +0 -210
- package/packages/claude/skills/live-canvas/templates/.claude/settings.local.json +0 -8
- package/packages/claude/skills/live-canvas/templates/feedback-react/FeedbackOverlay.tsx +0 -1299
- package/packages/claude/skills/live-canvas/templates/feedback-react/format-utils.ts +0 -283
- package/packages/claude/skills/live-canvas/templates/feedback-react/index.ts +0 -62
- package/packages/claude/skills/live-canvas/templates/feedback-react/selector-utils.ts +0 -423
- package/packages/claude/skills/live-canvas/templates/feedback-react/types.ts +0 -118
- package/packages/droid/commands/live-canvas/templates/.claude/settings.local.json +0 -8
- package/packages/droid/commands/live-canvas/templates/feedback-react/FeedbackOverlay.tsx +0 -1299
- package/packages/droid/commands/live-canvas/templates/feedback-react/format-utils.ts +0 -283
- package/packages/droid/commands/live-canvas/templates/feedback-react/index.ts +0 -62
- package/packages/droid/commands/live-canvas/templates/feedback-react/selector-utils.ts +0 -423
- package/packages/droid/commands/live-canvas/templates/feedback-react/types.ts +0 -118
- package/packages/opencode/command/live-canvas/templates/.claude/settings.local.json +0 -8
- package/packages/opencode/command/live-canvas/templates/feedback-react/FeedbackOverlay.tsx +0 -1299
- package/packages/opencode/command/live-canvas/templates/feedback-react/format-utils.ts +0 -283
- package/packages/opencode/command/live-canvas/templates/feedback-react/index.ts +0 -62
- package/packages/opencode/command/live-canvas/templates/feedback-react/selector-utils.ts +0 -423
- package/packages/opencode/command/live-canvas/templates/feedback-react/types.ts +0 -118
package/CHANGELOG.md
CHANGED
|
@@ -17,6 +17,59 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
17
17
|
|
|
18
18
|
---
|
|
19
19
|
|
|
20
|
+
## [2.8.0] - 2026-05-18
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
- **live-canvas channel: lazy port binding via MCP tools** — `server.js` (v0.5.0) now exposes `channel_open`, `channel_close`, and `batch_open` tools and only binds port 8788 when the skill explicitly calls one. Plain Claude sessions stay idle by default; multiple sessions can have the plugin loaded with `/mcp` green without racing for the port.
|
|
24
|
+
- **live-canvas channel: automatic sibling takeover** — when `channel_open` finds port 8788 held by another instance of the live-canvas plugin running as the same uid, it takes over (SIGTERM the sibling, rebind, SIGKILL fallback if needed). The taken-over pid is returned as `took_over` in the response so the skill can surface it to the user. Foreign processes are still refused with `{status: "in_use", holder_pid, ...}` — the plugin won't kill anything it doesn't own. Removes the dead-end "port busy, go close it yourself in some other terminal" prompt the user was hitting on every second `/live-canvas`.
|
|
25
|
+
- **live-canvas JSON mode: writes to disk instead of browser download** — channel server gains a `POST /feedback-jsonl` route that appends submissions to `<parent claude cwd>/.claude-design/feedback.jsonl`. The skill calls a new `batch_open` MCP tool (no flag gate — JSON mode doesn't use channels) and sets the overlay's `batchEndpoint` to `/feedback-jsonl`. Falls back to the legacy browser-download path only when the MCP isn't available or another session holds the port.
|
|
26
|
+
- **live-canvas channel: parent-flag capability gate** — `channel_open` inspects the parent `claude` process's command line and refuses to bind if `--dangerously-load-development-channels` is missing, returning `{status: "no_channel_capability", message: ...}`. Without this, plain `claude` sessions could win the port race and silently drop every notification (POST 200, no `<channel>` tag — the "nothing landed" black hole).
|
|
27
|
+
- **Cross-platform parent-cmdline detection** — Linux reads `/proc/<ppid>/cmdline` (fast, no subprocess); macOS/BSD falls back to `ps -p <ppid> -o args=`; Windows falls back to `wmic process where processid=<ppid> get commandline`. If none work the gate fails closed.
|
|
28
|
+
- **SKILL.md Case D — explicit relaunch block** — when `channel_open` returns `no_channel_capability`, the skill prints the exact `live-claude --continue` command (and the literal `--dangerously-load-development-channels` long form) and stops, instead of proceeding into a non-functional Live mode.
|
|
29
|
+
|
|
30
|
+
### Changed
|
|
31
|
+
- **SKILL.md mode-selection: replaced `curl /health` probe with the `mcp__live-canvas__channel_open` tool call.** The tool's structured result (`opened` / `already_listening` / `in_use` / `no_channel_capability`) is authoritative — no more curl-vs-marketplace-dir branch table. Mirrors in `packages/{droid,ampcode,opencode}/commands/live-canvas.md` synced.
|
|
32
|
+
|
|
33
|
+
### Fixed
|
|
34
|
+
- **live-canvas: silent channel black-hole when a plain `claude` won the port race.** Before, the first session to start (often a plain `claude` without the experimental channels flag) would bind 8788 first; subsequent `live-claude` sessions hit EADDRINUSE and the user's browser feedback would POST 200 into a session that silently discarded notifications. The capability gate + lazy bind together eliminate this: only flagged sessions can claim the port.
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## [2.7.0] - 2026-05-17
|
|
39
|
+
|
|
40
|
+
### Added
|
|
41
|
+
- **live-canvas: one-shot installer** — `setup.sh` now copies the marketplace to `~/.claude/plugins/`, runs `npm install`, and writes a `live-claude` shell function to `~/.zshrc` and `~/.bashrc` so the user can launch a Live-mode session with one command. Idempotent.
|
|
42
|
+
- **live-canvas: collapsible overlay** — a "−" button next to "Add Feedback" hides the bar to a 36px corner bubble (sessionStorage-persisted). Mobile-friendly: comment popup goes full-width below 640px.
|
|
43
|
+
- **live-canvas: lab banner** — generated lab pages now include a "this is a temporary review surface" banner template (`templates/lab-banner.html`), mode-agnostic, paste-once.
|
|
44
|
+
- **live-canvas: explicit mode pick** — the skill asks Live vs JSON every run via `AskUserQuestion` instead of silently auto-detecting. If Live is unreachable, the skill diagnoses (installed-but-not-Live vs first-time setup) and prints targeted next steps instead of failing opaquely.
|
|
45
|
+
- **CLAUDE.md inline dev rules** — must-know rules from `.claude/memory/AGENT_RULES.md` (Simple > clever, surgical changes, dependency hierarchy, mobile-first UI, POC-first) are now inlined in CLAUDE.md so every agent session sees them.
|
|
46
|
+
- **Installer banner reads `package.json`** — the ASCII logo's version string is no longer hardcoded; `UPDATE_VERSION.sh` only needs to touch `package.json` to keep it current. README version badge already auto-pulled from `package.json` via shields.io.
|
|
47
|
+
|
|
48
|
+
### Changed
|
|
49
|
+
- **live-canvas: vanilla overlay everywhere** — deleted the React-specific overlay (`templates/feedback-react/`, 5 files, ~2300 lines). `overlay-vanilla.js` (one file, plain DOM, zero deps) now works in every supported framework, including React/Next.js/Vite via a `<script>` tag + `useEffect`.
|
|
50
|
+
- **live-canvas: user-facing rename "Batch" → "JSON"** — the non-Live mode is now called "JSON mode" everywhere user-facing.
|
|
51
|
+
- **live-canvas: demo moved to `dev/`** — `templates/demo/post-variants.html` was never copied during real runs. Relocated to `dev/post-variants.html` at the skill root.
|
|
52
|
+
|
|
53
|
+
### Fixed
|
|
54
|
+
- **live-canvas channel server: shutdown race** — `server.js` held port 8788 indefinitely after the MCP host disconnected because `server.close()` is async but `process.exit()` was called synchronously. Stale process broke `/reload-plugins` and second sessions. Now uses a `closing` guard and lets `server.close()` callback drive exit (with a 500ms unref'd ceiling).
|
|
55
|
+
- **live-canvas overlay: mode badge stale on re-expand** — collapsing and re-expanding the overlay used to show "BATCH mode" (now "JSON mode") even after a runtime live→batch fallback. Badge text now refreshes from `state.mode` on every re-expand.
|
|
56
|
+
- **live-canvas setup.sh: sudo guard** — bails early when run with `sudo` instead of silently installing into `/root/.claude/plugins/`.
|
|
57
|
+
- **live-canvas docs: stale tails** — README ASCII diagram still labeled the overlay "(vanilla JS or React)"; troubleshooting referenced the old `/demo/` URL prefix; SKILL.md JSX-translation note for the lab banner was too thin (kebab-case CSS properties would produce invalid JSX).
|
|
58
|
+
|
|
59
|
+
### Removed
|
|
60
|
+
- **`templates/feedback-react/`** — React-specific overlay and supporting modules (`FeedbackOverlay.tsx`, `selector-utils.ts`, `format-utils.ts`, `types.ts`, `index.ts`).
|
|
61
|
+
- **`INTEGRATION_NOTES.md`** — stale draft predating the channel implementation; recommendations all completed.
|
|
62
|
+
- **3-case probe tree from Phase 0** — replaced by an explicit mode prompt + targeted diagnostic block when Live is picked but unreachable.
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## [2.6.1] - 2026-05-09
|
|
67
|
+
|
|
68
|
+
### Security
|
|
69
|
+
- **fast-uri 3.1.0 → 3.1.2** (GHSA-q3j6-qgpj-74h6 / CVE-2026-6321, CVSS 7.5 high) — patches path-traversal via percent-encoded dot segments in `normalize()`/`equal()`. Transitive dep via `@modelcontextprotocol/sdk` → `ajv` in the `live-canvas-channel` plugin. Lockfile-only update; existing `^3.0.1` range already permitted the patched version.
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
20
73
|
## [2.6.0] - 2026-04-19
|
|
21
74
|
|
|
22
75
|
### Added
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,202 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -11,8 +11,10 @@
|
|
|
11
11
|
|
|
12
12
|
**AI development toolkit with 11 specialized agents and 23 commands per tool**
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
<p align="center">
|
|
15
|
+
<img src="https://img.shields.io/github/package-json/v/hamr0/liteagents?label=version&color=2a4f8c" alt="version (auto from package.json)">
|
|
16
|
+
<img src="https://img.shields.io/badge/license-Apache%202.0-2a4f8c" alt="license: Apache 2.0">
|
|
17
|
+
</p>
|
|
16
18
|
|
|
17
19
|
**Supported Tools:**
|
|
18
20
|
[](https://claude.ai)
|
|
@@ -204,7 +206,7 @@ Results land in `.claude/friction/antigen_review.md` with projects, error patter
|
|
|
204
206
|
- **11** Specialized Agents
|
|
205
207
|
- **22** Workflow Commands & Skills
|
|
206
208
|
- **4** Supported Tools (Claude, Opencode, Ampcode, Droid)
|
|
207
|
-
- **
|
|
209
|
+
- **Apache-2.0** License
|
|
208
210
|
|
|
209
211
|
---
|
|
210
212
|
|
|
@@ -218,7 +220,7 @@ Results land in `.claude/friction/antigen_review.md` with projects, error patter
|
|
|
218
220
|
|
|
219
221
|
## 📄 License
|
|
220
222
|
|
|
221
|
-
|
|
223
|
+
Apache-2.0 © 2026 hamr0 — see [LICENSE](LICENSE).
|
|
222
224
|
|
|
223
225
|
---
|
|
224
226
|
|
package/installer/cli.js
CHANGED
|
@@ -14,6 +14,9 @@ const fs = require('fs');
|
|
|
14
14
|
const path = require('path');
|
|
15
15
|
const readline = require('readline');
|
|
16
16
|
|
|
17
|
+
// Single source of truth for version; UPDATE_VERSION.sh bumps only package.json.
|
|
18
|
+
const PACKAGE_VERSION = require('../package.json').version;
|
|
19
|
+
|
|
17
20
|
// ANSI color codes
|
|
18
21
|
const colors = {
|
|
19
22
|
reset: '\x1b[0m',
|
|
@@ -456,7 +459,7 @@ ${colors.bright}${colors.cyan}██╔══██║██║ ██║█
|
|
|
456
459
|
${colors.bright}${colors.cyan}██║ ██║╚██████╔╝███████╗██║ ╚████║ ██║ ██║╚██████╗ ██║ ██╗██║ ██║${colors.reset}
|
|
457
460
|
${colors.bright}${colors.cyan}╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═══╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝${colors.reset}
|
|
458
461
|
|
|
459
|
-
${colors.bright}
|
|
462
|
+
${colors.bright}v${PACKAGE_VERSION} | 11 agents + 23 commands per tool${colors.reset}
|
|
460
463
|
`);
|
|
461
464
|
}
|
|
462
465
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "liteagents",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"description": "AI development toolkit with 11 specialized agents and 23 commands including live-canvas UI design with click-to-annotate feedback. Simple one-question installer for Claude, Opencode, Ampcode, and Droid.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"variant-system"
|
|
47
47
|
],
|
|
48
48
|
"author": "hamr0 <avoidaccess@msn.com>",
|
|
49
|
-
"license": "
|
|
49
|
+
"license": "Apache-2.0",
|
|
50
50
|
"repository": {
|
|
51
51
|
"type": "git",
|
|
52
52
|
"url": "https://github.com/hamr0/liteagents.git"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Click-to-annotate UI design tool for Claude Code. Renders N variants of a component or page in your browser, you click an element and type what to change, and Claude edits the variant file while you watch in the browser. No window switching, no pasted JSON.
|
|
4
4
|
|
|
5
|
-
Ships as a Claude Code skill plus an MCP channel plugin. Works in every tool liteagents supports (Claude, Droid, Amp, Opencode), but **Live mode only works in Claude Code** — other tools run in
|
|
5
|
+
Ships as a Claude Code skill plus an MCP channel plugin. Works in every tool liteagents supports (Claude, Droid, Amp, Opencode), but **Live mode only works in Claude Code** — other tools run in JSON mode only (see modes below).
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -11,7 +11,7 @@ Ships as a Claude Code skill plus an MCP channel plugin. Works in every tool lit
|
|
|
11
11
|
```
|
|
12
12
|
┌──────────────────────┐ POST /feedback ┌─────────────────────┐
|
|
13
13
|
│ Overlay in browser │ ─────────────────────────► │ live-canvas-channel │
|
|
14
|
-
│ (vanilla JS
|
|
14
|
+
│ (vanilla JS, ~500 lines)│ │ (Node MCP server) │
|
|
15
15
|
└──────────────────────┘ └──────────┬──────────┘
|
|
16
16
|
▲ │
|
|
17
17
|
│ dev server hot-reloads the page │ notifications/
|
|
@@ -31,28 +31,31 @@ Each Save in the overlay streams into the Claude session as a `<channel>` tag wi
|
|
|
31
31
|
|
|
32
32
|
## Modes
|
|
33
33
|
|
|
34
|
-
The
|
|
34
|
+
The skill asks you which mode you want every time `/live-canvas` runs.
|
|
35
35
|
|
|
36
|
-
| Mode |
|
|
36
|
+
| Mode | Use when | What happens per Save |
|
|
37
37
|
|---|---|---|
|
|
38
|
-
| **Live** |
|
|
39
|
-
| **
|
|
38
|
+
| **Live** | You launched the session with `live-claude` and the channel is up | Comment streams into Claude's context; Claude edits the file; dev server hot-reloads. Toast: "Pushed to Claude ✨". |
|
|
39
|
+
| **JSON** | Any session, any tool (Claude, Droid, Amp, Opencode) | Comment stays local. On Finish/Submit it writes JSONL (or downloads the file if no endpoint). User pastes or says "check" in the CLI to have the assistant act on the whole batch. |
|
|
40
40
|
|
|
41
|
-
Live
|
|
41
|
+
If you pick Live but the channel doesn't answer, the skill stops and tells you to relaunch with `live-claude` (or fall back to JSON). It doesn't silently downgrade — the user always gets to choose.
|
|
42
42
|
|
|
43
43
|
---
|
|
44
44
|
|
|
45
45
|
## One-time setup (Live mode, Claude Code only)
|
|
46
46
|
|
|
47
|
-
Run this once per machine. Without it, the skill still works in
|
|
47
|
+
Run this once per machine. Without it, the skill still works in JSON mode.
|
|
48
48
|
|
|
49
|
-
### 1.
|
|
49
|
+
### 1. Run the installer
|
|
50
50
|
|
|
51
51
|
```bash
|
|
52
|
-
bash
|
|
52
|
+
bash packages/claude/plugins/live-canvas-marketplace/setup.sh
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
The installer:
|
|
56
|
+
- copies the marketplace into `~/.claude/plugins/live-canvas-marketplace/` (overwrites any prior install)
|
|
57
|
+
- runs `npm install` inside the channel plugin
|
|
58
|
+
- adds a `live-claude` shell function to `~/.zshrc` and `~/.bashrc` (idempotent — re-runs replace in place)
|
|
56
59
|
|
|
57
60
|
### 2. Register the marketplace in Claude Code
|
|
58
61
|
|
|
@@ -66,21 +69,9 @@ Checks Node >= 18, runs `npm install` inside the plugin dir. Idempotent.
|
|
|
66
69
|
/plugin install live-canvas-channel@live-canvas-marketplace
|
|
67
70
|
```
|
|
68
71
|
|
|
69
|
-
### 4.
|
|
72
|
+
### 4. Open a fresh shell
|
|
70
73
|
|
|
71
|
-
|
|
72
|
-
claude --dangerously-load-development-channels plugin:live-canvas-channel@live-canvas-marketplace
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
Accept the safety prompt (custom channels are in research preview and not on the default allowlist).
|
|
76
|
-
|
|
77
|
-
**Save yourself typing** — add to `~/.bashrc` or `~/.zshrc`:
|
|
78
|
-
|
|
79
|
-
```bash
|
|
80
|
-
alias claude-live='claude --dangerously-load-development-channels plugin:live-canvas-channel@live-canvas-marketplace'
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
From now on, `claude-live` to enable Live mode, plain `claude` for everything else.
|
|
74
|
+
`live-claude` is now available. Use plain `claude` for everything else; use `live-claude` when you want Live mode for this skill.
|
|
84
75
|
|
|
85
76
|
---
|
|
86
77
|
|
|
@@ -88,7 +79,7 @@ From now on, `claude-live` to enable Live mode, plain `claude` for everything el
|
|
|
88
79
|
|
|
89
80
|
### Start a session
|
|
90
81
|
|
|
91
|
-
Either `claude` (
|
|
82
|
+
Either `claude` (JSON only) or `live-claude` (Live available).
|
|
92
83
|
|
|
93
84
|
### Invoke the skill in a project
|
|
94
85
|
|
|
@@ -96,13 +87,13 @@ Either `claude` (Batch only) or `claude-live` (Live available).
|
|
|
96
87
|
/live-canvas
|
|
97
88
|
```
|
|
98
89
|
|
|
99
|
-
Phase 0 probes the channel
|
|
90
|
+
Phase 0 always asks which mode you want — Live channel or JSON file — then probes the channel if you picked Live:
|
|
100
91
|
|
|
101
|
-
|
|
|
102
|
-
|
|
103
|
-
|
|
|
104
|
-
|
|
|
105
|
-
|
|
|
92
|
+
| Choice | Channel up? | Skill behavior |
|
|
93
|
+
|---|---|---|
|
|
94
|
+
| Live | yes | Announces Live mode, starts the interview |
|
|
95
|
+
| Live | no | Tells you to relaunch with `live-claude` (or fall back to JSON) |
|
|
96
|
+
| JSON | n/a | Announces JSON mode, starts the interview |
|
|
106
97
|
|
|
107
98
|
### Interview & generation
|
|
108
99
|
|
|
@@ -113,13 +104,15 @@ Skill asks 5 short questions (scope, pain points, inspiration, persona, constrai
|
|
|
113
104
|
Open `http://localhost:<dev-port>/__live_canvas`. Click **Add Feedback** (bottom right), click any element in any variant, type a one-liner, Save.
|
|
114
105
|
|
|
115
106
|
- Live mode: toast says "Pushed to Claude ✨", Claude acknowledges and edits the file, dev server hot-reloads.
|
|
116
|
-
-
|
|
107
|
+
- JSON mode: toast says "Saved — submit when ready", pin stays on the element, counter in the Submit button ticks up.
|
|
108
|
+
|
|
109
|
+
Need the page back? The overlay has a "−" button next to **Add Feedback** that collapses everything to a small circle in the corner — tap to expand again. Useful on mobile where the bar can cover what's underneath.
|
|
117
110
|
|
|
118
111
|
Keep clicking until a winner emerges.
|
|
119
112
|
|
|
120
113
|
### Finish
|
|
121
114
|
|
|
122
|
-
Click the pink **Finish** (Live) or **Submit** (
|
|
115
|
+
Click the pink **Finish** (Live) or **Submit** (JSON) button:
|
|
123
116
|
|
|
124
117
|
1. Type the overall direction: e.g. *"Go with B's layout, A's button styling"*
|
|
125
118
|
2. Click Finish
|
|
@@ -142,12 +135,11 @@ packages/claude/
|
|
|
142
135
|
├── skills/live-canvas/
|
|
143
136
|
│ ├── SKILL.md # Skill instructions (phases, flow)
|
|
144
137
|
│ ├── DESIGN_PRINCIPLES.md # UX/a11y/motion reference
|
|
145
|
-
│ ├── INTEGRATION_NOTES.md # Design-time notes (channel paths explored)
|
|
146
138
|
│ ├── README.md # This file
|
|
139
|
+
│ ├── dev/post-variants.html # Standalone demo for local QA of the overlay
|
|
147
140
|
│ └── templates/
|
|
148
|
-
│ ├── overlay-vanilla.js # Framework-agnostic overlay (~
|
|
149
|
-
│
|
|
150
|
-
│ └── demo/post-variants.html # Standalone demo for testing the overlay
|
|
141
|
+
│ ├── overlay-vanilla.js # Framework-agnostic overlay (~500 lines)
|
|
142
|
+
│ └── lab-banner.html # "This is a temp lab" notice snippet
|
|
151
143
|
└── plugins/
|
|
152
144
|
└── live-canvas-marketplace/
|
|
153
145
|
├── .claude-plugin/marketplace.json
|
|
@@ -188,9 +180,9 @@ The skill checks the cache dir to tell first-time vs returning users apart.
|
|
|
188
180
|
<project-root>/
|
|
189
181
|
└── .claude-design/
|
|
190
182
|
├── lab/variants/VariantA.tsx … VariantE.tsx
|
|
191
|
-
├──
|
|
183
|
+
├── overlay-vanilla.js (copied into the project's public/static dir)
|
|
192
184
|
├── design-brief.json # Structured output from the interview
|
|
193
|
-
└── feedback.jsonl #
|
|
185
|
+
└── feedback.jsonl # JSON mode only; deleted on Finish
|
|
194
186
|
```
|
|
195
187
|
|
|
196
188
|
Plus a temporary route (e.g. `app/__live_canvas/page.tsx` for Next.js App Router). Everything under `.claude-design/` and the temporary route is deleted on Finish or Abort.
|
|
@@ -207,12 +199,11 @@ Plus a temporary route (e.g. `app/__live_canvas/page.tsx` for Next.js App Router
|
|
|
207
199
|
|
|
208
200
|
## The install pipeline, end to end
|
|
209
201
|
|
|
210
|
-
1. **Liteagents installer** copies
|
|
202
|
+
1. **Liteagents installer** copies the skill:
|
|
211
203
|
- `packages/claude/skills/live-canvas/` → `~/.claude/skills/live-canvas/`
|
|
212
|
-
|
|
213
|
-
2. **User, once:** runs `bash ~/.claude/plugins/live-canvas-marketplace/setup.sh` → installs the plugin's npm deps
|
|
204
|
+
2. **User, once:** runs `bash packages/claude/plugins/live-canvas-marketplace/setup.sh` → copies marketplace to `~/.claude/plugins/`, runs `npm install`, adds `live-claude` function to `~/.zshrc` and `~/.bashrc`
|
|
214
205
|
3. **User, once:** in a Claude session, runs `/plugin marketplace add ~/.claude/plugins/live-canvas-marketplace` + `/plugin install live-canvas-channel@live-canvas-marketplace`
|
|
215
|
-
4. **User, every session that wants Live mode:**
|
|
206
|
+
4. **User, every session that wants Live mode:** runs `live-claude` (function installed by step 2)
|
|
216
207
|
5. **User, whenever:** `/live-canvas` in any project
|
|
217
208
|
|
|
218
209
|
Steps 1, 2, 3 are truly one-time. Step 4 is per-session. Step 5 is per-project-use.
|
|
@@ -221,7 +212,7 @@ Steps 1, 2, 3 are truly one-time. Step 4 is per-session. Step 5 is per-project-u
|
|
|
221
212
|
|
|
222
213
|
## Troubleshooting
|
|
223
214
|
|
|
224
|
-
###
|
|
215
|
+
### Channel server starts but skill still routes to JSON
|
|
225
216
|
|
|
226
217
|
Port 8788 is stuck from an earlier session's server process. Kill it:
|
|
227
218
|
|
|
@@ -236,13 +227,13 @@ Then `/reload-plugins` in the new session.
|
|
|
236
227
|
|
|
237
228
|
Three common causes, in order of likelihood:
|
|
238
229
|
|
|
239
|
-
1. You didn't start this session with the dev flag. Close it, reopen with `claude
|
|
230
|
+
1. You didn't start this session with the dev flag. Close it, reopen with `live-claude`.
|
|
240
231
|
2. The plugin subprocess died on startup. In the session, run `/mcp` — look for `live-canvas` with its status. "Failed to connect" means a node/dep error: check `~/.claude/debug/<session-id>.txt` for the stderr.
|
|
241
232
|
3. You never ran step 2 of setup. Re-run `bash ~/.claude/plugins/live-canvas-marketplace/setup.sh`.
|
|
242
233
|
|
|
243
234
|
### Overlay loads in the browser but no pills appear
|
|
244
235
|
|
|
245
|
-
The overlay script didn't load. Most common cause: you started the Python server inside the wrong directory so the relative `../overlay-vanilla.js` path couldn't resolve. Start the server one level up and navigate with the `/
|
|
236
|
+
The overlay script didn't load. Most common cause: you started the Python server inside the wrong directory so the relative `../templates/overlay-vanilla.js` path couldn't resolve. Start the server one level up and navigate with the `/dev/` prefix.
|
|
246
237
|
|
|
247
238
|
### "Pushed to Claude ✨" toast appears but nothing happens in the terminal
|
|
248
239
|
|
|
@@ -79,6 +79,9 @@
|
|
|
79
79
|
<header>
|
|
80
80
|
<h1>Live Canvas — Post card demo</h1>
|
|
81
81
|
<p>5 variations of a social post (likes, retweets, comments). Click <b>Add Feedback</b> bottom-right → click any element → leave a comment. Right-click the pill to submit.</p>
|
|
82
|
+
<div style="background:#fef3c7;border:1px solid #fbbf24;border-radius:8px;padding:10px 14px;margin-top:12px;font-size:13px;color:#78350f;">
|
|
83
|
+
<b>This is an overlay-only demo.</b> Feedback events transit through the Live channel (or JSON file, with <code>?json=1</code>) so you can verify the UI works — but there are no <code>.claude-design/lab/variants/</code> files behind these cards, so the Claude session receiving events <em>cannot</em> edit anything. For the full lifecycle, run <code>/live-canvas</code> in a real project.
|
|
84
|
+
</div>
|
|
82
85
|
</header>
|
|
83
86
|
|
|
84
87
|
<main>
|
|
@@ -193,12 +196,14 @@
|
|
|
193
196
|
|
|
194
197
|
</main>
|
|
195
198
|
|
|
196
|
-
<!-- Overlay (
|
|
197
|
-
<script src="../overlay-vanilla.js"></script>
|
|
199
|
+
<!-- Overlay (served from sibling templates/ dir; works under any static server rooted at the skill dir) -->
|
|
200
|
+
<script src="../templates/overlay-vanilla.js"></script>
|
|
198
201
|
<script>
|
|
202
|
+
// ?json=1 forces JSON mode (skip channel probe); default tries Live first.
|
|
203
|
+
const forceJson = new URLSearchParams(location.search).has('json');
|
|
199
204
|
LiveCanvas.init({
|
|
200
205
|
target: 'PostCard',
|
|
201
|
-
channelUrl: 'http://localhost:8788',
|
|
206
|
+
...(forceJson ? {} : { channelUrl: 'http://localhost:8788' }),
|
|
202
207
|
});
|
|
203
208
|
</script>
|
|
204
209
|
</body>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<div role="note" style="background:#fefce8;border:1px solid #facc15;border-radius:8px;padding:10px 14px;margin:12px 0;font-size:13px;line-height:1.5;color:#854d0e;">
|
|
2
|
+
<b>This is a temporary design lab.</b> Click any element → leave a comment → Save.
|
|
3
|
+
Your feedback goes to Claude; the lab is deleted on Finish. The overlay
|
|
4
|
+
badge (bottom-right) tells you whether feedback is streaming live or being
|
|
5
|
+
collected as JSON.
|
|
6
|
+
</div>
|