Commit Graph

1178 Commits

Author SHA1 Message Date
linkai0924
10ef26b1d4
Merge pull request #107 from y574444354/fix/raw-dump-ua
fix(raw-dump): add user-agent header to worker requests
2026-05-15 14:47:27 +08:00
IronRookieCoder
39106e4f9d
Merge branch 'main' into fix-snip-tool 2026-05-15 14:40:34 +08:00
geroge
37fe62a5de
Merge pull request #91 from IronRookieCoder/fix/issue-49-show-memory-pid
feat(config): add showMemoryPid setting to toggle footer memory/PID display
2026-05-15 14:34:04 +08:00
林凯90331
3be987891b fix(raw-dump): add user-agent header to worker requests
Set User-Agent to csc/${version} in both auth() and authWithFallback()

Signed-off-by: 林凯90331 <90331@sangfor.com>

Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
2026-05-15 14:33:33 +08:00
geroge
ba9c2e1538
Merge pull request #89 from IronRookieCoder/fix/issue-46-47
fix(windows): prevent terminal startup failures
2026-05-15 14:33:28 +08:00
geroge
8e52334f0a
Merge pull request #83 from IronRookieCoder/fix/issue-37-bash-autobg
fix(bash): wake foreground task after auto-backgrounding
2026-05-15 14:32:20 +08:00
geroge
0007879cf4
Merge pull request #82 from IronRookieCoder/fix/issue-41
fix(cursor): handle ANSI wrapped line offset recovery
2026-05-15 14:31:48 +08:00
DoSun
ecb0df50d3 fix: add type guards and null checks for UUID handling in snip functionality
- Add UUID type import and type guard in force-snip command
- Add null/undefined checks in snipCompact, snipProjection, and sessionStorage
- Improve optional chaining in SnipTool for safer property access
- Prevent potential runtime errors from invalid UUID values

Co-Authored-By: claude-sonnet-4-6 <noreply@anthropic.com>
2026-05-15 14:26:33 +08:00
github-actions[bot]
de83394e8a chore(release): bump version to 4.0.26 2026-05-15 03:47:01 +00:00
linkai0924
7d38f3af4b
Merge pull request #106 from y574444354/fix/semver
fix(deps): move semver from devDependencies to dependencies
2026-05-15 11:44:22 +08:00
林凯90331
c0ff0fb716 fix(deps): move semver from devDependencies to dependencies
semver is required at runtime by the Node.js polyfill in cli-node.js

(globalThis.Bun.semver fallback) and by src/utils/semver.ts fallback.

Moving it to dependencies ensures it is installed during global npm install.

Signed-off-by: 林凯90331 <90331@sangfor.com>

Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
2026-05-15 11:39:45 +08:00
github-actions[bot]
90f27f36d6 chore(release): bump version to 4.0.25 2026-05-15 03:18:45 +00:00
linkai0924
117a857b25
Merge pull request #105 from y574444354/fix/publish
ci(publish-npm): fix publish workflow
2026-05-15 11:18:01 +08:00
林凯90331
0641c2857f ci(publish-npm): remove --ignore-scripts from publish command
Allow lifecycle scripts to run during npm publish for both actual and dry-run releases.

Signed-off-by: 林凯90331 <90331@sangfor.com>

Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
2026-05-15 11:17:07 +08:00
linkai0924
b90c8fc828
Merge pull request #104 from y574444354/fix/centos-input
fix(ink): treat newline as return and suppress favorite fetch error in TUI
2026-05-15 11:16:39 +08:00
林凯90331
675ebea846 ci(publish-npm): switch from vite build to default build
Replace bun run build:vite with bun run build in the publish workflow.

Signed-off-by: 林凯90331 <90331@sangfor.com>

Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
2026-05-15 11:14:12 +08:00
林凯90331
6b5b801dae fix(ink): treat newline as return and suppress favorite fetch error in TUI
Some terminals on CentOS emit \n or \r\n instead of \r for the Enter key.

Map both sequences to 'return' in parseKeypress so key.return is set correctly.

Replace console.warn with logForDebugging in favorite.ts to prevent

network errors from polluting the TUI output.

