@ebowwa/coder 0.2.1 → 0.7.63

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.
Files changed (63) hide show
  1. package/README.md +31 -32
  2. package/dist/index.js +52191 -1
  3. package/dist/interfaces/ui/terminal/cli/index.js +52776 -0
  4. package/native/README.md +5 -5
  5. package/native/index.darwin-arm64.node +0 -0
  6. package/native/index.node +0 -0
  7. package/native/package.json +4 -4
  8. package/package.json +30 -15
  9. package/dist/cli.js +0 -148
  10. package/dist/index-0pkak453.js +0 -136
  11. package/dist/index-0qd0x8b4.js +0 -110
  12. package/dist/index-0x3kprq6.js +0 -240
  13. package/dist/index-1eawy937.js +0 -308
  14. package/dist/index-24m2aygy.js +0 -240
  15. package/dist/index-29xcjnne.js +0 -280
  16. package/dist/index-2avyytn5.js +0 -349
  17. package/dist/index-4ms367ey.js +0 -136
  18. package/dist/index-4w2t3b0m.js +0 -240
  19. package/dist/index-4xfgd8nz.js +0 -261
  20. package/dist/index-5acjp9gc.js +0 -157
  21. package/dist/index-5s15hr56.js +0 -136
  22. package/dist/index-6e4wf341.js +0 -349
  23. package/dist/index-6fvnkedw.js +0 -240
  24. package/dist/index-6rqpmd4g.js +0 -128
  25. package/dist/index-77ckwnbm.js +0 -280
  26. package/dist/index-9knxy49k.js +0 -128
  27. package/dist/index-9zrnw4zx.js +0 -128
  28. package/dist/index-bk21w99v.js +0 -280
  29. package/dist/index-c41n76fv.js +0 -240
  30. package/dist/index-cb4ppjdt.js +0 -255
  31. package/dist/index-cfb2edt6.js +0 -240
  32. package/dist/index-cmfa38hh.js +0 -308
  33. package/dist/index-datjz8q1.js +0 -257
  34. package/dist/index-eadf4wvn.js +0 -240
  35. package/dist/index-em5k0m3z.js +0 -345
  36. package/dist/index-gh8r333a.js +0 -110
  37. package/dist/index-gkx6k2tr.js +0 -261
  38. package/dist/index-h5cabfks.js +0 -155
  39. package/dist/index-hcrpwyy3.js +0 -261
  40. package/dist/index-hk7fwwa8.js +0 -257
  41. package/dist/index-jb8cw7f8.js +0 -136
  42. package/dist/index-kbyw4th1.js +0 -347
  43. package/dist/index-kgj5gqnm.js +0 -345
  44. package/dist/index-mdf6xp1z.js +0 -255
  45. package/dist/index-mrhv8kvc.js +0 -280
  46. package/dist/index-mt4743dd.js +0 -161
  47. package/dist/index-qnwsg97q.js +0 -240
  48. package/dist/index-qwdy6x44.js +0 -261
  49. package/dist/index-rmj77261.js +0 -157
  50. package/dist/index-sbbw1a61.js +0 -349
  51. package/dist/index-svy5bcpn.js +0 -345
  52. package/dist/index-tvmy7tm9.js +0 -261
  53. package/dist/index-tzz4vzkj.js +0 -312
  54. package/dist/index-vz80zmhe.js +0 -110
  55. package/dist/index-wed2fk67.js +0 -240
  56. package/dist/index-wksgzz8e.js +0 -280
  57. package/dist/index-wn2m4wma.js +0 -240
  58. package/dist/index-xha05vjc.js +0 -257
  59. package/dist/index-yc6eh8p8.js +0 -136
  60. package/dist/index-ycjxx9ft.js +0 -240
  61. package/dist/index-z0gzd0fc.js +0 -110
  62. package/dist/index-z8cwtf8j.js +0 -240
  63. package/dist/index-zy5mtt00.js +0 -128
package/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # @ebowwa/coder
2
2
 
3
- A reimplementation of Claude Code CLI using TypeScript + Bun + Rust.
4
-
5
- Based on binary analysis of Claude Code v2.1.50 (~92% feature parity).
3
+ An AI-powered terminal coding assistant built with TypeScript + Bun + Rust.
6
4
 
7
5
  ## Installation
8
6
 
@@ -26,7 +24,7 @@ coder
26
24
  coder "What files are in this directory?"
27
25
 
28
26
  # With specific model
29
- coder -m claude-opus-4-6 "Explain this codebase"
27
+ coder -m glm-5 "Explain this codebase"
30
28
 
31
29
  # With permission mode
32
30
  coder --permission-mode acceptEdits "Add a test"
@@ -39,14 +37,14 @@ import { createMessageStream, agentLoop, tools } from "@ebowwa/coder";
39
37
 
40
38
  // Stream API messages
41
39
  const result = await createMessageStream(messages, {
42
- apiKey: process.env.ANTHROPIC_API_KEY,
43
- model: "claude-sonnet-4-6",
40
+ apiKey: process.env.API_KEY,
41
+ model: "glm-5",
44
42
  onToken: (text) => process.stdout.write(text),
45
43
  });
