@taskforcehq/taskforce 0.3.170 → 0.3.301
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 +71 -21
- package/dist/Taskforce.module.css +3394 -5981
- package/dist/TaskforceCore.CategoryFallback.test.js +5 -2
- package/dist/TaskforceCore.filter-persistence.test.js +402 -0
- package/dist/TaskforceCore.js +388 -71
- package/dist/TaskforceCore.routing.test.js +311 -0
- package/dist/TaskforceCore.test.js +3344 -615
- package/dist/TaskforceWidget.js +3 -2
- package/dist/__tests__/localizationCatalogs.test.js +48 -31
- package/dist/__tests__/workflowSimulation.test.js +2 -2
- package/dist/annotatedAttachments/AnnotatedAttachmentSessionStore.d.ts +60 -0
- package/dist/annotatedAttachments/AnnotatedAttachmentSessionStore.js +324 -0
- package/dist/annotatedAttachments/AnnotatedAttachmentSessionStore.test.js +278 -0
- package/dist/annotatedAttachments/payload.d.ts +2 -0
- package/dist/annotatedAttachments/payload.js +54 -0
- package/dist/annotatedAttachments/payload.test.js +67 -0
- package/dist/annotatedAttachments/service.d.ts +49 -0
- package/dist/annotatedAttachments/service.js +121 -0
- package/dist/annotatedAttachments/types.d.ts +86 -0
- package/dist/cli.js +74 -25
- package/dist/compat/deploymentCompat.d.ts +12 -0
- package/dist/compat/deploymentCompat.js +43 -0
- package/dist/compat/workspaceSyncCompat.d.ts +6 -0
- package/dist/compat/workspaceSyncCompat.js +79 -0
- package/dist/compat/workspaceSyncCompat.test.js +87 -0
- package/dist/components/features/AgentsModule.d.ts +5 -0
- package/dist/components/features/AgentsModule.js +131 -0
- package/dist/components/features/AgentsModule.test.js +102 -0
- package/dist/components/features/AnnotatedAttachmentWorkspace.d.ts +24 -0
- package/dist/components/features/AnnotatedAttachmentWorkspace.js +1942 -0
- package/dist/components/features/AnnotatedAttachmentWorkspace.test.js +2831 -0
- package/dist/components/features/DocumentGenerateModal.js +8 -16
- package/dist/components/features/DocumentIndex.d.ts +3 -4
- package/dist/components/features/DocumentIndex.js +22 -10
- package/dist/components/features/DocumentViewer.d.ts +6 -2
- package/dist/components/features/DocumentViewer.js +1000 -18
- package/dist/components/features/DocumentWorkspace.d.ts +40 -2
- package/dist/components/features/DocumentWorkspace.js +96 -16
- package/dist/components/features/DocumentWorkspace.test.js +1202 -0
- package/dist/components/features/InitiativesModule.d.ts +22 -0
- package/dist/components/features/InitiativesModule.js +33 -0
- package/dist/components/features/TaskSettings.d.ts +41 -32
- package/dist/components/features/TaskSettings.js +798 -313
- package/dist/components/features/TaskSettings.test.js +1221 -47
- package/dist/components/features/WorkflowsModule.d.ts +27 -0
- package/dist/components/features/WorkflowsModule.js +21 -0
- package/dist/components/features/documentWorkspaceFilters.d.ts +10 -0
- package/dist/components/features/documentWorkspaceFilters.js +11 -0
- package/dist/components/features/settings/CategoryManager.d.ts +2 -0
- package/dist/components/features/settings/CategoryManager.js +15 -8
- package/dist/components/features/settings/PriorityManager.d.ts +18 -0
- package/dist/components/features/settings/PriorityManager.js +51 -0
- package/dist/components/features/settings/TaxonomyEditor.d.ts +2 -1
- package/dist/components/features/settings/TaxonomyEditor.js +41 -18
- package/dist/components/features/settings/TaxonomyLibraryManager.d.ts +26 -0
- package/dist/components/features/settings/TaxonomyLibraryManager.js +301 -0
- package/dist/components/features/settings/TaxonomyLibraryManager.test.js +141 -0
- package/dist/components/features/settings/TaxonomyManager.d.ts +35 -12
- package/dist/components/features/settings/TaxonomyManager.js +59 -27
- package/dist/components/features/settings/TypeManager.d.ts +11 -0
- package/dist/components/features/settings/TypeManager.js +48 -11
- package/dist/components/features/settings/{WorkflowEditorPrototype.d.ts → WorkflowEditor.d.ts} +2 -2
- package/dist/components/features/settings/{WorkflowEditorPrototype.js → WorkflowEditor.js} +3 -3
- package/dist/components/task/TaskActionHeader.d.ts +12 -2
- package/dist/components/task/TaskActionHeader.js +64 -8
- package/dist/components/task/TaskActionHeader.test.js +73 -0
- package/dist/components/task/TaskCard.d.ts +14 -16
- package/dist/components/task/TaskCard.js +144 -174
- package/dist/components/task/TaskCard.test.js +416 -64
- package/dist/components/task/TaskContextUpload.d.ts +6 -5
- package/dist/components/task/TaskContextUpload.js +199 -64
- package/dist/components/task/TaskContextUpload.test.js +331 -14
- package/dist/components/task/TaskForm.d.ts +23 -29
- package/dist/components/task/TaskForm.js +348 -169
- package/dist/components/task/TaskForm.test.js +419 -23
- package/dist/components/task/TaskKanban.d.ts +20 -21
- package/dist/components/task/TaskKanban.js +176 -316
- package/dist/components/task/TaskKanban.planning-drop.test.js +93 -0
- package/dist/components/task/TaskList.d.ts +22 -11
- package/dist/components/task/TaskList.js +98 -12
- package/dist/components/task/TaskList.test.js +206 -7
- package/dist/components/task/TaskReferenceBadge.d.ts +12 -0
- package/dist/components/task/TaskReferenceBadge.js +5 -0
- package/dist/components/task/TaskStatusActions.d.ts +12 -0
- package/dist/components/task/TaskStatusActions.js +18 -0
- package/dist/components/task/TaskStatusActions.test.js +45 -0
- package/dist/components/ui/ImageReferenceBadge.d.ts +12 -0
- package/dist/components/ui/ImageReferenceBadge.js +5 -0
- package/dist/components/ui/LevelSelector.d.ts +2 -1
- package/dist/components/ui/LevelSelector.js +2 -2
- package/dist/components/ui/Markdown.d.ts +1 -2
- package/dist/components/ui/Markdown.js +2 -13
- package/dist/components/ui/Modal.d.ts +3 -2
- package/dist/components/ui/Modal.js +4 -3
- package/dist/components/ui/MultiSelectFilter.d.ts +3 -1
- package/dist/components/ui/MultiSelectFilter.js +2 -2
- package/dist/components/ui/ReferenceBadgeButton.d.ts +13 -0
- package/dist/components/ui/ReferenceBadgeButton.js +6 -0
- package/dist/components/ui/TaxonomyDropdown.d.ts +7 -1
- package/dist/components/ui/TaxonomyDropdown.js +58 -23
- package/dist/components/ui/TopNoticeLayer.d.ts +7 -0
- package/dist/components/ui/TopNoticeLayer.js +14 -0
- package/dist/components/ui/TopNoticeLayer.test.js +25 -0
- package/dist/components/views/AppShellHeader.d.ts +13 -0
- package/dist/components/views/AppShellHeader.js +19 -0
- package/dist/components/views/AppShellHeader.test.js +21 -0
- package/dist/components/views/PlanComparisonPage.d.ts +73 -0
- package/dist/components/views/PlanComparisonPage.js +196 -0
- package/dist/components/views/PlanComparisonPage.test.js +251 -0
- package/dist/components/views/PlansPage.d.ts +14 -0
- package/dist/components/views/PlansPage.js +355 -0
- package/dist/components/views/StandaloneLayout.d.ts +2 -2
- package/dist/components/views/StandaloneLayout.js +2227 -1188
- package/dist/components/views/WidgetView.d.ts +2 -2
- package/dist/components/views/WidgetView.js +149 -43
- package/dist/components/views/chrome/WorkspaceChromeSections.d.ts +57 -0
- package/dist/components/views/chrome/WorkspaceChromeSections.js +38 -0
- package/dist/components/views/chrome/WorkspaceChromeSections.test.js +54 -0
- package/dist/components/views/chrome/workspaceChrome.d.ts +31 -0
- package/dist/components/views/chrome/workspaceChrome.js +108 -0
- package/dist/components/views/chrome/workspaceChrome.test.js +52 -0
- package/dist/components/views/panels/DocumentFilterToolbar.d.ts +10 -0
- package/dist/components/views/panels/DocumentFilterToolbar.js +7 -0
- package/dist/components/views/panels/DocumentFilterToolbar.test.js +19 -0
- package/dist/components/views/panels/FilterToolbar.d.ts +68 -0
- package/dist/components/views/panels/FilterToolbar.js +21 -0
- package/dist/components/views/panels/FilterToolbar.test.d.ts +1 -0
- package/dist/components/views/panels/FilterToolbar.test.js +45 -0
- package/dist/components/views/panels/FilterToolbarControls.d.ts +47 -0
- package/dist/components/views/panels/FilterToolbarControls.js +61 -0
- package/dist/components/views/panels/PlanningDrawer.d.ts +115 -0
- package/dist/components/views/panels/PlanningDrawer.js +220 -0
- package/dist/components/views/panels/ScheduleSidebar.d.ts +52 -0
- package/dist/components/views/panels/ScheduleSidebar.js +127 -0
- package/dist/components/views/panels/scheduleUtils.d.ts +14 -0
- package/dist/components/views/panels/scheduleUtils.js +79 -0
- package/dist/components/views/teamManagementAccess.d.ts +6 -0
- package/dist/components/views/teamManagementAccess.js +18 -0
- package/dist/components/views/teamManagementAccess.test.d.ts +1 -0
- package/dist/components/views/teamManagementAccess.test.js +44 -0
- package/dist/config/clientDeployment.d.ts +2 -0
- package/dist/config/clientDeployment.js +13 -0
- package/dist/config/cloudEnvironment.d.ts +15 -0
- package/dist/config/cloudEnvironment.js +60 -0
- package/dist/config/deployment.d.ts +20 -0
- package/dist/config/deployment.js +67 -0
- package/dist/config/deployment.test.d.ts +1 -0
- package/dist/config/deployment.test.js +88 -0
- package/dist/config/envSchema.js +36 -8
- package/dist/config/envSchema.test.js +28 -0
- package/dist/core/AiProfileService.d.ts +66 -0
- package/dist/core/AiProfileService.js +320 -0
- package/dist/core/AiProfileService.test.d.ts +1 -0
- package/dist/core/AiProfileService.test.js +164 -0
- package/dist/core/AiProfiles.test.d.ts +1 -0
- package/dist/core/AiProfiles.test.js +449 -0
- package/dist/core/AttachmentLinkService.d.ts +15 -0
- package/dist/core/AttachmentLinkService.js +157 -0
- package/dist/core/AuthTokenService.d.ts +44 -0
- package/dist/core/AuthTokenService.js +207 -0
- package/dist/core/CreatedBy.test.js +134 -6
- package/dist/core/DeletedTaskLifecycleService.d.ts +33 -0
- package/dist/core/DeletedTaskLifecycleService.js +158 -0
- package/dist/core/DeletedTaskTrash.test.d.ts +1 -0
- package/dist/core/DeletedTaskTrash.test.js +104 -0
- package/dist/core/EntitlementsPolicy.test.js +78 -5
- package/dist/core/GlobalSettingsService.d.ts +16 -0
- package/dist/core/GlobalSettingsService.js +370 -0
- package/dist/core/JsonBackupRuntime.test.d.ts +1 -0
- package/dist/core/JsonBackupRuntime.test.js +155 -0
- package/dist/core/McpTokenService.d.ts +118 -0
- package/dist/core/McpTokenService.js +921 -0
- package/dist/core/PlanEntitlementService.d.ts +201 -0
- package/dist/core/PlanEntitlementService.js +1442 -0
- package/dist/core/PlanVersionPolicy.test.d.ts +1 -0
- package/dist/core/PlanVersionPolicy.test.js +178 -0
- package/dist/core/PlanningEntities.test.d.ts +1 -0
- package/dist/core/PlanningEntities.test.js +95 -0
- package/dist/core/ScheduleFields.test.js +15 -19
- package/dist/core/SignupMonetizationSettings.test.d.ts +1 -0
- package/dist/core/SignupMonetizationSettings.test.js +159 -0
- package/dist/core/Stats.test.d.ts +1 -0
- package/dist/core/Stats.test.js +36 -0
- package/dist/core/SyncReconciliationService.d.ts +93 -0
- package/dist/core/SyncReconciliationService.js +406 -0
- package/dist/core/SystemAdmin.test.js +578 -13
- package/dist/core/TaskActivityService.d.ts +21 -0
- package/dist/core/TaskActivityService.js +130 -0
- package/dist/core/TaskAttachmentsCanonical.test.d.ts +1 -0
- package/dist/core/TaskAttachmentsCanonical.test.js +306 -0
- package/dist/core/TaskAuditTimeline.test.d.ts +1 -0
- package/dist/core/TaskAuditTimeline.test.js +132 -0
- package/dist/core/TaskTaxonomyValidation.test.js +338 -15
- package/dist/core/Taskforce.d.ts +930 -183
- package/dist/core/Taskforce.ids.test.js +252 -0
- package/dist/core/Taskforce.js +3848 -2532
- package/dist/core/Taskforce.mcpAuth.test.d.ts +1 -0
- package/dist/core/Taskforce.mcpAuth.test.js +343 -0
- package/dist/core/Taskforce.realtimeMutation.test.js +57 -2
- package/dist/core/TaxonomySettingsService.d.ts +18 -0
- package/dist/core/TaxonomySettingsService.js +162 -0
- package/dist/core/WorkspaceDelete.test.js +32 -13
- package/dist/core/WorkspaceLifecycleService.d.ts +11 -0
- package/dist/core/WorkspaceLifecycleService.js +88 -0
- package/dist/core/WorkspacePermissions.test.js +95 -0
- package/dist/core/WorkspacePlanMode.test.js +114 -1
- package/dist/core/WorkspacePreferenceService.d.ts +41 -0
- package/dist/core/WorkspacePreferenceService.js +246 -0
- package/dist/core/WorkspaceSyncSettings.test.d.ts +1 -0
- package/dist/core/WorkspaceSyncSettings.test.js +65 -0
- package/dist/core/__tests__/TaskAttachmentsCanonical.test.d.ts +1 -0
- package/dist/core/__tests__/TaskAttachmentsCanonical.test.js +212 -0
- package/dist/core/shared.d.ts +36 -0
- package/dist/core/shared.js +128 -0
- package/dist/core/types.d.ts +614 -0
- package/dist/core/types.js +27 -0
- package/dist/documentReviews/DocumentReviewCommentStore.d.ts +56 -0
- package/dist/documentReviews/DocumentReviewCommentStore.js +230 -0
- package/dist/documentReviews/DocumentReviewSessionStore.d.ts +52 -0
- package/dist/documentReviews/DocumentReviewSessionStore.js +193 -0
- package/dist/documentReviews/DocumentReviewSessionStore.test.d.ts +1 -0
- package/dist/documentReviews/DocumentReviewSessionStore.test.js +127 -0
- package/dist/documentReviews/service.d.ts +68 -0
- package/dist/documentReviews/service.js +210 -0
- package/dist/documentReviews/types.d.ts +58 -0
- package/dist/documentReviews/types.js +1 -0
- package/dist/hooks/auth/useAuthGuardPolicy.d.ts +2 -0
- package/dist/hooks/auth/useAuthGuardPolicy.js +1 -0
- package/dist/hooks/tasks/useCurrentTaskRelations.d.ts +15 -0
- package/dist/hooks/tasks/useCurrentTaskRelations.js +37 -0
- package/dist/hooks/tasks/useTaskActions.d.ts +3 -0
- package/dist/hooks/tasks/useTaskActions.js +2 -0
- package/dist/hooks/tasks/useTaskEditorNavigation.d.ts +65 -0
- package/dist/hooks/tasks/useTaskEditorNavigation.js +235 -0
- package/dist/hooks/tasks/useTaskFilters.d.ts +2 -0
- package/dist/hooks/tasks/useTaskFilters.js +2 -0
- package/dist/hooks/tasks/useTaskFormActions.d.ts +58 -0
- package/dist/hooks/tasks/useTaskFormActions.js +365 -0
- package/dist/hooks/tasks/useTaskRelationships.d.ts +16 -0
- package/dist/hooks/tasks/useTaskRelationships.js +64 -0
- package/dist/hooks/ui/useResourceExport.d.ts +19 -0
- package/dist/hooks/ui/useResourceExport.js +84 -0
- package/dist/hooks/ui/useSettingsModel.d.ts +203 -0
- package/dist/hooks/ui/useSettingsModel.js +125 -0
- package/dist/hooks/ui/useSettingsPersistence.d.ts +36 -0
- package/dist/hooks/ui/useSettingsPersistence.js +254 -0
- package/dist/hooks/ui/useSettingsTaxonomyManagement.d.ts +119 -0
- package/dist/hooks/ui/useSettingsTaxonomyManagement.js +536 -0
- package/dist/hooks/ui/useUiNotice.d.ts +1 -0
- package/dist/hooks/ui/useUiNotice.js +1 -0
- package/dist/hooks/ui/useWorkflowTemplates.d.ts +37 -0
- package/dist/hooks/ui/useWorkflowTemplates.js +111 -0
- package/dist/hooks/ui/useZenMode.d.ts +5 -0
- package/dist/hooks/ui/useZenMode.js +32 -0
- package/dist/hooks/useFilterSort.d.ts +60 -0
- package/dist/hooks/useFilterSort.js +362 -0
- package/dist/hooks/useFilterSort.test.d.ts +1 -0
- package/dist/hooks/useFilterSort.test.js +333 -0
- package/dist/hooks/useRealtimeSync.d.ts +1 -0
- package/dist/hooks/useRealtimeSync.js +24 -9
- package/dist/hooks/useRealtimeSync.test.js +28 -1
- package/dist/hooks/useSyncOrchestrator.aiProfiles.test.d.ts +1 -0
- package/dist/hooks/useSyncOrchestrator.aiProfiles.test.js +34 -0
- package/dist/hooks/useSyncOrchestrator.d.ts +65 -103
- package/dist/hooks/useSyncOrchestrator.js +1538 -670
- package/dist/hooks/useSyncOrchestrator.retry-closure.test.js +700 -174
- package/dist/hooks/useTaskData.d.ts +35 -0
- package/dist/hooks/useTaskData.js +243 -0
- package/dist/hooks/useTaskData.test.d.ts +1 -0
- package/dist/hooks/useTaskData.test.js +180 -0
- package/dist/hooks/useTaskMutations.d.ts +46 -0
- package/dist/hooks/useTaskMutations.js +472 -0
- package/dist/hooks/useTaskMutations.test.d.ts +1 -0
- package/dist/hooks/useTaskMutations.test.js +80 -0
- package/dist/hooks/useTaskforce.contract.test.d.ts +1 -0
- package/dist/hooks/useTaskforce.contract.test.js +7 -0
- package/dist/hooks/useTaskforce.d.ts +260 -295
- package/dist/hooks/useTaskforce.js +1954 -2623
- package/dist/hooks/useTaskforce.priority-filters.test.js +6 -11
- package/dist/hooks/useTaskforce.sync-behavior.test.d.ts +1 -0
- package/dist/hooks/useTaskforce.sync-behavior.test.js +1120 -0
- package/dist/hooks/useUiNotice.d.ts +16 -0
- package/dist/hooks/useUiNotice.js +49 -0
- package/dist/hooks/useWorkspaceSyncController.d.ts +23 -46
- package/dist/hooks/useWorkspaceSyncController.js +280 -461
- package/dist/hooks/useWorkspaceSyncController.test.js +106 -199
- package/dist/hooks/workspace/useTaskforceApiRouting.d.ts +8 -0
- package/dist/hooks/workspace/useTaskforceApiRouting.js +91 -0
- package/dist/hooks/workspace/useTaskforceApiRouting.test.d.ts +1 -0
- package/dist/hooks/workspace/useTaskforceApiRouting.test.js +60 -0
- package/dist/hooks/workspace/useWorkspaceSyncController.d.ts +1 -0
- package/dist/hooks/workspace/useWorkspaceSyncController.js +1 -0
- package/dist/hooks/workspace/workspaceLocalState.d.ts +30 -0
- package/dist/hooks/workspace/workspaceLocalState.js +101 -0
- package/dist/localization/locales/en-US.d.ts +1 -8
- package/dist/localization/locales/en-US.js +4 -11
- package/dist/localization/locales/es-419.js +2 -9
- package/dist/localization/locales/pt-BR.js +2 -9
- package/dist/localization/localizationCatalogs.test.d.ts +1 -0
- package/dist/localization/localizationCatalogs.test.js +37 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +9 -15
- package/dist/mcp/clientIntegrations.d.ts +33 -0
- package/dist/mcp/clientIntegrations.js +199 -0
- package/dist/mcp/clientIntegrations.test.d.ts +1 -0
- package/dist/mcp/clientIntegrations.test.js +110 -0
- package/dist/mcp/index.d.ts +2 -0
- package/dist/mcp/index.js +2 -0
- package/dist/mcp/optionResolution.test.js +6 -2
- package/dist/mcp/runtime.d.ts +120 -0
- package/dist/mcp/runtime.js +5668 -0
- package/dist/mcp/runtime.test.d.ts +1 -0
- package/dist/mcp/runtime.test.js +3299 -0
- package/dist/mcp/server.js +2 -1793
- package/dist/mcp/structuredCommentValidation.test.d.ts +1 -0
- package/dist/{__tests__ → mcp}/structuredCommentValidation.test.js +1 -1
- package/dist/mcp/structuredDocValidation.js +1 -2
- package/dist/mcp/structuredDocValidation.test.d.ts +1 -0
- package/dist/{__tests__ → mcp}/structuredDocValidation.test.js +9 -4
- package/dist/mcp/toolRegistry.d.ts +570 -0
- package/dist/mcp/toolRegistry.js +90 -0
- package/dist/mcp/toolRegistry.test.d.ts +1 -0
- package/dist/mcp/toolRegistry.test.js +30 -0
- package/dist/migrations/billingSchemaParity.test.js +111 -0
- package/dist/migrations/taskSchemaMigrations.d.ts +5 -0
- package/dist/migrations/taskSchemaMigrations.js +681 -39
- package/dist/migrations/taskSchemaMigrations.test.d.ts +1 -0
- package/dist/migrations/taskSchemaMigrations.test.js +210 -0
- package/dist/plugins/vite.js +13 -7
- package/dist/public/apple-touch-icon.png +0 -0
- package/dist/public/archive/phoenix/apple-touch-icon.png +0 -0
- package/dist/public/archive/phoenix/favicon.ico +0 -0
- package/dist/public/archive/phoenix/site.webmanifest +1 -0
- package/dist/public/favicon-96x96.png +0 -0
- package/dist/public/favicon.ico +0 -0
- package/dist/public/favicon.svg +17 -0
- package/dist/public/site.webmanifest +21 -1
- package/dist/public/web-app-manifest-192x192.png +0 -0
- package/dist/public/web-app-manifest-512x512.png +0 -0
- package/dist/releaseVersion.test.d.ts +1 -0
- package/dist/{__tests__/releaseVersion.test.js → releaseVersion.test.js} +1 -1
- package/dist/resources/templates/WORKFLOW_V2_POLICY.md +1 -1
- package/dist/resources/templates/workflow-sources/workflowDocs.mjs +62 -52
- package/dist/resources/templates/workflows/collaborate.yaml +11 -5
- package/dist/resources/templates/workflows/do.yaml +8 -2
- package/dist/resources/templates/workflows/evaluate.yaml +13 -7
- package/dist/resources/templates/workflows/execute.yaml +40 -23
- package/dist/resources/templates/workflows/plan.yaml +15 -8
- package/dist/resources/templates/workflows/review.yaml +14 -8
- package/dist/runtime/appGateDefinitions.d.ts +32 -0
- package/dist/runtime/appGateDefinitions.js +32 -0
- package/dist/runtime/appGates.d.ts +29 -0
- package/dist/runtime/appGates.js +53 -0
- package/dist/runtime/appGates.test.d.ts +1 -0
- package/dist/runtime/appGates.test.js +42 -0
- package/dist/runtime/migrationFlags.d.ts +1 -0
- package/dist/runtime/migrationFlags.js +1 -0
- package/dist/server/annotatedAttachmentsRoutes.test.d.ts +1 -0
- package/dist/server/annotatedAttachmentsRoutes.test.js +473 -0
- package/dist/server/auth.js +14 -2
- package/dist/server/auth.test.js +21 -1
- package/dist/server/cors.js +11 -5
- package/dist/server/cors.test.js +6 -0
- package/dist/server/documentReviewRoutes.test.d.ts +1 -0
- package/dist/server/documentReviewRoutes.test.js +157 -0
- package/dist/server/index.cookieProxy.test.js +46 -1
- package/dist/server/index.d.ts +20 -0
- package/dist/server/index.js +168 -41
- package/dist/server/index.rateLimit.test.js +6 -0
- package/dist/server/index.test.js +133 -2
- package/dist/server/mockStripe.d.ts +72 -0
- package/dist/server/mockStripe.js +357 -0
- package/dist/server/realtimeSyncWs.js +4 -0
- package/dist/server/routes/admin.d.ts +114 -0
- package/dist/server/routes/admin.js +2226 -0
- package/dist/server/routes/annotatedAttachments.d.ts +24 -0
- package/dist/server/routes/annotatedAttachments.js +235 -0
- package/dist/server/routes/auth.d.ts +61 -0
- package/dist/server/routes/auth.js +1296 -0
- package/dist/server/{routes.billing.d.ts → routes/billing.d.ts} +3 -2
- package/dist/server/routes/billing.js +2001 -0
- package/dist/server/routes/billing.test.d.ts +1 -0
- package/dist/server/routes/billing.test.js +1631 -0
- package/dist/server/routes/documentReviews.d.ts +11 -0
- package/dist/server/routes/documentReviews.js +191 -0
- package/dist/server/routes/documents.d.ts +118 -0
- package/dist/server/routes/documents.js +1113 -0
- package/dist/server/routes/resources.d.ts +25 -0
- package/dist/server/routes/resources.js +225 -0
- package/dist/server/routes/shared.d.ts +35 -0
- package/dist/server/routes/shared.js +305 -0
- package/dist/server/routes/shared.test.d.ts +1 -0
- package/dist/server/routes/shared.test.js +32 -0
- package/dist/server/{routes.sync.d.ts → routes/sync.d.ts} +5 -5
- package/dist/server/routes/sync.integration.test.d.ts +1 -0
- package/dist/server/routes/sync.integration.test.js +2003 -0
- package/dist/server/routes/sync.js +3143 -0
- package/dist/server/routes/tasks.d.ts +72 -0
- package/dist/server/routes/tasks.js +1252 -0
- package/dist/server/routes/workspaces.d.ts +32 -0
- package/dist/server/routes/workspaces.js +307 -0
- package/dist/server/routes.d.ts +8 -9
- package/dist/server/routes.js +968 -4092
- package/dist/server/routes.test.js +9043 -2415
- package/dist/server/runtimeMode.d.ts +1 -1
- package/dist/server/runtimeMode.js +3 -18
- package/dist/server/runtimeMode.test.js +3 -3
- package/dist/server/securityHeaders.d.ts +1 -1
- package/dist/server/securityHeaders.js +65 -6
- package/dist/server/securityHeaders.test.js +40 -2
- package/dist/services/templateEngine.test.d.ts +1 -0
- package/dist/{__tests__ → services}/templateEngine.test.js +1 -1
- package/dist/services/templates.test.d.ts +1 -0
- package/dist/{__tests__ → services}/templates.test.js +1 -1
- package/dist/services/workflowDocumentFixtures.test.d.ts +1 -0
- package/dist/{__tests__ → services}/workflowDocumentFixtures.test.js +4 -4
- package/dist/services/workflowExportMatrix.test.d.ts +1 -0
- package/dist/{__tests__ → services}/workflowExportMatrix.test.js +1 -1
- package/dist/services/workflowExportSnapshots.test.d.ts +1 -0
- package/dist/services/workflowGeneration.test.d.ts +1 -0
- package/dist/services/workflowSimulation.test.d.ts +1 -0
- package/dist/services/workflowSimulation.test.js +113 -0
- package/dist/services/workflowV2Policy.test.d.ts +1 -0
- package/dist/{__tests__ → services}/workflowV2Policy.test.js +2 -2
- package/dist/shared/aiProfileSurfaceType.d.ts +9 -0
- package/dist/shared/aiProfileSurfaceType.js +49 -0
- package/dist/shared/customTaxonomyLibrary.d.ts +11 -0
- package/dist/shared/customTaxonomyLibrary.js +276 -0
- package/dist/shared/customTaxonomyLibrary.test.d.ts +1 -0
- package/dist/shared/customTaxonomyLibrary.test.js +20 -0
- package/dist/shared/taxonomyCatalog.d.ts +19 -0
- package/dist/shared/taxonomyCatalog.js +36 -0
- package/dist/shared/taxonomyDefaults.d.ts +29 -0
- package/dist/shared/taxonomyDefaults.js +26 -0
- package/dist/shared/taxonomyLibrary.d.ts +15 -0
- package/dist/shared/taxonomyLibrary.js +98 -0
- package/dist/shared/taxonomyLibrary.test.d.ts +1 -0
- package/dist/shared/taxonomyLibrary.test.js +26 -0
- package/dist/shared/taxonomyState.d.ts +36 -0
- package/dist/shared/taxonomyState.js +73 -0
- package/dist/shared/taxonomyState.test.d.ts +1 -0
- package/dist/shared/taxonomyState.test.js +71 -0
- package/dist/shared/workflowDefaults.d.ts +9 -0
- package/dist/shared/workflowDefaults.js +11 -0
- package/dist/storage/documentIntegrity.d.ts +2 -0
- package/dist/storage/documentIntegrity.js +34 -17
- package/dist/storage/documentPurge.d.ts +2 -1
- package/dist/storage/documentPurge.js +35 -8
- package/dist/storage/index.d.ts +4 -0
- package/dist/storage/index.js +2 -0
- package/dist/storage/objectStorage.d.ts +1 -1
- package/dist/storage/objectStorageClient.d.ts +6 -4
- package/dist/storage/objectStorageClient.js +77 -29
- package/dist/storage/objectStorageClient.test.d.ts +1 -0
- package/dist/storage/objectStorageClient.test.js +57 -0
- package/dist/storage/objectStorageConfig.js +3 -1
- package/dist/storage/objectStorageConfig.test.d.ts +1 -0
- package/dist/storage/objectStorageConfig.test.js +38 -0
- package/dist/storage/postgresAdapter.d.ts +5 -0
- package/dist/storage/postgresAdapter.js +2 -2
- package/dist/storage/postgresAdapter.test.d.ts +1 -0
- package/dist/storage/postgresAdapter.test.js +29 -0
- package/dist/storage/taskAssetStore.d.ts +7 -4
- package/dist/storage/taskAssetStore.js +65 -60
- package/dist/storage/workspaceAssetStore.d.ts +122 -0
- package/dist/storage/workspaceAssetStore.js +496 -0
- package/dist/storage/workspaceAssetStore.test.d.ts +1 -0
- package/dist/storage/workspaceAssetStore.test.js +501 -0
- package/dist/sync/cloudSyncApi.d.ts +33 -2
- package/dist/sync/cloudSyncApi.js +37 -15
- package/dist/sync/cloudSyncApi.test.js +60 -3
- package/dist/sync/index.d.ts +2 -0
- package/dist/sync/index.js +3 -0
- package/dist/sync/syncService.d.ts +25 -0
- package/dist/sync/syncService.js +184 -16
- package/dist/sync/syncService.test.js +289 -25
- package/dist/sync/workspaceRepair.d.ts +114 -0
- package/dist/sync/workspaceRepair.js +566 -0
- package/dist/sync/workspaceSyncModel.d.ts +230 -2
- package/dist/sync/workspaceSyncModel.js +456 -17
- package/dist/sync/workspaceSyncModel.test.js +642 -0
- package/dist/sync/workspaceSyncState.d.ts +12 -0
- package/dist/sync/workspaceSyncState.js +12 -0
- package/dist/sync/workspaceSyncSurface.d.ts +33 -0
- package/dist/sync/workspaceSyncSurface.js +74 -0
- package/dist/types.d.ts +143 -18
- package/dist/types.js +9 -24
- package/dist/ui/assets/AgentsModule-Bdq3T1Ts.js +1 -0
- package/dist/ui/assets/AnnotatedAttachmentWorkspace-BaS2VwIr.css +1 -0
- package/dist/ui/assets/AnnotatedAttachmentWorkspace-jKUVo-PJ.js +3 -0
- package/dist/ui/assets/DocumentWorkspace-C_8T8oz-.css +1 -0
- package/dist/ui/assets/DocumentWorkspace-DuQa-uIC.js +250 -0
- package/dist/ui/assets/InitiativesModule-C8Pi2VTk.js +1 -0
- package/dist/ui/assets/PlansPage-B6BDECSi.js +1 -0
- package/dist/ui/assets/PlansPage-BlVC_lRq.css +1 -0
- package/dist/ui/assets/TaskSettings-BwB9NtmJ.css +1 -0
- package/dist/ui/assets/TaskSettings-DUJgRTPU.js +8 -0
- package/dist/ui/assets/WorkflowsModule-b6TLuHwJ.js +5 -0
- package/dist/ui/assets/index-BiiF1cLQ.css +1 -0
- package/dist/ui/assets/index-xBWLPOEb.js +6 -0
- package/dist/ui/assets/vendor-dnd-DRzYolkg.js +5 -0
- package/dist/ui/assets/{vendor-icons-ZFG3SGwo.js → vendor-icons-QZyhEwgT.js} +1 -1
- package/dist/ui/assets/{vendor-markdown-CKYkQHfj.js → vendor-markdown-BUxTU7dS.js} +1 -1
- package/dist/ui/assets/vendor-react-CKJs5o3c.js +61 -0
- package/dist/ui/assets/vendor-router-BbWMxlnO.js +3 -0
- package/dist/ui/branding/logos/logo.png +0 -0
- package/dist/ui/branding/logos/logo_dark.svg +27 -0
- package/dist/ui/branding/logos/logo_favicon.svg +35 -0
- package/dist/ui/branding/logos/logo_light.svg +27 -0
- package/dist/ui/favicon/apple-touch-icon.png +0 -0
- package/dist/ui/favicon/archive/phoenix/apple-touch-icon.png +0 -0
- package/dist/ui/favicon/archive/phoenix/favicon.ico +0 -0
- package/dist/ui/favicon/archive/phoenix/site.webmanifest +1 -0
- package/dist/ui/favicon/favicon-96x96.png +0 -0
- package/dist/ui/favicon/favicon.ico +0 -0
- package/dist/ui/favicon/favicon.svg +17 -0
- package/dist/ui/favicon/site.webmanifest +21 -1
- package/dist/ui/favicon/web-app-manifest-192x192.png +0 -0
- package/dist/ui/favicon/web-app-manifest-512x512.png +0 -0
- package/dist/ui/index.html +10 -7
- package/dist/ui/product/screen_01.png +0 -0
- package/dist/ui/product/screen_02.png +0 -0
- package/dist/ui/product/screen_03.png +0 -0
- package/dist/utils/annotatedAttachments.d.ts +20 -0
- package/dist/utils/annotatedAttachments.js +74 -0
- package/dist/utils/annotatedAttachments.test.d.ts +1 -0
- package/dist/utils/annotatedAttachments.test.js +108 -0
- package/dist/utils/assignees.d.ts +26 -0
- package/dist/utils/assignees.js +132 -0
- package/dist/utils/canonicalAssetKind.d.ts +16 -0
- package/dist/utils/canonicalAssetKind.js +39 -0
- package/dist/utils/canonicalAssetKind.test.d.ts +1 -0
- package/dist/utils/canonicalAssetKind.test.js +24 -0
- package/dist/utils/coalescedRefresh.d.ts +5 -0
- package/dist/utils/coalescedRefresh.js +16 -0
- package/dist/utils/coalescedRefresh.test.d.ts +1 -0
- package/dist/utils/coalescedRefresh.test.js +30 -0
- package/dist/utils/constants.d.ts +16 -3
- package/dist/utils/constants.icons.test.js +2 -1
- package/dist/utils/constants.js +70 -13
- package/dist/utils/contextAssetEvents.d.ts +7 -0
- package/dist/utils/contextAssetEvents.js +6 -0
- package/dist/utils/contextFiles.d.ts +14 -3
- package/dist/utils/contextFiles.js +40 -8
- package/dist/utils/documentManagerApi.d.ts +6 -0
- package/dist/utils/documentManagerApi.js +19 -0
- package/dist/utils/documentNames.d.ts +24 -0
- package/dist/utils/documentNames.js +91 -0
- package/dist/utils/documentReferences.d.ts +9 -0
- package/dist/utils/documentReferences.js +11 -0
- package/dist/utils/entityReferences.d.ts +9 -0
- package/dist/utils/entityReferences.js +32 -0
- package/dist/utils/imageReferences.d.ts +9 -0
- package/dist/utils/imageReferences.js +11 -0
- package/dist/utils/planParser.d.ts +2 -2
- package/dist/utils/planParser.js +11 -11
- package/dist/utils/planParser.test.d.ts +1 -0
- package/dist/{__tests__ → utils}/planParser.test.js +22 -22
- package/dist/utils/planningReferences.d.ts +17 -0
- package/dist/utils/planningReferences.js +30 -0
- package/dist/utils/planningReferences.test.d.ts +1 -0
- package/dist/utils/planningReferences.test.js +17 -0
- package/dist/utils/taskActivity.d.ts +9 -0
- package/dist/utils/taskActivity.js +147 -0
- package/dist/utils/taskActivity.test.d.ts +1 -0
- package/dist/utils/taskActivity.test.js +34 -0
- package/dist/utils/taskDraftDefaults.d.ts +21 -0
- package/dist/utils/taskDraftDefaults.js +40 -0
- package/dist/utils/taskDraftDefaults.test.d.ts +1 -0
- package/dist/utils/taskDraftDefaults.test.js +34 -0
- package/dist/utils/taskNormalization.d.ts +25 -0
- package/dist/utils/taskNormalization.js +161 -0
- package/dist/utils/taskNormalization.test.d.ts +1 -0
- package/dist/utils/taskNormalization.test.js +158 -0
- package/dist/utils/taskReferences.d.ts +5 -0
- package/dist/utils/taskReferences.js +11 -0
- package/dist/utils/taskforceApiClient.d.ts +2 -0
- package/dist/utils/taskforceApiClient.js +101 -3
- package/dist/utils/taskforceApiClient.test.d.ts +1 -0
- package/dist/utils/taskforceApiClient.test.js +44 -0
- package/dist/utils/taxonomyFilterOptions.d.ts +2 -0
- package/dist/utils/taxonomyFilterOptions.js +17 -0
- package/dist/utils/taxonomyFormDefaults.d.ts +3 -0
- package/dist/utils/taxonomyFormDefaults.js +28 -0
- package/dist/utils/taxonomyFormDefaults.test.d.ts +1 -0
- package/dist/utils/taxonomyFormDefaults.test.js +63 -0
- package/dist/utils/taxonomyLifecycle.d.ts +3 -0
- package/dist/utils/taxonomyLifecycle.js +17 -0
- package/dist/utils/taxonomySorting.d.ts +7 -0
- package/dist/utils/taxonomySorting.js +74 -0
- package/dist/utils/theme.d.ts +15 -0
- package/dist/utils/theme.js +23 -0
- package/dist/utils/uiNotice.d.ts +7 -0
- package/dist/utils/uiNotice.js +6 -0
- package/dist/utils/uiNotice.test.d.ts +1 -0
- package/dist/utils/uiNotice.test.js +18 -0
- package/dist/utils/workspaceIdentity.d.ts +14 -0
- package/dist/utils/workspaceIdentity.js +21 -0
- package/dist/utils/workspaceIdentity.test.js +30 -1
- package/dist/utils/workspaceSyncPresentation.d.ts +20 -0
- package/dist/utils/workspaceSyncPresentation.js +21 -0
- package/dist/utils/workspaceSyncPresentation.test.d.ts +1 -0
- package/dist/utils/workspaceSyncPresentation.test.js +36 -0
- package/package.json +30 -23
- package/scripts/bootstrap-playwright-auth.mjs +155 -0
- package/scripts/check-compat-boundaries.mjs +41 -0
- package/scripts/check-env.ts +9 -2
- package/scripts/debug-login.mjs +32 -0
- package/scripts/deploy-prod.sh +41 -0
- package/scripts/deploy-staging.sh +23 -0
- package/scripts/migrate-planning-model.ts +233 -0
- package/scripts/migrate-task-data-assets.mjs +408 -0
- package/scripts/playwright-auth.sh +11 -0
- package/scripts/run-dev-proxy.sh +2 -0
- package/scripts/update-homebrew-formula.sh +2 -2
- package/scripts/with-esbuild.sh +11 -0
- package/src/resources/templates/WORKFLOW_V2_POLICY.md +1 -1
- package/src/resources/templates/workflow-sources/workflowDocs.mjs +62 -52
- package/src/resources/templates/workflows/collaborate.yaml +11 -5
- package/src/resources/templates/workflows/do.yaml +8 -2
- package/src/resources/templates/workflows/evaluate.yaml +13 -7
- package/src/resources/templates/workflows/execute.yaml +40 -23
- package/src/resources/templates/workflows/plan.yaml +15 -8
- package/src/resources/templates/workflows/review.yaml +14 -8
- package/dist/TaskforceScreenshot.d.ts +0 -11
- package/dist/TaskforceScreenshot.js +0 -113
- package/dist/compat/priorityCompat.d.ts +0 -2
- package/dist/compat/priorityCompat.js +0 -24
- package/dist/components/features/settings/TaxonomyManager 2.d.ts +0 -52
- package/dist/components/features/settings/TaxonomyManager 2.js +0 -75
- package/dist/components/task/TaskKanban 2.d.ts +0 -76
- package/dist/components/task/TaskKanban 2.js +0 -1004
- package/dist/components/task/TaskScreenshotSection.d.ts +0 -15
- package/dist/components/task/TaskScreenshotSection.js +0 -22
- package/dist/components/views/StandaloneLayout 2.d.ts +0 -8
- package/dist/components/views/StandaloneLayout 2.js +0 -1660
- package/dist/core/InitiativeTemplates.test.js +0 -50
- package/dist/core/ParentLifecycle.test.js +0 -98
- package/dist/migrations/clientMigrations.d.ts +0 -9
- package/dist/migrations/clientMigrations.js +0 -74
- package/dist/migrations/flags.d.ts +0 -6
- package/dist/migrations/flags.js +0 -8
- package/dist/migrations/taskMigrations.d.ts +0 -71
- package/dist/migrations/taskMigrations.js +0 -236
- package/dist/migrations/taskMigrations.test.js +0 -34
- package/dist/server/routes.billing.js +0 -991
- package/dist/server/routes.billing.test.js +0 -387
- package/dist/server/routes.sync.integration.test.js +0 -470
- package/dist/server/routes.sync.js +0 -1141
- package/dist/soak/syncSoakHarness.d.ts +0 -6
- package/dist/soak/syncSoakHarness.js +0 -10
- package/dist/ui/assets/index-0W5vyCpn.css +0 -1
- package/dist/ui/assets/index-MCZuNNfn.js +0 -23
- package/dist/ui/assets/logo_white_01-0Vx-iIIv.png +0 -0
- package/dist/ui/assets/vendor-dnd-BI1K77C1.js +0 -5
- package/dist/ui/assets/vendor-react-DdIDsh7f.js +0 -9
- package/dist/ui/assets/vendor-router-BtiNU7Dl.js +0 -3
- package/dist/utils/taskHierarchy.d.ts +0 -4
- package/dist/utils/taskHierarchy.js +0 -69
- package/dist/utils/taskHierarchy.test.js +0 -38
- package/dist/utils/taskParenting.d.ts +0 -3
- package/dist/utils/taskParenting.js +0 -24
- package/dist/utils/taskParenting.test.js +0 -21
- package/dist/utils/taskRelations.d.ts +0 -6
- package/dist/utils/taskRelations.js +0 -24
- package/dist/utils/taskRelations.test.js +0 -34
- package/scripts/check-compat-boundaries.js +0 -48
- /package/dist/{__tests__/planParser.test.d.ts → TaskforceCore.filter-persistence.test.d.ts} +0 -0
- /package/dist/{__tests__/releaseVersion.test.d.ts → TaskforceCore.routing.test.d.ts} +0 -0
- /package/dist/{__tests__/structuredCommentValidation.test.d.ts → annotatedAttachments/AnnotatedAttachmentSessionStore.test.d.ts} +0 -0
- /package/dist/{__tests__/structuredDocValidation.test.d.ts → annotatedAttachments/payload.test.d.ts} +0 -0
- /package/dist/{__tests__/templateEngine.test.d.ts → annotatedAttachments/types.js} +0 -0
- /package/dist/{__tests__/templates.test.d.ts → compat/workspaceSyncCompat.test.d.ts} +0 -0
- /package/dist/{__tests__/workflowDocumentFixtures.test.d.ts → components/features/AgentsModule.test.d.ts} +0 -0
- /package/dist/{__tests__/workflowExportMatrix.test.d.ts → components/features/AnnotatedAttachmentWorkspace.test.d.ts} +0 -0
- /package/dist/{__tests__/workflowExportSnapshots.test.d.ts → components/features/DocumentWorkspace.test.d.ts} +0 -0
- /package/dist/{__tests__/workflowGeneration.test.d.ts → components/features/settings/TaxonomyLibraryManager.test.d.ts} +0 -0
- /package/dist/{__tests__/workflowV2Policy.test.d.ts → components/task/TaskActionHeader.test.d.ts} +0 -0
- /package/dist/{core/InitiativeTemplates.test.d.ts → components/task/TaskKanban.planning-drop.test.d.ts} +0 -0
- /package/dist/{core/ParentLifecycle.test.d.ts → components/task/TaskStatusActions.test.d.ts} +0 -0
- /package/dist/{migrations/taskMigrations.test.d.ts → components/ui/TopNoticeLayer.test.d.ts} +0 -0
- /package/dist/{server/routes.billing.test.d.ts → components/views/AppShellHeader.test.d.ts} +0 -0
- /package/dist/{server/routes.sync.integration.test.d.ts → components/views/PlanComparisonPage.test.d.ts} +0 -0
- /package/dist/{utils/taskHierarchy.test.d.ts → components/views/chrome/WorkspaceChromeSections.test.d.ts} +0 -0
- /package/dist/{utils/taskParenting.test.d.ts → components/views/chrome/workspaceChrome.test.d.ts} +0 -0
- /package/dist/{utils/taskRelations.test.d.ts → components/views/panels/DocumentFilterToolbar.test.d.ts} +0 -0
- /package/dist/public/{android-chrome-192x192.png → archive/phoenix/android-chrome-192x192.png} +0 -0
- /package/dist/public/{android-chrome-512x512.png → archive/phoenix/android-chrome-512x512.png} +0 -0
- /package/dist/public/{favicon-16x16.png → archive/phoenix/favicon-16x16.png} +0 -0
- /package/dist/public/{favicon-32x32.png → archive/phoenix/favicon-32x32.png} +0 -0
- /package/dist/public/{favicon.png → archive/phoenix/favicon.png} +0 -0
- /package/dist/{__tests__ → services}/workflowExportSnapshots.test.js +0 -0
- /package/dist/{__tests__ → services}/workflowGeneration.test.js +0 -0
- /package/dist/ui/favicon/{android-chrome-192x192.png → archive/phoenix/android-chrome-192x192.png} +0 -0
- /package/dist/ui/favicon/{android-chrome-512x512.png → archive/phoenix/android-chrome-512x512.png} +0 -0
- /package/dist/ui/favicon/{favicon-16x16.png → archive/phoenix/favicon-16x16.png} +0 -0
- /package/dist/ui/favicon/{favicon-32x32.png → archive/phoenix/favicon-32x32.png} +0 -0
- /package/dist/ui/favicon/{favicon.png → archive/phoenix/favicon.png} +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { TaskItem } from '../types';
|
|
2
|
+
import type { TaskAssetEntry } from '../storage/taskAssetStore.js';
|
|
3
|
+
export interface WorkspaceSyncDocumentSnapshot {
|
|
4
|
+
path: string;
|
|
5
|
+
updatedAt: string;
|
|
6
|
+
content: string;
|
|
7
|
+
}
|
|
8
|
+
export interface WorkspaceSyncAssetSnapshot {
|
|
9
|
+
path: string;
|
|
10
|
+
provider: 'local' | 'r2';
|
|
11
|
+
version: number;
|
|
12
|
+
contentType: string;
|
|
13
|
+
sizeBytes: number;
|
|
14
|
+
sha256: string;
|
|
15
|
+
uploadedAt: string;
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
deletedAt?: string | null;
|
|
18
|
+
quarantineStatus?: string;
|
|
19
|
+
scan?: {
|
|
20
|
+
engine?: string;
|
|
21
|
+
verdict?: string;
|
|
22
|
+
scannedAt?: string;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export type WorkspaceSyncEntityKind = 'task' | 'document' | 'asset';
|
|
26
|
+
export declare function compareWorkspaceMutationOrdering(incomingWatermark: string, existingWatermark: string, incomingTieBreak: string, existingTieBreak: string): number;
|
|
27
|
+
export declare function getTaskMutationWatermark(task: Partial<TaskItem> | null | undefined): string;
|
|
28
|
+
export declare function getTaskMutationTieBreak(task: Partial<TaskItem> | null | undefined, archived: boolean): string;
|
|
29
|
+
export declare function getDocumentMutationWatermark(document: Pick<WorkspaceSyncDocumentSnapshot, 'updatedAt'> | null | undefined): string;
|
|
30
|
+
export declare function getDocumentMutationTieBreak(document: Partial<WorkspaceSyncDocumentSnapshot> | null | undefined): string;
|
|
31
|
+
export declare function getAssetMutationWatermark(asset: Partial<WorkspaceSyncAssetSnapshot> | null | undefined): string;
|
|
32
|
+
export declare function getAssetMutationTieBreak(asset: Partial<WorkspaceSyncAssetSnapshot> | null | undefined): string;
|
|
33
|
+
export declare function buildWorkspaceSyncAssetSnapshot(entry: TaskAssetEntry): WorkspaceSyncAssetSnapshot;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export function compareWorkspaceMutationOrdering(incomingWatermark, existingWatermark, incomingTieBreak, existingTieBreak) {
|
|
2
|
+
const incomingMs = Date.parse(String(incomingWatermark || '').trim());
|
|
3
|
+
const existingMs = Date.parse(String(existingWatermark || '').trim());
|
|
4
|
+
const incomingHasWatermark = Number.isFinite(incomingMs);
|
|
5
|
+
const existingHasWatermark = Number.isFinite(existingMs);
|
|
6
|
+
if (incomingHasWatermark && existingHasWatermark) {
|
|
7
|
+
if (incomingMs > existingMs)
|
|
8
|
+
return 1;
|
|
9
|
+
if (incomingMs < existingMs)
|
|
10
|
+
return -1;
|
|
11
|
+
}
|
|
12
|
+
else if (incomingHasWatermark && !existingHasWatermark) {
|
|
13
|
+
return 1;
|
|
14
|
+
}
|
|
15
|
+
else if (!incomingHasWatermark && existingHasWatermark) {
|
|
16
|
+
return -1;
|
|
17
|
+
}
|
|
18
|
+
return String(incomingTieBreak || '').localeCompare(String(existingTieBreak || ''));
|
|
19
|
+
}
|
|
20
|
+
export function getTaskMutationWatermark(task) {
|
|
21
|
+
return String(task?.updatedAt || task?.createdAt || '').trim();
|
|
22
|
+
}
|
|
23
|
+
export function getTaskMutationTieBreak(task, archived) {
|
|
24
|
+
const source = task || {};
|
|
25
|
+
return JSON.stringify({
|
|
26
|
+
id: String(source.id || ''),
|
|
27
|
+
title: String(source.title || ''),
|
|
28
|
+
status: String(source.status || ''),
|
|
29
|
+
archived: archived ? 1 : 0
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
export function getDocumentMutationWatermark(document) {
|
|
33
|
+
return String(document?.updatedAt || '').trim();
|
|
34
|
+
}
|
|
35
|
+
export function getDocumentMutationTieBreak(document) {
|
|
36
|
+
return JSON.stringify({
|
|
37
|
+
path: String(document?.path || ''),
|
|
38
|
+
length: typeof document?.content === 'string' ? document.content.length : 0,
|
|
39
|
+
content: typeof document?.content === 'string' ? document.content : ''
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
export function getAssetMutationWatermark(asset) {
|
|
43
|
+
return String(asset?.deletedAt || asset?.updatedAt || asset?.uploadedAt || '').trim();
|
|
44
|
+
}
|
|
45
|
+
export function getAssetMutationTieBreak(asset) {
|
|
46
|
+
return JSON.stringify({
|
|
47
|
+
path: String(asset?.path || ''),
|
|
48
|
+
provider: String(asset?.provider || 'local'),
|
|
49
|
+
version: Number(asset?.version || 0),
|
|
50
|
+
sha256: String(asset?.sha256 || ''),
|
|
51
|
+
contentType: String(asset?.contentType || ''),
|
|
52
|
+
sizeBytes: Number(asset?.sizeBytes || 0),
|
|
53
|
+
deletedAt: String(asset?.deletedAt || '')
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
export function buildWorkspaceSyncAssetSnapshot(entry) {
|
|
57
|
+
return {
|
|
58
|
+
path: String(entry.path || '').trim(),
|
|
59
|
+
provider: entry.provider === 'r2' ? 'r2' : 'local',
|
|
60
|
+
version: Number(entry.version || 1),
|
|
61
|
+
contentType: String(entry.contentType || 'application/octet-stream'),
|
|
62
|
+
sizeBytes: Number(entry.sizeBytes || 0),
|
|
63
|
+
sha256: String(entry.sha256 || ''),
|
|
64
|
+
uploadedAt: String(entry.uploadedAt || '').trim(),
|
|
65
|
+
updatedAt: String(entry.updatedAt || entry.uploadedAt || '').trim(),
|
|
66
|
+
deletedAt: entry.deletedAt ? String(entry.deletedAt).trim() : null,
|
|
67
|
+
quarantineStatus: String(entry.quarantineStatus || 'none'),
|
|
68
|
+
scan: {
|
|
69
|
+
engine: String(entry.scan?.engine || ''),
|
|
70
|
+
verdict: String(entry.scan?.verdict || ''),
|
|
71
|
+
scannedAt: String(entry.scan?.scannedAt || '')
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
}
|
package/dist/types.d.ts
CHANGED
|
@@ -3,41 +3,116 @@
|
|
|
3
3
|
*
|
|
4
4
|
* A decoupled, reusable collaborative task manager.
|
|
5
5
|
*/
|
|
6
|
+
export type { TaskforceTheme } from './utils/theme';
|
|
7
|
+
import type { TaskforceTheme } from './utils/theme';
|
|
6
8
|
export interface Environment {
|
|
7
9
|
id: string;
|
|
8
10
|
name: string;
|
|
9
11
|
icon?: string;
|
|
10
12
|
directory: string;
|
|
11
13
|
}
|
|
14
|
+
export interface TaskActor {
|
|
15
|
+
id: string;
|
|
16
|
+
kind: 'human' | 'ai';
|
|
17
|
+
label: string;
|
|
18
|
+
username: string;
|
|
19
|
+
icon: string;
|
|
20
|
+
color: string;
|
|
21
|
+
isNamed: boolean;
|
|
22
|
+
meta?: Record<string, unknown>;
|
|
23
|
+
}
|
|
12
24
|
export interface Comment {
|
|
13
25
|
id: string;
|
|
14
26
|
author: 'user' | 'ai' | string;
|
|
27
|
+
submittedAuthor?: string;
|
|
15
28
|
text: string;
|
|
16
29
|
timestamp: string;
|
|
30
|
+
actor?: TaskActor | null;
|
|
31
|
+
}
|
|
32
|
+
export interface TaskEventChange {
|
|
33
|
+
from: unknown;
|
|
34
|
+
to: unknown;
|
|
35
|
+
}
|
|
36
|
+
export interface TaskEventDetails {
|
|
37
|
+
changes?: Record<string, TaskEventChange>;
|
|
38
|
+
[key: string]: unknown;
|
|
39
|
+
}
|
|
40
|
+
export interface TaskEvent {
|
|
41
|
+
id: string;
|
|
42
|
+
taskId: string;
|
|
43
|
+
workspaceId: string;
|
|
44
|
+
action: string;
|
|
45
|
+
actor: string;
|
|
46
|
+
actorType: 'human' | 'ai' | 'system';
|
|
47
|
+
createdAt: string;
|
|
48
|
+
details?: TaskEventDetails;
|
|
49
|
+
actorProfile?: TaskActor | null;
|
|
50
|
+
}
|
|
51
|
+
export interface CommentActivityItem {
|
|
52
|
+
id: string;
|
|
53
|
+
type: 'comment';
|
|
54
|
+
timestamp: string;
|
|
55
|
+
comment: Comment;
|
|
56
|
+
}
|
|
57
|
+
export interface AuditActivityItem {
|
|
58
|
+
id: string;
|
|
59
|
+
type: 'event';
|
|
60
|
+
timestamp: string;
|
|
61
|
+
event: TaskEvent;
|
|
62
|
+
}
|
|
63
|
+
export type TaskActivityItem = CommentActivityItem | AuditActivityItem;
|
|
64
|
+
export type DeletedTaskSource = 'ui' | 'mcp' | 'sync' | 'workspace-delete' | 'system';
|
|
65
|
+
export interface DeletedTaskDetails {
|
|
66
|
+
reason?: string | null;
|
|
67
|
+
[key: string]: unknown;
|
|
68
|
+
}
|
|
69
|
+
export interface DeletedTaskRecord {
|
|
70
|
+
id: string;
|
|
71
|
+
taskId: string;
|
|
72
|
+
workspaceId: string;
|
|
73
|
+
deletedAt: string;
|
|
74
|
+
actor: string;
|
|
75
|
+
actorType: 'human' | 'ai' | 'system';
|
|
76
|
+
source: DeletedTaskSource;
|
|
77
|
+
details?: DeletedTaskDetails;
|
|
78
|
+
taskSnapshot: TaskItem;
|
|
79
|
+
actorProfile?: TaskActor | null;
|
|
17
80
|
}
|
|
18
81
|
export interface AttachmentItem {
|
|
19
82
|
path: string;
|
|
20
83
|
fsPath?: string;
|
|
21
84
|
caption?: string;
|
|
85
|
+
displayName?: string;
|
|
86
|
+
originalFilename?: string;
|
|
87
|
+
assetId?: string;
|
|
88
|
+
referenceNumber?: number | null;
|
|
89
|
+
referenceLabel?: string;
|
|
90
|
+
taskId?: string | null;
|
|
22
91
|
timestamp?: string;
|
|
23
92
|
}
|
|
24
|
-
/** @deprecated Use AttachmentItem. */
|
|
25
|
-
export type ScreenshotItem = AttachmentItem;
|
|
26
93
|
export interface TaxonomyOption {
|
|
27
94
|
value: string | number;
|
|
28
95
|
label: string;
|
|
29
96
|
color?: string;
|
|
30
97
|
icon?: string;
|
|
98
|
+
aliases?: string[];
|
|
99
|
+
status?: 'active' | 'retired';
|
|
31
100
|
}
|
|
32
101
|
export interface TaxonomyDefinition {
|
|
33
102
|
id: string;
|
|
34
103
|
label: string;
|
|
104
|
+
description?: string;
|
|
105
|
+
aliases?: string[];
|
|
35
106
|
options: TaxonomyOption[];
|
|
36
107
|
widgetType: 'select' | 'level';
|
|
37
108
|
isSystem: boolean;
|
|
38
109
|
multiSelect: boolean;
|
|
39
110
|
isRequired?: boolean;
|
|
40
111
|
defaultValue?: string | string[] | null;
|
|
112
|
+
formEnabled?: boolean;
|
|
113
|
+
filterEnabled?: boolean;
|
|
114
|
+
sortEnabled?: boolean;
|
|
115
|
+
status?: 'active' | 'retired';
|
|
41
116
|
}
|
|
42
117
|
export interface PriorityDefinition {
|
|
43
118
|
value: number | string;
|
|
@@ -46,10 +121,49 @@ export interface PriorityDefinition {
|
|
|
46
121
|
icon?: string;
|
|
47
122
|
}
|
|
48
123
|
export type TaskStatus = 'task' | 'on-hold' | 'in-progress' | 'review' | 'done' | 'cancelled';
|
|
49
|
-
export type
|
|
50
|
-
export
|
|
124
|
+
export type TaskAssignee = string;
|
|
125
|
+
export interface InitiativeItem {
|
|
126
|
+
id: string;
|
|
127
|
+
referenceNumber?: number | null;
|
|
128
|
+
referenceLabel?: string;
|
|
129
|
+
title: string;
|
|
130
|
+
description: string | null;
|
|
131
|
+
ownerId?: string | null;
|
|
132
|
+
comments?: Comment[];
|
|
133
|
+
attachments?: Array<string | AttachmentItem>;
|
|
134
|
+
createdAt: string;
|
|
135
|
+
updatedAt?: string;
|
|
136
|
+
order?: number | null;
|
|
137
|
+
isArchived?: boolean;
|
|
138
|
+
}
|
|
139
|
+
export interface WorkstreamItem {
|
|
140
|
+
id: string;
|
|
141
|
+
referenceNumber?: number | null;
|
|
142
|
+
referenceLabel?: string;
|
|
143
|
+
initiativeId?: string | null;
|
|
144
|
+
title: string;
|
|
145
|
+
description: string | null;
|
|
146
|
+
ownerId?: string | null;
|
|
147
|
+
comments?: Comment[];
|
|
148
|
+
attachments?: Array<string | AttachmentItem>;
|
|
149
|
+
createdAt: string;
|
|
150
|
+
updatedAt?: string;
|
|
151
|
+
order?: number | null;
|
|
152
|
+
isArchived?: boolean;
|
|
153
|
+
}
|
|
154
|
+
export interface ChecklistItem {
|
|
155
|
+
id: string;
|
|
156
|
+
taskId: string;
|
|
157
|
+
title: string;
|
|
158
|
+
isCompleted: boolean;
|
|
159
|
+
order: number;
|
|
160
|
+
createdAt: string;
|
|
161
|
+
updatedAt?: string;
|
|
162
|
+
}
|
|
51
163
|
export interface TaskItem {
|
|
52
164
|
id: string;
|
|
165
|
+
referenceNumber?: number | null;
|
|
166
|
+
referenceLabel?: string;
|
|
53
167
|
title: string;
|
|
54
168
|
description: string | null;
|
|
55
169
|
category: string;
|
|
@@ -61,35 +175,39 @@ export interface TaskItem {
|
|
|
61
175
|
createdAt: string;
|
|
62
176
|
updatedAt?: string;
|
|
63
177
|
completedAt?: string | null;
|
|
64
|
-
/** @deprecated DO NOT USE. Use status='in-progress' */
|
|
178
|
+
/** @deprecated DO NOT USE. Use status='in-progress'. Safe to remove after v0.4.x migration gate. */
|
|
65
179
|
inProgress?: boolean;
|
|
66
|
-
/** @deprecated DO NOT USE. Use status='review' */
|
|
180
|
+
/** @deprecated DO NOT USE. Use status='review'. Safe to remove after v0.4.x migration gate. */
|
|
67
181
|
readyForReview?: boolean;
|
|
68
182
|
comments?: Comment[];
|
|
183
|
+
activity?: TaskActivityItem[];
|
|
184
|
+
taskEvents?: TaskEvent[];
|
|
69
185
|
attachments?: Array<string | AttachmentItem>;
|
|
70
|
-
/** @deprecated
|
|
71
|
-
screenshots?: Array<string | AttachmentItem>;
|
|
72
|
-
specialists?: string[];
|
|
73
|
-
/** @deprecated Use status='cancelled' */
|
|
186
|
+
/** @deprecated Use status='cancelled'. Safe to remove after v0.4.x migration gate. */
|
|
74
187
|
cancelled?: boolean;
|
|
75
|
-
/** @deprecated Use status='done' */
|
|
188
|
+
/** @deprecated Use status='done'. Safe to remove after v0.4.x migration gate. */
|
|
76
189
|
completed?: boolean;
|
|
77
190
|
taxonomies?: Record<string, string | string[]>;
|
|
78
191
|
createdBy?: string;
|
|
192
|
+
createdByActor?: TaskActor | null;
|
|
79
193
|
assignee?: TaskAssignee;
|
|
194
|
+
specialists?: string[];
|
|
195
|
+
assigneeActor?: TaskActor | null;
|
|
80
196
|
canceledReason?: string;
|
|
81
197
|
isArchived?: boolean;
|
|
198
|
+
isDeleted?: boolean;
|
|
199
|
+
deletedRecordId?: string | null;
|
|
82
200
|
scheduledDate?: string | null;
|
|
83
201
|
dueDate?: string | null;
|
|
84
202
|
scheduledWeekKey?: string | null;
|
|
85
203
|
orderInDay?: number | null;
|
|
86
|
-
|
|
87
|
-
|
|
204
|
+
workstreamId?: string | null;
|
|
205
|
+
checklistItems?: ChecklistItem[];
|
|
88
206
|
}
|
|
89
|
-
export type TaskforceTheme = 'dark' | 'light' | 'midnight';
|
|
90
207
|
export interface CategoryConfig {
|
|
91
208
|
value: string;
|
|
92
209
|
label: string;
|
|
210
|
+
aliases?: string[];
|
|
93
211
|
path?: string;
|
|
94
212
|
paths?: string[];
|
|
95
213
|
specialistFile?: string;
|
|
@@ -104,6 +222,10 @@ export interface TaskforceConfig {
|
|
|
104
222
|
types?: Array<{
|
|
105
223
|
value: string;
|
|
106
224
|
label: string;
|
|
225
|
+
color?: string;
|
|
226
|
+
icon?: string;
|
|
227
|
+
aliases?: string[];
|
|
228
|
+
status?: 'active' | 'retired';
|
|
107
229
|
}>;
|
|
108
230
|
/** Priority levels */
|
|
109
231
|
priorities?: Array<{
|
|
@@ -127,13 +249,15 @@ export interface TaskforceConfig {
|
|
|
127
249
|
apiBaseUrl?: string;
|
|
128
250
|
/** Optional absolute/relative base URL used only for cloud authentication/session and sync endpoints */
|
|
129
251
|
cloudAuthBaseUrl?: string;
|
|
252
|
+
/** Optional absolute/relative base URL used only for cloud MCP endpoint generation */
|
|
253
|
+
cloudMcpBaseUrl?: string;
|
|
130
254
|
/** Optional absolute/relative base URL for Taskforce websocket (defaults to apiBaseUrl or current origin) */
|
|
131
255
|
wsBaseUrl?: string;
|
|
132
256
|
/** Button position on screen */
|
|
133
257
|
position?: 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right';
|
|
134
258
|
/** Vertical offset from edge (useful for stacking with other widgets) */
|
|
135
259
|
offsetY?: number;
|
|
136
|
-
/** Theme:
|
|
260
|
+
/** Theme: any registered Taskforce theme id */
|
|
137
261
|
theme?: TaskforceTheme;
|
|
138
262
|
/** Keyboard shortcut to toggle widget (e.g., 'Alt+T', 'Ctrl+Shift+K') */
|
|
139
263
|
shortcut?: string;
|
|
@@ -141,17 +265,18 @@ export interface TaskforceConfig {
|
|
|
141
265
|
manualComplexityEnabled?: boolean;
|
|
142
266
|
/** Show checklist dropdown controls in task form */
|
|
143
267
|
checklistDropdownEnabled?: boolean;
|
|
144
|
-
/**
|
|
145
|
-
|
|
268
|
+
/** Show status text labels in task card status controls */
|
|
269
|
+
showTaskCardStatusLabel?: boolean;
|
|
146
270
|
}
|
|
147
271
|
export interface TaskforcePluginOptions {
|
|
148
272
|
/** Path to store JSON files (relative to project root) */
|
|
149
273
|
outputPath?: string;
|
|
150
274
|
}
|
|
151
|
-
export declare const DEFAULT_CONFIG: Required<Omit<TaskforceConfig, 'apiEndpoint' | 'apiBaseUrl' | 'cloudAuthBaseUrl' | 'wsBaseUrl' | 'taxonomies'>> & {
|
|
275
|
+
export declare const DEFAULT_CONFIG: Required<Omit<TaskforceConfig, 'apiEndpoint' | 'apiBaseUrl' | 'cloudAuthBaseUrl' | 'cloudMcpBaseUrl' | 'wsBaseUrl' | 'taxonomies'>> & {
|
|
152
276
|
apiEndpoint: string;
|
|
153
277
|
apiBaseUrl?: string;
|
|
154
278
|
cloudAuthBaseUrl?: string;
|
|
279
|
+
cloudMcpBaseUrl?: string;
|
|
155
280
|
wsBaseUrl?: string;
|
|
156
281
|
taxonomies: TaxonomyDefinition[];
|
|
157
282
|
};
|
package/dist/types.js
CHANGED
|
@@ -3,39 +3,24 @@
|
|
|
3
3
|
*
|
|
4
4
|
* A decoupled, reusable collaborative task manager.
|
|
5
5
|
*/
|
|
6
|
+
import { cloneDefaultCategoryDefinitions, cloneDefaultPriorityDefinitions, cloneDefaultTypeDefinitions } from './shared/taxonomyDefaults.js';
|
|
7
|
+
import { cloneDefaultWorkflowDefinitions } from './shared/workflowDefaults.js';
|
|
6
8
|
export const DEFAULT_CONFIG = {
|
|
7
|
-
categories:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
{ value: 'feature', label: 'Feature' },
|
|
12
|
-
{ value: 'bug', label: 'Bug' },
|
|
13
|
-
{ value: 'chore', label: 'Chore' },
|
|
14
|
-
{ value: 'refactor', label: 'Refactor' },
|
|
15
|
-
{ value: 'documentation', label: 'Docs' },
|
|
16
|
-
],
|
|
17
|
-
priorities: [
|
|
18
|
-
{ value: 1, label: 'Low', color: 'teal-500', icon: 'ArrowDown' },
|
|
19
|
-
{ value: 2, label: 'Medium', color: 'blue-500', icon: 'Minus' },
|
|
20
|
-
{ value: 3, label: 'High', color: 'amber-500', icon: 'ArrowUp' },
|
|
21
|
-
{ value: 4, label: 'Critical', color: 'red-500', icon: 'AlertTriangle' },
|
|
22
|
-
],
|
|
23
|
-
approaches: [
|
|
24
|
-
{ value: 'evaluate', label: 'Evaluate', color: 'amber-500', icon: 'Search' },
|
|
25
|
-
{ value: 'collaborate', label: 'Collaborate', color: 'blue-500', icon: 'Users' },
|
|
26
|
-
{ value: 'plan', label: 'Plan', color: 'teal-500', icon: 'FileText' },
|
|
27
|
-
{ value: 'review', label: 'Review', color: 'violet-500', icon: 'Microscope' },
|
|
28
|
-
],
|
|
9
|
+
categories: cloneDefaultCategoryDefinitions(),
|
|
10
|
+
types: cloneDefaultTypeDefinitions(),
|
|
11
|
+
priorities: cloneDefaultPriorityDefinitions(),
|
|
12
|
+
approaches: cloneDefaultWorkflowDefinitions(),
|
|
29
13
|
taxonomies: [],
|
|
30
14
|
apiEndpoint: '/api/taskforce/task',
|
|
31
15
|
apiBaseUrl: undefined,
|
|
32
16
|
cloudAuthBaseUrl: undefined,
|
|
17
|
+
cloudMcpBaseUrl: undefined,
|
|
33
18
|
wsBaseUrl: undefined,
|
|
34
19
|
position: 'bottom-right',
|
|
35
20
|
offsetY: 70,
|
|
36
21
|
theme: 'dark',
|
|
37
22
|
shortcut: 'Alt+T',
|
|
38
23
|
manualComplexityEnabled: false,
|
|
39
|
-
checklistDropdownEnabled:
|
|
40
|
-
|
|
24
|
+
checklistDropdownEnabled: true,
|
|
25
|
+
showTaskCardStatusLabel: true,
|
|
41
26
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as n,j as e}from"./vendor-react-CKJs5o3c.js";import{s as T,u as C,v as w,w as S,t as s,x as M}from"./index-xBWLPOEb.js";import{h as L,B as A,k as I,a8 as H,aG as B,aH as D,b as R}from"./vendor-icons-QZyhEwgT.js";import"./vendor-markdown-BUxTU7dS.js";import"./vendor-dnd-DRzYolkg.js";import"./vendor-router-BbWMxlnO.js";function F({workspaceId:h}){const[x,k]=n.useState([]),[j,y]=n.useState(!1),[c,P]=n.useState(null),[p,m]=n.useState(null),[d,g]=n.useState(null),N=n.useCallback(async()=>{if(h){y(!0);try{const a=await(await fetch(`/api/taskforce/workspace/assignee-options?workspaceId=${encodeURIComponent(h)}`,{credentials:"include"})).json().catch(()=>({})),t=Array.isArray(a?.assignees)?a.assignees.filter(i=>i.kind==="agent").map(i=>({id:String(i.value||""),name:String(i.label||i.value||"Unknown Agent"),username:String(i.username||i.value||""),icon:String(i.icon||"Bot"),color:String(i.color||"#6B7280"),kind:String(i.kind||"agent"),description:typeof i.description=="string"?i.description:null,role:typeof i.role=="string"?i.role:null,provider:typeof i.provider=="string"?i.provider:null,model:typeof i.model=="string"?i.model:null,surfaceType:T(i.surfaceType),createdAt:String(i.createdAt||""),updatedAt:String(i.updatedAt||i.createdAt||""),lastActiveAt:typeof i.lastActiveAt=="string"?i.lastActiveAt:null})):[];k(t)}finally{y(!1)}}},[h]);n.useEffect(()=>{N()},[N]);const f=n.useMemo(()=>{const r=new Map;for(const a of x){const t=C(a.surfaceType);r.has(t)||r.set(t,new Map);const i=r.get(t),v=a.name.toLowerCase();i.has(v)||i.set(v,[]),i.get(v).push(a)}return w.map(a=>({section:a,label:S(a),groups:Array.from(r.get(a)?.entries()||[]).map(([t,i])=>({groupId:`${a}:${t}`,section:a,sectionLabel:S(a),profiles:i,primaryProfile:i[0]}))})).filter(a=>a.groups.length>0)},[x]),o=n.useMemo(()=>f.flatMap(r=>r.groups),[f]),l=n.useMemo(()=>o.find(r=>r.groupId===d)||o[0]||null,[o,d]);n.useEffect(()=>{if(!o.length){d!==null&&g(null);return}(!d||!o.some(r=>r.groupId===d))&&g(o[0].groupId)},[o,d]);const b=async(r,a)=>{m(null);try{const t=await fetch("/api/taskforce/workspace/ai-profiles/merge",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({keepId:r,mergeId:a})}),i=await t.json().catch(()=>({}));if(!t.ok){m({type:"error",message:String(i?.error||"Failed to merge AI profiles.")});return}P(null),m({type:"success",message:"AI profiles merged."}),await N()}catch{m({type:"error",message:"Failed to merge AI profiles."})}},u=r=>{const a=String(r||"").trim();if(!a)return"Unknown";const t=Date.parse(a);return Number.isFinite(t)?new Date(t).toLocaleString(void 0,{dateStyle:"medium",timeStyle:"short"}):a};return e.jsx("div",{className:`${s.standalonePage} ${s.standaloneContent}`,style:{overflow:"auto"},children:e.jsx("div",{className:s.settingsContent,style:{maxWidth:960,margin:"0 auto",width:"100%"},children:e.jsx("div",{className:s.settingGroup,children:e.jsxs("div",{children:[e.jsx("h4",{className:s.settingSubTitle,children:"Registered AI Profiles"}),e.jsx("p",{className:`${s.settingsHint} ${s.marginBottom12}`,children:"AI agents register profiles when connecting via MCP. Merge duplicates created when a token was lost."}),j&&e.jsxs("div",{className:s.settingsHint,children:[e.jsx(L,{size:13,className:s.spinner})," Loading profiles…"]}),!j&&x.length===0&&e.jsx("div",{className:s.settingsHint,children:"No AI profiles registered yet."}),!j&&f.length>0&&e.jsxs("div",{className:s.aiProfilesExplorer,children:[e.jsx("div",{className:s.aiProfilesListPane,children:e.jsx("div",{className:s.aiProfilesList,children:f.map(r=>e.jsxs("div",{className:s.aiProfilesSection,children:[e.jsx("div",{className:s.aiProfilesSectionHeader,children:r.label}),r.groups.map(a=>{const t=l?.groupId===a.groupId,i=a.primaryProfile;return e.jsxs("button",{type:"button",className:`${s.aiProfileGroup} ${a.profiles.length>1?s.aiProfileGroupDuplicate:""} ${t?s.aiProfileGroupSelected:""}`,onClick:()=>g(a.groupId),"aria-pressed":t,children:[e.jsxs("div",{className:s.aiProfileGroupHeader,children:[e.jsx(A,{size:13,style:{color:i.color}}),e.jsx("span",{className:s.aiProfileName,children:i.name}),a.profiles.length>1&&e.jsxs("span",{className:s.aiProfileDuplicateBadge,children:[e.jsx(I,{size:11})," ",a.profiles.length," duplicates"]})]}),e.jsxs("div",{className:s.settingsHint,style:{marginTop:6},children:["@",i.username]}),(i.surfaceType||i.role||i.provider||i.model)&&e.jsxs("div",{className:s.aiProfileMetaRow,children:[i.surfaceType&&e.jsx("span",{className:s.aiProfileSurfaceBadge,children:M(i.surfaceType)}),i.role&&e.jsx("span",{children:i.role}),i.provider&&e.jsx("span",{children:i.provider}),i.model&&e.jsx("span",{children:i.model})]}),i.description&&e.jsx("div",{className:s.settingsHint,style:{marginTop:4},children:i.description})]},a.groupId)})]},r.section))})}),l&&e.jsx("div",{className:s.aiProfileDetailPane,children:e.jsxs("div",{className:s.aiProfileDetailCard,children:[e.jsxs("div",{className:s.aiProfileDetailHero,children:[e.jsx("div",{className:s.aiProfileDetailIcon,style:{color:l.primaryProfile.color},children:e.jsx(A,{size:18})}),e.jsxs("div",{className:s.aiProfileDetailHeading,children:[e.jsx("div",{className:s.aiProfileDetailTitleRow,children:e.jsx("h5",{className:s.aiProfileDetailTitle,children:l.primaryProfile.name})}),e.jsxs("div",{className:s.aiProfileDetailMetaRow,children:[e.jsxs("span",{className:s.aiProfileDetailHandle,children:["@",l.primaryProfile.username]}),e.jsx("span",{className:s.aiProfileDetailSectionBadge,children:l.sectionLabel}),l.profiles.length>1&&e.jsxs("span",{className:s.aiProfileDetailLinkedCount,children:[l.profiles.length," linked"]})]})]})]}),l.primaryProfile.description&&e.jsx("div",{className:s.aiProfileDetailDescription,children:l.primaryProfile.description}),e.jsxs("div",{className:s.aiProfileDetailGrid,children:[e.jsxs("div",{className:s.aiProfileDetailStat,children:[e.jsxs("span",{className:s.aiProfileDetailStatLabel,children:[e.jsx(H,{size:12})," Role"]}),e.jsx("span",{className:s.aiProfileDetailStatValue,children:l.primaryProfile.role||"Not set"})]}),e.jsxs("div",{className:s.aiProfileDetailStat,children:[e.jsxs("span",{className:s.aiProfileDetailStatLabel,children:[e.jsx(B,{size:12})," Provider"]}),e.jsx("span",{className:s.aiProfileDetailStatValue,children:[l.primaryProfile.provider,l.primaryProfile.model].filter(Boolean).join(" · ")||"Not set"})]}),e.jsxs("div",{className:s.aiProfileDetailStat,children:[e.jsxs("span",{className:s.aiProfileDetailStatLabel,children:[e.jsx(D,{size:12})," Last active"]}),e.jsx("span",{className:s.aiProfileDetailStatValue,children:u(l.primaryProfile.lastActiveAt)})]}),e.jsxs("div",{className:s.aiProfileDetailStat,children:[e.jsxs("span",{className:s.aiProfileDetailStatLabel,children:[e.jsx(D,{size:12})," Updated"]}),e.jsx("span",{className:s.aiProfileDetailStatValue,children:u(l.primaryProfile.updatedAt)})]})]}),e.jsxs("div",{className:s.aiProfileInstanceSection,children:[e.jsxs("div",{className:s.aiProfileInstanceSectionHeader,children:[e.jsx("span",{children:"Profile instances"}),e.jsx("span",{className:s.settingsHint,children:"Choose a keeper here if duplicates need to be merged."})]}),e.jsx("div",{className:s.aiProfileInstanceList,children:l.profiles.map(r=>e.jsxs("div",{className:s.aiProfileInstanceCard,children:[e.jsxs("div",{className:s.aiProfileInstanceTopRow,children:[e.jsxs("div",{children:[e.jsxs("div",{className:s.aiProfileInstanceName,children:["@",r.username]}),e.jsx("div",{className:s.aiProfileIdChip,children:r.id})]}),l.profiles.length>1&&c?.keepId===r.id&&e.jsx("span",{className:s.aiProfileKeepBadge,children:"Keeping"})]}),e.jsxs("div",{className:s.aiProfileInstanceMeta,children:[e.jsxs("span",{children:["Created ",u(r.createdAt)]}),e.jsxs("span",{children:["Updated ",u(r.updatedAt)]})]}),l.profiles.length>1&&c?.keepId!==r.id&&e.jsx("button",{className:s.secondaryHeaderBtn,title:"Keep this profile, merge others into it",onClick:()=>{const a=l.profiles.find(t=>t.id!==r.id)?.id;a&&P({keepId:r.id,mergeId:a})},children:"Keep this"})]},r.id))}),c&&l.profiles.some(r=>r.id===c.keepId)&&e.jsxs("div",{className:s.aiProfileMergeActions,children:[e.jsx("button",{className:s.dangerBtn,onClick:()=>{b(c.keepId,c.mergeId)},children:"Merge duplicates"}),e.jsx("button",{className:s.secondaryHeaderBtn,onClick:()=>P(null),children:"Cancel"})]})]})]})})]}),p&&e.jsxs("div",{className:`${p.type==="success"?s.successMessage:s.errorMessage} ${s.marginTop12}`,children:[p.type==="success"?e.jsx(R,{size:14}):e.jsx(I,{size:14}),p.message]})]})})})})}export{F as AgentsModule};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._shell_sf7jc_1{align-self:stretch;width:100%;box-sizing:border-box;display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr) minmax(280px,340px);gap:16px;height:100%;min-height:0;padding:16px;background:radial-gradient(circle at top left,color-mix(in srgb,var(--brand-primary) 8%,transparent),transparent 26%),linear-gradient(180deg,color-mix(in srgb,var(--surface-page) 84%,var(--surface-panel)) 0%,var(--surface-page) 100%)}._panel_sf7jc_16{min-height:0;border-radius:18px;box-shadow:0 18px 38px #0f172a14}._sessionPanel_sf7jc_22,._detailPanel_sf7jc_23{display:flex;flex-direction:column;overflow:hidden}._sessionContextBar_sf7jc_29{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;padding:12px 16px;border-bottom:1px solid var(--border-default);background:color-mix(in srgb,var(--surface-inset) 88%,transparent)}._sessionContextLeft_sf7jc_40,._sessionContextRight_sf7jc_41{display:flex;align-items:center;min-width:0}._sessionContextLeft_sf7jc_40{flex:1}._sessionContextRight_sf7jc_41{justify-content:flex-end;min-width:118px}._sessionContextLabel_sf7jc_56{font-size:.84rem;font-weight:600;color:var(--text-secondary)}._sessionContextSpacer_sf7jc_62{width:118px;height:32px}._canvasPanel_sf7jc_67{display:flex;flex-direction:column;min-height:0;overflow:hidden}._canvasWorkspace_sf7jc_74{display:grid;grid-template-columns:auto minmax(0,1fr);min-height:0;flex:1}._canvasMain_sf7jc_81{display:flex;flex-direction:column;min-width:0;min-height:0}._panelHeader_sf7jc_88{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid var(--border-default)}._panelHeaderText_sf7jc_97{min-width:0}._panelTitle_sf7jc_101{font-size:1rem}._canvasHeading_sf7jc_105{min-width:0}._sessionActions_sf7jc_109{display:inline-flex;align-items:center;gap:8px;margin-left:auto;flex-shrink:0}._sessionList_sf7jc_117,._annotationList_sf7jc_118{display:flex;flex:1 1 auto;flex-direction:column;gap:10px;min-height:0;padding:14px;overflow:auto;scrollbar-gutter:stable}._annotationList_sf7jc_118{gap:12px}._markerHelpModalBody_sf7jc_133{display:flex;flex-direction:column;gap:14px}._openImageModalBody_sf7jc_139{display:flex;flex-direction:column;gap:12px}._openImageField_sf7jc_145{width:100%}._openImageActions_sf7jc_149{display:flex;justify-content:flex-end;gap:8px}._markerHelpItem_sf7jc_155{display:flex;flex-direction:column;gap:6px;padding:12px 14px;border-radius:14px}._markerHelpHeader_sf7jc_163{display:flex;align-items:baseline;justify-content:space-between;gap:12px}._markerHelpItem_sf7jc_155 p{margin:0;line-height:1.45}._markerHelpExample_sf7jc_175{font-weight:600}._sessionCard_sf7jc_179,._annotationCard_sf7jc_180{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:14px;text-align:left;transition:border-color var(--transition-base),box-shadow var(--transition-base),transform var(--transition-base)}._sessionCard_sf7jc_179{gap:10px}._sessionEmptyState_sf7jc_197{display:flex;flex-direction:column;gap:8px;padding:8px 2px 0}._sessionCardButton_sf7jc_204,._annotationCardButton_sf7jc_214{display:flex;flex-direction:column;gap:8px;padding:0;border:0;background:transparent;text-align:left}._sessionCardBody_sf7jc_224{display:flex;flex-direction:column;gap:8px}._sessionCardActive_sf7jc_230,._annotationCardActive_sf7jc_231{border-color:var(--button-tile-active-border);box-shadow:0 0 0 1px transparent,0 12px 28px var(--brand-primary-glow-soft)}._sessionCard_sf7jc_179:hover,._annotationCard_sf7jc_180:hover{transform:translateY(-1px)}._annotationMeta_sf7jc_241{display:flex;align-items:center;justify-content:space-between;gap:8px}._annotationInstructionPreview_sf7jc_248{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.45}._annotationPreviewFooter_sf7jc_256{display:flex;align-items:center;justify-content:flex-start;min-height:16px}._annotationInstructionEditor_sf7jc_263,._annotationTypeField_sf7jc_269{display:flex;flex-direction:column;gap:8px}._annotationInstructionButton_sf7jc_275{display:block;width:100%;padding:0;border:0;background:transparent;text-align:left}._annotationInstructionField_sf7jc_284{min-height:92px}._sessionMeta_sf7jc_288{display:flex;flex-direction:column;align-items:flex-start;gap:4px}._sessionTitle_sf7jc_295,._annotationTitle_sf7jc_296{font-size:.98rem;font-weight:700;color:var(--text-primary)}._sessionTimestamp_sf7jc_302,._annotationKind_sf7jc_303{text-transform:capitalize}._annotationInstructionTypeIcon_sf7jc_307{display:inline-flex;align-items:center;justify-content:center}._sessionInstructionPreview_sf7jc_313{line-height:1.45;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}._sessionInstructionEditor_sf7jc_321{display:flex;flex-direction:column;gap:8px}._sessionCardFooter_sf7jc_327{display:flex;align-items:center;justify-content:flex-end;gap:8px}._toolRail_sf7jc_334{display:flex;flex-wrap:wrap;gap:8px;padding:0;border-bottom:1px solid var(--border-default);background:color-mix(in srgb,var(--surface-inset) 92%,transparent)}._canvasToolRail_sf7jc_343{display:flex;flex-direction:column;align-items:center;gap:8px;padding:0;border-right:1px solid var(--border-default);background:color-mix(in srgb,var(--surface-inset) 94%,transparent)}._toolGroup_sf7jc_353{display:inline-flex;flex-wrap:wrap;gap:8px;align-items:center;padding:4px;border:1px solid var(--border-default);border-radius:16px;background:var(--surface-panel)}._toolbarCluster_sf7jc_364{display:inline-flex;flex-wrap:wrap;gap:8px;align-items:center}._toolbarViewportCluster_sf7jc_371{margin-left:44px}._toolbarSeparator_sf7jc_375{width:1px;align-self:stretch;background:var(--border-default)}._toolBtn_sf7jc_381{white-space:nowrap}._toolRailButton_sf7jc_385{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border-radius:14px}._toolbarButton_sf7jc_395{min-height:44px;border-radius:14px}._toolBtnActive_sf7jc_400{background:var(--button-tile-active-bg);border-color:var(--button-tile-active-border);color:var(--button-tile-active-text);box-shadow:0 0 0 1px transparent,0 8px 24px var(--brand-primary-glow-soft)}._toolbarActions_sf7jc_407{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px;flex:1 1 auto;min-width:0}._toolbarSelectionActions_sf7jc_416{display:inline-flex;align-items:center;gap:8px;min-width:44px;flex-wrap:wrap}._toolbarColorPicker_sf7jc_424{position:relative}._colorPickerButton_sf7jc_428{min-width:44px;padding:0}._colorPickerSwatch_sf7jc_433{width:24px;height:24px;border-radius:var(--radius-sm);border:2px solid color-mix(in srgb,var(--surface-panel) 88%,transparent);box-shadow:inset 0 0 0 1px #0f172a1f}._colorPickerPopover_sf7jc_441{position:absolute;top:calc(100% + 8px);left:0;z-index:3;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:10px;border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--surface-panel);box-shadow:0 18px 32px #0f172a24}._colorOption_sf7jc_456{width:24px;height:24px;padding:0;border:2px solid transparent;border-radius:var(--radius-sm);cursor:pointer;box-shadow:inset 0 0 0 1px #0f172a24}._colorOptionActive_sf7jc_466{border-color:color-mix(in srgb,var(--surface-panel) 78%,var(--brand-primary));box-shadow:inset 0 0 0 1px #0f172a24,0 0 0 2px color-mix(in srgb,var(--brand-primary) 24%,transparent)}._toolbarUtilities_sf7jc_473{margin-left:auto;display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px}._toolbarGeometryFields_sf7jc_481{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}._toolbarGeometryField_sf7jc_481{display:inline-flex;align-items:center;gap:6px}._toolbarGeometryLabel_sf7jc_494{margin:0;text-transform:uppercase;white-space:nowrap}._toolbarGeometryInput_sf7jc_500{width:68px;text-align:right}._iconButton_sf7jc_505{flex-shrink:0}._primaryBtn_sf7jc_509,._ghostBtn_sf7jc_510,._payloadBtn_sf7jc_511,._backToTaskBtn_sf7jc_512{white-space:nowrap}._backToTaskBtn_sf7jc_512{padding:7px 10px;color:var(--text-secondary);font-size:.88rem;font-weight:600}._backToTaskBtn_sf7jc_512:hover,._backToTaskBtn_sf7jc_512:focus-visible{color:var(--text-primary)}._payloadBtn_sf7jc_511{font-weight:700}._canvasScroller_sf7jc_532{position:relative;flex:1;min-height:0;overflow:auto;display:block;scrollbar-gutter:stable;background:linear-gradient(45deg,color-mix(in srgb,var(--surface-inset) 66%,var(--border-default)) 25%,transparent 25%),linear-gradient(-45deg,color-mix(in srgb,var(--surface-inset) 66%,var(--border-default)) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,color-mix(in srgb,var(--surface-inset) 66%,var(--border-default)) 75%),linear-gradient(-45deg,transparent 75%,color-mix(in srgb,var(--surface-inset) 66%,var(--border-default)) 75%);background-size:22px 22px;background-position:0 0,0 11px,11px -11px,-11px 0}._canvasFrame_sf7jc_548{position:relative;display:block;width:max-content;min-width:100%}._canvasMedia_sf7jc_555{position:relative;display:block;flex-shrink:0;margin:0 auto;overflow:hidden}._canvasStatusOverlay_sf7jc_563{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;padding:24px;background:color-mix(in srgb,var(--surface-scrim) 68%,transparent);pointer-events:none}._canvasStatusCard_sf7jc_575{display:inline-flex;align-items:center;gap:10px;padding:12px 16px;border:1px solid color-mix(in srgb,var(--border-strong) 44%,white);border-radius:14px;background:#0f172ac7;color:#fff;box-shadow:0 18px 30px #0f172a38;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}._canvasImage_sf7jc_588{display:block;width:100%;height:100%;-webkit-user-select:none;user-select:none}._overlay_sf7jc_595{position:absolute;inset:0;cursor:crosshair}._overlaySelect_sf7jc_601{cursor:default}._overlayPan_sf7jc_605{cursor:grab}._overlaySvg_sf7jc_609{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none}._overlayHitLayer_sf7jc_618{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:auto}._arrowHitArea_sf7jc_627{stroke:transparent;stroke-width:24;pointer-events:stroke;cursor:move}._canvasHandleHit_sf7jc_634{fill:transparent;pointer-events:all;cursor:grab;outline:none}._canvasResizeHandleHit_sf7jc_641{cursor:nwse-resize}._canvasHandleVisible_sf7jc_645{--canvas-handle-fill: var(--brand-primary);--canvas-handle-outline: var(--surface-elevated);--canvas-handle-shadow: 0 6px 12px rgba(15, 23, 42, .18);fill:var(--canvas-handle-fill);stroke:var(--canvas-handle-outline);stroke-width:3;vector-effect:non-scaling-stroke;filter:drop-shadow(var(--canvas-handle-shadow));pointer-events:none}._canvasHandleHit_sf7jc_634:focus-visible+._canvasHandleVisible_sf7jc_645{stroke:color-mix(in srgb,var(--brand-primary) 72%,var(--surface-elevated));stroke-width:4}._pin_sf7jc_662,._note_sf7jc_663{position:absolute;transform:translate(-50%,-50%);display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:28px;border:2px solid var(--surface-elevated);border-radius:999px;box-shadow:0 8px 18px #0f172a38;color:#fff;font-size:.74rem;font-weight:800;pointer-events:auto}._annotationNumberBadge_sf7jc_680{position:absolute;display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:28px;padding:0 8px;border:2px solid var(--surface-elevated);border-radius:999px;box-shadow:0 8px 18px #0f172a38;color:#fff;font-size:.74rem;font-weight:800;line-height:1;pointer-events:none;z-index:2}._note_sf7jc_663{min-width:38px;padding:0 10px;border-radius:999px}._box_sf7jc_705{position:absolute;border:2px solid;border-radius:var(--radius-sm);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--surface-elevated) 34%,transparent);background:color-mix(in srgb,var(--surface-elevated) 10%,transparent);pointer-events:auto}._boxNumberBadge_sf7jc_714{top:0;left:0;transform:translate(-28%,-36%)}._arrowNumberBadge_sf7jc_720{transform:translate(-50%,-50%)}._boxSurface_sf7jc_724{position:absolute;inset:0;border:0;background:transparent;cursor:move}._boxSurface_sf7jc_724:focus-visible{outline:2px solid color-mix(in srgb,var(--brand-primary) 34%,var(--surface-elevated));outline-offset:2px}._selected_sf7jc_737{outline:3px solid color-mix(in srgb,var(--surface-elevated) 92%,transparent);outline-offset:1px}._fieldGroup_sf7jc_742{display:flex;flex-direction:column;gap:8px;padding:14px 16px}._detailPanel_sf7jc_23 ._fieldGroup_sf7jc_742{padding-top:12px;padding-bottom:12px}._textInput_sf7jc_754,._textArea_sf7jc_755,._select_sf7jc_737{width:100%;box-sizing:border-box;font:inherit}._sessionTitleInput_sf7jc_762{font-size:1rem;font-weight:600}._sessionInstructionField_sf7jc_767{min-height:112px}._textArea_sf7jc_755{min-height:110px;resize:vertical}._detailEmpty_sf7jc_776,._emptyState_sf7jc_777,._errorState_sf7jc_778{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:240px;padding:24px;text-align:center}._payloadModalBody_sf7jc_789{display:flex;flex-direction:column;gap:12px;min-height:0}._payloadModalToolbar_sf7jc_796{display:flex;align-items:center;justify-content:space-between;gap:12px}._payloadViewToggle_sf7jc_803,._payloadModalActions_sf7jc_804{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px}._payloadModalPreview_sf7jc_811{margin:0;min-height:360px;max-height:min(70vh,720px);padding:16px;overflow:auto;scrollbar-gutter:stable;white-space:pre-wrap;word-break:break-word;font-size:.78rem;line-height:1.55;border-radius:14px;color:var(--text-body)}._statusBar_sf7jc_826{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-top:1px solid var(--border-default);color:var(--text-secondary);font-size:.82rem;background:color-mix(in srgb,var(--surface-panel) 88%,var(--surface-inset))}._annotationSummary_sf7jc_838{font-size:.82rem;line-height:1.5}@media(max-width:1180px){._shell_sf7jc_1{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(320px,1fr) auto;gap:12px;padding:12px}._sessionContextBar_sf7jc_29,._panelHeader_sf7jc_88,._toolRail_sf7jc_334,._statusBar_sf7jc_826,._payloadModalToolbar_sf7jc_796,._markerHelpHeader_sf7jc_163{flex-wrap:wrap}._sessionContextRight_sf7jc_41,._sessionContextLeft_sf7jc_40,._canvasHeading_sf7jc_105{min-width:0}._sessionContextRight_sf7jc_41{width:100%;justify-content:flex-start}._toolbarActions_sf7jc_407{width:100%;margin-left:0}._toolbarUtilities_sf7jc_473{margin-left:0}._toolGroup_sf7jc_353{max-width:100%}._canvasWorkspace_sf7jc_74{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}._toolbarViewportCluster_sf7jc_371{margin-left:0}._canvasToolRail_sf7jc_343{flex-direction:row;justify-content:flex-start;overflow-x:auto;padding:0;border-right:0;border-bottom:1px solid var(--border-default)}._statusBar_sf7jc_826{align-items:flex-start}._detailEmpty_sf7jc_776,._emptyState_sf7jc_777,._errorState_sf7jc_778{min-height:180px}}
|