@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,30 @@
|
|
|
1
|
+
import type { IncomingMessage } from 'http';
|
|
2
|
+
import type { TaskforceAuthConfig, TaskforceRole } from './auth.js';
|
|
3
|
+
import type { RealtimeMutationEvent } from '../core/Taskforce.js';
|
|
4
|
+
interface RealtimeSyncCoreAccess {
|
|
5
|
+
resolveUserAccess(userId: string, workspaceId: string, fallbackRole: TaskforceRole): {
|
|
6
|
+
workspaceId: string;
|
|
7
|
+
} | null;
|
|
8
|
+
}
|
|
9
|
+
export interface RealtimeWsLike {
|
|
10
|
+
readyState: number;
|
|
11
|
+
bufferedAmount?: number;
|
|
12
|
+
send(data: string): void;
|
|
13
|
+
close(code?: number, reason?: string): void;
|
|
14
|
+
on(event: 'message', listener: (data: unknown) => void): unknown;
|
|
15
|
+
on(event: 'close', listener: () => void): unknown;
|
|
16
|
+
on(event: 'error', listener: (error: unknown) => void): unknown;
|
|
17
|
+
}
|
|
18
|
+
type Logger = Pick<Console, 'log' | 'warn'>;
|
|
19
|
+
interface RealtimeSyncWsOptions {
|
|
20
|
+
replayMaxEvents: number;
|
|
21
|
+
replayTtlMs: number;
|
|
22
|
+
replayPerMessageLimit: number;
|
|
23
|
+
maxBufferedBytes: number;
|
|
24
|
+
}
|
|
25
|
+
export declare function createRealtimeSyncWsManager(core: RealtimeSyncCoreAccess, authConfig: TaskforceAuthConfig, logger?: Logger, customOptions?: Partial<RealtimeSyncWsOptions>): {
|
|
26
|
+
handleConnection: (ws: RealtimeWsLike, req: IncomingMessage) => void;
|
|
27
|
+
broadcastTaskforceUpdate: (workspaceId?: string) => void;
|
|
28
|
+
broadcastMutation: (event: RealtimeMutationEvent) => void;
|
|
29
|
+
};
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { resolveRequestAccess } from './auth.js';
|
|
2
|
+
const DEFAULT_OPTIONS = {
|
|
3
|
+
replayMaxEvents: 1000,
|
|
4
|
+
replayTtlMs: 10 * 60_000,
|
|
5
|
+
replayPerMessageLimit: 200,
|
|
6
|
+
maxBufferedBytes: 1_000_000
|
|
7
|
+
};
|
|
8
|
+
function parseWorkspaceId(raw) {
|
|
9
|
+
const value = typeof raw === 'string' ? raw.trim() : '';
|
|
10
|
+
if (!value || value.length > 120 || /\s/.test(value))
|
|
11
|
+
return '';
|
|
12
|
+
if (value === '*')
|
|
13
|
+
return '*';
|
|
14
|
+
return value;
|
|
15
|
+
}
|
|
16
|
+
function parseReplayCursor(raw) {
|
|
17
|
+
const cursor = typeof raw === 'string' ? raw.trim() : '';
|
|
18
|
+
if (!cursor)
|
|
19
|
+
return null;
|
|
20
|
+
const split = cursor.lastIndexOf(':');
|
|
21
|
+
if (split <= 0)
|
|
22
|
+
return null;
|
|
23
|
+
const serverEpoch = cursor.slice(0, split).trim();
|
|
24
|
+
const seqRaw = cursor.slice(split + 1).trim();
|
|
25
|
+
const seq = Number.parseInt(seqRaw, 10);
|
|
26
|
+
if (!serverEpoch || !Number.isFinite(seq) || seq < 0)
|
|
27
|
+
return null;
|
|
28
|
+
return { serverEpoch, seq };
|
|
29
|
+
}
|
|
30
|
+
function parseJson(raw) {
|
|
31
|
+
try {
|
|
32
|
+
const text = Buffer.isBuffer(raw) ? raw.toString('utf8') : String(raw);
|
|
33
|
+
const parsed = JSON.parse(text);
|
|
34
|
+
return parsed && typeof parsed === 'object' ? parsed : null;
|
|
35
|
+
}
|
|
36
|
+
catch {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export function createRealtimeSyncWsManager(core, authConfig, logger = console, customOptions) {
|
|
41
|
+
const options = {
|
|
42
|
+
...DEFAULT_OPTIONS,
|
|
43
|
+
...(customOptions || {})
|
|
44
|
+
};
|
|
45
|
+
const connections = new Map();
|
|
46
|
+
const replayBufferByWorkspace = new Map();
|
|
47
|
+
const send = (ws, payload) => {
|
|
48
|
+
if (ws.readyState !== 1)
|
|
49
|
+
return;
|
|
50
|
+
if (typeof ws.bufferedAmount === 'number' && ws.bufferedAmount > options.maxBufferedBytes) {
|
|
51
|
+
logger.warn(`[Taskforce] WebSocket slow-consumer close bufferedAmount=${ws.bufferedAmount}`);
|
|
52
|
+
ws.close(1013, 'slow-consumer');
|
|
53
|
+
removeConnection(ws);
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
try {
|
|
57
|
+
ws.send(JSON.stringify(payload));
|
|
58
|
+
}
|
|
59
|
+
catch {
|
|
60
|
+
ws.close(1011, 'send-failed');
|
|
61
|
+
removeConnection(ws);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
const removeConnection = (ws) => {
|
|
65
|
+
const existing = connections.get(ws);
|
|
66
|
+
if (existing) {
|
|
67
|
+
logger.log(`[Taskforce] WebSocket client disconnected user=${existing.userId}`);
|
|
68
|
+
}
|
|
69
|
+
connections.delete(ws);
|
|
70
|
+
};
|
|
71
|
+
const canSubscribe = (state, workspaceId) => {
|
|
72
|
+
if (!workspaceId)
|
|
73
|
+
return false;
|
|
74
|
+
if (!authConfig.enabled || !authConfig.requiredForApi)
|
|
75
|
+
return true;
|
|
76
|
+
if (!state.authenticated || !state.userId || state.userId === 'anonymous')
|
|
77
|
+
return false;
|
|
78
|
+
const resolved = core.resolveUserAccess(state.userId, workspaceId, state.role);
|
|
79
|
+
return Boolean(resolved?.workspaceId === workspaceId);
|
|
80
|
+
};
|
|
81
|
+
const closeUnauthorized = (ws, reason) => {
|
|
82
|
+
logger.warn(`[Taskforce] WebSocket rejected: ${reason}`);
|
|
83
|
+
ws.close(1008, reason);
|
|
84
|
+
};
|
|
85
|
+
const subscribeWorkspace = (ws, state, workspaceId) => {
|
|
86
|
+
if (!canSubscribe(state, workspaceId)) {
|
|
87
|
+
send(ws, { type: 'taskforce:subscription-error', workspaceId, reason: 'forbidden' });
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
state.workspaceIds.add(workspaceId);
|
|
91
|
+
send(ws, { type: 'taskforce:subscribed', workspaceId });
|
|
92
|
+
logger.log(`[Taskforce] WebSocket subscribed user=${state.userId} workspace=${workspaceId}`);
|
|
93
|
+
};
|
|
94
|
+
const unsubscribeWorkspace = (ws, state, workspaceId) => {
|
|
95
|
+
if (!workspaceId)
|
|
96
|
+
return;
|
|
97
|
+
state.workspaceIds.delete(workspaceId);
|
|
98
|
+
send(ws, { type: 'taskforce:unsubscribed', workspaceId });
|
|
99
|
+
logger.log(`[Taskforce] WebSocket unsubscribed user=${state.userId} workspace=${workspaceId}`);
|
|
100
|
+
};
|
|
101
|
+
const pruneWorkspaceBuffer = (workspaceId) => {
|
|
102
|
+
const current = replayBufferByWorkspace.get(workspaceId);
|
|
103
|
+
if (!current || current.length === 0)
|
|
104
|
+
return;
|
|
105
|
+
const now = Date.now();
|
|
106
|
+
const cutoff = now - options.replayTtlMs;
|
|
107
|
+
const ttlFiltered = current.filter((event) => Date.parse(event.serverTs) >= cutoff);
|
|
108
|
+
const bounded = ttlFiltered.slice(Math.max(0, ttlFiltered.length - options.replayMaxEvents));
|
|
109
|
+
replayBufferByWorkspace.set(workspaceId, bounded);
|
|
110
|
+
};
|
|
111
|
+
const appendReplayEvent = (event) => {
|
|
112
|
+
const workspaceId = parseWorkspaceId(event.workspaceId);
|
|
113
|
+
if (!workspaceId)
|
|
114
|
+
return;
|
|
115
|
+
const current = replayBufferByWorkspace.get(workspaceId) || [];
|
|
116
|
+
current.push(event);
|
|
117
|
+
replayBufferByWorkspace.set(workspaceId, current);
|
|
118
|
+
pruneWorkspaceBuffer(workspaceId);
|
|
119
|
+
};
|
|
120
|
+
const getWorkspaceReplayEvents = (workspaceId) => {
|
|
121
|
+
pruneWorkspaceBuffer(workspaceId);
|
|
122
|
+
const direct = replayBufferByWorkspace.get(workspaceId) || [];
|
|
123
|
+
const shared = replayBufferByWorkspace.get('*') || [];
|
|
124
|
+
const merged = workspaceId === '*'
|
|
125
|
+
? direct
|
|
126
|
+
: [...direct, ...shared];
|
|
127
|
+
return merged.sort((a, b) => a.seq - b.seq);
|
|
128
|
+
};
|
|
129
|
+
const handleReplay = (ws, state, requestedWorkspaceId, cursorRaw, limitRaw) => {
|
|
130
|
+
const workspaceId = parseWorkspaceId(requestedWorkspaceId);
|
|
131
|
+
if (!workspaceId || workspaceId === '*') {
|
|
132
|
+
send(ws, { type: 'taskforce:replay-error', reason: 'workspace-required' });
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
if (!canSubscribe(state, workspaceId)) {
|
|
136
|
+
send(ws, { type: 'taskforce:replay-error', workspaceId, reason: 'forbidden' });
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
state.workspaceIds.add(workspaceId);
|
|
140
|
+
const cursor = parseReplayCursor(cursorRaw);
|
|
141
|
+
const events = getWorkspaceReplayEvents(workspaceId);
|
|
142
|
+
const latest = events.length > 0 ? events[events.length - 1] : null;
|
|
143
|
+
const maxReplay = Number.isFinite(Number(limitRaw))
|
|
144
|
+
? Math.max(1, Math.min(options.replayPerMessageLimit, Math.floor(Number(limitRaw))))
|
|
145
|
+
: options.replayPerMessageLimit;
|
|
146
|
+
if (cursor && latest && cursor.serverEpoch !== latest.serverEpoch) {
|
|
147
|
+
send(ws, {
|
|
148
|
+
type: 'taskforce:replay-reset',
|
|
149
|
+
workspaceId,
|
|
150
|
+
reason: 'server-epoch-mismatch',
|
|
151
|
+
serverEpoch: latest.serverEpoch
|
|
152
|
+
});
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
if (cursor && events.length > 0) {
|
|
156
|
+
const earliestSeq = events[0].seq;
|
|
157
|
+
if (earliestSeq > (cursor.seq + 1)) {
|
|
158
|
+
send(ws, {
|
|
159
|
+
type: 'taskforce:replay-gap',
|
|
160
|
+
workspaceId,
|
|
161
|
+
reason: 'cursor-evicted',
|
|
162
|
+
earliestSeq,
|
|
163
|
+
cursorSeq: cursor.seq
|
|
164
|
+
});
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
const replayable = cursor
|
|
169
|
+
? events.filter((event) => event.seq > cursor.seq)
|
|
170
|
+
: events;
|
|
171
|
+
const replayEvents = replayable.slice(0, maxReplay);
|
|
172
|
+
send(ws, {
|
|
173
|
+
type: 'taskforce:replay',
|
|
174
|
+
workspaceId,
|
|
175
|
+
events: replayEvents,
|
|
176
|
+
truncated: replayable.length > replayEvents.length
|
|
177
|
+
});
|
|
178
|
+
};
|
|
179
|
+
const handleConnection = (ws, req) => {
|
|
180
|
+
const access = resolveRequestAccess(req, authConfig);
|
|
181
|
+
if (authConfig.enabled && authConfig.requiredForApi && (!access.authenticated || !access.userId || access.userId === 'anonymous')) {
|
|
182
|
+
closeUnauthorized(ws, 'unauthorized');
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
const state = {
|
|
186
|
+
authenticated: access.authenticated,
|
|
187
|
+
userId: access.userId || 'anonymous',
|
|
188
|
+
role: access.role,
|
|
189
|
+
workspaceIds: new Set()
|
|
190
|
+
};
|
|
191
|
+
connections.set(ws, state);
|
|
192
|
+
logger.log(`[Taskforce] WebSocket client connected user=${state.userId}`);
|
|
193
|
+
const initialWorkspaceId = parseWorkspaceId(access.workspaceId);
|
|
194
|
+
if (initialWorkspaceId && canSubscribe(state, initialWorkspaceId)) {
|
|
195
|
+
state.workspaceIds.add(initialWorkspaceId);
|
|
196
|
+
}
|
|
197
|
+
ws.on('message', (rawData) => {
|
|
198
|
+
const payload = parseJson(rawData);
|
|
199
|
+
if (!payload) {
|
|
200
|
+
send(ws, { type: 'taskforce:error', reason: 'invalid-json' });
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
const messageType = String(payload.type || '').trim();
|
|
204
|
+
if (messageType === 'taskforce:subscribe') {
|
|
205
|
+
subscribeWorkspace(ws, state, parseWorkspaceId(payload.workspaceId));
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
if (messageType === 'taskforce:unsubscribe') {
|
|
209
|
+
unsubscribeWorkspace(ws, state, parseWorkspaceId(payload.workspaceId));
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
if (messageType === 'taskforce:replay') {
|
|
213
|
+
handleReplay(ws, state, parseWorkspaceId(payload.workspaceId), payload.cursor, payload.limit);
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
send(ws, { type: 'taskforce:error', reason: 'unsupported-message' });
|
|
217
|
+
});
|
|
218
|
+
ws.on('close', () => removeConnection(ws));
|
|
219
|
+
ws.on('error', () => removeConnection(ws));
|
|
220
|
+
};
|
|
221
|
+
const broadcastTaskforceUpdate = (workspaceId) => {
|
|
222
|
+
const normalizedWorkspaceId = parseWorkspaceId(workspaceId);
|
|
223
|
+
const payload = {
|
|
224
|
+
type: 'taskforce:update',
|
|
225
|
+
...(normalizedWorkspaceId ? { workspaceId: normalizedWorkspaceId } : {})
|
|
226
|
+
};
|
|
227
|
+
for (const [ws, state] of connections.entries()) {
|
|
228
|
+
if (normalizedWorkspaceId && !state.workspaceIds.has(normalizedWorkspaceId))
|
|
229
|
+
continue;
|
|
230
|
+
send(ws, payload);
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
const broadcastMutation = (event) => {
|
|
234
|
+
const workspaceId = parseWorkspaceId(event.workspaceId);
|
|
235
|
+
appendReplayEvent(event);
|
|
236
|
+
const broadcastToAll = workspaceId === '*';
|
|
237
|
+
const updatePayload = {
|
|
238
|
+
type: 'taskforce:update',
|
|
239
|
+
...(workspaceId && !broadcastToAll ? { workspaceId } : {})
|
|
240
|
+
};
|
|
241
|
+
const mutationPayload = {
|
|
242
|
+
type: 'taskforce:mutation',
|
|
243
|
+
...event
|
|
244
|
+
};
|
|
245
|
+
for (const [ws, state] of connections.entries()) {
|
|
246
|
+
if (!broadcastToAll && workspaceId && !state.workspaceIds.has(workspaceId))
|
|
247
|
+
continue;
|
|
248
|
+
send(ws, mutationPayload);
|
|
249
|
+
send(ws, updatePayload);
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
return {
|
|
253
|
+
handleConnection,
|
|
254
|
+
broadcastTaskforceUpdate,
|
|
255
|
+
broadcastMutation
|
|
256
|
+
};
|
|
257
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { IncomingMessage } from 'http';
|
|
2
|
+
import type { TaskforceCore } from '../core/Taskforce.js';
|
|
3
|
+
import type { RouteHandler, RouteContext } from './routes.js';
|
|
4
|
+
export type BillingInterval = 'month' | 'year';
|
|
5
|
+
export interface BillingRouteDependencies {
|
|
6
|
+
addRoute: (method: string, path: string, handler: RouteHandler) => void;
|
|
7
|
+
core: TaskforceCore;
|
|
8
|
+
context: RouteContext;
|
|
9
|
+
ensureAuthenticatedUser: (req: IncomingMessage) => boolean;
|
|
10
|
+
ensureAdminRole: (req: IncomingMessage) => boolean;
|
|
11
|
+
requestUserId: (req: IncomingMessage) => string;
|
|
12
|
+
resolveErrorStatusCode: (error: unknown, fallback?: number) => number;
|
|
13
|
+
auditAdminAction: (req: IncomingMessage, action: string, details: Record<string, unknown>) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function registerBillingRoutes(deps: BillingRouteDependencies): void;
|