@muyichengshayu/promptx 0.1.12 → 0.1.14
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 +15 -0
- package/README.en.md +79 -153
- package/README.md +62 -250
- package/apps/server/src/apiErrors.js +29 -0
- package/apps/server/src/assetRoutes.js +13 -6
- package/apps/server/src/codexRoutes.js +11 -8
- package/apps/server/src/codexSessions.js +8 -9
- package/apps/server/src/db.js +2 -0
- package/apps/server/src/index.js +9 -6
- package/apps/server/src/relayClient.js +32 -1
- package/apps/server/src/relayServer.js +253 -22
- package/apps/server/src/repository.js +15 -7
- package/apps/server/src/runDispatchService.js +7 -6
- package/apps/server/src/runnerClient.js +17 -6
- package/apps/server/src/systemRoutes.js +7 -2
- package/apps/server/src/taskAutomation.js +46 -28
- package/apps/server/src/taskRoutes.js +49 -21
- package/apps/server/src/workspaceFiles.js +9 -10
- package/apps/web/dist/assets/CodexSessionManagerDialog-CtzjZA1J.js +1 -0
- package/apps/web/dist/assets/TaskDiffReviewDialog-X_95jGra.js +12 -0
- package/apps/web/dist/assets/WorkbenchSettingsDialog-zIatQARE.js +26 -0
- package/apps/web/dist/assets/WorkbenchView-DdUC0bdn.js +236 -0
- package/apps/web/dist/assets/index-AToBR22u.js +25 -0
- package/apps/web/dist/assets/{index-gJE-amF1.css → index-XmpKh7Q0.css} +1 -1
- package/apps/web/dist/assets/{info-Dsbc2slY.js → info-Cd13CGX7.js} +1 -1
- package/apps/web/dist/index.html +2 -2
- package/package.json +1 -1
- package/packages/shared/src/index.js +16 -0
- package/scripts/doctor.mjs +4 -3
- package/apps/web/dist/assets/CodexSessionManagerDialog-C_yjlnuC.js +0 -1
- package/apps/web/dist/assets/TaskDiffReviewDialog-sQO9cujF.js +0 -12
- package/apps/web/dist/assets/WorkbenchSettingsDialog-0PZqZQaG.js +0 -26
- package/apps/web/dist/assets/WorkbenchView-CRCR5mRp.js +0 -236
- package/apps/web/dist/assets/index-RfarWdXS.js +0 -25
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.14
|
|
4
|
+
|
|
5
|
+
- 工作台、设置、项目管理、代码变更、编辑任务等核心界面补齐中英双语支持,并新增前端 `i18n` 基础设施,后续扩展语言成本更低。
|
|
6
|
+
- 服务端错误返回补齐稳定的 `messageKey`,前端优先按 key 翻译;同时把 Relay 诊断、自动化通知、任务设置等动态文本一并接入 locale,减少英文界面穿透中文的问题。
|
|
7
|
+
- 优化英文界面的文案长度与布局细节,收短 `Changes`、`Projects` 等标题,调整项目列表与代码变更面板在英文场景下的换行与排布表现。
|
|
8
|
+
- 补齐多语言相关自动化验证:修复前端错误格式化回归,更新页面级 E2E 基座,并验证最新 turn 展开、历史执行过程加载和滚动跟随等关键流程未受影响。
|
|
9
|
+
|
|
10
|
+
## 0.1.13
|
|
11
|
+
|
|
12
|
+
- 加固 Relay 登录链路:登录与管理登录改为 `POST`,并新增登录限流,降低暴力尝试与口令暴露风险。
|
|
13
|
+
- 优化 Relay 相关页面的手机端体验,登录页、管理登录页和统计页在小屏设备上都能更稳定使用。
|
|
14
|
+
- 新建项目后自动选中新项目、关闭弹窗并提示成功,减少新建后的二次操作成本。
|
|
15
|
+
- 编辑区发送按钮补齐三段状态反馈:`发送`、`发送中`、`执行中`,降低“点了没反应”的疑惑。
|
|
16
|
+
- README 中英文版同步精简,把安装、启动、使用方式前置;同时把 Node 版本说明改成更易懂的推荐文案。
|
|
17
|
+
|
|
3
18
|
## 0.1.12
|
|
4
19
|
|
|
5
20
|
- Relay 新增按天聚合的租户使用统计,自动记录设备连接与真实转发请求,方便查看“今天有哪些同事实际用了 Relay”。
|
package/README.en.md
CHANGED
|
@@ -2,178 +2,88 @@
|
|
|
2
2
|
|
|
3
3
|
[中文 README](README.md)
|
|
4
4
|
|
|
5
|
-
PromptX is a local AI agent workspace
|
|
5
|
+
PromptX is a local AI agent workspace.
|
|
6
6
|
|
|
7
|
-
It
|
|
8
|
-
|
|
9
|
-
- Organize requirements, screenshots, notes, `md`, `txt`, and `pdf` before sending
|
|
10
|
-
- Bind each task to a stable project and working directory
|
|
11
|
-
- Review execution logs, final replies, run history, and code diffs in one place
|
|
12
|
-
|
|
13
|
-
If you already like agent CLIs but want a cleaner way to manage context, review code changes, and continue work across multiple rounds, PromptX is built for that.
|
|
7
|
+
It organizes `Codex`, `Claude Code`, and `OpenCode` into a cleaner workflow:
|
|
14
8
|
|
|
15
9
|
```text
|
|
16
10
|
Task -> Project -> Directory -> Thread -> Run -> Diff
|
|
17
11
|
```
|
|
18
12
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
- Keep using the agent you already prefer: `Codex`, `Claude Code`, or `OpenCode`
|
|
22
|
-
- Let PromptX organize tasks, projects, directories, threads, and run history
|
|
23
|
-
- Prepare context first, then send a better request
|
|
24
|
-
- Review process logs, final output, and code diffs on the same screen
|
|
25
|
-
- Extend from local use to remote access when needed
|
|
26
|
-
|
|
27
|
-
## What You Get
|
|
28
|
-
|
|
29
|
-
- A task workspace for ongoing collaboration, not a one-shot prompt box
|
|
30
|
-
- A reusable project layer that keeps the same working directory and agent thread together
|
|
31
|
-
- A persistent run history you can revisit later
|
|
32
|
-
- Built-in diff review for code-generating tasks
|
|
33
|
-
- Remote access options, including self-hosted Relay and an author-hosted service
|
|
34
|
-
|
|
35
|
-
## Why It Works Well For Codex / Claude Code / OpenCode Users
|
|
36
|
-
|
|
37
|
-
### Better Input Experience
|
|
38
|
-
|
|
39
|
-
- Tasks are durable context containers, not temporary prompts
|
|
40
|
-
- You can assemble text, screenshots, imported files, notes, and todos before sending
|
|
41
|
-
- Each task can be bound to a PromptX project, and each project can be bound to a fixed working directory
|
|
42
|
-
- Reuse the same project and thread for the same repo instead of repeating environment setup every round
|
|
43
|
-
- The input area supports text, images, `md`, `txt`, and `pdf`
|
|
44
|
-
|
|
45
|
-
### Better Output Experience
|
|
46
|
-
|
|
47
|
-
- Execution logs are visible in the center panel instead of being buried in terminal scrollback
|
|
48
|
-
- Every run keeps its prompt, event log, final reply, and summary
|
|
49
|
-
- Built-in code diff review makes it easier to inspect what the agent actually changed
|
|
50
|
-
- System diagnostics show runner concurrency, queueing, recovery, and stop-related states
|
|
51
|
-
|
|
52
|
-
### One Workspace For Multiple Engines
|
|
53
|
-
|
|
54
|
-
- PromptX currently supports `Codex`, `Claude Code`, and `OpenCode`
|
|
55
|
-
- The same task, project, event, and run UI works across all of them
|
|
56
|
-
- More engines can be added without changing the overall workflow
|
|
57
|
-
|
|
58
|
-
## Screenshots
|
|
59
|
-
|
|
60
|
-
All screenshots below use the `Glass Light` theme.
|
|
61
|
-
|
|
62
|
-
### Workspace Overview
|
|
63
|
-
|
|
64
|
-
Manage tasks on the left, inspect execution in the center, and prepare inputs on the right.
|
|
65
|
-
|
|
66
|
-