Signed-off-by: 林凯90331 <90331@sangfor.com>

Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
2026-05-15 11:06:18 +08:00
github-actions[bot]
f2585ae08b chore(release): bump version to 4.0.24 2026-05-15 02:40:29 +00:00
DoSun
22c5c7a1bb
Merge pull request #103 from y574444354/fix/serve
Fix/serve
2026-05-15 10:38:57 +08:00
linkai0924
5eea9bac64
Merge pull request #102 from y574444354/feat/binary-archive
fix(workflow): use raw tag name for release and drop v prefix from ar…
2026-05-15 10:36:15 +08:00
林凯90331
5758b7dcef fix(workflow): use raw tag name for release and drop v prefix from artifact
Release now uses the exact tag name (e.g., v4.0.23 or 4.0.23) instead of reconstructing it.

Artifact filenames no longer include a v prefix (e.g., csc-4.0.23-linux-x64.tar.gz).

Existing releases will have new artifacts appended instead of recreated.

Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
2026-05-15 10:34:19 +08:00
DoSun
9f5502b4b6 fix: prevent SSE event cross-workspace leakage
- Register session cwd before publishing created event (was async void,
  causing cwd to be undefined during event dispatch)
- Fix EventBus cwd filter: skip events when sessionCwd is undefined
  instead of allowing them through unfiltered

Co-Authored-By: claude-sonnet-4-6 <noreply@anthropic.com>
2026-05-15 10:34:06 +08:00
DoSun
196ff5ba21 feat: add task notification mode and skip review builtin option
- Add TASK_NOTIFICATION_TAG to distinguish task notifications from regular prompts
- Add SKIP_REVIEW_BUILTIN=1 env var to skip review builtin generation
  during dev/build for faster startup

Co-Authored-By: claude-sonnet-4-6 <noreply@anthropic.com>
2026-05-15 10:34:05 +08:00
DoSun
e93a60264c fix: resolve session status and cross-workspace leakage issues
- Fix GET /session/status returning empty object due to missing await
  (c.json() was serializing Promise instead of resolved value)
- Add getEffectiveBusyStatus() to prioritize actual prompting state
- Supplement status responses with persisted sessions from loadedIndex
- Add strict cwd filtering to GET /session list to prevent
  sessions from appearing across multiple workspaces
- Add busy_status field to GET /session/:id response

This closes the issue where /conversations/status returns {} even
though /conversations shows running sessions, and prevents the same
session from appearing in multiple workspace requests.

Co-Authored-By: claude-sonnet-4-6 <noreply@anthropic.com>
2026-05-15 10:34:05 +08:00
DoSun
ad7bc194b2
Merge pull request #101 from y574444354/fix/some-task
fix: resolve serve command hanging in Node.js runtime
2026-05-15 10:33:36 +08:00
DoSun
f21aa406db fix: resolve serve command hanging in Node.js runtime
- Add Bun.serve polyfill using Node.js http.createServer to bridge Hono fetch handler
- Add Bun.semver polyfill delegating to npm semver package
- Add Bun.version and Bun.env stubs
- Fix childSpawn.ts to only pass -d/--feature flags for .ts/.tsx source files
- Make serve() async to correctly resolve port when --port 0 (random allocation)
2026-05-15 10:31:59 +08:00
linkai0924
96913f7ead
Merge pull request #100 from y574444354/feat/binary-archive
fix(workflow): correct download-artifact action SHA
2026-05-15 10:29:17 +08:00
林凯90331
a7bc970ece fix(workflow): correct download-artifact action SHA
Use the proper commit SHA for actions/download-artifact@v4.

The previous SHA belonged to actions/upload-artifact, causing resolution failure.

Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
2026-05-15 10:25:04 +08:00
linkai0924
f328d69963
Merge pull request #99 from y574444354/feat/binary-archive
ci: add publish binary workflow
2026-05-15 10:20:32 +08:00
linkai0924
c207681816
Merge pull request #98 from y574444354/fix/centos-input
fix(ink): handle enter key on centos
2026-05-15 10:19:59 +08:00
林凯90331
beb268eca0 fix(ink): handle enter key on centos
Some terminals on CentOS emit 'enter' instead of 'return' for the Enter key.

Treat both names as the Return key to ensure consistent input behavior across platforms.

Signed-off-by: 林凯90331 <90331@sangfor.com>

Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
2026-05-15 10:17:22 +08:00
林凯90331
332469c4e9 ci: add publish binary workflow
Add workflow_dispatch workflow for building and publishing cross-platform binaries.

Supports selecting branch/tag and target platform (all or specific).

Windows artifacts are zipped, Linux/macOS are tar.gz.

