@design.estate/dees-catalog 6.10.0 → 6.10.2
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/dist_bundle/bundle.js +113 -76
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.d.ts +6 -3
- package/dist_ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.js +27 -8
- package/dist_ts_web/elements/00group-harness/dees-harness-composer/dees-harness-composer.d.ts +2 -0
- package/dist_ts_web/elements/00group-harness/dees-harness-composer/dees-harness-composer.js +22 -3
- package/dist_ts_web/elements/00group-harness/dees-harness-session-sidebar/dees-harness-session-sidebar.d.ts +2 -0
- package/dist_ts_web/elements/00group-harness/dees-harness-session-sidebar/dees-harness-session-sidebar.js +13 -2
- package/dist_ts_web/elements/00group-harness/dees-harness-todos/dees-harness-todos.js +13 -4
- package/dist_ts_web/elements/00group-harness/dees-harness-tool-card/renderers.js +5 -2
- package/dist_ts_web/elements/00group-harness/harness.helpers.js +6 -2
- package/dist_ts_web/elements/00group-harness/interfaces.d.ts +1 -1
- package/dist_ts_web/elements/00group-harness/toolregistry.js +11 -2
- package/package.json +1 -1
- package/readme.md +7 -5
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.ts +14 -5
- package/ts_web/elements/00group-harness/dees-harness-composer/dees-harness-composer.ts +15 -1
- package/ts_web/elements/00group-harness/dees-harness-session-sidebar/dees-harness-session-sidebar.ts +5 -0
- package/ts_web/elements/00group-harness/dees-harness-todos/dees-harness-todos.ts +12 -3
- package/ts_web/elements/00group-harness/dees-harness-tool-card/renderers.ts +4 -1
- package/ts_web/elements/00group-harness/harness.helpers.ts +5 -1
- package/ts_web/elements/00group-harness/interfaces.ts +1 -1
- package/ts_web/elements/00group-harness/toolregistry.ts +10 -1
|
@@ -345,7 +345,10 @@ const projectTaskOutputItems = (output: unknown): unknown[] | undefined => {
|
|
|
345
345
|
|
|
346
346
|
const hasUnsupportedTodoStatus = (items: unknown[]): boolean => items.some((item) => {
|
|
347
347
|
if (!harnessIsRecord(item) || typeof item.status !== 'string') return false;
|
|
348
|
-
return item.status !== 'pending'
|
|
348
|
+
return item.status !== 'pending'
|
|
349
|
+
&& item.status !== 'in_progress'
|
|
350
|
+
&& item.status !== 'completed'
|
|
351
|
+
&& item.status !== 'cancelled';
|
|
349
352
|
});
|
|
350
353
|
|
|
351
354
|
const renderProjectTask = (call: IHarnessToolCall, helpers: IHarnessToolRenderHelpers): TemplateResult => {
|
|
@@ -274,7 +274,11 @@ export const harnessParseTodos = (value: unknown): IHarnessTodoItem[] => {
|
|
|
274
274
|
if (!harnessIsRecord(entry)) continue;
|
|
275
275
|
const content = String(entry.content ?? entry.subject ?? entry.title ?? '').trim();
|
|
276
276
|
if (!content) continue;
|
|
277
|
-
const status = entry.status === 'completed'
|
|
277
|
+
const status = entry.status === 'completed'
|
|
278
|
+
|| entry.status === 'in_progress'
|
|
279
|
+
|| entry.status === 'cancelled'
|
|
280
|
+
? entry.status
|
|
281
|
+
: 'pending';
|
|
278
282
|
result.push({
|
|
279
283
|
id: entry.id !== undefined ? String(entry.id) : undefined,
|
|
280
284
|
content,
|
|
@@ -444,7 +444,7 @@ export interface IHarnessGroupContextDetail {
|
|
|
444
444
|
originalEvent: MouseEvent;
|
|
445
445
|
}
|
|
446
446
|
|
|
447
|
-
export type THarnessTodoStatus = 'pending' | 'in_progress' | 'completed';
|
|
447
|
+
export type THarnessTodoStatus = 'pending' | 'in_progress' | 'completed' | 'cancelled';
|
|
448
448
|
|
|
449
449
|
export interface IHarnessTodoItem {
|
|
450
450
|
id?: string;
|
|
@@ -79,6 +79,14 @@ const inputAny = (call: IHarnessToolCall, key: string): unknown => {
|
|
|
79
79
|
const filePathOf = (call: IHarnessToolCall): string =>
|
|
80
80
|
inputField(call, 'path') || inputField(call, 'filePath') || inputField(call, 'file');
|
|
81
81
|
|
|
82
|
+
const projectTaskActions = new Set(['list', 'create', 'update', 'delete', 'clear']);
|
|
83
|
+
|
|
84
|
+
const taskCallKind = (call: IHarnessToolCall): 'subtask' | 'project-task' | undefined => {
|
|
85
|
+
if (String(call.name || '').toLowerCase() !== 'task') return undefined;
|
|
86
|
+
if (call.childSessionId || call.subtask) return 'subtask';
|
|
87
|
+
return projectTaskActions.has(inputField(call, 'action')) ? 'project-task' : 'subtask';
|
|
88
|
+
};
|
|
89
|
+
|
|
82
90
|
const defaultDescriptors: IHarnessToolDescriptor[] = [
|
|
83
91
|
{
|
|
84
92
|
kind: 'terminal',
|
|
@@ -181,6 +189,7 @@ const defaultDescriptors: IHarnessToolDescriptor[] = [
|
|
|
181
189
|
{
|
|
182
190
|
kind: 'subtask',
|
|
183
191
|
names: ['delegate', 'subagent'],
|
|
192
|
+
match: (call) => taskCallKind(call) === 'subtask',
|
|
184
193
|
label: 'Subagent',
|
|
185
194
|
icon: 'lucide:Bot',
|
|
186
195
|
// The child's model belongs in the collapsed header: a subagent often
|
|
@@ -204,7 +213,7 @@ const defaultDescriptors: IHarnessToolDescriptor[] = [
|
|
|
204
213
|
},
|
|
205
214
|
{
|
|
206
215
|
kind: 'project-task',
|
|
207
|
-
|
|
216
|
+
match: (call) => taskCallKind(call) === 'project-task',
|
|
208
217
|
label: 'Project task',
|
|
209
218
|
icon: 'lucide:ListChecks',
|
|
210
219
|
subtitle: (call) => {
|