@agimon-ai/doompi-task 0.0.1-alpha.4 → 0.0.1-alpha.40
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 +110 -15
- package/dist/adapters/node/delegationPlatform.cjs +2 -0
- package/dist/adapters/node/delegationPlatform.cjs.map +1 -0
- package/dist/adapters/node/delegationPlatform.mjs +2 -0
- package/dist/adapters/node/delegationPlatform.mjs.map +1 -0
- package/dist/adapters/pi/extension.cjs +3 -0
- package/dist/adapters/pi/extension.cjs.map +1 -0
- package/dist/adapters/pi/extension.d.cts +10 -0
- package/dist/adapters/pi/extension.d.cts.map +1 -0
- package/dist/adapters/pi/extension.d.mts +10 -0
- package/dist/adapters/pi/extension.d.mts.map +1 -0
- package/dist/adapters/pi/extension.mjs +3 -0
- package/dist/adapters/pi/extension.mjs.map +1 -0
- package/dist/adapters/store/paths.cjs +2 -0
- package/dist/adapters/store/paths.cjs.map +1 -0
- package/dist/adapters/store/paths.d.cts +26 -0
- package/dist/adapters/store/paths.d.cts.map +1 -0
- package/dist/adapters/store/paths.d.mts +26 -0
- package/dist/adapters/store/paths.d.mts.map +1 -0
- package/dist/adapters/store/paths.mjs +2 -0
- package/dist/adapters/store/paths.mjs.map +1 -0
- package/dist/adapters/store/taskStore.cjs +2 -0
- package/dist/adapters/store/taskStore.cjs.map +1 -0
- package/dist/adapters/store/taskStore.d.cts +87 -0
- package/dist/adapters/store/taskStore.d.cts.map +1 -0
- package/dist/adapters/store/taskStore.d.mts +87 -0
- package/dist/adapters/store/taskStore.d.mts.map +1 -0
- package/dist/adapters/store/taskStore.mjs +2 -0
- package/dist/adapters/store/taskStore.mjs.map +1 -0
- package/dist/adapters/telemetry/logSinkTelemetry.cjs +2 -0
- package/dist/adapters/telemetry/logSinkTelemetry.cjs.map +1 -0
- package/dist/adapters/telemetry/logSinkTelemetry.d.cts +23 -0
- package/dist/adapters/telemetry/logSinkTelemetry.d.cts.map +1 -0
- package/dist/adapters/telemetry/logSinkTelemetry.d.mts +23 -0
- package/dist/adapters/telemetry/logSinkTelemetry.d.mts.map +1 -0
- package/dist/adapters/telemetry/logSinkTelemetry.mjs +2 -0
- package/dist/adapters/telemetry/logSinkTelemetry.mjs.map +1 -0
- package/dist/adapters/webTasksChannel.cjs +2 -0
- package/dist/adapters/webTasksChannel.cjs.map +1 -0
- package/dist/adapters/webTasksChannel.d.cts +20 -0
- package/dist/adapters/webTasksChannel.d.cts.map +1 -0
- package/dist/adapters/webTasksChannel.d.mts +20 -0
- package/dist/adapters/webTasksChannel.d.mts.map +1 -0
- package/dist/adapters/webTasksChannel.mjs +2 -0
- package/dist/adapters/webTasksChannel.mjs.map +1 -0
- package/dist/commands/index.cjs +2 -0
- package/dist/commands/index.cjs.map +1 -0
- package/dist/commands/index.d.cts +14 -0
- package/dist/commands/index.d.cts.map +1 -0
- package/dist/commands/index.d.mts +14 -0
- package/dist/commands/index.d.mts.map +1 -0
- package/dist/commands/index.mjs +2 -0
- package/dist/commands/index.mjs.map +1 -0
- package/dist/commands/task/promptGuidelines.cjs +2 -0
- package/dist/commands/task/promptGuidelines.cjs.map +1 -0
- package/dist/commands/task/promptGuidelines.d.cts +5 -0
- package/dist/commands/task/promptGuidelines.d.cts.map +1 -0
- package/dist/commands/task/promptGuidelines.d.mts +5 -0
- package/dist/commands/task/promptGuidelines.d.mts.map +1 -0
- package/dist/commands/task/promptGuidelines.mjs +2 -0
- package/dist/commands/task/promptGuidelines.mjs.map +1 -0
- package/dist/commands/task/responseEnvelope.cjs +7 -0
- package/dist/commands/task/responseEnvelope.cjs.map +1 -0
- package/dist/commands/task/responseEnvelope.d.cts +51 -0
- package/dist/commands/task/responseEnvelope.d.cts.map +1 -0
- package/dist/commands/task/responseEnvelope.d.mts +51 -0
- package/dist/commands/task/responseEnvelope.d.mts.map +1 -0
- package/dist/commands/task/responseEnvelope.mjs +7 -0
- package/dist/commands/task/responseEnvelope.mjs.map +1 -0
- package/dist/commands/task/taskTool.cjs +3 -0
- package/dist/commands/task/taskTool.cjs.map +1 -0
- package/dist/commands/task/taskTool.d.cts +20 -0
- package/dist/commands/task/taskTool.d.cts.map +1 -0
- package/dist/commands/task/taskTool.d.mts +20 -0
- package/dist/commands/task/taskTool.d.mts.map +1 -0
- package/dist/commands/task/taskTool.mjs +3 -0
- package/dist/commands/task/taskTool.mjs.map +1 -0
- package/dist/commands.cjs +1 -2
- package/dist/commands.d.cts +2 -14
- package/dist/commands.d.mts +2 -14
- package/dist/commands.mjs +1 -2
- package/dist/config.cjs +1 -2
- package/dist/config.d.cts +2 -38
- package/dist/config.d.mts +2 -38
- package/dist/config.mjs +1 -2
- package/dist/delegation/manager.cjs +1 -6
- package/dist/delegation/manager.d.cts +3 -189
- package/dist/delegation/manager.d.mts +3 -189
- package/dist/delegation/manager.mjs +1 -6
- package/dist/extension.cjs +1 -3
- package/dist/extension.d.cts +2 -12
- package/dist/extension.d.mts +2 -12
- package/dist/extension.mjs +1 -3
- package/dist/extensions/pi.cjs +1 -2
- package/dist/extensions/pi.d.cts +1 -1
- package/dist/extensions/pi.d.mts +1 -1
- package/dist/extensions/pi.mjs +1 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +15 -14
- package/dist/index.d.mts +15 -14
- package/dist/index.mjs +1 -1
- package/dist/logSinkTelemetry.cjs +1 -2
- package/dist/logSinkTelemetry.d.cts +3 -51
- package/dist/logSinkTelemetry.d.mts +3 -51
- package/dist/logSinkTelemetry.mjs +1 -2
- package/dist/schemas/task.cjs +2 -0
- package/dist/schemas/task.cjs.map +1 -0
- package/dist/schemas/task.d.cts +103 -0
- package/dist/schemas/task.d.cts.map +1 -0
- package/dist/schemas/task.d.mts +103 -0
- package/dist/schemas/task.d.mts.map +1 -0
- package/dist/schemas/task.mjs +2 -0
- package/dist/schemas/task.mjs.map +1 -0
- package/dist/services/contextContribution.cjs +3 -0
- package/dist/services/contextContribution.cjs.map +1 -0
- package/dist/services/contextContribution.mjs +3 -0
- package/dist/services/contextContribution.mjs.map +1 -0
- package/dist/services/delegation/manager.cjs +6 -0
- package/dist/services/delegation/manager.cjs.map +1 -0
- package/dist/services/delegation/manager.d.cts +192 -0
- package/dist/services/delegation/manager.d.cts.map +1 -0
- package/dist/services/delegation/manager.d.mts +192 -0
- package/dist/services/delegation/manager.d.mts.map +1 -0
- package/dist/services/delegation/manager.mjs +6 -0
- package/dist/services/delegation/manager.mjs.map +1 -0
- package/dist/services/narration/taskNarration.cjs +2 -0
- package/dist/services/narration/taskNarration.cjs.map +1 -0
- package/dist/services/narration/taskNarration.mjs +2 -0
- package/dist/services/narration/taskNarration.mjs.map +1 -0
- package/dist/services/store/invariants.cjs +2 -0
- package/dist/services/store/invariants.cjs.map +1 -0
- package/dist/services/store/invariants.d.cts +24 -0
- package/dist/services/store/invariants.d.cts.map +1 -0
- package/dist/services/store/invariants.d.mts +24 -0
- package/dist/services/store/invariants.d.mts.map +1 -0
- package/dist/services/store/invariants.mjs +2 -0
- package/dist/services/store/invariants.mjs.map +1 -0
- package/dist/services/store/processLiveness.cjs +2 -0
- package/dist/services/store/processLiveness.cjs.map +1 -0
- package/dist/services/store/processLiveness.d.cts +12 -0
- package/dist/services/store/processLiveness.d.cts.map +1 -0
- package/dist/services/store/processLiveness.d.mts +12 -0
- package/dist/services/store/processLiveness.d.mts.map +1 -0
- package/dist/services/store/processLiveness.mjs +2 -0
- package/dist/services/store/processLiveness.mjs.map +1 -0
- package/dist/services/store/reconcile.cjs +2 -0
- package/dist/services/store/reconcile.cjs.map +1 -0
- package/dist/services/store/reconcile.d.cts +34 -0
- package/dist/services/store/reconcile.d.cts.map +1 -0
- package/dist/services/store/reconcile.d.mts +34 -0
- package/dist/services/store/reconcile.d.mts.map +1 -0
- package/dist/services/store/reconcile.mjs +2 -0
- package/dist/services/store/reconcile.mjs.map +1 -0
- package/dist/services/store/reducer.cjs +3 -0
- package/dist/services/store/reducer.cjs.map +1 -0
- package/dist/services/store/reducer.d.cts +72 -0
- package/dist/services/store/reducer.d.cts.map +1 -0
- package/dist/services/store/reducer.d.mts +72 -0
- package/dist/services/store/reducer.d.mts.map +1 -0
- package/dist/services/store/reducer.mjs +3 -0
- package/dist/services/store/reducer.mjs.map +1 -0
- package/dist/services/store/taskGraph.cjs +2 -0
- package/dist/services/store/taskGraph.cjs.map +1 -0
- package/dist/services/store/taskGraph.d.cts +25 -0
- package/dist/services/store/taskGraph.d.cts.map +1 -0
- package/dist/services/store/taskGraph.d.mts +25 -0
- package/dist/services/store/taskGraph.d.mts.map +1 -0
- package/dist/services/store/taskGraph.mjs +2 -0
- package/dist/services/store/taskGraph.mjs.map +1 -0
- package/dist/services/store/types.cjs +2 -0
- package/dist/services/store/types.cjs.map +1 -0
- package/dist/services/store/types.d.cts +177 -0
- package/dist/services/store/types.d.cts.map +1 -0
- package/dist/services/store/types.d.mts +177 -0
- package/dist/services/store/types.d.mts.map +1 -0
- package/dist/services/store/types.mjs +2 -0
- package/dist/services/store/types.mjs.map +1 -0
- package/dist/store/invariants.cjs +1 -2
- package/dist/store/invariants.d.cts +2 -14
- package/dist/store/invariants.d.mts +2 -14
- package/dist/store/invariants.mjs +1 -2
- package/dist/store/paths.cjs +1 -2
- package/dist/store/paths.d.cts +2 -23
- package/dist/store/paths.d.mts +2 -23
- package/dist/store/paths.mjs +1 -2
- package/dist/store/processLiveness.cjs +1 -2
- package/dist/store/processLiveness.d.cts +2 -12
- package/dist/store/processLiveness.d.mts +2 -12
- package/dist/store/processLiveness.mjs +1 -2
- package/dist/store/reconcile.cjs +1 -2
- package/dist/store/reconcile.d.cts +2 -34
- package/dist/store/reconcile.d.mts +2 -34
- package/dist/store/reconcile.mjs +1 -2
- package/dist/store/reducer.cjs +1 -3
- package/dist/store/reducer.d.cts +2 -72
- package/dist/store/reducer.d.mts +2 -72
- package/dist/store/reducer.mjs +1 -3
- package/dist/store/taskGraph.cjs +1 -2
- package/dist/store/taskGraph.d.cts +2 -25
- package/dist/store/taskGraph.d.mts +2 -25
- package/dist/store/taskGraph.mjs +1 -2
- package/dist/store/taskStore.cjs +1 -2
- package/dist/store/taskStore.d.cts +2 -77
- package/dist/store/taskStore.d.mts +2 -77
- package/dist/store/taskStore.mjs +1 -2
- package/dist/store/types.cjs +1 -2
- package/dist/store/types.d.cts +2 -165
- package/dist/store/types.d.mts +2 -165
- package/dist/store/types.mjs +1 -2
- package/dist/tool/promptGuidelines.cjs +1 -2
- package/dist/tool/promptGuidelines.d.cts +2 -5
- package/dist/tool/promptGuidelines.d.mts +2 -5
- package/dist/tool/promptGuidelines.mjs +1 -2
- package/dist/tool/responseEnvelope.cjs +1 -6
- package/dist/tool/responseEnvelope.d.cts +2 -39
- package/dist/tool/responseEnvelope.d.mts +2 -39
- package/dist/tool/responseEnvelope.mjs +1 -6
- package/dist/tool/schema.cjs +1 -2
- package/dist/tool/schema.d.cts +2 -86
- package/dist/tool/schema.d.mts +2 -86
- package/dist/tool/schema.mjs +1 -2
- package/dist/tool/taskTool.cjs +1 -3
- package/dist/tool/taskTool.d.cts +3 -17
- package/dist/tool/taskTool.d.mts +3 -17
- package/dist/tool/taskTool.mjs +1 -3
- package/dist/tui/format.cjs +1 -4
- package/dist/tui/format.d.cts +5 -5
- package/dist/tui/format.d.cts.map +1 -1
- package/dist/tui/format.d.mts +5 -5
- package/dist/tui/format.d.mts.map +1 -1
- package/dist/tui/format.mjs +1 -4
- package/dist/tui/format2.cjs +4 -0
- package/dist/tui/format2.cjs.map +1 -0
- package/dist/tui/format2.d.cts +2 -0
- package/dist/tui/format2.d.mts +2 -0
- package/dist/tui/format2.mjs +4 -0
- package/dist/tui/format2.mjs.map +1 -0
- package/dist/tui/selectors.cjs +1 -2
- package/dist/tui/selectors.d.cts +8 -1
- package/dist/tui/selectors.d.cts.map +1 -1
- package/dist/tui/selectors.d.mts +8 -1
- package/dist/tui/selectors.d.mts.map +1 -1
- package/dist/tui/selectors.mjs +1 -2
- package/dist/tui/selectors2.cjs +2 -0
- package/dist/tui/selectors2.cjs.map +1 -0
- package/dist/tui/selectors2.d.cts +2 -0
- package/dist/tui/selectors2.d.mts +2 -0
- package/dist/tui/selectors2.mjs +2 -0
- package/dist/tui/selectors2.mjs.map +1 -0
- package/dist/tui/taskOverlay.cjs +1 -2
- package/dist/tui/taskOverlay.d.cts +2 -2
- package/dist/tui/taskOverlay.d.cts.map +1 -1
- package/dist/tui/taskOverlay.d.mts +2 -2
- package/dist/tui/taskOverlay.d.mts.map +1 -1
- package/dist/tui/taskOverlay.mjs +1 -2
- package/dist/tui/taskOverlay2.cjs +2 -0
- package/dist/tui/taskOverlay2.cjs.map +1 -0
- package/dist/tui/taskOverlay2.d.cts +2 -0
- package/dist/tui/taskOverlay2.d.mts +2 -0
- package/dist/tui/taskOverlay2.mjs +2 -0
- package/dist/tui/taskOverlay2.mjs.map +1 -0
- package/dist/tui/taskSpace.cjs +1 -5
- package/dist/tui/taskSpace.d.cts +4 -4
- package/dist/tui/taskSpace.d.cts.map +1 -1
- package/dist/tui/taskSpace.d.mts +4 -4
- package/dist/tui/taskSpace.d.mts.map +1 -1
- package/dist/tui/taskSpace.mjs +1 -5
- package/dist/tui/taskSpace2.cjs +5 -0
- package/dist/tui/taskSpace2.cjs.map +1 -0
- package/dist/tui/taskSpace2.d.cts +2 -0
- package/dist/tui/taskSpace2.d.mts +2 -0
- package/dist/tui/taskSpace2.mjs +5 -0
- package/dist/tui/taskSpace2.mjs.map +1 -0
- package/dist/types/config.cjs +2 -0
- package/dist/types/config.cjs.map +1 -0
- package/dist/types/config.d.cts +43 -0
- package/dist/types/config.d.cts.map +1 -0
- package/dist/types/config.d.mts +43 -0
- package/dist/types/config.d.mts.map +1 -0
- package/dist/types/config.mjs +2 -0
- package/dist/types/config.mjs.map +1 -0
- package/dist/types/delegation.cjs +2 -0
- package/dist/types/delegation.cjs.map +1 -0
- package/dist/types/delegation.d.cts +6 -0
- package/dist/types/delegation.d.cts.map +1 -0
- package/dist/types/delegation.d.mts +6 -0
- package/dist/types/delegation.d.mts.map +1 -0
- package/dist/types/delegation.mjs +2 -0
- package/dist/types/delegation.mjs.map +1 -0
- package/dist/types/telemetry.cjs +2 -0
- package/dist/types/telemetry.cjs.map +1 -0
- package/dist/types/telemetry.d.cts +35 -0
- package/dist/types/telemetry.d.cts.map +1 -0
- package/dist/types/telemetry.d.mts +35 -0
- package/dist/types/telemetry.d.mts.map +1 -0
- package/dist/types/telemetry.mjs +2 -0
- package/dist/types/telemetry.mjs.map +1 -0
- package/dist/types/webTasks.cjs +2 -0
- package/dist/types/webTasks.cjs.map +1 -0
- package/dist/types/webTasks.mjs +2 -0
- package/dist/types/webTasks.mjs.map +1 -0
- package/dist/webHub.cjs +1 -0
- package/dist/webHub.d.cts +2 -0
- package/dist/webHub.d.mts +2 -0
- package/dist/webHub.mjs +1 -0
- package/package.json +60 -20
- package/src/types/webTasks.ts +24 -0
- package/web/TaskToolMessage.tsx +119 -0
- package/web/TasksActivitySection.tsx +207 -0
- package/web/index.ts +15 -0
- package/web/taskToolFormat.ts +330 -0
- package/web/tasksStore.ts +72 -0
- package/web/tsconfig.json +23 -0
- package/dist/commands.cjs.map +0 -1
- package/dist/commands.d.cts.map +0 -1
- package/dist/commands.d.mts.map +0 -1
- package/dist/commands.mjs.map +0 -1
- package/dist/config.cjs.map +0 -1
- package/dist/config.d.cts.map +0 -1
- package/dist/config.d.mts.map +0 -1
- package/dist/config.mjs.map +0 -1
- package/dist/delegation/manager.cjs.map +0 -1
- package/dist/delegation/manager.d.cts.map +0 -1
- package/dist/delegation/manager.d.mts.map +0 -1
- package/dist/delegation/manager.mjs.map +0 -1
- package/dist/extension.cjs.map +0 -1
- package/dist/extension.d.cts.map +0 -1
- package/dist/extension.d.mts.map +0 -1
- package/dist/extension.mjs.map +0 -1
- package/dist/extensions/doom.cjs +0 -2
- package/dist/extensions/doom.cjs.map +0 -1
- package/dist/extensions/doom.d.cts +0 -6
- package/dist/extensions/doom.d.cts.map +0 -1
- package/dist/extensions/doom.d.mts +0 -7
- package/dist/extensions/doom.d.mts.map +0 -1
- package/dist/extensions/doom.mjs +0 -2
- package/dist/extensions/doom.mjs.map +0 -1
- package/dist/extensions/pi.cjs.map +0 -1
- package/dist/extensions/pi.mjs.map +0 -1
- package/dist/logSinkTelemetry.cjs.map +0 -1
- package/dist/logSinkTelemetry.d.cts.map +0 -1
- package/dist/logSinkTelemetry.d.mts.map +0 -1
- package/dist/logSinkTelemetry.mjs.map +0 -1
- package/dist/store/invariants.cjs.map +0 -1
- package/dist/store/invariants.d.cts.map +0 -1
- package/dist/store/invariants.d.mts.map +0 -1
- package/dist/store/invariants.mjs.map +0 -1
- package/dist/store/paths.cjs.map +0 -1
- package/dist/store/paths.d.cts.map +0 -1
- package/dist/store/paths.d.mts.map +0 -1
- package/dist/store/paths.mjs.map +0 -1
- package/dist/store/processLiveness.cjs.map +0 -1
- package/dist/store/processLiveness.d.cts.map +0 -1
- package/dist/store/processLiveness.d.mts.map +0 -1
- package/dist/store/processLiveness.mjs.map +0 -1
- package/dist/store/reconcile.cjs.map +0 -1
- package/dist/store/reconcile.d.cts.map +0 -1
- package/dist/store/reconcile.d.mts.map +0 -1
- package/dist/store/reconcile.mjs.map +0 -1
- package/dist/store/reducer.cjs.map +0 -1
- package/dist/store/reducer.d.cts.map +0 -1
- package/dist/store/reducer.d.mts.map +0 -1
- package/dist/store/reducer.mjs.map +0 -1
- package/dist/store/taskGraph.cjs.map +0 -1
- package/dist/store/taskGraph.d.cts.map +0 -1
- package/dist/store/taskGraph.d.mts.map +0 -1
- package/dist/store/taskGraph.mjs.map +0 -1
- package/dist/store/taskStore.cjs.map +0 -1
- package/dist/store/taskStore.d.cts.map +0 -1
- package/dist/store/taskStore.d.mts.map +0 -1
- package/dist/store/taskStore.mjs.map +0 -1
- package/dist/store/types.cjs.map +0 -1
- package/dist/store/types.d.cts.map +0 -1
- package/dist/store/types.d.mts.map +0 -1
- package/dist/store/types.mjs.map +0 -1
- package/dist/tool/promptGuidelines.cjs.map +0 -1
- package/dist/tool/promptGuidelines.d.cts.map +0 -1
- package/dist/tool/promptGuidelines.d.mts.map +0 -1
- package/dist/tool/promptGuidelines.mjs.map +0 -1
- package/dist/tool/responseEnvelope.cjs.map +0 -1
- package/dist/tool/responseEnvelope.d.cts.map +0 -1
- package/dist/tool/responseEnvelope.d.mts.map +0 -1
- package/dist/tool/responseEnvelope.mjs.map +0 -1
- package/dist/tool/schema.cjs.map +0 -1
- package/dist/tool/schema.d.cts.map +0 -1
- package/dist/tool/schema.d.mts.map +0 -1
- package/dist/tool/schema.mjs.map +0 -1
- package/dist/tool/taskTool.cjs.map +0 -1
- package/dist/tool/taskTool.d.cts.map +0 -1
- package/dist/tool/taskTool.d.mts.map +0 -1
- package/dist/tool/taskTool.mjs.map +0 -1
- package/dist/tui/format.cjs.map +0 -1
- package/dist/tui/format.mjs.map +0 -1
- package/dist/tui/selectors.cjs.map +0 -1
- package/dist/tui/selectors.mjs.map +0 -1
- package/dist/tui/taskOverlay.cjs.map +0 -1
- package/dist/tui/taskOverlay.mjs.map +0 -1
- package/dist/tui/taskSpace.cjs.map +0 -1
- package/dist/tui/taskSpace.mjs.map +0 -1
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Button,
|
|
3
|
+
ChevronDownIcon,
|
|
4
|
+
ChevronRightIcon,
|
|
5
|
+
Dot,
|
|
6
|
+
Textarea,
|
|
7
|
+
type DotTone,
|
|
8
|
+
} from '@agimon-ai/doompi-web-components';
|
|
9
|
+
import type { WebPluginSlotProps } from '@agimon-ai/doompi-web-contracts';
|
|
10
|
+
import { useStore } from '@tanstack/react-store';
|
|
11
|
+
import { useState } from 'react';
|
|
12
|
+
import type { WebTask } from '../src/types/webTasks.ts';
|
|
13
|
+
import { requestTaskInstruction, requestTaskRemoval, tasks, type TaskInstructionKind } from './tasksStore.ts';
|
|
14
|
+
|
|
15
|
+
const STATUS_TONE: Readonly<Record<WebTask['status'], DotTone>> = {
|
|
16
|
+
pending: 'muted',
|
|
17
|
+
in_progress: 'yellow',
|
|
18
|
+
completed: 'green',
|
|
19
|
+
failed: 'red',
|
|
20
|
+
deleted: 'muted',
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
interface EditorState {
|
|
24
|
+
taskId: number;
|
|
25
|
+
kind: TaskInstructionKind;
|
|
26
|
+
value: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function TaskRow({
|
|
30
|
+
task,
|
|
31
|
+
sessionId,
|
|
32
|
+
sendSessionFrame,
|
|
33
|
+
editor,
|
|
34
|
+
setEditor,
|
|
35
|
+
}: {
|
|
36
|
+
task: WebTask;
|
|
37
|
+
sessionId: string;
|
|
38
|
+
sendSessionFrame: WebPluginSlotProps['sendSessionFrame'];
|
|
39
|
+
editor: EditorState | undefined;
|
|
40
|
+
setEditor: (editor: EditorState | undefined) => void;
|
|
41
|
+
}) {
|
|
42
|
+
const editing = editor?.taskId === task.id;
|
|
43
|
+
const detail = task.status === 'in_progress' ? task.activeForm : task.description;
|
|
44
|
+
return (
|
|
45
|
+
<div
|
|
46
|
+
data-testid={`activity-task-${task.id}`}
|
|
47
|
+
data-task-status={task.status}
|
|
48
|
+
className="flex flex-col gap-1 rounded-[5px] px-1 py-1"
|
|
49
|
+
>
|
|
50
|
+
<div className="flex min-w-0 items-center gap-1.5">
|
|
51
|
+
<Dot tone={STATUS_TONE[task.status]} pulse={task.status === 'in_progress'} />
|
|
52
|
+
<span
|
|
53
|
+
className={`min-w-0 flex-1 truncate text-[10px] font-bold ${task.status === 'failed' ? 'text-doom-red' : task.status === 'completed' ? 'text-doom-dim' : 'text-doom-hi'}`}
|
|
54
|
+
>
|
|
55
|
+
<span className="text-doom-faint">#{task.id}</span> {task.subject}
|
|
56
|
+
</span>
|
|
57
|
+
<span className="shrink-0 text-[8px] text-doom-faint">{task.status.replace('_', ' ')}</span>
|
|
58
|
+
</div>
|
|
59
|
+
{detail || task.delegation?.agent || task.blockedBy.length > 0 ? (
|
|
60
|
+
<span className="truncate pl-3 text-[9px] text-doom-faint">
|
|
61
|
+
{task.delegation?.agent ? `[${task.delegation.agent}] ` : ''}
|
|
62
|
+
{detail ?? ''}
|
|
63
|
+
{task.blockedBy.length > 0 ? ` · blocked by ${task.blockedBy.map((id) => `#${id}`).join(', ')}` : ''}
|
|
64
|
+
</span>
|
|
65
|
+
) : null}
|
|
66
|
+
{task.status !== 'completed' && task.status !== 'deleted' ? (
|
|
67
|
+
<div className="flex items-center gap-2 pl-3">
|
|
68
|
+
<Button
|
|
69
|
+
variant="link"
|
|
70
|
+
size="xs"
|
|
71
|
+
className="h-auto px-0 text-[8px]"
|
|
72
|
+
onClick={() => setEditor({ taskId: task.id, kind: 'edit', value: '' })}
|
|
73
|
+
>
|
|
74
|
+
edit
|
|
75
|
+
</Button>
|
|
76
|
+
<Button
|
|
77
|
+
variant="link"
|
|
78
|
+
size="xs"
|
|
79
|
+
className="h-auto px-0 text-[8px]"
|
|
80
|
+
onClick={() => setEditor({ taskId: task.id, kind: 'note', value: '' })}
|
|
81
|
+
>
|
|
82
|
+
note
|
|
83
|
+
</Button>
|
|
84
|
+
<Button
|
|
85
|
+
variant="link"
|
|
86
|
+
size="xs"
|
|
87
|
+
className="h-auto px-0 text-[8px] text-doom-red"
|
|
88
|
+
onClick={() => requestTaskRemoval(sendSessionFrame, sessionId, task.id)}
|
|
89
|
+
>
|
|
90
|
+
remove
|
|
91
|
+
</Button>
|
|
92
|
+
</div>
|
|
93
|
+
) : null}
|
|
94
|
+
{editing ? (
|
|
95
|
+
<form
|
|
96
|
+
className="flex flex-col gap-1 pl-3"
|
|
97
|
+
onSubmit={(event) => {
|
|
98
|
+
event.preventDefault();
|
|
99
|
+
if (!editor.value.trim()) return;
|
|
100
|
+
requestTaskInstruction(sendSessionFrame, sessionId, task.id, editor.kind, editor.value);
|
|
101
|
+
setEditor(undefined);
|
|
102
|
+
}}
|
|
103
|
+
>
|
|
104
|
+
<Textarea
|
|
105
|
+
autoFocus
|
|
106
|
+
rows={2}
|
|
107
|
+
size="sm"
|
|
108
|
+
value={editor.value}
|
|
109
|
+
placeholder={editor.kind === 'note' ? 'note for the agent' : 'what should change'}
|
|
110
|
+
onChange={(event) => setEditor({ ...editor, value: event.target.value })}
|
|
111
|
+
className="text-[9px]"
|
|
112
|
+
/>
|
|
113
|
+
<div className="flex gap-2">
|
|
114
|
+
<Button type="submit" variant="link" size="xs" className="h-auto px-0 text-[8px]">
|
|
115
|
+
send
|
|
116
|
+
</Button>
|
|
117
|
+
<Button
|
|
118
|
+
type="button"
|
|
119
|
+
variant="link"
|
|
120
|
+
size="xs"
|
|
121
|
+
className="h-auto px-0 text-[8px] text-doom-faint"
|
|
122
|
+
onClick={() => setEditor(undefined)}
|
|
123
|
+
>
|
|
124
|
+
cancel
|
|
125
|
+
</Button>
|
|
126
|
+
</div>
|
|
127
|
+
</form>
|
|
128
|
+
) : null}
|
|
129
|
+
</div>
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/** Session task graph in the activity dock. Empty graphs have no cockpit presence. */
|
|
134
|
+
export function TasksActivitySection({ sessionId, sendSessionFrame }: WebPluginSlotProps) {
|
|
135
|
+
const sessionTasks = useStore(tasks.store, (state) => tasks.select(state, sessionId).tasks);
|
|
136
|
+
const [historyOpen, setHistoryOpen] = useState(false);
|
|
137
|
+
const [editor, setEditor] = useState<EditorState>();
|
|
138
|
+
if (sessionId === null || sessionTasks.length === 0) return null;
|
|
139
|
+
|
|
140
|
+
const active = sessionTasks.filter((task) => task.status === 'pending' || task.status === 'in_progress');
|
|
141
|
+
const history = sessionTasks.filter((task) => task.status === 'completed' || task.status === 'failed');
|
|
142
|
+
return (
|
|
143
|
+
<section data-testid="activity-tasks" className="flex flex-col gap-2 border-b border-doom-border-soft px-3 py-3">
|
|
144
|
+
<div className="flex items-center gap-2 px-1">
|
|
145
|
+
<span
|
|
146
|
+
aria-hidden
|
|
147
|
+
className={
|
|
148
|
+
active.length > 0
|
|
149
|
+
? 'animate-pulse text-[11px] font-bold text-doom-yellow'
|
|
150
|
+
: 'text-[11px] font-bold text-doom-faint'
|
|
151
|
+
}
|
|
152
|
+
>
|
|
153
|
+
#
|
|
154
|
+
</span>
|
|
155
|
+
<span className="flex-1 text-[11px] font-bold text-doom-text">tasks</span>
|
|
156
|
+
<span className="text-[9px] text-doom-faint">{active.length} active</span>
|
|
157
|
+
</div>
|
|
158
|
+
{active.length > 0 ? (
|
|
159
|
+
<div className="flex flex-col gap-0.5">
|
|
160
|
+
{active.map((task) => (
|
|
161
|
+
<TaskRow
|
|
162
|
+
key={task.id}
|
|
163
|
+
task={task}
|
|
164
|
+
sessionId={sessionId}
|
|
165
|
+
sendSessionFrame={sendSessionFrame}
|
|
166
|
+
editor={editor}
|
|
167
|
+
setEditor={setEditor}
|
|
168
|
+
/>
|
|
169
|
+
))}
|
|
170
|
+
</div>
|
|
171
|
+
) : null}
|
|
172
|
+
{history.length > 0 ? (
|
|
173
|
+
<div className="flex flex-col gap-0.5">
|
|
174
|
+
<Button
|
|
175
|
+
variant="ghost"
|
|
176
|
+
size="xs"
|
|
177
|
+
aria-expanded={historyOpen}
|
|
178
|
+
onClick={() => setHistoryOpen((open) => !open)}
|
|
179
|
+
className="justify-start gap-1.5 rounded-[5px] px-1 py-0.5 hover:bg-doom-panel"
|
|
180
|
+
>
|
|
181
|
+
{historyOpen ? (
|
|
182
|
+
<ChevronDownIcon className="h-2.5 w-2.5 text-doom-faint" />
|
|
183
|
+
) : (
|
|
184
|
+
<ChevronRightIcon className="h-2.5 w-2.5 text-doom-faint" />
|
|
185
|
+
)}
|
|
186
|
+
<span className="text-[10px] font-bold text-doom-dim">session</span>
|
|
187
|
+
<span className="text-[9px] text-doom-faint">{history.length}</span>
|
|
188
|
+
</Button>
|
|
189
|
+
{historyOpen ? (
|
|
190
|
+
<div className="flex flex-col gap-0.5 pl-2">
|
|
191
|
+
{history.map((task) => (
|
|
192
|
+
<TaskRow
|
|
193
|
+
key={task.id}
|
|
194
|
+
task={task}
|
|
195
|
+
sessionId={sessionId}
|
|
196
|
+
sendSessionFrame={sendSessionFrame}
|
|
197
|
+
editor={editor}
|
|
198
|
+
setEditor={setEditor}
|
|
199
|
+
/>
|
|
200
|
+
))}
|
|
201
|
+
</div>
|
|
202
|
+
) : null}
|
|
203
|
+
</div>
|
|
204
|
+
) : null}
|
|
205
|
+
</section>
|
|
206
|
+
);
|
|
207
|
+
}
|
package/web/index.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { defineWebPlugin } from '@agimon-ai/doompi-web-contracts';
|
|
2
|
+
import { TasksActivitySection } from './TasksActivitySection.tsx';
|
|
3
|
+
import { TaskToolMessage } from './TaskToolMessage.tsx';
|
|
4
|
+
import { tasksChannel } from './tasksStore.ts';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* This package's cockpit presence: the live session task graph in the activity
|
|
8
|
+
* dock and the task tool's timeline card.
|
|
9
|
+
*/
|
|
10
|
+
export const webPlugin = defineWebPlugin({
|
|
11
|
+
id: 'task',
|
|
12
|
+
channels: [tasksChannel],
|
|
13
|
+
activitySections: [{ id: 'tasks', component: TasksActivitySection }],
|
|
14
|
+
toolRenderers: [{ tools: ['task'], message: TaskToolMessage }],
|
|
15
|
+
});
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure view logic for the task tool card, the browser counterpart of
|
|
3
|
+
* src/tui/format.ts (renderTaskCall, renderTaskResult). The plugin may reach
|
|
4
|
+
* only its own files and src/types, so the store shapes it reads are
|
|
5
|
+
* restated here as the wire JSON of a tool_execution frame.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export type TaskStatus = 'pending' | 'in_progress' | 'completed' | 'failed' | 'deleted';
|
|
9
|
+
export type TaskAction = 'upsert' | 'list' | 'get' | 'delete' | 'clear' | 'assign' | 'cancel';
|
|
10
|
+
|
|
11
|
+
export const STATUS_GLYPH: Record<TaskStatus, string> = {
|
|
12
|
+
pending: '○',
|
|
13
|
+
in_progress: '◐',
|
|
14
|
+
completed: '●',
|
|
15
|
+
failed: '✗',
|
|
16
|
+
deleted: '⊘',
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const STATUS_LABEL: Record<TaskStatus, string> = {
|
|
20
|
+
pending: 'pending',
|
|
21
|
+
in_progress: 'in progress',
|
|
22
|
+
completed: 'completed',
|
|
23
|
+
failed: 'failed',
|
|
24
|
+
deleted: 'deleted',
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const ACTION_GLYPH: Record<TaskAction, string> = {
|
|
28
|
+
upsert: '✎',
|
|
29
|
+
delete: '×',
|
|
30
|
+
get: '›',
|
|
31
|
+
list: '☰',
|
|
32
|
+
clear: '∅',
|
|
33
|
+
assign: '⇒',
|
|
34
|
+
cancel: '⊗',
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* `upsert` is two operations behind one name, so a homogeneous batch narrows to
|
|
39
|
+
* the glyph the operator already reads: `+` means new work appeared, `→` means
|
|
40
|
+
* work moved. A mixed batch keeps the neutral write glyph.
|
|
41
|
+
*/
|
|
42
|
+
const UPSERT_CREATE_GLYPH = '+';
|
|
43
|
+
const UPSERT_UPDATE_GLYPH = '→';
|
|
44
|
+
/** Task rows kept in a collapsed result, before the card is expanded. */
|
|
45
|
+
const TRANSCRIPT_TASK_ROWS = 8;
|
|
46
|
+
const TASK_STATUSES: readonly TaskStatus[] = ['pending', 'in_progress', 'completed', 'failed', 'deleted'];
|
|
47
|
+
const TASK_ACTIONS: readonly TaskAction[] = ['upsert', 'list', 'get', 'delete', 'clear', 'assign', 'cancel'];
|
|
48
|
+
const INLINE_WHITESPACE = /\s+/gu;
|
|
49
|
+
|
|
50
|
+
/** One task as the result details carry it (src/services/store/types.ts Task). */
|
|
51
|
+
export interface TaskView {
|
|
52
|
+
id: number;
|
|
53
|
+
subject: string;
|
|
54
|
+
status: TaskStatus;
|
|
55
|
+
activeForm?: string;
|
|
56
|
+
blockedBy?: number[];
|
|
57
|
+
delegation?: { agent?: string; state?: string };
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** The result details (src/services/store/types.ts TaskDetails), narrowed to what the card reads. */
|
|
61
|
+
export interface TaskDetailsView {
|
|
62
|
+
action: TaskAction;
|
|
63
|
+
params: Record<string, unknown>;
|
|
64
|
+
tasks: TaskView[];
|
|
65
|
+
error?: string;
|
|
66
|
+
upsert?: { applied: number[]; failed: number };
|
|
67
|
+
assignment?: { assigned: number[]; failed: number };
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function isRecord(value: unknown): value is Record<string, unknown> {
|
|
71
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function isStatus(value: unknown): value is TaskStatus {
|
|
75
|
+
return typeof value === 'string' && (TASK_STATUSES as readonly string[]).includes(value);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function isAction(value: unknown): value is TaskAction {
|
|
79
|
+
return typeof value === 'string' && (TASK_ACTIONS as readonly string[]).includes(value);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function taskView(value: unknown): TaskView | null {
|
|
83
|
+
if (!isRecord(value) || typeof value.id !== 'number' || typeof value.subject !== 'string') return null;
|
|
84
|
+
if (!isStatus(value.status)) return null;
|
|
85
|
+
const task: TaskView = { id: value.id, subject: value.subject, status: value.status };
|
|
86
|
+
if (typeof value.activeForm === 'string') task.activeForm = value.activeForm;
|
|
87
|
+
if (Array.isArray(value.blockedBy)) {
|
|
88
|
+
task.blockedBy = value.blockedBy.filter((id): id is number => typeof id === 'number');
|
|
89
|
+
}
|
|
90
|
+
if (isRecord(value.delegation)) {
|
|
91
|
+
task.delegation = {};
|
|
92
|
+
if (typeof value.delegation.agent === 'string') task.delegation.agent = value.delegation.agent;
|
|
93
|
+
if (typeof value.delegation.state === 'string') task.delegation.state = value.delegation.state;
|
|
94
|
+
}
|
|
95
|
+
return task;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
function idList(value: unknown): number[] {
|
|
99
|
+
return Array.isArray(value) ? value.filter((id): id is number => typeof id === 'number') : [];
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/** Narrows the wire details; null when they are not a task result at all. */
|
|
103
|
+
export function taskDetailsView(details: unknown): TaskDetailsView | null {
|
|
104
|
+
if (!isRecord(details) || !isAction(details.action) || !Array.isArray(details.tasks)) return null;
|
|
105
|
+
const view: TaskDetailsView = {
|
|
106
|
+
action: details.action,
|
|
107
|
+
params: isRecord(details.params) ? details.params : {},
|
|
108
|
+
tasks: details.tasks.map(taskView).filter((task): task is TaskView => task !== null),
|
|
109
|
+
};
|
|
110
|
+
if (typeof details.error === 'string') view.error = details.error;
|
|
111
|
+
if (isRecord(details.upsert)) {
|
|
112
|
+
view.upsert = {
|
|
113
|
+
applied: idList(details.upsert.applied),
|
|
114
|
+
failed: typeof details.upsert.failed === 'number' ? details.upsert.failed : 0,
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
if (isRecord(details.assignment)) {
|
|
118
|
+
view.assignment = {
|
|
119
|
+
assigned: idList(details.assignment.assigned),
|
|
120
|
+
failed: typeof details.assignment.failed === 'number' ? details.assignment.failed : 0,
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
return view;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/** `#id` for the wire's id, which the TUI would resolve to a subject through the store. */
|
|
127
|
+
function idLabel(value: unknown): string {
|
|
128
|
+
return typeof value === 'number' || typeof value === 'string' ? `#${value}` : '#?';
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/** Keep dynamic content on one line. */
|
|
132
|
+
function inlineText(text: string): string {
|
|
133
|
+
return text.replace(INLINE_WHITESPACE, ' ').trim();
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export type TaskCallTone = 'dim' | 'accent';
|
|
137
|
+
|
|
138
|
+
/** The call header: glyph, action, then the subject or a count, as renderTaskCall lays it out. */
|
|
139
|
+
export interface TaskCallView {
|
|
140
|
+
glyph: string;
|
|
141
|
+
action: string;
|
|
142
|
+
subject?: string;
|
|
143
|
+
subjectTone: TaskCallTone;
|
|
144
|
+
/** The assignee (`→ agent`) or the list filter. */
|
|
145
|
+
detail?: string;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
function upsertGlyph(items: readonly Record<string, unknown>[]): string {
|
|
149
|
+
if (items.length === 0) return ACTION_GLYPH.upsert;
|
|
150
|
+
if (items.every((item) => item.id === undefined)) return UPSERT_CREATE_GLYPH;
|
|
151
|
+
if (items.every((item) => item.id !== undefined)) return UPSERT_UPDATE_GLYPH;
|
|
152
|
+
return ACTION_GLYPH.upsert;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* The TUI resolves an id to its subject through the task store; the card has
|
|
157
|
+
* no store and shows `#id` until the result names the task.
|
|
158
|
+
*/
|
|
159
|
+
export function taskCallView(args: Record<string, unknown>): TaskCallView {
|
|
160
|
+
const action = typeof args.action === 'string' ? args.action : 'task';
|
|
161
|
+
if (!isAction(action)) return { glyph: '?', action, subjectTone: 'dim' };
|
|
162
|
+
const items = action === 'upsert' && Array.isArray(args.tasks) ? args.tasks.filter(isRecord) : [];
|
|
163
|
+
const view: TaskCallView = {
|
|
164
|
+
glyph: action === 'upsert' ? upsertGlyph(items) : ACTION_GLYPH[action],
|
|
165
|
+
action,
|
|
166
|
+
subjectTone: 'dim',
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
if (action === 'upsert') {
|
|
170
|
+
// One entry reads exactly as create or update did; a batch reads as a count
|
|
171
|
+
// rather than a subject it would have to pick arbitrarily.
|
|
172
|
+
if (items.length === 1) {
|
|
173
|
+
const only = items[0] ?? {};
|
|
174
|
+
if (only.id === undefined) {
|
|
175
|
+
if (typeof only.subject === 'string') view.subject = inlineText(only.subject);
|
|
176
|
+
} else {
|
|
177
|
+
view.subject = typeof only.subject === 'string' ? inlineText(only.subject) : idLabel(only.id);
|
|
178
|
+
view.subjectTone = 'accent';
|
|
179
|
+
}
|
|
180
|
+
} else if (items.length > 1) {
|
|
181
|
+
view.subject = `${items.length} tasks`;
|
|
182
|
+
}
|
|
183
|
+
} else if (action === 'assign') {
|
|
184
|
+
const assignments = Array.isArray(args.assignments) ? args.assignments.filter(isRecord) : [];
|
|
185
|
+
if (assignments.length === 1) {
|
|
186
|
+
const only = assignments[0] ?? {};
|
|
187
|
+
view.subject = idLabel(only.id);
|
|
188
|
+
view.subjectTone = 'accent';
|
|
189
|
+
if (typeof only.agent === 'string') view.detail = `→ ${only.agent}`;
|
|
190
|
+
} else if (assignments.length > 1) {
|
|
191
|
+
view.subject = `${assignments.length} tasks`;
|
|
192
|
+
}
|
|
193
|
+
} else if ((action === 'get' || action === 'delete' || action === 'cancel') && args.id !== undefined) {
|
|
194
|
+
view.subject = idLabel(args.id);
|
|
195
|
+
view.subjectTone = 'accent';
|
|
196
|
+
} else if (action === 'list' && isStatus(args.status)) {
|
|
197
|
+
view.detail = STATUS_LABEL[args.status];
|
|
198
|
+
}
|
|
199
|
+
return view;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/** One row of the result: the task line on the left, its status flushed right. */
|
|
203
|
+
export interface TaskRow {
|
|
204
|
+
id: number;
|
|
205
|
+
glyph: string;
|
|
206
|
+
subject: string;
|
|
207
|
+
status: TaskStatus;
|
|
208
|
+
/** Struck through: the task is done with. */
|
|
209
|
+
closed: boolean;
|
|
210
|
+
agent?: string;
|
|
211
|
+
activeForm?: string;
|
|
212
|
+
blockedBy: number[];
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export type TaskResultTone = 'running' | 'ok' | 'error' | 'warning';
|
|
216
|
+
|
|
217
|
+
export interface TaskResultView {
|
|
218
|
+
rows: TaskRow[];
|
|
219
|
+
/** Error text lines when the tool threw or the reducer reported an error. */
|
|
220
|
+
errorLines: string[];
|
|
221
|
+
status: { glyph: string; tone: TaskResultTone; text: string } | null;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export function taskRow(task: TaskView): TaskRow {
|
|
225
|
+
const row: TaskRow = {
|
|
226
|
+
id: task.id,
|
|
227
|
+
glyph: STATUS_GLYPH[task.status],
|
|
228
|
+
subject: inlineText(task.subject),
|
|
229
|
+
status: task.status,
|
|
230
|
+
closed: task.status === 'completed' || task.status === 'deleted',
|
|
231
|
+
blockedBy: task.blockedBy ?? [],
|
|
232
|
+
};
|
|
233
|
+
if (task.delegation?.agent) row.agent = inlineText(task.delegation.agent);
|
|
234
|
+
if (task.status === 'in_progress' && task.activeForm) row.activeForm = inlineText(task.activeForm);
|
|
235
|
+
return row;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
function nonEmptyLines(text: string): string[] {
|
|
239
|
+
return text.split('\n').filter((line) => line.trim().length > 0);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* The rows `list` reported to the model: `details.tasks` is the whole
|
|
244
|
+
* document, so the call's filters apply again here or the card would disagree
|
|
245
|
+
* with the text the model was given.
|
|
246
|
+
*/
|
|
247
|
+
function listedTasks(details: TaskDetailsView): TaskView[] {
|
|
248
|
+
let view = details.tasks;
|
|
249
|
+
if (details.params.includeDeleted !== true) view = view.filter((task) => task.status !== 'deleted');
|
|
250
|
+
if (isStatus(details.params.status)) view = view.filter((task) => task.status === details.params.status);
|
|
251
|
+
return view;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
function byIds(details: TaskDetailsView, ids: readonly number[]): TaskView[] {
|
|
255
|
+
return ids.flatMap((id) => details.tasks.find((task) => task.id === id) ?? []);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
function batch(
|
|
259
|
+
tasks: readonly TaskView[],
|
|
260
|
+
failed: number,
|
|
261
|
+
verb: string,
|
|
262
|
+
expanded: boolean,
|
|
263
|
+
): Pick<TaskResultView, 'rows' | 'status'> {
|
|
264
|
+
// One applied task and nothing failed is the common case: keep the single
|
|
265
|
+
// row it has always had rather than dressing it as a bulk report.
|
|
266
|
+
if (tasks.length === 1 && failed === 0) return { rows: [taskRow(tasks[0] as TaskView)], status: null };
|
|
267
|
+
const shown = expanded ? tasks : tasks.slice(0, TRANSCRIPT_TASK_ROWS);
|
|
268
|
+
let summary = `${tasks.length} ${verb}`;
|
|
269
|
+
if (failed > 0) summary += ` · ${failed} failed`;
|
|
270
|
+
if (tasks.length > shown.length) summary += ` · ${tasks.length - shown.length} more`;
|
|
271
|
+
return {
|
|
272
|
+
rows: shown.map(taskRow),
|
|
273
|
+
status: { glyph: failed > 0 ? '!' : '✓', tone: failed > 0 ? 'warning' : 'ok', text: summary },
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
export function taskResultView(input: {
|
|
278
|
+
details: unknown;
|
|
279
|
+
output: string;
|
|
280
|
+
expanded: boolean;
|
|
281
|
+
isPartial: boolean;
|
|
282
|
+
isError: boolean;
|
|
283
|
+
}): TaskResultView {
|
|
284
|
+
const details = taskDetailsView(input.details);
|
|
285
|
+
|
|
286
|
+
// Running. `assign` and `cancel` stream a placeholder before the run settles.
|
|
287
|
+
if (input.isPartial) {
|
|
288
|
+
const text = nonEmptyLines(input.output).at(-1) ?? 'working';
|
|
289
|
+
return { rows: [], errorLines: [], status: { glyph: '◐', tone: 'running', text } };
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
// Failed. Every failure path throws, so Pi hands back error text and no
|
|
293
|
+
// details; without this the card would show a green tick on a failure.
|
|
294
|
+
if (input.isError || details?.error !== undefined) {
|
|
295
|
+
const all = nonEmptyLines(details?.error ?? input.output);
|
|
296
|
+
if (all.length <= 1) return { rows: [], errorLines: [], status: { glyph: '✗', tone: 'error', text: all[0] ?? '' } };
|
|
297
|
+
const errorLines = input.expanded ? all : all.slice(0, TRANSCRIPT_TASK_ROWS);
|
|
298
|
+
return { rows: [], errorLines, status: { glyph: '✗', tone: 'error', text: '' } };
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
if (details === null) return { rows: [], errorLines: [], status: { glyph: '✓', tone: 'ok', text: '' } };
|
|
302
|
+
|
|
303
|
+
if (details.action === 'list') {
|
|
304
|
+
const tasks = listedTasks(details);
|
|
305
|
+
const shown = input.expanded ? tasks : tasks.slice(0, TRANSCRIPT_TASK_ROWS);
|
|
306
|
+
let summary = tasks.length === 0 ? 'no tasks' : `${tasks.length} task${tasks.length === 1 ? '' : 's'}`;
|
|
307
|
+
if (tasks.length > shown.length) summary += ` · ${tasks.length - shown.length} more`;
|
|
308
|
+
return { rows: shown.map(taskRow), errorLines: [], status: { glyph: '✓', tone: 'ok', text: summary } };
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
if (details.action === 'clear') {
|
|
312
|
+
return { rows: [], errorLines: [], status: { glyph: '✓', tone: 'ok', text: 'cleared' } };
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
if (details.action === 'assign' && details.assignment) {
|
|
316
|
+
const assigned = byIds(details, details.assignment.assigned);
|
|
317
|
+
return { errorLines: [], ...batch(assigned, details.assignment.failed, 'assigned', input.expanded) };
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
if (details.action === 'upsert') {
|
|
321
|
+
const touched = byIds(details, details.upsert?.applied ?? []);
|
|
322
|
+
return { errorLines: [], ...batch(touched, details.upsert?.failed ?? 0, 'applied', input.expanded) };
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
// The single task an id-bearing action acted on, so the card names it rather than a bare tick.
|
|
326
|
+
const id = details.params.id;
|
|
327
|
+
const task = typeof id === 'number' ? details.tasks.find((candidate) => candidate.id === id) : undefined;
|
|
328
|
+
if (!task) return { rows: [], errorLines: [], status: { glyph: '✓', tone: 'ok', text: '' } };
|
|
329
|
+
return { rows: [taskRow(task)], errorLines: [], status: null };
|
|
330
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { defineSessionStore, type SessionFrameSender } from '@agimon-ai/doompi-web-contracts';
|
|
2
|
+
import { TASKS_CHANNEL_TYPE, type WebTask, type WebTasksPayload } from '../src/types/webTasks.ts';
|
|
3
|
+
|
|
4
|
+
export interface TasksSession {
|
|
5
|
+
tasks: WebTask[];
|
|
6
|
+
rev: number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const tasks = defineSessionStore<TasksSession>({ tasks: [], rev: 0 });
|
|
10
|
+
|
|
11
|
+
function isRecord(value: unknown): value is Record<string, unknown> {
|
|
12
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function parseTask(value: unknown): WebTask | null {
|
|
16
|
+
if (!isRecord(value) || typeof value.id !== 'number' || typeof value.subject !== 'string') return null;
|
|
17
|
+
if (!['pending', 'in_progress', 'completed', 'failed'].includes(String(value.status))) return null;
|
|
18
|
+
const task: WebTask = {
|
|
19
|
+
id: value.id,
|
|
20
|
+
subject: value.subject,
|
|
21
|
+
status: value.status as WebTask['status'],
|
|
22
|
+
blockedBy: Array.isArray(value.blockedBy)
|
|
23
|
+
? value.blockedBy.filter((id): id is number => typeof id === 'number')
|
|
24
|
+
: [],
|
|
25
|
+
};
|
|
26
|
+
if (typeof value.description === 'string') task.description = value.description;
|
|
27
|
+
if (typeof value.activeForm === 'string') task.activeForm = value.activeForm;
|
|
28
|
+
if (typeof value.owner === 'string') task.owner = value.owner;
|
|
29
|
+
if (typeof value.updatedAt === 'string') task.updatedAt = value.updatedAt;
|
|
30
|
+
if (isRecord(value.delegation)) {
|
|
31
|
+
task.delegation = {};
|
|
32
|
+
if (typeof value.delegation.agent === 'string') task.delegation.agent = value.delegation.agent;
|
|
33
|
+
if (typeof value.delegation.state === 'string') task.delegation.state = value.delegation.state;
|
|
34
|
+
}
|
|
35
|
+
return task;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export const tasksChannel = tasks.channel<WebTasksPayload>({
|
|
39
|
+
channel: TASKS_CHANNEL_TYPE,
|
|
40
|
+
parse(input) {
|
|
41
|
+
if (!isRecord(input) || !Array.isArray(input.tasks) || typeof input.rev !== 'number') return null;
|
|
42
|
+
return { tasks: input.tasks.map(parseTask).filter((task): task is WebTask => task !== null), rev: input.rev };
|
|
43
|
+
},
|
|
44
|
+
reduce: (_current, payload) => payload,
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
export type TaskInstructionKind = 'edit' | 'note';
|
|
48
|
+
|
|
49
|
+
export function taskInstruction(taskId: number, kind: TaskInstructionKind, instruction: string): string {
|
|
50
|
+
const detail = instruction.trim();
|
|
51
|
+
if (kind === 'note') {
|
|
52
|
+
return `Send this note to the agent working on task #${taskId}, then update the task if needed: ${detail}`;
|
|
53
|
+
}
|
|
54
|
+
return `Update task #${taskId} according to this instruction. Preserve a valid dependency graph: ${detail}`;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function requestTaskInstruction(
|
|
58
|
+
send: SessionFrameSender,
|
|
59
|
+
sessionId: string,
|
|
60
|
+
taskId: number,
|
|
61
|
+
kind: TaskInstructionKind,
|
|
62
|
+
instruction: string,
|
|
63
|
+
): void {
|
|
64
|
+
send(sessionId, { type: 'prompt', message: taskInstruction(taskId, kind, instruction) });
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function requestTaskRemoval(send: SessionFrameSender, sessionId: string, taskId: number): void {
|
|
68
|
+
send(sessionId, {
|
|
69
|
+
type: 'prompt',
|
|
70
|
+
message: `Remove task #${taskId}. Also remove or repair every dependency that references it so the remaining task graph is valid.`,
|
|
71
|
+
});
|
|
72
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"lib": ["ES2023", "DOM", "DOM.Iterable"],
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"moduleResolution": "Bundler",
|
|
7
|
+
"jsx": "react-jsx",
|
|
8
|
+
"strict": true,
|
|
9
|
+
"noImplicitAny": true,
|
|
10
|
+
"noUnusedLocals": true,
|
|
11
|
+
"noUnusedParameters": true,
|
|
12
|
+
"noImplicitReturns": true,
|
|
13
|
+
"noFallthroughCasesInSwitch": true,
|
|
14
|
+
"noEmit": true,
|
|
15
|
+
"resolveJsonModule": true,
|
|
16
|
+
"esModuleInterop": true,
|
|
17
|
+
"skipLibCheck": true,
|
|
18
|
+
"allowImportingTsExtensions": true,
|
|
19
|
+
"forceConsistentCasingInFileNames": true,
|
|
20
|
+
"types": ["node"]
|
|
21
|
+
},
|
|
22
|
+
"include": [".", "../src/types"]
|
|
23
|
+
}
|
package/dist/commands.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"commands.cjs","names":["COMMAND_NAME","ERR_REQUIRES_INTERACTIVE","openTaskSpace"],"sources":["../src/commands.ts"],"sourcesContent":["import type { ExtensionAPI } from '@earendil-works/pi-coding-agent';\nimport type { TaskStore } from './store/taskStore.ts';\nimport { COMMAND_NAME, ERR_REQUIRES_INTERACTIVE } from './tool/schema.ts';\nimport { openTaskSpace } from './tui/taskSpace.ts';\n\n/**\n * `/tasks`, reachable from the leader palette as `SPC t t`.\n *\n * The command opens the Task Space overlay rather than printing a listing: the\n * overlay is the readable surface and it can edit, while a transcript dump could\n * only be read.\n */\nexport function registerTasksCommand(pi: ExtensionAPI, store: TaskStore): void {\n pi.registerCommand(COMMAND_NAME, {\n description: 'Open Task Space for this session tree',\n handler: async (_args, ctx) => {\n if (!ctx.hasUI) {\n ctx.ui.notify(ERR_REQUIRES_INTERACTIVE, 'error');\n return;\n }\n\n store.read();\n await openTaskSpace(ctx, { store });\n },\n });\n}\n"],"mappings":"yIAYA,SAAgB,EAAqB,EAAkB,EAAwB,CAC7E,EAAG,gBAAgBA,EAAAA,aAAc,CAC/B,YAAa,wCACb,QAAS,MAAO,EAAO,IAAQ,CAC7B,GAAI,CAAC,EAAI,MAAO,CACd,EAAI,GAAG,OAAOC,EAAAA,yBAA0B,OAAO,EAC/C,MACF,CAEA,EAAM,KAAK,EACX,MAAMC,EAAAA,cAAc,EAAK,CAAE,OAAM,CAAC,CACpC,CACF,CAAC,CACH"}
|
package/dist/commands.d.cts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.cts","names":[],"sources":["../src/commands.ts"],"mappings":";;;;;;;;;;iBAYgB,qBAAqB,IAAI,cAAc,OAAO"}
|
package/dist/commands.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.mts","names":[],"sources":["../src/commands.ts"],"mappings":";;;;;;;;;;iBAYgB,qBAAqB,IAAI,cAAc,OAAO"}
|
package/dist/commands.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"commands.mjs","names":[],"sources":["../src/commands.ts"],"sourcesContent":["import type { ExtensionAPI } from '@earendil-works/pi-coding-agent';\nimport type { TaskStore } from './store/taskStore.ts';\nimport { COMMAND_NAME, ERR_REQUIRES_INTERACTIVE } from './tool/schema.ts';\nimport { openTaskSpace } from './tui/taskSpace.ts';\n\n/**\n * `/tasks`, reachable from the leader palette as `SPC t t`.\n *\n * The command opens the Task Space overlay rather than printing a listing: the\n * overlay is the readable surface and it can edit, while a transcript dump could\n * only be read.\n */\nexport function registerTasksCommand(pi: ExtensionAPI, store: TaskStore): void {\n pi.registerCommand(COMMAND_NAME, {\n description: 'Open Task Space for this session tree',\n handler: async (_args, ctx) => {\n if (!ctx.hasUI) {\n ctx.ui.notify(ERR_REQUIRES_INTERACTIVE, 'error');\n return;\n }\n\n store.read();\n await openTaskSpace(ctx, { store });\n },\n });\n}\n"],"mappings":"mIAYA,SAAgB,EAAqB,EAAkB,EAAwB,CAC7E,EAAG,gBAAgB,EAAc,CAC/B,YAAa,wCACb,QAAS,MAAO,EAAO,IAAQ,CAC7B,GAAI,CAAC,EAAI,MAAO,CACd,EAAI,GAAG,OAAO,EAA0B,OAAO,EAC/C,MACF,CAEA,EAAM,KAAK,EACX,MAAM,EAAc,EAAK,CAAE,OAAM,CAAC,CACpC,CACF,CAAC,CACH"}
|
package/dist/config.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.cjs","names":[],"sources":["../src/config.ts"],"sourcesContent":["/**\n * Extension configuration, read from the environment.\n *\n * Env rather than a config file: doom-pi already carries per-launch state to Pi\n * through env vars, so this keeps doom-task consistent with how the harness\n * configures the rest of the extension set.\n */\n\nexport const MAX_WIDGET_LINES_ENV = 'DOOM_TASK_MAX_WIDGET_LINES';\nexport const COLLAPSE_KEY_ENV = 'DOOM_TASK_COLLAPSE_KEY';\nexport const STORE_TTL_MS_ENV = 'DOOM_TASK_STORE_TTL_MS';\nexport const DELEGATION_TIMEOUT_MS_ENV = 'DOOM_TASK_DELEGATION_TIMEOUT_MS';\n\nexport const DEFAULT_MAX_WIDGET_LINES = 12;\nexport const DEFAULT_COLLAPSE_KEY = 'ctrl+shift+t';\nexport const DEFAULT_STORE_TTL_MS = 30 * 24 * 60 * 60 * 1000;\n/** Deliberately under the subagents auto-drain ceiling (30 min) so a headless\n * session still gets the failure and a model turn before draining gives up. */\nexport const DEFAULT_DELEGATION_TIMEOUT_MS = 20 * 60 * 1000;\nexport const COLLAPSE_KEY_OFF = 'off';\n\nconst MIN_WIDGET_LINES = 3;\nconst MAX_WIDGET_LINES = 60;\n\nexport interface PiTaskConfig {\n maxWidgetLines: number;\n storeTtlMs: number;\n collapseKey: string;\n delegationTimeoutMs: number;\n}\n\nfunction configRecord(value: unknown): Record<string, unknown> {\n return value !== null && typeof value === 'object' && !Array.isArray(value) ? (value as Record<string, unknown>) : {};\n}\n\n/** Parse configuration only after the Pi host has applied its project-trust policy. */\nexport function parsePiTaskConfig(value: unknown): PiTaskConfig {\n const config = configRecord(value);\n const maxWidgetLines =\n typeof config.maxWidgetLines === 'number' && Number.isFinite(config.maxWidgetLines)\n ? Math.min(Math.max(config.maxWidgetLines, MIN_WIDGET_LINES), MAX_WIDGET_LINES)\n : DEFAULT_MAX_WIDGET_LINES;\n const storeTtlMs =\n typeof config.storeTtlMs === 'number' && Number.isFinite(config.storeTtlMs) && config.storeTtlMs > 0\n ? config.storeTtlMs\n : DEFAULT_STORE_TTL_MS;\n const delegationTimeoutMs =\n typeof config.delegationTimeoutMs === 'number' &&\n Number.isFinite(config.delegationTimeoutMs) &&\n config.delegationTimeoutMs > 0\n ? config.delegationTimeoutMs\n : DEFAULT_DELEGATION_TIMEOUT_MS;\n const collapseKey =\n typeof config.collapseKey === 'string' && config.collapseKey.trim()\n ? config.collapseKey.trim().toLowerCase() === COLLAPSE_KEY_OFF\n ? COLLAPSE_KEY_OFF\n : config.collapseKey.trim()\n : DEFAULT_COLLAPSE_KEY;\n\n return { maxWidgetLines, storeTtlMs, collapseKey, delegationTimeoutMs };\n}\n\n/** Rows the overlay may use for content, clamped to a sane range. */\nexport function getMaxWidgetLines(env: NodeJS.ProcessEnv = process.env): number {\n const raw = Number.parseInt(env[MAX_WIDGET_LINES_ENV] ?? '', 10);\n if (!Number.isFinite(raw)) return DEFAULT_MAX_WIDGET_LINES;\n return Math.min(Math.max(raw, MIN_WIDGET_LINES), MAX_WIDGET_LINES);\n}\n\n/** Retention window for inactive session-tree stores. */\nexport function getStoreTtlMs(env: NodeJS.ProcessEnv = process.env): number {\n const raw = Number(env[STORE_TTL_MS_ENV]);\n return Number.isFinite(raw) && raw > 0 ? raw : DEFAULT_STORE_TTL_MS;\n}\n\n/** How long a delegated run may go without reporting a result. */\nexport function getDelegationTimeoutMs(env: NodeJS.ProcessEnv = process.env): number {\n const raw = Number(env[DELEGATION_TIMEOUT_MS_ENV]);\n return Number.isFinite(raw) && raw > 0 ? raw : DEFAULT_DELEGATION_TIMEOUT_MS;\n}\n\n/** Collapse shortcut, or the `off` sentinel when the user disabled it. */\nexport function resolveCollapseKey(env: NodeJS.ProcessEnv = process.env): string {\n const configured = env[COLLAPSE_KEY_ENV]?.trim();\n if (!configured) return DEFAULT_COLLAPSE_KEY;\n return configured.toLowerCase() === COLLAPSE_KEY_OFF ? COLLAPSE_KEY_OFF : configured;\n}\n"],"mappings":"mEAQA,MACa,EAAmB,yBACnB,EAAmB,yBACnB,EAA4B,kCAG5B,EAAuB,eACvB,EAAuB,OAGvB,EAAgC,KAa7C,SAAS,EAAa,EAAyC,CAC7D,OAAyB,OAAO,GAAU,UAAnC,GAA+C,CAAC,MAAM,QAAQ,CAAK,EAAK,EAAoC,CAAC,CACtH,CAGA,SAAgB,EAAkB,EAA8B,CAC9D,IAAM,EAAS,EAAa,CAAK,EAC3B,EACJ,OAAO,EAAO,gBAAmB,UAAY,OAAO,SAAS,EAAO,cAAc,EAC9E,KAAK,IAAI,KAAK,IAAI,EAAO,eAAgB,CAAgB,EAAG,EAAgB,EAAA,GAE5E,EACJ,OAAO,EAAO,YAAe,UAAY,OAAO,SAAS,EAAO,UAAU,GAAK,EAAO,WAAa,EAC/F,EAAO,WACP,EACA,EACJ,OAAO,EAAO,qBAAwB,UACtC,OAAO,SAAS,EAAO,mBAAmB,GAC1C,EAAO,oBAAsB,EACzB,EAAO,oBACP,EAQN,MAAO,CAAE,iBAAgB,aAAY,YANnC,OAAO,EAAO,aAAgB,UAAY,EAAO,YAAY,KAAK,EAC9D,EAAO,YAAY,KAAK,CAAC,CAAC,YAAY,IAAA,MAAA,MAEpC,EAAO,YAAY,KAAK,EAC1B,EAE4C,qBAAoB,CACxE,CAGA,SAAgB,EAAkB,EAAyB,QAAQ,IAAa,CAC9E,IAAM,EAAM,OAAO,SAAS,EAAA,4BAA6B,GAAI,EAAE,EAE/D,OADK,OAAO,SAAS,CAAG,EACjB,KAAK,IAAI,KAAK,IAAI,EAAK,CAAgB,EAAG,EAAgB,EADtC,EAE7B,CAGA,SAAgB,EAAc,EAAyB,QAAQ,IAAa,CAC1E,IAAM,EAAM,OAAO,EAAI,EAAiB,EACxC,OAAO,OAAO,SAAS,CAAG,GAAK,EAAM,EAAI,EAAM,CACjD,CAGA,SAAgB,EAAuB,EAAyB,QAAQ,IAAa,CACnF,IAAM,EAAM,OAAO,EAAI,EAA0B,EACjD,OAAO,OAAO,SAAS,CAAG,GAAK,EAAM,EAAI,EAAM,CACjD,CAGA,SAAgB,EAAmB,EAAyB,QAAQ,IAAa,CAC/E,IAAM,EAAa,EAAI,EAAiB,EAAE,KAAK,EAE/C,OADK,EACE,EAAW,YAAY,IAAA,MAAA,MAA4C,EADlD,CAE1B"}
|