codexmate 0.0.32 → 0.0.34

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 (148) hide show
  1. package/README.md +147 -363
  2. package/README.zh.md +147 -371
  3. package/cli/agents-files.js +230 -224
  4. package/cli/archive-helpers.js +453 -446
  5. package/cli/auth-profiles.js +375 -375
  6. package/cli/builtin-proxy.js +1725 -1725
  7. package/cli/claude-proxy.js +1022 -1022
  8. package/cli/config-bootstrap.js +402 -402
  9. package/cli/config-health.js +454 -454
  10. package/cli/doctor-core.js +903 -903
  11. package/cli/import-skills-url.js +356 -356
  12. package/cli/local-bridge.js +556 -324
  13. package/cli/openai-bridge.js +1653 -1653
  14. package/cli/openclaw-config.js +629 -629
  15. package/cli/session-convert-args.js +69 -69
  16. package/cli/session-convert-io.js +82 -82
  17. package/cli/session-convert.js +150 -150
  18. package/cli/session-usage.concurrent.js +28 -28
  19. package/cli/session-usage.js +118 -118
  20. package/cli/session-usage.models.js +176 -176
  21. package/cli/skills.js +1141 -1141
  22. package/cli/update.js +171 -0
  23. package/cli/zip-commands.js +510 -510
  24. package/cli.js +16079 -15829
  25. package/lib/automation.js +404 -404
  26. package/lib/cli-file-utils.js +151 -151
  27. package/lib/cli-models-utils.js +440 -440
  28. package/lib/cli-network-utils.js +190 -190
  29. package/lib/cli-path-utils.js +85 -85
  30. package/lib/cli-session-utils.js +121 -121
  31. package/lib/cli-sessions.js +427 -426
  32. package/lib/cli-utils.js +155 -155
  33. package/lib/cli-webhook.js +154 -126
  34. package/lib/download-artifacts.js +92 -92
  35. package/lib/mcp-stdio.js +453 -453
  36. package/lib/task-orchestrator.js +869 -869
  37. package/lib/text-diff.js +303 -303
  38. package/lib/win-tray.js +119 -0
  39. package/lib/workflow-engine.js +340 -340
  40. package/package.json +76 -76
  41. package/plugins/README.md +20 -20
  42. package/plugins/README.zh-CN.md +20 -20
  43. package/plugins/prompt-templates/comment-polish/index.mjs +25 -25
  44. package/plugins/prompt-templates/computed.mjs +253 -253
  45. package/plugins/prompt-templates/index.mjs +8 -8
  46. package/plugins/prompt-templates/manifest.mjs +15 -15
  47. package/plugins/prompt-templates/methods.mjs +553 -553
  48. package/plugins/prompt-templates/overview.mjs +91 -91
  49. package/plugins/prompt-templates/ownership.mjs +19 -19
  50. package/plugins/prompt-templates/rule-ack/index.mjs +21 -21
  51. package/plugins/prompt-templates/storage.mjs +64 -64
  52. package/plugins/registry.mjs +16 -16
  53. package/web-ui/app.js +654 -647
  54. package/web-ui/index.html +37 -36
  55. package/web-ui/logic.agents-diff.mjs +386 -386
  56. package/web-ui/logic.claude.mjs +172 -168
  57. package/web-ui/logic.codex.mjs +69 -69
  58. package/web-ui/logic.mjs +5 -5
  59. package/web-ui/logic.runtime.mjs +128 -128
  60. package/web-ui/logic.session-convert.mjs +70 -70
  61. package/web-ui/logic.sessions.mjs +781 -781
  62. package/web-ui/modules/api.mjs +90 -90
  63. package/web-ui/modules/app.computed.dashboard.mjs +248 -248
  64. package/web-ui/modules/app.computed.index.mjs +17 -17
  65. package/web-ui/modules/app.computed.main-tabs.mjs +205 -205
  66. package/web-ui/modules/app.computed.session.mjs +735 -693
  67. package/web-ui/modules/app.constants.mjs +15 -15
  68. package/web-ui/modules/app.methods.agents.mjs +651 -651
  69. package/web-ui/modules/app.methods.claude-config.mjs +306 -200
  70. package/web-ui/modules/app.methods.codex-config.mjs +869 -861
  71. package/web-ui/modules/app.methods.index.mjs +94 -94
  72. package/web-ui/modules/app.methods.install.mjs +205 -205
  73. package/web-ui/modules/app.methods.navigation.mjs +788 -774
  74. package/web-ui/modules/app.methods.openclaw-core.mjs +814 -814
  75. package/web-ui/modules/app.methods.openclaw-editing.mjs +372 -372
  76. package/web-ui/modules/app.methods.openclaw-persist.mjs +369 -369
  77. package/web-ui/modules/app.methods.providers.mjs +575 -529
  78. package/web-ui/modules/app.methods.runtime.mjs +345 -345
  79. package/web-ui/modules/app.methods.session-actions.mjs +591 -591
  80. package/web-ui/modules/app.methods.session-browser.mjs +1011 -1012
  81. package/web-ui/modules/app.methods.session-timeline.mjs +479 -479
  82. package/web-ui/modules/app.methods.session-trash.mjs +438 -438
  83. package/web-ui/modules/app.methods.startup-claude.mjs +547 -537
  84. package/web-ui/modules/app.methods.task-orchestration.mjs +556 -556
  85. package/web-ui/modules/app.methods.webhook.mjs +87 -79
  86. package/web-ui/modules/config-mode.computed.mjs +124 -124
  87. package/web-ui/modules/config-template-confirm-pref.mjs +33 -33
  88. package/web-ui/modules/i18n.dict.mjs +3195 -3177
  89. package/web-ui/modules/i18n.mjs +62 -62
  90. package/web-ui/modules/plugins.computed.mjs +3 -3
  91. package/web-ui/modules/plugins.methods.mjs +3 -3
  92. package/web-ui/modules/plugins.storage.mjs +11 -11
  93. package/web-ui/modules/provider-url-display.mjs +17 -17
  94. package/web-ui/modules/sessions-filters-url.mjs +85 -85
  95. package/web-ui/modules/skills.computed.mjs +107 -107
  96. package/web-ui/modules/skills.methods.mjs +482 -482
  97. package/web-ui/partials/index/layout-footer.html +13 -13
  98. package/web-ui/partials/index/layout-header.html +499 -503
  99. package/web-ui/partials/index/modal-config-template-agents.html +185 -185
  100. package/web-ui/partials/index/modal-confirm-toast.html +32 -32
  101. package/web-ui/partials/index/modal-health-check.html +45 -45
  102. package/web-ui/partials/index/modal-openclaw-config.html +280 -280
  103. package/web-ui/partials/index/modal-skills.html +200 -200
  104. package/web-ui/partials/index/modal-webhook.html +42 -0
  105. package/web-ui/partials/index/modals-basic.html +223 -162
  106. package/web-ui/partials/index/panel-config-claude.html +155 -136
  107. package/web-ui/partials/index/panel-config-codex.html +176 -196
  108. package/web-ui/partials/index/panel-config-codex.html.bak +337 -0
  109. package/web-ui/partials/index/panel-config-openclaw.html +83 -83
  110. package/web-ui/partials/index/panel-dashboard.html +186 -219
  111. package/web-ui/partials/index/panel-docs.html +114 -114
  112. package/web-ui/partials/index/panel-market.html +177 -177
  113. package/web-ui/partials/index/panel-orchestration.html +391 -391
  114. package/web-ui/partials/index/panel-plugins.html +253 -253
  115. package/web-ui/partials/index/panel-sessions.html +319 -313
  116. package/web-ui/partials/index/panel-settings.html +158 -190
  117. package/web-ui/partials/index/panel-trash.html +82 -82
  118. package/web-ui/partials/index/panel-usage.html +137 -137
  119. package/web-ui/res/json5.min.js +1 -1
  120. package/web-ui/res/vue.global.prod.js +13 -13
  121. package/web-ui/session-helpers.mjs +591 -591
  122. package/web-ui/source-bundle.cjs +233 -233
  123. package/web-ui/styles/base-theme.css +281 -281
  124. package/web-ui/styles/bridge-pool.css +266 -197
  125. package/web-ui/styles/controls-forms.css +433 -433
  126. package/web-ui/styles/dashboard.css +406 -406
  127. package/web-ui/styles/docs-panel.css +245 -245
  128. package/web-ui/styles/feedback.css +108 -108
  129. package/web-ui/styles/health-check-dialog.css +144 -144
  130. package/web-ui/styles/layout-shell.css +628 -638
  131. package/web-ui/styles/modals-core.css +499 -466
  132. package/web-ui/styles/navigation-panels.css +391 -391
  133. package/web-ui/styles/openclaw-structured.css +266 -266
  134. package/web-ui/styles/plugins-panel.css +564 -564
  135. package/web-ui/styles/responsive.css +392 -392
  136. package/web-ui/styles/sessions-list.css +683 -647
  137. package/web-ui/styles/sessions-preview.css +407 -407
  138. package/web-ui/styles/sessions-toolbar-trash.css +518 -518
  139. package/web-ui/styles/sessions-usage.css +588 -588
  140. package/web-ui/styles/settings-panel.css +415 -349
  141. package/web-ui/styles/skills-list.css +305 -305
  142. package/web-ui/styles/skills-market.css +429 -429
  143. package/web-ui/styles/task-orchestration.css +822 -822
  144. package/web-ui/styles/titles-cards.css +472 -472
  145. package/web-ui/styles/trash-panel.css +90 -90
  146. package/web-ui/styles/webhook.css +115 -81
  147. package/web-ui/styles.css +24 -24
  148. package/web-ui.html +17 -17