When triggered by a tag, artifacts are attached to the GitHub Release.

Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
2026-05-15 10:08:27 +08:00
github-actions[bot]
34903c97e8 chore(release): bump version to 4.0.23 2026-05-14 13:40:24 +00:00
linkai0924
19a6ed1c1d
Merge pull request #97 from y574444354/fix/compile-issue-0514-2
ci(publish-npm): pin bun version, add vite build, and ignore scripts
2026-05-14 21:39:28 +08:00
林凯90331
1e10473fb7 ci(publish-npm): pin bun version, add vite build, and ignore scripts on publish
Pin bun to 1.3.11 for reproducible builds. Add explicit vite build step before publishing. Add --ignore-scripts to npm publish for security.

Signed-off-by: 林凯90331 <90331@sangfor.com>

Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
2026-05-14 21:37:15 +08:00
github-actions[bot]
49808bb967 chore(release): bump version to 4.0.22 2026-05-14 12:54:58 +00:00
linkai0924
4703b608a8
Merge pull request #96 from y574444354/fix/compile-issue-0514
fix(utils): replace using syntax with withDisposable for node v20 compatibility
2026-05-14 20:51:55 +08:00
林凯90331
f7a405f703 fix(utils): replace using syntax with withDisposable for node v20 compatibility
Node.js v20 does not support the  syntax. Replace all  patterns with a new  helper that wraps the operation in try/finally and explicitly calls Symbol.dispose.

Also rename listBuiltinSkillNames to listBuiltinSkills in generate-review-builtin.ts.

Signed-off-by: 林凯90331 <90331@sangfor.com>

Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
2026-05-14 20:48:37 +08:00
DoSun
0fb2ea4af5 fix: 修正 listBuiltinSkills 导入名称
Co-Authored-By: Auto <noreply@anthropic.com>
2026-05-14 20:05:48 +08:00
DoSun
f5d6814a01 feat: 恢复 cloud 子命令注册
从 feat/server-refactor 分支还原 cloud 命令的 CLI 注册逻辑,
动态导入 cloudHandler 并透传所有参数给 cs-cloud 二进制。

Co-Authored-By: Auto <noreply@anthropic.com>
2026-05-14 19:59:02 +08:00
github-actions[bot]
876dc94ed5 chore(release): bump version to 4.0.21 2026-05-14 11:25:31 +00:00
DoSun
f100568b46
Merge pull request #85 from y574444354/fix/serve-command-real-impl
fix: 替换假 server 命令为真实 serve 实现
2026-05-14 19:14:53 +08:00
DoSun
62de2ddc20
Merge pull request #95 from y574444354/feat/server-refactor
Feat/server refactor
2026-05-14 19:14:34 +08:00
IronRookieCoder
7512672684
Merge branch 'y574444354:main' into main 2026-05-14 19:11:06 +08:00
linkai0924
1c22fe8d2a
Merge pull request #94 from y574444354/feat/server-refactor-90331-2
feat(favorite): optimize list caching and expand MCP type support
2026-05-14 19:09:36 +08:00
林凯90331
fd36738e9e feat(favorite): optimize list caching and expand MCP type support
Add 30s in-memory cache for favorite item list to reduce API calls

Expand supported MCP server types beyond local/remote to stdio/sse/ws/sdk and more

Change single MCP server conversion to use stdio type with separate command/args/env fields

Reduce page size from 100 to 20 for faster initial load

Switch parallel remote fetching to sequential to avoid rate limiting

Signed-off-by: 林凯90331 <90331@sangfor.com>

Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
2026-05-14 18:56:44 +08:00
linkai0924
8b4d990489
Merge pull request #93 from y574444354/feat/workflow
ci(publish-npm): add debug output and fault tolerance to version bump…
2026-05-14 18:38:42 +08:00
林凯90331
6a55dcb38e ci(publish-npm): add debug output and fault tolerance to version bump step
Add git status and git diff for debugging visibility during release.

Change git add to -A and append || true to commit/push to prevent workflow failures when there are no changes or push issues.

Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
2026-05-14 18:36:52 +08:00
linkai0924
a41232d294
Merge pull request #92 from y574444354/feat/workflow
fix(ci): recreate tag if it points to old commit
2026-05-14 18:18:08 +08:00
林凯90331
ca59e79568 fix(ci): recreate tag if it points to old commit
Add verification output after syncing package.json and defines.ts

so the logs clearly show whether the version bump succeeded.

Also replace 'Create tag if missing' with 'Create or recreate tag'

that deletes and recreates the tag when it points to a stale commit,

preventing checkout of outdated code from previous failed runs.

Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
2026-05-14 18:12:31 +08:00