Feat/add timestamp to version#452
Open
linkai0924 wants to merge 248 commits into
Open
Conversation
feat: add costrict login provider
strictplan
Rename CLI binary from `ccb` to `csc`, update .gitignore for additional AI tool directories and exe files, and fix unresponsive keyboard input in interactive dialogs by stopping the early input listener before Ink takes over stdin.
…ts and remove dead code
…ation generation Introduce `/project-wiki` bundled skill that orchestrates a multi-stage pipeline to analyze a codebase and generate a complete technical documentation wiki. Adds four specialized sub-agents: - WikiProjectAnalyze: deep repository analysis and classification - WikiCatalogueDesign: dynamic document structure design based on project traits - WikiDocumentGenerate: code-driven technical document authoring - WikiIndexGeneration: structured index and navigation creation Also updates .gitignore to exclude `.costrict`, `.claude`, and `/costrict` directories.
feat(skills): add project-wiki skill for automated technical document…
fix(interactive): stop early input capture before rendering dialogs
- 品牌名从 Claude Code 改为 CoStrict - 版本号更新为 v4.0.1 - 首页边框、标题、分割线、小人等元素统一改为蓝色 - 简单模式(CondensedLogo)添加蓝色圆角边框 - 小人(Clawd)替换为 CoStrict ASCII art 大字标志 - Feed 标题(Recent activity/What's new)改为蓝色
feat: 品牌化首页为 CoStrict 风格
feat:plan相关Agent优化
…un-and-fix agents
- Add generate-review-builtin.ts script (downloads from zgsm-ai/costrict-review) - Add review module (index.ts, extension.ts) with locale-aware skill init - Add CommandLocale module with zh-CN/en templates for /review and /security-review - Integrate REVIEW_AGENTS into builtInAgents.ts - Route /review command to CoStrictReviewer agent - Simplify /security-review to use Skill tool with locale templates - Remove old generate-skills.ts and inline security-review skill Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Files are still present on disk and generated by build:review-builtin. .gitignore rules prevent them from being re-committed. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
开启时会强制所有 Agent 工具调用走异步路径,导致 run_in_background 参数失效,子 agent 始终在后台运行。如需启用请设置 FEATURE_FORK_SUBAGENT=1。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Introduce a framework-decoupled raw-dump module that uploads conversation, summary, and commits data to the CoStrict server in a non-blocking detached worker process. - Add src/services/rawDump/ with index, types, state, spawn, git, worker, and README - Implement reportTurn and reportSession entry points with in-memory dedup and env-based disable switch (CSC_DISABLE_RAW_DUMP / COSTRICT_DISABLE_RAW_DUMP) - Replace sessionDataUploader stub with uploadSessionTurn that delegates to reportTurn Signed-off-by: 林凯90331 <90331@sangfor.com> Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Replace per-turn detached workers with a file-backed queue consumed by
a single long-running batch worker (30s interval, 0-10s jitter).
- queue.ts, batchWorker.ts: file queue with pid-based lock for worker
singleton; tasks deduped by sessionID:messageID before processing
- worker.ts: retry with backoff (5s, 10s) for 429 and network errors;
update commit state per upload so partial failures resume cleanly;
export auth, loadSessionMessages, getSessionDirectory and upload*
helpers for batchWorker reuse
- git.ts: cap commit log at 50 entries within last 7 days; pause 500ms
every 10 commits to spread load
- worker.ts: resolve session jsonl via ~/.claude/projects/{normalized}
with fallbacks, scanning for the file containing the target session
- logger.ts: file + stderr logger gated by CSC_RAW_DUMP_DEBUG, default
silent
- sessionDataUploader.ts: implement createSessionTurnUploader to pick
the last assistant message; query.ts fires uploadSessionTurn after
query_api_streaming_end (non-blocking)
Signed-off-by: 林凯90331 <90331@sangfor.com>
Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
feat(rawDump): add session data raw-dump reporting module
- Add /favorite REPL slash command with list/view/download/load/unload/uninstall - Implement core favorite logic in src/costrict/favorite/ using createCoStrictFetch - Extend GlobalConfig with agents and commands fields for config-layer storage - Adapt skill load/unload to csc's directory-scanning mechanism (~/.claude/skills/) - Adapt MCP load/unload to csc's mcpServers config via saveGlobalConfig() - Decouple from opencode-specific deps: jsonc-parser, Config.invalidate, Filesystem.* Signed-off-by: 林凯90331 <90331@sangfor.com> Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
feat: migrate review agents to unified costrict-review repo
fix: 默认关闭 FORK_SUBAGENT feature flag
feat: migrate favorite command from opencode to csc
…n agent system prompts
- Add headless fallback in `hasPermissionsToUseToolInner` that respects `askUserQuestionTimeoutSeconds` from settings (default 600s) when `shouldAvoidPermissionPrompts` is true, instead of hanging indefinitely - Set `shouldAvoidPermissionPrompts: true` on `toolPermissionContext` in `-p` (pipe/headless) mode so the new path is triggered - Hoist `parsedInput` before the try block so the headless path can use Zod-transformed input (includes defaults like `multiSelect: false`)
…in headless streaming
…74444354/csc into feature/spec-pro
fix: code-review compile issue
…timeout - Add in-process isRunning flag to block reentrant runBatch (file lock fails when pid === process.pid) - Replace setInterval + double immediate trigger with self-scheduling setTimeout that only fires after previous batch awaits - Move clearQueue() to right after readQueue() so any unexpected concurrent runBatch sees an empty queue and exits immediately - Cache repoInfo and workingTreeDiff in processTask, pass into all three upload functions to halve git invocations per task - Add 30s AbortController timeout on postJson fetch so the worker no longer hangs indefinitely on unresponsive networks Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
fix(rawDump): prevent batch worker concurrency cascade and add fetch …
Wrap bun build --compile to produce self-contained executables for linux-x64 (glibc/musl) and windows-x64, each in modern (AVX2) and baseline (SSE2) variants. The build:binary:* aliases run the existing build pipeline first so dist/cli.js post-processing (feature flags, import.meta.require) stays in effect. Signed-off-by: 林凯90331 <90331@sangfor.com> Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
build(scripts): add bun compile scripts for linux and windows binaries
Include commit short hash and formatted build timestamp in the version string, matching the output format of cs --version. Signed-off-by: 林凯90331 <90331@sangfor.com> Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
Invert the enablement logic so raw dump is disabled unless CSC_DISABLE_RAW_DUMP or COSTRICT_DISABLE_RAW_DUMP is explicitly set to 0 or false. Signed-off-by: 林凯90331 <90331@sangfor.com> Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
Contributor
|
Important Review skippedToo many files! This PR contains 293 files, which is 143 over the limit of 150. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (7)
📒 Files selected for processing (293)
You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Owner
|
哥们, 你是不是把私库的东西传上来了,这个版本就不对呀 @linkai0924 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Need help on this PR? Tag
@codesmithwith what you need.