opencode-studio-server 1.16.3 → 1.16.5
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/index.js +124 -0
- package/logs/main.log +4 -0
- package/package.json +1 -1
- package/proxy-manager.js +29 -13
- package/server.log +1 -2
- package/server_debug.log +387 -0
package/index.js
CHANGED
|
@@ -84,6 +84,7 @@ app.use(cors({
|
|
|
84
84
|
}));
|
|
85
85
|
app.use(bodyParser.json({ limit: '50mb' }));
|
|
86
86
|
app.use(bodyParser.urlencoded({ limit: '50mb', extended: true }));
|
|
87
|
+
app.use(bodyParser.text({ type: ['text/*', 'application/yaml'], limit: '50mb' }));
|
|
87
88
|
|
|
88
89
|
const HOME_DIR = os.homedir();
|
|
89
90
|
const STUDIO_CONFIG_PATH = path.join(HOME_DIR, '.config', 'opencode-studio', 'studio.json');
|
|
@@ -2639,6 +2640,129 @@ app.post('/api/proxy/config', (req, res) => {
|
|
|
2639
2640
|
res.json({ success: true });
|
|
2640
2641
|
});
|
|
2641
2642
|
|
|
2643
|
+
const PROXY_CONFIG_PATH = path.join(HOME_DIR, '.config', 'opencode-studio', 'cliproxy.yaml');
|
|
2644
|
+
|
|
2645
|
+
app.get('/api/management/config.yaml', (req, res) => {
|
|
2646
|
+
console.log('GET config.yaml hit');
|
|
2647
|
+
if (!fs.existsSync(PROXY_CONFIG_PATH)) {
|
|
2648
|
+
console.log('Config file not found:', PROXY_CONFIG_PATH);
|
|
2649
|
+
return res.send("");
|
|
2650
|
+
}
|
|
2651
|
+
console.log('Sending config file:', PROXY_CONFIG_PATH);
|
|
2652
|
+
const content = fs.readFileSync(PROXY_CONFIG_PATH, 'utf8');
|
|
2653
|
+
res.send(content);
|
|
2654
|
+
});
|
|
2655
|
+
|
|
2656
|
+
app.put('/api/management/config.yaml', (req, res) => {
|
|
2657
|
+
fs.writeFileSync(PROXY_CONFIG_PATH, req.body);
|
|
2658
|
+
res.json({ ok: true, changed: [] });
|
|
2659
|
+
});
|
|
2660
|
+
|
|
2661
|
+
app.get('/api/management/api-keys', (req, res) => {
|
|
2662
|
+
if (!fs.existsSync(PROXY_CONFIG_PATH)) return res.json({ "api-keys": [] });
|
|
2663
|
+
const content = fs.readFileSync(PROXY_CONFIG_PATH, 'utf8');
|
|
2664
|
+
const yaml = require('js-yaml');
|
|
2665
|
+
try {
|
|
2666
|
+
const doc = yaml.load(content) || {};
|
|
2667
|
+
const keys = [];
|
|
2668
|
+
if (doc['management-key']) keys.push(doc['management-key']);
|
|
2669
|
+
if (Array.isArray(doc['api-keys'])) keys.push(...doc['api-keys']);
|
|
2670
|
+
res.json({ "api-keys": [...new Set(keys)].filter(k => k) });
|
|
2671
|
+
} catch (e) {
|
|
2672
|
+
res.json({ "api-keys": [] });
|
|
2673
|
+
}
|
|
2674
|
+
});
|
|
2675
|
+
|
|
2676
|
+
app.put('/api/management/api-keys', (req, res) => {
|
|
2677
|
+
const keys = req.body;
|
|
2678
|
+
if (!fs.existsSync(PROXY_CONFIG_PATH)) return res.status(404).json({ error: "Config not found" });
|
|
2679
|
+
const content = fs.readFileSync(PROXY_CONFIG_PATH, 'utf8');
|
|
2680
|
+
const yaml = require('js-yaml');
|
|
2681
|
+
try {
|
|
2682
|
+
const doc = yaml.load(content) || {};
|
|
2683
|
+
doc['api-keys'] = keys;
|
|
2684
|
+
if (keys.length > 0) doc['management-key'] = keys[0];
|
|
2685
|
+
|
|
2686
|
+
fs.writeFileSync(PROXY_CONFIG_PATH, yaml.dump(doc));
|
|
2687
|
+
res.json({ status: "ok" });
|
|
2688
|
+
} catch (e) {
|
|
2689
|
+
res.status(500).json({ error: e.message });
|
|
2690
|
+
}
|
|
2691
|
+
});
|
|
2692
|
+
|
|
2693
|
+
app.get('/api/management/logs', (req, res) => {
|
|
2694
|
+
if (!fs.existsSync(LOG_DIR)) return res.json({ lines: [], "line-count": 0, "latest-timestamp": Date.now() });
|
|
2695
|
+
const logFiles = fs.readdirSync(LOG_DIR).filter(f => f.endsWith('.log'));
|
|
2696
|
+
if (logFiles.length === 0) return res.json({ lines: [], "line-count": 0, "latest-timestamp": Date.now() });
|
|
2697
|
+
|
|
2698
|
+
const latest = logFiles.map(f => ({ name: f, time: fs.statSync(path.join(LOG_DIR, f)).mtime.getTime() }))
|
|
2699
|
+
.sort((a, b) => b.time - a.time)[0];
|
|
2700
|
+
|
|
2701
|
+
const content = fs.readFileSync(path.join(LOG_DIR, latest.name), 'utf8');
|
|
2702
|
+
const lines = content.split('\n').slice(-1000);
|
|
2703
|
+
res.json({ lines, "line-count": lines.length, "latest-timestamp": latest.time });
|
|
2704
|
+
});
|
|
2705
|
+
|
|
2706
|
+
app.get('/api/management/usage', (req, res) => {
|
|
2707
|
+
res.json({
|
|
2708
|
+
usage: {
|
|
2709
|
+
total_requests: 0,
|
|
2710
|
+
success_count: 0,
|
|
2711
|
+
failure_count: 0,
|
|
2712
|
+
total_tokens: 0,
|
|
2713
|
+
requests_by_day: {},
|
|
2714
|
+
requests_by_hour: {},
|
|
2715
|
+
tokens_by_day: {},
|
|
2716
|
+
tokens_by_hour: {},
|
|
2717
|
+
apis: {},
|
|
2718
|
+
failed_requests: 0
|
|
2719
|
+
}
|
|
2720
|
+
});
|
|
2721
|
+
});
|
|
2722
|
+
|
|
2723
|
+
app.get('/api/management/logging-to-file', (req, res) => {
|
|
2724
|
+
if (!fs.existsSync(PROXY_CONFIG_PATH)) return res.json({ "logging-to-file": false });
|
|
2725
|
+
try {
|
|
2726
|
+
const content = fs.readFileSync(PROXY_CONFIG_PATH, 'utf8');
|
|
2727
|
+
const yaml = require('js-yaml');
|
|
2728
|
+
const doc = yaml.load(content) || {};
|
|
2729
|
+
res.json({ "logging-to-file": !!doc['logging-to-file'] });
|
|
2730
|
+
} catch (e) {
|
|
2731
|
+
res.json({ "logging-to-file": false });
|
|
2732
|
+
}
|
|
2733
|
+
});
|
|
2734
|
+
|
|
2735
|
+
app.patch('/api/management/logging-to-file', (req, res) => {
|
|
2736
|
+
if (!fs.existsSync(PROXY_CONFIG_PATH)) return res.status(404).json({ error: "Config not found" });
|
|
2737
|
+
const enabled = req.body.value;
|
|
2738
|
+
const content = fs.readFileSync(PROXY_CONFIG_PATH, 'utf8');
|
|
2739
|
+
const yaml = require('js-yaml');
|
|
2740
|
+
try {
|
|
2741
|
+
const doc = yaml.load(content) || {};
|
|
2742
|
+
doc['logging-to-file'] = enabled;
|
|
2743
|
+
fs.writeFileSync(PROXY_CONFIG_PATH, yaml.dump(doc));
|
|
2744
|
+
res.json({ status: "ok" });
|
|
2745
|
+
} catch (e) {
|
|
2746
|
+
res.status(500).json({ error: e.message });
|
|
2747
|
+
}
|
|
2748
|
+
});
|
|
2749
|
+
|
|
2750
|
+
app.delete('/api/management/logs', (req, res) => {
|
|
2751
|
+
if (!fs.existsSync(LOG_DIR)) return res.json({ success: true, removed: 0 });
|
|
2752
|
+
const logFiles = fs.readdirSync(LOG_DIR).filter(f => f.endsWith('.log'));
|
|
2753
|
+
let removed = 0;
|
|
2754
|
+
try {
|
|
2755
|
+
logFiles.forEach(f => {
|
|
2756
|
+
const filePath = path.join(LOG_DIR, f);
|
|
2757
|
+
fs.unlinkSync(filePath);
|
|
2758
|
+
removed++;
|
|
2759
|
+
});
|
|
2760
|
+
res.json({ success: true, removed });
|
|
2761
|
+
} catch (e) {
|
|
2762
|
+
res.status(500).json({ error: e.message });
|
|
2763
|
+
}
|
|
2764
|
+
});
|
|
2765
|
+
|
|
2642
2766
|
app.get('/api/profiles', (req, res) => {
|
|
2643
2767
|
res.json(profileManager.listProfiles());
|
|
2644
2768
|
});
|
package/logs/main.log
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
[2026-01-20 03:49:29] [--------] [info ] [main.go:415] CLIProxyAPI Version: 6.7.7, Commit: f8f3ad8, BuiltAt: 2026-01-16T21:41:36Z
|
|
2
|
+
[2026-01-20 03:49:29] [--------] [error] [run.go:54] proxy service exited with error: cliproxy: failed to create auth directory : mkdir : The system cannot find the path specified.
|
|
3
|
+
[2026-01-20 03:49:41] [--------] [info ] [main.go:415] CLIProxyAPI Version: 6.7.7, Commit: f8f3ad8, BuiltAt: 2026-01-16T21:41:36Z
|
|
4
|
+
[2026-01-20 03:49:41] [--------] [error] [run.go:54] proxy service exited with error: cliproxy: failed to create auth directory : mkdir : The system cannot find the path specified.
|
package/package.json
CHANGED
package/proxy-manager.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const { spawn, exec } = require('child_process');
|
|
1
|
+
const { spawn, exec, execSync } = require('child_process');
|
|
2
2
|
const fs = require('fs');
|
|
3
3
|
const path = require('path');
|
|
4
4
|
const os = require('os');
|
|
@@ -12,7 +12,6 @@ const PROXY_AUTH_DIR = path.join(HOME_DIR, '.cli-proxy-api');
|
|
|
12
12
|
let proxyProcess = null;
|
|
13
13
|
let isProxyRunning = false;
|
|
14
14
|
|
|
15
|
-
// Helper to check if binary exists
|
|
16
15
|
const checkBinary = (cmd) => {
|
|
17
16
|
return new Promise((resolve) => {
|
|
18
17
|
if (path.isAbsolute(cmd)) {
|
|
@@ -48,10 +47,8 @@ const getProxyCommand = async () => {
|
|
|
48
47
|
return null;
|
|
49
48
|
};
|
|
50
49
|
|
|
51
|
-
// Config Management
|
|
52
50
|
const loadProxyConfig = () => {
|
|
53
51
|
if (!fs.existsSync(PROXY_CONFIG_FILE)) {
|
|
54
|
-
// Default config
|
|
55
52
|
const defaultConfig = {
|
|
56
53
|
port: 8317,
|
|
57
54
|
cors: true,
|
|
@@ -98,24 +95,24 @@ const saveProxyConfig = (config) => {
|
|
|
98
95
|
}
|
|
99
96
|
};
|
|
100
97
|
|
|
101
|
-
// Process Management
|
|
102
98
|
const startProxy = async () => {
|
|
103
99
|
if (isProxyRunning) return { success: true, message: "Already running" };
|
|
104
100
|
|
|
105
101
|
const cmd = await getProxyCommand();
|
|
106
102
|
if (!cmd) return { success: false, error: "CLIProxyAPI binary not found. Please install it." };
|
|
107
103
|
|
|
108
|
-
// Ensure config exists
|
|
109
104
|
if (!fs.existsSync(PROXY_CONFIG_FILE)) loadProxyConfig();
|
|
110
105
|
|
|
111
|
-
console.log(`Starting proxy with command: ${cmd} -config ${PROXY_CONFIG_FILE}`);
|
|
106
|
+
console.log(`Starting proxy with command: ${cmd} -config "${PROXY_CONFIG_FILE}"`);
|
|
112
107
|
|
|
113
108
|
try {
|
|
114
|
-
// -no-browser flag to prevent it from trying to open browser on startup if that's a thing
|
|
115
109
|
proxyProcess = spawn(cmd, ['-config', PROXY_CONFIG_FILE], {
|
|
116
|
-
detached:
|
|
117
|
-
stdio: 'pipe'
|
|
110
|
+
detached: true,
|
|
111
|
+
stdio: 'pipe',
|
|
112
|
+
windowsHide: true
|
|
118
113
|
});
|
|
114
|
+
|
|
115
|
+
proxyProcess.unref();
|
|
119
116
|
|
|
120
117
|
proxyProcess.stdout.on('data', (data) => {
|
|
121
118
|
console.log(`[Proxy] ${data}`);
|
|
@@ -150,6 +147,27 @@ const stopProxy = () => {
|
|
|
150
147
|
|
|
151
148
|
const getStatus = async () => {
|
|
152
149
|
const cmd = await getProxyCommand();
|
|
150
|
+
|
|
151
|
+
let portBusy = false;
|
|
152
|
+
try {
|
|
153
|
+
if (process.platform === 'win32') {
|
|
154
|
+
const out = execSync('netstat -ano | findstr :8317 | findstr LISTENING', { encoding: 'utf8' });
|
|
155
|
+
portBusy = out.includes('LISTENING');
|
|
156
|
+
} else {
|
|
157
|
+
const out = execSync('lsof -i :8317 | grep LISTEN', { encoding: 'utf8' });
|
|
158
|
+
portBusy = out.length > 0;
|
|
159
|
+
}
|
|
160
|
+
} catch (e) {
|
|
161
|
+
portBusy = false;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
if (portBusy) {
|
|
165
|
+
isProxyRunning = true;
|
|
166
|
+
} else {
|
|
167
|
+
isProxyRunning = false;
|
|
168
|
+
proxyProcess = null;
|
|
169
|
+
}
|
|
170
|
+
|
|
153
171
|
return {
|
|
154
172
|
running: isProxyRunning,
|
|
155
173
|
pid: proxyProcess?.pid,
|
|
@@ -174,8 +192,6 @@ const runLogin = async (provider) => {
|
|
|
174
192
|
default: return { success: false, error: "Unknown provider" };
|
|
175
193
|
}
|
|
176
194
|
|
|
177
|
-
// Return the command so the UI can spawn a terminal for it
|
|
178
|
-
// We pass the config file so it saves the token to the right place/knows the auth-dir
|
|
179
195
|
const fullCmd = `${cmd} ${loginFlag} -config "${PROXY_CONFIG_FILE}"`;
|
|
180
196
|
|
|
181
197
|
return {
|
|
@@ -209,4 +225,4 @@ module.exports = {
|
|
|
209
225
|
saveProxyConfig,
|
|
210
226
|
runLogin,
|
|
211
227
|
listAccounts
|
|
212
|
-
};
|
|
228
|
+
};
|
package/server.log
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Server running at http://localhost:3001
|
|
1
|
+
Acceso denegado.
|
package/server_debug.log
ADDED
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
[Auth] Syncing github-copilot login for profile-1768874022150 to pool.
|
|
2
|
+
Server running at http://localhost:3001
|
|
3
|
+
[REQ] HEAD /api/management/api-keys
|
|
4
|
+
[REQ] GET /api/health
|
|
5
|
+
[REQ] GET /api/proxy/status
|
|
6
|
+
[REQ] HEAD /api/management/config.yaml
|
|
7
|
+
GET config.yaml hit
|
|
8
|
+
Sending config file: C:\Users\Microck\.config\opencode-studio\cliproxy.yaml
|
|
9
|
+
[REQ] GET /api/health
|
|
10
|
+
[REQ] GET /api/proxy/status
|
|
11
|
+
[REQ] HEAD /api/management/api-keys
|
|
12
|
+
[REQ] GET /api/health
|
|
13
|
+
[REQ] GET /api/proxy/status
|
|
14
|
+
[REQ] GET /api/health
|
|
15
|
+
[REQ] OPTIONS /api/sync/auto
|
|
16
|
+
[REQ] GET /api/config
|
|
17
|
+
[REQ] GET /api/skills
|
|
18
|
+
[REQ] GET /api/plugins
|
|
19
|
+
[REQ] POST /api/sync/auto
|
|
20
|
+
[REQ] GET /api/proxy/status
|
|
21
|
+
[REQ] GET /api/config
|
|
22
|
+
[REQ] GET /api/skills
|
|
23
|
+
[REQ] GET /api/plugins
|
|
24
|
+
[REQ] GET /api/proxy/status
|
|
25
|
+
[REQ] GET /api/health
|
|
26
|
+
[REQ] OPTIONS /api/sync/auto
|
|
27
|
+
[REQ] GET /api/config
|
|
28
|
+
[REQ] POST /api/sync/auto
|
|
29
|
+
[REQ] GET /api/skills
|
|
30
|
+
[REQ] GET /api/plugins
|
|
31
|
+
[REQ] GET /api/proxy/status
|
|
32
|
+
[REQ] GET /api/config
|
|
33
|
+
[REQ] GET /api/skills
|
|
34
|
+
[REQ] GET /api/plugins
|
|
35
|
+
[REQ] GET /api/proxy/status
|
|
36
|
+
[REQ] GET /api/health
|
|
37
|
+
[REQ] GET /api/health
|
|
38
|
+
[REQ] GET /api/health
|
|
39
|
+
[REQ] GET /api/proxy/status
|
|
40
|
+
[REQ] GET /api/proxy/status
|
|
41
|
+
[REQ] GET /api/health
|
|
42
|
+
[REQ] GET /api/health
|
|
43
|
+
[REQ] GET /api/health
|
|
44
|
+
[REQ] GET /api/health
|
|
45
|
+
[REQ] GET /api/proxy/status
|
|
46
|
+
[REQ] GET /api/health
|
|
47
|
+
[REQ] GET /api/health
|
|
48
|
+
[REQ] GET /api/health
|
|
49
|
+
[REQ] GET /api/health
|
|
50
|
+
[REQ] GET /api/proxy/status
|
|
51
|
+
[REQ] GET /api/health
|
|
52
|
+
[REQ] GET /api/proxy/status
|
|
53
|
+
[REQ] GET /api/health
|
|
54
|
+
[REQ] OPTIONS /api/sync/auto
|
|
55
|
+
[REQ] GET /api/config
|
|
56
|
+
[REQ] GET /api/skills
|
|
57
|
+
[REQ] GET /api/plugins
|
|
58
|
+
[REQ] POST /api/sync/auto
|
|
59
|
+
[REQ] GET /api/proxy/status
|
|
60
|
+
[REQ] GET /api/config
|
|
61
|
+
[REQ] GET /api/skills
|
|
62
|
+
[REQ] GET /api/plugins
|
|
63
|
+
[REQ] GET /api/proxy/status
|
|
64
|
+
[REQ] GET /api/health
|
|
65
|
+
[REQ] OPTIONS /api/sync/auto
|
|
66
|
+
[REQ] GET /api/config
|
|
67
|
+
[REQ] GET /api/skills
|
|
68
|
+
[REQ] GET /api/plugins
|
|
69
|
+
[REQ] POST /api/sync/auto
|
|
70
|
+
[REQ] GET /api/proxy/status
|
|
71
|
+
[REQ] GET /api/config
|
|
72
|
+
[REQ] GET /api/skills
|
|
73
|
+
[REQ] GET /api/plugins
|
|
74
|
+
[REQ] GET /api/proxy/status
|
|
75
|
+
[REQ] GET /api/health
|
|
76
|
+
[REQ] GET /api/proxy/status
|
|
77
|
+
[REQ] GET /api/health
|
|
78
|
+
[REQ] OPTIONS /api/sync/auto
|
|
79
|
+
[REQ] GET /api/config
|
|
80
|
+
[REQ] GET /api/skills
|
|
81
|
+
[REQ] GET /api/plugins
|
|
82
|
+
[REQ] POST /api/sync/auto
|
|
83
|
+
[REQ] GET /api/proxy/status
|
|
84
|
+
[REQ] GET /api/config
|
|
85
|
+
[REQ] GET /api/skills
|
|
86
|
+
[REQ] GET /api/plugins
|
|
87
|
+
[REQ] GET /api/proxy/status
|
|
88
|
+
[REQ] GET /api/health
|
|
89
|
+
[REQ] GET /api/health
|
|
90
|
+
[REQ] GET /api/health
|
|
91
|
+
[REQ] GET /api/proxy/status
|
|
92
|
+
[REQ] GET /api/health
|
|
93
|
+
[REQ] GET /api/health
|
|
94
|
+
[REQ] GET /api/health
|
|
95
|
+
[REQ] GET /api/proxy/status
|
|
96
|
+
[REQ] GET /api/health
|
|
97
|
+
[REQ] GET /api/health
|
|
98
|
+
[REQ] GET /api/health
|
|
99
|
+
[REQ] GET /api/health
|
|
100
|
+
[REQ] GET /api/proxy/status
|
|
101
|
+
[REQ] GET /api/health
|
|
102
|
+
[REQ] GET /api/proxy/status
|
|
103
|
+
[REQ] GET /api/health
|
|
104
|
+
[REQ] GET /api/health
|
|
105
|
+
[REQ] GET /api/health
|
|
106
|
+
[REQ] GET /api/proxy/status
|
|
107
|
+
[REQ] GET /api/health
|
|
108
|
+
[REQ] GET /api/health
|
|
109
|
+
[REQ] GET /api/health
|
|
110
|
+
[REQ] GET /api/proxy/status
|
|
111
|
+
[REQ] GET /api/health
|
|
112
|
+
[REQ] GET /api/health
|
|
113
|
+
[REQ] GET /api/health
|
|
114
|
+
[REQ] GET /api/health
|
|
115
|
+
[REQ] GET /api/proxy/status
|
|
116
|
+
[REQ] GET /api/health
|
|
117
|
+
[REQ] GET /api/health
|
|
118
|
+
[REQ] GET /api/health
|
|
119
|
+
[REQ] GET /api/proxy/status
|
|
120
|
+
[REQ] GET /api/health
|
|
121
|
+
[REQ] GET /api/health
|
|
122
|
+
[REQ] GET /api/health
|
|
123
|
+
[REQ] GET /api/proxy/status
|
|
124
|
+
[REQ] GET /api/health
|
|
125
|
+
[REQ] GET /api/health
|
|
126
|
+
[REQ] GET /api/health
|
|
127
|
+
[REQ] GET /api/health
|
|
128
|
+
[REQ] GET /api/proxy/status
|
|
129
|
+
[REQ] GET /api/health
|
|
130
|
+
[REQ] GET /api/proxy/status
|
|
131
|
+
[REQ] GET /api/health
|
|
132
|
+
[REQ] GET /api/health
|
|
133
|
+
[REQ] GET /api/health
|
|
134
|
+
[REQ] GET /api/proxy/status
|
|
135
|
+
[REQ] GET /api/health
|
|
136
|
+
[REQ] GET /api/health
|
|
137
|
+
[REQ] GET /api/health
|
|
138
|
+
[REQ] GET /api/proxy/status
|
|
139
|
+
[REQ] GET /api/health
|
|
140
|
+
[REQ] GET /api/health
|
|
141
|
+
[REQ] GET /api/health
|
|
142
|
+
[REQ] GET /api/health
|
|
143
|
+
[REQ] OPTIONS /api/sync/auto
|
|
144
|
+
[REQ] GET /api/config
|
|
145
|
+
[REQ] GET /api/skills
|
|
146
|
+
[REQ] GET /api/plugins
|
|
147
|
+
[REQ] POST /api/sync/auto
|
|
148
|
+
[REQ] GET /api/proxy/status
|
|
149
|
+
[REQ] GET /api/config
|
|
150
|
+
[REQ] GET /api/skills
|
|
151
|
+
[REQ] GET /api/plugins
|
|
152
|
+
[REQ] GET /api/proxy/status
|
|
153
|
+
[REQ] GET /api/auth/pool?provider=google
|
|
154
|
+
[Auth] getProfileDir: ns=google.antigravity, nsHas=true, plainHas=false
|
|
155
|
+
[REQ] GET /api/auth/pool?provider=google
|
|
156
|
+
[Auth] getProfileDir: ns=google.antigravity, nsHas=true, plainHas=false
|
|
157
|
+
[REQ] GET /api/management/api-keys
|
|
158
|
+
[REQ] GET /api/management/api-keys
|
|
159
|
+
[REQ] GET /api/health
|
|
160
|
+
[REQ] GET /api/management/config.yaml
|
|
161
|
+
GET config.yaml hit
|
|
162
|
+
Sending config file: C:\Users\Microck\.config\opencode-studio\cliproxy.yaml
|
|
163
|
+
[REQ] GET /api/management/config.yaml
|
|
164
|
+
GET config.yaml hit
|
|
165
|
+
Sending config file: C:\Users\Microck\.config\opencode-studio\cliproxy.yaml
|
|
166
|
+
[REQ] GET /api/management/logging-to-file
|
|
167
|
+
[REQ] GET /api/management/logging-to-file
|
|
168
|
+
[REQ] GET /api/management/usage
|
|
169
|
+
[REQ] GET /api/management/usage
|
|
170
|
+
[REQ] GET /api/health
|
|
171
|
+
[REQ] OPTIONS /api/sync/auto
|
|
172
|
+
[REQ] POST /api/sync/auto
|
|
173
|
+
[REQ] GET /api/proxy/status
|
|
174
|
+
[REQ] GET /api/auth/pool?provider=google
|
|
175
|
+
[Auth] getProfileDir: ns=google.antigravity, nsHas=true, plainHas=false
|
|
176
|
+
[REQ] GET /api/cooldowns
|
|
177
|
+
[REQ] GET /api/auth/pool?provider=openai
|
|
178
|
+
[REQ] GET /api/auth/pool?provider=anthropic
|
|
179
|
+
[REQ] GET /api/config
|
|
180
|
+
[REQ] GET /api/skills
|
|
181
|
+
[REQ] GET /api/plugins
|
|
182
|
+
[REQ] GET /api/health
|
|
183
|
+
[REQ] GET /api/health
|
|
184
|
+
[REQ] OPTIONS /api/sync/auto
|
|
185
|
+
[REQ] GET /api/config
|
|
186
|
+
[REQ] GET /api/skills
|
|
187
|
+
[REQ] GET /api/plugins
|
|
188
|
+
[REQ] POST /api/sync/auto
|
|
189
|
+
[REQ] GET /api/config
|
|
190
|
+
[REQ] GET /api/skills
|
|
191
|
+
[REQ] GET /api/plugins
|
|
192
|
+
[REQ] GET /api/proxy/status
|
|
193
|
+
[REQ] GET /api/health
|
|
194
|
+
[REQ] GET /api/auth/pool?provider=google
|
|
195
|
+
[Auth] getProfileDir: ns=google.antigravity, nsHas=true, plainHas=false
|
|
196
|
+
[REQ] GET /api/health
|
|
197
|
+
[REQ] GET /api/management/api-keys
|
|
198
|
+
[REQ] GET /api/health
|
|
199
|
+
[REQ] GET /api/health
|
|
200
|
+
[REQ] GET /api/proxy/status
|
|
201
|
+
[REQ] GET /api/health
|
|
202
|
+
[REQ] GET /api/health
|
|
203
|
+
[REQ] GET /api/health
|
|
204
|
+
[REQ] GET /api/proxy/status
|
|
205
|
+
[REQ] GET /api/health
|
|
206
|
+
[REQ] GET /api/management/config.yaml
|
|
207
|
+
GET config.yaml hit
|
|
208
|
+
Sending config file: C:\Users\Microck\.config\opencode-studio\cliproxy.yaml
|
|
209
|
+
[REQ] GET /api/health
|
|
210
|
+
[REQ] GET /api/health
|
|
211
|
+
[REQ] GET /api/proxy/status
|
|
212
|
+
[REQ] GET /api/health
|
|
213
|
+
[REQ] GET /api/management/logging-to-file
|
|
214
|
+
[REQ] GET /api/management/logs
|
|
215
|
+
[REQ] OPTIONS /api/management/logging-to-file
|
|
216
|
+
[REQ] PATCH /api/management/logging-to-file
|
|
217
|
+
[REQ] GET /api/management/logging-to-file
|
|
218
|
+
[REQ] GET /api/health
|
|
219
|
+
[REQ] GET /api/management/logs?after=1768877356971
|
|
220
|
+
[REQ] GET /api/health
|
|
221
|
+
[REQ] GET /api/management/logs?after=1768877356971
|
|
222
|
+
[REQ] GET /api/management/usage
|
|
223
|
+
[REQ] GET /api/health
|
|
224
|
+
[REQ] GET /api/proxy/status
|
|
225
|
+
[REQ] GET /api/management/logging-to-file
|
|
226
|
+
[REQ] GET /api/health
|
|
227
|
+
[REQ] POST /api/proxy/start
|
|
228
|
+
Starting proxy with command: C:\Users\Microck\AppData\Local\Microsoft\WinGet\Links\cli-proxy-api.exe -config C:\Users\Microck\.config\opencode-studio\cliproxy.yaml
|
|
229
|
+
[REQ] GET /api/proxy/status
|
|
230
|
+
[Proxy] CLIProxyAPI Version: 6.7.7, Commit: f8f3ad8, BuiltAt: 2026-01-16T21:41:36Z
|
|
231
|
+
|
|
232
|
+
[Proxy] Exited with code 0
|
|
233
|
+
[REQ] GET /api/health
|
|
234
|
+
[REQ] GET /api/health
|
|
235
|
+
[REQ] GET /api/proxy/status
|
|
236
|
+
[REQ] GET /api/health
|
|
237
|
+
[REQ] GET /api/auth/pool?provider=google
|
|
238
|
+
[Auth] getProfileDir: ns=google.antigravity, nsHas=true, plainHas=false
|
|
239
|
+
[REQ] GET /api/auth/pool?provider=openai
|
|
240
|
+
[REQ] GET /api/health
|
|
241
|
+
[REQ] POST /api/proxy/start
|
|
242
|
+
Starting proxy with command: C:\Users\Microck\AppData\Local\Microsoft\WinGet\Links\cli-proxy-api.exe -config C:\Users\Microck\.config\opencode-studio\cliproxy.yaml
|
|
243
|
+
[REQ] GET /api/proxy/status
|
|
244
|
+
[Proxy] CLIProxyAPI Version: 6.7.7, Commit: f8f3ad8, BuiltAt: 2026-01-16T21:41:36Z
|
|
245
|
+
|
|
246
|
+
[Proxy] Exited with code 0
|
|
247
|
+
[REQ] GET /api/auth/pool?provider=google
|
|
248
|
+
[Auth] getProfileDir: ns=google.antigravity, nsHas=true, plainHas=false
|
|
249
|
+
[REQ] GET /api/auth/pool?provider=openai
|
|
250
|
+
[REQ] GET /api/health
|
|
251
|
+
[REQ] GET /api/management/logging-to-file
|
|
252
|
+
[REQ] GET /api/proxy/status
|
|
253
|
+
[REQ] GET /api/health
|
|
254
|
+
[REQ] OPTIONS /api/management/logging-to-file
|
|
255
|
+
[REQ] PATCH /api/management/logging-to-file
|
|
256
|
+
[REQ] PATCH /api/management/logging-to-file
|
|
257
|
+
[REQ] GET /api/management/logs
|
|
258
|
+
[REQ] GET /api/management/logging-to-file
|
|
259
|
+
[REQ] GET /api/health
|
|
260
|
+
[REQ] GET /api/management/logs?after=1768877386976
|
|
261
|
+
[REQ] GET /api/management/logging-to-file
|
|
262
|
+
[REQ] GET /api/management/logs?after=1768877390175
|
|
263
|
+
[REQ] GET /api/management/logging-to-file
|
|
264
|
+
[REQ] GET /api/health
|
|
265
|
+
[REQ] GET /api/management/logs?after=1768877392037
|
|
266
|
+
[REQ] GET /api/management/logging-to-file
|
|
267
|
+
[REQ] GET /api/health
|
|
268
|
+
[REQ] GET /api/proxy/status
|
|
269
|
+
[REQ] GET /api/management/logs?after=1768877393439
|
|
270
|
+
[REQ] GET /api/management/logging-to-file
|
|
271
|
+
[REQ] GET /api/health
|
|
272
|
+
[REQ] GET /api/management/logs?after=1768877397061
|
|
273
|
+
[REQ] GET /api/management/logging-to-file
|
|
274
|
+
[REQ] OPTIONS /api/management/logging-to-file
|
|
275
|
+
[REQ] PATCH /api/management/logging-to-file
|
|
276
|
+
[REQ] GET /api/management/logs?after=1768877398094
|
|
277
|
+
[REQ] GET /api/management/logging-to-file
|
|
278
|
+
[REQ] GET /api/health
|
|
279
|
+
[REQ] GET /api/management/logs?after=1768877400153
|
|
280
|
+
[REQ] GET /api/management/logging-to-file
|
|
281
|
+
[REQ] GET /api/health
|
|
282
|
+
[REQ] GET /api/management/logs?after=1768877402561
|
|
283
|
+
[REQ] GET /api/management/logging-to-file
|
|
284
|
+
[REQ] GET /api/proxy/status
|
|
285
|
+
[REQ] GET /api/health
|
|
286
|
+
[REQ] GET /api/management/logs?after=1768877406180
|
|
287
|
+
[REQ] GET /api/management/logging-to-file
|
|
288
|
+
[REQ] GET /api/health
|
|
289
|
+
[REQ] GET /api/management/logs?after=1768877406933
|
|
290
|
+
[REQ] GET /api/management/logs?after=1768877406933
|
|
291
|
+
[REQ] GET /api/health
|
|
292
|
+
[REQ] GET /api/management/logs?after=1768877406933
|
|
293
|
+
[REQ] GET /api/management/logging-to-file
|
|
294
|
+
[REQ] GET /api/proxy/status
|
|
295
|
+
[REQ] GET /api/health
|
|
296
|
+
[REQ] GET /api/management/logs?after=1768877414924
|
|
297
|
+
[REQ] GET /api/management/logging-to-file
|
|
298
|
+
[REQ] GET /api/management/logs?after=1768877415269
|
|
299
|
+
[REQ] GET /api/health
|
|
300
|
+
[REQ] GET /api/management/logs?after=1768877415269
|
|
301
|
+
[REQ] GET /api/health
|
|
302
|
+
[REQ] GET /api/management/logs?after=1768877415269
|
|
303
|
+
[REQ] GET /api/health
|
|
304
|
+
[REQ] GET /api/proxy/status
|
|
305
|
+
[REQ] GET /api/auth/pool?provider=google
|
|
306
|
+
[Auth] getProfileDir: ns=google.antigravity, nsHas=true, plainHas=false
|
|
307
|
+
[REQ] GET /api/auth/pool?provider=openai
|
|
308
|
+
[REQ] GET /api/auth/pool?provider=anthropic
|
|
309
|
+
[REQ] GET /api/auth/pool?provider=openai
|
|
310
|
+
[REQ] GET /api/auth/pool?provider=google
|
|
311
|
+
[Auth] getProfileDir: ns=google.antigravity, nsHas=true, plainHas=false
|
|
312
|
+
[REQ] GET /api/health
|
|
313
|
+
[REQ] GET /api/auth/pool?provider=openai
|
|
314
|
+
[REQ] GET /api/auth/pool?provider=google
|
|
315
|
+
[Auth] getProfileDir: ns=google.antigravity, nsHas=true, plainHas=false
|
|
316
|
+
[REQ] GET /api/auth/pool?provider=openai
|
|
317
|
+
[REQ] GET /api/health
|
|
318
|
+
[REQ] GET /api/auth/pool?provider=google
|
|
319
|
+
[Auth] getProfileDir: ns=google.antigravity, nsHas=true, plainHas=false
|
|
320
|
+
[REQ] GET /api/auth/pool?provider=openai
|
|
321
|
+
[REQ] GET /api/auth/pool?provider=anthropic
|
|
322
|
+
[REQ] GET /api/auth/pool?provider=openai
|
|
323
|
+
[REQ] GET /api/auth/pool?provider=google
|
|
324
|
+
[Auth] getProfileDir: ns=google.antigravity, nsHas=true, plainHas=false
|
|
325
|
+
[REQ] GET /api/health
|
|
326
|
+
[REQ] GET /api/proxy/status
|
|
327
|
+
[REQ] GET /api/auth/pool?provider=google
|
|
328
|
+
[Auth] getProfileDir: ns=google.antigravity, nsHas=true, plainHas=false
|
|
329
|
+
[REQ] GET /api/proxy/status
|
|
330
|
+
[REQ] GET /api/proxy/status
|
|
331
|
+
[REQ] GET /api/proxy/status
|
|
332
|
+
[REQ] GET /api/proxy/status
|
|
333
|
+
[REQ] GET /api/proxy/status
|
|
334
|
+
[REQ] GET /api/health
|
|
335
|
+
[REQ] GET /api/proxy/status
|
|
336
|
+
[REQ] GET /api/proxy/status
|
|
337
|
+
[REQ] GET /api/proxy/status
|
|
338
|
+
[REQ] GET /api/health
|
|
339
|
+
[REQ] GET /api/auth/pool?provider=openai
|
|
340
|
+
[REQ] GET /api/health
|
|
341
|
+
[REQ] GET /api/auth/pool?provider=anthropic
|
|
342
|
+
[REQ] GET /api/proxy/status
|
|
343
|
+
[REQ] GET /api/health
|
|
344
|
+
[REQ] GET /api/health
|
|
345
|
+
[REQ] GET /api/health
|
|
346
|
+
[REQ] GET /api/health
|
|
347
|
+
[REQ] GET /api/proxy/status
|
|
348
|
+
[REQ] GET /api/health
|
|
349
|
+
[REQ] GET /api/health
|
|
350
|
+
[REQ] GET /api/health
|
|
351
|
+
[REQ] GET /api/proxy/status
|
|
352
|
+
[REQ] GET /api/health
|
|
353
|
+
[REQ] GET /api/health
|
|
354
|
+
[REQ] GET /api/health
|
|
355
|
+
[REQ] GET /api/health
|
|
356
|
+
[REQ] GET /api/proxy/status
|
|
357
|
+
[REQ] GET /api/health
|
|
358
|
+
[REQ] GET /api/health
|
|
359
|
+
[REQ] GET /api/health
|
|
360
|
+
[REQ] GET /api/proxy/status
|
|
361
|
+
[REQ] GET /api/health
|
|
362
|
+
[REQ] GET /api/health
|
|
363
|
+
[REQ] GET /api/health
|
|
364
|
+
[REQ] GET /api/proxy/status
|
|
365
|
+
[REQ] GET /api/health
|
|
366
|
+
[REQ] GET /api/health
|
|
367
|
+
[REQ] GET /api/health
|
|
368
|
+
[REQ] GET /api/proxy/status
|
|
369
|
+
[REQ] GET /api/health
|
|
370
|
+
[REQ] GET /api/health
|
|
371
|
+
[REQ] GET /api/health
|
|
372
|
+
[REQ] GET /api/health
|
|
373
|
+
[REQ] GET /api/proxy/status
|
|
374
|
+
[REQ] GET /api/health
|
|
375
|
+
[REQ] GET /api/proxy/status
|
|
376
|
+
[REQ] GET /api/health
|
|
377
|
+
[REQ] GET /api/proxy/status
|
|
378
|
+
[REQ] GET /api/health
|
|
379
|
+
[REQ] GET /api/proxy/status
|
|
380
|
+
[REQ] GET /api/health
|
|
381
|
+
[REQ] GET /api/proxy/status
|
|
382
|
+
[REQ] GET /api/proxy/status
|
|
383
|
+
[REQ] GET /api/health
|
|
384
|
+
[REQ] GET /api/health
|
|
385
|
+
[REQ] GET /api/proxy/status
|
|
386
|
+
[REQ] GET /api/health
|
|
387
|
+
[REQ] GET /api/proxy/status
|