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
|
@@ -1,598 +0,0 @@
|
|
|
1
|
-
<div
|
|
2
|
-
v-if="taskOrchestrationTabEnabled"
|
|
3
|
-
v-show="mainTab === 'orchestration'"
|
|
4
|
-
class="mode-content"
|
|
5
|
-
id="panel-orchestration"
|
|
6
|
-
:data-active="mainTab === 'orchestration' ? 'true' : 'false'"
|
|
7
|
-
role="tabpanel"
|
|
8
|
-
aria-labelledby="tab-orchestration">
|
|
9
|
-
<section class="selector-section task-hero-card">
|
|
10
|
-
<div class="task-hero-main">
|
|
11
|
-
<div>
|
|
12
|
-
<div class="task-hero-kicker">{{ t('orchestration.hero.kicker') }}</div>
|
|
13
|
-
<div class="selector-title">{{ t('orchestration.hero.title') }}</div>
|
|
14
|
-
<div class="skills-panel-note task-hero-copy">{{ t('orchestration.hero.subtitle') }}</div>
|
|
15
|
-
</div>
|
|
16
|
-
<div class="task-hero-actions settings-tab-actions task-header-actions">
|
|
17
|
-
<button type="button" class="btn-tool btn-tool-compact" @click="loadTaskOrchestrationOverview({ forceRefresh: true, includeDetail: true })" :disabled="taskOrchestration.loading">
|
|
18
|
-
{{ taskOrchestration.loading ? t('common.refreshing') : t('common.refresh') }}
|
|
19
|
-
</button>
|
|
20
|
-
<button type="button" class="btn-tool btn-tool-compact" @click="resetTaskOrchestrationDraft()" :disabled="taskOrchestration.running || taskOrchestration.queueAdding || taskOrchestration.planning">
|
|
21
|
-
{{ t('orchestration.draft.reset') }}
|
|
22
|
-
</button>
|
|
23
|
-
<button type="button" class="btn-tool btn-tool-compact" @click="switchMainTab('dashboard')" :disabled="loading || !!initError">
|
|
24
|
-
{{ t('dashboard.doctor.title') }}
|
|
25
|
-
</button>
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
</section>
|
|
29
|
-
|
|
30
|
-
<div class="task-layout-grid task-layout-grid-primary task-quick-layout">
|
|
31
|
-
<section class="selector-section task-compose-flow-card task-quick-card">
|
|
32
|
-
<aside class="task-project-sidebar" :aria-label="t('orchestration.workspace.aria')">
|
|
33
|
-
<div class="task-project-sidebar-head">
|
|
34
|
-
<div>
|
|
35
|
-
<div class="task-thread-card-label">{{ t('orchestration.workspace.title') }}</div>
|
|
36
|
-
<div class="skills-panel-note">{{ t('orchestration.workspace.subtitle') }}</div>
|
|
37
|
-
</div>
|
|
38
|
-
<button type="button" class="btn-mini" @click="loadTaskOrchestrationOverview({ forceRefresh: true, includeDetail: true })" :disabled="taskOrchestration.loading">
|
|
39
|
-
{{ taskOrchestration.loading ? t('common.refreshing') : t('common.refresh') }}
|
|
40
|
-
</button>
|
|
41
|
-
</div>
|
|
42
|
-
<div class="task-project-list" :aria-label="t('orchestration.workspace.selector')">
|
|
43
|
-
<button
|
|
44
|
-
v-for="workspace in taskOrchestrationWorkspaceItems"
|
|
45
|
-
:key="workspace.key"
|
|
46
|
-
type="button"
|
|
47
|
-
:class="['task-project-item', { active: workspace.active }]"
|
|
48
|
-
:aria-selected="workspace.active ? 'true' : 'false'"
|
|
49
|
-
:title="workspace.path ? t('orchestration.workspace.pathHidden') : workspace.meta"
|
|
50
|
-
@click="selectTaskWorkspace(workspace.path)">
|
|
51
|
-
<span class="task-project-item-title">{{ workspace.label }}</span>
|
|
52
|
-
<span class="task-project-item-meta">{{ workspace.path ? t('orchestration.workspace.pathHidden') : workspace.meta }}</span>
|
|
53
|
-
<span class="task-project-item-stats">{{ t('orchestration.workspace.counts', { runs: workspace.runCount, queue: workspace.queueCount }) }}</span>
|
|
54
|
-
</button>
|
|
55
|
-
</div>
|
|
56
|
-
<button type="button" class="btn-tool btn-primary task-project-new-session" @click="startNewTaskWorkspaceSession()">
|
|
57
|
-
{{ t('orchestration.workspace.newSession') }}
|
|
58
|
-
</button>
|
|
59
|
-
<div class="task-session-inbox">
|
|
60
|
-
<div class="task-session-inbox-head">
|
|
61
|
-
<span class="task-readiness-title">{{ t('orchestration.workspace.sessions.title') }}</span>
|
|
62
|
-
<span class="pill neutral">{{ taskOrchestrationWorkspaceSessions.length }}</span>
|
|
63
|
-
</div>
|
|
64
|
-
<div v-if="!taskOrchestrationWorkspaceSessions.length" class="task-empty-state task-session-empty">
|
|
65
|
-
<div class="task-empty-title">{{ t('orchestration.workspace.sessions.empty.title') }}</div>
|
|
66
|
-
<div class="task-empty-copy">{{ t('orchestration.workspace.sessions.empty.subtitle') }}</div>
|
|
67
|
-
</div>
|
|
68
|
-
<button
|
|
69
|
-
v-for="session in taskOrchestrationWorkspaceSessions.slice(0, 8)"
|
|
70
|
-
:key="session.id"
|
|
71
|
-
type="button"
|
|
72
|
-
class="task-session-inbox-item"
|
|
73
|
-
@click="continueTaskWorkspaceSession(session)">
|
|
74
|
-
<span class="task-session-inbox-main">
|
|
75
|
-
<span class="task-session-inbox-title">{{ session.type === 'queue' ? t('orchestration.workspace.sessions.queueTitle') : t('orchestration.workspace.sessions.runTitle') }}</span>
|
|
76
|
-
<span class="task-session-inbox-meta">{{ t('orchestration.workspace.sessions.detailsHidden') }}</span>
|
|
77
|
-
</span>
|
|
78
|
-
<span :class="['pill', taskRunStatusTone(session.status)]">{{ session.status }}</span>
|
|
79
|
-
</button>
|
|
80
|
-
</div>
|
|
81
|
-
</aside>
|
|
82
|
-
<div class="task-quick-main">
|
|
83
|
-
<div class="task-quick-copy">
|
|
84
|
-
<div class="task-hero-kicker">{{ t('orchestration.quick.kicker') }}</div>
|
|
85
|
-
<div class="selector-title task-quick-title">{{ t('orchestration.quick.title') }}</div>
|
|
86
|
-
<div class="skills-panel-note task-hero-copy">{{ t('orchestration.quick.subtitle') }}</div>
|
|
87
|
-
</div>
|
|
88
|
-
|
|
89
|
-
<section class="task-agent-cockpit" :aria-label="t('orchestration.agent.aria')">
|
|
90
|
-
<div class="task-agent-cockpit-head">
|
|
91
|
-
<div>
|
|
92
|
-
<div class="task-hero-kicker">{{ t('orchestration.agent.kicker') }}</div>
|
|
93
|
-
<div class="selector-title task-agent-title">{{ t('orchestration.agent.title') }}</div>
|
|
94
|
-
<div class="skills-panel-note task-agent-copy">{{ t('orchestration.agent.subtitle') }}</div>
|
|
95
|
-
</div>
|
|
96
|
-
<span :class="['pill', taskOrchestration.running || taskOrchestration.planning ? 'warn' : (taskOrchestrationSelectedRun && taskOrchestrationSelectedRun.run ? taskRunStatusTone(taskOrchestrationSelectedRun.run.status) : 'neutral')]">
|
|
97
|
-
{{ taskOrchestration.running ? t('orchestration.agent.state.running') : (taskOrchestration.planning ? t('orchestration.agent.state.planning') : (taskOrchestrationSelectedRun && taskOrchestrationSelectedRun.run ? taskOrchestrationSelectedRun.run.status : t('orchestration.agent.state.ready'))) }}
|
|
98
|
-
</span>
|
|
99
|
-
</div>
|
|
100
|
-
<div class="task-agent-surface-grid">
|
|
101
|
-
<div class="task-agent-surface-card">
|
|
102
|
-
<span>{{ t('orchestration.agent.surface.workspace') }}</span>
|
|
103
|
-
<strong>{{ taskOrchestrationWorkspacePath ? t('orchestration.privacy.workspace.selected') : t('orchestration.chat.context.workspace.auto') }}</strong>
|
|
104
|
-
</div>
|
|
105
|
-
<div class="task-agent-surface-card">
|
|
106
|
-
<span>{{ t('orchestration.agent.surface.session') }}</span>
|
|
107
|
-
<strong>{{ (taskOrchestration.threadId.trim() || (taskOrchestrationSelectedRun && taskOrchestrationSelectedRun.threadId)) ? t('orchestration.privacy.thread.selected') : t('orchestration.chat.context.thread.auto') }}</strong>
|
|
108
|
-
</div>
|
|
109
|
-
<div class="task-agent-surface-card">
|
|
110
|
-
<span>{{ t('orchestration.agent.surface.mode') }}</span>
|
|
111
|
-
<strong>{{ taskOrchestration.selectedEngine === 'workflow' ? t('orchestration.engine.workflow') : t('orchestration.engine.openaiChat') }} · {{ taskOrchestration.runMode === 'dry-run' ? t('orchestration.runMode.dryRun') : (taskOrchestration.runMode === 'read' ? t('orchestration.runMode.readOnly') : t('orchestration.runMode.write')) }}</strong>
|
|
112
|
-
</div>
|
|
113
|
-
<div class="task-agent-surface-card">
|
|
114
|
-
<span>{{ t('orchestration.agent.surface.trace') }}</span>
|
|
115
|
-
<strong>{{ taskOrchestrationWorkspaceRuns.length }} {{ t('orchestration.agent.surface.runs') }} · {{ taskOrchestrationWorkspaceQueue.length }} {{ t('orchestration.agent.surface.queue') }}</strong>
|
|
116
|
-
</div>
|
|
117
|
-
</div>
|
|
118
|
-
</section>
|
|
119
|
-
|
|
120
|
-
<div class="task-quick-input-card task-chat-panel">
|
|
121
|
-
<div class="task-chat-thread" role="log" :aria-label="t('orchestration.chat.thread.aria')">
|
|
122
|
-
<div
|
|
123
|
-
v-for="message in taskOrchestrationConversationMessages"
|
|
124
|
-
:key="message.id"
|
|
125
|
-
:class="['task-chat-bubble-row', message.role === 'user' ? 'is-user' : 'is-assistant']">
|
|
126
|
-
<div class="task-chat-bubble">
|
|
127
|
-
<div class="task-chat-bubble-label">{{ message.label }}</div>
|
|
128
|
-
<div class="task-chat-bubble-text">{{ message.text }}</div>
|
|
129
|
-
<div v-if="message.meta" class="task-chat-bubble-meta">{{ message.meta }}</div>
|
|
130
|
-
</div>
|
|
131
|
-
</div>
|
|
132
|
-
<div
|
|
133
|
-
v-if="taskOrchestration.plan || taskOrchestration.planIssues.length || taskOrchestration.planWarnings.length || taskOrchestration.lastError"
|
|
134
|
-
class="task-chat-bubble-row is-user task-thread-plan-request">
|
|
135
|
-
<div class="task-chat-bubble">
|
|
136
|
-
<div class="task-chat-bubble-label">You · /plan</div>
|
|
137
|
-
<div class="task-chat-bubble-text">/plan {{ taskOrchestration.target }}</div>
|
|
138
|
-
<div v-if="taskOrchestrationDraftMetrics.followUpCount" class="task-chat-bubble-meta">{{ t('orchestration.chat.input.sequenceHint', { count: taskOrchestrationDraftMetrics.followUpCount + 1 }) }}</div>
|
|
139
|
-
</div>
|
|
140
|
-
</div>
|
|
141
|
-
<section
|
|
142
|
-
v-if="taskOrchestration.plan || taskOrchestration.planIssues.length || taskOrchestration.planWarnings.length || taskOrchestration.lastError"
|
|
143
|
-
class="selector-section task-plan-card task-thread-message-card task-thread-plan-card">
|
|
144
|
-
<div class="task-thread-card-label">AI · {{ t('orchestration.plan.title') }}</div>
|
|
145
|
-
<div v-if="taskOrchestration.lastError" class="task-issue-item">{{ taskOrchestration.lastError }}</div>
|
|
146
|
-
<div v-if="taskOrchestration.plan" class="task-thread-run-summary task-thread-plan-summary">
|
|
147
|
-
<span class="pill configured">/plan</span>
|
|
148
|
-
<span class="task-thread-run-summary-copy">{{ t('orchestration.chat.assistant.planSummary', { nodes: taskOrchestration.plan.nodes.length, waves: taskOrchestration.plan.waves.length }) }}</span>
|
|
149
|
-
</div>
|
|
150
|
-
<div v-if="taskOrchestration.planIssues.length" class="task-issues-list">
|
|
151
|
-
<div v-for="issue in taskOrchestration.planIssues" :key="issue.code + issue.message" class="task-issue-item">
|
|
152
|
-
{{ issue.message }}
|
|
153
|
-
</div>
|
|
154
|
-
</div>
|
|
155
|
-
<div v-if="taskOrchestration.planWarnings.length" class="task-warning-list">
|
|
156
|
-
<div v-for="warning in taskOrchestration.planWarnings" :key="warning" class="task-warning-item">
|
|
157
|
-
{{ warning }}
|
|
158
|
-
</div>
|
|
159
|
-
</div>
|
|
160
|
-
<template v-if="taskOrchestration.plan">
|
|
161
|
-
<details class="task-thread-run-details task-thread-plan-details">
|
|
162
|
-
<summary>Plan details</summary>
|
|
163
|
-
<div class="task-plan-summary-strip">
|
|
164
|
-
<div class="task-plan-summary-item">
|
|
165
|
-
<span class="task-plan-summary-label">{{ t('orchestration.plan.summary.nodes') }}</span>
|
|
166
|
-
<strong>{{ taskOrchestration.plan.nodes.length }}</strong>
|
|
167
|
-
</div>
|
|
168
|
-
<div class="task-plan-summary-item">
|
|
169
|
-
<span class="task-plan-summary-label">{{ t('orchestration.plan.summary.waves') }}</span>
|
|
170
|
-
<strong>{{ taskOrchestration.plan.waves.length }}</strong>
|
|
171
|
-
</div>
|
|
172
|
-
<div class="task-plan-summary-item">
|
|
173
|
-
<span class="task-plan-summary-label">{{ t('orchestration.plan.summary.engine') }}</span>
|
|
174
|
-
<strong>{{ taskOrchestration.plan.engine }}</strong>
|
|
175
|
-
</div>
|
|
176
|
-
<div v-if="taskOrchestration.plan.threadId" class="task-plan-summary-item">
|
|
177
|
-
<span class="task-plan-summary-label">{{ t('orchestration.plan.summary.threadId') }}</span>
|
|
178
|
-
<strong>{{ taskOrchestration.plan.threadId }}</strong>
|
|
179
|
-
</div>
|
|
180
|
-
<div v-if="taskOrchestration.plan.cwd" class="task-plan-summary-item">
|
|
181
|
-
<span class="task-plan-summary-label">{{ t('orchestration.plan.summary.cwd') }}</span>
|
|
182
|
-
<strong>{{ taskOrchestration.plan.cwd }}</strong>
|
|
183
|
-
</div>
|
|
184
|
-
</div>
|
|
185
|
-
<div class="task-wave-list">
|
|
186
|
-
<div v-for="wave in taskOrchestration.plan.waves" :key="wave.label" class="task-wave-card">
|
|
187
|
-
<div class="task-wave-title">{{ wave.label }}</div>
|
|
188
|
-
<div class="task-wave-nodes">{{ wave.nodeIds.join(', ') }}</div>
|
|
189
|
-
</div>
|
|
190
|
-
</div>
|
|
191
|
-
<div class="task-node-list">
|
|
192
|
-
<div v-for="node in taskOrchestration.plan.nodes" :key="node.id" class="task-node-card">
|
|
193
|
-
<div class="task-node-head">
|
|
194
|
-
<div>
|
|
195
|
-
<div class="task-node-title">{{ node.title || node.id }}</div>
|
|
196
|
-
<div class="task-node-meta">{{ node.id }} · {{ node.kind }}<span v-if="node.workflowId"> · {{ node.workflowId }}</span></div>
|
|
197
|
-
</div>
|
|
198
|
-
<span :class="['pill', node.write ? 'configured' : 'empty']">{{ node.write ? t('orchestration.plan.node.write') : t('orchestration.plan.node.readOnly') }}</span>
|
|
199
|
-
</div>
|
|
200
|
-
<div class="task-node-deps">{{ t('orchestration.labels.dependencies') }}{{ formatTaskNodeDependencies(node) }}</div>
|
|
201
|
-
</div>
|
|
202
|
-
</div>
|
|
203
|
-
</details>
|
|
204
|
-
</template>
|
|
205
|
-
</section>
|
|
206
|
-
|
|
207
|
-
</div>
|
|
208
|
-
<div class="task-thread-composer">
|
|
209
|
-
<label class="task-quick-target-field task-chat-composer">
|
|
210
|
-
<span class="selector-label">{{ t('orchestration.chat.input.label') }}</span>
|
|
211
|
-
<span class="task-composer-prompt-glyph" aria-hidden="true">›</span>
|
|
212
|
-
<textarea
|
|
213
|
-
v-model="taskOrchestration.chatDraft"
|
|
214
|
-
class="task-textarea task-textarea-goal task-quick-target"
|
|
215
|
-
rows="3"
|
|
216
|
-
:placeholder="t('orchestration.chat.input.placeholder')"
|
|
217
|
-
@keydown.enter.exact.prevent="submitTaskOrchestrationChatMessage()"></textarea>
|
|
218
|
-
<span class="task-field-hint">{{ t('orchestration.chat.input.hint') }}</span>
|
|
219
|
-
</label>
|
|
220
|
-
<div class="task-chat-send-row">
|
|
221
|
-
<div class="task-chat-action-buttons task-chat-primary-action">
|
|
222
|
-
<button type="button" class="btn-tool btn-primary task-chat-primary-button" @click="planAndRunTaskOrchestrationFromChat()" :disabled="taskOrchestration.running || taskOrchestration.planning || (!taskOrchestration.target.trim() && !taskOrchestration.chatDraft.trim())">
|
|
223
|
-
{{ taskOrchestration.running ? t('orchestration.actions.processing') : (taskOrchestration.planning ? t('orchestration.actions.planning') : t('orchestration.chat.input.work')) }}
|
|
224
|
-
</button>
|
|
225
|
-
</div>
|
|
226
|
-
<span class="task-field-hint">{{ taskOrchestrationDraftMetrics.hasTarget ? t('orchestration.chat.input.sequenceHint', { count: taskOrchestrationDraftMetrics.followUpCount + 2 }) : t('orchestration.chat.input.workHint') }}</span>
|
|
227
|
-
</div>
|
|
228
|
-
<div class="task-chat-execute-caption">
|
|
229
|
-
{{ t('orchestration.chat.input.workCaption') }}
|
|
230
|
-
</div>
|
|
231
|
-
<div class="task-chat-context-row task-chat-context-row-primary" role="group" :aria-label="t('orchestration.chat.context.aria')">
|
|
232
|
-
<span class="task-chat-context-chip task-chat-context-chip-strong">
|
|
233
|
-
<small>{{ t('orchestration.plan.summary.cwd') }}</small>
|
|
234
|
-
<strong>{{ (taskOrchestrationWorkspacePath || taskOrchestration.workspacePath.trim()) ? t('orchestration.privacy.workspace.selected') : t('orchestration.chat.context.workspace.auto') }}</strong>
|
|
235
|
-
</span>
|
|
236
|
-
<span class="task-chat-context-chip task-chat-context-chip-strong">
|
|
237
|
-
<small>{{ t('orchestration.plan.summary.threadId') }}</small>
|
|
238
|
-
<strong>{{ (taskOrchestration.threadId.trim() || (taskOrchestrationSelectedRun && taskOrchestrationSelectedRun.threadId)) ? t('orchestration.privacy.thread.selected') : t('orchestration.chat.context.thread.auto') }}</strong>
|
|
239
|
-
</span>
|
|
240
|
-
<span class="task-chat-context-chip">{{ taskOrchestrationDraftMetrics.hasTarget ? t('orchestration.chat.context.sequence.value', { count: taskOrchestrationDraftMetrics.requestCount }) : t('orchestration.chat.context.sequence.empty') }}</span>
|
|
241
|
-
<span class="task-chat-context-chip">{{ taskOrchestration.runMode === 'dry-run' ? t('orchestration.runMode.dryRun') : (taskOrchestration.runMode === 'read' ? t('orchestration.runMode.readOnly') : t('orchestration.runMode.write') ) }}</span>
|
|
242
|
-
<button type="button" class="task-chat-context-chip task-chat-context-action" @click="taskOrchestration.settingsOpen = true">{{ t('orchestration.advanced.open') }}</button>
|
|
243
|
-
</div>
|
|
244
|
-
|
|
245
|
-
<div class="task-action-caption">{{ t('orchestration.quick.caption') }}</div>
|
|
246
|
-
</div>
|
|
247
|
-
</div>
|
|
248
|
-
</div>
|
|
249
|
-
|
|
250
|
-
<aside class="task-quick-side-card">
|
|
251
|
-
<section
|
|
252
|
-
class="selector-section task-workbench-card task-side-workbench-card">
|
|
253
|
-
<div class="task-thread-card-label">{{ t('orchestration.workbench.title') }}</div>
|
|
254
|
-
<div class="task-thread-run-summary">
|
|
255
|
-
<span v-if="taskOrchestrationSelectedRun && taskOrchestrationSelectedRun.run" :class="['pill', taskRunStatusTone(taskOrchestrationSelectedRun.run.status)]">{{ taskOrchestrationSelectedRun.run.status }}</span>
|
|
256
|
-
<span v-else-if="taskOrchestrationWorkspaceRuns.length" :class="['pill', taskRunStatusTone(taskOrchestrationWorkspaceRuns[0].status)]">{{ taskOrchestrationWorkspaceRuns[0].status }}</span>
|
|
257
|
-
<span v-else-if="taskOrchestrationWorkspaceQueue.length" class="pill neutral">{{ t('orchestration.workbench.queueCount', { count: taskOrchestrationWorkspaceQueue.length }) }}</span>
|
|
258
|
-
<span v-else class="pill empty">{{ t('orchestration.workbench.ready') }}</span>
|
|
259
|
-
<span v-if="taskOrchestrationSelectedRun && taskOrchestrationSelectedRun.run" class="task-thread-run-summary-copy">{{ taskOrchestrationSelectedRun.run.summary || taskOrchestrationSelectedRun.run.runId || taskOrchestration.selectedRunId }}</span>
|
|
260
|
-
<span v-else-if="taskOrchestrationWorkspaceRuns.length" class="task-thread-run-summary-copy">{{ taskOrchestrationWorkspaceRuns[0].summary || taskOrchestrationWorkspaceRuns[0].runId }}</span>
|
|
261
|
-
<span v-else-if="taskOrchestrationWorkspaceQueue.length" class="task-thread-run-summary-copy">{{ taskOrchestrationWorkspaceQueue[0].title || taskOrchestrationWorkspaceQueue[0].target || taskOrchestrationWorkspaceQueue[0].taskId }}</span>
|
|
262
|
-
<span v-else class="task-thread-run-summary-copy">{{ t('orchestration.workbench.subtitle') }}</span>
|
|
263
|
-
</div>
|
|
264
|
-
<details class="task-thread-run-details" open>
|
|
265
|
-
<summary>{{ t('orchestration.agent.trace.title') }}</summary>
|
|
266
|
-
|
|
267
|
-
<div class="settings-tab-actions task-header-actions task-thread-detail-actions">
|
|
268
|
-
<button type="button" class="btn-tool btn-tool-compact" @click="loadTaskOrchestrationOverview({ forceRefresh: true, includeDetail: true })" :disabled="taskOrchestration.loading">
|
|
269
|
-
{{ taskOrchestration.loading ? t('common.refreshing') : t('common.refresh') }}
|
|
270
|
-
</button>
|
|
271
|
-
<button v-if="taskOrchestrationWorkspaceQueue.length" type="button" class="btn-tool btn-tool-compact" @click="startTaskQueueRunner()" :disabled="taskOrchestration.queueStarting">
|
|
272
|
-
{{ taskOrchestration.queueStarting ? t('orchestration.queue.starting') : t('orchestration.queue.start') }}
|
|
273
|
-
</button>
|
|
274
|
-
</div>
|
|
275
|
-
|
|
276
|
-
<div class="task-agent-trace-grid">
|
|
277
|
-
<div class="task-agent-trace-card">
|
|
278
|
-
<span>{{ t('orchestration.agent.trace.plan') }}</span>
|
|
279
|
-
<strong>{{ taskOrchestration.plan ? taskOrchestration.plan.nodes.length : 0 }}</strong>
|
|
280
|
-
</div>
|
|
281
|
-
<div class="task-agent-trace-card">
|
|
282
|
-
<span>{{ t('orchestration.agent.trace.queue') }}</span>
|
|
283
|
-
<strong>{{ taskOrchestrationWorkspaceQueue.length }}</strong>
|
|
284
|
-
</div>
|
|
285
|
-
<div class="task-agent-trace-card">
|
|
286
|
-
<span>{{ t('orchestration.agent.trace.runs') }}</span>
|
|
287
|
-
<strong>{{ taskOrchestrationWorkspaceRuns.length }}</strong>
|
|
288
|
-
</div>
|
|
289
|
-
<div class="task-agent-trace-card">
|
|
290
|
-
<span>{{ t('orchestration.agent.trace.nodes') }}</span>
|
|
291
|
-
<strong>{{ taskOrchestrationSelectedRunNodes.length }}</strong>
|
|
292
|
-
</div>
|
|
293
|
-
</div>
|
|
294
|
-
|
|
295
|
-
<div
|
|
296
|
-
v-if="(taskOrchestrationWorkspaceQueue.length ? 1 : 0) + (taskOrchestrationWorkspaceRuns.length ? 1 : 0) + ((taskOrchestration.selectedRunId || taskOrchestration.selectedRunError) ? 1 : 0) > 1"
|
|
297
|
-
class="task-workbench-tabs"
|
|
298
|
-
role="group"
|
|
299
|
-
:aria-label="t('orchestration.workbench.tabs.aria')">
|
|
300
|
-
<button v-if="taskOrchestrationWorkspaceQueue.length" type="button" class="task-workbench-tab" :class="{ active: taskOrchestration.workspaceTab === 'queue' }" @click="taskOrchestration.workspaceTab = 'queue'">{{ t('orchestration.workbench.tabs.queue', { count: taskOrchestrationWorkspaceQueue.length }) }}</button>
|
|
301
|
-
<button v-if="taskOrchestrationWorkspaceRuns.length" type="button" class="task-workbench-tab" :class="{ active: taskOrchestration.workspaceTab === 'runs' }" @click="taskOrchestration.workspaceTab = 'runs'">{{ t('orchestration.workbench.tabs.runs', { count: taskOrchestrationWorkspaceRuns.length }) }}</button>
|
|
302
|
-
<button v-if="taskOrchestration.selectedRunId || taskOrchestration.selectedRunError" type="button" class="task-workbench-tab" :class="{ active: taskOrchestration.workspaceTab === 'detail' }" @click="taskOrchestration.workspaceTab = 'detail'">{{ t('orchestration.workbench.tabs.detail') }}</button>
|
|
303
|
-
</div>
|
|
304
|
-
|
|
305
|
-
<div v-if="(taskOrchestrationWorkspaceQueue.length && taskOrchestration.workspaceTab === 'queue') || (!taskOrchestrationWorkspaceRuns.length && !taskOrchestration.selectedRunId && !taskOrchestration.selectedRunError)" class="task-workbench-panel">
|
|
306
|
-
<div v-if="!taskOrchestrationWorkspaceQueue.length" class="task-empty-state">
|
|
307
|
-
<div class="task-empty-title">{{ t('orchestration.queue.empty.title') }}</div>
|
|
308
|
-
<div class="task-empty-copy">{{ t('orchestration.queue.empty.subtitle') }}</div>
|
|
309
|
-
</div>
|
|
310
|
-
<div v-else class="task-runtime-list">
|
|
311
|
-
<div
|
|
312
|
-
v-for="item in taskOrchestrationWorkspaceQueue"
|
|
313
|
-
:key="item.taskId"
|
|
314
|
-
:class="['task-runtime-item', { active: item.lastRunId && taskOrchestration.selectedRunId === item.lastRunId, clickable: !!item.lastRunId }]"
|
|
315
|
-
:role="item.lastRunId ? 'button' : null"
|
|
316
|
-
:tabindex="item.lastRunId ? 0 : -1"
|
|
317
|
-
:aria-disabled="item.lastRunId ? null : 'true'"
|
|
318
|
-
@click="item.lastRunId ? (taskOrchestration.workspaceTab = 'detail', selectTaskRun(item.lastRunId)) : null"
|
|
319
|
-
@keydown.enter.self.prevent="item.lastRunId ? (taskOrchestration.workspaceTab = 'detail', selectTaskRun(item.lastRunId)) : null"
|
|
320
|
-
@keydown.space.self.prevent="item.lastRunId ? (taskOrchestration.workspaceTab = 'detail', selectTaskRun(item.lastRunId)) : null">
|
|
321
|
-
<div class="task-runtime-item-main">
|
|
322
|
-
<div class="task-runtime-item-title">{{ item.title || item.target || item.taskId }}</div>
|
|
323
|
-
<div class="task-runtime-item-meta">{{ item.taskId }} · {{ item.updatedAt || item.createdAt }}</div>
|
|
324
|
-
<div v-if="item.threadId || item.cwd" class="task-runtime-item-meta">
|
|
325
|
-
<span v-if="item.threadId">{{ t('orchestration.plan.summary.threadId') }}: {{ item.threadId }}</span>
|
|
326
|
-
<span v-if="item.threadId && item.cwd"> · </span>
|
|
327
|
-
<span v-if="item.cwd">{{ t('orchestration.plan.summary.cwd') }}: {{ item.cwd }}</span>
|
|
328
|
-
</div>
|
|
329
|
-
<div v-if="item.lastSummary" class="task-runtime-item-summary">{{ item.lastSummary }}</div>
|
|
330
|
-
</div>
|
|
331
|
-
<div class="task-runtime-item-actions">
|
|
332
|
-
<span :class="['pill', taskRunStatusTone(item.status || item.runStatus)]">{{ item.status || item.runStatus }}</span>
|
|
333
|
-
<button v-if="isTaskRunActive(item.status || item.runStatus)" type="button" class="btn-mini" @click.stop="cancelTaskRunFromUi(item.taskId)">{{ t('common.cancel') }}</button>
|
|
334
|
-
</div>
|
|
335
|
-
</div>
|
|
336
|
-
</div>
|
|
337
|
-
</div>
|
|
338
|
-
|
|
339
|
-
<div v-else-if="taskOrchestration.workspaceTab === 'runs' || (!taskOrchestrationWorkspaceQueue.length && taskOrchestrationWorkspaceRuns.length && !taskOrchestration.selectedRunId && !taskOrchestration.selectedRunError)" class="task-workbench-panel">
|
|
340
|
-
<div v-if="!taskOrchestrationWorkspaceRuns.length" class="task-empty-state">
|
|
341
|
-
<div class="task-empty-title">{{ t('orchestration.runs.empty.title') }}</div>
|
|
342
|
-
<div class="task-empty-copy">{{ t('orchestration.runs.empty.subtitle') }}</div>
|
|
343
|
-
</div>
|
|
344
|
-
<div v-else class="task-runtime-list">
|
|
345
|
-
<button
|
|
346
|
-
v-for="item in taskOrchestrationWorkspaceRuns"
|
|
347
|
-
:key="item.runId"
|
|
348
|
-
type="button"
|
|
349
|
-
:class="['task-runtime-item', { active: taskOrchestration.selectedRunId === item.runId }]"
|
|
350
|
-
@click="taskOrchestration.workspaceTab = 'detail'; selectTaskRun(item.runId)">
|
|
351
|
-
<div class="task-runtime-item-main">
|
|
352
|
-
<div class="task-runtime-item-title">{{ item.title || item.taskId || item.runId }}</div>
|
|
353
|
-
<div class="task-runtime-item-meta">{{ item.runId }} · {{ item.durationMs || 0 }}ms</div>
|
|
354
|
-
<div v-if="item.threadId || item.cwd" class="task-runtime-item-meta">
|
|
355
|
-
<span v-if="item.threadId">{{ t('orchestration.plan.summary.threadId') }}: {{ item.threadId }}</span>
|
|
356
|
-
<span v-if="item.threadId && item.cwd"> · </span>
|
|
357
|
-
<span v-if="item.cwd">{{ t('orchestration.plan.summary.cwd') }}: {{ item.cwd }}</span>
|
|
358
|
-
</div>
|
|
359
|
-
<div v-if="item.summary" class="task-runtime-item-summary">{{ item.summary }}</div>
|
|
360
|
-
</div>
|
|
361
|
-
<div class="task-runtime-item-actions">
|
|
362
|
-
<span :class="['pill', taskRunStatusTone(item.status)]">{{ item.status }}</span>
|
|
363
|
-
</div>
|
|
364
|
-
</button>
|
|
365
|
-
</div>
|
|
366
|
-
</div>
|
|
367
|
-
|
|
368
|
-
<div v-else class="task-workbench-panel">
|
|
369
|
-
<div class="task-detail-toolbar settings-tab-actions">
|
|
370
|
-
<button type="button" class="btn-tool btn-tool-compact" @click="taskOrchestration.selectedRunId ? loadTaskRunDetail(taskOrchestration.selectedRunId) : null" :disabled="!taskOrchestration.selectedRunId || taskOrchestration.selectedRunLoading">
|
|
371
|
-
{{ taskOrchestration.selectedRunLoading ? t('common.refreshing') : t('orchestration.detail.refresh') }}
|
|
372
|
-
</button>
|
|
373
|
-
<button type="button" class="btn-tool btn-tool-compact" @click="retryTaskRunFromUi(taskOrchestration.selectedRunId)" :disabled="!taskOrchestration.selectedRunId || taskOrchestration.retrying">
|
|
374
|
-
{{ taskOrchestration.retrying ? t('orchestration.detail.retrying') : t('orchestration.detail.retry') }}
|
|
375
|
-
</button>
|
|
376
|
-
<button type="button" class="btn-tool btn-tool-compact" @click="continueTaskThreadFromUi" :disabled="!taskOrchestrationSelectedRun">
|
|
377
|
-
{{ t('orchestration.detail.continueThread') }}
|
|
378
|
-
</button>
|
|
379
|
-
<button v-if="taskOrchestrationSelectedRun && taskOrchestrationSelectedRun.run && isTaskRunActive(taskOrchestrationSelectedRun.run.status)" type="button" class="btn-tool btn-tool-compact" @click="cancelTaskRunFromUi(taskOrchestration.selectedRunId)">
|
|
380
|
-
{{ t('common.cancel') }}
|
|
381
|
-
</button>
|
|
382
|
-
</div>
|
|
383
|
-
|
|
384
|
-
<div v-if="taskOrchestration.selectedRunError" class="task-issue-item">{{ taskOrchestration.selectedRunError }}</div>
|
|
385
|
-
<div v-if="!taskOrchestrationSelectedRun" class="task-empty-state">
|
|
386
|
-
<div class="task-empty-title">{{ t('orchestration.detail.empty.title') }}</div>
|
|
387
|
-
<div class="task-empty-copy">{{ t('orchestration.detail.empty.subtitle') }}</div>
|
|
388
|
-
</div>
|
|
389
|
-
<template v-else>
|
|
390
|
-
<div class="task-detail-summary-strip">
|
|
391
|
-
<div class="task-plan-summary-item">
|
|
392
|
-
<span class="task-plan-summary-label">{{ t('orchestration.detail.summary.status') }}</span>
|
|
393
|
-
<strong>{{ taskOrchestrationSelectedRun.run.status }}</strong>
|
|
394
|
-
</div>
|
|
395
|
-
<div class="task-plan-summary-item">
|
|
396
|
-
<span class="task-plan-summary-label">{{ t('orchestration.detail.summary.duration') }}</span>
|
|
397
|
-
<strong>{{ taskOrchestrationSelectedRun.run.durationMs || 0 }}ms</strong>
|
|
398
|
-
</div>
|
|
399
|
-
<div class="task-plan-summary-item">
|
|
400
|
-
<span class="task-plan-summary-label">{{ t('orchestration.detail.summary.nodes') }}</span>
|
|
401
|
-
<strong>{{ taskOrchestrationSelectedRunNodes.length }}</strong>
|
|
402
|
-
</div>
|
|
403
|
-
<div class="task-plan-summary-item">
|
|
404
|
-
<span class="task-plan-summary-label">{{ t('orchestration.detail.summary.summary') }}</span>
|
|
405
|
-
<strong>{{ taskOrchestrationSelectedRun.run.summary || t('common.none') }}</strong>
|
|
406
|
-
</div>
|
|
407
|
-
<div v-if="taskOrchestrationSelectedRun.threadId" class="task-plan-summary-item">
|
|
408
|
-
<span class="task-plan-summary-label">{{ t('orchestration.plan.summary.threadId') }}</span>
|
|
409
|
-
<strong>{{ taskOrchestrationSelectedRun.threadId }}</strong>
|
|
410
|
-
</div>
|
|
411
|
-
<div v-if="taskOrchestrationSelectedRun.cwd" class="task-plan-summary-item">
|
|
412
|
-
<span class="task-plan-summary-label">{{ t('orchestration.plan.summary.cwd') }}</span>
|
|
413
|
-
<strong>{{ taskOrchestrationSelectedRun.cwd }}</strong>
|
|
414
|
-
</div>
|
|
415
|
-
</div>
|
|
416
|
-
<div v-if="taskOrchestrationSelectedRun.run.error" class="task-issue-item">{{ taskOrchestrationSelectedRun.run.error }}</div>
|
|
417
|
-
<div class="task-node-list">
|
|
418
|
-
<div v-for="node in taskOrchestrationSelectedRunNodes" :key="node.id" class="task-node-card task-node-card-detail">
|
|
419
|
-
<div class="task-node-head">
|
|
420
|
-
<div>
|
|
421
|
-
<div class="task-node-title">{{ node.title || node.id }}</div>
|
|
422
|
-
<div class="task-node-meta">{{ t('orchestration.detail.node.meta', { id: node.id, attempts: (node.attemptCount || 0), autoFix: (node.autoFixRounds || 0) }) }}</div>
|
|
423
|
-
</div>
|
|
424
|
-
<span :class="['pill', taskRunStatusTone(node.status)]">{{ node.status }}</span>
|
|
425
|
-
</div>
|
|
426
|
-
<div v-if="node.summary" class="task-runtime-item-summary">{{ node.summary }}</div>
|
|
427
|
-
<div v-if="node.error && node.error !== node.summary" class="task-node-deps">{{ t('orchestration.labels.error') }}{{ node.error }}</div>
|
|
428
|
-
<div class="task-node-deps">{{ t('orchestration.labels.dependencies') }}{{ formatTaskNodeDependencies(node) }}</div>
|
|
429
|
-
<div v-if="node.output && typeof node.output === 'object'" class="task-node-output-card">
|
|
430
|
-
<div class="task-node-output-head">
|
|
431
|
-
<strong>{{ t('orchestration.detail.node.output') }}</strong>
|
|
432
|
-
<span v-if="node.output.provider || node.output.model" class="task-node-output-meta">{{ node.output.provider || '' }}<template v-if="node.output.provider && node.output.model"> · </template>{{ node.output.model || '' }}</span>
|
|
433
|
-
</div>
|
|
434
|
-
<div class="task-node-output-facts">
|
|
435
|
-
<span v-if="node.output.endpoint">{{ t('orchestration.detail.node.endpoint') }}{{ node.output.endpoint }}</span>
|
|
436
|
-
<span v-if="node.output.status">HTTP {{ node.output.status }}</span>
|
|
437
|
-
<span v-if="node.output.durationMs">{{ node.output.durationMs }}ms</span>
|
|
438
|
-
</div>
|
|
439
|
-
<pre class="task-log-block task-output-block">{{ formatTaskNodeOutputText(node) }}</pre>
|
|
440
|
-
<div v-if="node.output.materializedFiles && node.output.materializedFiles.length" class="task-materialized-files">
|
|
441
|
-
<div class="task-node-deps">{{ t('orchestration.detail.node.materializedFiles') }}</div>
|
|
442
|
-
<div v-for="file in node.output.materializedFiles" :key="file.path || file.relativePath" class="task-materialized-file">{{ file.relativePath || file.path }} · {{ file.bytes || 0 }} bytes</div>
|
|
443
|
-
</div>
|
|
444
|
-
<div v-if="node.output.workspaceFiles && node.output.workspaceFiles.length" class="task-materialized-files task-workspace-files">
|
|
445
|
-
<div class="task-node-deps">{{ t('orchestration.detail.node.workspaceFiles') }}</div>
|
|
446
|
-
<div v-for="file in node.output.workspaceFiles" :key="file.path || file.relativePath" class="task-materialized-file">{{ [String(file.operation || '').trim().toUpperCase(), String(file.relativePath || file.path || '').trim(), Number.isFinite(Number(file.bytes)) ? (Number(file.bytes) + ' bytes') : '', typeof file.existed === 'boolean' ? (file.existed ? 'existed' : 'new') : ''].filter(Boolean).join(' · ') }}</div>
|
|
447
|
-
</div>
|
|
448
|
-
</div>
|
|
449
|
-
<pre class="task-log-block">{{ formatTaskNodeLogs(node.logs) }}</pre>
|
|
450
|
-
</div>
|
|
451
|
-
</div>
|
|
452
|
-
</template>
|
|
453
|
-
</div>
|
|
454
|
-
</details>
|
|
455
|
-
</section>
|
|
456
|
-
<details class="selector-section task-side-settings-card task-advanced-panel task-quick-advanced" :open="taskOrchestration.settingsOpen" @toggle="taskOrchestration.settingsOpen = $event.target.open">
|
|
457
|
-
<summary class="task-advanced-summary">{{ t('orchestration.advanced.title') }}</summary>
|
|
458
|
-
<div class="task-action-row-right task-action-row-right-prominent task-codex-queue-action">
|
|
459
|
-
<button type="button" class="btn-tool" @click="queueTaskOrchestrationAndStart()" :disabled="taskOrchestration.queueAdding || taskOrchestration.queueStarting || taskOrchestration.planning || !taskOrchestration.target.trim()">
|
|
460
|
-
{{ (taskOrchestration.queueAdding || taskOrchestration.queueStarting) ? t('orchestration.actions.processing') : t('orchestration.actions.queueAndStart') }}
|
|
461
|
-
</button>
|
|
462
|
-
</div>
|
|
463
|
-
<div class="selector-grid task-composer-grid task-composer-grid-secondary">
|
|
464
|
-
<label class="selector-field task-field-wide">
|
|
465
|
-
<span class="selector-label">{{ t('orchestration.fields.title') }}</span>
|
|
466
|
-
<input v-model="taskOrchestration.title" class="model-input" type="text" :placeholder="t('orchestration.fields.title.placeholder')">
|
|
467
|
-
</label>
|
|
468
|
-
<label class="selector-field">
|
|
469
|
-
<span class="selector-label">{{ t('orchestration.fields.engine') }}</span>
|
|
470
|
-
<select v-model="taskOrchestration.selectedEngine" class="provider-fast-switch-select" @change="taskOrchestration.selectedEngine === 'workflow' ? null : taskOrchestration.workflowIdsText = ''">
|
|
471
|
-
<option value="openai-chat">{{ t('orchestration.engine.openaiChat') }}</option>
|
|
472
|
-
<option value="workflow">{{ t('orchestration.engine.workflow') }}</option>
|
|
473
|
-
</select>
|
|
474
|
-
</label>
|
|
475
|
-
<label class="selector-field">
|
|
476
|
-
<span class="selector-label">{{ t('orchestration.fields.runMode') }}</span>
|
|
477
|
-
<select v-model="taskOrchestration.runMode" class="provider-fast-switch-select">
|
|
478
|
-
<option value="write">{{ t('orchestration.runMode.write') }}</option>
|
|
479
|
-
<option value="read">{{ t('orchestration.runMode.readOnly') }}</option>
|
|
480
|
-
<option value="dry-run">{{ t('orchestration.runMode.dryRun') }}</option>
|
|
481
|
-
</select>
|
|
482
|
-
</label>
|
|
483
|
-
<label class="selector-field task-field-wide">
|
|
484
|
-
<span class="selector-label">{{ t('orchestration.fields.notes') }}</span>
|
|
485
|
-
<textarea v-model="taskOrchestration.notes" class="task-textarea" rows="3" :placeholder="t('orchestration.fields.notes.placeholder')"></textarea>
|
|
486
|
-
<span class="task-field-hint">{{ t('orchestration.fields.notes.hint') }}</span>
|
|
487
|
-
</label>
|
|
488
|
-
<label class="selector-field task-field-wide">
|
|
489
|
-
<span class="selector-label">{{ t('orchestration.fields.workspacePath') }}</span>
|
|
490
|
-
<input v-model="taskOrchestration.workspacePath" class="model-input" type="text" :placeholder="t('orchestration.fields.workspacePath.placeholder')">
|
|
491
|
-
<span class="task-field-hint">{{ t('orchestration.fields.workspacePath.hint') }}</span>
|
|
492
|
-
</label>
|
|
493
|
-
<label class="selector-field">
|
|
494
|
-
<span class="selector-label">{{ t('orchestration.fields.threadId') }}</span>
|
|
495
|
-
<input v-model="taskOrchestration.threadId" class="model-input" type="text" :placeholder="t('orchestration.fields.threadId.placeholder')">
|
|
496
|
-
<span class="task-field-hint">{{ t('orchestration.fields.threadId.hint') }}</span>
|
|
497
|
-
</label>
|
|
498
|
-
<label class="selector-field task-field-wide">
|
|
499
|
-
<span class="selector-label">{{ t('orchestration.fields.followUps') }}</span>
|
|
500
|
-
<textarea v-model="taskOrchestration.followUpsText" class="task-textarea" rows="3" :placeholder="t('orchestration.fields.followUps.placeholder')"></textarea>
|
|
501
|
-
</label>
|
|
502
|
-
<label class="selector-field">
|
|
503
|
-
<span class="selector-label">{{ t('orchestration.fields.concurrency') }}</span>
|
|
504
|
-
<input v-model="taskOrchestration.concurrency" class="model-input" type="number" min="1" max="8">
|
|
505
|
-
<span class="task-field-hint">{{ t('orchestration.fields.concurrency.hint') }}</span>
|
|
506
|
-
</label>
|
|
507
|
-
<label class="selector-field">
|
|
508
|
-
<span class="selector-label">{{ t('orchestration.fields.autoFixRounds') }}</span>
|
|
509
|
-
<input v-model="taskOrchestration.autoFixRounds" class="model-input" type="number" min="0" max="5">
|
|
510
|
-
<span class="task-field-hint">{{ t('orchestration.fields.autoFixRounds.hint') }}</span>
|
|
511
|
-
</label>
|
|
512
|
-
<label v-if="taskOrchestration.selectedEngine === 'workflow'" class="selector-field task-field-wide">
|
|
513
|
-
<span class="selector-label">{{ t('orchestration.fields.workflowIds') }}</span>
|
|
514
|
-
<textarea v-model="taskOrchestration.workflowIdsText" class="task-textarea" rows="3" :placeholder="t('orchestration.fields.workflowIds.placeholder')"></textarea>
|
|
515
|
-
<span class="task-field-hint">{{ t('orchestration.fields.workflowIds.hint', { count: taskOrchestration.workflows.length }) }}</span>
|
|
516
|
-
<div v-if="taskOrchestration.workflows.length" class="task-workflow-suggestions">
|
|
517
|
-
<button
|
|
518
|
-
v-for="workflow in taskOrchestration.workflows"
|
|
519
|
-
:key="workflow.id || workflow.name"
|
|
520
|
-
type="button"
|
|
521
|
-
class="task-workflow-chip"
|
|
522
|
-
@click="appendTaskWorkflowId(workflow.id || workflow.name)">
|
|
523
|
-
<span>{{ workflow.name || workflow.id }}</span>
|
|
524
|
-
<small v-if="workflow.stepCount">{{ t('orchestration.workflow.stepCount', { count: workflow.stepCount }) }}</small>
|
|
525
|
-
</button>
|
|
526
|
-
</div>
|
|
527
|
-
</label>
|
|
528
|
-
</div>
|
|
529
|
-
</details>
|
|
530
|
-
<div class="task-provider-status-card">
|
|
531
|
-
<div class="task-readiness-title">{{ t('orchestration.openai.status.title') }}</div>
|
|
532
|
-
<div class="task-readiness-copy">{{ t('orchestration.openai.status.subtitle') }}</div>
|
|
533
|
-
<div v-if="taskOrchestration.openAiChatStatus" class="task-provider-status-grid">
|
|
534
|
-
<div class="task-provider-status-row">
|
|
535
|
-
<span>{{ t('orchestration.openai.status.provider') }}</span>
|
|
536
|
-
<strong>{{ taskOrchestration.openAiChatStatus.providerName ? t('orchestration.openai.status.configured') : t('orchestration.openai.status.notSet') }}</strong>
|
|
537
|
-
</div>
|
|
538
|
-
<div class="task-provider-status-row">
|
|
539
|
-
<span>{{ t('orchestration.openai.status.model') }}</span>
|
|
540
|
-
<strong>{{ taskOrchestration.openAiChatStatus.model ? t('orchestration.openai.status.configured') : t('orchestration.openai.status.notSet') }}</strong>
|
|
541
|
-
</div>
|
|
542
|
-
<div class="task-provider-status-row task-provider-status-row-wide">
|
|
543
|
-
<span>{{ t('orchestration.openai.status.endpoint') }}</span>
|
|
544
|
-
<strong>{{ taskOrchestration.openAiChatStatus.endpoint ? t('orchestration.openai.status.configured') : t('orchestration.openai.status.notSet') }}</strong>
|
|
545
|
-
</div>
|
|
546
|
-
<div class="task-provider-status-row">
|
|
547
|
-
<span>{{ t('orchestration.openai.status.apiKey') }}</span>
|
|
548
|
-
<strong>{{ taskOrchestration.openAiChatStatus.hasApiKey ? t('orchestration.openai.status.configured') : t('orchestration.openai.status.missing') }}</strong>
|
|
549
|
-
</div>
|
|
550
|
-
<div class="task-provider-status-row">
|
|
551
|
-
<span>{{ t('orchestration.openai.status.headers') }}</span>
|
|
552
|
-
<strong>{{ taskOrchestration.openAiChatStatus.hasExtraHeaders ? t('orchestration.openai.status.configured') : t('orchestration.openai.status.notSet') }}</strong>
|
|
553
|
-
</div>
|
|
554
|
-
</div>
|
|
555
|
-
<div v-else class="task-readiness-copy">{{ t('orchestration.openai.status.notLoaded') }}</div>
|
|
556
|
-
<div v-if="taskOrchestration.openAiChatStatus && taskOrchestration.openAiChatStatus.error" class="task-issue-item task-provider-status-error">{{ taskOrchestration.openAiChatStatus.error }}</div>
|
|
557
|
-
<button type="button" class="btn-tool btn-tool-compact task-provider-config-button" @click="openTaskOpenAiChatConfig()">
|
|
558
|
-
{{ t('orchestration.openai.status.configure') }}
|
|
559
|
-
</button>
|
|
560
|
-
</div>
|
|
561
|
-
<div class="task-readiness-head">
|
|
562
|
-
<div>
|
|
563
|
-
<div class="task-readiness-title">{{ t('orchestration.quick.checklist.title') }}</div>
|
|
564
|
-
<div class="task-readiness-copy">{{ t('orchestration.quick.checklist.subtitle') }}</div>
|
|
565
|
-
</div>
|
|
566
|
-
</div>
|
|
567
|
-
<div class="task-readiness-grid task-quick-checklist">
|
|
568
|
-
<div v-for="item in taskOrchestrationDraftChecklist" :key="item.key" :class="['task-readiness-item', { done: item.done }]">
|
|
569
|
-
<strong>{{ item.label }}</strong>
|
|
570
|
-
<span>{{ item.detail }}</span>
|
|
571
|
-
</div>
|
|
572
|
-
</div>
|
|
573
|
-
<div class="task-quick-status-card">
|
|
574
|
-
<div class="task-plan-summary-label">{{ t('orchestration.quick.status.title') }}</div>
|
|
575
|
-
<strong>{{ taskOrchestrationDraftReadiness.title }}</strong>
|
|
576
|
-
<span>{{ taskOrchestrationDraftReadiness.summary }}</span>
|
|
577
|
-
</div>
|
|
578
|
-
</aside>
|
|
579
|
-
</section>
|
|
580
|
-
</div>
|
|
581
|
-
|
|
582
|
-
<section
|
|
583
|
-
v-if="!(taskOrchestration.plan || taskOrchestration.planIssues.length || taskOrchestration.planWarnings.length || taskOrchestration.lastError || taskOrchestrationWorkspaceQueue.length || taskOrchestrationWorkspaceRuns.length || taskOrchestration.selectedRunId || taskOrchestration.selectedRunError)"
|
|
584
|
-
class="selector-section task-stage-card">
|
|
585
|
-
<div class="task-stage-empty">
|
|
586
|
-
<div>
|
|
587
|
-
<div class="selector-title">{{ t('orchestration.stage.title') }}</div>
|
|
588
|
-
<div class="skills-panel-note">{{ t('orchestration.stage.subtitle') }}</div>
|
|
589
|
-
</div>
|
|
590
|
-
<div class="task-stage-strip">
|
|
591
|
-
<div class="task-stage-pill">{{ t('orchestration.stage.pill.target') }}</div>
|
|
592
|
-
<div class="task-stage-pill">{{ t('orchestration.stage.pill.preview') }}</div>
|
|
593
|
-
<div class="task-stage-pill">{{ t('orchestration.stage.pill.run') }}</div>
|
|
594
|
-
</div>
|
|
595
|
-
</div>
|
|
596
|
-
</section>
|
|
597
|
-
|
|
598
|
-
</div>
|