|
|
67
|
-
|
|
68
|
-
### Execution Focus
|
|
69
|
-
|
|
70
|
-
Review process logs, turn summaries, and final replies in one continuous view.
|
|
71
|
-
|
|
72
|
-

|
|
73
|
-
|
|
74
|
-
### Code Diff Review
|
|
75
|
-
|
|
76
|
-
Inspect code changes by workspace, accumulated task history, or a single run.
|
|
77
|
-
|
|
78
|
-

|
|
79
|
-
|
|
80
|
-
### Project Manager
|
|
81
|
-
|
|
82
|
-
Bind tasks to a fixed project, working directory, and engine so context stays stable.
|
|
83
|
-
|
|
84
|
-

|
|
85
|
-
|
|
86
|
-
### Remote Relay Settings
|
|
87
|
-
|
|
88
|
-
Configure remote access directly from the settings panel.
|
|
89
|
-
|
|
90
|
-

|
|
91
|
-
|
|
92
|
-
### Mobile Remote Usage
|
|
93
|
-
|
|
94
|
-
PromptX can also be accessed remotely on mobile devices, which is a major highlight for many people who want to keep an eye on `Codex`, `Claude Code`, or `OpenCode` runs away from their desk.
|
|
95
|
-
|
|
96
|
-

|
|
97
|
-
|
|
98
|
-
## Core Workflow
|
|
99
|
-
|
|
100
|
-
### 1. Organize First, Then Send
|
|
101
|
-
|
|
102
|
-
Instead of dumping a large prompt into the agent immediately, collect the task goal, supporting files, screenshots, logs, and constraints first.
|
|
13
|
+
You keep using the agent CLI you already know, while PromptX brings inputs, project binding, execution logs, final replies, and code diffs into one workspace.
|
|
103
14
|
|
|
104
|
-
|
|
15
|
+
## Quick Start
|
|
105
16
|
|
|
106
|
-
|
|
17
|
+
### Requirements
|
|
107
18
|
|
|
108
|
-
|
|
19
|
+
- Recommended: `Node 22 LTS`
|
|
20
|
+
- Currently compatible with stable `Node 20 / 22 / 24`
|
|
21
|
+
- At least one supported engine installed locally:
|
|
22
|
+
- `codex --version`
|
|
23
|
+
- `claude --version`
|
|
24
|
+
- `opencode --version`
|
|
109
25
|
|
|
110
|
-
|
|
26
|
+
### Install
|
|
111
27
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
### 4. Continue Long Tasks Without Losing Structure
|
|
28
|
+
```bash
|
|
29
|
+
npm install -g @muyichengshayu/promptx
|
|
30
|
+
promptx doctor
|
|
31
|
+
```
|
|
117
32
|
|
|
118
|
-
|
|
33
|
+
### Start
|
|
119
34
|
|
|
120
|
-
|
|
35
|
+
Default URL: `http://127.0.0.1:3000`
|
|
121
36
|
|
|
122
|
-
|
|
37
|
+
```bash
|
|
38
|
+
promptx start
|
|
39
|
+
promptx status
|
|
40
|
+
promptx stop
|
|
41
|
+
```
|
|
123
42
|
|
|
124
|
-
|
|
43
|
+
### How To Use
|
|
125
44
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
45
|
+
1. Create a task and prepare the context you want to send
|
|
46
|
+
2. Bind the task to a project
|
|
47
|
+
3. Choose a working directory and engine for that project
|
|
48
|
+
4. Send and review execution logs, final replies, and code diffs on the same page
|
|
129
49
|
|
|
130
|
-
|
|
50
|
+
## Core Features
|
|
131
51
|
|
|
132
|
-
- `
|
|
52
|
+
- Structured input: text, images, `md`, `txt`, and `pdf`
|
|
53
|
+
- Project reuse: keep a stable directory and engine/thread context
|
|
54
|
+
- Visible process: inspect logs, final replies, and run history
|
|
55
|
+
- Built-in diff review: inspect workspace, accumulated task, or per-run changes
|
|
56
|
+
- Multi-engine support: `Codex`, `Claude Code`, `OpenCode`
|
|
57
|
+
- Remote access: connect from mobile or external networks through Relay
|
|
133
58
|
|
|
134
|
-
|
|
59
|
+
## Screenshots
|
|
135
60
|
|
|
136
|
-
|
|
61
|
+
### Workspace
|
|
137
62
|
|
|
138
|
-
-
|
|
139
|
-
- Suitable for personal long-term use or small internal teams
|
|
140
|
-
- Current docs already cover startup, tenants, domains, Nginx, and troubleshooting
|
|
63
|
+

|
|
141
64
|
|
|
142
|
-
###
|
|
65
|
+
### Settings
|
|
143
66
|
|
|
144
|
-
|
|
67
|
+

|
|
145
68
|
|
|
146
|
-
|
|
147
|
-
- Good for users who want mobile access without self-hosting first
|
|
148
|
-
- Limited seats are available; contact the author if you want an account
|
|
69
|
+
### Mobile
|
|
149
70
|
|
|
150
|
-
|
|
71
|
+

|
|
151
72
|
|
|
152
|
-
##
|
|
73
|
+
## Why It Helps
|
|
153
74
|
|
|
154
|
-
-
|
|
155
|
-
-
|
|
156
|
-
-
|
|
157
|
-
-
|
|
158
|
-
-
|
|
75
|
+
- Keeps long-running tasks out of scattered terminal tabs and notes
|
|
76
|
+
- Avoids re-explaining directories, projects, and context every round
|
|
77
|
+
- Lets you review process and result together, not just the final answer
|
|
78
|
+
- Makes code review easier with built-in diff inspection
|
|
79
|
+
- Keeps tasks accessible on mobile when you are away from your desk
|
|
159
80
|
|
|
160
|
-
##
|
|
81
|
+
## Good Fit For
|
|
161
82
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
## Start
|
|
168
|
-
|
|
169
|
-
Default URL: `http://127.0.0.1:3000`
|
|
170
|
-
|
|
171
|
-
```bash
|
|
172
|
-
promptx start
|
|
173
|
-
promptx status
|
|
174
|
-
promptx stop
|
|
175
|
-
promptx relay start
|
|
176
|
-
```
|
|
83
|
+
- Preparing requirements, screenshots, logs, and files before sending
|
|
84
|
+
- Reusing the same project and directory across many rounds
|
|
85
|
+
- Reviewing execution logs, final output, and code changes together
|
|
86
|
+
- Exposing local PromptX to phones or external networks through Relay
|
|
177
87
|
|
|
178
88
|
## Development
|
|
179
89
|
|
|
@@ -190,26 +100,42 @@ Workspace structure:
|
|
|
190
100
|
- `apps/runner`: standalone runner process
|
|
191
101
|
- `packages/shared`: shared constants and event protocol
|
|
192
102
|
|
|
193
|
-
|
|
103
|
+
## Remote Access
|
|
104
|
+
|
|
105
|
+
For Relay setup, see:
|
|
194
106
|
|
|
195
|
-
- `
|
|
107
|
+
- `docs/relay-quickstart.md`
|
|
196
108
|
|
|
197
|
-
|
|
109
|
+
That guide covers:
|
|
198
110
|
|
|
199
|
-
-
|
|
200
|
-
-
|
|
201
|
-
-
|
|
111
|
+
- Connecting a local PromptX client to Relay
|
|
112
|
+
- Starting and managing Relay on a server
|
|
113
|
+
- Multi-tenant subdomain setup
|
|
114
|
+
- `promptx relay tenant add/list/remove`
|
|
115
|
+
- `promptx relay start/stop/restart/status`
|
|
202
116
|
|
|
203
|
-
|
|
117
|
+
## Zentao Extension
|
|
204
118
|
|
|
205
|
-
|
|
206
|
-
|
|
119
|
+
The repository includes a Zentao Chrome extension at `apps/zentao-extension`.
|
|
120
|
+
|
|
121
|
+
Notes:
|
|
122
|
+
|
|
123
|
+
- The published npm package does not include this extension directory
|
|
124
|
+
- If you need it, clone the repo and load it manually
|
|
125
|
+
|
|
126
|
+
Steps:
|
|
127
|
+
|
|
128
|
+
1. Open `chrome://extensions`
|
|
129
|
+
2. Enable developer mode
|
|
130
|
+
3. Click “Load unpacked”
|
|
131
|
+
4. Select `apps/zentao-extension`
|
|
207
132
|
|
|
208
133
|
## Notes
|
|
209
134
|
|
|
210
135
|
- PromptX is currently optimized for local-first, mostly single-user workflows
|
|
211
136
|
- Different engines may expose different tool capabilities and event richness
|
|
212
|
-
-
|
|
137
|
+
- Use Relay if you need cross-device access
|
|
138
|
+
- Runtime data is stored under `~/.promptx/`
|
|
213
139
|
|
|
214
140
|
## License
|
|
215
141
|
|