@taskforcehq/taskforce 0.3.328 → 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 +523 -79
- package/dist/TaskforceCore.js +237 -230
- package/dist/annotatedAttachments/AnnotatedAttachmentSessionStore.js +1 -1
- package/dist/cli.js +34 -0
- package/dist/cliCloudTargetGuard.d.ts +5 -0
- package/dist/cliCloudTargetGuard.js +11 -0
- package/dist/components/features/AiProfilesModule.js +3 -5
- package/dist/components/features/AnnotatedAttachmentWorkspace.js +24 -8
- package/dist/components/features/TaskSettings.d.ts +12 -1
- package/dist/components/features/TaskSettings.js +217 -54
- package/dist/components/features/TaskforceAgentsModule.d.ts +1 -2
- package/dist/components/features/TaskforceAgentsModule.js +586 -116
- package/dist/components/features/agentCapabilities/AgentCapabilitiesPrototype.d.ts +1 -1
- 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/planning/PlanningModule.js +2 -5
- package/dist/components/features/planning/PlanningTaskOrderList.d.ts +1 -1
- package/dist/components/features/planning/PlanningTaskOrderList.js +17 -6
- package/dist/components/features/planning/planningTaskArrangement.d.ts +1 -0
- package/dist/components/features/planning/planningTaskArrangement.js +5 -5
- package/dist/components/features/taskforceAgentAssignments/AgentBehaviorAssignments.js +15 -24
- package/dist/components/features/taskforceAgentEditorModel.d.ts +2 -1
- package/dist/components/features/taskforceAgentEditorModel.js +5 -1
- package/dist/components/features/workflowManager/workflowManagerApi.d.ts +1 -1
- package/dist/components/features/workflowManager/workflowManagerApi.js +3 -0
- package/dist/components/task/TaskCard.d.ts +5 -0
- package/dist/components/task/TaskCard.js +65 -10
- package/dist/components/task/TaskImageReviews.js +14 -5
- package/dist/components/task/TaskKanban.d.ts +6 -1
- package/dist/components/task/TaskKanban.js +152 -6
- package/dist/components/task/TaskList.d.ts +5 -0
- package/dist/components/task/TaskList.js +3 -3
- package/dist/components/task/TaskWorkflowAssignmentField.js +68 -10
- package/dist/components/ui/PasswordInput.d.ts +6 -0
- package/dist/components/ui/PasswordInput.js +11 -0
- package/dist/components/ui/TopNoticeLayer.js +1 -1
- package/dist/components/views/AppShellHeader.js +32 -11
- package/dist/components/views/PlanComparisonPage.js +12 -0
- package/dist/components/views/StandaloneLayout.js +32 -55
- package/dist/components/views/WidgetView.js +3 -3
- package/dist/components/views/panels/PlanningDrawer.js +5 -12
- package/dist/components/views/standalone/modals/AccountSettingsModal.js +26 -17
- 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 +60 -1
- package/dist/config/localServiceRuntimeContract.d.ts +13 -0
- package/dist/config/localServiceRuntimeContract.js +135 -0
- package/dist/core/AiProfileService.js +46 -8
- package/dist/core/DeletedTaskLifecycleService.d.ts +1 -0
- package/dist/core/DeletedTaskLifecycleService.js +37 -6
- package/dist/core/McpTokenService.d.ts +23 -1
- package/dist/core/McpTokenService.js +93 -10
- package/dist/core/TaskAttachmentLinksDurableMutationService.d.ts +3 -2
- package/dist/core/TaskAttachmentLinksDurableMutationService.js +33 -9
- 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 +94 -2
- package/dist/core/Taskforce.js +760 -36
- package/dist/core/types.d.ts +14 -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/useDurableLocalOutboxDrain.d.ts +1 -1
- package/dist/hooks/sync/useDurableTaskCreateMutation.js +1 -1
- package/dist/hooks/sync/useDurableTaskMetadataMutation.d.ts +1 -0
- package/dist/hooks/sync/useDurableTaskMetadataMutation.js +1 -0
- package/dist/hooks/sync/useDurableTaskStatusMutation.d.ts +1 -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/tasks/taskHttpMutation.js +1 -0
- package/dist/hooks/tasks/useCloudTaskSearch.d.ts +12 -0
- package/dist/hooks/tasks/useCloudTaskSearch.js +71 -0
- package/dist/hooks/tasks/useTaskDescriptionImageDraftRecovery.d.ts +16 -0
- package/dist/hooks/tasks/useTaskDescriptionImageDraftRecovery.js +197 -0
- package/dist/hooks/tasks/useTaskEditorNavigation.d.ts +16 -3
- package/dist/hooks/tasks/useTaskEditorNavigation.js +72 -13
- package/dist/hooks/tasks/useTaskFormActions.d.ts +6 -0
- package/dist/hooks/tasks/useTaskFormActions.js +65 -12
- package/dist/hooks/ui/useSettingsModel.d.ts +24 -2
- package/dist/hooks/ui/useSettingsModel.js +13 -2
- package/dist/hooks/ui/useSettingsPersistence.d.ts +12 -1
- package/dist/hooks/ui/useSettingsPersistence.js +74 -47
- package/dist/hooks/useFilterSort.d.ts +7 -3
- package/dist/hooks/useFilterSort.js +15 -5
- package/dist/hooks/useSyncOrchestrator.d.ts +3 -0
- package/dist/hooks/useSyncOrchestrator.js +111 -2
- package/dist/hooks/useTaskData.d.ts +40 -1
- package/dist/hooks/useTaskData.js +240 -9
- package/dist/hooks/useTaskMutations.d.ts +12 -2
- package/dist/hooks/useTaskMutations.js +266 -52
- package/dist/hooks/useTaskforce.d.ts +39 -9
- package/dist/hooks/useTaskforce.js +359 -40
- package/dist/hooks/useUiNotice.d.ts +4 -0
- package/dist/hooks/useUiNotice.js +4 -0
- package/dist/mcp/adminWorkspaceRegistrar.js +3 -3
- package/dist/mcp/clientRegistry.d.ts +2 -2
- package/dist/mcp/clientRegistry.js +1 -1
- package/dist/mcp/documentAssetRegistrar.js +53 -41
- package/dist/mcp/documentHelpers.d.ts +1 -0
- package/dist/mcp/documentHelpers.js +7 -3
- 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 +556 -139
- package/dist/mcp/taskPlanningRegistrar.js +64 -42
- package/dist/mcp/toolCallCompatibility.js +38 -1
- package/dist/mcp/toolCatalog.d.ts +1 -0
- 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 +427 -0
- package/dist/runtime/appGateDefinitions.d.ts +30 -6
- package/dist/runtime/appGateDefinitions.js +6 -6
- package/dist/runtime/appGates.d.ts +13 -13
- package/dist/runtime/appGates.js +36 -13
- package/dist/runtime/nodeAppGates.d.ts +8 -0
- package/dist/runtime/nodeAppGates.js +27 -0
- package/dist/server/cloudCollectionRead.d.ts +1 -1
- package/dist/server/cloudCollectionRead.js +2 -2
- package/dist/server/index.d.ts +6 -0
- package/dist/server/index.js +123 -14
- package/dist/server/localDatabaseIdentity.js +4 -1
- package/dist/server/localServiceLease.d.ts +3 -0
- package/dist/server/localServiceLease.js +11 -2
- package/dist/server/localServiceSessions.d.ts +14 -17
- package/dist/server/localServiceSessions.js +308 -94
- package/dist/server/localWorkspaceSyncServerRuntime.js +12 -7
- package/dist/server/rateLimit.d.ts +1 -0
- package/dist/server/rateLimit.js +4 -0
- package/dist/server/realtimeSyncWs.js +36 -12
- package/dist/server/routes/admin.d.ts +4 -0
- package/dist/server/routes/admin.js +113 -3
- package/dist/server/routes/agentRoles.js +3 -2
- package/dist/server/routes/agentSkills.js +3 -2
- package/dist/server/routes/agents.d.ts +7 -0
- package/dist/server/routes/agents.js +394 -39
- package/dist/server/routes/annotatedAttachments.js +3 -2
- package/dist/server/routes/auth.js +3 -1
- package/dist/server/routes/billing.js +5 -1
- package/dist/server/routes/durableTaskHttpRouters.d.ts +11 -2
- 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 +138 -40
- package/dist/server/routes/modelConnections.d.ts +24 -0
- package/dist/server/routes/modelConnections.js +205 -0
- package/dist/server/routes/primitives.d.ts +2 -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 +9 -2
- package/dist/server/routes/syncPullApplyRoutes.js +23 -4
- package/dist/server/routes/syncPushRoutes.d.ts +1 -0
- package/dist/server/routes/syncPushRoutes.js +1 -0
- package/dist/server/routes/syncV3FeedRoutes.js +27 -16
- package/dist/server/routes/syncV3LocalCaptureRoutes.js +28 -2
- package/dist/server/routes/syncV3LocalFeedApplyRoutes.d.ts +1 -0
- package/dist/server/routes/syncV3LocalFeedApplyRoutes.js +26 -0
- package/dist/server/routes/syncV3OperationRoutes.js +45 -9
- package/dist/server/routes/tasks.js +124 -13
- package/dist/server/routes/workflows.js +9 -1
- package/dist/server/routes/workspaces.js +43 -1
- package/dist/server/routes.js +59 -0
- package/dist/server/workspaceDeletionAdmission.d.ts +23 -0
- package/dist/server/workspaceDeletionAdmission.js +50 -0
- package/dist/service/localServiceCli.js +16 -0
- package/dist/service/localServiceClientLifecycle.js +36 -10
- package/dist/services/codexAppServerModelGateway.d.ts +161 -0
- package/dist/services/codexAppServerModelGateway.js +663 -0
- 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 +8 -2
- package/dist/services/taskforceAgentMcpBridge.js +30 -27
- 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 -3
- package/dist/shared/taskforceAgentModels.d.ts +1 -0
- package/dist/shared/taskforceAgentModels.js +36 -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 +24 -3
- package/dist/storage/postgresAdapter.js +117 -14
- package/dist/storage/postgresWorker.js +22 -5
- package/dist/storage/postgresWorkerProtocol.d.ts +30 -0
- package/dist/storage/postgresWorkerProtocol.js +30 -0
- package/dist/storage/taskforceAgentConnectionBindingStore.d.ts +31 -0
- package/dist/storage/taskforceAgentConnectionBindingStore.js +84 -0
- package/dist/sync/cloudSyncApi.d.ts +4 -1
- package/dist/sync/cloudSyncApi.js +7 -2
- package/dist/sync/contentSyncState.d.ts +1 -1
- package/dist/sync/coordinator/localSyncExecutionPermitStore.d.ts +1 -0
- package/dist/sync/coordinator/localSyncExecutionPermitStore.js +67 -30
- package/dist/sync/coordinator/localWorkspaceSyncPendingV2PushProgress.d.ts +10 -0
- package/dist/sync/coordinator/localWorkspaceSyncPendingV2PushProgress.js +29 -0
- package/dist/sync/coordinator/localWorkspaceSyncRunner.js +6 -2
- 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/workspaceSyncEngineBrowserGatewayRemoteServices.js +20 -2
- package/dist/sync/engine/workspaceSyncEngineLifecyclePolicy.js +6 -6
- package/dist/sync/engine/workspaceSyncEngineLocalServices.d.ts +4 -0
- package/dist/sync/engine/workspaceSyncEngineLocalServices.js +11 -0
- 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/workspaceSyncEngineRemoteServices.d.ts +11 -0
- package/dist/sync/engine/workspaceSyncEngineRemoteServices.js +2 -1
- package/dist/sync/engine/workspaceSyncEngineRuntime.d.ts +1 -0
- package/dist/sync/engine/workspaceSyncEngineRuntime.js +1 -0
- package/dist/sync/engine/workspaceSyncEngineServerRemoteServices.js +31 -4
- package/dist/sync/engine/workspaceSyncEngineServerRunnerOperations.d.ts +3 -1
- package/dist/sync/engine/workspaceSyncEngineServerRunnerOperations.js +134 -43
- package/dist/sync/engine/workspaceSyncEngineServerSnapshotReader.js +6 -0
- package/dist/sync/engine/workspaceSyncEngineTransfers.d.ts +1 -1
- package/dist/sync/engine/workspaceSyncEngineTransfers.js +11 -4
- 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 +17 -0
- package/dist/sync/syncService.js +87 -19
- package/dist/sync/taskforceAgentSyncAuthorization.d.ts +16 -0
- package/dist/sync/taskforceAgentSyncAuthorization.js +20 -0
- package/dist/sync/v3/combinedFeedCapability.js +8 -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.d.ts +2 -0
- package/dist/sync/v3/durableTaskAttachmentLinksMutationRouter.js +14 -1
- package/dist/sync/v3/durableTaskChecklistMutationRouter.d.ts +4 -1
- package/dist/sync/v3/durableTaskChecklistMutationRouter.js +62 -15
- package/dist/sync/v3/durableTaskCommentMutationRouter.js +3 -0
- package/dist/sync/v3/durableTaskHttpBulkMutationRouter.d.ts +1 -0
- package/dist/sync/v3/durableTaskHttpBulkMutationRouter.js +30 -8
- package/dist/sync/v3/durableTaskHttpRootMutationRouter.d.ts +5 -3
- package/dist/sync/v3/durableTaskHttpRootMutationRouter.js +37 -2
- 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/localTaskAttachmentLinksOutboxService.d.ts +2 -0
- package/dist/sync/v3/localTaskAttachmentLinksOutboxService.js +47 -7
- 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/localTaskCreateOutboxService.js +15 -6
- package/dist/sync/v3/localTaskMetadataClient.d.ts +1 -0
- package/dist/sync/v3/localTaskMetadataClient.js +1 -0
- package/dist/sync/v3/localTaskMetadataOutboxHandler.js +5 -1
- package/dist/sync/v3/localTaskMetadataOutboxService.d.ts +2 -0
- package/dist/sync/v3/localTaskMetadataOutboxService.js +7 -0
- package/dist/sync/v3/localTaskRestoreOutboxService.js +14 -6
- package/dist/sync/v3/localTaskStatusClient.d.ts +1 -0
- package/dist/sync/v3/localTaskStatusClient.js +6 -1
- package/dist/sync/v3/localTaskStatusOutboxService.d.ts +10 -0
- package/dist/sync/v3/localTaskStatusOutboxService.js +272 -24
- package/dist/sync/v3/syncDurabilityStore.d.ts +41 -0
- package/dist/sync/v3/syncDurabilityStore.js +199 -13
- package/dist/sync/v3/taskAttachmentLinksMutationService.d.ts +6 -4
- package/dist/sync/v3/taskAttachmentLinksMutationService.js +19 -10
- package/dist/sync/v3/taskChecklistMutationService.d.ts +15 -2
- package/dist/sync/v3/taskChecklistMutationService.js +48 -1
- package/dist/sync/v3/taskCreateMutationService.d.ts +2 -2
- package/dist/sync/v3/taskCreateMutationService.js +7 -4
- package/dist/sync/v3/taskMetadataMutationService.d.ts +3 -0
- package/dist/sync/v3/taskMetadataMutationService.js +4 -0
- package/dist/sync/v3/taskRestoreMutationService.d.ts +2 -2
- package/dist/sync/v3/taskRestoreMutationService.js +7 -4
- package/dist/sync/v3/taskStatusMutationService.d.ts +31 -1
- package/dist/sync/v3/taskStatusMutationService.js +123 -3
- package/dist/sync/v3/workflowAssignmentSync.d.ts +6 -0
- package/dist/sync/v3/workflowAssignmentSync.js +30 -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/workspaceSyncV2ProjectionExclusions.d.ts +1 -1
- package/dist/sync/v3/workspaceSyncV2ProjectionExclusions.js +13 -3
- package/dist/sync/v3/workspaceSyncV3AttachmentApplyObligationStore.d.ts +11 -0
- package/dist/sync/v3/workspaceSyncV3AttachmentApplyObligationStore.js +27 -10
- package/dist/sync/v3/workspaceSyncV3AttachmentAssetHydration.d.ts +2 -1
- package/dist/sync/v3/workspaceSyncV3AttachmentAssetHydration.js +52 -10
- package/dist/sync/v3/workspaceSyncV3CloudOperationHandler.d.ts +1 -0
- package/dist/sync/v3/workspaceSyncV3CloudOperationHandler.js +18 -3
- package/dist/sync/v3/workspaceSyncV3CombinedFeedOrchestrator.js +8 -3
- package/dist/sync/v3/workspaceSyncV3CombinedLocalApply.js +51 -10
- package/dist/sync/v3/workspaceSyncV3CombinedRepairBaseline.d.ts +14 -0
- package/dist/sync/v3/workspaceSyncV3CombinedRepairBaseline.js +49 -25
- package/dist/sync/v3/workspaceSyncV3CombinedRepairMaterialization.d.ts +13 -4
- package/dist/sync/v3/workspaceSyncV3CombinedRepairMaterialization.js +124 -57
- package/dist/sync/v3/workspaceSyncV3CombinedRepairSnapshot.d.ts +20 -0
- package/dist/sync/v3/workspaceSyncV3CombinedRepairSnapshot.js +106 -30
- package/dist/sync/v3/workspaceSyncV3CombinedWireContract.d.ts +4 -1
- package/dist/sync/v3/workspaceSyncV3CombinedWireContract.js +34 -0
- package/dist/sync/v3/workspaceSyncV3CoverageRegistry.js +12 -0
- package/dist/sync/v3/workspaceSyncV3FeedProfile.d.ts +1 -1
- package/dist/sync/v3/workspaceSyncV3LegacyBoundaryAttestation.d.ts +1 -0
- package/dist/sync/v3/workspaceSyncV3LegacyBoundaryAttestation.js +23 -10
- package/dist/sync/v3/workspaceSyncV3NestedTaskApply.d.ts +3 -0
- package/dist/sync/v3/workspaceSyncV3NestedTaskApply.js +64 -13
- package/dist/sync/v3/workspaceSyncV3NestedTaskCodecs.d.ts +9 -0
- package/dist/sync/v3/workspaceSyncV3NestedTaskCodecs.js +26 -0
- package/dist/sync/v3/workspaceSyncV3NestedTaskProjection.d.ts +15 -5
- package/dist/sync/v3/workspaceSyncV3NestedTaskProjection.js +50 -14
- package/dist/sync/v3/workspaceSyncV3NestedTaskRepairSnapshot.d.ts +2 -1
- package/dist/sync/v3/workspaceSyncV3NestedTaskRepairSnapshot.js +11 -3
- package/dist/sync/v3/workspaceSyncV3OperationProtocol.d.ts +5 -0
- package/dist/sync/v3/workspaceSyncV3OperatorDiagnostics.d.ts +7 -0
- package/dist/sync/v3/workspaceSyncV3OperatorDiagnostics.js +55 -9
- package/dist/sync/v3/workspaceSyncV3RepairSnapshotRetentionService.d.ts +17 -0
- package/dist/sync/v3/workspaceSyncV3RepairSnapshotRetentionService.js +64 -0
- package/dist/sync/v3/workspaceSyncV3TaskCommentAudit.js +9 -2
- package/dist/sync/v3/workspaceSyncV3TaskCoverCoverage.d.ts +7 -0
- package/dist/sync/v3/workspaceSyncV3TaskCoverCoverage.js +37 -0
- package/dist/sync/v3/workspaceSyncV3TaskCoverWireContract.d.ts +6 -0
- package/dist/sync/v3/workspaceSyncV3TaskCoverWireContract.js +9 -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/workspacePullFeed.js +2 -1
- package/dist/sync/workspaceRepair.d.ts +8 -2
- package/dist/sync/workspaceRepair.js +222 -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/types.d.ts +47 -1
- package/dist/types.js +6 -0
- package/dist/ui/assets/AiIdentityRosterCard-OcSz1PkK.js +1 -0
- package/dist/ui/assets/AiProfilesModule-ByhYW5Xi.js +1 -0
- package/dist/ui/assets/AnnotatedAttachmentWorkspace-BTM6nIg_.js +3 -0
- package/dist/ui/assets/AnnotatedAttachmentWorkspace-TzYu7pkG.css +1 -0
- package/dist/ui/assets/{AssetTraySortControl-Kf1pelSy.js → AssetTraySortControl-DabEG8L4.js} +1 -1
- package/dist/ui/assets/{ContextAttachmentManager-B8boOs6Q.js → ContextAttachmentManager-Coa8yVGM.js} +2 -2
- package/dist/ui/assets/{DocumentWorkspace-DXH4XUsB.js → DocumentWorkspace-BB0qhdix.js} +1 -1
- package/dist/ui/assets/{EntityActivityTimeline-BtSTq0ON.js → EntityActivityTimeline-CZ8x4UJE.js} +1 -1
- package/dist/ui/assets/PlanningModule-pRPjR7v5.js +1 -0
- package/dist/ui/assets/PlansPage-D86pZSSl.js +1 -0
- package/dist/ui/assets/TaskContextUpload-BVIkU9yT.js +1 -0
- 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-DWFspC-o.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-BkFLXavV.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/taskActivity.d.ts +3 -2
- package/dist/utils/taskActivity.js +19 -2
- package/dist/utils/taskEditorReconciliation.d.ts +40 -0
- package/dist/utils/taskEditorReconciliation.js +217 -0
- package/dist/utils/taskEvents.d.ts +2 -0
- package/dist/utils/taskNormalization.d.ts +1 -0
- package/dist/utils/taskNormalization.js +39 -0
- package/dist/utils/taskSearch.js +2 -2
- package/dist/utils/uiNotice.d.ts +4 -0
- package/dist/utils/workspaceSyncPresentation.d.ts +1 -1
- package/dist/utils/workspaceSyncPresentation.js +23 -17
- package/package.json +36 -6
- package/dist/ui/assets/AiIdentityRosterCard-MZs7lVED.js +0 -1
- package/dist/ui/assets/AiProfilesModule-C3i0LOxe.js +0 -1
- package/dist/ui/assets/AnnotatedAttachmentWorkspace-CBRZ8rca.css +0 -1
- package/dist/ui/assets/AnnotatedAttachmentWorkspace-DVZk5Tln.js +0 -3
- package/dist/ui/assets/PlanningModule-BPVyEa-f.js +0 -1
- package/dist/ui/assets/PlansPage-ChqgxALc.js +0 -1
- package/dist/ui/assets/TaskContextUpload-CB3ol0sN.js +0 -1
- package/dist/ui/assets/TaskSettings-g4ECKNOz.js +0 -12
- package/dist/ui/assets/TaskforceAgentsModule-BazdUwxZ.js +0 -21
- package/dist/ui/assets/TaskforceAgentsModule-D6IC0S7Q.css +0 -1
- package/dist/ui/assets/index-BUplSsv_.js +0 -7
- package/dist/ui/assets/index-gz2EXuoK.css +0 -1
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://taskforcehq.ai/schemas/executor-phase-a-preflight-report-v3.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"schema", "runId", "requestSha256", "collectedAt", "expiresAt", "status", "failures", "approvalContext",
|
|
8
|
+
"authorities", "target", "source", "baseAmi", "quotas", "budgets", "pricing", "immutableInputs",
|
|
9
|
+
"secretNameScan", "logicalEnvelopeSha256", "logicalEnvelope"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"schema": { "const": "taskforce.executor-phase-a-preflight-report/v3" },
|
|
13
|
+
"runId": { "type": "string", "pattern": "^phase-a-[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
|
|
14
|
+
"requestSha256": { "$ref": "#/$defs/sha256" },
|
|
15
|
+
"collectedAt": { "$ref": "#/$defs/timestamp" },
|
|
16
|
+
"expiresAt": { "$ref": "#/$defs/timestamp" },
|
|
17
|
+
"status": { "enum": ["pass", "fail"] },
|
|
18
|
+
"failures": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"uniqueItems": true,
|
|
21
|
+
"items": {
|
|
22
|
+
"type": "object", "additionalProperties": false, "required": ["code", "message"],
|
|
23
|
+
"properties": {
|
|
24
|
+
"code": { "type": "string", "pattern": "^[A-Z][A-Z0-9_]{2,80}$" },
|
|
25
|
+
"message": { "type": "string", "minLength": 1, "maxLength": 500 }
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"approvalContext": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"additionalProperties": false,
|
|
32
|
+
"required": ["environment", "workspaceId", "taskId", "taskReference"],
|
|
33
|
+
"properties": {
|
|
34
|
+
"environment": { "const": "performance" },
|
|
35
|
+
"workspaceId": { "const": "workspace-019c771a-b6d7-7bc8-b837-c1133f3ba7a2" },
|
|
36
|
+
"taskId": { "const": "task-62fecb296bbe07ca535b6e6630fc458f" },
|
|
37
|
+
"taskReference": { "const": "T-1653" }
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"authorities": { "$ref": "#/$defs/authorities" },
|
|
41
|
+
"target": {
|
|
42
|
+
"type": "object", "additionalProperties": false,
|
|
43
|
+
"required": ["accountId", "readPrincipalArn", "mutationRoles", "oidcIssuer", "oidcAudience", "brokerPublicKeySpkiBase64", "brokerKeyFingerprint", "region", "availabilityZone", "availableZones", "instanceOfferingAvailable", "instanceType"],
|
|
44
|
+
"properties": {
|
|
45
|
+
"accountId": { "type": "string", "pattern": "^[0-9]{12}$" },
|
|
46
|
+
"readPrincipalArn": { "$ref": "#/$defs/principalArn" },
|
|
47
|
+
"mutationRoles": { "$ref": "#/$defs/roleMap" },
|
|
48
|
+
"oidcIssuer": { "$ref": "#/$defs/httpsIssuer" },
|
|
49
|
+
"oidcAudience": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]{2,100}$" },
|
|
50
|
+
"brokerPublicKeySpkiBase64": { "type": "string", "pattern": "^MCowBQYDK2VwAyEA[A-Za-z0-9+/]{43}=$" },
|
|
51
|
+
"brokerKeyFingerprint": { "$ref": "#/$defs/sha256" },
|
|
52
|
+
"region": { "type": "string", "pattern": "^[a-z]{2}-[a-z]+-[0-9]$" },
|
|
53
|
+
"availabilityZone": { "type": "string", "pattern": "^[a-z]{2}-[a-z]+-[0-9][a-z]$" },
|
|
54
|
+
"availableZones": { "type": "array", "uniqueItems": true, "items": { "type": "string", "pattern": "^[a-z]{2}-[a-z]+-[0-9][a-z]$" } },
|
|
55
|
+
"instanceOfferingAvailable": { "type": "boolean" },
|
|
56
|
+
"instanceType": {
|
|
57
|
+
"type": "object", "additionalProperties": false,
|
|
58
|
+
"required": ["name", "supportedArchitectures", "currentGeneration", "burstable"],
|
|
59
|
+
"properties": {
|
|
60
|
+
"name": { "type": "string", "pattern": "^[a-z0-9]+[.][a-z0-9]+$" },
|
|
61
|
+
"supportedArchitectures": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "enum": ["x86_64", "arm64", "i386"] } },
|
|
62
|
+
"currentGeneration": { "type": "boolean" },
|
|
63
|
+
"burstable": { "type": "boolean" }
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"source": {
|
|
69
|
+
"type": "object", "additionalProperties": false,
|
|
70
|
+
"required": ["commit", "baselineCommit", "clean"],
|
|
71
|
+
"properties": {
|
|
72
|
+
"commit": { "$ref": "#/$defs/gitSha" },
|
|
73
|
+
"baselineCommit": { "$ref": "#/$defs/gitSha" },
|
|
74
|
+
"clean": { "type": "boolean" }
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"baseAmi": {
|
|
78
|
+
"type": "object", "additionalProperties": false,
|
|
79
|
+
"required": ["id", "ownerId", "architecture", "rootDeviceName", "state"],
|
|
80
|
+
"properties": {
|
|
81
|
+
"id": { "type": "string", "pattern": "^ami-[a-f0-9]{8,17}$" },
|
|
82
|
+
"ownerId": { "type": "string", "pattern": "^[0-9]{12}$" },
|
|
83
|
+
"architecture": { "enum": ["x86_64", "arm64", "i386"] },
|
|
84
|
+
"rootDeviceName": { "type": "string", "minLength": 1, "maxLength": 64 },
|
|
85
|
+
"state": { "type": "string", "minLength": 1, "maxLength": 32 }
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"quotas": {
|
|
89
|
+
"type": "array", "minItems": 1, "uniqueItems": true,
|
|
90
|
+
"items": {
|
|
91
|
+
"type": "object", "additionalProperties": false,
|
|
92
|
+
"required": ["serviceCode", "quotaCode", "required", "observed", "collectedAt"],
|
|
93
|
+
"properties": {
|
|
94
|
+
"serviceCode": { "type": "string", "pattern": "^[a-z0-9-]{2,40}$" },
|
|
95
|
+
"quotaCode": { "type": "string", "pattern": "^L-[A-Z0-9]{8,16}$" },
|
|
96
|
+
"required": { "type": "integer", "minimum": 1 },
|
|
97
|
+
"observed": { "type": "integer", "minimum": 0 },
|
|
98
|
+
"collectedAt": { "$ref": "#/$defs/timestamp" }
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"budgets": {
|
|
103
|
+
"type": "object", "additionalProperties": false,
|
|
104
|
+
"required": ["temporaryUsdMicros", "alarmUsdMicros", "foundationMonthlyCeilingUsdMicros"],
|
|
105
|
+
"properties": {
|
|
106
|
+
"temporaryUsdMicros": { "type": "integer", "minimum": 1 },
|
|
107
|
+
"alarmUsdMicros": { "type": "integer", "minimum": 1 },
|
|
108
|
+
"foundationMonthlyCeilingUsdMicros": { "type": "integer", "minimum": 1 }
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"pricing": {
|
|
112
|
+
"type": "object", "additionalProperties": false,
|
|
113
|
+
"required": ["currency", "contingencyBasisPoints", "items", "foundationSubtotalUsdMicros", "foundationWithContingencyUsdMicros", "temporarySubtotalUsdMicros", "tenHostMonthlyInstanceUsdMicros"],
|
|
114
|
+
"properties": {
|
|
115
|
+
"currency": { "const": "USD" },
|
|
116
|
+
"contingencyBasisPoints": { "const": 1000 },
|
|
117
|
+
"items": {
|
|
118
|
+
"type": "array", "minItems": 1, "uniqueItems": true,
|
|
119
|
+
"items": {
|
|
120
|
+
"type": "object", "additionalProperties": false,
|
|
121
|
+
"required": ["id", "unit", "unitPriceUsdMicros", "quantityMicros", "classification", "collectedAt", "source"],
|
|
122
|
+
"properties": {
|
|
123
|
+
"id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]{2,80}$" },
|
|
124
|
+
"unit": { "type": "string", "minLength": 1, "maxLength": 40 },
|
|
125
|
+
"unitPriceUsdMicros": { "type": "integer", "minimum": 0, "maximum": 1000000000000 },
|
|
126
|
+
"quantityMicros": { "type": "integer", "minimum": 0, "maximum": 1000000000000000 },
|
|
127
|
+
"classification": { "enum": ["foundation", "temporary"] },
|
|
128
|
+
"collectedAt": { "$ref": "#/$defs/timestamp" },
|
|
129
|
+
"source": { "const": "aws-price-list" }
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"foundationSubtotalUsdMicros": { "type": "integer", "minimum": 0 },
|
|
134
|
+
"foundationWithContingencyUsdMicros": { "type": "integer", "minimum": 0 },
|
|
135
|
+
"temporarySubtotalUsdMicros": { "type": "integer", "minimum": 0 },
|
|
136
|
+
"tenHostMonthlyInstanceUsdMicros": { "type": "integer", "minimum": 0 }
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"immutableInputs": {
|
|
140
|
+
"type": "array", "minItems": 1, "uniqueItems": true,
|
|
141
|
+
"items": {
|
|
142
|
+
"type": "object", "additionalProperties": false, "required": ["path", "expectedSha256", "observedSha256"],
|
|
143
|
+
"properties": {
|
|
144
|
+
"path": { "type": "string", "minLength": 1, "maxLength": 240 },
|
|
145
|
+
"expectedSha256": { "$ref": "#/$defs/sha256" },
|
|
146
|
+
"observedSha256": { "$ref": "#/$defs/sha256" }
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"secretNameScan": {
|
|
151
|
+
"type": "object", "additionalProperties": false, "required": ["scannedNameCount", "forbiddenNames"],
|
|
152
|
+
"properties": {
|
|
153
|
+
"scannedNameCount": { "type": "integer", "minimum": 0 },
|
|
154
|
+
"forbiddenNames": { "type": "array", "uniqueItems": true, "items": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$" } }
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"logicalEnvelopeSha256": { "$ref": "#/$defs/sha256" },
|
|
158
|
+
"logicalEnvelope": { "$ref": "https://taskforcehq.ai/schemas/executor-phase-a-logical-envelope-v1.json" }
|
|
159
|
+
},
|
|
160
|
+
"$defs": {
|
|
161
|
+
"timestamp": { "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]{1,3})?Z$" },
|
|
162
|
+
"sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
163
|
+
"gitSha": { "type": "string", "pattern": "^[a-f0-9]{40}$" },
|
|
164
|
+
"principalArn": { "type": "string", "pattern": "^arn:aws:iam::[0-9]{12}:(?:user|role)/[A-Za-z0-9+=,.@_/-]{1,512}$|^arn:aws:sts::[0-9]{12}:assumed-role/[A-Za-z0-9+=,.@_/-]{1,512}$" },
|
|
165
|
+
"roleArn": { "type": "string", "pattern": "^arn:aws:iam::[0-9]{12}:role/[A-Za-z0-9+=,.@_/-]{1,512}$" },
|
|
166
|
+
"httpsIssuer": { "type": "string", "pattern": "^https://[A-Za-z0-9.-]+(?::[0-9]+)?(?:/[A-Za-z0-9._~!$&'()*+,;=:@%-]+)*$", "maxLength": 240 },
|
|
167
|
+
"roleMap": {
|
|
168
|
+
"type": "object", "additionalProperties": false,
|
|
169
|
+
"required": ["bootstrap", "ami-build", "provenance", "runtime", "cleanup"],
|
|
170
|
+
"properties": {
|
|
171
|
+
"bootstrap": { "$ref": "#/$defs/roleArn" }, "ami-build": { "$ref": "#/$defs/roleArn" },
|
|
172
|
+
"provenance": { "$ref": "#/$defs/roleArn" }, "runtime": { "$ref": "#/$defs/roleArn" },
|
|
173
|
+
"cleanup": { "$ref": "#/$defs/roleArn" }
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"authority": {
|
|
177
|
+
"type": "object", "additionalProperties": false, "required": ["document", "version", "sha256"],
|
|
178
|
+
"properties": {
|
|
179
|
+
"document": { "type": "string", "pattern": "^D-[1-9][0-9]*$" },
|
|
180
|
+
"version": { "type": "integer", "minimum": 1 },
|
|
181
|
+
"sha256": { "$ref": "#/$defs/sha256" }
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"authorities": {
|
|
185
|
+
"type": "object", "additionalProperties": false, "required": ["architecture", "plan", "manifest"],
|
|
186
|
+
"properties": {
|
|
187
|
+
"architecture": {
|
|
188
|
+
"allOf": [
|
|
189
|
+
{ "$ref": "#/$defs/authority" },
|
|
190
|
+
{ "type": "object", "properties": {
|
|
191
|
+
"document": { "const": "D-691" }, "version": { "const": 8 },
|
|
192
|
+
"sha256": { "const": "e04470a1762bb57495116c5d75528dcef0fc88f4a2202d7d669dd4d1642ff66d" }
|
|
193
|
+
} }
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
"plan": {
|
|
197
|
+
"allOf": [
|
|
198
|
+
{ "$ref": "#/$defs/authority" },
|
|
199
|
+
{ "type": "object", "properties": {
|
|
200
|
+
"document": { "const": "D-706" }, "version": { "const": 9 },
|
|
201
|
+
"sha256": { "const": "741adda34df66abfd8c3a7e4cd8eeff01e67dc79631acd747926fcbc338ff6d4" }
|
|
202
|
+
} }
|
|
203
|
+
]
|
|
204
|
+
},
|
|
205
|
+
"manifest": {
|
|
206
|
+
"type": "object", "additionalProperties": false, "required": ["assetId", "version", "sha256"],
|
|
207
|
+
"properties": {
|
|
208
|
+
"assetId": { "const": "asset-de22a50d6a612b0c9169616ce17c9cf9" },
|
|
209
|
+
"version": { "const": 7 },
|
|
210
|
+
"sha256": { "const": "1743a2cb183c8f0b2af480f6bba8a78b3bb71dd172653af6ed2870b5ba92d60b" }
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://taskforcehq.ai/schemas/executor-phase-a-run-capability-v1.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["payload", "envelope"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"payload": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"additionalProperties": false,
|
|
11
|
+
"required": [
|
|
12
|
+
"schema", "capabilityId", "capabilityKind", "originalCapabilityId", "residualInventorySha256",
|
|
13
|
+
"receiptId", "receiptSha256",
|
|
14
|
+
"workspaceId", "taskId", "actorUserId", "runId", "accountId", "region", "availabilityZone",
|
|
15
|
+
"sourceCommit", "preflightSha256", "logicalEnvelopeSha256", "budgetsSha256", "readPrincipalArn",
|
|
16
|
+
"mutationRoles", "roleMapSha256", "oidcIssuer", "oidcAudience", "brokerPublicKeySpkiBase64",
|
|
17
|
+
"brokerKeyFingerprint", "allowedPhases", "issuedAt", "expiresAt", "mutationDeadline", "cleanupDeadline"
|
|
18
|
+
],
|
|
19
|
+
"properties": {
|
|
20
|
+
"schema": { "const": "taskforce.executor-phase-a-run-capability-payload/v1" },
|
|
21
|
+
"capabilityId": { "$ref": "#/$defs/capabilityId" },
|
|
22
|
+
"capabilityKind": { "enum": ["main", "cleanup-only"] },
|
|
23
|
+
"originalCapabilityId": { "oneOf": [{ "$ref": "#/$defs/capabilityId" }, { "type": "null" }] },
|
|
24
|
+
"residualInventorySha256": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/sha256" }] },
|
|
25
|
+
"receiptId": { "$ref": "#/$defs/receiptId" },
|
|
26
|
+
"receiptSha256": { "$ref": "#/$defs/sha256" },
|
|
27
|
+
"workspaceId": { "type": "string", "pattern": "^workspace-[A-Za-z0-9_-]{8,128}$" },
|
|
28
|
+
"taskId": { "type": "string", "pattern": "^task-[A-Za-z0-9_-]{8,128}$" },
|
|
29
|
+
"actorUserId": { "type": "string", "pattern": "^user-[A-Za-z0-9][A-Za-z0-9_-]{7,127}$" },
|
|
30
|
+
"runId": { "$ref": "#/$defs/runId" },
|
|
31
|
+
"accountId": { "type": "string", "pattern": "^[0-9]{12}$" },
|
|
32
|
+
"region": { "const": "us-west-2" },
|
|
33
|
+
"availabilityZone": { "type": "string", "pattern": "^us-west-2[a-z]$" },
|
|
34
|
+
"sourceCommit": { "type": "string", "pattern": "^[a-f0-9]{40}$" },
|
|
35
|
+
"preflightSha256": { "$ref": "#/$defs/sha256" },
|
|
36
|
+
"logicalEnvelopeSha256": { "$ref": "#/$defs/sha256" },
|
|
37
|
+
"budgetsSha256": { "$ref": "#/$defs/sha256" },
|
|
38
|
+
"readPrincipalArn": { "$ref": "#/$defs/principalArn" },
|
|
39
|
+
"mutationRoles": { "$ref": "#/$defs/roleMap" },
|
|
40
|
+
"roleMapSha256": { "$ref": "#/$defs/sha256" },
|
|
41
|
+
"oidcIssuer": { "$ref": "#/$defs/httpsIssuer" },
|
|
42
|
+
"oidcAudience": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]{2,100}$" },
|
|
43
|
+
"brokerPublicKeySpkiBase64": { "type": "string", "pattern": "^MCowBQYDK2VwAyEA[A-Za-z0-9+/]{43}=$" },
|
|
44
|
+
"brokerKeyFingerprint": { "$ref": "#/$defs/sha256" },
|
|
45
|
+
"allowedPhases": {
|
|
46
|
+
"type": "array", "minItems": 1, "uniqueItems": true,
|
|
47
|
+
"items": { "enum": ["bootstrap", "ami-build", "provenance", "runtime", "cleanup"] }
|
|
48
|
+
},
|
|
49
|
+
"issuedAt": { "$ref": "#/$defs/timestamp" },
|
|
50
|
+
"expiresAt": { "$ref": "#/$defs/timestamp" },
|
|
51
|
+
"mutationDeadline": { "$ref": "#/$defs/timestamp" },
|
|
52
|
+
"cleanupDeadline": { "$ref": "#/$defs/timestamp" }
|
|
53
|
+
},
|
|
54
|
+
"allOf": [
|
|
55
|
+
{
|
|
56
|
+
"if": { "properties": { "capabilityKind": { "const": "main" } } },
|
|
57
|
+
"then": {
|
|
58
|
+
"properties": {
|
|
59
|
+
"originalCapabilityId": { "type": "null" },
|
|
60
|
+
"residualInventorySha256": { "type": "null" },
|
|
61
|
+
"allowedPhases": {
|
|
62
|
+
"type": "array", "minItems": 5, "maxItems": 5, "uniqueItems": true,
|
|
63
|
+
"items": { "enum": ["bootstrap", "ami-build", "provenance", "runtime", "cleanup"] }
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"if": { "properties": { "capabilityKind": { "const": "cleanup-only" } } },
|
|
70
|
+
"then": {
|
|
71
|
+
"properties": {
|
|
72
|
+
"originalCapabilityId": { "$ref": "#/$defs/capabilityId" },
|
|
73
|
+
"residualInventorySha256": { "$ref": "#/$defs/sha256" },
|
|
74
|
+
"allowedPhases": { "const": ["cleanup"] }
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"envelope": { "$ref": "#/$defs/signatureEnvelope" }
|
|
81
|
+
},
|
|
82
|
+
"$defs": {
|
|
83
|
+
"timestamp": { "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]{1,3})?Z$" },
|
|
84
|
+
"sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
85
|
+
"runId": { "type": "string", "pattern": "^phase-a-[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
|
|
86
|
+
"receiptId": { "type": "string", "pattern": "^(?:approval-receipt|taskforce-approval)-[A-Za-z0-9][A-Za-z0-9_-]{7,127}$" },
|
|
87
|
+
"capabilityId": { "type": "string", "pattern": "^run-capability-[A-Za-z0-9][A-Za-z0-9_-]{7,127}$" },
|
|
88
|
+
"principalArn": { "type": "string", "pattern": "^arn:aws:iam::[0-9]{12}:(?:user|role)/[A-Za-z0-9+=,.@_/-]{1,512}$|^arn:aws:sts::[0-9]{12}:assumed-role/[A-Za-z0-9+=,.@_/-]{1,512}$" },
|
|
89
|
+
"roleArn": { "type": "string", "pattern": "^arn:aws:iam::[0-9]{12}:role/[A-Za-z0-9+=,.@_/-]{1,512}$" },
|
|
90
|
+
"httpsIssuer": { "type": "string", "pattern": "^https://[A-Za-z0-9.-]+(?::[0-9]+)?(?:/[A-Za-z0-9._~!$&'()*+,;=:@%-]+)*$", "maxLength": 240 },
|
|
91
|
+
"roleMap": {
|
|
92
|
+
"type": "object", "additionalProperties": false,
|
|
93
|
+
"required": ["bootstrap", "ami-build", "provenance", "runtime", "cleanup"],
|
|
94
|
+
"properties": {
|
|
95
|
+
"bootstrap": { "$ref": "#/$defs/roleArn" }, "ami-build": { "$ref": "#/$defs/roleArn" },
|
|
96
|
+
"provenance": { "$ref": "#/$defs/roleArn" }, "runtime": { "$ref": "#/$defs/roleArn" },
|
|
97
|
+
"cleanup": { "$ref": "#/$defs/roleArn" }
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"signatureEnvelope": {
|
|
101
|
+
"type": "object", "additionalProperties": false,
|
|
102
|
+
"required": ["algorithm", "keyId", "payloadSha256", "signature"],
|
|
103
|
+
"properties": {
|
|
104
|
+
"algorithm": { "const": "Ed25519" },
|
|
105
|
+
"keyId": { "type": "string", "pattern": "^[A-Za-z0-9_-]{1,64}$" },
|
|
106
|
+
"payloadSha256": { "$ref": "#/$defs/sha256" },
|
|
107
|
+
"signature": { "type": "string", "pattern": "^[A-Za-z0-9_-]{86}$" }
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://taskforcehq.ai/schemas/executor-phase-a-sender-proof-v1.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["payload", "envelope"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"payload": {
|
|
9
|
+
"type": "object", "additionalProperties": false,
|
|
10
|
+
"required": ["schema", "capabilityId", "nonceId", "requestSha256", "phase", "createdAt", "expiresAt"],
|
|
11
|
+
"properties": {
|
|
12
|
+
"schema": { "const": "taskforce.executor-phase-a-sender-proof-payload/v1" },
|
|
13
|
+
"capabilityId": { "type": "string", "pattern": "^run-capability-[A-Za-z0-9][A-Za-z0-9_-]{7,127}$" },
|
|
14
|
+
"nonceId": { "type": "string", "pattern": "^nonce-[A-Za-z0-9][A-Za-z0-9_-]{7,127}$" },
|
|
15
|
+
"requestSha256": { "$ref": "#/$defs/sha256" },
|
|
16
|
+
"phase": { "enum": ["bootstrap", "ami-build", "provenance", "runtime", "cleanup"] },
|
|
17
|
+
"createdAt": { "$ref": "#/$defs/timestamp" },
|
|
18
|
+
"expiresAt": { "$ref": "#/$defs/timestamp" }
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"envelope": {
|
|
22
|
+
"type": "object", "additionalProperties": false,
|
|
23
|
+
"required": ["algorithm", "keyId", "brokerKeyFingerprint", "payloadSha256", "signature"],
|
|
24
|
+
"properties": {
|
|
25
|
+
"algorithm": { "const": "Ed25519" },
|
|
26
|
+
"keyId": { "const": "broker-key" },
|
|
27
|
+
"brokerKeyFingerprint": { "$ref": "#/$defs/sha256" },
|
|
28
|
+
"payloadSha256": { "$ref": "#/$defs/sha256" },
|
|
29
|
+
"signature": { "type": "string", "pattern": "^[A-Za-z0-9_-]{86}$" }
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"$defs": {
|
|
34
|
+
"timestamp": { "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]{1,3})?Z$" },
|
|
35
|
+
"sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://taskforcehq.ai/schemas/executor-phase-a-workload-grant-v1.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["payload", "envelope"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"payload": {
|
|
9
|
+
"type": "object", "additionalProperties": false,
|
|
10
|
+
"required": [
|
|
11
|
+
"schema", "grantId", "capabilityId", "capabilitySha256", "receiptId", "receiptSha256",
|
|
12
|
+
"workspaceId", "taskId", "actorUserId", "runId", "phase", "roleArn", "accountId", "region",
|
|
13
|
+
"sourceIdentity", "sessionTags", "brokerKeyFingerprint", "nonceId", "senderProofSha256",
|
|
14
|
+
"policySha256", "issuedAt", "expiresAt"
|
|
15
|
+
],
|
|
16
|
+
"properties": {
|
|
17
|
+
"schema": { "const": "taskforce.executor-phase-a-workload-grant-payload/v1" },
|
|
18
|
+
"grantId": { "type": "string", "pattern": "^workload-grant-[A-Za-z0-9][A-Za-z0-9_-]{7,127}$" },
|
|
19
|
+
"capabilityId": { "type": "string", "pattern": "^run-capability-[A-Za-z0-9][A-Za-z0-9_-]{7,127}$" },
|
|
20
|
+
"capabilitySha256": { "$ref": "#/$defs/sha256" },
|
|
21
|
+
"receiptId": { "type": "string", "pattern": "^(?:approval-receipt|taskforce-approval)-[A-Za-z0-9][A-Za-z0-9_-]{7,127}$" },
|
|
22
|
+
"receiptSha256": { "$ref": "#/$defs/sha256" },
|
|
23
|
+
"workspaceId": { "type": "string", "pattern": "^workspace-[A-Za-z0-9_-]{8,128}$" },
|
|
24
|
+
"taskId": { "type": "string", "pattern": "^task-[A-Za-z0-9_-]{8,128}$" },
|
|
25
|
+
"actorUserId": { "type": "string", "pattern": "^user-[A-Za-z0-9][A-Za-z0-9_-]{7,127}$" },
|
|
26
|
+
"runId": { "type": "string", "pattern": "^phase-a-[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
|
|
27
|
+
"phase": { "enum": ["bootstrap", "ami-build", "provenance", "runtime", "cleanup"] },
|
|
28
|
+
"roleArn": { "$ref": "#/$defs/roleArn" },
|
|
29
|
+
"accountId": { "type": "string", "pattern": "^[0-9]{12}$" },
|
|
30
|
+
"region": { "const": "us-west-2" },
|
|
31
|
+
"sourceIdentity": { "type": "string", "pattern": "^tfr\\.[A-Za-z0-9_-]{43}\\.(?:bootstrap|ami-build|provenance|runtime|cleanup)$", "minLength": 55, "maxLength": 58 },
|
|
32
|
+
"sessionTags": {
|
|
33
|
+
"type": "object", "additionalProperties": false,
|
|
34
|
+
"required": ["TaskforceRun", "TaskforceReceipt", "TaskforcePhase", "TaskforceWorkspaceHash", "TaskforceSource"],
|
|
35
|
+
"properties": {
|
|
36
|
+
"TaskforceRun": { "type": "string", "minLength": 1, "maxLength": 128 },
|
|
37
|
+
"TaskforceReceipt": { "type": "string", "minLength": 1, "maxLength": 128 },
|
|
38
|
+
"TaskforcePhase": { "enum": ["bootstrap", "ami-build", "provenance", "runtime", "cleanup"] },
|
|
39
|
+
"TaskforceWorkspaceHash": { "$ref": "#/$defs/sha256" },
|
|
40
|
+
"TaskforceSource": { "type": "string", "pattern": "^[a-f0-9]{40}$" }
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"brokerKeyFingerprint": { "$ref": "#/$defs/sha256" },
|
|
44
|
+
"nonceId": { "type": "string", "pattern": "^nonce-[A-Za-z0-9][A-Za-z0-9_-]{7,127}$" },
|
|
45
|
+
"senderProofSha256": { "$ref": "#/$defs/sha256" },
|
|
46
|
+
"policySha256": { "$ref": "#/$defs/sha256" },
|
|
47
|
+
"issuedAt": { "$ref": "#/$defs/timestamp" },
|
|
48
|
+
"expiresAt": { "$ref": "#/$defs/timestamp" }
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"envelope": { "$ref": "#/$defs/signatureEnvelope" }
|
|
52
|
+
},
|
|
53
|
+
"$defs": {
|
|
54
|
+
"timestamp": { "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]{1,3})?Z$" },
|
|
55
|
+
"sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
56
|
+
"roleArn": { "type": "string", "pattern": "^arn:aws:iam::[0-9]{12}:role/[A-Za-z0-9+=,.@_/-]{1,512}$" },
|
|
57
|
+
"signatureEnvelope": {
|
|
58
|
+
"type": "object", "additionalProperties": false,
|
|
59
|
+
"required": ["algorithm", "keyId", "payloadSha256", "signature"],
|
|
60
|
+
"properties": {
|
|
61
|
+
"algorithm": { "const": "Ed25519" },
|
|
62
|
+
"keyId": { "type": "string", "pattern": "^[A-Za-z0-9_-]{1,64}$" },
|
|
63
|
+
"payloadSha256": { "$ref": "#/$defs/sha256" },
|
|
64
|
+
"signature": { "type": "string", "pattern": "^[A-Za-z0-9_-]{86}$" }
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://taskforcehq.ai/schemas/executor-phase-a-workload-jwt-claims-v1.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["iss", "aud", "sub", "iat", "nbf", "exp", "jti", "https://aws.amazon.com/source_identity", "https://aws.amazon.com/tags", "taskforce"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"iss": { "type": "string", "pattern": "^https://[^/]+$", "maxLength": 256 },
|
|
9
|
+
"aud": { "type": "string", "minLength": 1, "maxLength": 128 },
|
|
10
|
+
"sub": { "type": "string", "pattern": "^tfr:[A-Za-z0-9_-]{43}:(bootstrap|ami-build|provenance|runtime|cleanup)$" },
|
|
11
|
+
"iat": { "type": "integer", "minimum": 0 },
|
|
12
|
+
"nbf": { "type": "integer", "minimum": 0 },
|
|
13
|
+
"exp": { "type": "integer", "minimum": 0 },
|
|
14
|
+
"jti": { "type": "string", "pattern": "^token-[A-Za-z0-9][A-Za-z0-9_-]{7,127}$" },
|
|
15
|
+
"https://aws.amazon.com/source_identity": { "type": "string", "pattern": "^tfr\\.[A-Za-z0-9_-]{43}\\.(bootstrap|ami-build|provenance|runtime|cleanup)$", "maxLength": 64 },
|
|
16
|
+
"https://aws.amazon.com/tags": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"additionalProperties": false,
|
|
19
|
+
"required": ["principal_tags", "transitive_tag_keys"],
|
|
20
|
+
"properties": {
|
|
21
|
+
"principal_tags": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"additionalProperties": false,
|
|
24
|
+
"required": ["TaskforceRun", "TaskforceReceipt", "TaskforcePhase", "TaskforceWorkspaceHash", "TaskforceSource"],
|
|
25
|
+
"properties": {
|
|
26
|
+
"TaskforceRun": { "$ref": "#/$defs/singleTag" },
|
|
27
|
+
"TaskforceReceipt": { "$ref": "#/$defs/singleTag" },
|
|
28
|
+
"TaskforcePhase": { "$ref": "#/$defs/singleTag" },
|
|
29
|
+
"TaskforceWorkspaceHash": { "$ref": "#/$defs/singleTag" },
|
|
30
|
+
"TaskforceSource": { "$ref": "#/$defs/singleTag" }
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"transitive_tag_keys": {
|
|
34
|
+
"const": ["TaskforceRun", "TaskforceReceipt", "TaskforcePhase", "TaskforceWorkspaceHash", "TaskforceSource"]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"taskforce": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"additionalProperties": false,
|
|
41
|
+
"required": ["schema", "receiptId", "receiptSha256", "workspaceId", "taskId", "runId", "sourceCommit", "accountId", "region", "availabilityZone", "logicalEnvelopeSha256", "budgetsSha256", "roleArn", "brokerKeyFingerprint", "grantId", "grantSha256", "senderProofSha256"],
|
|
42
|
+
"properties": {
|
|
43
|
+
"schema": { "const": "taskforce.executor-phase-a-workload-jwt-claims/v1" },
|
|
44
|
+
"receiptId": { "type": "string", "maxLength": 160 },
|
|
45
|
+
"receiptSha256": { "$ref": "#/$defs/sha256" },
|
|
46
|
+
"workspaceId": { "type": "string", "maxLength": 160 },
|
|
47
|
+
"taskId": { "type": "string", "maxLength": 160 },
|
|
48
|
+
"runId": { "type": "string", "maxLength": 72 },
|
|
49
|
+
"sourceCommit": { "type": "string", "pattern": "^[a-f0-9]{40}$" },
|
|
50
|
+
"accountId": { "type": "string", "pattern": "^[0-9]{12}$" },
|
|
51
|
+
"region": { "const": "us-west-2" },
|
|
52
|
+
"availabilityZone": { "type": "string", "pattern": "^us-west-2[a-z]$" },
|
|
53
|
+
"logicalEnvelopeSha256": { "$ref": "#/$defs/sha256" },
|
|
54
|
+
"budgetsSha256": { "$ref": "#/$defs/sha256" },
|
|
55
|
+
"roleArn": { "type": "string", "maxLength": 620 },
|
|
56
|
+
"brokerKeyFingerprint": { "$ref": "#/$defs/sha256" },
|
|
57
|
+
"grantId": { "type": "string", "maxLength": 160 },
|
|
58
|
+
"grantSha256": { "$ref": "#/$defs/sha256" },
|
|
59
|
+
"senderProofSha256": { "$ref": "#/$defs/sha256" }
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"$defs": {
|
|
64
|
+
"sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
65
|
+
"singleTag": { "type": "array", "minItems": 1, "maxItems": 1, "items": { "type": "string", "minLength": 1, "maxLength": 256 } }
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EXECUTOR_PHASE_A_CROSS_SERVICE_CLOCK_SKEW_MS = 5000;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const EXECUTOR_PHASE_A_CROSS_SERVICE_CLOCK_SKEW_MS = 5_000;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const PRODUCT_LOGO_KEYS: readonly ["antigravity", "chatgpt", "claude-chat", "claude-code", "cline", "codex", "cursor", "gemini-chat", "gemini-cli", "grok", "grok-chat", "kiro", "mistral-chat", "perplexity-chat", "vscode", "windsurf"];
|
|
2
|
+
export type ProductLogoKey = typeof PRODUCT_LOGO_KEYS[number];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export const PRODUCT_LOGO_KEYS = [
|
|
2
|
+
'antigravity',
|
|
3
|
+
'chatgpt',
|
|
4
|
+
'claude-chat',
|
|
5
|
+
'claude-code',
|
|
6
|
+
'cline',
|
|
7
|
+
'codex',
|
|
8
|
+
'cursor',
|
|
9
|
+
'gemini-chat',
|
|
10
|
+
'gemini-cli',
|
|
11
|
+
'grok',
|
|
12
|
+
'grok-chat',
|
|
13
|
+
'kiro',
|
|
14
|
+
'mistral-chat',
|
|
15
|
+
'perplexity-chat',
|
|
16
|
+
'vscode',
|
|
17
|
+
'windsurf',
|
|
18
|
+
];
|
|
@@ -281,7 +281,7 @@ export function inspectAgentDefinition(value) {
|
|
|
281
281
|
issue(issues, 'invalid_model_selection', 'model', 'A model selection object is required.');
|
|
282
282
|
}
|
|
283
283
|
else {
|
|
284
|
-
reportUnknownKeys(value.model, ['providerKey', 'modelKey', 'modelSource', 'tier', 'connectionScope'
|
|
284
|
+
reportUnknownKeys(value.model, ['providerKey', 'modelKey', 'modelSource', 'tier', 'connectionScope'], 'model', issues);
|
|
285
285
|
const providerKey = readRequiredString(value.model.providerKey, 'model.providerKey', FIELD_LIMITS.capability, issues);
|
|
286
286
|
const modelKey = readRequiredString(value.model.modelKey, 'model.modelKey', FIELD_LIMITS.capability, issues);
|
|
287
287
|
const catalogModel = getTaskforceAgentModel(modelKey);
|
|
@@ -305,7 +305,11 @@ export function inspectAgentDefinition(value) {
|
|
|
305
305
|
if (value.model.connectionScope !== undefined && !connectionScope) {
|
|
306
306
|
issue(issues, 'invalid_model_connection_scope', 'model.connectionScope', 'Must be taskforce, workspace, personal, or local_dev when provided.');
|
|
307
307
|
}
|
|
308
|
-
|
|
308
|
+
if (modelSource === 'subscription_dev'
|
|
309
|
+
&& connectionScope !== 'personal'
|
|
310
|
+
&& connectionScope !== 'local_dev') {
|
|
311
|
+
issue(issues, 'invalid_subscription_dev_connection_scope', 'model.connectionScope', 'Subscription-dev models require personal or legacy local_dev connection scope.');
|
|
312
|
+
}
|
|
309
313
|
if (catalogModel && catalogModel.providerKey === providerKey && modelSource === catalogModel.source && MODEL_TIERS.has(value.model.tier)) {
|
|
310
314
|
model = {
|
|
311
315
|
providerKey: catalogModel.providerKey,
|
|
@@ -313,7 +317,6 @@ export function inspectAgentDefinition(value) {
|
|
|
313
317
|
modelSource,
|
|
314
318
|
tier: value.model.tier,
|
|
315
319
|
...(connectionScope ? { connectionScope } : {}),
|
|
316
|
-
...(connectionId ? { connectionId } : {}),
|
|
317
320
|
};
|
|
318
321
|
}
|
|
319
322
|
}
|
|
@@ -36,6 +36,7 @@ export declare const DEFAULT_TASKFORCE_AGENT_MODEL_KEY = "anthropic.claude-sonne
|
|
|
36
36
|
export declare const TASKFORCE_AGENT_MODEL_SOURCES: TaskforceAgentModelSource[];
|
|
37
37
|
export declare const TASKFORCE_AGENT_PROVIDER_OPTIONS: TaskforceAgentProviderOption[];
|
|
38
38
|
export declare const TASKFORCE_AGENT_MODEL_OPTIONS: TaskforceAgentModelOption[];
|
|
39
|
+
export declare function isTaskforceAgentSubscriptionDevModelsEnabled(): boolean;
|
|
39
40
|
export declare function isTaskforceAgentModelVisible(model: TaskforceAgentModelOption): boolean;
|
|
40
41
|
export declare function getTaskforceAgentModel(modelKey: unknown): TaskforceAgentModelOption | null;
|
|
41
42
|
export declare function normalizeTaskforceAgentModelSource(value: unknown, fallback?: TaskforceAgentModelSource): TaskforceAgentModelSource;
|