Skip to content

Commit c264039

Browse files
authored
Merge pull request #52 from spencerkit/develop
Merge develop into main
2 parents 0043f4c + 7a9ae25 commit c264039

155 files changed

Lines changed: 15885 additions & 1119 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/khaki-rivers-smile.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@spencer-kit/coder-studio": patch
3+
---
4+
5+
Release the CI pipeline repair by removing unused server symbols that broke the
6+
Windows package build and by adding the standalone server build to `ci:build`.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ The same workspace URL works across all devices — interface adapts automatical
143143
| [Common Workflows](docs/help/workflows.md) | Task-based tutorials |
144144
| [Troubleshooting](docs/help/troubleshooting.md) | FAQ and known issues |
145145
| [CLI Reference](docs/help/cli.md) | Command-line options |
146-
| [GitHub Wiki Source](docs/wiki/README.md) | Wiki pages for product positioning, security, and workflows |
146+
| [GitHub Wiki Source](docs/wiki/README.md) | Wiki source pages and publish flow |
147147
| [AI Coding Terms](docs/wiki/AI-Coding-Terms.md) | Vibe coding, agentic harnesses, eval harnesses, and where Coder Studio fits |
148148

149149
---

README.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ coder-studio open
143143
| [常用工作流](docs/help/workflows.md) | 任务式教程 |
144144
| [故障排除](docs/help/troubleshooting.md) | 常见问题和修复 |
145145
| [CLI 参考](docs/help/cli.md) | 命令行选项 |
146-
| [GitHub Wiki 源文件](docs/wiki/README.md) | 产品定位、安全说明和工作流 Wiki 页面 |
146+
| [GitHub Wiki 源文件](docs/wiki/README.md) | Wiki 源页面与发布流程 |
147147
| [AI Coding 术语](docs/wiki/AI-Coding-Terms.md) | Vibe coding、agentic harness、eval harness,以及 Coder Studio 的定位 |
148148

149149
---

docs/help/cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ coder-studio config
7070
# 修改配置
7171
coder-studio config --host 0.0.0.0
7272
coder-studio config --port 8080
73-
coder-studio config --data-dir /path/to/data
73+
coder-studio config --state-dir /path/to/data
7474
coder-studio config --password mypassword
7575
```
7676

docs/help/desktop-guide.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,21 @@
9898

9999
高级设置键 `git.autofetchPeriodSec` 控制活动工作区的周期性远程 fetch,默认值是 `180` 秒;设为 `0` 会关闭周期性 fetch,但不会影响打开工作区时的自动 fetch,也不会影响手动点击 **Fetch**
100100

101-
当前设置页还没有这个高级键的图形化入口。如需手动调整,可以直接写入本地运行时数据库的 `user_settings` 表。默认数据库通常位于 `~/.coder-studio/data/coder-studio.db`;如果你通过 `coder-studio config --data-dir ...` 改过数据目录,请使用你自己的数据库路径
101+
当前设置页还没有这个高级键的图形化入口。如需手动调整,可以直接编辑本地状态目录里的 `settings.json`。默认路径通常是 `~/.coder-studio/data/state/settings.json`;如果你通过 `coder-studio config --state-dir ...` 改过状态目录,请使用你自己的路径
102102

103103
```bash
104-
sqlite3 ~/.coder-studio/data/coder-studio.db "
105-
INSERT INTO user_settings (key, value)
106-
VALUES ('git.autofetchPeriodSec', '60')
107-
ON CONFLICT(key) DO UPDATE SET value = excluded.value;
108-
"
104+
node -e '
105+
const fs = require("node:fs");
106+
const path = require("node:path");
107+
const file = path.join(process.env.HOME, ".coder-studio", "data", "state", "settings.json");
108+
const doc = fs.existsSync(file)
109+
? JSON.parse(fs.readFileSync(file, "utf8"))
110+
: { version: 1, settings: {} };
111+
doc.version = 1;
112+
doc.settings = { ...(doc.settings || {}), "git.autofetchPeriodSec": 60 };
113+
fs.mkdirSync(path.dirname(file), { recursive: true });
114+
fs.writeFileSync(file, JSON.stringify(doc, null, 2) + "\n");
115+
'
109116
```
110117

111118
### 查看变更内容

docs/help/troubleshooting.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@
8787
### 配置文件
8888

8989
- CLI 配置:`~/.coder-studio/config.json`
90-
- 数据目录`~/.coder-studio/`(含 SQLite 数据库)
91-
- 可以通过 `coder-studio config --data-dir /new/path` 修改数据目录
90+
- 状态目录`~/.coder-studio/data/`
91+
- 可以通过 `coder-studio config --state-dir /new/path` 修改状态目录
9292

9393
## 提交问题前建议提供哪些信息
9494

docs/runtime-structure.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Runtime Directory Structure
22

3-
Coder Studio uses a runtime directory for storing runtime configuration and local data.
3+
Coder Studio uses a runtime directory for storing runtime configuration and local state.
44

55
## Default Location
66

@@ -13,8 +13,7 @@ Coder Studio uses a runtime directory for storing runtime configuration and loca
1313
```
1414
~/.coder-studio/
1515
├── runtime.json # Runtime configuration (port, token)
16-
├── data/ # SQLite database and user data
17-
│ └── coder-studio.db # Main database
16+
├── data/ # Persistent state JSON files and local app state
1817
└── logs/ # Server logs (Phase 2+)
1918
```
2019

docs/superpowers/plans/2026-04-25-workspace-route-simplification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,7 @@ test.describe('workspace route history', () => {
11731173
sandboxDir = mkdtempSync(join(tmpdir(), 'coder-studio-workspace-history-'));
11741174
firstWorkspaceDir = join(sandboxDir, 'history-first');
11751175
secondWorkspaceDir = join(sandboxDir, 'history-second');
1176-
dbPath = join(sandboxDir, 'coder-studio.db');
1176+
dbPath = join(sandboxDir, 'legacy-state.sqlite');
11771177
runtimeDir = join(sandboxDir, 'runtime');
11781178

11791179
mkdirSync(join(firstWorkspaceDir, '.git'), { recursive: true });

docs/superpowers/plans/2026-05-11-supervisor-execution-policy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ git commit -m "feat: add supervisor schema v2 upgrade"
328328
```ts
329329
it("prompts to delete and rebuild when foreground startup sees an incompatible schema", async () => {
330330
startServer.mockRejectedValueOnce(
331-
new Error('{"code":"db_incompatible_schema","dbPath":"/tmp/coder-studio.db","message":"schema mismatch"}')
331+
new Error('{"code":"db_incompatible_schema","dbPath":"/tmp/legacy-state.sqlite","message":"schema mismatch"}')
332332
);
333333
confirmYesNo.mockResolvedValue(true);
334334

0 commit comments

Comments
 (0)