@@ -1,90 +1,90 @@
1
- /* 回收站面板 — 极简·本质 */
2
-
3
- .trash-panel-shell {
4
- max-width: 720px;
5
- margin: 0 auto;
6
- padding: 20px 0 40px;
7
- }
8
-
9
- /* ---- 空态 — 宁静留白 ---- */
10
- .trash-empty-state {
11
- display: flex;
12
- flex-direction: column;
13
- align-items: center;
14
- justify-content: center;
15
- gap: 12px;
16
- padding: 80px 20px;
17
- text-align: center;
18
- }
19
-
20
- .trash-empty-icon {
21
- font-size: 40px;
22
- line-height: 1;
23
- opacity: 0.45;
24
- margin-bottom: 4px;
25
- }
26
-
27
- .trash-empty-title {
28
- font-size: 15px;
29
- font-weight: 600;
30
- color: var(--color-text-secondary);
31
- }
32
-
33
- .trash-empty-hint {
34
- font-size: var(--font-size-caption);
35
- color: var(--color-text-muted);
36
- max-width: 280px;
37
- line-height: 1.5;
38
- }
39
-
40
- /* ---- 工具栏 — 克制·精确 ---- */
41
- .trash-toolbar {
42
- display: flex;
43
- align-items: center;
44
- justify-content: space-between;
45
- gap: 12px;
46
- padding: 0 0 14px;
47
- border-bottom: 1px solid var(--color-border-soft);
48
- margin-bottom: 14px;
49
- }
50
-
51
- .trash-toolbar-left {
52
- display: flex;
53
- align-items: baseline;
54
- gap: 6px;
55
- }
56
-
57
- .trash-toolbar-count {
58
- font-size: 13px;
59
- font-weight: 600;
60
- color: var(--color-text-primary);
61
- }
62
-
63
- .trash-toolbar-retention {
64
- font-size: var(--font-size-caption);
65
- color: var(--color-text-muted);
66
- }
67
-
68
- .trash-toolbar-right {
69
- display: flex;
70
- align-items: center;
71
- gap: 6px;
72
- }
73
-
74
- /* ---- 列表项微调 ---- */
75
- .trash-item-dot {
76
- color: var(--color-text-muted);
77
- margin: 0 2px;
78
- }
79
-
80
- .trash-item-time {
81
- font-size: var(--font-size-caption);
82
- color: var(--color-text-muted);
83
- }
84
-
85
- /* ---- 加载更多 ---- */
86
- .trash-list-footer {
87
- display: flex;
88
- justify-content: center;
89
- padding: 16px 0;
90
- }
1
+ /* 回收站面板 — 极简·本质 */
2
+
3
+ .trash-panel-shell {
4
+ max-width: 720px;
5
+ margin: 0 auto;
6
+ padding: 20px 0 40px;
7
+ }
8
+
9
+ /* ---- 空态 — 宁静留白 ---- */
10
+ .trash-empty-state {
11
+ display: flex;
12
+ flex-direction: column;
13
+ align-items: center;
14
+ justify-content: center;
15
+ gap: 12px;
16
+ padding: 80px 20px;
17
+ text-align: center;
18
+ }
19
+
20
+ .trash-empty-icon {
21
+ font-size: 40px;
22
+ line-height: 1;
23
+ opacity: 0.45;
24
+ margin-bottom: 4px;
25
+ }
26
+
27
+ .trash-empty-title {
28
+ font-size: 15px;
29
+ font-weight: 600;
30
+ color: var(--color-text-secondary);
31
+ }
32
+
33
+ .trash-empty-hint {
34
+ font-size: var(--font-size-caption);
35
+ color: var(--color-text-muted);
36
+ max-width: 280px;
37
+ line-height: 1.5;
38
+ }
39
+
40
+ /* ---- 工具栏 — 克制·精确 ---- */
41
+ .trash-toolbar {
42
+ display: flex;
43
+ align-items: center;
44
+ justify-content: space-between;
45
+ gap: 12px;
46
+ padding: 0 0 14px;
47
+ border-bottom: 1px solid var(--color-border-soft);
48
+ margin-bottom: 14px;
49
+ }
50
+
51
+ .trash-toolbar-left {
52
+ display: flex;
53
+ align-items: baseline;
54
+ gap: 6px;
55
+ }
56
+
57
+ .trash-toolbar-count {
58
+ font-size: 13px;
59
+ font-weight: 600;
60
+ color: var(--color-text-primary);
61
+ }
62
+
63
+ .trash-toolbar-retention {
64
+ font-size: var(--font-size-caption);
65
+ color: var(--color-text-muted);
66
+ }
67
+
68
+ .trash-toolbar-right {
69
+ display: flex;
70
+ align-items: center;
71
+ gap: 6px;
72
+ }
73
+
74
+ /* ---- 列表项微调 ---- */
75
+ .trash-item-dot {
76
+ color: var(--color-text-muted);
77
+ margin: 0 2px;
78
+ }
79
+
80
+ .trash-item-time {
81
+ font-size: var(--font-size-caption);
82
+ color: var(--color-text-muted);
83
+ }
84
+
85
+ /* ---- 加载更多 ---- */
86
+ .trash-list-footer {
87
+ display: flex;
88
+ justify-content: center;
89
+ padding: 16px 0;
90
+ }
@@ -1,81 +1,115 @@
1
- /* webhook 行 — 对齐暖色设计系统 */
2
- .webhook-row {
3
- display: flex;
4
- align-items: center;
5
- gap: 6px;
6
- margin: 6px 0;
7
- }
8
-
9
- .webhook-events {
10
- display: flex;
11
- flex-wrap: wrap;
12
- gap: 8px;
13
- margin: 6px 0;
14
- }
15
-
16
- .webhook-event-item {
17
- display: inline-flex;
18
- align-items: center;
19
- gap: 4px;
20
- font-size: var(--font-size-caption);
21
- color: var(--color-text-secondary);
22
- }
23
-
24
- .status-on {
25
- color: var(--color-success);
26
- font-weight: var(--font-weight-secondary);
27
- }
28
-
29
- .status-off {
30
- color: var(--color-text-muted);
31
- }
32
-
33
- /* 只读展示行 */
34
- .webhook-readonly-row {
35
- display: flex;
36
- align-items: flex-start;
37
- gap: 12px;
38
- padding: 6px 0;
39
- }
40
-
41
- .webhook-readonly-row + .webhook-readonly-row {
42
- border-top: 1px solid var(--color-border-soft);
43
- }
44
-
45
- .webhook-readonly-label {
46
- flex: 0 0 56px;
47
- font-size: var(--font-size-caption);
48
- color: var(--color-text-muted);
49
- font-weight: var(--font-weight-secondary);
50
- padding-top: 2px;
51
- }
52
-
53
- .webhook-readonly-value {
54
- flex: 1 1 auto;
55
- min-width: 0;
56
- font-family: var(--font-family-mono);
57
- font-size: 11px;
58
- padding: 2px 8px;
59
- border-radius: 6px;
60
- background: rgba(247, 240, 233, 0.55);
61
- color: var(--color-text-secondary);
62
- word-break: break-all;
63
- line-height: 1.5;
64
- }
65
-
66
- .webhook-readonly-tags {
67
- display: flex;
68
- flex-wrap: wrap;
69
- gap: 6px;
70
- }
71
-
72
- .webhook-event-tag {
73
- display: inline-block;
74
- padding: 2px 8px;
75
- border-radius: 999px;
76
- border: 1px solid var(--color-border);
77
- background: var(--color-brand-light);
78
- color: var(--color-brand-dark);
79
- font-size: var(--font-size-caption);
80
- font-weight: var(--font-weight-secondary);
81
- }
1
+ /* ============================================
2
+ Webhook 模态框 — 极简设计
3
+ ============================================ */
4
+
5
+ /* Webhook 事件复选框列表 */
6
+ .webhook-events-checkbox-list {
7
+ display: flex;
8
+ flex-direction: column;
9
+ gap: 4px;
10
+ padding: 4px 0;
11
+ }
12
+
13
+ .webhook-event-checkbox-item {
14
+ display: inline-flex;
15
+ align-items: center;
16
+ gap: 10px;
17
+ padding: 10px 14px;
18
+ font-size: 14px;
19
+ color: var(--color-text-secondary);
20
+ cursor: pointer;
21
+ border-radius: 10px;
22
+ transition: all 0.15s ease;
23
+ }
24
+
25
+ .webhook-event-checkbox-item:hover {
26
+ background: rgba(137, 111, 94, 0.06);
27
+ }
28
+
29
+ .webhook-event-checkbox-item input[type="checkbox"] {
30
+ width: 18px;
31
+ height: 18px;
32
+ accent-color: var(--color-brand);
33
+ cursor: pointer;
34
+ }
35
+
36
+ /* 保留兼容旧组件的样式 */
37
+ .webhook-row {
38
+ display: flex;
39
+ align-items: center;
40
+ gap: 6px;
41
+ margin: 6px 0;
42
+ }
43
+
44
+ .webhook-events {
45
+ display: flex;
46
+ flex-wrap: wrap;
47
+ gap: 8px;
48
+ margin: 6px 0;
49
+ }
50
+
51
+ .webhook-event-item {
52
+ display: inline-flex;
53
+ align-items: center;
54
+ gap: 4px;
55
+ font-size: var(--font-size-caption);
56
+ color: var(--color-text-secondary);
57
+ }
58
+
59
+ .status-on {
60
+ color: var(--color-success);
61
+ font-weight: var(--font-weight-secondary);
62
+ }
63
+
64
+ .status-off {
65
+ color: var(--color-text-muted);
66
+ }
67
+
68
+ .webhook-readonly-row {
69
+ display: flex;
70
+ align-items: flex-start;
71
+ gap: 12px;
72
+ padding: 6px 0;
73
+ }
74
+
75
+ .webhook-readonly-row + .webhook-readonly-row {
76
+ border-top: 1px solid var(--color-border-soft);
77
+ }
78
+
79
+ .webhook-readonly-label {
80
+ flex: 0 0 56px;
81
+ font-size: var(--font-size-caption);
82
+ color: var(--color-text-muted);
83
+ font-weight: var(--font-weight-secondary);
84
+ padding-top: 2px;
85
+ }
86
+
87
+ .webhook-readonly-value {
88
+ flex: 1 1 auto;
89
+ min-width: 0;
90
+ font-family: var(--font-family-mono);
91
+ font-size: 11px;
92
+ padding: 2px 8px;
93
+ border-radius: 6px;
94
+ background: rgba(247, 240, 233, 0.55);
95
+ color: var(--color-text-secondary);
96
+ word-break: break-all;
97
+ line-height: 1.5;
98
+ }
99
+
100
+ .webhook-readonly-tags {
101
+ display: flex;
102
+ flex-wrap: wrap;
103
+ gap: 6px;
104
+ }
105
+
106
+ .webhook-event-tag {
107
+ display: inline-block;
108
+ padding: 4px 10px;
109
+ border-radius: 999px;
110
+ border: 1px solid var(--color-border);
111
+ background: var(--color-brand-light);
112
+ color: var(--color-brand-dark);
113
+ font-size: 12px;
114
+ font-weight: var(--font-weight-secondary);
115
+ }
package/web-ui/styles.css CHANGED
@@ -1,24 +1,24 @@
1
- @import url('./styles/base-theme.css');
2
- @import url('./styles/layout-shell.css');
3
- @import url('./styles/navigation-panels.css');
4
- @import url('./styles/titles-cards.css');
5
- @import url('./styles/controls-forms.css');
6
- @import url('./styles/settings-panel.css');
7
- @import url('./styles/bridge-pool.css');
8
- @import url('./styles/sessions-toolbar-trash.css');
9
- @import url('./styles/sessions-list.css');
10
- @import url('./styles/sessions-preview.css');
11
- @import url('./styles/sessions-usage.css');
12
- @import url('./styles/dashboard.css');
13
- @import url('./styles/task-orchestration.css');
14
- @import url('./styles/modals-core.css');
15
- @import url('./styles/health-check-dialog.css');
16
- @import url('./styles/openclaw-structured.css');
17
- @import url('./styles/skills-market.css');
18
- @import url('./styles/skills-list.css');
19
- @import url('./styles/plugins-panel.css');
20
- @import url('./styles/docs-panel.css');
21
- @import url('./styles/feedback.css');
22
- @import url('./styles/responsive.css');
23
- @import url('./styles/webhook.css');
24
- @import url('./styles/trash-panel.css');
1
+ @import url('./styles/base-theme.css');
2
+ @import url('./styles/layout-shell.css');
3
+ @import url('./styles/navigation-panels.css');
4
+ @import url('./styles/titles-cards.css');
5
+ @import url('./styles/controls-forms.css');
6
+ @import url('./styles/settings-panel.css');
7
+ @import url('./styles/bridge-pool.css');
8
+ @import url('./styles/sessions-toolbar-trash.css');
9
+ @import url('./styles/sessions-list.css');
10
+ @import url('./styles/sessions-preview.css');
11
+ @import url('./styles/sessions-usage.css');
12
+ @import url('./styles/dashboard.css');
13
+ @import url('./styles/task-orchestration.css');
14
+ @import url('./styles/modals-core.css');
15
+ @import url('./styles/health-check-dialog.css');
16
+ @import url('./styles/openclaw-structured.css');
17
+ @import url('./styles/skills-market.css');
18
+ @import url('./styles/skills-list.css');
19
+ @import url('./styles/plugins-panel.css');
20
+ @import url('./styles/docs-panel.css');
21
+ @import url('./styles/feedback.css');
22
+ @import url('./styles/responsive.css');
23
+ @import url('./styles/webhook.css');
24
+ @import url('./styles/trash-panel.css');
package/web-ui.html CHANGED
@@ -1,17 +1,17 @@
1
- <!DOCTYPE html>
2
- <html lang="zh-CN">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Codex Mate</title>
7
- <meta http-equiv="refresh" content="0; url=./web-ui/index.html">
8
- <script>
9
- window.location.href = './web-ui/index.html';
10
- </script>
11
- </head>
12
- <body>
13
- <p>Redirecting to <a href="./web-ui/index.html">Web UI</a>...</p>
14
- <p>If not redirected automatically, <a href="./web-ui/index.html">click here</a>.</p>
15
- <noscript>JavaScript is disabled. Please <a href="./web-ui/index.html">click here</a> to open the Web UI.</noscript>
16
- </body>
17
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Codex Mate</title>
7
+ <meta http-equiv="refresh" content="0; url=./web-ui/index.html">
8
+ <script>
9
+ window.location.href = './web-ui/index.html';
10
+ </script>
11
+ </head>
12
+ <body>
13
+ <p>Redirecting to <a href="./web-ui/index.html">Web UI</a>...</p>
14
+ <p>If not redirected automatically, <a href="./web-ui/index.html">click here</a>.</p>
15
+ <noscript>JavaScript is disabled. Please <a href="./web-ui/index.html">click here</a> to open the Web UI.</noscript>
16
+ </body>
17
+ </html>