25 Commits

Author SHA1 Message Date
Roger
5488851d36 Fix StructuredDiff color diff loading in source mode 2026-04-01 23:54:47 +08:00
Roger
db96abfa70 fix: change -d2e to -D in source instead of patching Commander.js
bun build caches Commander.js from npm, making postinstall sed patch
ineffective. Directly changed the flag to single-char -D in:
- src/main.tsx (Option definition)
- src/utils/debug.ts (argv check)

Removed Commander.js patching from postinstall.sh.
2026-04-01 10:28:40 +08:00
Roger
ff43ce0b74 update READMEs: Commander.js patch now automated, remove manual instructions 2026-04-01 10:18:18 +08:00
Roger
2a862bb2bd fix: auto-patch Commander.js multi-char short flags in postinstall
The source uses -d2e flag which Commander.js rejects (single-char only).
postinstall.sh now patches both:
1. shortFlagExp regex: /^-[^-]$/ → /^-[^-]+$/
2. single-char restriction check disabled

Users no longer need to manually patch node_modules after bun install.
2026-04-01 10:16:20 +08:00
Roger
5ea0b188f5 fix: add postinstall stubs + turndown dep, update build docs
- scripts/postinstall.sh auto-creates @ant/* stubs after bun install
- Add turndown to package.json dependencies
- Update both READMEs with postinstall note in build steps
- Update missing packages section to explain postinstall mechanism
2026-04-01 10:01:37 +08:00
Roger
c3e0f95e4f remove Original Source section from READMEs 2026-04-01 09:11:14 +08:00
Roger
c8e5a3d715 add feature completeness section to README (en/cn) 2026-04-01 08:12:07 +08:00
Roger
8681fbc7fa use https clone URL for public access 2026-04-01 07:50:40 +08:00
Roger
a67d270ca5 add Chinese README with language switcher 2026-04-01 07:45:58 +08:00
Roger
e627a9388d restructure: move docs to docs/, rewrite README in English
- Move all .md documentation into docs/ directory
- Rewrite README.md with English documentation covering:
  - All 22 missing source stubs added
  - Source code fixes (useEffectEvent, version check, auth, sandbox-runtime)
  - Bun compatibility shims (macro, bun-bundle)
  - 28 missing npm dependencies
  - Build and run instructions
- Remove dist/ from tracking (users compile themselves)
2026-04-01 07:41:38 +08:00
Roger
04312fd3ce docs: add comprehensive build and run guide (BUILD.md) 2026-04-01 01:20:51 +08:00
Roger
9cef6af627 fix: useEffectEvent shim for react-reconciler 0.31 compatibility
- Create src/utils/useEffectEvent.ts (useRef + useCallback shim)
- Replace react imports of useEffectEvent in BackgroundTasksDialog and AppState
- CLI now boots into trust dialog successfully
2026-04-01 01:17:29 +08:00
Roger
13b2e92dc8 fix: skip auth checks, add auto-execute to bundle
- assertMinVersion: always pass (skip remote version check)
- validateForceLoginOrg: skip in both interactive and non-interactive
- bundle.js: auto-invoke main() on load

Now 'bun dist/bundle.js --help' works without API key.
2026-04-01 01:01:20 +08:00
Roger
e2049c5c0b chore: add dist/ to gitignore 2026-03-31 23:55:10 +08:00
Roger
dda2af29f7 fix: add missing stubs and dependencies for compilation
- 22 missing source files: stub implementations for ant-only/internal modules
- 28 npm packages: OpenTelemetry, AWS SDK, Azure, fflate, yaml, sharp, etc.
- 2 internal package stubs: @ant/claude-for-chrome-mcp, @anthropic-ai/sandbox-runtime

Build: 5743 modules, 23.37MB bundled output
2026-03-31 23:54:42 +08:00
Roger
0723d9b0f4 docs: add refactoring feasibility assessment 2026-03-31 23:19:41 +08:00
Roger
aa014fa005 docs: add tools architecture (43 tool directories, 17KB) 2026-03-31 23:08:11 +08:00
Roger
3a0449a2a3 docs: add services architecture (21 subdirectories, 130+ files, 17KB) 2026-03-31 23:07:13 +08:00
Roger
b947587293 docs: add utils architecture (290 files, 88K lines, 32 subdirectories) 2026-03-31 23:06:15 +08:00
Roger
7919dac141 docs: add commands/skills/plugins/keybindings architecture (18KB) 2026-03-31 23:02:28 +08:00
Roger
b8453ba80c docs: add components architecture (389 files, 40+ modules) 2026-03-31 23:01:32 +08:00
Roger
d87a440a31 docs: add main architecture + bridge/remote architecture documents 2026-03-31 22:59:20 +08:00
Roger
c97b0ee3e6 initial: claude-code leaked source (2026-03-31) 2026-03-31 22:47:52 +08:00
Roger
c65712c90f chore: initial commit - leaked source baseline (2026-03-31) 2026-03-31 20:54:06 +08:00
instructkr
a99de1bb3c Publish Claude Code source snapshot from a single baseline commit
Squash the imported source snapshot and follow-up documentation history
into one root commit so the archive starts from a single coherent state.

Constraint: Repository intentionally tracks an analyzed Claude Code source snapshot
Constraint: Author and committer must be instructkr <no-contact@instruct.kr>
Rejected: Preserve the four-step import/docs history | user explicitly requested one squashed commit
Confidence: high
Scope-risk: broad
Reversibility: clean
Directive: Keep future analysis and refactor commits separate from this archive baseline
Tested: git status clean; local history rewritten to one commit; force-pushed main to origin and instructkr
Not-tested: Fresh clone verification after push
2026-03-31 03:06:26 -07:00