46
44
 
47
45
  // Run agent loop
48
46
  const agentResult = await agentLoop(messages, {
49
- apiKey: process.env.ANTHROPIC_API_KEY,
47
+ apiKey: process.env.API_KEY,
50
48
  systemPrompt: "You are a helpful assistant.",
51
49
  tools: [tools.ReadTool, tools.WriteTool, tools.BashTool],
52
50
  permissionMode: "default",
@@ -56,7 +54,7 @@ const agentResult = await agentLoop(messages, {
56
54
 
57
55
  ## Features
58
56
 
59
- - **API Client**: SSE streaming for Anthropic API with cost calculation
57
+ - **API Client**: SSE streaming with cost calculation
60
58
  - **Agent Loop**: Turn-based processing with tool execution
61
59
  - **Built-in Tools**: Read, Write, Edit, Bash, Glob, Grep
62
60
  - **MCP Client**: Model Context Protocol support (stdio, HTTP, SSE, WebSocket)
@@ -81,26 +79,27 @@ The `@ebowwa/coder-native` package provides high-performance operations:
81
79
  ## Project Structure
82
80
 
83
81
  ```
84
- claude-code-remake/
85
- ├── src/
86
- │ ├── types/ # TypeScript type definitions
87
- │ ├── core/ # API client, agent loop, checkpoints
88
- │ ├── tools/ # Built-in tools (Read, Write, Edit, Bash, etc.)
89
- │ ├── mcp/ # MCP client implementation
90
- │ ├── hooks/ # Hook system for lifecycle events
91
- │ ├── skills/ # Skill parsing and invocation
92
- │ ├── teammates/ # Multi-agent coordination
93
- │ ├── native/ # Native module loader
94
- └── cli.ts # CLI entry point
95
- ├── rust/
96
- │ └── src/
97
- ├── grep.rs # Ripgrep-based file search
98
- ├── hash.rs # Content hashing (xxHash3, SHA-256)
99
- ├── highlight.rs # Syntax highlighting
100
- ├── structure.rs # Tree-sitter parsing
101
- ├── patterns.rs # Tool pattern analysis
102
- ├── multi_edit.rs # Batch file operations
103
- └── diff.rs # Diff calculation
82
+ coder/
83
+ ├── packages/
84
+ │ ├── src/
85
+ ├── types/ # TypeScript type definitions
86
+ ├── core/ # API client, agent loop, checkpoints
87
+ ├── tools/ # Built-in tools (Read, Write, Edit, Bash, etc.)
88
+ ├── mcp/ # MCP client implementation
89
+ ├── hooks/ # Hook system for lifecycle events
90
+ ├── skills/ # Skill parsing and invocation
91
+ ├── teammates/ # Multi-agent coordination
92
+ │ ├── native/ # Native module loader
93
+ │ │ └── interfaces/ # CLI and UI interfaces
94
+ │ └── rust/
95
+ └── src/
96
+ ├── grep.rs # Ripgrep-based file search
97
+ ├── hash.rs # Content hashing (xxHash3, SHA-256)
98
+ ├── highlight.rs # Syntax highlighting
99
+ ├── structure.rs # Tree-sitter parsing
100
+ ├── patterns.rs # Tool pattern analysis
101
+ ├── multi_edit.rs # Batch file operations
102
+ │ └── diff.rs # Diff calculation
104
103
  ├── native/ # Compiled native modules
105
104
  └── dist/ # Build output
106
105
  ```
@@ -109,13 +108,13 @@ claude-code-remake/
109
108
 
110
109
  ### Environment Variables
111
110
 
112
- - `ANTHROPIC_API_KEY` - API key for Claude
111
+ - `API_KEY` - API key for your LLM provider
113
112
 
114
113
  ### CLI Options
115
114
 
116
115
  | Option | Description | Default |
117
116
  |--------|-------------|---------|
118
- | `-m, --model` | Model to use | claude-sonnet-4-6 |
117
+ | `-m, --model` | Model to use | glm-5 |
119
118
  | `-p, --permission-mode` | Permission mode | default |
120
119
  | `--max-tokens` | Maximum output tokens | 4096 |
121
120
  | `--system-prompt` | Override system prompt | - |
@@ -147,8 +146,8 @@ bun test
147
146
 
148
147
  | Package | Version | Description |
149
148
  |---------|---------|-------------|
150
- | [@ebowwa/coder](https://www.npmjs.com/package/@ebowwa/coder) | 0.2.0 | Main CLI package |
151
- | [@ebowwa/coder-native](https://www.npmjs.com/package/@ebowwa/coder-native) | 0.2.0 | Native Rust modules |
149
+ | [@ebowwa/coder](https://www.npmjs.com/package/@ebowwa/coder) | 0.2.1 | Main CLI package |
150
+ | [@ebowwa/coder-native](https://www.npmjs.com/package/@ebowwa/coder-native) | 0.2.1 | Native Rust modules |
152
151
 
153
152
  ## License
154
153