@taskforcehq/taskforce 0.3.309 → 0.3.313
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 +89 -127
- package/dist/TaskforceCore.js +1 -1
- package/dist/components/context/ContextAttachmentManager.js +4 -3
- package/dist/components/features/InitiativesModule.js +1 -1
- package/dist/components/features/TaskSettings.js +1 -1
- package/dist/components/ui/DisclosureSectionHeader.d.ts +12 -0
- package/dist/components/ui/DisclosureSectionHeader.js +8 -0
- package/dist/components/views/PlanComparisonPage.js +1 -1
- package/dist/components/views/StandaloneLayout.js +18 -4
- package/dist/components/views/panels/PlanningDrawer.js +2 -1
- package/dist/components/views/standalone/modals/AccountHubModal.js +1 -1
- package/dist/components/views/standalone/modals/HelpModal.d.ts +3 -1
- package/dist/components/views/standalone/modals/HelpModal.js +17 -2
- package/dist/core/PlanEntitlementService.d.ts +2 -0
- package/dist/core/PlanEntitlementService.js +57 -4
- package/dist/hooks/useFilterSort.js +1 -1
- package/dist/hooks/useTaskforce.js +2 -2
- package/dist/hooks/workspace/useTaskforceWorkspaceBootstrap.js +5 -2
- package/dist/localization/locales/en-US.js +1 -1
- package/dist/localization/locales/es-419.js +1 -1
- package/dist/localization/locales/pt-BR.js +1 -1
- package/dist/mcp/runtime.js +49 -14
- package/dist/server/routes/billing.js +0 -1
- package/dist/ui/assets/AgentsModule-BULqIo8e.js +1 -0
- package/dist/ui/assets/{AnnotatedAttachmentWorkspace-CCckzWYZ.js → AnnotatedAttachmentWorkspace-DHr4rHK9.js} +1 -1
- package/dist/ui/assets/ContextAttachmentManager-DoMe2OpY.js +3 -0
- package/dist/ui/assets/{DocumentWorkspace-BVaWPA25.js → DocumentWorkspace-DumBWhvb.js} +1 -1
- package/dist/ui/assets/{EntityActivityTimeline-DSj0ThaK.js → EntityActivityTimeline-sHk8Nzbq.js} +1 -1
- package/dist/ui/assets/{InitiativesModule-AxMkWtxH.js → InitiativesModule-3X9UNzHh.js} +1 -1
- package/dist/ui/assets/PlansPage-C3A3EYaV.js +1 -0
- package/dist/ui/assets/PlansPage-DeAzWYTb.css +1 -0
- package/dist/ui/assets/{TaskContextUpload-Dw4rTF4i.js → TaskContextUpload-C8G7pWkX.js} +1 -1
- package/dist/ui/assets/{TaskSettings-f2ga42_V.js → TaskSettings-DM1o9Wla.js} +2 -2
- package/dist/ui/assets/{WorkflowsModule-E4UL3mov.js → WorkflowsModule-CW0crzvD.js} +1 -1
- package/dist/ui/assets/documentReferences-BZB3nMRb.js +1 -0
- package/dist/ui/assets/index-BWFQ9mGn.js +5 -0
- package/dist/ui/assets/{index-BvAbqx5Q.css → index-DcK_8tuE.css} +1 -1
- package/dist/ui/assets/{vendor-icons-B32hGuF2.js → vendor-icons-CLnehDTw.js} +1 -1
- package/dist/ui/index.html +3 -3
- package/dist/utils/supportContact.d.ts +9 -0
- package/dist/utils/supportContact.js +32 -0
- package/package.json +12 -4
- package/scripts/postinstall.js +4 -3
- package/dist/TaskforceCore.CategoryFallback.test.d.ts +0 -1
- package/dist/TaskforceCore.CategoryFallback.test.js +0 -101
- package/dist/TaskforceCore.filter-persistence.test.d.ts +0 -1
- package/dist/TaskforceCore.filter-persistence.test.js +0 -402
- package/dist/TaskforceCore.routing.test.d.ts +0 -1
- package/dist/TaskforceCore.routing.test.js +0 -311
- package/dist/TaskforceCore.test.d.ts +0 -1
- package/dist/TaskforceCore.test.js +0 -7910
- package/dist/TaskforceWidget.test.d.ts +0 -1
- package/dist/TaskforceWidget.test.js +0 -92
- package/dist/UnsavedChangesRelaxed.test.d.ts +0 -1
- package/dist/UnsavedChangesRelaxed.test.js +0 -16
- package/dist/__tests__/localizationCatalogs.test.d.ts +0 -1
- package/dist/__tests__/localizationCatalogs.test.js +0 -54
- package/dist/__tests__/workflowSimulation.test.d.ts +0 -1
- package/dist/__tests__/workflowSimulation.test.js +0 -113
- package/dist/annotatedAttachments/AnnotatedAttachmentSessionStore.test.d.ts +0 -1
- package/dist/annotatedAttachments/AnnotatedAttachmentSessionStore.test.js +0 -278
- package/dist/annotatedAttachments/payload.test.d.ts +0 -1
- package/dist/annotatedAttachments/payload.test.js +0 -67
- package/dist/compat/workspaceSyncCompat.test.d.ts +0 -1
- package/dist/compat/workspaceSyncCompat.test.js +0 -124
- package/dist/components/features/AgentsModule.test.d.ts +0 -1
- package/dist/components/features/AgentsModule.test.js +0 -601
- package/dist/components/features/AnnotatedAttachmentWorkspace.test.d.ts +0 -1
- package/dist/components/features/AnnotatedAttachmentWorkspace.test.js +0 -2883
- package/dist/components/features/DocumentWorkspace.test.d.ts +0 -1
- package/dist/components/features/DocumentWorkspace.test.js +0 -1439
- package/dist/components/features/TaskSettings.test.d.ts +0 -1
- package/dist/components/features/TaskSettings.test.js +0 -1674
- package/dist/components/features/settings/TaxonomyLibraryManager.test.d.ts +0 -1
- package/dist/components/features/settings/TaxonomyLibraryManager.test.js +0 -141
- package/dist/components/task/TaskActionHeader.test.d.ts +0 -1
- package/dist/components/task/TaskActionHeader.test.js +0 -91
- package/dist/components/task/TaskCard.test.d.ts +0 -1
- package/dist/components/task/TaskCard.test.js +0 -513
- package/dist/components/task/TaskContextUpload.test.d.ts +0 -1
- package/dist/components/task/TaskContextUpload.test.js +0 -506
- package/dist/components/task/TaskForm.test.d.ts +0 -1
- package/dist/components/task/TaskForm.test.js +0 -946
- package/dist/components/task/TaskKanban.empty-column-drop.test.d.ts +0 -1
- package/dist/components/task/TaskKanban.empty-column-drop.test.js +0 -66
- package/dist/components/task/TaskKanban.planning-drop.test.d.ts +0 -1
- package/dist/components/task/TaskKanban.planning-drop.test.js +0 -93
- package/dist/components/task/TaskKanban.test.d.ts +0 -1
- package/dist/components/task/TaskKanban.test.js +0 -99
- package/dist/components/task/TaskList.test.d.ts +0 -1
- package/dist/components/task/TaskList.test.js +0 -473
- package/dist/components/task/TaskStatusActions.test.d.ts +0 -1
- package/dist/components/task/TaskStatusActions.test.js +0 -54
- package/dist/components/task/taskKanbanDropRules.test.d.ts +0 -1
- package/dist/components/task/taskKanbanDropRules.test.js +0 -114
- package/dist/components/ui/LevelSelector.test.d.ts +0 -1
- package/dist/components/ui/LevelSelector.test.js +0 -55
- package/dist/components/ui/Markdown.test.d.ts +0 -1
- package/dist/components/ui/Markdown.test.js +0 -38
- package/dist/components/ui/MultiSelectFilter.test.d.ts +0 -1
- package/dist/components/ui/MultiSelectFilter.test.js +0 -74
- package/dist/components/ui/TaxonomyDropdown.test.d.ts +0 -1
- package/dist/components/ui/TaxonomyDropdown.test.js +0 -130
- package/dist/components/ui/TopNoticeLayer.test.d.ts +0 -1
- package/dist/components/ui/TopNoticeLayer.test.js +0 -25
- package/dist/components/views/AppShellHeader.test.d.ts +0 -1
- package/dist/components/views/AppShellHeader.test.js +0 -42
- package/dist/components/views/PlanComparisonPage.test.d.ts +0 -1
- package/dist/components/views/PlanComparisonPage.test.js +0 -757
- package/dist/components/views/PlansPage.test.d.ts +0 -1
- package/dist/components/views/PlansPage.test.js +0 -710
- package/dist/components/views/chrome/WorkspaceChromeSections.test.d.ts +0 -1
- package/dist/components/views/chrome/WorkspaceChromeSections.test.js +0 -54
- package/dist/components/views/chrome/workspaceChrome.test.d.ts +0 -1
- package/dist/components/views/chrome/workspaceChrome.test.js +0 -52
- package/dist/components/views/panels/DocumentFilterToolbar.test.d.ts +0 -1
- package/dist/components/views/panels/DocumentFilterToolbar.test.js +0 -19
- package/dist/components/views/panels/FilterToolbar.test.d.ts +0 -1
- package/dist/components/views/panels/FilterToolbar.test.js +0 -47
- package/dist/components/views/panels/PlanningDrawer.test.d.ts +0 -1
- package/dist/components/views/panels/PlanningDrawer.test.js +0 -529
- package/dist/components/views/planningScope.test.d.ts +0 -1
- package/dist/components/views/planningScope.test.js +0 -60
- package/dist/components/views/standalone/modals/AccountHubModal.test.d.ts +0 -1
- package/dist/components/views/standalone/modals/AccountHubModal.test.js +0 -66
- package/dist/components/views/standalone/modals/SyncEnableWarningModal.test.d.ts +0 -1
- package/dist/components/views/standalone/modals/SyncEnableWarningModal.test.js +0 -24
- package/dist/components/views/teamManagementAccess.test.d.ts +0 -1
- package/dist/components/views/teamManagementAccess.test.js +0 -44
- package/dist/config/deployment.test.d.ts +0 -1
- package/dist/config/deployment.test.js +0 -90
- package/dist/config/envSchema.test.d.ts +0 -1
- package/dist/config/envSchema.test.js +0 -125
- package/dist/core/AiProfileService.test.d.ts +0 -1
- package/dist/core/AiProfileService.test.js +0 -184
- package/dist/core/AiProfiles.test.d.ts +0 -1
- package/dist/core/AiProfiles.test.js +0 -1873
- package/dist/core/AuthTokenService.test.d.ts +0 -1
- package/dist/core/AuthTokenService.test.js +0 -78
- package/dist/core/BulkUpdateFieldsPreview.test.d.ts +0 -1
- package/dist/core/BulkUpdateFieldsPreview.test.js +0 -62
- package/dist/core/CompletedAt.test.d.ts +0 -1
- package/dist/core/CompletedAt.test.js +0 -44
- package/dist/core/CreatedBy.test.d.ts +0 -1
- package/dist/core/CreatedBy.test.js +0 -188
- package/dist/core/DeletedTaskTrash.test.d.ts +0 -1
- package/dist/core/DeletedTaskTrash.test.js +0 -104
- package/dist/core/EntitlementsPolicy.test.d.ts +0 -1
- package/dist/core/EntitlementsPolicy.test.js +0 -280
- package/dist/core/GlobalSettingsService.test.d.ts +0 -1
- package/dist/core/GlobalSettingsService.test.js +0 -45
- package/dist/core/JsonBackupRuntime.test.d.ts +0 -1
- package/dist/core/JsonBackupRuntime.test.js +0 -155
- package/dist/core/PlanFeatureCatalog.test.d.ts +0 -1
- package/dist/core/PlanFeatureCatalog.test.js +0 -139
- package/dist/core/PlanVersionPolicy.test.d.ts +0 -1
- package/dist/core/PlanVersionPolicy.test.js +0 -204
- package/dist/core/PlanningEntities.test.d.ts +0 -1
- package/dist/core/PlanningEntities.test.js +0 -509
- package/dist/core/ScheduleFields.test.d.ts +0 -1
- package/dist/core/ScheduleFields.test.js +0 -193
- package/dist/core/SetupState.test.d.ts +0 -1
- package/dist/core/SetupState.test.js +0 -113
- package/dist/core/SignupMonetizationSettings.test.d.ts +0 -1
- package/dist/core/SignupMonetizationSettings.test.js +0 -515
- package/dist/core/Stats.test.d.ts +0 -1
- package/dist/core/Stats.test.js +0 -36
- package/dist/core/SystemAdmin.test.d.ts +0 -1
- package/dist/core/SystemAdmin.test.js +0 -1106
- package/dist/core/TaskActivitySync.test.d.ts +0 -1
- package/dist/core/TaskActivitySync.test.js +0 -90
- package/dist/core/TaskAttachmentsCanonical.test.d.ts +0 -1
- package/dist/core/TaskAttachmentsCanonical.test.js +0 -356
- package/dist/core/TaskAuditTimeline.test.d.ts +0 -1
- package/dist/core/TaskAuditTimeline.test.js +0 -319
- package/dist/core/TaskTaxonomyValidation.test.d.ts +0 -1
- package/dist/core/TaskTaxonomyValidation.test.js +0 -440
- package/dist/core/Taskforce.ids.test.d.ts +0 -1
- package/dist/core/Taskforce.ids.test.js +0 -611
- package/dist/core/Taskforce.listTasksSlim.test.d.ts +0 -1
- package/dist/core/Taskforce.listTasksSlim.test.js +0 -91
- package/dist/core/Taskforce.mcpAuth.test.d.ts +0 -1
- package/dist/core/Taskforce.mcpAuth.test.js +0 -450
- package/dist/core/Taskforce.realtimeMutation.test.d.ts +0 -1
- package/dist/core/Taskforce.realtimeMutation.test.js +0 -131
- package/dist/core/UserProfileAvatarDrafts.test.d.ts +0 -1
- package/dist/core/UserProfileAvatarDrafts.test.js +0 -138
- package/dist/core/WorkspaceDelete.test.d.ts +0 -1
- package/dist/core/WorkspaceDelete.test.js +0 -159
- package/dist/core/WorkspacePermissions.test.d.ts +0 -1
- package/dist/core/WorkspacePermissions.test.js +0 -270
- package/dist/core/WorkspacePlanMode.test.d.ts +0 -1
- package/dist/core/WorkspacePlanMode.test.js +0 -383
- package/dist/core/WorkspaceSyncSettings.test.d.ts +0 -1
- package/dist/core/WorkspaceSyncSettings.test.js +0 -65
- package/dist/core/__tests__/TaskAttachmentsCanonical.test.d.ts +0 -1
- package/dist/core/__tests__/TaskAttachmentsCanonical.test.js +0 -212
- package/dist/documentReviews/DocumentReviewSessionStore.test.d.ts +0 -1
- package/dist/documentReviews/DocumentReviewSessionStore.test.js +0 -127
- package/dist/hooks/authGuardPolicy.test.d.ts +0 -1
- package/dist/hooks/authGuardPolicy.test.js +0 -76
- package/dist/hooks/bootstrapTimeouts.test.d.ts +0 -1
- package/dist/hooks/bootstrapTimeouts.test.js +0 -12
- package/dist/hooks/sync/controlPlane.test.d.ts +0 -1
- package/dist/hooks/sync/controlPlane.test.js +0 -121
- package/dist/hooks/sync/lifecyclePolicy.test.d.ts +0 -1
- package/dist/hooks/sync/lifecyclePolicy.test.js +0 -124
- package/dist/hooks/sync/orchestratorShared.test.d.ts +0 -1
- package/dist/hooks/sync/orchestratorShared.test.js +0 -98
- package/dist/hooks/sync/pullLifecycle.test.d.ts +0 -1
- package/dist/hooks/sync/pullLifecycle.test.js +0 -80
- package/dist/hooks/sync/recovery.test.d.ts +0 -1
- package/dist/hooks/sync/recovery.test.js +0 -292
- package/dist/hooks/sync/transfers.test.d.ts +0 -1
- package/dist/hooks/sync/transfers.test.js +0 -928
- package/dist/hooks/sync/useRecentSyncEvents.test.d.ts +0 -1
- package/dist/hooks/sync/useRecentSyncEvents.test.js +0 -124
- package/dist/hooks/sync/useSyncStatusActions.test.d.ts +0 -1
- package/dist/hooks/sync/useSyncStatusActions.test.js +0 -133
- package/dist/hooks/sync/useSyncStatusControls.test.d.ts +0 -1
- package/dist/hooks/sync/useSyncStatusControls.test.js +0 -88
- package/dist/hooks/useFilterSort.test.d.ts +0 -1
- package/dist/hooks/useFilterSort.test.js +0 -419
- package/dist/hooks/useRealtimeSync.test.d.ts +0 -1
- package/dist/hooks/useRealtimeSync.test.js +0 -311
- package/dist/hooks/useSyncOrchestrator.aiProfiles.test.d.ts +0 -1
- package/dist/hooks/useSyncOrchestrator.aiProfiles.test.js +0 -54
- package/dist/hooks/useSyncOrchestrator.context-assets.test.d.ts +0 -1
- package/dist/hooks/useSyncOrchestrator.context-assets.test.js +0 -228
- package/dist/hooks/useSyncOrchestrator.retry-closure.test.d.ts +0 -1
- package/dist/hooks/useSyncOrchestrator.retry-closure.test.js +0 -2027
- package/dist/hooks/useTaskData.test.d.ts +0 -1
- package/dist/hooks/useTaskData.test.js +0 -291
- package/dist/hooks/useTaskMutations.test.d.ts +0 -1
- package/dist/hooks/useTaskMutations.test.js +0 -256
- package/dist/hooks/useTaskforce.contract.test.d.ts +0 -1
- package/dist/hooks/useTaskforce.contract.test.js +0 -7
- package/dist/hooks/useTaskforce.priority-filters.test.d.ts +0 -1
- package/dist/hooks/useTaskforce.priority-filters.test.js +0 -28
- package/dist/hooks/useTaskforce.runtime-routing.test.d.ts +0 -1
- package/dist/hooks/useTaskforce.runtime-routing.test.js +0 -246
- package/dist/hooks/useTaskforce.sync-behavior.test.d.ts +0 -1
- package/dist/hooks/useTaskforce.sync-behavior.test.js +0 -3644
- package/dist/hooks/useWorkspaceSyncController.test.d.ts +0 -1
- package/dist/hooks/useWorkspaceSyncController.test.js +0 -192
- package/dist/hooks/workspace/useTaskforceApiRouting.test.d.ts +0 -1
- package/dist/hooks/workspace/useTaskforceApiRouting.test.js +0 -77
- package/dist/hooks/workspace/workspaceLocalState.test.d.ts +0 -1
- package/dist/hooks/workspace/workspaceLocalState.test.js +0 -59
- package/dist/localization/localizationCatalogs.test.d.ts +0 -1
- package/dist/localization/localizationCatalogs.test.js +0 -37
- package/dist/mcp/aiProfileBootstrap.test.d.ts +0 -1
- package/dist/mcp/aiProfileBootstrap.test.js +0 -68
- package/dist/mcp/canonicalAssetHelpers.test.d.ts +0 -1
- package/dist/mcp/canonicalAssetHelpers.test.js +0 -67
- package/dist/mcp/clientIntegrations.test.d.ts +0 -1
- package/dist/mcp/clientIntegrations.test.js +0 -219
- package/dist/mcp/optionResolution.test.d.ts +0 -1
- package/dist/mcp/optionResolution.test.js +0 -43
- package/dist/mcp/runtime.test.d.ts +0 -1
- package/dist/mcp/runtime.test.js +0 -5120
- package/dist/mcp/structuredCommentValidation.test.d.ts +0 -1
- package/dist/mcp/structuredCommentValidation.test.js +0 -31
- package/dist/mcp/structuredDocValidation.test.d.ts +0 -1
- package/dist/mcp/structuredDocValidation.test.js +0 -35
- package/dist/mcp/toolRegistry.test.d.ts +0 -1
- package/dist/mcp/toolRegistry.test.js +0 -34
- package/dist/migrations/billingSchemaParity.test.d.ts +0 -1
- package/dist/migrations/billingSchemaParity.test.js +0 -160
- package/dist/migrations/taskSchemaMigrations.test.d.ts +0 -1
- package/dist/migrations/taskSchemaMigrations.test.js +0 -225
- package/dist/qaOpen.test.d.ts +0 -1
- package/dist/qaOpen.test.js +0 -56
- package/dist/releaseVersion.test.d.ts +0 -1
- package/dist/releaseVersion.test.js +0 -32
- package/dist/runtime/appGates.test.d.ts +0 -1
- package/dist/runtime/appGates.test.js +0 -42
- package/dist/server/aiProfileAvatarAssets.test.d.ts +0 -1
- package/dist/server/aiProfileAvatarAssets.test.js +0 -213
- package/dist/server/annotatedAttachmentsRoutes.test.d.ts +0 -1
- package/dist/server/annotatedAttachmentsRoutes.test.js +0 -532
- package/dist/server/auth.test.d.ts +0 -1
- package/dist/server/auth.test.js +0 -131
- package/dist/server/buildInfo.test.d.ts +0 -1
- package/dist/server/buildInfo.test.js +0 -29
- package/dist/server/cors.test.d.ts +0 -1
- package/dist/server/cors.test.js +0 -77
- package/dist/server/documentReviewRoutes.test.d.ts +0 -1
- package/dist/server/documentReviewRoutes.test.js +0 -190
- package/dist/server/email.test.d.ts +0 -1
- package/dist/server/email.test.js +0 -113
- package/dist/server/index.cookieProxy.test.d.ts +0 -1
- package/dist/server/index.cookieProxy.test.js +0 -67
- package/dist/server/index.rateLimit.test.d.ts +0 -1
- package/dist/server/index.rateLimit.test.js +0 -22
- package/dist/server/index.test.d.ts +0 -1
- package/dist/server/index.test.js +0 -283
- package/dist/server/rateLimit.test.d.ts +0 -1
- package/dist/server/rateLimit.test.js +0 -107
- package/dist/server/realtimeSync.auth.test.d.ts +0 -1
- package/dist/server/realtimeSync.auth.test.js +0 -62
- package/dist/server/realtimeSync.replay.test.d.ts +0 -1
- package/dist/server/realtimeSync.replay.test.js +0 -192
- package/dist/server/realtimeSync.workspaceIsolation.test.d.ts +0 -1
- package/dist/server/realtimeSync.workspaceIsolation.test.js +0 -101
- package/dist/server/routes/billing.test.d.ts +0 -1
- package/dist/server/routes/billing.test.js +0 -3455
- package/dist/server/routes/shared.test.d.ts +0 -1
- package/dist/server/routes/shared.test.js +0 -32
- package/dist/server/routes/sync.integration.test.d.ts +0 -1
- package/dist/server/routes/sync.integration.test.js +0 -2932
- package/dist/server/routes/syncAuxRoutes.test.d.ts +0 -1
- package/dist/server/routes/syncAuxRoutes.test.js +0 -158
- package/dist/server/routes/syncRouteGuards.test.d.ts +0 -1
- package/dist/server/routes/syncRouteGuards.test.js +0 -94
- package/dist/server/routes.test.d.ts +0 -1
- package/dist/server/routes.test.js +0 -15612
- package/dist/server/runtimeMode.test.d.ts +0 -1
- package/dist/server/runtimeMode.test.js +0 -26
- package/dist/server/securityHeaders.test.d.ts +0 -1
- package/dist/server/securityHeaders.test.js +0 -70
- package/dist/services/templateEngine.test.d.ts +0 -1
- package/dist/services/templateEngine.test.js +0 -150
- package/dist/services/templates.test.d.ts +0 -1
- package/dist/services/templates.test.js +0 -45
- package/dist/services/workflowDocumentFixtures.test.d.ts +0 -1
- package/dist/services/workflowDocumentFixtures.test.js +0 -78
- package/dist/services/workflowExportMatrix.test.d.ts +0 -1
- package/dist/services/workflowExportMatrix.test.js +0 -113
- package/dist/services/workflowExportSnapshots.test.d.ts +0 -1
- package/dist/services/workflowExportSnapshots.test.js +0 -30
- package/dist/services/workflowGeneration.test.d.ts +0 -1
- package/dist/services/workflowGeneration.test.js +0 -12
- package/dist/services/workflowSimulation.test.d.ts +0 -1
- package/dist/services/workflowSimulation.test.js +0 -113
- package/dist/services/workflowV2Policy.test.d.ts +0 -1
- package/dist/services/workflowV2Policy.test.js +0 -80
- package/dist/shared/customTaxonomyLibrary.test.d.ts +0 -1
- package/dist/shared/customTaxonomyLibrary.test.js +0 -20
- package/dist/shared/passwordPolicy.test.d.ts +0 -1
- package/dist/shared/passwordPolicy.test.js +0 -34
- package/dist/shared/runtimeContract.test.d.ts +0 -1
- package/dist/shared/runtimeContract.test.js +0 -23
- package/dist/shared/taxonomyLibrary.test.d.ts +0 -1
- package/dist/shared/taxonomyLibrary.test.js +0 -26
- package/dist/shared/taxonomyState.test.d.ts +0 -1
- package/dist/shared/taxonomyState.test.js +0 -71
- package/dist/soak/preflight.cli.d.ts +0 -1
- package/dist/soak/preflight.cli.js +0 -28
- package/dist/soak/preflight.d.ts +0 -26
- package/dist/soak/preflight.js +0 -113
- package/dist/soak/preflight.test.d.ts +0 -1
- package/dist/soak/preflight.test.js +0 -39
- package/dist/storage/objectStorageClient.test.d.ts +0 -1
- package/dist/storage/objectStorageClient.test.js +0 -82
- package/dist/storage/objectStorageConfig.test.d.ts +0 -1
- package/dist/storage/objectStorageConfig.test.js +0 -50
- package/dist/storage/postgresAdapter.test.d.ts +0 -1
- package/dist/storage/postgresAdapter.test.js +0 -29
- package/dist/storage/workspaceAssetStore.test.d.ts +0 -1
- package/dist/storage/workspaceAssetStore.test.js +0 -588
- package/dist/sync/cloudSyncApi.test.d.ts +0 -1
- package/dist/sync/cloudSyncApi.test.js +0 -111
- package/dist/sync/collaborationSyncPayload.test.d.ts +0 -1
- package/dist/sync/collaborationSyncPayload.test.js +0 -125
- package/dist/sync/contentSyncPayload.test.d.ts +0 -1
- package/dist/sync/contentSyncPayload.test.js +0 -143
- package/dist/sync/encryptionService.test.d.ts +0 -1
- package/dist/sync/encryptionService.test.js +0 -52
- package/dist/sync/planningSyncPayload.test.d.ts +0 -1
- package/dist/sync/planningSyncPayload.test.js +0 -92
- package/dist/sync/realtimeFeature.test.d.ts +0 -1
- package/dist/sync/realtimeFeature.test.js +0 -30
- package/dist/sync/realtimeReconcile.test.d.ts +0 -1
- package/dist/sync/realtimeReconcile.test.js +0 -43
- package/dist/sync/syncApplyHandlers.test.d.ts +0 -1
- package/dist/sync/syncApplyHandlers.test.js +0 -626
- package/dist/sync/syncService.test.d.ts +0 -1
- package/dist/sync/syncService.test.js +0 -903
- package/dist/sync/taskSyncPayload.test.d.ts +0 -1
- package/dist/sync/taskSyncPayload.test.js +0 -54
- package/dist/sync/workspacePullFeed.test.d.ts +0 -1
- package/dist/sync/workspacePullFeed.test.js +0 -438
- package/dist/sync/workspaceSyncModel.test.d.ts +0 -1
- package/dist/sync/workspaceSyncModel.test.js +0 -1442
- package/dist/test/setup.d.ts +0 -1
- package/dist/test/setup.js +0 -15
- package/dist/ui/assets/AgentsModule-BS4Pi_nC.js +0 -1
- package/dist/ui/assets/ContextAttachmentManager-CfG_ER7C.js +0 -3
- package/dist/ui/assets/PlansPage-B_z-D6Nh.css +0 -1
- package/dist/ui/assets/PlansPage-Ndt7mYfo.js +0 -1
- package/dist/ui/assets/documentReferences-BOUcJm6-.js +0 -1
- package/dist/ui/assets/index-MAHKvFqp.js +0 -4
- package/dist/utils/accountProfileSummaryCache.test.d.ts +0 -1
- package/dist/utils/accountProfileSummaryCache.test.js +0 -63
- package/dist/utils/annotatedAttachments.test.d.ts +0 -1
- package/dist/utils/annotatedAttachments.test.js +0 -108
- package/dist/utils/assignees.test.d.ts +0 -1
- package/dist/utils/assignees.test.js +0 -25
- package/dist/utils/avatarUpload.test.d.ts +0 -1
- package/dist/utils/avatarUpload.test.js +0 -40
- package/dist/utils/canonicalAssetKind.test.d.ts +0 -1
- package/dist/utils/canonicalAssetKind.test.js +0 -24
- package/dist/utils/coalescedRefresh.test.d.ts +0 -1
- package/dist/utils/coalescedRefresh.test.js +0 -30
- package/dist/utils/constants.icons.test.d.ts +0 -1
- package/dist/utils/constants.icons.test.js +0 -41
- package/dist/utils/planParser.test.d.ts +0 -1
- package/dist/utils/planParser.test.js +0 -183
- package/dist/utils/planningReferences.test.d.ts +0 -1
- package/dist/utils/planningReferences.test.js +0 -17
- package/dist/utils/syncEventDetails.test.d.ts +0 -1
- package/dist/utils/syncEventDetails.test.js +0 -23
- package/dist/utils/syncEventPresentation.test.d.ts +0 -1
- package/dist/utils/syncEventPresentation.test.js +0 -64
- package/dist/utils/syncStatusPresentation.test.d.ts +0 -1
- package/dist/utils/syncStatusPresentation.test.js +0 -164
- package/dist/utils/taskActivity.test.d.ts +0 -1
- package/dist/utils/taskActivity.test.js +0 -218
- package/dist/utils/taskDraftDefaults.test.d.ts +0 -1
- package/dist/utils/taskDraftDefaults.test.js +0 -34
- package/dist/utils/taskDragZones.test.d.ts +0 -1
- package/dist/utils/taskDragZones.test.js +0 -14
- package/dist/utils/taskNormalization.test.d.ts +0 -1
- package/dist/utils/taskNormalization.test.js +0 -158
- package/dist/utils/taskSearch.test.d.ts +0 -1
- package/dist/utils/taskSearch.test.js +0 -69
- package/dist/utils/taskUtils.test.d.ts +0 -1
- package/dist/utils/taskUtils.test.js +0 -19
- package/dist/utils/taskforceApiClient.test.d.ts +0 -1
- package/dist/utils/taskforceApiClient.test.js +0 -44
- package/dist/utils/taxonomyFormDefaults.test.d.ts +0 -1
- package/dist/utils/taxonomyFormDefaults.test.js +0 -63
- package/dist/utils/uiNotice.test.d.ts +0 -1
- package/dist/utils/uiNotice.test.js +0 -18
- package/dist/utils/workspaceIdentity.test.d.ts +0 -1
- package/dist/utils/workspaceIdentity.test.js +0 -61
- package/dist/utils/workspaceLifecycle.test.d.ts +0 -1
- package/dist/utils/workspaceLifecycle.test.js +0 -64
- package/dist/utils/workspaceSyncPresentation.test.d.ts +0 -1
- package/dist/utils/workspaceSyncPresentation.test.js +0 -71
- package/scripts/bootstrap-playwright-auth.mjs +0 -155
- package/scripts/check-cloud-mcp.mjs +0 -83
- package/scripts/check-compat-boundaries.mjs +0 -41
- package/scripts/check-env.ts +0 -31
- package/scripts/check-localization-strings.mjs +0 -49
- package/scripts/check-runtime-boundaries.mjs +0 -44
- package/scripts/debug-global.mjs +0 -34
- package/scripts/debug-login.mjs +0 -32
- package/scripts/debug-server.mjs +0 -36
- package/scripts/deploy-prod.sh +0 -41
- package/scripts/deploy-staging.sh +0 -23
- package/scripts/export-sqlite-to-postgres.mjs +0 -123
- package/scripts/generate-env-example.ts +0 -8
- package/scripts/mcp-stdio-adapter.mjs +0 -160
- package/scripts/migrate-task-data-assets.mjs +0 -408
- package/scripts/playwright-auth.sh +0 -19
- package/scripts/qa-open-lib.mjs +0 -175
- package/scripts/qa-open-lib.mjs.d.ts +0 -49
- package/scripts/qa-open.mjs +0 -352
- package/scripts/release-version-lib.mjs +0 -88
- package/scripts/release-version.mjs +0 -72
- package/scripts/run-billing-performance-smoke.sh +0 -24
- package/scripts/run-dev-proxy.sh +0 -51
- package/scripts/run-e2e-realtime.sh +0 -30
- package/scripts/run-smoke.sh +0 -35
- package/scripts/run-soak.sh +0 -41
- package/scripts/test-global.js +0 -143
- package/scripts/update-homebrew-formula.sh +0 -108
- package/scripts/with-esbuild.sh +0 -11
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest';
|
|
2
|
-
import { areSyncEventListsEqual, formatSyncEventLine, getSyncEventStableKey, mergeRecentSyncEvents, } from './syncEventPresentation';
|
|
3
|
-
describe('syncEventPresentation', () => {
|
|
4
|
-
it('formats blocked manual retry events with the local reason and phase', () => {
|
|
5
|
-
const line = formatSyncEventLine({
|
|
6
|
-
occurredAt: '2026-04-18T18:00:00.000Z',
|
|
7
|
-
eventType: 'pull',
|
|
8
|
-
status: 'error',
|
|
9
|
-
errorMessage: 'Manual sync retry blocked: sign in is required.',
|
|
10
|
-
details: {
|
|
11
|
-
source: 'retry.blocked',
|
|
12
|
-
reason: 'auth-required',
|
|
13
|
-
phase: 'active'
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
expect(line).toBe('2026-04-18T18:00:00.000Z manual retry blocked: sign in required during active sync');
|
|
17
|
-
});
|
|
18
|
-
it('formats manual repair start events with the chosen repair phase', () => {
|
|
19
|
-
const line = formatSyncEventLine({
|
|
20
|
-
occurredAt: '2026-04-18T18:05:00.000Z',
|
|
21
|
-
eventType: 'bootstrap',
|
|
22
|
-
status: 'success',
|
|
23
|
-
errorMessage: 'Manual sync repair started.',
|
|
24
|
-
details: {
|
|
25
|
-
source: 'repair.started',
|
|
26
|
-
phase: 'error',
|
|
27
|
-
repairPhase: 'attach-cloud'
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
expect(line).toBe('2026-04-18T18:05:00.000Z manual repair started: initial cloud pull selected');
|
|
31
|
-
});
|
|
32
|
-
it('falls back to the generic event formatter for normal sync events', () => {
|
|
33
|
-
const line = formatSyncEventLine({
|
|
34
|
-
occurredAt: '2026-04-18T18:10:00.000Z',
|
|
35
|
-
eventType: 'push',
|
|
36
|
-
status: 'success',
|
|
37
|
-
changeCount: 3,
|
|
38
|
-
requestMs: 42
|
|
39
|
-
});
|
|
40
|
-
expect(line).toBe('2026-04-18T18:10:00.000Z push succeeded (3 changes) in 42ms');
|
|
41
|
-
});
|
|
42
|
-
it('deduplicates and compares event lists using stable keys', () => {
|
|
43
|
-
const event = {
|
|
44
|
-
occurredAt: '2026-04-18T18:10:00.000Z',
|
|
45
|
-
eventType: 'push',
|
|
46
|
-
status: 'success',
|
|
47
|
-
changeCount: 1
|
|
48
|
-
};
|
|
49
|
-
const merged = mergeRecentSyncEvents([event], [event], 15);
|
|
50
|
-
expect(merged).toHaveLength(1);
|
|
51
|
-
expect(areSyncEventListsEqual(merged, [event])).toBe(true);
|
|
52
|
-
expect(getSyncEventStableKey(event)).toContain('2026-04-18T18:10:00.000Z');
|
|
53
|
-
});
|
|
54
|
-
it('builds stable keys even when event details contain circular or bigint values', () => {
|
|
55
|
-
const circular = { count: 3n };
|
|
56
|
-
circular.self = circular;
|
|
57
|
-
expect(() => getSyncEventStableKey({
|
|
58
|
-
occurredAt: '2026-04-18T18:10:00.000Z',
|
|
59
|
-
eventType: 'apply',
|
|
60
|
-
status: 'error',
|
|
61
|
-
details: circular
|
|
62
|
-
})).not.toThrow();
|
|
63
|
-
});
|
|
64
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest';
|
|
2
|
-
import { buildCopySyncDetailsText, buildReferenceMismatchSummaries, buildSyncDiagnosticsSummary, buildSyncEventRows, getActiveReferenceMismatchCount, resolveSyncStageLabel, resolveSyncStatusMeta, } from './syncStatusPresentation';
|
|
3
|
-
describe('syncStatusPresentation', () => {
|
|
4
|
-
it('resolves sync status badges for visible header states', () => {
|
|
5
|
-
expect(resolveSyncStatusMeta('healthy')).toMatchObject({
|
|
6
|
-
label: 'Healthy',
|
|
7
|
-
icon: 'cloud',
|
|
8
|
-
});
|
|
9
|
-
expect(resolveSyncStatusMeta('attention')).toMatchObject({
|
|
10
|
-
label: 'Needs Attention',
|
|
11
|
-
icon: 'cloud',
|
|
12
|
-
});
|
|
13
|
-
expect(resolveSyncStatusMeta('off')).toMatchObject({
|
|
14
|
-
label: 'Off',
|
|
15
|
-
icon: 'off',
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
it('describes startup and repair stages for the sync manager', () => {
|
|
19
|
-
expect(resolveSyncStageLabel('attach-cloud', false, true)).toBe('Initial cloud pull');
|
|
20
|
-
expect(resolveSyncStageLabel('error', true, true)).toBe('Repairing');
|
|
21
|
-
expect(resolveSyncStageLabel('error', false, true)).toBe('Recovering');
|
|
22
|
-
});
|
|
23
|
-
it('builds the diagnostics summary from sync snapshot counts', () => {
|
|
24
|
-
const summary = buildSyncDiagnosticsSummary({
|
|
25
|
-
aiProfileSnapshotCount: 2,
|
|
26
|
-
aiProfileSnapshotRawCount: 4,
|
|
27
|
-
lastPushedAiProfileCount: 3,
|
|
28
|
-
lastPushedAiProfileWatermarkCount: 5,
|
|
29
|
-
documentSnapshotCount: 1,
|
|
30
|
-
assetSnapshotCount: 2,
|
|
31
|
-
forceFullAiProfilePushQueued: true,
|
|
32
|
-
aiProfileSnapshotLastFetchAt: null,
|
|
33
|
-
aiProfileSnapshotLastFetchError: '',
|
|
34
|
-
aiProfileSnapshotLastSkipReason: null,
|
|
35
|
-
});
|
|
36
|
-
expect(summary).toContainEqual({
|
|
37
|
-
label: 'AI profile snapshot',
|
|
38
|
-
value: '2 local profiles',
|
|
39
|
-
});
|
|
40
|
-
expect(summary).toContainEqual({
|
|
41
|
-
label: 'Document snapshot',
|
|
42
|
-
value: '1 local doc',
|
|
43
|
-
});
|
|
44
|
-
expect(summary).toContainEqual({
|
|
45
|
-
label: 'Queued full AI sync',
|
|
46
|
-
value: 'Yes',
|
|
47
|
-
});
|
|
48
|
-
});
|
|
49
|
-
it('keeps only active reference mismatches until the next successful sync event', () => {
|
|
50
|
-
const events = [
|
|
51
|
-
{
|
|
52
|
-
occurredAt: '2026-04-18T10:00:00.000Z',
|
|
53
|
-
status: 'error',
|
|
54
|
-
errorMessage: 'Detected task reference number mismatch during normal sync.',
|
|
55
|
-
details: {
|
|
56
|
-
path: 'docs/spec.md',
|
|
57
|
-
existingReferenceNumber: 14,
|
|
58
|
-
incomingReferenceNumber: 8,
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
occurredAt: '2026-04-18T09:59:00.000Z',
|
|
63
|
-
status: 'success',
|
|
64
|
-
errorMessage: '',
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
occurredAt: '2026-04-18T09:58:00.000Z',
|
|
68
|
-
status: 'error',
|
|
69
|
-
errorMessage: 'Detected task reference number mismatch during normal sync.',
|
|
70
|
-
},
|
|
71
|
-
];
|
|
72
|
-
expect(getActiveReferenceMismatchCount(events)).toBe(1);
|
|
73
|
-
expect(buildReferenceMismatchSummaries(events)).toEqual([
|
|
74
|
-
expect.objectContaining({
|
|
75
|
-
pathLabel: 'docs/spec.md',
|
|
76
|
-
refsLabel: 'Existing 14 vs incoming 8',
|
|
77
|
-
}),
|
|
78
|
-
]);
|
|
79
|
-
});
|
|
80
|
-
it('builds readable sync event rows for loading, errors, and structured events', () => {
|
|
81
|
-
expect(buildSyncEventRows({
|
|
82
|
-
syncRecentEvents: [],
|
|
83
|
-
syncRecentEventsError: null,
|
|
84
|
-
syncRecentEventsLoading: true,
|
|
85
|
-
})).toEqual([{
|
|
86
|
-
key: 'loading',
|
|
87
|
-
text: 'Loading recent sync events...',
|
|
88
|
-
tone: 'muted',
|
|
89
|
-
}]);
|
|
90
|
-
expect(buildSyncEventRows({
|
|
91
|
-
syncRecentEvents: [],
|
|
92
|
-
syncRecentEventsError: 'Unable to load events.',
|
|
93
|
-
syncRecentEventsLoading: false,
|
|
94
|
-
})).toEqual([{
|
|
95
|
-
key: 'error',
|
|
96
|
-
text: 'Unable to load events.',
|
|
97
|
-
tone: 'error',
|
|
98
|
-
}]);
|
|
99
|
-
expect(buildSyncEventRows({
|
|
100
|
-
syncRecentEvents: [{
|
|
101
|
-
occurredAt: '2026-04-18T10:00:00.000Z',
|
|
102
|
-
status: 'error',
|
|
103
|
-
details: {
|
|
104
|
-
source: 'retry.blocked',
|
|
105
|
-
reason: 'lease-held',
|
|
106
|
-
phase: 'active',
|
|
107
|
-
},
|
|
108
|
-
}],
|
|
109
|
-
syncRecentEventsError: null,
|
|
110
|
-
syncRecentEventsLoading: false,
|
|
111
|
-
})[0]).toMatchObject({
|
|
112
|
-
tone: 'error',
|
|
113
|
-
text: '2026-04-18T10:00:00.000Z manual retry blocked: another window is already syncing during active sync',
|
|
114
|
-
});
|
|
115
|
-
});
|
|
116
|
-
it('assembles the sync manager report text from the current view model', () => {
|
|
117
|
-
const report = buildCopySyncDetailsText({
|
|
118
|
-
currentWorkspaceId: 'workspace-123',
|
|
119
|
-
syncStatusLabel: 'Needs Attention',
|
|
120
|
-
workspaceSyncSummary: 'Sync is paused until you sign in again.',
|
|
121
|
-
workspaceSyncRecommendedAction: 'Sign in, then press Sync to retry.',
|
|
122
|
-
formattedLastSyncTime: '4/17/2026, 10:32:47 PM',
|
|
123
|
-
formattedLastPullTime: '4/17/2026, 10:32:47 PM',
|
|
124
|
-
formattedLastPushTime: '4/17/2026, 10:31:45 PM',
|
|
125
|
-
workspaceSyncDiagnostics: {
|
|
126
|
-
lastErrorAt: '2026-04-18T01:33:05.980Z',
|
|
127
|
-
pushBlockedReason: 'attach-cloud',
|
|
128
|
-
pullBlockedReason: null,
|
|
129
|
-
retryBlockedReason: 'auth-required',
|
|
130
|
-
repairActive: false,
|
|
131
|
-
pushInFlight: false,
|
|
132
|
-
pullInFlight: true,
|
|
133
|
-
retryPending: false,
|
|
134
|
-
aiProfileSnapshotCount: 14,
|
|
135
|
-
aiProfileSnapshotRawCount: 14,
|
|
136
|
-
lastPushedAiProfileCount: 14,
|
|
137
|
-
lastPushedAiProfileWatermarkCount: 14,
|
|
138
|
-
aiProfileSnapshotLastFetchAt: '2026-04-18T11:15:52.000Z',
|
|
139
|
-
aiProfileSnapshotLastFetchError: null,
|
|
140
|
-
aiProfileSnapshotLastSkipReason: null,
|
|
141
|
-
documentSnapshotCount: 127,
|
|
142
|
-
assetSnapshotCount: 56,
|
|
143
|
-
forceFullAiProfilePushQueued: false,
|
|
144
|
-
},
|
|
145
|
-
workspaceSyncPendingChanges: 31,
|
|
146
|
-
syncLastError: 'Detected task reference number mismatch during normal sync.',
|
|
147
|
-
syncStageLabel: 'Active',
|
|
148
|
-
referenceMismatchCount: 3,
|
|
149
|
-
syncRecentEvents: [{
|
|
150
|
-
occurredAt: '2026-04-18T01:33:06.044Z',
|
|
151
|
-
eventType: 'apply',
|
|
152
|
-
status: 'success',
|
|
153
|
-
changeCount: 200,
|
|
154
|
-
requestMs: 167,
|
|
155
|
-
statusCode: 0,
|
|
156
|
-
}],
|
|
157
|
-
});
|
|
158
|
-
expect(report).toContain('Workspace ID: workspace-123');
|
|
159
|
-
expect(report).toContain('Push blocked reason: attach-cloud');
|
|
160
|
-
expect(report).toContain('Retry blocked reason: auth-required');
|
|
161
|
-
expect(report).toContain('Reference mismatches detected: 3');
|
|
162
|
-
expect(report).toContain('2026-04-18T01:33:06.044Z apply succeeded (200 changes) in 167ms [0]');
|
|
163
|
-
});
|
|
164
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest';
|
|
2
|
-
import { getTaskActivityItems, summarizeEntityEvent, summarizeTaskChange, summarizeTaskEvent } from './taskActivity';
|
|
3
|
-
describe('summarizeTaskChange', () => {
|
|
4
|
-
it('summarizes title edits without dumping before and after text', () => {
|
|
5
|
-
expect(summarizeTaskChange('title', {
|
|
6
|
-
from: 'Old title',
|
|
7
|
-
to: 'New title',
|
|
8
|
-
})).toBe('Title: updated');
|
|
9
|
-
});
|
|
10
|
-
it('summarizes assignee changes with sentence-case labels and formatted values', () => {
|
|
11
|
-
expect(summarizeTaskChange('assignee', { from: 'unassigned', to: 'member-1' }, (_field, value) => {
|
|
12
|
-
if (value === 'unassigned')
|
|
13
|
-
return 'Unassigned';
|
|
14
|
-
if (value === 'member-1')
|
|
15
|
-
return 'Emma Peel';
|
|
16
|
-
return undefined;
|
|
17
|
-
})).toBe('Assigned to: Unassigned -> Emma Peel');
|
|
18
|
-
});
|
|
19
|
-
it('summarizes description additions without rendering the body text', () => {
|
|
20
|
-
expect(summarizeTaskChange('description', {
|
|
21
|
-
from: '',
|
|
22
|
-
to: 'Line one\n\nLine two',
|
|
23
|
-
})).toBe('Description: added');
|
|
24
|
-
});
|
|
25
|
-
it('summarizes description clears without rendering the old body text', () => {
|
|
26
|
-
expect(summarizeTaskChange('description', {
|
|
27
|
-
from: 'Old body',
|
|
28
|
-
to: '',
|
|
29
|
-
})).toBe('Description: cleared');
|
|
30
|
-
});
|
|
31
|
-
it('summarizes checklist completion clearly', () => {
|
|
32
|
-
expect(summarizeTaskChange('checklistItems', {
|
|
33
|
-
from: [{ id: 'a', title: 'First item', isCompleted: false, order: 0 }],
|
|
34
|
-
to: [{ id: 'a', title: 'First item', isCompleted: true, order: 0 }],
|
|
35
|
-
})).toBe('Checklist item completed: First item');
|
|
36
|
-
});
|
|
37
|
-
it('summarizes checklist additions clearly', () => {
|
|
38
|
-
expect(summarizeTaskChange('checklistItems', {
|
|
39
|
-
from: [],
|
|
40
|
-
to: [{ id: 'a', title: 'First item', isCompleted: false, order: 0 }],
|
|
41
|
-
})).toBe('Checklist item added: First item');
|
|
42
|
-
});
|
|
43
|
-
it('summarizes checklist removals clearly', () => {
|
|
44
|
-
expect(summarizeTaskChange('checklistItems', {
|
|
45
|
-
from: [{ id: 'a', title: 'First item', isCompleted: false, order: 0 }],
|
|
46
|
-
to: [],
|
|
47
|
-
})).toBe('Checklist item removed: First item');
|
|
48
|
-
});
|
|
49
|
-
it('summarizes checklist reorder clearly', () => {
|
|
50
|
-
expect(summarizeTaskChange('checklistItems', {
|
|
51
|
-
from: [
|
|
52
|
-
{ id: 'a', title: 'First item', isCompleted: false, order: 0 },
|
|
53
|
-
{ id: 'b', title: 'Second item', isCompleted: false, order: 1 },
|
|
54
|
-
],
|
|
55
|
-
to: [
|
|
56
|
-
{ id: 'b', title: 'Second item', isCompleted: false, order: 0 },
|
|
57
|
-
{ id: 'a', title: 'First item', isCompleted: false, order: 1 },
|
|
58
|
-
],
|
|
59
|
-
})).toBe('Checklist reordered');
|
|
60
|
-
});
|
|
61
|
-
it('uses readable labels for workstream relationship changes', () => {
|
|
62
|
-
expect(summarizeTaskChange('workstreamId', { from: null, to: 'workstream-1' }, (_field, value) => value === 'workstream-1' ? 'WS-12' : undefined)).toBe('Workstream: none -> WS-12');
|
|
63
|
-
});
|
|
64
|
-
it('summarizes image attachment additions clearly', () => {
|
|
65
|
-
expect(summarizeTaskChange('attachments', {
|
|
66
|
-
from: [],
|
|
67
|
-
to: [{
|
|
68
|
-
path: '/api/taskforce/context/workspaces/default/assets/images/homepage-proof.png',
|
|
69
|
-
caption: 'Homepage proof',
|
|
70
|
-
}],
|
|
71
|
-
})).toBe('Image attached: Homepage proof');
|
|
72
|
-
});
|
|
73
|
-
it('summarizes document attachment removals clearly', () => {
|
|
74
|
-
expect(summarizeTaskChange('attachments', {
|
|
75
|
-
from: [{
|
|
76
|
-
path: '/api/taskforce/documents/asset-doc-1/content',
|
|
77
|
-
originalFilename: 'spec.md',
|
|
78
|
-
assetId: 'asset-doc-1',
|
|
79
|
-
}],
|
|
80
|
-
to: [],
|
|
81
|
-
})).toBe('Document removed: spec.md');
|
|
82
|
-
});
|
|
83
|
-
it('summarizes multiple document attachments concisely', () => {
|
|
84
|
-
expect(summarizeTaskChange('attachments', {
|
|
85
|
-
from: [],
|
|
86
|
-
to: [
|
|
87
|
-
{ path: '/api/taskforce/documents/asset-doc-1/content', originalFilename: 'spec.md', assetId: 'asset-doc-1' },
|
|
88
|
-
{ path: '/api/taskforce/documents/asset-doc-2/content', originalFilename: 'notes.pdf', assetId: 'asset-doc-2' },
|
|
89
|
-
],
|
|
90
|
-
})).toBe('2 documents attached');
|
|
91
|
-
});
|
|
92
|
-
it('summarizes attachment renames when the same asset remains attached', () => {
|
|
93
|
-
expect(summarizeTaskChange('attachments', {
|
|
94
|
-
from: [{
|
|
95
|
-
path: '/api/taskforce/documents/asset-doc-1/content',
|
|
96
|
-
assetId: 'asset-doc-1',
|
|
97
|
-
caption: 'Draft spec',
|
|
98
|
-
}],
|
|
99
|
-
to: [{
|
|
100
|
-
path: '/api/taskforce/documents/asset-doc-1/content',
|
|
101
|
-
assetId: 'asset-doc-1',
|
|
102
|
-
caption: 'Final spec',
|
|
103
|
-
}],
|
|
104
|
-
})).toBe('Document renamed: Draft spec -> Final spec');
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
describe('summarizeTaskEvent', () => {
|
|
108
|
-
it('uses readable labels for task relationship events', () => {
|
|
109
|
-
expect(summarizeTaskEvent({
|
|
110
|
-
id: 'event-1',
|
|
111
|
-
taskId: 'task-1',
|
|
112
|
-
workspaceId: 'default',
|
|
113
|
-
action: 'task-relationship-changed',
|
|
114
|
-
actor: 'user',
|
|
115
|
-
actorType: 'human',
|
|
116
|
-
createdAt: '2026-04-12T21:42:00.000Z',
|
|
117
|
-
details: {
|
|
118
|
-
changes: {
|
|
119
|
-
workstreamId: {
|
|
120
|
-
from: null,
|
|
121
|
-
to: 'workstream-1',
|
|
122
|
-
},
|
|
123
|
-
},
|
|
124
|
-
},
|
|
125
|
-
}, (_field, value) => value === 'workstream-1' ? 'WS-12' : undefined)).toBe('Workstream changed: none -> WS-12');
|
|
126
|
-
});
|
|
127
|
-
it('uses attachment-specific summaries for attachment activity events', () => {
|
|
128
|
-
expect(summarizeTaskEvent({
|
|
129
|
-
id: 'event-2',
|
|
130
|
-
taskId: 'task-1',
|
|
131
|
-
workspaceId: 'default',
|
|
132
|
-
action: 'task-attachments-changed',
|
|
133
|
-
actor: 'user',
|
|
134
|
-
actorType: 'human',
|
|
135
|
-
createdAt: '2026-04-12T21:42:00.000Z',
|
|
136
|
-
details: {
|
|
137
|
-
changes: {
|
|
138
|
-
attachments: {
|
|
139
|
-
from: [{
|
|
140
|
-
path: '/api/taskforce/context/workspaces/default/assets/images/old-proof.png',
|
|
141
|
-
caption: 'Old proof',
|
|
142
|
-
}],
|
|
143
|
-
to: [{
|
|
144
|
-
path: '/api/taskforce/context/workspaces/default/assets/images/new-proof.png',
|
|
145
|
-
caption: 'New proof',
|
|
146
|
-
}],
|
|
147
|
-
},
|
|
148
|
-
},
|
|
149
|
-
},
|
|
150
|
-
})).toBe('Image replaced: Old proof -> New proof');
|
|
151
|
-
});
|
|
152
|
-
it('uses task-focused summaries for workstream task relationship events', () => {
|
|
153
|
-
expect(summarizeEntityEvent({
|
|
154
|
-
id: 'event-3',
|
|
155
|
-
workspaceId: 'default',
|
|
156
|
-
entityType: 'workstream',
|
|
157
|
-
entityId: 'workstream-1',
|
|
158
|
-
action: 'workstream-task-added',
|
|
159
|
-
actor: 'user',
|
|
160
|
-
actorType: 'human',
|
|
161
|
-
createdAt: '2026-04-12T21:42:00.000Z',
|
|
162
|
-
details: {
|
|
163
|
-
taskId: 'task-1',
|
|
164
|
-
taskTitle: 'Ship launch checklist',
|
|
165
|
-
changes: {
|
|
166
|
-
workstreamId: {
|
|
167
|
-
from: null,
|
|
168
|
-
to: 'workstream-1',
|
|
169
|
-
},
|
|
170
|
-
},
|
|
171
|
-
},
|
|
172
|
-
})).toBe('Task added: Ship launch checklist');
|
|
173
|
-
});
|
|
174
|
-
});
|
|
175
|
-
describe('getTaskActivityItems', () => {
|
|
176
|
-
it('combines comments and audit events while hiding duplicate comment-added events', () => {
|
|
177
|
-
const items = getTaskActivityItems({
|
|
178
|
-
comments: [{
|
|
179
|
-
id: 'comment-1',
|
|
180
|
-
author: 'user',
|
|
181
|
-
text: 'Captured comment',
|
|
182
|
-
timestamp: '2026-03-22T10:00:00.000Z',
|
|
183
|
-
}],
|
|
184
|
-
activity: [
|
|
185
|
-
{
|
|
186
|
-
id: 'event:event-1',
|
|
187
|
-
type: 'event',
|
|
188
|
-
timestamp: '2026-03-22T09:00:00.000Z',
|
|
189
|
-
event: {
|
|
190
|
-
id: 'event-1',
|
|
191
|
-
taskId: 'task-1',
|
|
192
|
-
workspaceId: 'default',
|
|
193
|
-
action: 'task-status-changed',
|
|
194
|
-
actor: 'user',
|
|
195
|
-
actorType: 'human',
|
|
196
|
-
createdAt: '2026-03-22T09:00:00.000Z',
|
|
197
|
-
details: { changes: { status: { from: 'task', to: 'in-progress' } } },
|
|
198
|
-
},
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
id: 'event:comment-event-1',
|
|
202
|
-
type: 'event',
|
|
203
|
-
timestamp: '2026-03-22T10:00:00.000Z',
|
|
204
|
-
event: {
|
|
205
|
-
id: 'comment-event-1',
|
|
206
|
-
taskId: 'task-1',
|
|
207
|
-
workspaceId: 'default',
|
|
208
|
-
action: 'task-comment-added',
|
|
209
|
-
actor: 'user',
|
|
210
|
-
actorType: 'human',
|
|
211
|
-
createdAt: '2026-03-22T10:00:00.000Z',
|
|
212
|
-
},
|
|
213
|
-
},
|
|
214
|
-
],
|
|
215
|
-
});
|
|
216
|
-
expect(items.map((item) => item.id)).toEqual(['event:event-1', 'comment:comment-1']);
|
|
217
|
-
});
|
|
218
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest';
|
|
2
|
-
import { resolveDraftDefaultsForGrouping } from './taskDraftDefaults';
|
|
3
|
-
describe('resolveDraftDefaultsForGrouping', () => {
|
|
4
|
-
const categories = [
|
|
5
|
-
{ value: 'default', label: 'General' },
|
|
6
|
-
{ value: 'bugs', label: 'Bug' }
|
|
7
|
-
];
|
|
8
|
-
const approaches = [
|
|
9
|
-
{ value: 'default', label: 'General' },
|
|
10
|
-
{ value: 'plan', label: 'Plan' }
|
|
11
|
-
];
|
|
12
|
-
it('maps status completed column to done draft status', () => {
|
|
13
|
-
expect(resolveDraftDefaultsForGrouping('status', 'completed', { categories, approaches })).toEqual({
|
|
14
|
-
status: 'done'
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
it('maps assignee columns directly', () => {
|
|
18
|
-
expect(resolveDraftDefaultsForGrouping('assignee', 'member-1', { categories, approaches })).toEqual({
|
|
19
|
-
assignee: 'member-1'
|
|
20
|
-
});
|
|
21
|
-
});
|
|
22
|
-
it('maps schedule day columns but skips backlog', () => {
|
|
23
|
-
expect(resolveDraftDefaultsForGrouping('schedule', '2026-03-07', { categories, approaches })).toEqual({
|
|
24
|
-
scheduledDate: '2026-03-07'
|
|
25
|
-
});
|
|
26
|
-
expect(resolveDraftDefaultsForGrouping('schedule', 'backlog', { categories, approaches })).toEqual({});
|
|
27
|
-
});
|
|
28
|
-
it('maps approach into both approach and taxonomy approach defaults', () => {
|
|
29
|
-
expect(resolveDraftDefaultsForGrouping('approach', 'plan', { categories, approaches })).toEqual({
|
|
30
|
-
approach: 'plan',
|
|
31
|
-
taxonomyApproach: 'plan'
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { describe, it, expect } from 'vitest';
|
|
2
|
-
import { isDropInCenterZone } from './taskDragZones';
|
|
3
|
-
describe('taskDragZones', () => {
|
|
4
|
-
it('returns true when dragged card center is inside the target center zone', () => {
|
|
5
|
-
const overRect = { left: 0, top: 0, width: 200, height: 120 };
|
|
6
|
-
const activeRect = { left: 80, top: 45, width: 40, height: 30 };
|
|
7
|
-
expect(isDropInCenterZone(overRect, activeRect)).toBe(true);
|
|
8
|
-
});
|
|
9
|
-
it('returns false when dragged card center is outside the target center zone', () => {
|
|
10
|
-
const overRect = { left: 0, top: 0, width: 200, height: 120 };
|
|
11
|
-
const activeRect = { left: 5, top: 5, width: 30, height: 30 };
|
|
12
|
-
expect(isDropInCenterZone(overRect, activeRect)).toBe(false);
|
|
13
|
-
});
|
|
14
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest';
|
|
2
|
-
import { mergeNormalizedTaskIntoCollections, normalizeCategoryFilters, normalizePriorityDefinitions, resolvePriorityValue } from './taskNormalization';
|
|
3
|
-
describe('normalizePriorityDefinitions', () => {
|
|
4
|
-
it('deduplicates while preserving the workspace-defined scale', () => {
|
|
5
|
-
const input = [
|
|
6
|
-
{ value: 1, label: 'Low' },
|
|
7
|
-
{ value: 2, label: 'Medium' },
|
|
8
|
-
{ value: 3, label: 'High' },
|
|
9
|
-
{ value: 4, label: 'Critical' },
|
|
10
|
-
{ value: 4, label: 'Urgent' }
|
|
11
|
-
];
|
|
12
|
-
const result = normalizePriorityDefinitions(input);
|
|
13
|
-
expect(result.changed).toBe(true);
|
|
14
|
-
expect(result.priorities.map((priority) => priority.value)).toEqual([1, 2, 3, 4]);
|
|
15
|
-
expect(result.priorities.find((priority) => priority.value === 4)?.label).toBe('Critical');
|
|
16
|
-
});
|
|
17
|
-
it('returns the emergency fallback when input is empty', () => {
|
|
18
|
-
const result = normalizePriorityDefinitions([]);
|
|
19
|
-
expect(result.changed).toBe(true);
|
|
20
|
-
expect(result.priorities.map((priority) => priority.value)).toEqual([2]);
|
|
21
|
-
expect(result.priorities.map((priority) => priority.label)).toEqual(['Medium']);
|
|
22
|
-
});
|
|
23
|
-
it('normalizes out-of-range values without forcing a canonical scale length', () => {
|
|
24
|
-
const input = [
|
|
25
|
-
{ value: -1, label: 'Too Low' },
|
|
26
|
-
{ value: 9, label: 'Too High' }
|
|
27
|
-
];
|
|
28
|
-
const result = normalizePriorityDefinitions(input);
|
|
29
|
-
expect(result.changed).toBe(true);
|
|
30
|
-
expect(result.priorities.map((priority) => priority.value)).toEqual([1, 9]);
|
|
31
|
-
});
|
|
32
|
-
it('preserves smaller custom scales', () => {
|
|
33
|
-
const input = [
|
|
34
|
-
{ value: 1, label: 'Normal' },
|
|
35
|
-
{ value: 2, label: 'Urgent' }
|
|
36
|
-
];
|
|
37
|
-
const result = normalizePriorityDefinitions(input);
|
|
38
|
-
expect(result.changed).toBe(false);
|
|
39
|
-
expect(result.priorities.map((priority) => priority.value)).toEqual([1, 2]);
|
|
40
|
-
expect(result.priorities.map((priority) => priority.label)).toEqual(['Normal', 'Urgent']);
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
describe('resolvePriorityValue', () => {
|
|
44
|
-
it('preserves a critical priority value of 4', () => {
|
|
45
|
-
expect(resolvePriorityValue(4)).toBe(4);
|
|
46
|
-
expect(resolvePriorityValue('4')).toBe(4);
|
|
47
|
-
expect(resolvePriorityValue('critical')).toBe(4);
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
describe('mergeNormalizedTaskIntoCollections', () => {
|
|
51
|
-
it('replaces the matching active task with the normalized server task', () => {
|
|
52
|
-
const activeTask = {
|
|
53
|
-
id: 'task-1',
|
|
54
|
-
title: 'Local task',
|
|
55
|
-
category: 'general',
|
|
56
|
-
type: 'feature',
|
|
57
|
-
priority: 2,
|
|
58
|
-
complexity: 3,
|
|
59
|
-
status: 'task',
|
|
60
|
-
createdAt: '2026-03-15T10:00:00.000Z',
|
|
61
|
-
updatedAt: '2026-03-15T10:00:00.000Z'
|
|
62
|
-
};
|
|
63
|
-
const result = mergeNormalizedTaskIntoCollections({
|
|
64
|
-
...activeTask,
|
|
65
|
-
status: 'in-progress',
|
|
66
|
-
updatedAt: '2026-03-15T10:05:00.000Z'
|
|
67
|
-
}, [activeTask], []);
|
|
68
|
-
expect(result.tasks).toHaveLength(1);
|
|
69
|
-
expect(result.tasks[0].status).toBe('in-progress');
|
|
70
|
-
expect(result.tasks[0].updatedAt).toBe('2026-03-15T10:05:00.000Z');
|
|
71
|
-
});
|
|
72
|
-
it('replaces the matching archived task without mutating other entries', () => {
|
|
73
|
-
const archivedTask = {
|
|
74
|
-
id: 'task-2',
|
|
75
|
-
title: 'Archived task',
|
|
76
|
-
category: 'general',
|
|
77
|
-
type: 'feature',
|
|
78
|
-
priority: 2,
|
|
79
|
-
complexity: 3,
|
|
80
|
-
status: 'review',
|
|
81
|
-
isArchived: true,
|
|
82
|
-
createdAt: '2026-03-15T11:00:00.000Z',
|
|
83
|
-
updatedAt: '2026-03-15T11:00:00.000Z'
|
|
84
|
-
};
|
|
85
|
-
const untouchedTask = {
|
|
86
|
-
id: 'task-3',
|
|
87
|
-
title: 'Untouched',
|
|
88
|
-
category: 'general',
|
|
89
|
-
type: 'feature',
|
|
90
|
-
priority: 2,
|
|
91
|
-
complexity: 3,
|
|
92
|
-
status: 'task',
|
|
93
|
-
createdAt: '2026-03-15T11:10:00.000Z',
|
|
94
|
-
updatedAt: '2026-03-15T11:10:00.000Z'
|
|
95
|
-
};
|
|
96
|
-
const result = mergeNormalizedTaskIntoCollections({
|
|
97
|
-
...archivedTask,
|
|
98
|
-
updatedAt: '2026-03-15T11:15:00.000Z',
|
|
99
|
-
status: 'review'
|
|
100
|
-
}, [untouchedTask], [archivedTask]);
|
|
101
|
-
expect(result.tasks[0]).toEqual(untouchedTask);
|
|
102
|
-
expect(result.archivedTasks[0].updatedAt).toBe('2026-03-15T11:15:00.000Z');
|
|
103
|
-
});
|
|
104
|
-
it('normalizes a missing task insert without legacy child-task fields', () => {
|
|
105
|
-
const result = mergeNormalizedTaskIntoCollections({
|
|
106
|
-
id: 'task-new',
|
|
107
|
-
title: 'New task',
|
|
108
|
-
category: 'general',
|
|
109
|
-
type: 'feature',
|
|
110
|
-
priority: 2,
|
|
111
|
-
complexity: 3,
|
|
112
|
-
status: 'review',
|
|
113
|
-
createdAt: '2026-03-15T12:00:00.000Z',
|
|
114
|
-
updatedAt: '2026-03-15T12:05:00.000Z'
|
|
115
|
-
}, [], []);
|
|
116
|
-
expect(result.tasks).toHaveLength(1);
|
|
117
|
-
expect(result.tasks[0].id).toBe('task-new');
|
|
118
|
-
expect(result.tasks[0].status).toBe('review');
|
|
119
|
-
expect(result.archivedTasks).toEqual([]);
|
|
120
|
-
});
|
|
121
|
-
it('moves archived tasks back into the active collection when the server clears isArchived', () => {
|
|
122
|
-
const archivedTask = {
|
|
123
|
-
id: 'task-archived',
|
|
124
|
-
title: 'Archived task',
|
|
125
|
-
category: 'general',
|
|
126
|
-
type: 'feature',
|
|
127
|
-
priority: 2,
|
|
128
|
-
complexity: 3,
|
|
129
|
-
status: 'done',
|
|
130
|
-
isArchived: true,
|
|
131
|
-
createdAt: '2026-03-15T11:00:00.000Z',
|
|
132
|
-
updatedAt: '2026-03-15T11:00:00.000Z'
|
|
133
|
-
};
|
|
134
|
-
const result = mergeNormalizedTaskIntoCollections({
|
|
135
|
-
...archivedTask,
|
|
136
|
-
status: 'in-progress',
|
|
137
|
-
isArchived: false,
|
|
138
|
-
updatedAt: '2026-03-15T11:15:00.000Z'
|
|
139
|
-
}, [], [archivedTask]);
|
|
140
|
-
expect(result.tasks).toHaveLength(1);
|
|
141
|
-
expect(result.tasks[0].status).toBe('in-progress');
|
|
142
|
-
expect(result.tasks[0].isArchived).toBe(false);
|
|
143
|
-
expect(result.archivedTasks).toEqual([]);
|
|
144
|
-
});
|
|
145
|
-
});
|
|
146
|
-
describe('normalizeCategoryFilters', () => {
|
|
147
|
-
const activeCategories = [
|
|
148
|
-
{ value: 'default', label: 'Default' },
|
|
149
|
-
{ value: 'product', label: 'Product' },
|
|
150
|
-
{ value: 'ops', label: 'Ops' }
|
|
151
|
-
];
|
|
152
|
-
it('keeps a valid persisted category selection', () => {
|
|
153
|
-
expect(normalizeCategoryFilters(['product'], activeCategories)).toEqual(['product']);
|
|
154
|
-
});
|
|
155
|
-
it('falls back to all categories when the persisted selection no longer exists', () => {
|
|
156
|
-
expect(normalizeCategoryFilters(['missing-category'], activeCategories)).toEqual(['default', 'product', 'ops']);
|
|
157
|
-
});
|
|
158
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|