bingocode 1.1.167 → 1.1.169
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/package.json +2 -7
- package/src/entrypoints/tray-only.ts +2 -58
- package/.env.example +0 -53
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bingocode",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.169",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"claude": "bin/claude-win.cjs",
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
".claude/",
|
|
27
27
|
"runtime/",
|
|
28
28
|
"preload.ts",
|
|
29
|
-
".env.example",
|
|
30
29
|
"package.json",
|
|
31
30
|
"tsconfig.json",
|
|
32
31
|
"README.md",
|
|
@@ -114,11 +113,7 @@
|
|
|
114
113
|
"devDependencies": {
|
|
115
114
|
"@types/node": "^25.6.0"
|
|
116
115
|
},
|
|
117
|
-
"description": "
|
|
118
|
-
"main": "index.js",
|
|
119
|
-
"directories": {
|
|
120
|
-
"doc": "docs"
|
|
121
|
-
},
|
|
116
|
+
"description": "BingoCode - AI-powered coding assistant CLI built on Claude",
|
|
122
117
|
"keywords": [],
|
|
123
118
|
"author": "Leanchy",
|
|
124
119
|
"license": "MIT"
|
|
@@ -28,64 +28,8 @@ process.on('exit', () => {
|
|
|
28
28
|
try { fs.unlinkSync(DAEMON_LOCK_FILE); } catch {}
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
//
|
|
32
|
-
|
|
33
|
-
function buildGreenDotBase64(): string {
|
|
34
|
-
const W = 16, H = 16;
|
|
35
|
-
const raw: number[] = [];
|
|
36
|
-
for (let y = 0; y < H; y++) {
|
|
37
|
-
raw.push(0); // filter none
|
|
38
|
-
for (let x = 0; x < W; x++) {
|
|
39
|
-
const dx = x - 7.5, dy = y - 7.5;
|
|
40
|
-
const d = Math.sqrt(dx*dx + dy*dy);
|
|
41
|
-
if (d < 5.5) {
|
|
42
|
-
raw.push(0x1a, 0xe8, 0x30, 0xff);
|
|
43
|
-
} else {
|
|
44
|
-
raw.push(0, 0, 0, 0);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
const rgbadata = Buffer.from(raw);
|
|
49
|
-
const compressed = zlib.deflateSync(rgbadata);
|
|
50
|
-
const sig = Buffer.from([137,80,78,71,13,10,26,10]);
|
|
51
|
-
const ihdrData = Buffer.alloc(13);
|
|
52
|
-
ihdrData.writeUInt32BE(W, 0);
|
|
53
|
-
ihdrData.writeUInt32BE(H, 4);
|
|
54
|
-
ihdrData.writeUInt8(8, 8);
|
|
55
|
-
ihdrData.writeUInt8(6, 9);
|
|
56
|
-
const ihdr = makePngChunk('IHDR', ihdrData);
|
|
57
|
-
const idat = makePngChunk('IDAT', compressed);
|
|
58
|
-
const iend = makePngChunk('IEND', Buffer.alloc(0));
|
|
59
|
-
return Buffer.concat([sig, ihdr, idat, iend]).toString('base64');
|
|
60
|
-
}
|
|
61
|
-
function makePngChunk(type: string, data: Buffer): Buffer {
|
|
62
|
-
const t = Buffer.from(type, 'ascii');
|
|
63
|
-
const len = Buffer.alloc(4); len.writeUInt32BE(data.length, 0);
|
|
64
|
-
const crcInput = Buffer.concat([t, data]);
|
|
65
|
-
const crc = crc32(crcInput);
|
|
66
|
-
const trailer = Buffer.alloc(4); trailer.writeUInt32BE(crc, 0);
|
|
67
|
-
return Buffer.concat([len, t, data, trailer]);
|
|
68
|
-
}
|
|
69
|
-
function crc32(buf: Buffer): number {
|
|
70
|
-
let c = 0xffffffff;
|
|
71
|
-
for (let i = 0; i < buf.length; i++) {
|
|
72
|
-
c = crcTable[(c ^ buf[i]) & 0xff] ^ (c >>> 8);
|
|
73
|
-
}
|
|
74
|
-
return (c ^ 0xffffffff) >>> 0;
|
|
75
|
-
}
|
|
76
|
-
const crcTable = (() => {
|
|
77
|
-
const t = new Int32Array(256);
|
|
78
|
-
for (let n = 0; n < 256; n++) {
|
|
79
|
-
let c = n;
|
|
80
|
-
for (let k = 0; k < 8; k++) {
|
|
81
|
-
c = (c & 1) ? (0xedb88320 ^ (c >>> 1)) : (c >>> 1);
|
|
82
|
-
}
|
|
83
|
-
t[n] = c;
|
|
84
|
-
}
|
|
85
|
-
return t;
|
|
86
|
-
})();
|
|
87
|
-
|
|
88
|
-
const iconB64 = buildGreenDotBase64();
|
|
31
|
+
// Tray icon: hexagon black-gold with "B" initial (16x16 RGBA PNG, pre-encoded)
|
|
32
|
+
const iconB64 = 'iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAS0lEQVR4nGNgGLRAQUHhPzKmSDPRhiAr/n/AAAXjNQjdJnTN2AxBMQibRnyGEW0AMk2WAfR3AbJB+FxFVGyQFI1US0j4DCFJM10BADtB9/MMO0W9AAAAAElFTkSuQmCC';
|
|
89
33
|
|
|
90
34
|
try {
|
|
91
35
|
const systray = new SysTray({
|
package/.env.example
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
# ============================================================
|
|
2
|
-
# MiniMax(直连 Anthropic 兼容接口)
|
|
3
|
-
# 海外用户: ANTHROPIC_BASE_URL=https://api.minimax.io/anthropic
|
|
4
|
-
# 国内用户: ANTHROPIC_BASE_URL=https://api.minimaxi.com/anthropic
|
|
5
|
-
# 可用模型: MiniMax-M2.7(默认)、MiniMax-M2.7-highspeed(更快)
|
|
6
|
-
# ============================================================
|
|
7
|
-
# ANTHROPIC_AUTH_TOKEN=your_minimax_api_key_here
|
|
8
|
-
# ANTHROPIC_BASE_URL=https://api.minimax.io/anthropic
|
|
9
|
-
# ANTHROPIC_MODEL=MiniMax-M2.7
|
|
10
|
-
# ANTHROPIC_DEFAULT_SONNET_MODEL=MiniMax-M2.7
|
|
11
|
-
# ANTHROPIC_DEFAULT_HAIKU_MODEL=MiniMax-M2.7-highspeed
|
|
12
|
-
# ANTHROPIC_DEFAULT_OPUS_MODEL=MiniMax-M2.7
|
|
13
|
-
# API_TIMEOUT_MS=3000000
|
|
14
|
-
|
|
15
|
-
# ============================================================
|
|
16
|
-
# OpenAI(通过 LiteLLM 代理)
|
|
17
|
-
# 先启动: litellm --config litellm_config.yaml --port 4000
|
|
18
|
-
# ============================================================
|
|
19
|
-
# ANTHROPIC_AUTH_TOKEN=sk-anything
|
|
20
|
-
# ANTHROPIC_BASE_URL=http://localhost:4000
|
|
21
|
-
# ANTHROPIC_MODEL=gpt-4o
|
|
22
|
-
# ANTHROPIC_DEFAULT_SONNET_MODEL=gpt-4o
|
|
23
|
-
# ANTHROPIC_DEFAULT_HAIKU_MODEL=gpt-4o
|
|
24
|
-
# ANTHROPIC_DEFAULT_OPUS_MODEL=gpt-4o
|
|
25
|
-
# API_TIMEOUT_MS=3000000
|
|
26
|
-
|
|
27
|
-
# ============================================================
|
|
28
|
-
# DeepSeek(通过 LiteLLM 代理)
|
|
29
|
-
# 先启动: litellm --config litellm_config.yaml --port 4000
|
|
30
|
-
# ============================================================
|
|
31
|
-
# ANTHROPIC_AUTH_TOKEN=sk-anything
|
|
32
|
-
# ANTHROPIC_BASE_URL=http://localhost:4000
|
|
33
|
-
# ANTHROPIC_MODEL=deepseek-chat
|
|
34
|
-
# ANTHROPIC_DEFAULT_SONNET_MODEL=deepseek-chat
|
|
35
|
-
# ANTHROPIC_DEFAULT_HAIKU_MODEL=deepseek-chat
|
|
36
|
-
# ANTHROPIC_DEFAULT_OPUS_MODEL=deepseek-chat
|
|
37
|
-
# API_TIMEOUT_MS=3000000
|
|
38
|
-
|
|
39
|
-
# ============================================================
|
|
40
|
-
# OpenRouter(直连 Anthropic 兼容接口)
|
|
41
|
-
# ============================================================
|
|
42
|
-
# ANTHROPIC_AUTH_TOKEN=sk-or-v1-xxx
|
|
43
|
-
# ANTHROPIC_BASE_URL=https://openrouter.ai/api/v1
|
|
44
|
-
# ANTHROPIC_MODEL=openai/gpt-4o
|
|
45
|
-
# ANTHROPIC_DEFAULT_SONNET_MODEL=openai/gpt-4o
|
|
46
|
-
# ANTHROPIC_DEFAULT_HAIKU_MODEL=openai/gpt-4o-mini
|
|
47
|
-
# ANTHROPIC_DEFAULT_OPUS_MODEL=openai/gpt-4o
|
|
48
|
-
|
|
49
|
-
# ============================================================
|
|
50
|
-
# 通用设置(建议始终开启)
|
|
51
|
-
# ============================================================
|
|
52
|
-
DISABLE_TELEMETRY=1
|
|
53
|
-
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
|