codexmate 0.0.23 → 0.0.25
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 +32 -9
- package/README.zh.md +33 -9
- package/cli/auth-profiles.js +23 -7
- package/cli/builtin-proxy.js +35 -0
- package/cli/claude-proxy.js +24 -0
- package/cli/doctor-core.js +903 -0
- package/cli/import-skills-url.js +356 -0
- package/cli/openai-bridge.js +51 -4
- package/cli/session-usage.js +8 -2
- package/cli.js +1921 -399
- package/lib/automation.js +404 -0
- package/lib/cli-models-utils.js +0 -40
- package/lib/cli-network-utils.js +28 -2
- package/lib/cli-path-utils.js +21 -5
- package/lib/cli-sessions.js +32 -1
- package/lib/download-artifacts.js +17 -2
- package/lib/mcp-stdio.js +13 -0
- package/package.json +3 -3
- package/plugins/README.md +20 -0
- package/plugins/README.zh-CN.md +20 -0
- package/plugins/prompt-templates/comment-polish/index.mjs +25 -0
- package/plugins/prompt-templates/computed.mjs +253 -0
- package/plugins/prompt-templates/index.mjs +8 -0
- package/plugins/prompt-templates/manifest.mjs +15 -0
- package/plugins/prompt-templates/methods.mjs +619 -0
- package/plugins/prompt-templates/overview.mjs +90 -0
- package/plugins/prompt-templates/ownership.mjs +19 -0
- package/plugins/prompt-templates/rule-ack/index.mjs +21 -0
- package/plugins/prompt-templates/storage.mjs +64 -0
- package/plugins/registry.mjs +16 -0
- package/web-ui/app.js +21 -35
- package/web-ui/index.html +4 -3
- package/web-ui/logic.sessions.mjs +2 -2
- package/web-ui/modules/app.computed.dashboard.mjs +24 -22
- package/web-ui/modules/app.computed.main-tabs.mjs +3 -0
- package/web-ui/modules/app.computed.session.mjs +17 -0
- package/web-ui/modules/app.methods.agents.mjs +91 -3
- package/web-ui/modules/app.methods.codex-config.mjs +153 -164
- package/web-ui/modules/app.methods.install.mjs +28 -0
- package/web-ui/modules/app.methods.navigation.mjs +34 -1
- package/web-ui/modules/app.methods.runtime.mjs +24 -2
- package/web-ui/modules/app.methods.session-actions.mjs +8 -1
- package/web-ui/modules/app.methods.session-browser.mjs +37 -6
- package/web-ui/modules/app.methods.session-trash.mjs +4 -2
- package/web-ui/modules/config-mode.computed.mjs +1 -3
- package/web-ui/modules/i18n.dict.mjs +2055 -0
- package/web-ui/modules/i18n.mjs +2 -1769
- package/web-ui/partials/index/layout-header.html +48 -34
- package/web-ui/partials/index/modal-config-template-agents.html +3 -4
- package/web-ui/partials/index/modal-health-check.html +33 -60
- package/web-ui/partials/index/panel-config-claude.html +35 -15
- package/web-ui/partials/index/panel-config-codex.html +47 -19
- package/web-ui/partials/index/panel-config-openclaw.html +8 -3
- package/web-ui/partials/index/panel-dashboard.html +186 -0
- package/web-ui/partials/index/panel-docs.html +1 -1
- package/web-ui/partials/index/panel-market.html +3 -0
- package/web-ui/partials/index/panel-orchestration.html +3 -0
- package/web-ui/partials/index/panel-plugins.html +16 -10
- package/web-ui/partials/index/panel-sessions.html +8 -3
- package/web-ui/partials/index/panel-settings.html +1 -1
- package/web-ui/partials/index/panel-usage.html +9 -1
- package/web-ui/res/logo-pack.webp +0 -0
- package/web-ui/styles/controls-forms.css +58 -4
- package/web-ui/styles/dashboard.css +274 -0
- package/web-ui/styles/layout-shell.css +3 -2
- package/web-ui/styles/responsive.css +0 -2
- package/web-ui/styles/sessions-list.css +5 -7
- package/web-ui/styles/sessions-toolbar-trash.css +4 -4
- package/web-ui/styles/sessions-usage.css +33 -0
- package/web-ui/styles.css +1 -0
- package/res/logo.png +0 -0
- /package/{res → web-ui/res}/json5.min.js +0 -0
- /package/{res → web-ui/res}/vue.global.prod.js +0 -0
|
@@ -10,13 +10,15 @@ export function createSessionTrashMethods(options = {}) {
|
|
|
10
10
|
const deletedAt = typeof result.deletedAt === 'string' && result.deletedAt
|
|
11
11
|
? result.deletedAt
|
|
12
12
|
: new Date().toISOString();
|
|
13
|
-
const source = session && session.source === 'claude'
|
|
13
|
+
const source = session && (session.source === 'claude' || session.source === 'gemini')
|
|
14
|
+
? session.source
|
|
15
|
+
: 'codex';
|
|
14
16
|
return {
|
|
15
17
|
trashId: typeof result.trashId === 'string' ? result.trashId : '',
|
|
16
18
|
source,
|
|
17
19
|
sourceLabel: session && typeof session.sourceLabel === 'string' && session.sourceLabel
|
|
18
20
|
? session.sourceLabel
|
|
19
|
-
: (source === 'claude' ? 'Claude Code' : 'Codex'),
|
|
21
|
+
: (source === 'claude' ? 'Claude Code' : (source === 'gemini' ? 'Gemini CLI' : 'Codex')),
|
|
20
22
|
sessionId: session && typeof session.sessionId === 'string' ? session.sessionId : '',
|
|
21
23
|
title: session && typeof session.title === 'string' && session.title
|
|
22
24
|
? session.title
|
|
@@ -47,6 +47,7 @@ export function createConfigModeComputed() {
|
|
|
47
47
|
return `${this.activeProviderModeLabel} 当前复用 Codex Provider / Model 管理链路。`;
|
|
48
48
|
},
|
|
49
49
|
inspectorMainTabLabel() {
|
|
50
|
+
if (this.mainTab === 'dashboard') return '概览';
|
|
50
51
|
if (this.mainTab === 'config') return '配置中心';
|
|
51
52
|
if (this.mainTab === 'sessions') return '会话浏览';
|
|
52
53
|
if (this.mainTab === 'usage') return 'Usage';
|
|
@@ -56,7 +57,6 @@ export function createConfigModeComputed() {
|
|
|
56
57
|
return '未知';
|
|
57
58
|
},
|
|
58
59
|
inspectorConfigModeLabel() {
|
|
59
|
-
if (this.mainTab !== 'config') return '--';
|
|
60
60
|
const providerMeta = getProviderConfigModeMeta(this.configMode);
|
|
61
61
|
if (providerMeta) return providerMeta.label;
|
|
62
62
|
if (this.configMode === 'claude') return 'Claude Code';
|
|
@@ -64,7 +64,6 @@ export function createConfigModeComputed() {
|
|
|
64
64
|
return '未选择';
|
|
65
65
|
},
|
|
66
66
|
inspectorCurrentConfigLabel() {
|
|
67
|
-
if (this.mainTab !== 'config') return '--';
|
|
68
67
|
if (getProviderConfigModeMeta(this.configMode)) {
|
|
69
68
|
const provider = typeof this.currentProvider === 'string' ? this.currentProvider.trim() : '';
|
|
70
69
|
return provider || '未选择';
|
|
@@ -80,7 +79,6 @@ export function createConfigModeComputed() {
|
|
|
80
79
|
return '未选择';
|
|
81
80
|
},
|
|
82
81
|
inspectorCurrentModelLabel() {
|
|
83
|
-
if (this.mainTab !== 'config') return '--';
|
|
84
82
|
if (getProviderConfigModeMeta(this.configMode)) {
|
|
85
83
|
const model = typeof this.currentModel === 'string' ? this.currentModel.trim() : '';
|
|
86
84
|
return model || '未选择';
|