@taskforcehq/taskforce 0.3.168
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 +241 -0
- package/dist/Taskforce.d.ts +3 -0
- package/dist/Taskforce.js +3 -0
- package/dist/Taskforce.module.css +7587 -0
- package/dist/TaskforceCore.CategoryFallback.test.d.ts +1 -0
- package/dist/TaskforceCore.CategoryFallback.test.js +98 -0
- package/dist/TaskforceCore.d.ts +12 -0
- package/dist/TaskforceCore.js +729 -0
- package/dist/TaskforceCore.test.d.ts +1 -0
- package/dist/TaskforceCore.test.js +2132 -0
- package/dist/TaskforceScreenshot.d.ts +11 -0
- package/dist/TaskforceScreenshot.js +113 -0
- package/dist/TaskforceWidget.d.ts +6 -0
- package/dist/TaskforceWidget.js +101 -0
- package/dist/TaskforceWidget.test.d.ts +1 -0
- package/dist/TaskforceWidget.test.js +92 -0
- package/dist/UnsavedChangesRelaxed.test.d.ts +1 -0
- package/dist/UnsavedChangesRelaxed.test.js +16 -0
- package/dist/__tests__/localizationCatalogs.test.d.ts +1 -0
- package/dist/__tests__/localizationCatalogs.test.js +37 -0
- package/dist/__tests__/planParser.test.d.ts +1 -0
- package/dist/__tests__/planParser.test.js +183 -0
- package/dist/__tests__/releaseVersion.test.d.ts +1 -0
- package/dist/__tests__/releaseVersion.test.js +32 -0
- package/dist/__tests__/structuredCommentValidation.test.d.ts +1 -0
- package/dist/__tests__/structuredCommentValidation.test.js +31 -0
- package/dist/__tests__/structuredDocValidation.test.d.ts +1 -0
- package/dist/__tests__/structuredDocValidation.test.js +30 -0
- package/dist/__tests__/templateEngine.test.d.ts +1 -0
- package/dist/__tests__/templateEngine.test.js +150 -0
- package/dist/__tests__/templates.test.d.ts +1 -0
- package/dist/__tests__/templates.test.js +45 -0
- package/dist/__tests__/workflowDocumentFixtures.test.d.ts +1 -0
- package/dist/__tests__/workflowDocumentFixtures.test.js +78 -0
- package/dist/__tests__/workflowExportMatrix.test.d.ts +1 -0
- package/dist/__tests__/workflowExportMatrix.test.js +113 -0
- package/dist/__tests__/workflowExportSnapshots.test.d.ts +1 -0
- package/dist/__tests__/workflowExportSnapshots.test.js +28 -0
- package/dist/__tests__/workflowGeneration.test.d.ts +1 -0
- package/dist/__tests__/workflowGeneration.test.js +12 -0
- package/dist/__tests__/workflowSimulation.test.d.ts +1 -0
- package/dist/__tests__/workflowSimulation.test.js +113 -0
- package/dist/__tests__/workflowV2Policy.test.d.ts +1 -0
- package/dist/__tests__/workflowV2Policy.test.js +80 -0
- package/dist/api.d.ts +30 -0
- package/dist/api.js +85 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +217 -0
- package/dist/compat/priorityCompat.d.ts +2 -0
- package/dist/compat/priorityCompat.js +24 -0
- package/dist/components/features/DocumentGenerateModal.d.ts +9 -0
- package/dist/components/features/DocumentGenerateModal.js +114 -0
- package/dist/components/features/DocumentIndex.d.ts +19 -0
- package/dist/components/features/DocumentIndex.js +51 -0
- package/dist/components/features/DocumentViewer.d.ts +9 -0
- package/dist/components/features/DocumentViewer.js +253 -0
- package/dist/components/features/DocumentWorkspace.d.ts +21 -0
- package/dist/components/features/DocumentWorkspace.js +88 -0
- package/dist/components/features/TaskSettings.d.ts +209 -0
- package/dist/components/features/TaskSettings.js +500 -0
- package/dist/components/features/TaskSettings.test.d.ts +1 -0
- package/dist/components/features/TaskSettings.test.js +308 -0
- package/dist/components/features/settings/CategoryManager.d.ts +19 -0
- package/dist/components/features/settings/CategoryManager.js +113 -0
- package/dist/components/features/settings/TaxonomyEditor.d.ts +8 -0
- package/dist/components/features/settings/TaxonomyEditor.js +98 -0
- package/dist/components/features/settings/TaxonomyManager 2.d.ts +52 -0
- package/dist/components/features/settings/TaxonomyManager 2.js +75 -0
- package/dist/components/features/settings/TaxonomyManager.d.ts +54 -0
- package/dist/components/features/settings/TaxonomyManager.js +77 -0
- package/dist/components/features/settings/TypeManager.d.ts +10 -0
- package/dist/components/features/settings/TypeManager.js +50 -0
- package/dist/components/features/settings/WorkflowEditorPrototype.d.ts +15 -0
- package/dist/components/features/settings/WorkflowEditorPrototype.js +245 -0
- package/dist/components/task/TaskActionHeader.d.ts +20 -0
- package/dist/components/task/TaskActionHeader.js +13 -0
- package/dist/components/task/TaskCard.d.ts +47 -0
- package/dist/components/task/TaskCard.js +326 -0
- package/dist/components/task/TaskCard.test.d.ts +1 -0
- package/dist/components/task/TaskCard.test.js +95 -0
- package/dist/components/task/TaskContextUpload.d.ts +12 -0
- package/dist/components/task/TaskContextUpload.js +393 -0
- package/dist/components/task/TaskContextUpload.test.d.ts +1 -0
- package/dist/components/task/TaskContextUpload.test.js +189 -0
- package/dist/components/task/TaskForm.d.ts +105 -0
- package/dist/components/task/TaskForm.js +241 -0
- package/dist/components/task/TaskForm.test.d.ts +1 -0
- package/dist/components/task/TaskForm.test.js +288 -0
- package/dist/components/task/TaskKanban 2.d.ts +76 -0
- package/dist/components/task/TaskKanban 2.js +1004 -0
- package/dist/components/task/TaskKanban.d.ts +76 -0
- package/dist/components/task/TaskKanban.empty-column-drop.test.d.ts +1 -0
- package/dist/components/task/TaskKanban.empty-column-drop.test.js +66 -0
- package/dist/components/task/TaskKanban.js +1026 -0
- package/dist/components/task/TaskKanban.test.d.ts +1 -0
- package/dist/components/task/TaskKanban.test.js +46 -0
- package/dist/components/task/TaskList.d.ts +74 -0
- package/dist/components/task/TaskList.js +38 -0
- package/dist/components/task/TaskList.test.d.ts +1 -0
- package/dist/components/task/TaskList.test.js +270 -0
- package/dist/components/task/TaskScreenshotSection.d.ts +15 -0
- package/dist/components/task/TaskScreenshotSection.js +22 -0
- package/dist/components/ui/LevelSelector.d.ts +13 -0
- package/dist/components/ui/LevelSelector.js +25 -0
- package/dist/components/ui/LevelSelector.test.d.ts +1 -0
- package/dist/components/ui/LevelSelector.test.js +55 -0
- package/dist/components/ui/Markdown.d.ts +6 -0
- package/dist/components/ui/Markdown.js +94 -0
- package/dist/components/ui/Markdown.test.d.ts +1 -0
- package/dist/components/ui/Markdown.test.js +38 -0
- package/dist/components/ui/Modal.d.ts +16 -0
- package/dist/components/ui/Modal.js +49 -0
- package/dist/components/ui/MultiSelectFilter.d.ts +10 -0
- package/dist/components/ui/MultiSelectFilter.js +71 -0
- package/dist/components/ui/MultiSelectFilter.test.d.ts +1 -0
- package/dist/components/ui/MultiSelectFilter.test.js +74 -0
- package/dist/components/ui/TaxonomyDropdown.d.ts +17 -0
- package/dist/components/ui/TaxonomyDropdown.js +145 -0
- package/dist/components/ui/TaxonomyDropdown.test.d.ts +1 -0
- package/dist/components/ui/TaxonomyDropdown.test.js +130 -0
- package/dist/components/views/StandaloneLayout 2.d.ts +8 -0
- package/dist/components/views/StandaloneLayout 2.js +1660 -0
- package/dist/components/views/StandaloneLayout.d.ts +8 -0
- package/dist/components/views/StandaloneLayout.js +2117 -0
- package/dist/components/views/WidgetView.d.ts +8 -0
- package/dist/components/views/WidgetView.js +221 -0
- package/dist/config/envSchema.d.ts +28 -0
- package/dist/config/envSchema.js +374 -0
- package/dist/config/envSchema.test.d.ts +1 -0
- package/dist/config/envSchema.test.js +97 -0
- package/dist/config/surfaceBase.d.ts +2 -0
- package/dist/config/surfaceBase.js +8 -0
- package/dist/core/BulkUpdateFieldsPreview.test.d.ts +1 -0
- package/dist/core/BulkUpdateFieldsPreview.test.js +62 -0
- package/dist/core/CompletedAt.test.d.ts +1 -0
- package/dist/core/CompletedAt.test.js +44 -0
- package/dist/core/CreatedBy.test.d.ts +1 -0
- package/dist/core/CreatedBy.test.js +60 -0
- package/dist/core/EntitlementsPolicy.test.d.ts +1 -0
- package/dist/core/EntitlementsPolicy.test.js +145 -0
- package/dist/core/InitiativeTemplates.test.d.ts +1 -0
- package/dist/core/InitiativeTemplates.test.js +50 -0
- package/dist/core/ParentLifecycle.test.d.ts +1 -0
- package/dist/core/ParentLifecycle.test.js +98 -0
- package/dist/core/ScheduleFields.test.d.ts +1 -0
- package/dist/core/ScheduleFields.test.js +197 -0
- package/dist/core/SetupState.test.d.ts +1 -0
- package/dist/core/SetupState.test.js +113 -0
- package/dist/core/SystemAdmin.test.d.ts +1 -0
- package/dist/core/SystemAdmin.test.js +295 -0
- package/dist/core/TaskTaxonomyValidation.test.d.ts +1 -0
- package/dist/core/TaskTaxonomyValidation.test.js +64 -0
- package/dist/core/Taskforce.d.ts +1063 -0
- package/dist/core/Taskforce.ids.test.d.ts +1 -0
- package/dist/core/Taskforce.ids.test.js +168 -0
- package/dist/core/Taskforce.js +5981 -0
- package/dist/core/Taskforce.realtimeMutation.test.d.ts +1 -0
- package/dist/core/Taskforce.realtimeMutation.test.js +76 -0
- package/dist/core/WorkspaceDelete.test.d.ts +1 -0
- package/dist/core/WorkspaceDelete.test.js +140 -0
- package/dist/core/WorkspacePermissions.test.d.ts +1 -0
- package/dist/core/WorkspacePermissions.test.js +151 -0
- package/dist/core/WorkspacePlanMode.test.d.ts +1 -0
- package/dist/core/WorkspacePlanMode.test.js +104 -0
- package/dist/hooks/authGuardPolicy.d.ts +26 -0
- package/dist/hooks/authGuardPolicy.js +32 -0
- package/dist/hooks/authGuardPolicy.test.d.ts +1 -0
- package/dist/hooks/authGuardPolicy.test.js +76 -0
- package/dist/hooks/useDraggable.d.ts +12 -0
- package/dist/hooks/useDraggable.js +65 -0
- package/dist/hooks/useRealtimeSync.d.ts +24 -0
- package/dist/hooks/useRealtimeSync.js +275 -0
- package/dist/hooks/useRealtimeSync.test.d.ts +1 -0
- package/dist/hooks/useRealtimeSync.test.js +284 -0
- package/dist/hooks/useSyncOrchestrator.d.ts +164 -0
- package/dist/hooks/useSyncOrchestrator.js +1427 -0
- package/dist/hooks/useSyncOrchestrator.retry-closure.test.d.ts +1 -0
- package/dist/hooks/useSyncOrchestrator.retry-closure.test.js +367 -0
- package/dist/hooks/useTaskforce.d.ts +727 -0
- package/dist/hooks/useTaskforce.js +4396 -0
- package/dist/hooks/useTaskforce.priority-filters.test.d.ts +1 -0
- package/dist/hooks/useTaskforce.priority-filters.test.js +33 -0
- package/dist/hooks/useWorkspaceSyncController.d.ts +80 -0
- package/dist/hooks/useWorkspaceSyncController.js +598 -0
- package/dist/hooks/useWorkspaceSyncController.test.d.ts +1 -0
- package/dist/hooks/useWorkspaceSyncController.test.js +236 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +11 -0
- package/dist/localization/index.d.ts +8 -0
- package/dist/localization/index.js +81 -0
- package/dist/localization/locales/en-US.d.ts +151 -0
- package/dist/localization/locales/en-US.js +150 -0
- package/dist/localization/locales/es-419.d.ts +2 -0
- package/dist/localization/locales/es-419.js +150 -0
- package/dist/localization/locales/pt-BR.d.ts +2 -0
- package/dist/localization/locales/pt-BR.js +150 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +33 -0
- package/dist/mcp/optionResolution.d.ts +14 -0
- package/dist/mcp/optionResolution.js +126 -0
- package/dist/mcp/optionResolution.test.d.ts +1 -0
- package/dist/mcp/optionResolution.test.js +39 -0
- package/dist/mcp/server.d.ts +1 -0
- package/dist/mcp/server.js +1793 -0
- package/dist/mcp/structuredCommentValidation.d.ts +6 -0
- package/dist/mcp/structuredCommentValidation.js +56 -0
- package/dist/mcp/structuredDocValidation.d.ts +6 -0
- package/dist/mcp/structuredDocValidation.js +75 -0
- package/dist/migrations/billingSchemaParity.test.d.ts +1 -0
- package/dist/migrations/billingSchemaParity.test.js +46 -0
- package/dist/migrations/clientMigrations.d.ts +9 -0
- package/dist/migrations/clientMigrations.js +74 -0
- package/dist/migrations/flags.d.ts +6 -0
- package/dist/migrations/flags.js +8 -0
- package/dist/migrations/taskMigrations.d.ts +71 -0
- package/dist/migrations/taskMigrations.js +236 -0
- package/dist/migrations/taskMigrations.test.d.ts +1 -0
- package/dist/migrations/taskMigrations.test.js +34 -0
- package/dist/migrations/taskSchemaMigrations.d.ts +11 -0
- package/dist/migrations/taskSchemaMigrations.js +453 -0
- package/dist/plugins/index.d.ts +10 -0
- package/dist/plugins/index.js +10 -0
- package/dist/plugins/vite.d.ts +19 -0
- package/dist/plugins/vite.js +271 -0
- package/dist/public/android-chrome-192x192.png +0 -0
- package/dist/public/android-chrome-512x512.png +0 -0
- package/dist/public/apple-touch-icon.png +0 -0
- package/dist/public/favicon-16x16.png +0 -0
- package/dist/public/favicon-32x32.png +0 -0
- package/dist/public/favicon.ico +0 -0
- package/dist/public/favicon.png +0 -0
- package/dist/public/site.webmanifest +1 -0
- package/dist/public/taskforce.png +0 -0
- package/dist/resources/templates/WORKFLOW_V2_POLICY.md +55 -0
- package/dist/resources/templates/environments/aider.yaml +14 -0
- package/dist/resources/templates/environments/antigravity.yaml +10 -0
- package/dist/resources/templates/environments/claude.yaml +10 -0
- package/dist/resources/templates/environments/cline.yaml +10 -0
- package/dist/resources/templates/environments/codex.yaml +13 -0
- package/dist/resources/templates/environments/copilot.yaml +10 -0
- package/dist/resources/templates/environments/cursor.yaml +9 -0
- package/dist/resources/templates/environments/gemini.yaml +9 -0
- package/dist/resources/templates/environments/windsurf.yaml +10 -0
- package/dist/resources/templates/workflow-sources/README.md +9 -0
- package/dist/resources/templates/workflow-sources/workflowDocs.mjs +520 -0
- package/dist/resources/templates/workflow-sources/workflowEditorOverrides.json +1 -0
- package/dist/resources/templates/workflows/collaborate.yaml +104 -0
- package/dist/resources/templates/workflows/do.yaml +82 -0
- package/dist/resources/templates/workflows/evaluate.yaml +111 -0
- package/dist/resources/templates/workflows/execute.yaml +142 -0
- package/dist/resources/templates/workflows/plan.yaml +112 -0
- package/dist/resources/templates/workflows/review.yaml +109 -0
- package/dist/runtime/capabilities.d.ts +8 -0
- package/dist/runtime/capabilities.js +16 -0
- package/dist/security/virusScan.d.ts +16 -0
- package/dist/security/virusScan.js +83 -0
- package/dist/server/auth.d.ts +51 -0
- package/dist/server/auth.js +266 -0
- package/dist/server/auth.test.d.ts +1 -0
- package/dist/server/auth.test.js +111 -0
- package/dist/server/buildInfo.d.ts +7 -0
- package/dist/server/buildInfo.js +100 -0
- package/dist/server/buildInfo.test.d.ts +1 -0
- package/dist/server/buildInfo.test.js +29 -0
- package/dist/server/cors.d.ts +7 -0
- package/dist/server/cors.js +76 -0
- package/dist/server/cors.test.d.ts +1 -0
- package/dist/server/cors.test.js +71 -0
- package/dist/server/email.d.ts +28 -0
- package/dist/server/email.js +138 -0
- package/dist/server/email.test.d.ts +1 -0
- package/dist/server/email.test.js +113 -0
- package/dist/server/index.cookieProxy.test.d.ts +1 -0
- package/dist/server/index.cookieProxy.test.js +19 -0
- package/dist/server/index.d.ts +17 -0
- package/dist/server/index.js +757 -0
- package/dist/server/index.rateLimit.test.d.ts +1 -0
- package/dist/server/index.rateLimit.test.js +13 -0
- package/dist/server/index.test.d.ts +1 -0
- package/dist/server/index.test.js +19 -0
- package/dist/server/rateLimit.d.ts +29 -0
- package/dist/server/rateLimit.js +99 -0
- package/dist/server/rateLimit.test.d.ts +1 -0
- package/dist/server/rateLimit.test.js +107 -0
- package/dist/server/realtimeSync.auth.test.d.ts +1 -0
- package/dist/server/realtimeSync.auth.test.js +62 -0
- package/dist/server/realtimeSync.replay.test.d.ts +1 -0
- package/dist/server/realtimeSync.replay.test.js +192 -0
- package/dist/server/realtimeSync.workspaceIsolation.test.d.ts +1 -0
- package/dist/server/realtimeSync.workspaceIsolation.test.js +101 -0
- package/dist/server/realtimeSyncWs.d.ts +30 -0
- package/dist/server/realtimeSyncWs.js +257 -0
- package/dist/server/routes.billing.d.ts +15 -0
- package/dist/server/routes.billing.js +991 -0
- package/dist/server/routes.billing.test.d.ts +1 -0
- package/dist/server/routes.billing.test.js +387 -0
- package/dist/server/routes.d.ts +72 -0
- package/dist/server/routes.js +4820 -0
- package/dist/server/routes.sync.d.ts +17 -0
- package/dist/server/routes.sync.integration.test.d.ts +1 -0
- package/dist/server/routes.sync.integration.test.js +470 -0
- package/dist/server/routes.sync.js +1141 -0
- package/dist/server/routes.test.d.ts +1 -0
- package/dist/server/routes.test.js +4945 -0
- package/dist/server/runtimeMode.d.ts +4 -0
- package/dist/server/runtimeMode.js +25 -0
- package/dist/server/runtimeMode.test.d.ts +1 -0
- package/dist/server/runtimeMode.test.js +26 -0
- package/dist/server/securityHeaders.d.ts +3 -0
- package/dist/server/securityHeaders.js +25 -0
- package/dist/server/securityHeaders.test.d.ts +1 -0
- package/dist/server/securityHeaders.test.js +32 -0
- package/dist/server/smtpTransport.d.ts +21 -0
- package/dist/server/smtpTransport.js +11 -0
- package/dist/server/start.d.ts +1 -0
- package/dist/server/start.js +17 -0
- package/dist/services/formatTransformers.d.ts +29 -0
- package/dist/services/formatTransformers.js +56 -0
- package/dist/services/templateEngine.d.ts +46 -0
- package/dist/services/templateEngine.js +148 -0
- package/dist/shared/runtimeContract.d.ts +12 -0
- package/dist/shared/runtimeContract.js +23 -0
- package/dist/shared/runtimeContract.test.d.ts +1 -0
- package/dist/shared/runtimeContract.test.js +23 -0
- package/dist/soak/preflight.cli.d.ts +1 -0
- package/dist/soak/preflight.cli.js +28 -0
- package/dist/soak/preflight.d.ts +26 -0
- package/dist/soak/preflight.js +113 -0
- package/dist/soak/preflight.test.d.ts +1 -0
- package/dist/soak/preflight.test.js +39 -0
- package/dist/soak/syncSoakHarness.d.ts +6 -0
- package/dist/soak/syncSoakHarness.js +10 -0
- package/dist/storage/createDatabaseAdapter.d.ts +2 -0
- package/dist/storage/createDatabaseAdapter.js +9 -0
- package/dist/storage/databaseAdapter.d.ts +22 -0
- package/dist/storage/databaseAdapter.js +1 -0
- package/dist/storage/documentIntegrity.d.ts +28 -0
- package/dist/storage/documentIntegrity.js +103 -0
- package/dist/storage/documentPurge.d.ts +14 -0
- package/dist/storage/documentPurge.js +46 -0
- package/dist/storage/documentRegistry.d.ts +39 -0
- package/dist/storage/documentRegistry.js +115 -0
- package/dist/storage/integritySchedule.d.ts +17 -0
- package/dist/storage/integritySchedule.js +62 -0
- package/dist/storage/objectStorage.d.ts +20 -0
- package/dist/storage/objectStorage.js +15 -0
- package/dist/storage/objectStorageClient.d.ts +18 -0
- package/dist/storage/objectStorageClient.js +301 -0
- package/dist/storage/objectStorageConfig.d.ts +2 -0
- package/dist/storage/objectStorageConfig.js +45 -0
- package/dist/storage/postgresAdapter.d.ts +20 -0
- package/dist/storage/postgresAdapter.js +204 -0
- package/dist/storage/postgresWorker.d.ts +1 -0
- package/dist/storage/postgresWorker.js +110 -0
- package/dist/storage/providerConfig.d.ts +6 -0
- package/dist/storage/providerConfig.js +11 -0
- package/dist/storage/sqliteAdapter.d.ts +14 -0
- package/dist/storage/sqliteAdapter.js +28 -0
- package/dist/storage/taskAssetStore.d.ts +56 -0
- package/dist/storage/taskAssetStore.js +297 -0
- package/dist/sync/cloudSyncApi.d.ts +47 -0
- package/dist/sync/cloudSyncApi.js +138 -0
- package/dist/sync/cloudSyncApi.test.d.ts +1 -0
- package/dist/sync/cloudSyncApi.test.js +54 -0
- package/dist/sync/encryptionService.d.ts +11 -0
- package/dist/sync/encryptionService.js +61 -0
- package/dist/sync/encryptionService.test.d.ts +1 -0
- package/dist/sync/encryptionService.test.js +52 -0
- package/dist/sync/realtimeFeature.d.ts +6 -0
- package/dist/sync/realtimeFeature.js +20 -0
- package/dist/sync/realtimeFeature.test.d.ts +1 -0
- package/dist/sync/realtimeFeature.test.js +30 -0
- package/dist/sync/realtimeReconcile.d.ts +30 -0
- package/dist/sync/realtimeReconcile.js +90 -0
- package/dist/sync/realtimeReconcile.test.d.ts +1 -0
- package/dist/sync/realtimeReconcile.test.js +43 -0
- package/dist/sync/syncService.d.ts +96 -0
- package/dist/sync/syncService.js +423 -0
- package/dist/sync/syncService.test.d.ts +1 -0
- package/dist/sync/syncService.test.js +484 -0
- package/dist/sync/workspaceSyncModel.d.ts +61 -0
- package/dist/sync/workspaceSyncModel.js +136 -0
- package/dist/sync/workspaceSyncModel.test.d.ts +1 -0
- package/dist/sync/workspaceSyncModel.test.js +73 -0
- package/dist/test/setup.d.ts +1 -0
- package/dist/test/setup.js +15 -0
- package/dist/types.d.ts +157 -0
- package/dist/types.js +41 -0
- package/dist/ui/assets/RussoOne-Regular-C3BxZIj7.ttf +0 -0
- package/dist/ui/assets/index-0W5vyCpn.css +1 -0
- package/dist/ui/assets/index-MCZuNNfn.js +23 -0
- package/dist/ui/assets/logo_white_01-0Vx-iIIv.png +0 -0
- package/dist/ui/assets/taskforce-BxLPokNB.png +0 -0
- package/dist/ui/assets/vendor-dnd-BI1K77C1.js +5 -0
- package/dist/ui/assets/vendor-icons-ZFG3SGwo.js +1 -0
- package/dist/ui/assets/vendor-markdown-CKYkQHfj.js +29 -0
- package/dist/ui/assets/vendor-react-DdIDsh7f.js +9 -0
- package/dist/ui/assets/vendor-router-BtiNU7Dl.js +3 -0
- package/dist/ui/branding/logos/logo_black_01.png +0 -0
- package/dist/ui/branding/logos/logo_black_02.png +0 -0
- package/dist/ui/branding/logos/logo_white_01.png +0 -0
- package/dist/ui/branding/logos/logo_white_02.png +0 -0
- package/dist/ui/favicon/android-chrome-192x192.png +0 -0
- package/dist/ui/favicon/android-chrome-512x512.png +0 -0
- package/dist/ui/favicon/apple-touch-icon.png +0 -0
- package/dist/ui/favicon/favicon-16x16.png +0 -0
- package/dist/ui/favicon/favicon-32x32.png +0 -0
- package/dist/ui/favicon/favicon.ico +0 -0
- package/dist/ui/favicon/favicon.png +0 -0
- package/dist/ui/favicon/site.webmanifest +1 -0
- package/dist/ui/fonts/RussoOne-Regular.ttf +0 -0
- package/dist/ui/images/taskforce.png +0 -0
- package/dist/ui/index.html +19 -0
- package/dist/utils/checklistMarkdown.d.ts +9 -0
- package/dist/utils/checklistMarkdown.js +46 -0
- package/dist/utils/constants.d.ts +21 -0
- package/dist/utils/constants.icons.test.d.ts +1 -0
- package/dist/utils/constants.icons.test.js +40 -0
- package/dist/utils/constants.js +100 -0
- package/dist/utils/contextFiles.d.ts +8 -0
- package/dist/utils/contextFiles.js +54 -0
- package/dist/utils/formatting.d.ts +5 -0
- package/dist/utils/formatting.js +30 -0
- package/dist/utils/planParser.d.ts +22 -0
- package/dist/utils/planParser.js +151 -0
- package/dist/utils/taskDragZones.d.ts +8 -0
- package/dist/utils/taskDragZones.js +14 -0
- package/dist/utils/taskDragZones.test.d.ts +1 -0
- package/dist/utils/taskDragZones.test.js +14 -0
- package/dist/utils/taskHierarchy.d.ts +4 -0
- package/dist/utils/taskHierarchy.js +69 -0
- package/dist/utils/taskHierarchy.test.d.ts +1 -0
- package/dist/utils/taskHierarchy.test.js +38 -0
- package/dist/utils/taskParenting.d.ts +3 -0
- package/dist/utils/taskParenting.js +24 -0
- package/dist/utils/taskParenting.test.d.ts +1 -0
- package/dist/utils/taskParenting.test.js +21 -0
- package/dist/utils/taskRelations.d.ts +6 -0
- package/dist/utils/taskRelations.js +24 -0
- package/dist/utils/taskRelations.test.d.ts +1 -0
- package/dist/utils/taskRelations.test.js +34 -0
- package/dist/utils/taskUtils.d.ts +2 -0
- package/dist/utils/taskUtils.js +20 -0
- package/dist/utils/taskforceApiClient.d.ts +7 -0
- package/dist/utils/taskforceApiClient.js +42 -0
- package/dist/utils/workspaceIdentity.d.ts +8 -0
- package/dist/utils/workspaceIdentity.js +47 -0
- package/dist/utils/workspaceIdentity.test.d.ts +1 -0
- package/dist/utils/workspaceIdentity.test.js +32 -0
- package/dist/utils/workspaceLifecycle.d.ts +26 -0
- package/dist/utils/workspaceLifecycle.js +69 -0
- package/dist/utils/workspaceLifecycle.test.d.ts +1 -0
- package/dist/utils/workspaceLifecycle.test.js +64 -0
- package/package.json +133 -0
- package/scripts/check-compat-boundaries.js +48 -0
- package/scripts/check-env.ts +24 -0
- package/scripts/check-localization-strings.mjs +49 -0
- package/scripts/check-runtime-boundaries.mjs +44 -0
- package/scripts/debug-global.mjs +34 -0
- package/scripts/debug-server.mjs +36 -0
- package/scripts/export-sqlite-to-postgres.mjs +125 -0
- package/scripts/generate-env-example.ts +8 -0
- package/scripts/generate-workflow-templates.mjs +134 -0
- package/scripts/mcp-stdio-adapter.mjs +160 -0
- package/scripts/postinstall.js +60 -0
- package/scripts/release-version-lib.mjs +88 -0
- package/scripts/release-version.mjs +72 -0
- package/scripts/run-dev-proxy.sh +49 -0
- package/scripts/run-e2e-realtime.sh +16 -0
- package/scripts/run-smoke.sh +23 -0
- package/scripts/run-soak.sh +29 -0
- package/scripts/test-global.js +143 -0
- package/scripts/update-homebrew-formula.sh +38 -0
- package/src/resources/templates/WORKFLOW_V2_POLICY.md +55 -0
- package/src/resources/templates/environments/aider.yaml +14 -0
- package/src/resources/templates/environments/antigravity.yaml +10 -0
- package/src/resources/templates/environments/claude.yaml +10 -0
- package/src/resources/templates/environments/cline.yaml +10 -0
- package/src/resources/templates/environments/codex.yaml +13 -0
- package/src/resources/templates/environments/copilot.yaml +10 -0
- package/src/resources/templates/environments/cursor.yaml +9 -0
- package/src/resources/templates/environments/gemini.yaml +9 -0
- package/src/resources/templates/environments/windsurf.yaml +10 -0
- package/src/resources/templates/workflow-sources/README.md +9 -0
- package/src/resources/templates/workflow-sources/workflowDocs.mjs +520 -0
- package/src/resources/templates/workflow-sources/workflowEditorOverrides.json +1 -0
- package/src/resources/templates/workflows/collaborate.yaml +104 -0
- package/src/resources/templates/workflows/do.yaml +82 -0
- package/src/resources/templates/workflows/evaluate.yaml +111 -0
- package/src/resources/templates/workflows/execute.yaml +142 -0
- package/src/resources/templates/workflows/plan.yaml +112 -0
- package/src/resources/templates/workflows/review.yaml +109 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export function resolveWorkspaceLifecycleState(input) {
|
|
2
|
+
const setupState = input.setupState;
|
|
3
|
+
const runtimeMode = input.runtimeMode;
|
|
4
|
+
const isAuthenticated = input.isAuthenticated;
|
|
5
|
+
const cloudRequiresGlobalSetup = Boolean(setupState
|
|
6
|
+
&& runtimeMode === 'cloud'
|
|
7
|
+
&& isAuthenticated
|
|
8
|
+
&& setupState.globalSetupState === 'missing');
|
|
9
|
+
const localRequiresGlobalSetup = Boolean(setupState
|
|
10
|
+
&& runtimeMode === 'local'
|
|
11
|
+
&& setupState.globalSetupState === 'missing');
|
|
12
|
+
const cloudRequiresWorkspaceSetup = Boolean(setupState
|
|
13
|
+
&& runtimeMode === 'cloud'
|
|
14
|
+
&& isAuthenticated
|
|
15
|
+
&& setupState.workspaceSetupState === 'missing');
|
|
16
|
+
const localRequiresWorkspaceSetup = Boolean(setupState
|
|
17
|
+
&& runtimeMode === 'local'
|
|
18
|
+
&& setupState.workspaceSetupState === 'missing');
|
|
19
|
+
const setupGateActive = Boolean(setupState
|
|
20
|
+
&& (setupState.forceSetup
|
|
21
|
+
|| setupState.forceGlobalSetup
|
|
22
|
+
|| setupState.forceWorkspaceSetup
|
|
23
|
+
|| cloudRequiresGlobalSetup
|
|
24
|
+
|| cloudRequiresWorkspaceSetup
|
|
25
|
+
|| localRequiresGlobalSetup
|
|
26
|
+
|| localRequiresWorkspaceSetup));
|
|
27
|
+
if (!setupGateActive) {
|
|
28
|
+
return {
|
|
29
|
+
setupGateActive: false,
|
|
30
|
+
needsGlobalSetup: false,
|
|
31
|
+
needsWorkspaceSetup: false,
|
|
32
|
+
hasSetupReadError: false,
|
|
33
|
+
phase: 'ready'
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
const shouldForceGlobalSetup = Boolean(setupState
|
|
37
|
+
&& (setupState.forceSetup
|
|
38
|
+
|| setupState.forceGlobalSetup
|
|
39
|
+
|| cloudRequiresGlobalSetup
|
|
40
|
+
|| localRequiresGlobalSetup));
|
|
41
|
+
const shouldForceWorkspaceSetup = Boolean(setupState
|
|
42
|
+
&& (setupState.forceSetup
|
|
43
|
+
|| setupState.forceWorkspaceSetup
|
|
44
|
+
|| cloudRequiresWorkspaceSetup
|
|
45
|
+
|| localRequiresWorkspaceSetup));
|
|
46
|
+
const needsGlobalSetup = Boolean(shouldForceGlobalSetup
|
|
47
|
+
&& setupState?.globalSetupState === 'missing');
|
|
48
|
+
const needsWorkspaceSetup = Boolean(shouldForceWorkspaceSetup
|
|
49
|
+
&& setupState?.workspaceSetupState === 'missing');
|
|
50
|
+
const hasGlobalSetupUnreadable = Boolean(shouldForceGlobalSetup
|
|
51
|
+
&& setupState?.globalSetupState === 'unreadable');
|
|
52
|
+
const hasWorkspaceSetupUnreadable = Boolean(shouldForceWorkspaceSetup
|
|
53
|
+
&& setupState?.workspaceSetupState === 'unreadable');
|
|
54
|
+
const hasSetupReadError = hasGlobalSetupUnreadable || hasWorkspaceSetupUnreadable;
|
|
55
|
+
const phase = hasSetupReadError
|
|
56
|
+
? 'setup-read-error'
|
|
57
|
+
: needsGlobalSetup
|
|
58
|
+
? 'needs-global-setup'
|
|
59
|
+
: needsWorkspaceSetup
|
|
60
|
+
? 'needs-workspace-setup'
|
|
61
|
+
: 'ready';
|
|
62
|
+
return {
|
|
63
|
+
setupGateActive,
|
|
64
|
+
needsGlobalSetup,
|
|
65
|
+
needsWorkspaceSetup,
|
|
66
|
+
hasSetupReadError,
|
|
67
|
+
phase
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
2
|
+
import { resolveWorkspaceLifecycleState } from './workspaceLifecycle';
|
|
3
|
+
function makeSetupState(partial) {
|
|
4
|
+
return {
|
|
5
|
+
globalSetupState: 'present',
|
|
6
|
+
workspaceSetupState: 'present',
|
|
7
|
+
runtimeMode: 'local',
|
|
8
|
+
workspaceId: 'workspace-1',
|
|
9
|
+
mode: 'core',
|
|
10
|
+
forceSetup: false,
|
|
11
|
+
forceGlobalSetup: false,
|
|
12
|
+
forceWorkspaceSetup: false,
|
|
13
|
+
...partial
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
describe('workspace lifecycle state resolver', () => {
|
|
17
|
+
it('returns ready when setup state is not available', () => {
|
|
18
|
+
const resolved = resolveWorkspaceLifecycleState({
|
|
19
|
+
setupState: null,
|
|
20
|
+
runtimeMode: 'local',
|
|
21
|
+
isAuthenticated: false
|
|
22
|
+
});
|
|
23
|
+
expect(resolved.phase).toBe('ready');
|
|
24
|
+
expect(resolved.setupGateActive).toBe(false);
|
|
25
|
+
});
|
|
26
|
+
it('requires workspace setup for local missing workspace', () => {
|
|
27
|
+
const resolved = resolveWorkspaceLifecycleState({
|
|
28
|
+
setupState: makeSetupState({ workspaceSetupState: 'missing' }),
|
|
29
|
+
runtimeMode: 'local',
|
|
30
|
+
isAuthenticated: false
|
|
31
|
+
});
|
|
32
|
+
expect(resolved.setupGateActive).toBe(true);
|
|
33
|
+
expect(resolved.needsWorkspaceSetup).toBe(true);
|
|
34
|
+
expect(resolved.phase).toBe('needs-workspace-setup');
|
|
35
|
+
});
|
|
36
|
+
it('requires workspace setup in cloud only when authenticated', () => {
|
|
37
|
+
const unauthenticated = resolveWorkspaceLifecycleState({
|
|
38
|
+
setupState: makeSetupState({ workspaceSetupState: 'missing' }),
|
|
39
|
+
runtimeMode: 'cloud',
|
|
40
|
+
isAuthenticated: false
|
|
41
|
+
});
|
|
42
|
+
expect(unauthenticated.setupGateActive).toBe(false);
|
|
43
|
+
expect(unauthenticated.phase).toBe('ready');
|
|
44
|
+
const authenticated = resolveWorkspaceLifecycleState({
|
|
45
|
+
setupState: makeSetupState({ workspaceSetupState: 'missing' }),
|
|
46
|
+
runtimeMode: 'cloud',
|
|
47
|
+
isAuthenticated: true
|
|
48
|
+
});
|
|
49
|
+
expect(authenticated.setupGateActive).toBe(true);
|
|
50
|
+
expect(authenticated.needsWorkspaceSetup).toBe(true);
|
|
51
|
+
});
|
|
52
|
+
it('prioritizes unreadable setup state as setup-read-error', () => {
|
|
53
|
+
const resolved = resolveWorkspaceLifecycleState({
|
|
54
|
+
setupState: makeSetupState({
|
|
55
|
+
globalSetupState: 'unreadable',
|
|
56
|
+
forceGlobalSetup: true
|
|
57
|
+
}),
|
|
58
|
+
runtimeMode: 'local',
|
|
59
|
+
isAuthenticated: false
|
|
60
|
+
});
|
|
61
|
+
expect(resolved.hasSetupReadError).toBe(true);
|
|
62
|
+
expect(resolved.phase).toBe('setup-read-error');
|
|
63
|
+
});
|
|
64
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@taskforcehq/taskforce",
|
|
3
|
+
"version": "0.3.168",
|
|
4
|
+
"description": "Mission Command center for AI-powered task management (beta - under active development)",
|
|
5
|
+
"author": "Stratnexus <hello@stratnexus.ai> (https://stratnexus.ai)",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/Stratnexus/taskforce.git"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/Stratnexus/taskforce#readme",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/Stratnexus/taskforce/issues"
|
|
14
|
+
},
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "restricted",
|
|
17
|
+
"registry": "https://registry.npmjs.org/"
|
|
18
|
+
},
|
|
19
|
+
"main": "dist/index.js",
|
|
20
|
+
"types": "dist/index.d.ts",
|
|
21
|
+
"type": "module",
|
|
22
|
+
"bin": {
|
|
23
|
+
"taskforce": "./dist/cli.js"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist",
|
|
27
|
+
"scripts",
|
|
28
|
+
"README.md",
|
|
29
|
+
"src/resources/templates"
|
|
30
|
+
],
|
|
31
|
+
"exports": {
|
|
32
|
+
".": "./dist/index.js",
|
|
33
|
+
"./plugins": "./dist/plugins/index.js"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"dev": "sh scripts/run-dev-proxy.sh performance",
|
|
37
|
+
"perf": "sh scripts/run-dev-proxy.sh performance",
|
|
38
|
+
"stage": "sh scripts/run-dev-proxy.sh staging",
|
|
39
|
+
"performance": "npm run perf",
|
|
40
|
+
"staging": "npm run stage",
|
|
41
|
+
"prod": "VITE_TASKFORCE_BASE_URL=https://app.taskforcehq.ai npm run dev:runtime",
|
|
42
|
+
"dev:runtime": "concurrently \"npm run dev:app\" \"TASKFORCE_GIT_BACKUP=true node --import tsx src/cli.ts open 5174\"",
|
|
43
|
+
"stage:direct": "VITE_TASKFORCE_BASE_URL=https://staging-app.taskforcehq.ai npm run dev:runtime",
|
|
44
|
+
"perf:direct": "VITE_TASKFORCE_BASE_URL=https://performance-app.taskforcehq.ai npm run dev:runtime",
|
|
45
|
+
"dev:setup:force": "concurrently \"npm run dev:app\" \"TASKFORCE_GIT_BACKUP=true TASKFORCE_FORCE_SETUP=true node --import tsx src/cli.ts open 5175\"",
|
|
46
|
+
"dev:setup:force-global": "concurrently \"npm run dev:app\" \"TASKFORCE_GIT_BACKUP=true TASKFORCE_FORCE_GLOBAL_SETUP=true node --import tsx src/cli.ts open 5176\"",
|
|
47
|
+
"dev:setup:force-workspace": "concurrently \"npm run dev:app\" \"TASKFORCE_GIT_BACKUP=true TASKFORCE_FORCE_WORKSPACE_SETUP=true node --import tsx src/cli.ts open 5177\"",
|
|
48
|
+
"dev:app": "vite build --config vite.config.standalone.ts --watch",
|
|
49
|
+
"dev:site": "vite --config vite.config.site.ts --port 4173",
|
|
50
|
+
"dev:admin": "vite --config vite.config.admin.ts --port 5181",
|
|
51
|
+
"build:site": "vite build --config vite.config.site.ts",
|
|
52
|
+
"build:admin": "vite build --config vite.config.admin.ts",
|
|
53
|
+
"build:app": "vite build --config vite.config.standalone.ts",
|
|
54
|
+
"build:ui": "npm run build:app",
|
|
55
|
+
"build": "npm run gen:workflows && shx rm -rf dist && tsc && shx cp src/Taskforce.module.css dist/Taskforce.module.css && shx mkdir -p dist/resources && shx cp -r src/resources/* dist/resources/ && shx rm -f dist/resources/templates/workflows/release.yaml && shx mkdir -p dist/public && shx cp -r src/assets/images/* dist/public/ && shx cp -r src/assets/favicon/* dist/public/ && shx chmod +x dist/cli.js && npm run build:ui",
|
|
56
|
+
"mcp": "node dist/mcp/server.js",
|
|
57
|
+
"gen:workflows": "node scripts/generate-workflow-templates.mjs",
|
|
58
|
+
"check:workflows": "node scripts/generate-workflow-templates.mjs --check",
|
|
59
|
+
"db:export:postgres": "node scripts/export-sqlite-to-postgres.mjs",
|
|
60
|
+
"check:localization-strings": "node scripts/check-localization-strings.mjs",
|
|
61
|
+
"version:next": "node scripts/release-version.mjs --dry-run",
|
|
62
|
+
"version:bump": "node scripts/release-version.mjs",
|
|
63
|
+
"test:localization": "vitest run src/__tests__/localizationCatalogs.test.ts",
|
|
64
|
+
"check:runtime-boundaries": "node scripts/check-runtime-boundaries.mjs",
|
|
65
|
+
"test:workflow-readiness": "npm run check:workflows && vitest src/__tests__/workflowSimulation.test.ts src/__tests__/workflowExportMatrix.test.ts src/__tests__/workflowExportSnapshots.test.ts src/__tests__/workflowDocumentFixtures.test.ts src/__tests__/structuredCommentValidation.test.ts src/__tests__/structuredDocValidation.test.ts src/__tests__/workflowV2Policy.test.ts src/__tests__/workflowGeneration.test.ts src/__tests__/templates.test.ts",
|
|
66
|
+
"test": "vitest",
|
|
67
|
+
"test:soak": "sh scripts/run-soak.sh",
|
|
68
|
+
"test:soak:smoke": "SYNC_SOAK_PROFILE=smoke sh scripts/run-soak.sh",
|
|
69
|
+
"test:soak:stress": "SYNC_SOAK_PROFILE=stress sh scripts/run-soak.sh",
|
|
70
|
+
"test:soak:overnight": "SYNC_SOAK_PROFILE=overnight sh scripts/run-soak.sh",
|
|
71
|
+
"test:e2e:realtime": "sh scripts/run-e2e-realtime.sh",
|
|
72
|
+
"test:e2e:realtime:multiclient": "npm run test:e2e:realtime -- tests/e2e/realtime-multiclient.spec.ts",
|
|
73
|
+
"test:e2e:realtime:reconnect": "npm run test:e2e:realtime -- tests/e2e/realtime-reconnect.spec.ts",
|
|
74
|
+
"check:env": "node --import tsx scripts/check-env.ts --target=server --strict=true",
|
|
75
|
+
"check:env:soak": "node --import tsx scripts/check-env.ts --target=soak --strict=true",
|
|
76
|
+
"gen:env-example": "node --import tsx scripts/generate-env-example.ts",
|
|
77
|
+
"check:sync-smoke-preflight": "node --import tsx src/soak/preflight.cli.ts",
|
|
78
|
+
"check:compat": "node scripts/check-compat-boundaries.js",
|
|
79
|
+
"test:migration-gate": "npx tsc --noEmit && npm run check:compat && npx vitest run src/hooks/useTaskforce.priority-filters.test.ts src/TaskforceCore.test.tsx",
|
|
80
|
+
"test:auth-runtime-guard": "npx vitest run src/shared/runtimeContract.test.ts src/server/index.cookieProxy.test.ts src/server/routes.test.ts src/TaskforceCore.test.tsx",
|
|
81
|
+
"test:global": "node scripts/test-global.js",
|
|
82
|
+
"prepublishOnly": "npm run build",
|
|
83
|
+
"postinstall": "node scripts/postinstall.js"
|
|
84
|
+
},
|
|
85
|
+
"peerDependencies": {
|
|
86
|
+
"react": ">=18.0.0",
|
|
87
|
+
"react-dom": ">=18.0.0"
|
|
88
|
+
},
|
|
89
|
+
"dependencies": {
|
|
90
|
+
"@iarna/toml": "^2.2.5",
|
|
91
|
+
"@modelcontextprotocol/sdk": "^1.25.3",
|
|
92
|
+
"better-sqlite3": "^12.6.2",
|
|
93
|
+
"chokidar": "^3.6.0",
|
|
94
|
+
"js-yaml": "^4.1.1",
|
|
95
|
+
"nodemailer": "^6.10.1",
|
|
96
|
+
"pg": "^8.18.0",
|
|
97
|
+
"rehype-sanitize": "^6.0.0",
|
|
98
|
+
"stripe": "^20.3.1",
|
|
99
|
+
"ws": "^8.18.0"
|
|
100
|
+
},
|
|
101
|
+
"devDependencies": {
|
|
102
|
+
"@dnd-kit/core": "^6.3.1",
|
|
103
|
+
"@dnd-kit/sortable": "^10.0.0",
|
|
104
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
105
|
+
"@playwright/test": "^1.58.2",
|
|
106
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
107
|
+
"@testing-library/react": "^16.3.2",
|
|
108
|
+
"@testing-library/user-event": "^14.6.1",
|
|
109
|
+
"@types/better-sqlite3": "^7.6.13",
|
|
110
|
+
"@types/js-yaml": "^4.0.9",
|
|
111
|
+
"@types/node": "^25.0.10",
|
|
112
|
+
"@types/react": "^19.2.9",
|
|
113
|
+
"@types/react-dom": "^19.2.3",
|
|
114
|
+
"@types/ws": "^8.5.13",
|
|
115
|
+
"@vitejs/plugin-react": "^5.1.2",
|
|
116
|
+
"concurrently": "^8.2.2",
|
|
117
|
+
"html2canvas": "^1.4.1",
|
|
118
|
+
"jsdom": "^27.4.0",
|
|
119
|
+
"lucide-react": "^0.474.0",
|
|
120
|
+
"react": "^19.0.0",
|
|
121
|
+
"react-dom": "^19.0.0",
|
|
122
|
+
"react-markdown": "^9.1.0",
|
|
123
|
+
"react-router-dom": "^7.13.0",
|
|
124
|
+
"remark-breaks": "^4.0.0",
|
|
125
|
+
"remark-gfm": "^4.0.1",
|
|
126
|
+
"shx": "^0.4.0",
|
|
127
|
+
"tsx": "^4.21.0",
|
|
128
|
+
"typescript": "^5.9.3",
|
|
129
|
+
"vite": "^7.3.1",
|
|
130
|
+
"vite-plugin-dts": "^4.5.4",
|
|
131
|
+
"vitest": "^4.0.18"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import fs from 'fs';
|
|
3
|
+
import path from 'path';
|
|
4
|
+
|
|
5
|
+
const repoRoot = process.cwd();
|
|
6
|
+
const srcRoot = path.join(repoRoot, 'src');
|
|
7
|
+
const allowedRoots = [
|
|
8
|
+
path.join(srcRoot, 'migrations'),
|
|
9
|
+
path.join(srcRoot, 'compat')
|
|
10
|
+
];
|
|
11
|
+
const markerRegex = /COMPAT_REMOVE_AFTER|COMPAT_TRACK/g;
|
|
12
|
+
|
|
13
|
+
function walk(dir, out = []) {
|
|
14
|
+
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
|
|
15
|
+
const full = path.join(dir, entry.name);
|
|
16
|
+
if (entry.isDirectory()) {
|
|
17
|
+
walk(full, out);
|
|
18
|
+
continue;
|
|
19
|
+
}
|
|
20
|
+
if (entry.isFile() && /\.(ts|tsx|md)$/.test(entry.name)) {
|
|
21
|
+
out.push(full);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return out;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const files = walk(srcRoot);
|
|
28
|
+
const violations = [];
|
|
29
|
+
|
|
30
|
+
for (const file of files) {
|
|
31
|
+
const content = fs.readFileSync(file, 'utf8');
|
|
32
|
+
if (!markerRegex.test(content)) continue;
|
|
33
|
+
|
|
34
|
+
const inAllowedRoot = allowedRoots.some(root => file.startsWith(root + path.sep) || file === root);
|
|
35
|
+
if (!inAllowedRoot) {
|
|
36
|
+
violations.push(path.relative(repoRoot, file));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
if (violations.length > 0) {
|
|
41
|
+
console.error('Compatibility markers found outside allowed roots (src/migrations, src/compat):');
|
|
42
|
+
for (const file of violations) {
|
|
43
|
+
console.error(`- ${file}`);
|
|
44
|
+
}
|
|
45
|
+
process.exit(1);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
console.log('Compatibility marker boundary check passed.');
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { assertEnvironment, type EnvValidationTarget } from '../src/config/envSchema.js';
|
|
2
|
+
|
|
3
|
+
function readArg(name: string): string | null {
|
|
4
|
+
const prefix = `${name}=`;
|
|
5
|
+
const found = process.argv.find((arg) => arg.startsWith(prefix));
|
|
6
|
+
return found ? found.slice(prefix.length) : null;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const targetRaw = (readArg('--target') || process.env.TASKFORCE_ENV_CHECK_TARGET || 'all').trim().toLowerCase();
|
|
10
|
+
const strictRaw = (readArg('--strict') || process.env.TASKFORCE_ENV_CHECK_STRICT || 'true').trim().toLowerCase();
|
|
11
|
+
|
|
12
|
+
const target: EnvValidationTarget = (targetRaw === 'server' || targetRaw === 'soak' || targetRaw === 'all')
|
|
13
|
+
? targetRaw
|
|
14
|
+
: 'all';
|
|
15
|
+
const strictUnknown = ['1', 'true', 'yes', 'on'].includes(strictRaw);
|
|
16
|
+
|
|
17
|
+
try {
|
|
18
|
+
assertEnvironment(process.env, { target, strictUnknown });
|
|
19
|
+
console.log(`[env] validation passed (target=${target}, strictUnknown=${strictUnknown})`);
|
|
20
|
+
} catch (error) {
|
|
21
|
+
const message = String((error as Error)?.message || error);
|
|
22
|
+
console.error(message);
|
|
23
|
+
process.exit(1);
|
|
24
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import fs from 'node:fs';
|
|
4
|
+
import path from 'node:path';
|
|
5
|
+
|
|
6
|
+
const ROOT = path.resolve(path.dirname(new URL(import.meta.url).pathname), '..');
|
|
7
|
+
const FILES = [
|
|
8
|
+
'src/components/task/TaskList.tsx',
|
|
9
|
+
'src/components/task/TaskActionHeader.tsx'
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
const PATTERNS = [
|
|
13
|
+
{
|
|
14
|
+
name: 'attribute string literal',
|
|
15
|
+
regex: /\b(?:title|placeholder|aria-label)\s*=\s*"[^"]*[A-Za-z][^"]*"/g
|
|
16
|
+
}
|
|
17
|
+
];
|
|
18
|
+
|
|
19
|
+
const failures = [];
|
|
20
|
+
|
|
21
|
+
for (const relPath of FILES) {
|
|
22
|
+
const filePath = path.join(ROOT, relPath);
|
|
23
|
+
const source = fs.readFileSync(filePath, 'utf8');
|
|
24
|
+
const lines = source.split('\n');
|
|
25
|
+
|
|
26
|
+
for (const { name, regex } of PATTERNS) {
|
|
27
|
+
let match;
|
|
28
|
+
while ((match = regex.exec(source)) !== null) {
|
|
29
|
+
const start = match.index;
|
|
30
|
+
const line = source.slice(0, start).split('\n').length;
|
|
31
|
+
failures.push({
|
|
32
|
+
file: relPath,
|
|
33
|
+
line,
|
|
34
|
+
rule: name,
|
|
35
|
+
snippet: lines[line - 1]?.trim() || ''
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
if (failures.length > 0) {
|
|
42
|
+
console.error('Localization string check failed. Use translation keys via t(...):');
|
|
43
|
+
for (const failure of failures) {
|
|
44
|
+
console.error(`- ${failure.file}:${failure.line} [${failure.rule}] ${failure.snippet}`);
|
|
45
|
+
}
|
|
46
|
+
process.exit(1);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
console.log(`Localization string check passed (${FILES.length} files).`);
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
|
|
4
|
+
const projectRoot = process.cwd();
|
|
5
|
+
const sourceRoot = path.join(projectRoot, 'src');
|
|
6
|
+
const allowedExtensions = new Set(['.ts', '.tsx', '.js', '.jsx', '.mjs', '.cjs']);
|
|
7
|
+
const importPattern = /\bfrom\s+['"]([^'"]+)['"]|\brequire\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
8
|
+
const forbiddenSegments = ['apps/admin', 'apps/site'];
|
|
9
|
+
const violations = [];
|
|
10
|
+
|
|
11
|
+
function walk(dir) {
|
|
12
|
+
const entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
13
|
+
for (const entry of entries) {
|
|
14
|
+
const fullPath = path.join(dir, entry.name);
|
|
15
|
+
if (entry.isDirectory()) {
|
|
16
|
+
walk(fullPath);
|
|
17
|
+
continue;
|
|
18
|
+
}
|
|
19
|
+
if (!allowedExtensions.has(path.extname(entry.name))) continue;
|
|
20
|
+
const content = fs.readFileSync(fullPath, 'utf8');
|
|
21
|
+
let match;
|
|
22
|
+
while ((match = importPattern.exec(content)) !== null) {
|
|
23
|
+
const specifier = String(match[1] || match[2] || '').trim();
|
|
24
|
+
if (!specifier) continue;
|
|
25
|
+
if (!forbiddenSegments.some((segment) => specifier.includes(segment))) continue;
|
|
26
|
+
violations.push({
|
|
27
|
+
file: path.relative(projectRoot, fullPath),
|
|
28
|
+
specifier
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
walk(sourceRoot);
|
|
35
|
+
|
|
36
|
+
if (violations.length > 0) {
|
|
37
|
+
console.error('[runtime-boundaries] Found forbidden cross-surface imports:');
|
|
38
|
+
for (const violation of violations) {
|
|
39
|
+
console.error(`- ${violation.file}: ${violation.specifier}`);
|
|
40
|
+
}
|
|
41
|
+
process.exit(1);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
console.log('[runtime-boundaries] OK');
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { TaskforceCore } from '/Users/rossburke/.npm-global/lib/node_modules/taskforce/dist/core/Taskforce.js';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
import fs from 'fs';
|
|
4
|
+
|
|
5
|
+
const projectRoot = process.cwd();
|
|
6
|
+
console.log('Current Working Directory:', projectRoot);
|
|
7
|
+
|
|
8
|
+
const core = new TaskforceCore({ projectRoot });
|
|
9
|
+
console.log('Core initialized.');
|
|
10
|
+
console.log('Expected Todo File Path:', core.todoFile);
|
|
11
|
+
|
|
12
|
+
if (fs.existsSync(core.todoFile)) {
|
|
13
|
+
console.log('File exists on disk.');
|
|
14
|
+
const stats = fs.statSync(core.todoFile);
|
|
15
|
+
console.log('File size:', stats.size);
|
|
16
|
+
} else {
|
|
17
|
+
console.error('File DOES NOT EXIST at path!');
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
try {
|
|
21
|
+
const data = core.listTodos();
|
|
22
|
+
console.log('Read success!');
|
|
23
|
+
console.log('Todos found:', data.todos.length);
|
|
24
|
+
if (data.todos.length > 0) {
|
|
25
|
+
console.log('First todo ID:', data.todos[0].id);
|
|
26
|
+
console.log('First todo Title:', data.todos[0].title);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// Check config too
|
|
30
|
+
const config = core.readConfig();
|
|
31
|
+
console.log('Config loaded:', Object.keys(config));
|
|
32
|
+
} catch (e) {
|
|
33
|
+
console.error('Error executing method:', e);
|
|
34
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
import { createStandaloneServer } from '/Users/rossburke/.npm-global/lib/node_modules/taskforce/dist/server/index.js';
|
|
3
|
+
import http from 'http';
|
|
4
|
+
|
|
5
|
+
const projectRoot = process.cwd();
|
|
6
|
+
const PORT = 5177;
|
|
7
|
+
|
|
8
|
+
console.log('Project Root:', projectRoot);
|
|
9
|
+
|
|
10
|
+
try {
|
|
11
|
+
const server = createStandaloneServer({
|
|
12
|
+
projectRoot,
|
|
13
|
+
port: PORT
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
server.listen(PORT, async () => {
|
|
17
|
+
console.log(`Server listening on ${PORT}`);
|
|
18
|
+
|
|
19
|
+
const res = await fetch(`http://localhost:${PORT}/api/taskforce/todos`);
|
|
20
|
+
if (res.ok) {
|
|
21
|
+
const todos = await res.json();
|
|
22
|
+
console.log('API Response Status:', res.status);
|
|
23
|
+
console.log('Todos count from API:', todos.length);
|
|
24
|
+
if (todos.length > 0) {
|
|
25
|
+
console.log('First todo:', todos[0].title);
|
|
26
|
+
}
|
|
27
|
+
} else {
|
|
28
|
+
console.error('API Error:', res.status, res.statusText);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
server.close();
|
|
32
|
+
process.exit(0);
|
|
33
|
+
});
|
|
34
|
+
} catch (e) {
|
|
35
|
+
console.error('Server error:', e);
|
|
36
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import fs from 'fs';
|
|
3
|
+
import path from 'path';
|
|
4
|
+
import Database from 'better-sqlite3';
|
|
5
|
+
|
|
6
|
+
function getArg(name, fallback) {
|
|
7
|
+
const idx = process.argv.findIndex(a => a === `--${name}`);
|
|
8
|
+
if (idx >= 0 && process.argv[idx + 1]) return process.argv[idx + 1];
|
|
9
|
+
return fallback;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function sqlString(value) {
|
|
13
|
+
if (value === null || value === undefined) return 'NULL';
|
|
14
|
+
return `'${String(value).replace(/'/g, "''")}'`;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function sqlNumber(value) {
|
|
18
|
+
if (value === null || value === undefined || value === '') return 'NULL';
|
|
19
|
+
const num = Number(value);
|
|
20
|
+
return Number.isFinite(num) ? String(num) : 'NULL';
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function sqlBool(value) {
|
|
24
|
+
if (value === null || value === undefined) return 'FALSE';
|
|
25
|
+
return Number(value) === 1 || value === true ? 'TRUE' : 'FALSE';
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const sqlitePath = path.resolve(getArg('sqlite', '.taskforce/taskforce.db'));
|
|
29
|
+
const outPath = path.resolve(getArg('out', '.taskforce/postgres-bootstrap.sql'));
|
|
30
|
+
|
|
31
|
+
if (!fs.existsSync(sqlitePath)) {
|
|
32
|
+
console.error(`[Taskforce] SQLite DB not found: ${sqlitePath}`);
|
|
33
|
+
process.exit(1);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const db = new Database(sqlitePath, { readonly: true });
|
|
37
|
+
|
|
38
|
+
const tasks = db.prepare('SELECT * FROM tasks ORDER BY id ASC').all();
|
|
39
|
+
const comments = db.prepare('SELECT * FROM comments ORDER BY id ASC').all();
|
|
40
|
+
const screenshots = db.prepare('SELECT * FROM screenshots ORDER BY id ASC').all();
|
|
41
|
+
|
|
42
|
+
const lines = [];
|
|
43
|
+
lines.push('-- Generated by scripts/export-sqlite-to-postgres.mjs');
|
|
44
|
+
lines.push(`-- Source SQLite: ${sqlitePath}`);
|
|
45
|
+
lines.push(`-- Generated at: ${new Date().toISOString()}`);
|
|
46
|
+
lines.push('-- Apply schema first: src/migrations/postgres/001_init.sql');
|
|
47
|
+
lines.push('BEGIN;');
|
|
48
|
+
lines.push('');
|
|
49
|
+
|
|
50
|
+
for (const t of tasks) {
|
|
51
|
+
lines.push(`INSERT INTO tasks (
|
|
52
|
+
id, tenant_id, title, description, status, priority, complexity, type, category,
|
|
53
|
+
approach, created_at, updated_at, completed_at, canceled_reason,
|
|
54
|
+
is_archived, specialists, taxonomies, created_by,
|
|
55
|
+
scheduled_date, due_date, scheduled_week_key, order_in_day,
|
|
56
|
+
parent_task_id, child_display_order
|
|
57
|
+
) VALUES (
|
|
58
|
+
${sqlString(t.id)}, ${sqlString(t.tenant_id || 'default')}, ${sqlString(t.title)}, ${sqlString(t.description)}, ${sqlString(t.status)}, ${sqlNumber(t.priority)}, ${sqlNumber(t.complexity)}, ${sqlString(t.type)}, ${sqlString(t.category)},
|
|
59
|
+
${sqlString(t.approach)}, ${sqlString(t.created_at)}, ${sqlString(t.updated_at)}, ${sqlString(t.completed_at)}, ${sqlString(t.canceled_reason)},
|
|
60
|
+
${sqlBool(t.is_archived)}, ${sqlString(t.specialists)}, ${sqlString(t.taxonomies)}, ${sqlString(t.created_by)},
|
|
61
|
+
${sqlString(t.scheduled_date)}, ${sqlString(t.due_date)}, ${sqlString(t.scheduled_week_key)}, ${sqlNumber(t.order_in_day)},
|
|
62
|
+
${sqlString(t.parent_task_id)}, ${sqlNumber(t.child_display_order)}
|
|
63
|
+
)
|
|
64
|
+
ON CONFLICT (id) DO UPDATE SET
|
|
65
|
+
title = EXCLUDED.title,
|
|
66
|
+
description = EXCLUDED.description,
|
|
67
|
+
status = EXCLUDED.status,
|
|
68
|
+
priority = EXCLUDED.priority,
|
|
69
|
+
complexity = EXCLUDED.complexity,
|
|
70
|
+
type = EXCLUDED.type,
|
|
71
|
+
category = EXCLUDED.category,
|
|
72
|
+
approach = EXCLUDED.approach,
|
|
73
|
+
created_at = EXCLUDED.created_at,
|
|
74
|
+
updated_at = EXCLUDED.updated_at,
|
|
75
|
+
completed_at = EXCLUDED.completed_at,
|
|
76
|
+
canceled_reason = EXCLUDED.canceled_reason,
|
|
77
|
+
is_archived = EXCLUDED.is_archived,
|
|
78
|
+
specialists = EXCLUDED.specialists,
|
|
79
|
+
taxonomies = EXCLUDED.taxonomies,
|
|
80
|
+
created_by = EXCLUDED.created_by,
|
|
81
|
+
scheduled_date = EXCLUDED.scheduled_date,
|
|
82
|
+
due_date = EXCLUDED.due_date,
|
|
83
|
+
scheduled_week_key = EXCLUDED.scheduled_week_key,
|
|
84
|
+
order_in_day = EXCLUDED.order_in_day,
|
|
85
|
+
parent_task_id = EXCLUDED.parent_task_id,
|
|
86
|
+
child_display_order = EXCLUDED.child_display_order;`);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
for (const c of comments) {
|
|
90
|
+
lines.push(`INSERT INTO comments (id, tenant_id, task_id, text, author, timestamp) VALUES (
|
|
91
|
+
${sqlString(c.id)}, ${sqlString(c.tenant_id || 'default')}, ${sqlString(c.task_id)}, ${sqlString(c.text)}, ${sqlString(c.author)}, ${sqlString(c.timestamp)}
|
|
92
|
+
)
|
|
93
|
+
ON CONFLICT (id) DO UPDATE SET
|
|
94
|
+
tenant_id = EXCLUDED.tenant_id,
|
|
95
|
+
task_id = EXCLUDED.task_id,
|
|
96
|
+
text = EXCLUDED.text,
|
|
97
|
+
author = EXCLUDED.author,
|
|
98
|
+
timestamp = EXCLUDED.timestamp;`);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
for (const s of screenshots) {
|
|
102
|
+
lines.push(`INSERT INTO screenshots (id, tenant_id, task_id, path, fs_path, caption, timestamp) VALUES (
|
|
103
|
+
${sqlString(s.id)}, ${sqlString(s.tenant_id || 'default')}, ${sqlString(s.task_id)}, ${sqlString(s.path)}, ${sqlString(s.fs_path)}, ${sqlString(s.caption)}, ${sqlString(s.timestamp)}
|
|
104
|
+
)
|
|
105
|
+
ON CONFLICT (id) DO UPDATE SET
|
|
106
|
+
tenant_id = EXCLUDED.tenant_id,
|
|
107
|
+
task_id = EXCLUDED.task_id,
|
|
108
|
+
path = EXCLUDED.path,
|
|
109
|
+
fs_path = EXCLUDED.fs_path,
|
|
110
|
+
caption = EXCLUDED.caption,
|
|
111
|
+
timestamp = EXCLUDED.timestamp;`);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
lines.push('');
|
|
115
|
+
lines.push('COMMIT;');
|
|
116
|
+
lines.push('');
|
|
117
|
+
|
|
118
|
+
fs.mkdirSync(path.dirname(outPath), { recursive: true });
|
|
119
|
+
fs.writeFileSync(outPath, `${lines.join('\n')}\n`, 'utf8');
|
|
120
|
+
|
|
121
|
+
console.log(`[Taskforce] Export complete:`);
|
|
122
|
+
console.log(` tasks: ${tasks.length}`);
|
|
123
|
+
console.log(` comments: ${comments.length}`);
|
|
124
|
+
console.log(` screenshots: ${screenshots.length}`);
|
|
125
|
+
console.log(` output: ${outPath}`);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as fs from 'fs';
|
|
2
|
+
import * as path from 'path';
|
|
3
|
+
import { renderEnvExample } from '../src/config/envSchema.js';
|
|
4
|
+
|
|
5
|
+
const outputPath = path.resolve(process.cwd(), '.env.example');
|
|
6
|
+
const contents = renderEnvExample('all');
|
|
7
|
+
fs.writeFileSync(outputPath, contents, 'utf8');
|
|
8
|
+
console.log(`[env] wrote ${outputPath}`);
|