codexmate 0.1.1 → 0.1.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/README.md +6 -3
- package/cli/openai-bridge-retry.js +17 -9
- package/cli/openai-bridge-runtime.js +14 -1
- package/cli/openai-bridge.js +20 -10
- package/cli.js +375 -4
- package/package.json +1 -1
- package/web-ui/app.js +18 -4
- package/web-ui/index.html +1 -0
- package/web-ui/modules/app.computed.dashboard.mjs +14 -0
- package/web-ui/modules/app.methods.agents.mjs +2 -2
- package/web-ui/modules/app.methods.index.mjs +2 -0
- package/web-ui/modules/app.methods.install.mjs +14 -0
- package/web-ui/modules/app.methods.kilocode-config.mjs +164 -0
- package/web-ui/modules/app.methods.navigation.mjs +12 -0
- package/web-ui/modules/app.methods.openclaw-core.mjs +87 -0
- package/web-ui/modules/app.methods.providers.mjs +5 -32
- package/web-ui/modules/app.methods.startup-claude.mjs +2 -1
- package/web-ui/modules/app.methods.tool-config-permissions.mjs +3 -2
- package/web-ui/modules/app.methods.web-ui-preferences.mjs +2 -1
- package/web-ui/modules/config-mode.computed.mjs +11 -1
- package/web-ui/modules/i18n/locales/en.mjs +31 -4
- package/web-ui/modules/i18n/locales/ja.mjs +34 -8
- package/web-ui/modules/i18n/locales/vi.mjs +35 -9
- package/web-ui/modules/i18n/locales/zh-tw.mjs +36 -9
- package/web-ui/modules/i18n/locales/zh.mjs +40 -13
- package/web-ui/partials/index/layout-header.html +32 -21
- package/web-ui/partials/index/modal-config-template-agents.html +8 -4
- package/web-ui/partials/index/modals-basic.html +0 -26
- package/web-ui/partials/index/panel-config-kilocode.html +101 -0
- package/web-ui/partials/index/panel-config-openclaw.html +42 -14
- package/web-ui/partials/index/panel-config-opencode.html +1 -0
- package/web-ui/partials/index/panel-docs.html +17 -1
- package/web-ui/res/web-ui-render.precompiled.js +400 -123
- package/web-ui/styles/controls-forms.css +10 -0
- package/web-ui/styles/docs-panel.css +51 -0
- package/web-ui/styles/layout-shell.css +12 -0
- package/web-ui/styles/modals-core.css +79 -0
- package/web-ui/styles/openclaw-structured.css +117 -71
|
@@ -325,6 +325,16 @@
|
|
|
325
325
|
box-shadow: var(--shadow-input-focus);
|
|
326
326
|
}
|
|
327
327
|
|
|
328
|
+
.template-textarea[readonly] {
|
|
329
|
+
cursor: default;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.template-textarea[readonly]:focus {
|
|
333
|
+
background: rgba(255, 255, 255, 0.72);
|
|
334
|
+
border-color: var(--color-border);
|
|
335
|
+
box-shadow: var(--shadow-subtle);
|
|
336
|
+
}
|
|
337
|
+
|
|
328
338
|
.codex-config-grid {
|
|
329
339
|
display: grid;
|
|
330
340
|
gap: 10px;
|
|
@@ -69,6 +69,57 @@
|
|
|
69
69
|
word-break: break-word;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
.docs-installed-card {
|
|
73
|
+
margin-top: 12px;
|
|
74
|
+
padding: 12px;
|
|
75
|
+
border: 1px solid var(--color-border-soft);
|
|
76
|
+
border-radius: var(--radius-md);
|
|
77
|
+
background: var(--color-bg-soft);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.docs-installed-head,
|
|
81
|
+
.docs-installed-main {
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
justify-content: space-between;
|
|
85
|
+
gap: 10px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.docs-installed-title,
|
|
89
|
+
.docs-installed-name {
|
|
90
|
+
font-weight: 700;
|
|
91
|
+
color: var(--color-text-primary);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.docs-installed-count,
|
|
95
|
+
.docs-installed-version {
|
|
96
|
+
font-size: 12px;
|
|
97
|
+
color: var(--color-text-muted);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.docs-installed-list {
|
|
101
|
+
display: grid;
|
|
102
|
+
gap: 8px;
|
|
103
|
+
margin-top: 10px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.docs-installed-item {
|
|
107
|
+
min-width: 0;
|
|
108
|
+
padding: 10px;
|
|
109
|
+
border-radius: var(--radius-sm);
|
|
110
|
+
background: var(--color-bg-card);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.docs-installed-command {
|
|
114
|
+
display: block;
|
|
115
|
+
margin-top: 6px;
|
|
116
|
+
overflow: hidden;
|
|
117
|
+
text-overflow: ellipsis;
|
|
118
|
+
white-space: nowrap;
|
|
119
|
+
font-size: 12px;
|
|
120
|
+
color: var(--color-text-secondary);
|
|
121
|
+
}
|
|
122
|
+
|
|
72
123
|
/* ---- Install rows ---- */
|
|
73
124
|
.docs-install-list {
|
|
74
125
|
display: flex;
|
|
@@ -40,6 +40,7 @@ body::after {
|
|
|
40
40
|
|
|
41
41
|
.app-shell.sidebar-collapsed {
|
|
42
42
|
--side-rail-width: var(--side-rail-collapsed-width, 136px);
|
|
43
|
+
grid-template-columns: var(--side-rail-collapsed-width, 136px) minmax(0, 1fr);
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
.app-shell.standalone {
|
|
@@ -396,6 +397,17 @@ body::after {
|
|
|
396
397
|
position: relative;
|
|
397
398
|
}
|
|
398
399
|
|
|
400
|
+
.side-item-compact {
|
|
401
|
+
padding-top: 7px;
|
|
402
|
+
padding-bottom: 7px;
|
|
403
|
+
gap: 2px;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.side-item-compact::before {
|
|
407
|
+
height: 14px;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
|
|
399
411
|
.side-item-icon {
|
|
400
412
|
display: none;
|
|
401
413
|
width: 28px;
|
|
@@ -61,6 +61,85 @@
|
|
|
61
61
|
max-height: calc(100vh - 56px);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
+
.agents-modal:has(.modal-editor-body--openclaw-workspace) {
|
|
65
|
+
width: min(94vw, 1040px);
|
|
66
|
+
max-height: calc(100vh - 40px);
|
|
67
|
+
background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 246, 241, 0.96) 100%);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.agents-modal:has(.modal-editor-body--openclaw-workspace) .modal-editor-header {
|
|
71
|
+
padding: 18px 20px 12px;
|
|
72
|
+
border-bottom: 1px solid rgba(137, 111, 94, 0.10);
|
|
73
|
+
background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(249, 244, 239, 0.82));
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.agents-modal:has(.modal-editor-body--openclaw-workspace) .modal-title {
|
|
77
|
+
margin-bottom: 0;
|
|
78
|
+
font-size: 18px;
|
|
79
|
+
letter-spacing: -0.02em;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.agents-modal:has(.modal-editor-body--openclaw-workspace) .modal-header-actions {
|
|
83
|
+
gap: 6px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.agents-modal .modal-editor-body--openclaw-workspace {
|
|
87
|
+
display: grid;
|
|
88
|
+
grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
|
|
89
|
+
gap: 14px;
|
|
90
|
+
padding: 16px 20px 20px;
|
|
91
|
+
overflow: hidden;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.agents-modal:has(.modal-editor-body--openclaw-workspace) .agents-target-file-group {
|
|
95
|
+
align-self: start;
|
|
96
|
+
margin-bottom: 0;
|
|
97
|
+
padding: 14px;
|
|
98
|
+
border: 1px solid rgba(137, 111, 94, 0.12);
|
|
99
|
+
border-radius: var(--radius-lg);
|
|
100
|
+
background: rgba(255, 255, 255, 0.72);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.agents-modal:has(.modal-editor-body--openclaw-workspace) .agents-target-file-group .form-hint {
|
|
104
|
+
margin-top: 8px;
|
|
105
|
+
font-family: var(--font-family-mono);
|
|
106
|
+
font-size: 12px;
|
|
107
|
+
line-height: 1.55;
|
|
108
|
+
overflow-wrap: anywhere;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.agents-modal:has(.modal-editor-body--openclaw-workspace) .agents-content-group {
|
|
112
|
+
min-width: 0;
|
|
113
|
+
margin-bottom: 0;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.agents-modal:has(.modal-editor-body--openclaw-workspace) .agents-content-group > .form-label {
|
|
117
|
+
display: flex;
|
|
118
|
+
align-items: center;
|
|
119
|
+
justify-content: space-between;
|
|
120
|
+
margin-bottom: 8px;
|
|
121
|
+
font-size: 13px;
|
|
122
|
+
font-weight: 600;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.agents-modal:has(.modal-editor-body--openclaw-workspace) .template-editor,
|
|
126
|
+
.agents-modal:has(.modal-editor-body--openclaw-workspace) .agents-diff-editor {
|
|
127
|
+
min-height: min(64vh, 620px);
|
|
128
|
+
max-height: min(68vh, 680px);
|
|
129
|
+
border-radius: var(--radius-lg);
|
|
130
|
+
border-color: rgba(137, 111, 94, 0.14);
|
|
131
|
+
background: rgba(255, 255, 255, 0.88);
|
|
132
|
+
font-size: 13px;
|
|
133
|
+
line-height: 1.62;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.agents-modal:has(.modal-editor-body--openclaw-workspace) .template-editor-warning {
|
|
137
|
+
margin-top: 8px;
|
|
138
|
+
padding: 10px 12px;
|
|
139
|
+
border-radius: var(--radius-md);
|
|
140
|
+
background: rgba(137, 111, 94, 0.06);
|
|
141
|
+
}
|
|
142
|
+
|
|
64
143
|
.modal-editor-header {
|
|
65
144
|
margin-bottom: 0;
|
|
66
145
|
padding: var(--spacing-md) var(--spacing-md) 0;
|
|
@@ -363,6 +363,7 @@
|
|
|
363
363
|
}
|
|
364
364
|
|
|
365
365
|
.openclaw-workspace-card.settings-card,
|
|
366
|
+
.openclaw-summary-card,
|
|
366
367
|
.openclaw-configs-card {
|
|
367
368
|
margin: 0;
|
|
368
369
|
padding: 0;
|
|
@@ -375,133 +376,159 @@
|
|
|
375
376
|
}
|
|
376
377
|
|
|
377
378
|
.openclaw-workspace-card.settings-card:hover,
|
|
379
|
+
.openclaw-summary-card:hover,
|
|
378
380
|
.openclaw-configs-card:hover {
|
|
379
381
|
border-color: transparent;
|
|
380
382
|
box-shadow: none;
|
|
381
383
|
}
|
|
382
384
|
|
|
383
385
|
.openclaw-workspace-card.settings-card > .settings-card-body,
|
|
386
|
+
.openclaw-summary-card > .settings-card-body,
|
|
384
387
|
.openclaw-configs-card > .settings-card-body {
|
|
385
388
|
width: 100%;
|
|
386
389
|
min-width: 0;
|
|
387
390
|
}
|
|
388
391
|
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
justify-content: center;
|
|
394
|
-
gap: 8px;
|
|
395
|
-
min-height: 70px;
|
|
396
|
-
padding: 14px 16px;
|
|
392
|
+
.openclaw-summary-card > .settings-card-body {
|
|
393
|
+
display: grid;
|
|
394
|
+
gap: 12px;
|
|
395
|
+
padding: 16px;
|
|
397
396
|
border: 1px solid rgba(137, 111, 94, 0.12);
|
|
398
397
|
border-radius: var(--radius-lg);
|
|
399
|
-
background: rgba(255, 255, 255, 0.
|
|
398
|
+
background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(249, 244, 239, 0.72));
|
|
400
399
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
|
|
401
400
|
}
|
|
402
401
|
|
|
403
|
-
|
|
404
|
-
|
|
402
|
+
.openclaw-summary-header {
|
|
403
|
+
display: flex;
|
|
404
|
+
justify-content: space-between;
|
|
405
|
+
gap: 12px;
|
|
406
|
+
align-items: flex-start;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.summary-eyebrow {
|
|
410
|
+
font-size: 10px;
|
|
411
|
+
letter-spacing: 0.12em;
|
|
412
|
+
color: var(--color-text-tertiary);
|
|
413
|
+
font-weight: 600;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.summary-title {
|
|
417
|
+
margin-top: 2px;
|
|
418
|
+
font-size: 16px;
|
|
419
|
+
font-weight: 600;
|
|
420
|
+
color: var(--color-text-primary);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.summary-note,
|
|
424
|
+
.openclaw-diagnostic-note {
|
|
425
|
+
font-size: 11px;
|
|
426
|
+
color: var(--color-text-tertiary);
|
|
427
|
+
line-height: 1.45;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.summary-note {
|
|
431
|
+
max-width: 260px;
|
|
432
|
+
text-align: right;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.openclaw-summary-grid {
|
|
405
436
|
display: grid;
|
|
406
|
-
grid-template-columns: repeat(auto-fit, minmax(
|
|
437
|
+
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
407
438
|
gap: 8px;
|
|
408
|
-
align-items: stretch;
|
|
409
439
|
}
|
|
410
440
|
|
|
411
|
-
.openclaw-
|
|
441
|
+
.openclaw-summary-item {
|
|
412
442
|
min-width: 0;
|
|
413
|
-
|
|
414
|
-
|
|
443
|
+
padding: 10px 12px;
|
|
444
|
+
border: 1px solid rgba(137, 111, 94, 0.10);
|
|
445
|
+
border-radius: var(--radius-md);
|
|
446
|
+
background: rgba(255, 255, 255, 0.72);
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.summary-item-label {
|
|
450
|
+
margin-bottom: 4px;
|
|
451
|
+
font-size: 11px;
|
|
452
|
+
color: var(--color-text-tertiary);
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.summary-item-value {
|
|
456
|
+
font-size: 13px;
|
|
457
|
+
font-weight: 500;
|
|
458
|
+
color: var(--color-text-primary);
|
|
459
|
+
overflow-wrap: anywhere;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.openclaw-tools-grid {
|
|
463
|
+
display: grid;
|
|
464
|
+
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
|
465
|
+
gap: 10px;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.openclaw-tool-btn {
|
|
469
|
+
display: grid;
|
|
470
|
+
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
415
471
|
gap: 12px;
|
|
416
|
-
|
|
472
|
+
align-items: center;
|
|
473
|
+
min-height: 74px;
|
|
417
474
|
padding: 14px 16px;
|
|
418
|
-
width: 100%;
|
|
419
|
-
border-radius: var(--radius-lg);
|
|
420
475
|
border: 1px solid rgba(137, 111, 94, 0.12);
|
|
476
|
+
border-radius: var(--radius-lg);
|
|
421
477
|
background: rgba(255, 255, 255, 0.76);
|
|
422
|
-
|
|
423
|
-
transition: all 0.2s ease;
|
|
478
|
+
color: var(--color-text-primary);
|
|
424
479
|
text-align: left;
|
|
425
|
-
|
|
480
|
+
cursor: pointer;
|
|
481
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
|
|
482
|
+
transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
|
|
426
483
|
}
|
|
427
484
|
|
|
428
485
|
.openclaw-tool-btn:hover:not(:disabled) {
|
|
429
|
-
border-color: rgba(137, 111, 94, 0.18);
|
|
430
|
-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
|
|
431
486
|
transform: translateY(-1px);
|
|
487
|
+
border-color: rgba(137, 111, 94, 0.22);
|
|
488
|
+
box-shadow: 0 8px 22px rgba(68, 52, 39, 0.08);
|
|
432
489
|
}
|
|
433
490
|
|
|
434
491
|
.openclaw-tool-btn:disabled {
|
|
435
|
-
opacity: 0.
|
|
492
|
+
opacity: 0.58;
|
|
436
493
|
cursor: not-allowed;
|
|
437
494
|
}
|
|
438
495
|
|
|
439
496
|
.tool-icon {
|
|
440
|
-
|
|
441
|
-
height: 40px;
|
|
442
|
-
display: flex;
|
|
497
|
+
display: inline-flex;
|
|
443
498
|
align-items: center;
|
|
444
499
|
justify-content: center;
|
|
445
|
-
|
|
446
|
-
|
|
500
|
+
width: 38px;
|
|
501
|
+
height: 38px;
|
|
447
502
|
border-radius: var(--radius-md);
|
|
448
|
-
|
|
503
|
+
background: rgba(137, 111, 94, 0.08);
|
|
504
|
+
font-size: 19px;
|
|
449
505
|
}
|
|
450
506
|
|
|
451
507
|
.tool-content {
|
|
452
|
-
flex: 1;
|
|
453
508
|
min-width: 0;
|
|
454
|
-
display: flex;
|
|
455
|
-
flex-direction: column;
|
|
456
|
-
gap: 2px;
|
|
457
509
|
}
|
|
458
510
|
|
|
459
511
|
.tool-title {
|
|
460
512
|
font-size: 14px;
|
|
461
|
-
font-weight:
|
|
513
|
+
font-weight: 600;
|
|
462
514
|
color: var(--color-text-primary);
|
|
515
|
+
line-height: 1.25;
|
|
516
|
+
overflow-wrap: anywhere;
|
|
463
517
|
}
|
|
464
518
|
|
|
465
519
|
.tool-meta {
|
|
520
|
+
margin-top: 4px;
|
|
466
521
|
font-size: 11px;
|
|
522
|
+
letter-spacing: 0.03em;
|
|
523
|
+
text-transform: uppercase;
|
|
467
524
|
color: var(--color-text-tertiary);
|
|
468
|
-
|
|
525
|
+
white-space: nowrap;
|
|
469
526
|
}
|
|
470
527
|
|
|
471
528
|
.tool-chevron {
|
|
472
529
|
width: 18px;
|
|
473
530
|
height: 18px;
|
|
474
|
-
color: var(--color-text-muted);
|
|
475
|
-
flex-shrink: 0;
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
.workspace-label {
|
|
479
|
-
font-size: 13px;
|
|
480
|
-
font-weight: 500;
|
|
481
|
-
color: var(--color-text-primary);
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
.workspace-input-group {
|
|
485
|
-
display: grid;
|
|
486
|
-
grid-template-columns: minmax(0, 1fr) max-content;
|
|
487
|
-
gap: 8px;
|
|
488
|
-
align-items: center;
|
|
489
|
-
width: 100%;
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
.workspace-input-group .form-input {
|
|
493
|
-
min-height: 36px;
|
|
494
|
-
width: 100%;
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
.workspace-input-group .btn-tool {
|
|
498
|
-
white-space: nowrap;
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
.workspace-meta {
|
|
502
|
-
font-size: 11px;
|
|
503
531
|
color: var(--color-text-tertiary);
|
|
504
|
-
line-height: 1.45;
|
|
505
532
|
}
|
|
506
533
|
|
|
507
534
|
.openclaw-card-list {
|
|
@@ -563,6 +590,23 @@
|
|
|
563
590
|
overflow-wrap: anywhere;
|
|
564
591
|
}
|
|
565
592
|
|
|
593
|
+
.openclaw-config-summary-mini {
|
|
594
|
+
display: flex;
|
|
595
|
+
flex-wrap: wrap;
|
|
596
|
+
gap: 6px;
|
|
597
|
+
margin-top: 6px;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
.openclaw-config-summary-mini span {
|
|
601
|
+
max-width: 100%;
|
|
602
|
+
padding: 3px 7px;
|
|
603
|
+
border-radius: 999px;
|
|
604
|
+
background: rgba(137, 111, 94, 0.08);
|
|
605
|
+
color: var(--color-text-tertiary);
|
|
606
|
+
font-size: 11px;
|
|
607
|
+
overflow-wrap: anywhere;
|
|
608
|
+
}
|
|
609
|
+
|
|
566
610
|
@media (min-width: 1200px) {
|
|
567
611
|
.tool-icon {
|
|
568
612
|
width: 42px;
|
|
@@ -576,12 +620,14 @@
|
|
|
576
620
|
grid-template-columns: 1fr;
|
|
577
621
|
}
|
|
578
622
|
|
|
579
|
-
|
|
580
|
-
|
|
623
|
+
|
|
624
|
+
.openclaw-summary-header {
|
|
625
|
+
flex-direction: column;
|
|
581
626
|
}
|
|
582
627
|
|
|
583
|
-
.
|
|
584
|
-
width:
|
|
628
|
+
.summary-note {
|
|
629
|
+
max-width: none;
|
|
630
|
+
text-align: left;
|
|
585
631
|
}
|
|
586
632
|
}
|
|
587
633
|
|