@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.
- package/README.md +31 -32
- package/dist/index.js +52191 -1
- package/dist/interfaces/ui/terminal/cli/index.js +52776 -0
- package/native/README.md +5 -5
- package/native/index.darwin-arm64.node +0 -0
- package/native/index.node +0 -0
- package/native/package.json +4 -4
- package/package.json +30 -15
- package/dist/cli.js +0 -148
- package/dist/index-0pkak453.js +0 -136
- package/dist/index-0qd0x8b4.js +0 -110
- package/dist/index-0x3kprq6.js +0 -240
- package/dist/index-1eawy937.js +0 -308
- package/dist/index-24m2aygy.js +0 -240
- package/dist/index-29xcjnne.js +0 -280
- package/dist/index-2avyytn5.js +0 -349
- package/dist/index-4ms367ey.js +0 -136
- package/dist/index-4w2t3b0m.js +0 -240
- package/dist/index-4xfgd8nz.js +0 -261
- package/dist/index-5acjp9gc.js +0 -157
- package/dist/index-5s15hr56.js +0 -136
- package/dist/index-6e4wf341.js +0 -349
- package/dist/index-6fvnkedw.js +0 -240
- package/dist/index-6rqpmd4g.js +0 -128
- package/dist/index-77ckwnbm.js +0 -280
- package/dist/index-9knxy49k.js +0 -128
- package/dist/index-9zrnw4zx.js +0 -128
- package/dist/index-bk21w99v.js +0 -280
- package/dist/index-c41n76fv.js +0 -240
- package/dist/index-cb4ppjdt.js +0 -255
- package/dist/index-cfb2edt6.js +0 -240
- package/dist/index-cmfa38hh.js +0 -308
- package/dist/index-datjz8q1.js +0 -257
- package/dist/index-eadf4wvn.js +0 -240
- package/dist/index-em5k0m3z.js +0 -345
- package/dist/index-gh8r333a.js +0 -110
- package/dist/index-gkx6k2tr.js +0 -261
- package/dist/index-h5cabfks.js +0 -155
- package/dist/index-hcrpwyy3.js +0 -261
- package/dist/index-hk7fwwa8.js +0 -257
- package/dist/index-jb8cw7f8.js +0 -136
- package/dist/index-kbyw4th1.js +0 -347
- package/dist/index-kgj5gqnm.js +0 -345
- package/dist/index-mdf6xp1z.js +0 -255
- package/dist/index-mrhv8kvc.js +0 -280
- package/dist/index-mt4743dd.js +0 -161
- package/dist/index-qnwsg97q.js +0 -240
- package/dist/index-qwdy6x44.js +0 -261
- package/dist/index-rmj77261.js +0 -157
- package/dist/index-sbbw1a61.js +0 -349
- package/dist/index-svy5bcpn.js +0 -345
- package/dist/index-tvmy7tm9.js +0 -261
- package/dist/index-tzz4vzkj.js +0 -312
- package/dist/index-vz80zmhe.js +0 -110
- package/dist/index-wed2fk67.js +0 -240
- package/dist/index-wksgzz8e.js +0 -280
- package/dist/index-wn2m4wma.js +0 -240
- package/dist/index-xha05vjc.js +0 -257
- package/dist/index-yc6eh8p8.js +0 -136
- package/dist/index-ycjxx9ft.js +0 -240
- package/dist/index-z0gzd0fc.js +0 -110
- package/dist/index-z8cwtf8j.js +0 -240
- package/dist/index-zy5mtt00.js +0 -128
package/README.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# @ebowwa/coder
|
|
2
2
|
|
|
3
|
-
|
|
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
|
|
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.
|
|
43
|
-
model: "
|
|
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.
|
|
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
|
|
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
|
-
|
|
85
|
-
├──
|
|
86
|
-
│ ├──
|
|
87
|
-
│ ├──
|
|
88
|
-
│ ├──
|
|
89
|
-
│ ├──
|
|
90
|
-
│ ├──
|
|
91
|
-
│ ├──
|
|
92
|
-
│ ├──
|
|
93
|
-
│ ├──
|
|
94
|
-
│
|
|
95
|
-
|
|
96
|
-
│ └──
|
|
97
|
-
│
|
|
98
|
-
│
|
|
99
|
-
│
|
|
100
|
-
│
|
|
101
|
-
│
|
|
102
|
-
│
|
|
103
|
-
│
|
|
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
|
-
- `
|
|
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 |
|
|
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.
|
|
151
|
-
| [@ebowwa/coder-native](https://www.npmjs.com/package/@ebowwa/coder-native) | 0.2.
|
|
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
|
|