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.
Files changed (73) hide show
  1. package/README.md +32 -9
  2. package/README.zh.md +33 -9
  3. package/cli/auth-profiles.js +23 -7
  4. package/cli/builtin-proxy.js +35 -0
  5. package/cli/claude-proxy.js +24 -0
  6. package/cli/doctor-core.js +903 -0
  7. package/cli/import-skills-url.js +356 -0
  8. package/cli/openai-bridge.js +51 -4
  9. package/cli/session-usage.js +8 -2
  10. package/cli.js +1921 -399
  11. package/lib/automation.js +404 -0
  12. package/lib/cli-models-utils.js +0 -40
  13. package/lib/cli-network-utils.js +28 -2
  14. package/lib/cli-path-utils.js +21 -5
  15. package/lib/cli-sessions.js +32 -1
  16. package/lib/download-artifacts.js +17 -2
  17. package/lib/mcp-stdio.js +13 -0
  18. package/package.json +3 -3
  19. package/plugins/README.md +20 -0
  20. package/plugins/README.zh-CN.md +20 -0
  21. package/plugins/prompt-templates/comment-polish/index.mjs +25 -0
  22. package/plugins/prompt-templates/computed.mjs +253 -0
  23. package/plugins/prompt-templates/index.mjs +8 -0
  24. package/plugins/prompt-templates/manifest.mjs +15 -0
  25. package/plugins/prompt-templates/methods.mjs +619 -0
  26. package/plugins/prompt-templates/overview.mjs +90 -0
  27. package/plugins/prompt-templates/ownership.mjs +19 -0
  28. package/plugins/prompt-templates/rule-ack/index.mjs +21 -0
  29. package/plugins/prompt-templates/storage.mjs +64 -0
  30. package/plugins/registry.mjs +16 -0
  31. package/web-ui/app.js +21 -35
  32. package/web-ui/index.html +4 -3
  33. package/web-ui/logic.sessions.mjs +2 -2
  34. package/web-ui/modules/app.computed.dashboard.mjs +24 -22
  35. package/web-ui/modules/app.computed.main-tabs.mjs +3 -0
  36. package/web-ui/modules/app.computed.session.mjs +17 -0
  37. package/web-ui/modules/app.methods.agents.mjs +91 -3
  38. package/web-ui/modules/app.methods.codex-config.mjs +153 -164
  39. package/web-ui/modules/app.methods.install.mjs +28 -0
  40. package/web-ui/modules/app.methods.navigation.mjs +34 -1
  41. package/web-ui/modules/app.methods.runtime.mjs +24 -2
  42. package/web-ui/modules/app.methods.session-actions.mjs +8 -1
  43. package/web-ui/modules/app.methods.session-browser.mjs +37 -6
  44. package/web-ui/modules/app.methods.session-trash.mjs +4 -2
  45. package/web-ui/modules/config-mode.computed.mjs +1 -3
  46. package/web-ui/modules/i18n.dict.mjs +2055 -0
  47. package/web-ui/modules/i18n.mjs +2 -1769
  48. package/web-ui/partials/index/layout-header.html +48 -34
  49. package/web-ui/partials/index/modal-config-template-agents.html +3 -4
  50. package/web-ui/partials/index/modal-health-check.html +33 -60
  51. package/web-ui/partials/index/panel-config-claude.html +35 -15
  52. package/web-ui/partials/index/panel-config-codex.html +47 -19
  53. package/web-ui/partials/index/panel-config-openclaw.html +8 -3
  54. package/web-ui/partials/index/panel-dashboard.html +186 -0
  55. package/web-ui/partials/index/panel-docs.html +1 -1
  56. package/web-ui/partials/index/panel-market.html +3 -0
  57. package/web-ui/partials/index/panel-orchestration.html +3 -0
  58. package/web-ui/partials/index/panel-plugins.html +16 -10
  59. package/web-ui/partials/index/panel-sessions.html +8 -3
  60. package/web-ui/partials/index/panel-settings.html +1 -1
  61. package/web-ui/partials/index/panel-usage.html +9 -1
  62. package/web-ui/res/logo-pack.webp +0 -0
  63. package/web-ui/styles/controls-forms.css +58 -4
  64. package/web-ui/styles/dashboard.css +274 -0
  65. package/web-ui/styles/layout-shell.css +3 -2
  66. package/web-ui/styles/responsive.css +0 -2
  67. package/web-ui/styles/sessions-list.css +5 -7
  68. package/web-ui/styles/sessions-toolbar-trash.css +4 -4
  69. package/web-ui/styles/sessions-usage.css +33 -0
  70. package/web-ui/styles.css +1 -0
  71. package/res/logo.png +0 -0
  72. /package/{res → web-ui/res}/json5.min.js +0 -0
  73. /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' ? 'claude' : 'codex';
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 || '未选择';