@wu529778790/open-im 1.11.3-beta.2 → 1.11.3-beta.3
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/dist/config/file-io.js
CHANGED
|
@@ -21,7 +21,7 @@ const OLD_ROOT_KEYS = [
|
|
|
21
21
|
'claudeTimeoutMs',
|
|
22
22
|
'claudeModel',
|
|
23
23
|
];
|
|
24
|
-
const AI_COMMANDS = ['claude', 'codex', 'codebuddy'];
|
|
24
|
+
const AI_COMMANDS = ['claude', 'codex', 'codebuddy', 'opencode'];
|
|
25
25
|
const require = createRequire(import.meta.url);
|
|
26
26
|
/** Claude 认证相关的环境变量 key 列表 */
|
|
27
27
|
export const CLAUDE_AUTH_ENV_KEYS = [
|
package/dist/config.js
CHANGED
|
@@ -563,7 +563,7 @@ export function getPlatformsWithCredentials(config) {
|
|
|
563
563
|
}
|
|
564
564
|
export function resolvePlatformAiCommand(config, platform) {
|
|
565
565
|
const v = config.platforms[platform]?.aiCommand;
|
|
566
|
-
return v === 'claude' || v === 'codex' || v === 'codebuddy' ? v : 'claude';
|
|
566
|
+
return v === 'claude' || v === 'codex' || v === 'codebuddy' || v === 'opencode' ? v : 'claude';
|
|
567
567
|
}
|
|
568
568
|
export function getConfiguredAiCommands(config) {
|
|
569
569
|
const commands = new Set();
|
|
@@ -361,7 +361,7 @@ export class SessionManager {
|
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
363
|
clearConvSessionMappings(userId, convId) {
|
|
364
|
-
for (const toolId of ['claude', 'codex', 'codebuddy']) {
|
|
364
|
+
for (const toolId of ['claude', 'codex', 'codebuddy', 'opencode']) {
|
|
365
365
|
this.convSessionMap.delete(this.getConvSessionKey(userId, convId, toolId));
|
|
366
366
|
}
|
|
367
367
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wu529778790/open-im",
|
|
3
|
-
"version": "1.11.3-beta.
|
|
3
|
+
"version": "1.11.3-beta.3",
|
|
4
4
|
"description": "Your AI coding assistant, in every chat app. Multi-platform IM bridge for Claude Code, Codex, and CodeBuddy.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|