codexmate 0.1.9 → 0.1.10
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/cli.js +63 -2696
- package/package.json +1 -1
- package/web-ui/app.js +24 -56
- package/web-ui/index.html +0 -1
- package/web-ui/modules/app.computed.dashboard.mjs +0 -3
- package/web-ui/modules/app.computed.main-tabs.mjs +0 -474
- package/web-ui/modules/app.methods.index.mjs +1 -3
- package/web-ui/modules/app.methods.navigation.mjs +1 -2
- package/web-ui/modules/app.methods.session-actions.mjs +0 -25
- package/web-ui/modules/app.methods.web-ui-preferences.mjs +20 -9
- package/web-ui/modules/i18n/locales/en.mjs +1 -265
- package/web-ui/modules/i18n/locales/ja.mjs +1 -265
- package/web-ui/modules/i18n/locales/vi.mjs +1 -266
- package/web-ui/modules/i18n/locales/zh-tw.mjs +1 -265
- package/web-ui/modules/i18n/locales/zh.mjs +1 -265
- package/web-ui/partials/index/layout-header.html +0 -48
- package/web-ui/partials/index/panel-dashboard.html +0 -21
- package/web-ui/res/web-ui-render.precompiled.js +26 -1190
- package/web-ui/session-helpers.mjs +0 -16
- package/web-ui/styles.css +0 -1
- package/lib/automation.js +0 -404
- package/lib/task-orchestrator.js +0 -938
- package/lib/task-workspace-chat.js +0 -292
- package/web-ui/modules/app.methods.task-orchestration.mjs +0 -895
- package/web-ui/partials/index/panel-orchestration.html +0 -598
- package/web-ui/styles/task-orchestration.css +0 -2979
package/package.json
CHANGED
package/web-ui/app.js
CHANGED
|
@@ -155,7 +155,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
|
155
155
|
agentsModalTitle: 'AGENTS.md 编辑器',
|
|
156
156
|
agentsModalHint: '保存后会写入目标 AGENTS.md(与 config.toml 同级)。',
|
|
157
157
|
sysPromptScope: 'global',
|
|
158
|
-
sysPromptMode: '
|
|
158
|
+
sysPromptMode: 'system',
|
|
159
159
|
sysPromptContent: '',
|
|
160
160
|
sysPromptOriginalContent: '',
|
|
161
161
|
sysPromptPath: '',
|
|
@@ -480,45 +480,6 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
|
480
480
|
sidebarCollapsed: false,
|
|
481
481
|
sessionLoadNativeDialog: false,
|
|
482
482
|
starPrompted: false,
|
|
483
|
-
taskOrchestrationTabEnabled: true,
|
|
484
|
-
taskOrchestration: {
|
|
485
|
-
loading: false,
|
|
486
|
-
planning: false,
|
|
487
|
-
running: false,
|
|
488
|
-
queueAdding: false,
|
|
489
|
-
queueStarting: false,
|
|
490
|
-
retrying: false,
|
|
491
|
-
target: '',
|
|
492
|
-
chatDraft: '',
|
|
493
|
-
title: '',
|
|
494
|
-
notes: '',
|
|
495
|
-
workspacePath: '',
|
|
496
|
-
threadId: '',
|
|
497
|
-
followUpsText: '',
|
|
498
|
-
workflowIdsText: '',
|
|
499
|
-
selectedEngine: 'openai-chat',
|
|
500
|
-
runMode: 'write',
|
|
501
|
-
concurrency: 2,
|
|
502
|
-
autoFixRounds: 1,
|
|
503
|
-
plan: null,
|
|
504
|
-
planFingerprint: '',
|
|
505
|
-
planIssues: [],
|
|
506
|
-
planWarnings: [],
|
|
507
|
-
overviewWarnings: [],
|
|
508
|
-
workflows: [],
|
|
509
|
-
queue: [],
|
|
510
|
-
runs: [],
|
|
511
|
-
selectedRunId: '',
|
|
512
|
-
workspaceTab: 'queue',
|
|
513
|
-
selectedRunDetail: null,
|
|
514
|
-
selectedRunLoading: false,
|
|
515
|
-
selectedRunError: '',
|
|
516
|
-
detailRequestToken: 0,
|
|
517
|
-
settingsOpen: false,
|
|
518
|
-
lastLoadedAt: '',
|
|
519
|
-
lastError: ''
|
|
520
|
-
},
|
|
521
|
-
_taskOrchestrationPollTimer: 0,
|
|
522
483
|
webhookConfig: { enabled: false, url: '', events: ['provider-switch', 'claude-md-edit'] },
|
|
523
484
|
webhookEventOptions: ['provider-switch', 'claude-md-edit'],
|
|
524
485
|
webhookSaving: false,
|
|
@@ -535,7 +496,6 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
|
535
496
|
const url = new URL(window.location.href);
|
|
536
497
|
url.pathname = '/';
|
|
537
498
|
// Preserve startup query/hash flags while normalizing the legacy web-ui path.
|
|
538
|
-
// Feature gates such as ?taskOrchestration=1 are consumed below after redirect.
|
|
539
499
|
window.location.replace(url.toString());
|
|
540
500
|
return;
|
|
541
501
|
}
|
|
@@ -568,15 +528,8 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
|
568
528
|
this.agentsModalTitle = this.t('modal.agents.title');
|
|
569
529
|
this.agentsModalHint = this.t('modal.agents.hint');
|
|
570
530
|
}
|
|
571
|
-
try {
|
|
572
|
-
const url = new URL(window.location.href);
|
|
573
|
-
const requestedTaskOrchestration = String(url.searchParams.get('taskOrchestration') || '').trim().toLowerCase();
|
|
574
|
-
if (requestedTaskOrchestration === '1' || requestedTaskOrchestration === 'true') {
|
|
575
|
-
this.taskOrchestrationTabEnabled = true;
|
|
576
|
-
}
|
|
577
|
-
} catch (_) {}
|
|
578
531
|
{
|
|
579
|
-
const mainTabSet = new Set(['dashboard', 'config', 'sessions', 'usage', '
|
|
532
|
+
const mainTabSet = new Set(['dashboard', 'config', 'sessions', 'usage', 'market', 'plugins', 'docs', 'settings', 'trash', 'prompts']);
|
|
580
533
|
let urlMainTab = '';
|
|
581
534
|
try {
|
|
582
535
|
const url = new URL(window.location.href);
|
|
@@ -608,8 +561,6 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
|
608
561
|
? this.getFirstSelectableMainTab()
|
|
609
562
|
: 'dashboard';
|
|
610
563
|
this.switchMainTab(fallbackTab);
|
|
611
|
-
} else if (!this.taskOrchestrationTabEnabled && this.mainTab === 'orchestration') {
|
|
612
|
-
this.switchMainTab('dashboard');
|
|
613
564
|
}
|
|
614
565
|
this.restoreSessionFilterCache();
|
|
615
566
|
this.restoreSessionPinnedMap();
|
|
@@ -750,7 +701,6 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
|
750
701
|
window.removeEventListener('keydown', this.handleGlobalKeydown);
|
|
751
702
|
window.removeEventListener('beforeunload', this.handleBeforeUnload);
|
|
752
703
|
this.applyCompactLayoutClass(false);
|
|
753
|
-
this.stopTaskOrchestrationPolling();
|
|
754
704
|
this.sessionPreviewScrollEl = null;
|
|
755
705
|
this.sessionPreviewContainerEl = null;
|
|
756
706
|
this.sessionPreviewHeaderEl = null;
|
|
@@ -768,11 +718,15 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
|
768
718
|
}
|
|
769
719
|
return;
|
|
770
720
|
}
|
|
771
|
-
if (newTab === 'prompts'
|
|
721
|
+
if (newTab === 'prompts') {
|
|
772
722
|
if (this.promptsSubTab === 'claude-project' && !this.projectPathOptions.length && !this.projectPathOptionsLoading && typeof this.loadProjectPathOptions === 'function') {
|
|
773
723
|
this.loadProjectPathOptions();
|
|
774
724
|
}
|
|
775
|
-
this.
|
|
725
|
+
if (this.promptsSubTab === 'system') {
|
|
726
|
+
if (typeof this.loadSystemPrompt === 'function') this.loadSystemPrompt();
|
|
727
|
+
} else if (typeof this.loadPromptsContent === 'function') {
|
|
728
|
+
this.loadPromptsContent();
|
|
729
|
+
}
|
|
776
730
|
}
|
|
777
731
|
},
|
|
778
732
|
promptsSubTab(newVal) {
|
|
@@ -783,14 +737,28 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
|
783
737
|
this.__skipNextPromptsSubTabLoad = false;
|
|
784
738
|
return;
|
|
785
739
|
}
|
|
786
|
-
if (this.mainTab === 'prompts'
|
|
787
|
-
this.
|
|
740
|
+
if (this.mainTab === 'prompts') {
|
|
741
|
+
if (this.promptsSubTab === 'system') {
|
|
742
|
+
if (typeof this.loadSystemPrompt === 'function') this.loadSystemPrompt();
|
|
743
|
+
} else if (typeof this.loadPromptsContent === 'function') {
|
|
744
|
+
this.loadPromptsContent();
|
|
745
|
+
}
|
|
788
746
|
}
|
|
789
747
|
},
|
|
790
748
|
projectClaudeMdPath(newPath) {
|
|
791
749
|
if (typeof this.persistWebUiPreferences === 'function') {
|
|
792
750
|
this.persistWebUiPreferences({ projectClaudeMdPath: newPath || '' });
|
|
793
751
|
}
|
|
752
|
+
},
|
|
753
|
+
sysPromptScope(newVal) {
|
|
754
|
+
if (typeof this.persistWebUiPreferences === 'function') {
|
|
755
|
+
this.persistWebUiPreferences({ sysPromptScope: newVal });
|
|
756
|
+
}
|
|
757
|
+
},
|
|
758
|
+
sysPromptMode(newVal) {
|
|
759
|
+
if (typeof this.persistWebUiPreferences === 'function') {
|
|
760
|
+
this.persistWebUiPreferences({ sysPromptMode: newVal });
|
|
761
|
+
}
|
|
794
762
|
}
|
|
795
763
|
},
|
|
796
764
|
|
package/web-ui/index.html
CHANGED
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
<!-- @include ./partials/index/panel-config-kilocode.html -->
|
|
21
21
|
<!-- @include ./partials/index/panel-sessions.html -->
|
|
22
22
|
<!-- @include ./partials/index/panel-usage.html -->
|
|
23
|
-
<!-- @include ./partials/index/panel-orchestration.html -->
|
|
24
23
|
<!-- @include ./partials/index/panel-docs.html -->
|
|
25
24
|
<!-- @include ./partials/index/panel-settings.html -->
|
|
26
25
|
<!-- @include ./partials/index/panel-trash.html -->
|
|
@@ -185,9 +185,6 @@ export function createDashboardComputed() {
|
|
|
185
185
|
if (this.codexApplying || this.configTemplateApplying || this.openclawApplying) tasks.push(this.t('dashboard.busy.configApply'));
|
|
186
186
|
if (this.agentsSaving) tasks.push(this.t('dashboard.busy.agents'));
|
|
187
187
|
if (this.skillsLoading || this.skillsDeleting || this.skillsScanningImports || this.skillsImporting || this.skillsZipImporting || this.skillsExporting) tasks.push(this.t('dashboard.busy.skills'));
|
|
188
|
-
if (this.taskOrchestration && (this.taskOrchestration.loading || this.taskOrchestration.planning || this.taskOrchestration.running || this.taskOrchestration.queueAdding || this.taskOrchestration.queueStarting || this.taskOrchestration.retrying || this.taskOrchestration.selectedRunLoading)) {
|
|
189
|
-
tasks.push(this.t('dashboard.busy.tasks'));
|
|
190
|
-
}
|
|
191
188
|
return tasks.length ? tasks.join(' / ') : this.t('dashboard.busy.idle');
|
|
192
189
|
},
|
|
193
190
|
inspectorMessageSummary() {
|