@muyichengshayu/promptx 0.1.11 → 0.1.13

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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.13
4
+
5
+ - 加固 Relay 登录链路:登录与管理登录改为 `POST`,并新增登录限流,降低暴力尝试与口令暴露风险。
6
+ - 优化 Relay 相关页面的手机端体验,登录页、管理登录页和统计页在小屏设备上都能更稳定使用。
7
+ - 新建项目后自动选中新项目、关闭弹窗并提示成功,减少新建后的二次操作成本。
8
+ - 编辑区发送按钮补齐三段状态反馈:`发送`、`发送中`、`执行中`,降低“点了没反应”的疑惑。
9
+ - README 中英文版同步精简,把安装、启动、使用方式前置;同时把 Node 版本说明改成更易懂的推荐文案。
10
+
11
+ ## 0.1.12
12
+
13
+ - Relay 新增按天聚合的租户使用统计,自动记录设备连接与真实转发请求,方便查看“今天有哪些同事实际用了 Relay”。
14
+ - 新增 Relay 管理统计页 `/relay/admin/usage` 与对应接口,可直接查看今日活跃租户、连接次数、请求次数、最近设备与最近活跃时间。
15
+ - 统计能力默认落在云端 Relay 侧,不依赖本地 PromptX client 升级;同时补充文档说明与服务端测试覆盖。
16
+
3
17
  ## 0.1.11
4
18
 
5
19
  - 加固 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 built for long-running coding tasks.
5
+ PromptX is a local AI agent workspace.
6
6
 
7
- It helps `Codex`, `Claude Code`, and `OpenCode` feel less like isolated CLI sessions and more like a structured workflow with better inputs, better outputs, and reusable context.
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
- ## At A Glance
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
- ![PromptX workspace overview](docs/assets/readme-workbench-glass.png)
67
-
68
- ### Execution Focus
69
-
70
- Review process logs, turn summaries, and final replies in one continuous view.
71
-
72
- ![PromptX execution focus](docs/assets/readme-execution-focus-glass.png)
73
-
74
- ### Code Diff Review
75
-
76
- Inspect code changes by workspace, accumulated task history, or a single run.
77
-
78
- ![PromptX code diff review](docs/assets/readme-diff-glass.png)
79
-
80
- ### Project Manager
81
-
82
- Bind tasks to a fixed project, working directory, and engine so context stays stable.
83
-
84
- ![PromptX project manager](docs/assets/readme-project-manager-glass.png)
85
-
86
- ### Remote Relay Settings
87
-
88
- Configure remote access directly from the settings panel.
89
-
90
- ![PromptX relay settings](docs/assets/readme-settings-relay-glass.png)
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
- ![PromptX mobile remote access](docs/assets/readme-mobile-remote-glass.png)
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
- ### 2. Bind The Task To A Stable Project
15
+ ## Quick Start
105
16
 
106
- Projects keep the working directory and engine session stable, so future rounds do not need the same environment explanation again and again.
17
+ ### Requirements
107
18
 
108
- ### 3. Review Process, Result, And Diff Together
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
- PromptX makes one run easier to inspect by splitting it into three visible layers:
26
+ ### Install
111
27
 
112
- - Process: what the agent did
113
- - Result: what the agent replied with
114
- - Diff: what changed in the codebase
115
-
116
- ### 4. Continue Long Tasks Without Losing Structure
28
+ ```bash
29
+ npm install -g @muyichengshayu/promptx
30
+ promptx doctor
31
+ ```
117
32
 
118
- Long-running tasks keep their task context, project binding, and run history in place, instead of being scattered across terminal tabs and notes.
33
+ ### Start
119
34
 
120
- ## Remote Access
35
+ Default URL: `http://127.0.0.1:3000`
121
36
 
122
- PromptX supports full remote access workflows, not just temporary LAN exposure.
37
+ ```bash
38
+ promptx start
39
+ promptx status
40
+ promptx stop
41
+ ```
123
42
 
124
- You can choose between:
43
+ ### How To Use
125
44
 
126
- - Local-only access for personal desktop use
127
- - Self-hosted Relay on your own server
128
- - The hosted remote service maintained by the author
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
- For setup details, see:
50
+ ## Core Features
131
51
 
132
- - `docs/relay-quickstart.md`
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
- ### Self-Hosted Relay
59
+ ## Screenshots
135
60
 
136
- Recommended if you want full control over your own domain, data flow, and access strategy.
61
+ ### Workspace
137
62
 
138
- - Good for users with a server and basic ops knowledge
139
- - Suitable for personal long-term use or small internal teams
140
- - Current docs already cover startup, tenants, domains, Nginx, and troubleshooting
63
+ ![PromptX workspace](docs/assets/workbench-overview.jpg)
141
64
 
142
- ### Author-Hosted Remote Service
65
+ ### Settings
143
66
 
144
- If you do not want to deploy your own Relay, the author is already running a hosted remote service.
67
+ ![PromptX settings](docs/assets/settings-panel.jpg)
145
68
 
146
- - Good for trying remote PromptX quickly
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
- This hosted option is best treated as a convenience offering. If you need long-term guaranteed capacity, self-hosting is still the better path.
71
+ ![PromptX mobile](docs/assets/mobile-remote.jpg)
151
72
 
152
- ## Best Use Cases
73
+ ## Why It Helps
153
74
 
154
- - Prepare requirements, screenshots, and docs before sending a coding task
155
- - Reuse the same working directory and thread across many rounds
156
- - Review execution logs, final output, and code changes together
157
- - Access PromptX remotely from a phone or another device
158
- - Run PromptX on a remote machine for always-on personal usage
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
- ## Installation
81
+ ## Good Fit For
161
82
 
162
- ```bash
163
- npm install -g @muyichengshayu/promptx
164
- promptx doctor
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
- Screenshot generator used for the README:
103
+ ## Remote Access
104
+
105
+ For Relay setup, see:
194
106
 
195
- - `scripts/capture-readme-screenshots.mjs`
107
+ - `docs/relay-quickstart.md`
196
108
 
197
- ## Supported Engines
109
+ That guide covers:
198
110
 
199
- - `Codex`
200
- - `Claude Code`
201
- - `OpenCode`
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
- Related docs:
117
+ ## Zentao Extension
204
118
 
205
- - `docs/agent-run-protocol.md`
206
- - `docs/relay-quickstart.md`
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
- - Restricted engine permissions will directly affect file edits, command execution, and automation
137
+ - Use Relay if you need cross-device access
138
+ - Runtime data is stored under `~/.promptx/`
213
139
 
214
140
  ## License
215
141