@venturewild/workspace 0.1.0 → 0.1.1
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 +73 -73
- package/package.json +75 -69
- package/server/bin/wild-workspace.mjs +402 -95
- package/server/src/account.mjs +114 -0
- package/server/src/agent-identity.mjs +65 -0
- package/server/src/agent.mjs +356 -335
- package/server/src/config.mjs +272 -236
- package/server/src/daemon-supervisor.mjs +216 -0
- package/server/src/daemon.mjs +6 -0
- package/server/src/error-reporter.mjs +86 -0
- package/server/src/inbox.mjs +86 -81
- package/server/src/index.mjs +1099 -635
- package/server/src/sync.mjs +248 -176
- package/web/dist/assets/index-B2EifA0K.js +89 -0
- package/web/dist/assets/index-CsFUQhvj.css +1 -0
- package/web/dist/index.html +2 -2
- package/web/dist/assets/index-DOwej8U4.js +0 -89
- package/web/dist/assets/index-DZkyDo10.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,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.0 — initial scaffold, implements PRD §5.5 (workspace-platform-prd.md v0.10).
|
|
6
|
-
|
|
7
|
-
## Quick start
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
# install agent dependencies & web build
|
|
11
|
-
npm install
|
|
12
|
-
npm run build
|
|
13
|
-
|
|
14
|
-
# launch
|
|
15
|
-
node server/src/index.mjs
|
|
16
|
-
# or after `npm install -g .`
|
|
17
|
-
wild-workspace
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
Opens `http://localhost:5173` in your default browser.
|
|
21
|
-
|
|
22
|
-
## What's in here
|
|
23
|
-
|
|
24
|
-
```
|
|
25
|
-
wild-workspace/
|
|
26
|
-
├── server/ # Node.js Hono server + WebSocket bridge
|
|
27
|
-
│ ├── bin/
|
|
28
|
-
│ │ └── wild-workspace.mjs # CLI entry (the `bin` field)
|
|
29
|
-
│ └── src/
|
|
30
|
-
│ ├── index.mjs # server bootstrap
|
|
31
|
-
│ ├── config.mjs # config + role definitions
|
|
32
|
-
│ ├── agent.mjs # claude / gemini / glm / codex subprocess wrapper
|
|
33
|
-
│ ├── share.mjs # JWT share-token mint + verify
|
|
34
|
-
│ ├── inbox.mjs # .wild/inbox.md watcher
|
|
35
|
-
│ ├── fs.mjs # workspace file tree (collapsed by default)
|
|
36
|
-
│ ├── activity.mjs # AI activity event bus
|
|
37
|
-
│ ├── preview.mjs # dev-server port detection
|
|
38
|
-
│ └── routes/ # REST + WS endpoints
|
|
39
|
-
├── web/ # React + Vite frontend
|
|
40
|
-
│ └── src/
|
|
41
|
-
│ ├── App.jsx # role-flagged React tree (partner / viewer / client)
|
|
42
|
-
│ ├── components/ # Chat, Preview, FileTree, Terminal, ShareDialog…
|
|
43
|
-
│ └── state/ # session + chat stores
|
|
44
|
-
└── docs/ # design notes
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
## The three roles (AR-19)
|
|
48
|
-
|
|
49
|
-
| Role | URL pattern | What they see |
|
|
50
|
-
|---|---|---|
|
|
51
|
-
| **partner** | `http://localhost:5173` | Chat + preview + file tree + terminal toggle + inbox + share + deploy |
|
|
52
|
-
| **viewer** | `https
|
|
53
|
-
| **client** | `https://workspace.<client>.com` | Chat + preview + "request changes" only |
|
|
54
|
-
|
|
55
|
-
Same React tree, role-gated visibility (AR-19).
|
|
56
|
-
|
|
57
|
-
## AR-17: wrap don't embed
|
|
58
|
-
|
|
59
|
-
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).
|
|
60
|
-
|
|
61
|
-
## Rich chat rendering
|
|
62
|
-
|
|
63
|
-
The chat is the product (AR-16), so it renders like one:
|
|
64
|
-
|
|
65
|
-
- **Markdown** — agent replies render as GitHub-flavored markdown (`Markdown.jsx`).
|
|
66
|
-
- **Syntax-highlighted code** — fenced code blocks via prism-react-renderer, with a copy button.
|
|
67
|
-
- **Tool cards** — each tool call (`Read`, `Edit`, `Bash`, …) renders as a compact card with a running/done/error status (`ToolCard.jsx`).
|
|
68
|
-
- **Inline diffs** — `Edit` / `Write` / `MultiEdit` show a red/green line diff right in the chat (`DiffView.jsx`).
|
|
69
|
-
- **Live streaming** — text streams token-by-token from the rebuilt `agent.mjs` stream-json parser, with a per-turn cost + token footer.
|
|
70
|
-
|
|
71
|
-
## License
|
|
72
|
-
|
|
73
|
-
MIT — VentureWild.
|
|
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.0 — initial scaffold, implements PRD §5.5 (workspace-platform-prd.md v0.10).
|
|
6
|
+
|
|
7
|
+
## Quick start
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# install agent dependencies & web build
|
|
11
|
+
npm install
|
|
12
|
+
npm run build
|
|
13
|
+
|
|
14
|
+
# launch
|
|
15
|
+
node server/src/index.mjs
|
|
16
|
+
# or after `npm install -g .`
|
|
17
|
+
wild-workspace
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Opens `http://localhost:5173` in your default browser.
|
|
21
|
+
|
|
22
|
+
## What's in here
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
wild-workspace/
|
|
26
|
+
├── server/ # Node.js Hono server + WebSocket bridge
|
|
27
|
+
│ ├── bin/
|
|
28
|
+
│ │ └── wild-workspace.mjs # CLI entry (the `bin` field)
|
|
29
|
+
│ └── src/
|
|
30
|
+
│ ├── index.mjs # server bootstrap
|
|
31
|
+
│ ├── config.mjs # config + role definitions
|
|
32
|
+
│ ├── agent.mjs # claude / gemini / glm / codex subprocess wrapper
|
|
33
|
+
│ ├── share.mjs # JWT share-token mint + verify
|
|
34
|
+
│ ├── inbox.mjs # .wild/inbox.md watcher
|
|
35
|
+
│ ├── fs.mjs # workspace file tree (collapsed by default)
|
|
36
|
+
│ ├── activity.mjs # AI activity event bus
|
|
37
|
+
│ ├── preview.mjs # dev-server port detection
|
|
38
|
+
│ └── routes/ # REST + WS endpoints
|
|
39
|
+
├── web/ # React + Vite frontend
|
|
40
|
+
│ └── src/
|
|
41
|
+
│ ├── App.jsx # role-flagged React tree (partner / viewer / client)
|
|
42
|
+
│ ├── components/ # Chat, Preview, FileTree, Terminal, ShareDialog…
|
|
43
|
+
│ └── state/ # session + chat stores
|
|
44
|
+
└── docs/ # design notes
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## The three roles (AR-19)
|
|
48
|
+
|
|
49
|
+
| Role | URL pattern | What they see |
|
|
50
|
+
|---|---|---|
|
|
51
|
+
| **partner** | `http://localhost:5173` | Chat + preview + file tree + terminal toggle + inbox + share + deploy |
|
|
52
|
+
| **viewer** | `https://<user>.venturewild.llc/<wsid>?t=<token>` | Chat history (read-only) + preview + presence + activity stream |
|
|
53
|
+
| **client** | `https://workspace.<client>.com` | Chat + preview + "request changes" only |
|
|
54
|
+
|
|
55
|
+
Same React tree, role-gated visibility (AR-19).
|
|
56
|
+
|
|
57
|
+
## AR-17: wrap don't embed
|
|
58
|
+
|
|
59
|
+
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).
|
|
60
|
+
|
|
61
|
+
## Rich chat rendering
|
|
62
|
+
|
|
63
|
+
The chat is the product (AR-16), so it renders like one:
|
|
64
|
+
|
|
65
|
+
- **Markdown** — agent replies render as GitHub-flavored markdown (`Markdown.jsx`).
|
|
66
|
+
- **Syntax-highlighted code** — fenced code blocks via prism-react-renderer, with a copy button.
|
|
67
|
+
- **Tool cards** — each tool call (`Read`, `Edit`, `Bash`, …) renders as a compact card with a running/done/error status (`ToolCard.jsx`).
|
|
68
|
+
- **Inline diffs** — `Edit` / `Write` / `MultiEdit` show a red/green line diff right in the chat (`DiffView.jsx`).
|
|
69
|
+
- **Live streaming** — text streams token-by-token from the rebuilt `agent.mjs` stream-json parser, with a per-turn cost + token footer.
|
|
70
|
+
|
|
71
|
+
## License
|
|
72
|
+
|
|
73
|
+
MIT — VentureWild.
|
package/package.json
CHANGED
|
@@ -1,69 +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
|
-
"
|
|
42
|
-
"@
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"react
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"
|
|
63
|
-
"workspace"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@venturewild/workspace",
|
|
3
|
+
"version": "0.1.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
|
+
}
|