@taskforcehq/taskforce 0.3.329 → 0.3.330
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/dist/Taskforce.module.css +290 -45
- package/dist/components/features/AiProfilesModule.js +3 -5
- package/dist/components/features/TaskSettings.js +70 -14
- package/dist/components/features/TaskforceAgentsModule.d.ts +1 -2
- package/dist/components/features/TaskforceAgentsModule.js +586 -116
- package/dist/components/features/agentConnections/AgentConnectionControl.d.ts +15 -0
- package/dist/components/features/agentConnections/AgentConnectionControl.js +125 -0
- package/dist/components/features/agentConnections/ModelConnectionsPanel.d.ts +18 -0
- package/dist/components/features/agentConnections/ModelConnectionsPanel.js +393 -0
- package/dist/components/features/agentConnections/modelConnectionsApi.d.ts +65 -0
- package/dist/components/features/agentConnections/modelConnectionsApi.js +129 -0
- package/dist/components/features/taskforceAgentAssignments/AgentBehaviorAssignments.js +15 -24
- package/dist/components/features/taskforceAgentEditorModel.d.ts +2 -1
- package/dist/components/features/taskforceAgentEditorModel.js +3 -1
- package/dist/components/features/workflowManager/workflowManagerApi.d.ts +1 -1
- package/dist/components/features/workflowManager/workflowManagerApi.js +3 -0
- package/dist/components/task/TaskWorkflowAssignmentField.js +68 -10
- package/dist/components/views/StandaloneLayout.js +27 -26
- package/dist/components/views/standalone/modals/SyncStatusModal.d.ts +4 -3
- package/dist/components/views/standalone/modals/SyncStatusModal.js +33 -38
- package/dist/config/envSchema.js +48 -1
- package/dist/core/McpTokenService.d.ts +23 -1
- package/dist/core/McpTokenService.js +93 -10
- package/dist/core/TaskChecklistCommandService.d.ts +27 -0
- package/dist/core/TaskChecklistCommandService.js +83 -5
- package/dist/core/TaskLifecycleCommandService.d.ts +3 -1
- package/dist/core/TaskLifecycleCommandService.js +6 -2
- package/dist/core/Taskforce.d.ts +32 -0
- package/dist/core/Taskforce.js +125 -4
- package/dist/core/types.d.ts +8 -0
- package/dist/documentReviews/commandService.d.ts +2 -1
- package/dist/documentReviews/commandService.js +6 -3
- package/dist/hooks/sync/orchestratorShared.d.ts +1 -0
- package/dist/hooks/sync/orchestratorShared.js +2 -0
- package/dist/hooks/sync/useLocalSyncCoordinatorSnapshot.d.ts +3 -0
- package/dist/hooks/sync/useLocalSyncCoordinatorSnapshot.js +85 -9
- package/dist/hooks/sync/useSyncStatusControls.d.ts +4 -1
- package/dist/hooks/sync/useSyncStatusControls.js +47 -11
- package/dist/hooks/useSyncOrchestrator.d.ts +3 -0
- package/dist/hooks/useSyncOrchestrator.js +111 -2
- package/dist/hooks/useTaskData.d.ts +31 -1
- package/dist/hooks/useTaskData.js +29 -7
- package/dist/hooks/useTaskMutations.d.ts +3 -1
- package/dist/hooks/useTaskMutations.js +46 -12
- package/dist/hooks/useTaskforce.d.ts +2 -0
- package/dist/hooks/useTaskforce.js +11 -2
- package/dist/mcp/clientRegistry.d.ts +2 -2
- package/dist/mcp/clientRegistry.js +1 -1
- package/dist/mcp/documentAssetRegistrar.js +9 -6
- package/dist/mcp/durableTaskMutationRouter.d.ts +4 -1
- package/dist/mcp/durableTaskMutationRouter.js +10 -0
- package/dist/mcp/durableTaskRelationshipMutationRouter.js +4 -0
- package/dist/mcp/httpProtocolRouting.d.ts +10 -0
- package/dist/mcp/httpProtocolRouting.js +19 -0
- package/dist/mcp/localCliHealth.d.ts +2 -2
- package/dist/mcp/localCliHealth.js +2 -2
- package/dist/mcp/localServiceProxy.d.ts +1 -0
- package/dist/mcp/localServiceProxy.js +530 -68
- package/dist/mcp/planningAttachmentCommandAdapter.d.ts +3 -1
- package/dist/mcp/planningAttachmentCommandAdapter.js +20 -2
- package/dist/mcp/runtime.d.ts +54 -79
- package/dist/mcp/runtime.js +384 -97
- package/dist/mcp/taskPlanningRegistrar.js +23 -4
- package/dist/mcp/toolProfiles.d.ts +2 -0
- package/dist/mcp/toolProfiles.js +10 -0
- package/dist/mcp/toolRegistry.d.ts +1 -0
- package/dist/mcp/toolRegistry.js +1 -0
- package/dist/mcp/workflowExecutionRegistrar.js +4 -4
- package/dist/migrations/taskSchemaMigrations.d.ts +5 -0
- package/dist/migrations/taskSchemaMigrations.js +415 -0
- package/dist/runtime/appGates.d.ts +2 -1
- package/dist/runtime/appGates.js +7 -0
- package/dist/server/index.d.ts +3 -0
- package/dist/server/index.js +108 -11
- package/dist/server/localDatabaseIdentity.js +4 -1
- package/dist/server/localServiceLease.js +2 -1
- package/dist/server/localServiceSessions.d.ts +14 -17
- package/dist/server/localServiceSessions.js +308 -94
- package/dist/server/localWorkspaceSyncServerRuntime.js +12 -14
- package/dist/server/routes/admin.d.ts +4 -0
- package/dist/server/routes/admin.js +112 -3
- package/dist/server/routes/agents.d.ts +7 -0
- package/dist/server/routes/agents.js +277 -24
- package/dist/server/routes/billing.js +5 -1
- package/dist/server/routes/durableTaskHttpRouters.d.ts +2 -0
- package/dist/server/routes/executorPhaseAApprovals.d.ts +19 -0
- package/dist/server/routes/executorPhaseAApprovals.js +140 -0
- package/dist/server/routes/executorPhaseAIssuerRedemptions.d.ts +11 -0
- package/dist/server/routes/executorPhaseAIssuerRedemptions.js +24 -0
- package/dist/server/routes/githubReviewEvidence.d.ts +19 -0
- package/dist/server/routes/githubReviewEvidence.js +116 -0
- package/dist/server/routes/localService.d.ts +15 -4
- package/dist/server/routes/localService.js +136 -40
- package/dist/server/routes/modelConnections.d.ts +24 -0
- package/dist/server/routes/modelConnections.js +205 -0
- package/dist/server/routes/shared.d.ts +19 -0
- package/dist/server/routes/shared.js +95 -19
- package/dist/server/routes/sync.js +1 -0
- package/dist/server/routes/syncAuxRoutes.js +5 -1
- package/dist/server/routes/syncPushRoutes.d.ts +1 -0
- package/dist/server/routes/syncPushRoutes.js +1 -0
- package/dist/server/routes/syncV3FeedRoutes.js +10 -1
- package/dist/server/routes/syncV3OperationRoutes.js +35 -9
- package/dist/server/routes/tasks.js +21 -2
- package/dist/server/routes/workflows.js +9 -1
- package/dist/server/routes.js +59 -0
- package/dist/services/codexAppServerModelGateway.d.ts +54 -5
- package/dist/services/codexAppServerModelGateway.js +246 -21
- package/dist/services/codexDeviceCodeLoginManager.d.ts +39 -0
- package/dist/services/codexDeviceCodeLoginManager.js +265 -0
- package/dist/services/codexModelProviderConnectionLifecycle.d.ts +8 -0
- package/dist/services/codexModelProviderConnectionLifecycle.js +73 -0
- package/dist/services/executorPhaseAApprovalRuntime.d.ts +14 -0
- package/dist/services/executorPhaseAApprovalRuntime.js +24 -0
- package/dist/services/executorPhaseAApprovalService.d.ts +40 -0
- package/dist/services/executorPhaseAApprovalService.js +609 -0
- package/dist/services/executorPhaseADriftEvaluator.d.ts +78 -0
- package/dist/services/executorPhaseADriftEvaluator.js +93 -0
- package/dist/services/executorPhaseAIssuerCore.d.ts +126 -0
- package/dist/services/executorPhaseAIssuerCore.js +295 -0
- package/dist/services/executorPhaseAIssuerRedemptionService.d.ts +34 -0
- package/dist/services/executorPhaseAIssuerRedemptionService.js +158 -0
- package/dist/services/githubReviewEvidenceRuntime.d.ts +14 -0
- package/dist/services/githubReviewEvidenceRuntime.js +30 -0
- package/dist/services/githubReviewEvidenceService.d.ts +93 -0
- package/dist/services/githubReviewEvidenceService.js +336 -0
- package/dist/services/modelGateway.d.ts +7 -0
- package/dist/services/modelProviderConnectionService.d.ts +71 -0
- package/dist/services/modelProviderConnectionService.js +279 -0
- package/dist/services/modelProviderCredentialHome.d.ts +32 -0
- package/dist/services/modelProviderCredentialHome.js +271 -0
- package/dist/services/ownerScopedModelConnectionGateway.d.ts +12 -0
- package/dist/services/ownerScopedModelConnectionGateway.js +30 -0
- package/dist/services/taskforceAgentConnectionBindingService.d.ts +66 -0
- package/dist/services/taskforceAgentConnectionBindingService.js +185 -0
- package/dist/services/taskforceAgentMcpBridge.d.ts +1 -1
- package/dist/services/taskforceAgentMcpBridge.js +7 -24
- package/dist/shared/adminEdgeProxy.d.ts +5 -0
- package/dist/shared/adminEdgeProxy.js +94 -0
- package/dist/shared/adminProxySessionCookies.d.ts +16 -0
- package/dist/shared/adminProxySessionCookies.js +86 -0
- package/dist/shared/aiProfileColors.d.ts +31 -1
- package/dist/shared/aiProfileColors.js +14 -6
- package/dist/shared/executorPhaseAApprovalGoldenVector.json +269 -0
- package/dist/shared/executorPhaseAApprovalReceipt.d.ts +112 -0
- package/dist/shared/executorPhaseAApprovalReceipt.js +58 -0
- package/dist/shared/executorPhaseAApprovalTrustPolicy.json +10 -0
- package/dist/shared/executorPhaseADriftContracts.d.ts +37 -0
- package/dist/shared/executorPhaseADriftContracts.js +63 -0
- package/dist/shared/executorPhaseAIssuerContracts.d.ts +75 -0
- package/dist/shared/executorPhaseAIssuerContracts.js +90 -0
- package/dist/shared/executorPhaseARunAuthorization.d.ts +120 -0
- package/dist/shared/executorPhaseARunAuthorization.js +232 -0
- package/dist/shared/executorPhaseASchemaValidation.d.ts +7 -0
- package/dist/shared/executorPhaseASchemaValidation.js +53 -0
- package/dist/shared/executorPhaseASchemas/approval-receipt.schema.json +106 -0
- package/dist/shared/executorPhaseASchemas/drift-attestation.schema.json +54 -0
- package/dist/shared/executorPhaseASchemas/drift-request.schema.json +47 -0
- package/dist/shared/executorPhaseASchemas/foundation-manifest.schema.json +29 -0
- package/dist/shared/executorPhaseASchemas/issuer-audit-record.schema.json +24 -0
- package/dist/shared/executorPhaseASchemas/issuer-proof.schema.json +43 -0
- package/dist/shared/executorPhaseASchemas/issuer-redemption-request.schema.json +18 -0
- package/dist/shared/executorPhaseASchemas/issuer-redemption-response.schema.json +39 -0
- package/dist/shared/executorPhaseASchemas/logical-envelope.schema.json +149 -0
- package/dist/shared/executorPhaseASchemas/preflight-report.schema.json +216 -0
- package/dist/shared/executorPhaseASchemas/run-capability.schema.json +111 -0
- package/dist/shared/executorPhaseASchemas/sender-proof.schema.json +37 -0
- package/dist/shared/executorPhaseASchemas/workload-grant.schema.json +68 -0
- package/dist/shared/executorPhaseASchemas/workload-jwt-claims.schema.json +67 -0
- package/dist/shared/executorPhaseATiming.d.ts +1 -0
- package/dist/shared/executorPhaseATiming.js +1 -0
- package/dist/shared/planningIdentity.js +1 -1
- package/dist/shared/productLogoKeys.d.ts +2 -0
- package/dist/shared/productLogoKeys.js +18 -0
- package/dist/shared/taskforceAgentDefinition.d.ts +0 -1
- package/dist/shared/taskforceAgentDefinition.js +6 -9
- package/dist/shared/taskforceAgentModels.js +7 -3
- package/dist/shared/userFeatureGrants.d.ts +4 -0
- package/dist/shared/userFeatureGrants.js +7 -0
- package/dist/storage/executorPhaseAApprovalReceiptStore.d.ts +37 -0
- package/dist/storage/executorPhaseAApprovalReceiptStore.js +81 -0
- package/dist/storage/executorPhaseARunAuthorizationStore.d.ts +103 -0
- package/dist/storage/executorPhaseARunAuthorizationStore.js +492 -0
- package/dist/storage/githubReviewEvidenceInstallationStore.d.ts +26 -0
- package/dist/storage/githubReviewEvidenceInstallationStore.js +89 -0
- package/dist/storage/modelProviderConnectionStore.d.ts +99 -0
- package/dist/storage/modelProviderConnectionStore.js +446 -0
- package/dist/storage/postgresAdapter.d.ts +4 -0
- package/dist/storage/postgresAdapter.js +11 -0
- package/dist/storage/postgresWorker.js +9 -1
- package/dist/storage/postgresWorkerProtocol.d.ts +1 -0
- package/dist/storage/taskforceAgentConnectionBindingStore.d.ts +31 -0
- package/dist/storage/taskforceAgentConnectionBindingStore.js +84 -0
- package/dist/sync/coordinator/localSyncExecutionPermitStore.js +60 -29
- package/dist/sync/coordinator/localWorkspaceSyncPendingV2PushProgress.d.ts +10 -0
- package/dist/sync/coordinator/localWorkspaceSyncPendingV2PushProgress.js +29 -0
- package/dist/sync/coordinator/localWorkspaceSyncRunnerState.d.ts +15 -1
- package/dist/sync/coordinator/localWorkspaceSyncRunnerState.js +99 -2
- package/dist/sync/coordinator/workspaceSyncCredentialBroker.d.ts +1 -0
- package/dist/sync/coordinator/workspaceSyncCredentialBroker.js +33 -4
- package/dist/sync/engine/workspaceSyncContentLifecycleAdapter.d.ts +2 -1
- package/dist/sync/engine/workspaceSyncContentVersionStore.d.ts +38 -0
- package/dist/sync/engine/workspaceSyncContentVersionStore.js +50 -1
- package/dist/sync/engine/workspaceSyncEngineLifecyclePolicy.js +6 -6
- package/dist/sync/engine/workspaceSyncEnginePushCompletion.d.ts +14 -0
- package/dist/sync/engine/workspaceSyncEnginePushCompletion.js +84 -0
- package/dist/sync/engine/workspaceSyncEngineRecovery.js +1 -0
- package/dist/sync/engine/workspaceSyncEngineRuntime.d.ts +1 -0
- package/dist/sync/engine/workspaceSyncEngineRuntime.js +1 -0
- package/dist/sync/engine/workspaceSyncEngineServerRunnerOperations.js +112 -38
- package/dist/sync/engine/workspaceSyncEngineServerSnapshotReader.js +6 -0
- package/dist/sync/engine/workspaceSyncEngineTransfers.js +3 -1
- package/dist/sync/engine/workspaceSyncV2ChangeDispatcher.d.ts +1 -0
- package/dist/sync/engine/workspaceSyncV2ChangeDispatcher.js +29 -0
- package/dist/sync/syncApplyHandlers.d.ts +2 -0
- package/dist/sync/syncApplyHandlers.js +10 -1
- package/dist/sync/syncService.d.ts +15 -0
- package/dist/sync/syncService.js +83 -18
- package/dist/sync/taskforceAgentSyncAuthorization.d.ts +16 -0
- package/dist/sync/taskforceAgentSyncAuthorization.js +20 -0
- package/dist/sync/v3/combinedFeedCapability.js +4 -0
- package/dist/sync/v3/durableInitiativeMutationRouter.js +18 -10
- package/dist/sync/v3/durableOperationReplay.d.ts +14 -0
- package/dist/sync/v3/durableOperationReplay.js +18 -0
- package/dist/sync/v3/durableTaskAttachmentLinksMutationRouter.js +3 -0
- package/dist/sync/v3/durableTaskChecklistMutationRouter.d.ts +2 -1
- package/dist/sync/v3/durableTaskChecklistMutationRouter.js +58 -15
- package/dist/sync/v3/durableTaskCommentMutationRouter.js +3 -0
- package/dist/sync/v3/durableTaskHttpRootMutationRouter.d.ts +1 -1
- package/dist/sync/v3/durableTaskHttpRootMutationRouter.js +10 -0
- package/dist/sync/v3/durableTaxonomyMutationRouter.js +5 -0
- package/dist/sync/v3/durableWorkflowRuntimeMutationRouter.d.ts +11 -0
- package/dist/sync/v3/durableWorkflowRuntimeMutationRouter.js +39 -10
- package/dist/sync/v3/durableWorkstreamMutationRouter.js +18 -10
- package/dist/sync/v3/durableWorkstreamTaskOrderMutationRouter.js +16 -5
- package/dist/sync/v3/localOutboxDispatchRuntime.js +2 -2
- package/dist/sync/v3/localTaskChecklistOutboxHandler.js +16 -2
- package/dist/sync/v3/localTaskChecklistOutboxService.d.ts +4 -0
- package/dist/sync/v3/localTaskChecklistOutboxService.js +14 -1
- package/dist/sync/v3/localTaskStatusOutboxService.d.ts +8 -0
- package/dist/sync/v3/localTaskStatusOutboxService.js +219 -12
- package/dist/sync/v3/syncDurabilityStore.d.ts +34 -0
- package/dist/sync/v3/syncDurabilityStore.js +168 -2
- package/dist/sync/v3/taskChecklistMutationService.d.ts +11 -0
- package/dist/sync/v3/taskChecklistMutationService.js +44 -1
- package/dist/sync/v3/taskStatusMutationService.d.ts +29 -1
- package/dist/sync/v3/taskStatusMutationService.js +119 -3
- package/dist/sync/v3/workflowAssignmentSync.d.ts +5 -0
- package/dist/sync/v3/workflowAssignmentSync.js +27 -0
- package/dist/sync/v3/workspaceSyncJournalReader.js +1 -1
- package/dist/sync/v3/workspaceSyncOperationRetentionService.d.ts +16 -0
- package/dist/sync/v3/workspaceSyncOperationRetentionService.js +83 -0
- package/dist/sync/v3/workspaceSyncV3CloudOperationHandler.d.ts +1 -0
- package/dist/sync/v3/workspaceSyncV3CloudOperationHandler.js +9 -2
- package/dist/sync/v3/workspaceSyncV3CombinedRepairBaseline.d.ts +7 -0
- package/dist/sync/v3/workspaceSyncV3CombinedRepairBaseline.js +44 -32
- package/dist/sync/v3/workspaceSyncV3CombinedRepairMaterialization.d.ts +9 -5
- package/dist/sync/v3/workspaceSyncV3CombinedRepairMaterialization.js +54 -38
- package/dist/sync/v3/workspaceSyncV3CombinedRepairSnapshot.d.ts +10 -0
- package/dist/sync/v3/workspaceSyncV3CombinedRepairSnapshot.js +70 -31
- package/dist/sync/v3/workspaceSyncV3CombinedWireContract.d.ts +2 -1
- package/dist/sync/v3/workspaceSyncV3CombinedWireContract.js +16 -0
- package/dist/sync/v3/workspaceSyncV3CoverageRegistry.js +6 -0
- package/dist/sync/v3/workspaceSyncV3OperationProtocol.d.ts +3 -0
- package/dist/sync/v3/workspaceSyncV3OperatorDiagnostics.d.ts +5 -0
- package/dist/sync/v3/workspaceSyncV3OperatorDiagnostics.js +36 -2
- package/dist/sync/v3/workspaceSyncV3RepairSnapshotRetentionService.d.ts +17 -0
- package/dist/sync/v3/workspaceSyncV3RepairSnapshotRetentionService.js +64 -0
- package/dist/sync/v3/workspaceSyncV3WorkflowTaskCoverCoverage.d.ts +7 -0
- package/dist/sync/v3/workspaceSyncV3WorkflowTaskCoverCoverage.js +33 -0
- package/dist/sync/v3/workspaceSyncV3WorkflowTaskCoverWireContract.d.ts +7 -0
- package/dist/sync/v3/workspaceSyncV3WorkflowTaskCoverWireContract.js +8 -0
- package/dist/sync/workspaceRepair.d.ts +5 -2
- package/dist/sync/workspaceRepair.js +161 -6
- package/dist/sync/workspaceSyncModel.d.ts +21 -0
- package/dist/sync/workspaceSyncModel.js +35 -7
- package/dist/sync/workspaceSyncState.d.ts +1 -0
- package/dist/sync/workspaceSyncV2SnapshotBuilder.d.ts +6 -0
- package/dist/sync/workspaceSyncV2SnapshotBuilder.js +5 -0
- package/dist/ui/assets/AiIdentityRosterCard-OcSz1PkK.js +1 -0
- package/dist/ui/assets/AiProfilesModule-ByhYW5Xi.js +1 -0
- package/dist/ui/assets/{AnnotatedAttachmentWorkspace-B68Wg-RV.js → AnnotatedAttachmentWorkspace-BTM6nIg_.js} +1 -1
- package/dist/ui/assets/{AssetTraySortControl-C8Rztyal.js → AssetTraySortControl-DabEG8L4.js} +1 -1
- package/dist/ui/assets/{ContextAttachmentManager-Cj3c7X9y.js → ContextAttachmentManager-Coa8yVGM.js} +1 -1
- package/dist/ui/assets/{DocumentWorkspace-B5uvzems.js → DocumentWorkspace-BB0qhdix.js} +1 -1
- package/dist/ui/assets/{EntityActivityTimeline-BVFvCB5R.js → EntityActivityTimeline-CZ8x4UJE.js} +1 -1
- package/dist/ui/assets/{PlanningModule-B5DWQOGz.js → PlanningModule-pRPjR7v5.js} +1 -1
- package/dist/ui/assets/{PlansPage-AY4cGWco.js → PlansPage-D86pZSSl.js} +1 -1
- package/dist/ui/assets/{TaskContextUpload-DZxTVesW.js → TaskContextUpload-BVIkU9yT.js} +1 -1
- package/dist/ui/assets/TaskSettings-Cv1mNhv_.js +12 -0
- package/dist/ui/assets/TaskforceAgentsModule-b-8R25cJ.css +1 -0
- package/dist/ui/assets/TaskforceAgentsModule-gmH-PD2q.js +24 -0
- package/dist/ui/assets/{WorkflowManagerModule-DEr5di_r.js → WorkflowManagerModule-DbfnHJ-f.js} +1 -1
- package/dist/ui/assets/index-BZ-hdZSk.css +1 -0
- package/dist/ui/assets/index-CTsDBaef.js +7 -0
- package/dist/ui/assets/{vendor-icons-D9Lpw-j4.js → vendor-icons-Bsq-mcEn.js} +1 -1
- package/dist/ui/branding/logos/letterhead_dark.png +0 -0
- package/dist/ui/branding/logos/letterhead_light.png +0 -0
- package/dist/ui/branding/logos/signature_dark.png +0 -0
- package/dist/ui/branding/logos/signature_light.png +0 -0
- package/dist/ui/index.html +3 -3
- package/dist/utils/aiProfileDefaultLogo.js +16 -48
- package/dist/utils/httpSetCookie.d.ts +1 -0
- package/dist/utils/httpSetCookie.js +4 -1
- package/dist/utils/localRuntimeUrl.d.ts +1 -0
- package/dist/utils/localRuntimeUrl.js +14 -0
- package/dist/utils/productLogoRegistry.d.ts +2 -0
- package/dist/utils/productLogoRegistry.js +36 -0
- package/dist/utils/syncStatusPresentation.d.ts +4 -0
- package/dist/utils/syncStatusPresentation.js +17 -0
- package/dist/utils/taskEvents.d.ts +2 -0
- package/dist/utils/workspaceSyncPresentation.d.ts +1 -1
- package/dist/utils/workspaceSyncPresentation.js +23 -17
- package/package.json +22 -4
- package/dist/ui/assets/AiIdentityRosterCard-BZM4aQnM.js +0 -1
- package/dist/ui/assets/AiProfilesModule-BbAEWtHH.js +0 -1
- package/dist/ui/assets/TaskSettings-BeWAuyZj.js +0 -12
- package/dist/ui/assets/TaskforceAgentsModule-BifCYtjR.js +0 -21
- package/dist/ui/assets/TaskforceAgentsModule-D6IC0S7Q.css +0 -1
- package/dist/ui/assets/index-I5zhdtgt.js +0 -7
- package/dist/ui/assets/index-VRFsx3wz.css +0 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const INTERNAL_SUBSCRIPTION_MODEL_FEATURE_KEY: "internal.model.subscription_auth";
|
|
2
|
+
export declare const SUPPORTED_INTERNAL_USER_FEATURE_KEYS: readonly ["internal.model.subscription_auth"];
|
|
3
|
+
export type InternalUserFeatureKey = typeof SUPPORTED_INTERNAL_USER_FEATURE_KEYS[number];
|
|
4
|
+
export declare function isSupportedInternalUserFeatureKey(value: unknown): value is InternalUserFeatureKey;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export const INTERNAL_SUBSCRIPTION_MODEL_FEATURE_KEY = 'internal.model.subscription_auth';
|
|
2
|
+
export const SUPPORTED_INTERNAL_USER_FEATURE_KEYS = [
|
|
3
|
+
INTERNAL_SUBSCRIPTION_MODEL_FEATURE_KEY,
|
|
4
|
+
];
|
|
5
|
+
export function isSupportedInternalUserFeatureKey(value) {
|
|
6
|
+
return SUPPORTED_INTERNAL_USER_FEATURE_KEYS.includes(value);
|
|
7
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { DatabaseAdapter } from './databaseAdapter.js';
|
|
2
|
+
export interface ExecutorPhaseAApprovalReceiptRecord {
|
|
3
|
+
receiptId: string;
|
|
4
|
+
workspaceId: string;
|
|
5
|
+
taskId: string;
|
|
6
|
+
taskReference: string;
|
|
7
|
+
runId: string;
|
|
8
|
+
receiptKind: 'main' | 'cleanup-only';
|
|
9
|
+
originalCapabilityId: string | null;
|
|
10
|
+
residualInventorySha256: string | null;
|
|
11
|
+
actorUserId: string;
|
|
12
|
+
preflightSha256: string;
|
|
13
|
+
logicalEnvelopeSha256: string;
|
|
14
|
+
canonicalPreflightBytes: Buffer;
|
|
15
|
+
canonicalReceiptBytes: Buffer;
|
|
16
|
+
receiptSha256: string;
|
|
17
|
+
keyId: string;
|
|
18
|
+
approvedAt: string;
|
|
19
|
+
expiresAt: string;
|
|
20
|
+
createdAt: string;
|
|
21
|
+
}
|
|
22
|
+
export declare class ExecutorPhaseAApprovalConflictError extends Error {
|
|
23
|
+
readonly code = "executor_phase_a_approval_conflict";
|
|
24
|
+
readonly statusCode = 409;
|
|
25
|
+
constructor();
|
|
26
|
+
}
|
|
27
|
+
export declare class ExecutorPhaseAApprovalReceiptStore {
|
|
28
|
+
private readonly db;
|
|
29
|
+
private readonly tenantId;
|
|
30
|
+
constructor(db: DatabaseAdapter, tenantId: string);
|
|
31
|
+
findRun(workspaceId: string, taskId: string, runId: string, receiptKind?: ExecutorPhaseAApprovalReceiptRecord['receiptKind']): ExecutorPhaseAApprovalReceiptRecord | null;
|
|
32
|
+
persist(candidate: ExecutorPhaseAApprovalReceiptRecord): {
|
|
33
|
+
record: ExecutorPhaseAApprovalReceiptRecord;
|
|
34
|
+
created: boolean;
|
|
35
|
+
};
|
|
36
|
+
private resolveRetry;
|
|
37
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
export class ExecutorPhaseAApprovalConflictError extends Error {
|
|
2
|
+
code = 'executor_phase_a_approval_conflict';
|
|
3
|
+
statusCode = 409;
|
|
4
|
+
constructor() {
|
|
5
|
+
super('A different approval already exists for this Phase A run.');
|
|
6
|
+
this.name = 'ExecutorPhaseAApprovalConflictError';
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
function fromRow(row) {
|
|
10
|
+
return {
|
|
11
|
+
receiptId: String(row.receipt_id),
|
|
12
|
+
workspaceId: String(row.workspace_id),
|
|
13
|
+
taskId: String(row.task_id),
|
|
14
|
+
taskReference: String(row.task_reference),
|
|
15
|
+
runId: String(row.run_id),
|
|
16
|
+
receiptKind: String(row.receipt_kind),
|
|
17
|
+
originalCapabilityId: row.original_capability_id == null ? null : String(row.original_capability_id),
|
|
18
|
+
residualInventorySha256: row.residual_inventory_sha256 == null ? null : String(row.residual_inventory_sha256),
|
|
19
|
+
actorUserId: String(row.actor_user_id),
|
|
20
|
+
preflightSha256: String(row.preflight_sha256),
|
|
21
|
+
logicalEnvelopeSha256: String(row.logical_envelope_sha256),
|
|
22
|
+
canonicalPreflightBytes: Buffer.from(row.canonical_preflight_bytes),
|
|
23
|
+
canonicalReceiptBytes: Buffer.from(row.canonical_receipt_bytes),
|
|
24
|
+
receiptSha256: String(row.receipt_sha256),
|
|
25
|
+
keyId: String(row.key_id),
|
|
26
|
+
approvedAt: String(row.approved_at),
|
|
27
|
+
expiresAt: String(row.expires_at),
|
|
28
|
+
createdAt: String(row.created_at),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export class ExecutorPhaseAApprovalReceiptStore {
|
|
32
|
+
db;
|
|
33
|
+
tenantId;
|
|
34
|
+
constructor(db, tenantId) {
|
|
35
|
+
this.db = db;
|
|
36
|
+
this.tenantId = tenantId;
|
|
37
|
+
}
|
|
38
|
+
findRun(workspaceId, taskId, runId, receiptKind = 'main') {
|
|
39
|
+
const row = this.db.prepare(`
|
|
40
|
+
SELECT * FROM executor_phase_a_approval_receipts
|
|
41
|
+
WHERE tenant_id = ? AND workspace_id = ? AND task_id = ? AND run_id = ? AND receipt_kind = ?
|
|
42
|
+
LIMIT 1
|
|
43
|
+
`).get(this.tenantId, workspaceId, taskId, runId, receiptKind);
|
|
44
|
+
return row ? fromRow(row) : null;
|
|
45
|
+
}
|
|
46
|
+
persist(candidate) {
|
|
47
|
+
const persist = this.db.transaction(() => {
|
|
48
|
+
const result = this.db.prepare(`
|
|
49
|
+
INSERT INTO executor_phase_a_approval_receipts (
|
|
50
|
+
receipt_id, tenant_id, workspace_id, task_id, task_reference, run_id,
|
|
51
|
+
receipt_kind, original_capability_id, residual_inventory_sha256,
|
|
52
|
+
actor_user_id, preflight_sha256, logical_envelope_sha256,
|
|
53
|
+
canonical_preflight_bytes, canonical_receipt_bytes, receipt_sha256,
|
|
54
|
+
key_id, approved_at, expires_at, created_at
|
|
55
|
+
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
56
|
+
ON CONFLICT (tenant_id, workspace_id, task_id, run_id, receipt_kind) DO NOTHING
|
|
57
|
+
`).run(candidate.receiptId, this.tenantId, candidate.workspaceId, candidate.taskId, candidate.taskReference, candidate.runId, candidate.receiptKind, candidate.originalCapabilityId, candidate.residualInventorySha256, candidate.actorUserId, candidate.preflightSha256, candidate.logicalEnvelopeSha256, candidate.canonicalPreflightBytes, candidate.canonicalReceiptBytes, candidate.receiptSha256, candidate.keyId, candidate.approvedAt, candidate.expiresAt, candidate.createdAt);
|
|
58
|
+
const winner = this.findRun(candidate.workspaceId, candidate.taskId, candidate.runId, candidate.receiptKind);
|
|
59
|
+
if (!winner)
|
|
60
|
+
throw new Error('Phase A approval receipt insert completed without a durable winner.');
|
|
61
|
+
const created = Number(result?.changes ?? result?.rowCount ?? 0) > 0;
|
|
62
|
+
if (!created)
|
|
63
|
+
return this.resolveRetry(winner, candidate);
|
|
64
|
+
return { record: winner, created: true };
|
|
65
|
+
});
|
|
66
|
+
return persist();
|
|
67
|
+
}
|
|
68
|
+
resolveRetry(existing, candidate) {
|
|
69
|
+
if (existing.actorUserId !== candidate.actorUserId
|
|
70
|
+
|| existing.receiptKind !== candidate.receiptKind
|
|
71
|
+
|| existing.originalCapabilityId !== candidate.originalCapabilityId
|
|
72
|
+
|| existing.residualInventorySha256 !== candidate.residualInventorySha256
|
|
73
|
+
|| existing.taskReference !== candidate.taskReference
|
|
74
|
+
|| existing.preflightSha256 !== candidate.preflightSha256
|
|
75
|
+
|| existing.logicalEnvelopeSha256 !== candidate.logicalEnvelopeSha256
|
|
76
|
+
|| !existing.canonicalPreflightBytes.equals(candidate.canonicalPreflightBytes)) {
|
|
77
|
+
throw new ExecutorPhaseAApprovalConflictError();
|
|
78
|
+
}
|
|
79
|
+
return { record: existing, created: false };
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { type ExecutorPhaseAPhase } from '../shared/executorPhaseAApprovalReceipt.js';
|
|
2
|
+
import { type ExecutorPhaseARunAuthorizationStatus, type ExecutorPhaseARunCapabilityKind, type VerifiedExecutorPhaseARunCapability, type VerifiedExecutorPhaseAWorkloadGrantBundle } from '../shared/executorPhaseARunAuthorization.js';
|
|
3
|
+
import type { DatabaseAdapter } from './databaseAdapter.js';
|
|
4
|
+
export interface ExecutorPhaseARunCapabilityRecord {
|
|
5
|
+
capabilityId: string;
|
|
6
|
+
workspaceId: string;
|
|
7
|
+
taskId: string;
|
|
8
|
+
runId: string;
|
|
9
|
+
receiptId: string;
|
|
10
|
+
receiptSha256: string;
|
|
11
|
+
capabilityKind: ExecutorPhaseARunCapabilityKind;
|
|
12
|
+
originalCapabilityId: string | null;
|
|
13
|
+
residualInventorySha256: string | null;
|
|
14
|
+
actorUserId: string;
|
|
15
|
+
accountId: string;
|
|
16
|
+
region: 'us-west-2';
|
|
17
|
+
availabilityZone: string;
|
|
18
|
+
readPrincipalArn: string;
|
|
19
|
+
brokerKeyFingerprint: string;
|
|
20
|
+
capabilitySha256: string;
|
|
21
|
+
preflightSha256: string;
|
|
22
|
+
logicalEnvelopeSha256: string;
|
|
23
|
+
sourceCommit: string;
|
|
24
|
+
roleMapSha256: string;
|
|
25
|
+
oidcAudienceSha256: string;
|
|
26
|
+
issuedAt: string;
|
|
27
|
+
expiresAt: string;
|
|
28
|
+
mutationDeadline: string;
|
|
29
|
+
cleanupDeadline: string;
|
|
30
|
+
status: ExecutorPhaseARunAuthorizationStatus;
|
|
31
|
+
hardStoppedAt: string | null;
|
|
32
|
+
createdAt: string;
|
|
33
|
+
updatedAt: string;
|
|
34
|
+
}
|
|
35
|
+
export interface ExecutorPhaseAWorkloadGrantRecord {
|
|
36
|
+
grantId: string;
|
|
37
|
+
capabilityId: string;
|
|
38
|
+
workspaceId: string;
|
|
39
|
+
taskId: string;
|
|
40
|
+
runId: string;
|
|
41
|
+
receiptId: string;
|
|
42
|
+
phase: ExecutorPhaseAPhase;
|
|
43
|
+
roleArn: string;
|
|
44
|
+
grantSha256: string;
|
|
45
|
+
tokenId: string;
|
|
46
|
+
nonceId: string;
|
|
47
|
+
senderProofSha256: string;
|
|
48
|
+
brokerKeyFingerprint: string;
|
|
49
|
+
sourceIdentity: string;
|
|
50
|
+
sessionTagsSha256: string;
|
|
51
|
+
policySha256: string;
|
|
52
|
+
issuedAt: string;
|
|
53
|
+
expiresAt: string;
|
|
54
|
+
usedAt: string | null;
|
|
55
|
+
status: 'issued' | 'used' | 'revoked' | 'rejected' | 'expired';
|
|
56
|
+
createdAt: string;
|
|
57
|
+
updatedAt: string;
|
|
58
|
+
}
|
|
59
|
+
export interface ExecutorPhaseASenderNonceRecord {
|
|
60
|
+
nonceId: string;
|
|
61
|
+
capabilityId: string;
|
|
62
|
+
requestSha256: string;
|
|
63
|
+
phase: ExecutorPhaseAPhase;
|
|
64
|
+
issuedAt: string;
|
|
65
|
+
expiresAt: string;
|
|
66
|
+
consumedAt: string | null;
|
|
67
|
+
status: 'issued' | 'consumed' | 'revoked' | 'expired';
|
|
68
|
+
createdAt: string;
|
|
69
|
+
updatedAt: string;
|
|
70
|
+
}
|
|
71
|
+
declare const verifiedCapabilityRecordBrand: unique symbol;
|
|
72
|
+
declare const verifiedGrantRecordBrand: unique symbol;
|
|
73
|
+
export type VerifiedExecutorPhaseARunCapabilityRecord = ExecutorPhaseARunCapabilityRecord & {
|
|
74
|
+
readonly [verifiedCapabilityRecordBrand]: true;
|
|
75
|
+
};
|
|
76
|
+
export type VerifiedExecutorPhaseAWorkloadGrantRecord = ExecutorPhaseAWorkloadGrantRecord & {
|
|
77
|
+
readonly [verifiedGrantRecordBrand]: true;
|
|
78
|
+
};
|
|
79
|
+
export interface ExecutorPhaseAGrantRedemptionResult {
|
|
80
|
+
bytes: Buffer;
|
|
81
|
+
digest: string;
|
|
82
|
+
created: boolean;
|
|
83
|
+
status: 'used';
|
|
84
|
+
}
|
|
85
|
+
export declare function executorPhaseACapabilityRecordFromVerified(artifact: VerifiedExecutorPhaseARunCapability): VerifiedExecutorPhaseARunCapabilityRecord;
|
|
86
|
+
export declare function executorPhaseAGrantRecordFromVerified(bundle: VerifiedExecutorPhaseAWorkloadGrantBundle, tokenId: string): VerifiedExecutorPhaseAWorkloadGrantRecord;
|
|
87
|
+
export declare class ExecutorPhaseARunAuthorizationError extends Error {
|
|
88
|
+
readonly code = "executor_phase_a_run_authorization_invalid";
|
|
89
|
+
constructor(message: string);
|
|
90
|
+
}
|
|
91
|
+
export declare class ExecutorPhaseARunAuthorizationStore {
|
|
92
|
+
private readonly db;
|
|
93
|
+
private readonly tenantId;
|
|
94
|
+
constructor(db: DatabaseAdapter, tenantId: string);
|
|
95
|
+
findCapability(capabilityId: string): ExecutorPhaseARunCapabilityRecord | null;
|
|
96
|
+
persistCapability(candidate: VerifiedExecutorPhaseARunCapabilityRecord): ExecutorPhaseARunCapabilityRecord;
|
|
97
|
+
hardStop(capabilityId: string, stoppedAt: string): ExecutorPhaseARunCapabilityRecord;
|
|
98
|
+
issueNonce(candidate: ExecutorPhaseASenderNonceRecord): ExecutorPhaseASenderNonceRecord;
|
|
99
|
+
persistGrant(candidate: VerifiedExecutorPhaseAWorkloadGrantRecord, now: string): ExecutorPhaseAWorkloadGrantRecord;
|
|
100
|
+
redeemVerifiedGrant(bundle: VerifiedExecutorPhaseAWorkloadGrantBundle, requestId: string, requestSha256: string, canonicalResponseBytes: Buffer, responseSha256: string, usedAt: string): ExecutorPhaseAGrantRedemptionResult;
|
|
101
|
+
private assertCapability;
|
|
102
|
+
}
|
|
103
|
+
export {};
|