@venturewild/workspace 0.1.1 → 0.1.3
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/LICENSE +21 -21
- package/README.md +112 -73
- package/package.json +75 -75
- package/server/bin/wild-workspace.mjs +725 -402
- package/server/src/agent-readiness.mjs +200 -0
- package/server/src/agent.mjs +356 -356
- package/server/src/config.mjs +302 -272
- package/server/src/daemon-bin.mjs +6 -2
- package/server/src/daemon-supervisor.mjs +216 -216
- package/server/src/doctor.mjs +246 -0
- package/server/src/inbox.mjs +86 -86
- package/server/src/index.mjs +1330 -1099
- package/server/src/logpaths.mjs +97 -0
- package/server/src/observability.mjs +45 -0
- package/server/src/operator.mjs +65 -0
- package/server/src/service.mjs +297 -0
- package/server/src/session-reporter.mjs +201 -0
- package/server/src/supervisor.mjs +217 -0
- package/server/src/sync.mjs +248 -248
- package/server/src/transcript.mjs +121 -0
- package/web/dist/assets/index-Bj-mdLGj.css +1 -0
- package/web/dist/assets/index-DLRgyr9j.js +89 -0
- package/web/dist/index.html +2 -2
- package/web/dist/assets/index-B2EifA0K.js +0 -89
- package/web/dist/assets/index-CsFUQhvj.css +0 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 VentureWild
|
|
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.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 VentureWild
|
|
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,73 +1,112 @@
|
|
|
1
|
-
# wild-workspace — Claude Code Web
|
|
2
|
-
|
|
3
|
-
A Replit/Lovable-style **chat-first** browser UI that wraps the AI agent already installed on your machine (Claude Code by default; Gemini / GLM / Codex if present).
|
|
4
|
-
|
|
5
|
-
> v0.1.
|
|
6
|
-
|
|
7
|
-
## Quick start
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
#
|
|
11
|
-
npm
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
│
|
|
39
|
-
|
|
40
|
-
│ └── src/
|
|
41
|
-
│ ├──
|
|
42
|
-
│ ├──
|
|
43
|
-
│
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
The
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
1
|
+
# wild-workspace — Claude Code Web
|
|
2
|
+
|
|
3
|
+
A Replit/Lovable-style **chat-first** browser UI that wraps the AI agent already installed on your machine (Claude Code by default; Gemini / GLM / Codex if present).
|
|
4
|
+
|
|
5
|
+
> v0.1.1 — chat-first workspace + bmo-sync daemon (npm) + per-user proxy (b-ii) live. Implements PRD §5.5 (workspace-platform-prd.md v0.10).
|
|
6
|
+
|
|
7
|
+
## Quick start
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# recommended — global install from npm
|
|
11
|
+
npm i -g @venturewild/workspace
|
|
12
|
+
wild-workspace
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
A global install pulls the matching **bmo-sync daemon** binary automatically for
|
|
16
|
+
win32-x64 / darwin-x64 / darwin-arm64 / linux-x64 (shipped as `optionalDependencies`).
|
|
17
|
+
|
|
18
|
+
To build from source instead (dev path):
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
# install dependencies & web build
|
|
22
|
+
npm install
|
|
23
|
+
npm run build
|
|
24
|
+
|
|
25
|
+
# launch
|
|
26
|
+
node server/src/index.mjs
|
|
27
|
+
# or after `npm install -g .`
|
|
28
|
+
wild-workspace
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Opens `http://localhost:5173` in your default browser.
|
|
32
|
+
|
|
33
|
+
## What's in here
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
wild-workspace/
|
|
37
|
+
├── server/ # Node.js Hono server + WebSocket bridge
|
|
38
|
+
│ ├── bin/
|
|
39
|
+
│ │ └── wild-workspace.mjs # CLI entry (the `bin` field)
|
|
40
|
+
│ └── src/
|
|
41
|
+
│ ├── index.mjs # server bootstrap
|
|
42
|
+
│ ├── config.mjs # config + role definitions
|
|
43
|
+
│ ├── agent.mjs # claude / gemini / glm / codex subprocess wrapper
|
|
44
|
+
│ ├── account.mjs # login / account + slug claim
|
|
45
|
+
│ ├── share.mjs # JWT share-token mint + verify
|
|
46
|
+
│ ├── inbox.mjs # .wild/inbox.md watcher
|
|
47
|
+
│ ├── fs.mjs # workspace file tree (collapsed by default)
|
|
48
|
+
│ ├── activity.mjs # AI activity event bus
|
|
49
|
+
│ ├── preview.mjs # dev-server port detection
|
|
50
|
+
│ ├── sync.mjs # bmo-sync wiring
|
|
51
|
+
│ ├── daemon-bin.mjs # resolves the platform daemon binary
|
|
52
|
+
│ └── routes/ # REST + WS endpoints
|
|
53
|
+
├── web/ # React + Vite frontend
|
|
54
|
+
│ └── src/
|
|
55
|
+
│ ├── App.jsx # role-flagged React tree (partner / viewer / client)
|
|
56
|
+
│ ├── components/ # Chat, Preview, FileTree, Onboarding, ShareDialog…
|
|
57
|
+
│ └── state/ # session + chat stores
|
|
58
|
+
├── vw-proxy/ # Cloudflare Worker — public *.venturewild.llc front door
|
|
59
|
+
├── landing/ # marketing / landing page (Cloudflare Pages)
|
|
60
|
+
└── docs/ # design notes (incl. b-ii-proxy-plan.md / -design.md)
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## The three roles (AR-19)
|
|
64
|
+
|
|
65
|
+
| Role | URL pattern | What they see |
|
|
66
|
+
|---|---|---|
|
|
67
|
+
| **partner** | `http://localhost:5173` | Chat + preview + file tree + terminal toggle + inbox + share + deploy |
|
|
68
|
+
| **partner (published)** | `https://<user>.venturewild.llc` | Your workspace, live on your claimed per-user subdomain (e.g. `tuananh.venturewild.llc`) |
|
|
69
|
+
| **viewer** | `https://<user>.venturewild.llc/<wsid>?t=<token>` | Chat history (read-only) + preview + presence + activity stream |
|
|
70
|
+
| **client** | `https://workspace.<client>.com` | Chat + preview + "request changes" only |
|
|
71
|
+
|
|
72
|
+
Same React tree, role-gated visibility (AR-19).
|
|
73
|
+
|
|
74
|
+
## AR-17: wrap don't embed
|
|
75
|
+
|
|
76
|
+
We don't ship an AI agent. `server/src/agent.mjs` spawns `claude` (or `gemini` / `glm` / `codex` if installed) as a subprocess and pipes stdout/stderr through WebSocket to the chat UI. The wrapped agent's modes mirror automatically (AR-18). (The one native binary we *do* bundle is the bmo-sync daemon — see below.)
|
|
77
|
+
|
|
78
|
+
## bmo-sync daemon + per-user URLs
|
|
79
|
+
|
|
80
|
+
The workspace bundles the **bmo-sync daemon** (run as a subprocess) which links your
|
|
81
|
+
local workspace to a per-user subdomain `https://<user>.venturewild.llc`:
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
browser → vw-proxy (Cloudflare Worker on *.venturewild.llc)
|
|
85
|
+
→ bmo-sync (Fly, bmo-sync.fly.dev) → your daemon → local workspace server
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
The Worker reads the `Host` header, resolves the slug via bmo-sync, and forwards to
|
|
89
|
+
the bmo-sync Fly origin, which proxies to your most-recently-connected daemon. A
|
|
90
|
+
**claimed** slug serves your live workspace (e.g. `tuananh.venturewild.llc` → 200); an
|
|
91
|
+
**unclaimed** slug 302-redirects to the landing page (e.g. `apple.venturewild.llc`).
|
|
92
|
+
|
|
93
|
+
The daemon ships via npm `optionalDependencies` (`@venturewild/workspace-daemon-*@0.1.0`
|
|
94
|
+
for win32-x64 / darwin-x64 / darwin-arm64 / linux-x64), resolved at launch by
|
|
95
|
+
`server/src/daemon-bin.mjs`. Shipped + verified live as of 2026-05-30; see
|
|
96
|
+
[`docs/b-ii-proxy-plan.md`](docs/b-ii-proxy-plan.md),
|
|
97
|
+
[`docs/b-ii-proxy-design.md`](docs/b-ii-proxy-design.md), and
|
|
98
|
+
[`docs/ECOSYSTEM.md`](docs/ECOSYSTEM.md).
|
|
99
|
+
|
|
100
|
+
## Rich chat rendering
|
|
101
|
+
|
|
102
|
+
The chat is the product (AR-16), so it renders like one:
|
|
103
|
+
|
|
104
|
+
- **Markdown** — agent replies render as GitHub-flavored markdown (`Markdown.jsx`).
|
|
105
|
+
- **Syntax-highlighted code** — fenced code blocks via prism-react-renderer, with a copy button.
|
|
106
|
+
- **Tool cards** — each tool call (`Read`, `Edit`, `Bash`, …) renders as a compact card with a running/done/error status (`ToolCard.jsx`).
|
|
107
|
+
- **Inline diffs** — `Edit` / `Write` / `MultiEdit` show a red/green line diff right in the chat (`DiffView.jsx`).
|
|
108
|
+
- **Live streaming** — text streams token-by-token from the rebuilt `agent.mjs` stream-json parser, with a per-turn cost + token footer.
|
|
109
|
+
|
|
110
|
+
## License
|
|
111
|
+
|
|
112
|
+
MIT — VentureWild.
|
package/package.json
CHANGED
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@venturewild/workspace",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Claude Code Web — Replit/Lovable-style chat-first browser UI that wraps the AI agent already installed on your machine.",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"bin": {
|
|
7
|
-
"wild-workspace": "./server/bin/wild-workspace.mjs"
|
|
8
|
-
},
|
|
9
|
-
"files": [
|
|
10
|
-
"server/bin",
|
|
11
|
-
"server/src",
|
|
12
|
-
"web/dist",
|
|
13
|
-
"README.md",
|
|
14
|
-
"LICENSE"
|
|
15
|
-
],
|
|
16
|
-
"engines": {
|
|
17
|
-
"node": ">=18.0.0"
|
|
18
|
-
},
|
|
19
|
-
"scripts": {
|
|
20
|
-
"dev": "concurrently -k -n server,web -c blue,magenta \"npm:dev:server\" \"npm:dev:web\"",
|
|
21
|
-
"dev:server": "node --watch server/src/index.mjs",
|
|
22
|
-
"dev:web": "vite --config web/vite.config.mjs",
|
|
23
|
-
"build": "npm run build:web",
|
|
24
|
-
"build:web": "vite build --config web/vite.config.mjs",
|
|
25
|
-
"prepublishOnly": "npm run build",
|
|
26
|
-
"start": "node server/src/index.mjs",
|
|
27
|
-
"test": "vitest run",
|
|
28
|
-
"test:watch": "vitest",
|
|
29
|
-
"lint": "eslint . --ext .mjs,.js,.jsx || echo 'skipping (eslint not configured)'"
|
|
30
|
-
},
|
|
31
|
-
"dependencies": {
|
|
32
|
-
"@hono/node-server": "^1.13.0",
|
|
33
|
-
"chokidar": "^4.0.0",
|
|
34
|
-
"hono": "^4.6.0",
|
|
35
|
-
"jose": "^5.9.0",
|
|
36
|
-
"mime-types": "^2.1.0",
|
|
37
|
-
"nanoid": "^5.0.0",
|
|
38
|
-
"open": "^10.1.0",
|
|
39
|
-
"ws": "^8.18.0"
|
|
40
|
-
},
|
|
41
|
-
"optionalDependencies": {
|
|
42
|
-
"@venturewild/workspace-daemon-win32-x64": "0.1.0",
|
|
43
|
-
"@venturewild/workspace-daemon-darwin-x64": "0.1.0",
|
|
44
|
-
"@venturewild/workspace-daemon-darwin-arm64": "0.1.0",
|
|
45
|
-
"@venturewild/workspace-daemon-linux-x64": "0.1.0"
|
|
46
|
-
},
|
|
47
|
-
"devDependencies": {
|
|
48
|
-
"@vitejs/plugin-react": "^4.3.0",
|
|
49
|
-
"concurrently": "^9.0.0",
|
|
50
|
-
"diff": "^9.0.0",
|
|
51
|
-
"playwright": "^1.48.0",
|
|
52
|
-
"prism-react-renderer": "^2.4.1",
|
|
53
|
-
"react": "^18.3.0",
|
|
54
|
-
"react-dom": "^18.3.0",
|
|
55
|
-
"react-markdown": "^10.1.0",
|
|
56
|
-
"remark-gfm": "^4.0.1",
|
|
57
|
-
"supertest": "^7.0.0",
|
|
58
|
-
"vite": "^5.4.0",
|
|
59
|
-
"vitest": "^2.1.0"
|
|
60
|
-
},
|
|
61
|
-
"repository": {
|
|
62
|
-
"type": "git",
|
|
63
|
-
"url": "https://github.com/chunin1103/wild-workspace"
|
|
64
|
-
},
|
|
65
|
-
"keywords": [
|
|
66
|
-
"ai",
|
|
67
|
-
"claude",
|
|
68
|
-
"claude-code",
|
|
69
|
-
"workspace",
|
|
70
|
-
"replit",
|
|
71
|
-
"lovable",
|
|
72
|
-
"wild",
|
|
73
|
-
"venturewild"
|
|
74
|
-
]
|
|
75
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@venturewild/workspace",
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "Claude Code Web — Replit/Lovable-style chat-first browser UI that wraps the AI agent already installed on your machine.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"bin": {
|
|
7
|
+
"wild-workspace": "./server/bin/wild-workspace.mjs"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"server/bin",
|
|
11
|
+
"server/src",
|
|
12
|
+
"web/dist",
|
|
13
|
+
"README.md",
|
|
14
|
+
"LICENSE"
|
|
15
|
+
],
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=18.0.0"
|
|
18
|
+
},
|
|
19
|
+
"scripts": {
|
|
20
|
+
"dev": "concurrently -k -n server,web -c blue,magenta \"npm:dev:server\" \"npm:dev:web\"",
|
|
21
|
+
"dev:server": "node --watch server/src/index.mjs",
|
|
22
|
+
"dev:web": "vite --config web/vite.config.mjs",
|
|
23
|
+
"build": "npm run build:web",
|
|
24
|
+
"build:web": "vite build --config web/vite.config.mjs",
|
|
25
|
+
"prepublishOnly": "npm run build",
|
|
26
|
+
"start": "node server/src/index.mjs",
|
|
27
|
+
"test": "vitest run",
|
|
28
|
+
"test:watch": "vitest",
|
|
29
|
+
"lint": "eslint . --ext .mjs,.js,.jsx || echo 'skipping (eslint not configured)'"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@hono/node-server": "^1.13.0",
|
|
33
|
+
"chokidar": "^4.0.0",
|
|
34
|
+
"hono": "^4.6.0",
|
|
35
|
+
"jose": "^5.9.0",
|
|
36
|
+
"mime-types": "^2.1.0",
|
|
37
|
+
"nanoid": "^5.0.0",
|
|
38
|
+
"open": "^10.1.0",
|
|
39
|
+
"ws": "^8.18.0"
|
|
40
|
+
},
|
|
41
|
+
"optionalDependencies": {
|
|
42
|
+
"@venturewild/workspace-daemon-win32-x64": "0.1.0",
|
|
43
|
+
"@venturewild/workspace-daemon-darwin-x64": "0.1.0",
|
|
44
|
+
"@venturewild/workspace-daemon-darwin-arm64": "0.1.0",
|
|
45
|
+
"@venturewild/workspace-daemon-linux-x64": "0.1.0"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@vitejs/plugin-react": "^4.3.0",
|
|
49
|
+
"concurrently": "^9.0.0",
|
|
50
|
+
"diff": "^9.0.0",
|
|
51
|
+
"playwright": "^1.48.0",
|
|
52
|
+
"prism-react-renderer": "^2.4.1",
|
|
53
|
+
"react": "^18.3.0",
|
|
54
|
+
"react-dom": "^18.3.0",
|
|
55
|
+
"react-markdown": "^10.1.0",
|
|
56
|
+
"remark-gfm": "^4.0.1",
|
|
57
|
+
"supertest": "^7.0.0",
|
|
58
|
+
"vite": "^5.4.0",
|
|
59
|
+
"vitest": "^2.1.0"
|
|
60
|
+
},
|
|
61
|
+
"repository": {
|
|
62
|
+
"type": "git",
|
|
63
|
+
"url": "https://github.com/chunin1103/wild-workspace"
|
|
64
|
+
},
|
|
65
|
+
"keywords": [
|
|
66
|
+
"ai",
|
|
67
|
+
"claude",
|
|
68
|
+
"claude-code",
|
|
69
|
+
"workspace",
|
|
70
|
+
"replit",
|
|
71
|
+
"lovable",
|
|
72
|
+
"wild",
|
|
73
|
+
"venturewild"
|
|
74
|
+
]
|
|
75
|
+
}
|