claude-aisieure 2.1.87

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 ADDED
@@ -0,0 +1,245 @@
1
+ <p align="center">
2
+ <img src="assets/screenshot.png" alt="Aisieure Claude Code" width="720" />
3
+ </p>
4
+
5
+ <h1 align="center">Aisieure Claude Code</h1>
6
+
7
+ <p align="center">
8
+ <strong>Claude Code CLI fork by Aisieure.</strong><br>
9
+ Custom branding, API proxy qua aisieure.com, 54 experimental features unlocked.<br>
10
+ Build bằng Bun, chạy ngay trên terminal.
11
+ </p>
12
+
13
+ <p align="center">
14
+ <a href="https://aisieure.com"><img src="https://img.shields.io/badge/website-aisieure.com-blue?style=flat-square" alt="Website" /></a>
15
+ <a href="https://github.com/ShykeDev/aisieure-ClaudeCode"><img src="https://img.shields.io/github/stars/ShykeDev/aisieure-ClaudeCode?style=flat-square" alt="Stars" /></a>
16
+ <a href="https://github.com/ShykeDev/aisieure-ClaudeCode/issues"><img src="https://img.shields.io/github/issues/ShykeDev/aisieure-ClaudeCode?style=flat-square" alt="Issues" /></a>
17
+ <a href="FEATURES.md"><img src="https://img.shields.io/badge/features-88%20flags-orange?style=flat-square" alt="Feature Flags" /></a>
18
+ </p>
19
+
20
+ ---
21
+
22
+ ## Aisieure la gi?
23
+
24
+ [Aisieure](https://aisieure.com) cung cap dich vu API proxy cho Claude, giup nguoi dung Viet Nam su dung Claude Code de dang hon voi gia tot. Truy cap [aisieure.com](https://aisieure.com) de lay token va bat dau su dung.
25
+
26
+ ---
27
+
28
+ ## Thay doi so voi upstream
29
+
30
+ | Thay doi | Chi tiet |
31
+ |---|---|
32
+ | Branding | Ten app: **Aisieure Claude Code**, binary: `claude-aisieure` |
33
+ | API URL | Proxy qua `https://aisieure.com` thay vi `api.anthropic.com` |
34
+ | Theme | Mau do hong (`rgb(220,80,120)`) + xanh la pastel accent |
35
+ | Features | 54 experimental flags unlocked san |
36
+ | Telemetry | Da loai bo toan bo telemetry ve Anthropic |
37
+
38
+ ---
39
+
40
+ ## Yeu cau
41
+
42
+ - **Runtime**: [Bun](https://bun.sh) >= 1.3.11
43
+ - **OS**: Windows, macOS, Linux
44
+ - **Auth**: Token tu Aisieure hoac API key Anthropic
45
+
46
+ ```bash
47
+ # Cai Bun neu chua co
48
+ curl -fsSL https://bun.sh/install | bash
49
+ ```
50
+
51
+ ---
52
+
53
+ ## Cai dat & Build
54
+
55
+ ```bash
56
+ git clone https://github.com/ShykeDev/aisieure-ClaudeCode.git
57
+ cd aisieure-ClaudeCode
58
+ bun install
59
+ bun run build
60
+ ```
61
+
62
+ ### Cac kieu build
63
+
64
+ | Lenh | Output | Mo ta |
65
+ |---|---|---|
66
+ | `bun run build` | `./claude-aisieure` | Production build, chi co VOICE_MODE |
67
+ | `bun run build:dev` | `./claude-aisieure-dev` | Dev build voi version stamp |
68
+ | `bun run build:dev:full` | `./claude-aisieure-dev` | Dev build + 54 experimental flags |
69
+ | `bun run compile` | `./dist/claude-aisieure` | Compiled binary |
70
+
71
+ ### Bat feature flags rieng le
72
+
73
+ ```bash
74
+ # Chi bat ULTRAPLAN va ULTRATHINK
75
+ bun run ./scripts/build.ts --feature=ULTRAPLAN --feature=ULTRATHINK
76
+
77
+ # Dev build + BRIDGE_MODE
78
+ bun run ./scripts/build.ts --dev --feature=BRIDGE_MODE
79
+ ```
80
+
81
+ ---
82
+
83
+ ## Su dung
84
+
85
+ ```bash
86
+ # REPL tuong tac (mac dinh)
87
+ ./claude-aisieure
88
+
89
+ # One-shot
90
+ ./claude-aisieure -p "list files in this directory"
91
+
92
+ # Chon model
93
+ ./claude-aisieure --model claude-opus-4-6
94
+
95
+ # Dang nhap
96
+ ./claude-aisieure /login
97
+ ```
98
+
99
+ ---
100
+
101
+ ## Model Providers
102
+
103
+ Chuyen provider bang bien moi truong:
104
+
105
+ | Provider | Bien moi truong | Auth |
106
+ |---|---|---|
107
+ | Aisieure (mac dinh) | — | Token tu aisieure.com |
108
+ | Anthropic | `ANTHROPIC_API_KEY` | API key |
109
+ | AWS Bedrock | `CLAUDE_CODE_USE_BEDROCK=1` | AWS credentials |
110
+ | Google Vertex AI | `CLAUDE_CODE_USE_VERTEX=1` | `gcloud` ADC |
111
+ | OpenAI Codex | `CLAUDE_CODE_USE_OPENAI=1` | OAuth |
112
+ | Anthropic Foundry | `CLAUDE_CODE_USE_FOUNDRY=1` | `ANTHROPIC_FOUNDRY_API_KEY` |
113
+
114
+ ---
115
+
116
+ ## Models ho tro
117
+
118
+ Tat ca models co san qua [aisieure.com/v1/models](https://aisieure.com/v1/models):
119
+
120
+ ### Anthropic
121
+
122
+ | Model ID | Ten | Context | Max Output |
123
+ |---|---|---|---|
124
+ | `claude-opus-4.6` | Claude Opus 4.6 | 200K | 64K |
125
+ | `claude-opus-4.5` | Claude Opus 4.5 | 200K | 32K |
126
+ | `claude-sonnet-4.6` | Claude Sonnet 4.6 | 200K | 32K |
127
+ | `claude-sonnet-4.5` | Claude Sonnet 4.5 | 200K | 32K |
128
+ | `claude-haiku-4.5` | Claude Haiku 4.5 | 200K | 32K |
129
+
130
+ ### Google
131
+
132
+ | Model ID | Ten | Context | Max Output |
133
+ |---|---|---|---|
134
+ | `gemini-3-flash-preview` | Gemini 3 Flash (Preview) | 128K | 64K |
135
+
136
+ ### OpenAI
137
+
138
+ | Model ID | Ten | Context | Max Output |
139
+ |---|---|---|---|
140
+ | `gpt-5.3-codex` | GPT-5.3 Codex | 200K | 16K |
141
+ | `gpt-5.4` | GPT 5.4 | 200K | 16K |
142
+
143
+ ### xAI
144
+
145
+ | Model ID | Ten | Context | Max Output |
146
+ |---|---|---|---|
147
+ | `grok-code-fast-1` | Grok Code Fast 1 | 128K | 64K |
148
+
149
+ Su dung lenh `/model` trong REPL hoac `--model <id>` de chon model:
150
+
151
+ ```bash
152
+ ./claude-aisieure --model gemini-3-flash-preview
153
+ ./claude-aisieure --model grok-code-fast-1
154
+ ./claude-aisieure --model gpt-5.4
155
+ ```
156
+
157
+ ---
158
+
159
+ ## Experimental Features
160
+
161
+ Build `bun run build:dev:full` bat 54 feature flags. Diem noi bat:
162
+
163
+ ### UI & Tuong tac
164
+
165
+ | Flag | Mo ta |
166
+ |---|---|
167
+ | `ULTRAPLAN` | Multi-agent planning tren web (Opus-class) |
168
+ | `ULTRATHINK` | Che do suy nghi sau - go "ultrathink" de kich hoat |
169
+ | `VOICE_MODE` | Nhap giong noi, push-to-talk |
170
+ | `TOKEN_BUDGET` | Theo doi token va canh bao su dung |
171
+ | `HISTORY_PICKER` | Chon prompt tu lich su |
172
+ | `QUICK_SEARCH` | Tim kiem nhanh trong prompt |
173
+
174
+ ### Agent & Memory
175
+
176
+ | Flag | Mo ta |
177
+ |---|---|
178
+ | `BUILTIN_EXPLORE_PLAN_AGENTS` | Agent explore/plan co san |
179
+ | `VERIFICATION_AGENT` | Agent kiem tra ket qua |
180
+ | `AGENT_TRIGGERS` | Cron/trigger tu dong chay background |
181
+ | `EXTRACT_MEMORIES` | Tu dong trich xuat memory sau moi query |
182
+ | `TEAMMEM` | Team memory files va hooks |
183
+
184
+ ### Tools & Infrastructure
185
+
186
+ | Flag | Mo ta |
187
+ |---|---|
188
+ | `BRIDGE_MODE` | Ket noi IDE (VS Code, JetBrains) |
189
+ | `BASH_CLASSIFIER` | Phan loai quyen bash bang classifier |
190
+ | `MCP_RICH_OUTPUT` | MCP output nang cao |
191
+
192
+ Xem [FEATURES.md](FEATURES.md) de biet chi tiet 88 flags (54 hoat dong, 34 dang hong).
193
+
194
+ ---
195
+
196
+ ## Cau truc du an
197
+
198
+ ```
199
+ scripts/
200
+ build.ts # Build script + feature flag system
201
+
202
+ src/
203
+ entrypoints/cli.tsx # Entry point chinh
204
+ commands.ts # Registry 50+ slash commands
205
+ tools.ts # Registry 30+ agent tools
206
+ QueryEngine.ts # Dieu phoi LLM message flow
207
+ screens/REPL.tsx # Giao dien chinh (Ink/React)
208
+
209
+ commands/ # Cac lenh /slash
210
+ tools/ # Cac tool (Bash, Read, Edit, Write, Glob, Grep...)
211
+ components/ # UI components (Ink/React)
212
+ hooks/ # React hooks
213
+ services/
214
+ api/ # API client (Anthropic, Bedrock, Vertex, Codex)
215
+ oauth/ # OAuth flows
216
+ mcp/ # MCP protocol
217
+ compact/ # Context compaction
218
+ state/ # App state (Redux-style)
219
+ skills/ # Skill system
220
+ plugins/ # Plugin system
221
+ bridge/ # IDE bridge
222
+ voice/ # Voice input
223
+ tasks/ # Background tasks
224
+ memdir/ # Memory directory
225
+ ```
226
+
227
+ ---
228
+
229
+ ## Tech Stack
230
+
231
+ | | |
232
+ |---|---|
233
+ | **Runtime** | [Bun](https://bun.sh) |
234
+ | **Language** | TypeScript |
235
+ | **Terminal UI** | React + [Ink](https://github.com/vadimdemedes/ink) |
236
+ | **CLI** | [Commander.js](https://github.com/tj/commander.js) |
237
+ | **Validation** | Zod v4 |
238
+ | **Search** | ripgrep |
239
+ | **Protocols** | MCP, LSP |
240
+
241
+ ---
242
+
243
+ ## License
244
+
245
+ Fork tu Claude Code (Anthropic). Source goc duoc cong khai qua source map trong npm distribution ngay 31/03/2026. Su dung theo quyet dinh cua ban.
@@ -0,0 +1,84 @@
1
+ #!/usr/bin/env node
2
+
3
+ // claude-aisieure npx wrapper
4
+ // Checks for Bun runtime and delegates execution accordingly.
5
+
6
+ const { execSync, execFileSync, spawn } = require("child_process");
7
+ const { platform } = require("os");
8
+
9
+ function hasBun() {
10
+ try {
11
+ execFileSync("bun", ["--version"], { stdio: "ignore" });
12
+ return true;
13
+ } catch {
14
+ return false;
15
+ }
16
+ }
17
+
18
+ function installBun() {
19
+ console.log("[*] Bun not found. Installing Bun...");
20
+ const isWindows = platform() === "win32";
21
+
22
+ try {
23
+ if (isWindows) {
24
+ execSync("powershell -NoProfile -Command \"irm bun.sh/install.ps1 | iex\"", {
25
+ stdio: "inherit",
26
+ });
27
+ } else {
28
+ execSync("curl -fsSL https://bun.sh/install | bash", {
29
+ stdio: "inherit",
30
+ shell: true,
31
+ });
32
+ }
33
+ } catch {
34
+ console.error("[x] Failed to install Bun automatically.");
35
+ console.error("");
36
+ console.error(" Please install Bun manually:");
37
+ if (isWindows) {
38
+ console.error(" powershell -Command \"irm bun.sh/install.ps1 | iex\"");
39
+ } else {
40
+ console.error(" curl -fsSL https://bun.sh/install | bash");
41
+ }
42
+ console.error("");
43
+ console.error(" Then run again: npx claude-aisieure");
44
+ process.exit(1);
45
+ }
46
+
47
+ // Update PATH for this session
48
+ const bunDir = isWindows
49
+ ? `${process.env.USERPROFILE}\\.bun\\bin`
50
+ : `${process.env.HOME}/.bun/bin`;
51
+ process.env.PATH = `${bunDir}${isWindows ? ";" : ":"}${process.env.PATH}`;
52
+
53
+ if (!hasBun()) {
54
+ console.error("[x] Bun was installed but not found on PATH.");
55
+ console.error(" Restart your terminal and run again: npx claude-aisieure");
56
+ process.exit(1);
57
+ }
58
+
59
+ console.log("[+] Bun installed successfully.");
60
+ }
61
+
62
+ function main() {
63
+ if (!hasBun()) {
64
+ installBun();
65
+ }
66
+
67
+ // Forward all arguments to bunx claude-vip
68
+ const args = process.argv.slice(2);
69
+ const child = spawn("bunx", ["claude-aisieure@latest", ...args], {
70
+ stdio: "inherit",
71
+ shell: platform() === "win32",
72
+ });
73
+
74
+ child.on("error", (err) => {
75
+ console.error(`[x] Failed to start claude-aisieure: ${err.message}`);
76
+ process.exit(1);
77
+ });
78
+
79
+ child.on("exit", (code) => {
80
+ process.exit(code ?? 0);
81
+ });
82
+ }
83
+
84
+ main();
package/package.json ADDED
@@ -0,0 +1,127 @@
1
+ {
2
+ "name": "claude-aisieure",
3
+ "version": "2.1.87",
4
+ "description": "Aisieure Claude Code — Claude Code CLI fork by Aisieure with custom branding and 54 experimental features.",
5
+ "type": "module",
6
+ "packageManager": "bun@1.3.11",
7
+ "bin": {
8
+ "claude-aisieure": "bin/cli-wrapper.js"
9
+ },
10
+ "files": [
11
+ "bin/",
12
+ "package.json",
13
+ "README.md"
14
+ ],
15
+ "engines": {
16
+ "node": ">=18.0.0",
17
+ "bun": ">=1.3.11"
18
+ },
19
+ "scripts": {
20
+ "build": "bun run ./scripts/build.ts",
21
+ "build:dev": "bun run ./scripts/build.ts --dev",
22
+ "build:dev:full": "bun run ./scripts/build.ts --dev --feature-set=dev-full",
23
+ "compile": "bun run ./scripts/build.ts --compile",
24
+ "dev": "bun run ./src/entrypoints/cli.tsx"
25
+ },
26
+ "dependencies": {
27
+ "@alcalzone/ansi-tokenize": "^0.3.0",
28
+ "@anthropic-ai/bedrock-sdk": "^0.26.4",
29
+ "@anthropic-ai/claude-agent-sdk": "^0.2.87",
30
+ "@anthropic-ai/foundry-sdk": "^0.2.3",
31
+ "@anthropic-ai/mcpb": "^2.1.2",
32
+ "@anthropic-ai/sandbox-runtime": "^0.0.44",
33
+ "@anthropic-ai/sdk": "^0.80.0",
34
+ "@anthropic-ai/vertex-sdk": "^0.14.4",
35
+ "@aws-sdk/client-bedrock": "^3.1020.0",
36
+ "@aws-sdk/client-bedrock-runtime": "^3.1020.0",
37
+ "@aws-sdk/client-sts": "^3.1020.0",
38
+ "@aws-sdk/credential-provider-node": "^3.972.28",
39
+ "@aws-sdk/credential-providers": "^3.1020.0",
40
+ "@azure/identity": "^4.13.1",
41
+ "@commander-js/extra-typings": "^14.0.0",
42
+ "@growthbook/growthbook": "^1.6.5",
43
+ "@modelcontextprotocol/sdk": "^1.29.0",
44
+ "@opentelemetry/api": "^1.9.1",
45
+ "@opentelemetry/api-logs": "^0.214.0",
46
+ "@opentelemetry/core": "^2.6.1",
47
+ "@opentelemetry/exporter-logs-otlp-grpc": "^0.214.0",
48
+ "@opentelemetry/exporter-logs-otlp-http": "^0.214.0",
49
+ "@opentelemetry/exporter-logs-otlp-proto": "^0.214.0",
50
+ "@opentelemetry/exporter-metrics-otlp-grpc": "^0.214.0",
51
+ "@opentelemetry/exporter-metrics-otlp-http": "^0.214.0",
52
+ "@opentelemetry/exporter-metrics-otlp-proto": "^0.214.0",
53
+ "@opentelemetry/exporter-prometheus": "^0.214.0",
54
+ "@opentelemetry/exporter-trace-otlp-grpc": "^0.214.0",
55
+ "@opentelemetry/exporter-trace-otlp-http": "^0.214.0",
56
+ "@opentelemetry/exporter-trace-otlp-proto": "^0.214.0",
57
+ "@opentelemetry/resources": "^2.6.1",
58
+ "@opentelemetry/sdk-logs": "^0.214.0",
59
+ "@opentelemetry/sdk-metrics": "^2.6.1",
60
+ "@opentelemetry/sdk-trace-base": "^2.6.1",
61
+ "@opentelemetry/semantic-conventions": "^1.40.0",
62
+ "@smithy/core": "^3.23.13",
63
+ "@smithy/node-http-handler": "^4.5.1",
64
+ "ajv": "^8.18.0",
65
+ "asciichart": "^1.5.25",
66
+ "auto-bind": "^5.0.1",
67
+ "axios": "^1.14.0",
68
+ "bidi-js": "^1.0.3",
69
+ "cacache": "^20.0.4",
70
+ "chalk": "^5.6.2",
71
+ "chokidar": "^5.0.0",
72
+ "cli-boxes": "^4.0.1",
73
+ "cli-highlight": "^2.1.11",
74
+ "code-excerpt": "^4.0.0",
75
+ "diff": "^8.0.4",
76
+ "emoji-regex": "^10.6.0",
77
+ "env-paths": "^4.0.0",
78
+ "execa": "^9.6.1",
79
+ "fflate": "^0.8.2",
80
+ "figures": "^6.1.0",
81
+ "fuse.js": "^7.1.0",
82
+ "get-east-asian-width": "^1.5.0",
83
+ "google-auth-library": "^10.6.2",
84
+ "highlight.js": "^11.11.1",
85
+ "https-proxy-agent": "^8.0.0",
86
+ "ignore": "^7.0.5",
87
+ "indent-string": "^5.0.0",
88
+ "ink": "^6.8.0",
89
+ "jsonc-parser": "^3.3.1",
90
+ "lodash-es": "^4.17.23",
91
+ "lru-cache": "^11.2.7",
92
+ "marked": "^17.0.5",
93
+ "p-map": "^7.0.4",
94
+ "picomatch": "^4.0.4",
95
+ "plist": "^3.1.0",
96
+ "proper-lockfile": "^4.1.2",
97
+ "qrcode": "^1.5.4",
98
+ "react": "^19.2.4",
99
+ "react-reconciler": "^0.33.0",
100
+ "semver": "^7.7.4",
101
+ "sharp": "^0.34.5",
102
+ "shell-quote": "^1.8.3",
103
+ "signal-exit": "^4.1.0",
104
+ "stack-utils": "^2.0.6",
105
+ "strip-ansi": "^7.2.0",
106
+ "supports-hyperlinks": "^4.4.0",
107
+ "tree-kill": "^1.2.2",
108
+ "turndown": "^7.2.2",
109
+ "type-fest": "^5.5.0",
110
+ "undici": "^7.24.6",
111
+ "usehooks-ts": "^3.1.1",
112
+ "vscode-jsonrpc": "^8.2.1",
113
+ "vscode-languageserver-protocol": "^3.17.5",
114
+ "vscode-languageserver-types": "^3.17.5",
115
+ "wrap-ansi": "^10.0.0",
116
+ "ws": "^8.20.0",
117
+ "xss": "^1.0.15",
118
+ "xxhash-wasm": "^1.1.0",
119
+ "yaml": "^2.8.3",
120
+ "zod": "^4.3.6"
121
+ },
122
+ "devDependencies": {
123
+ "@types/bun": "^1.3.11",
124
+ "rcedit": "^5.0.2",
125
+ "typescript": "^6.0.2"
126
+ }
127
+ }