@taskforcehq/taskforce 0.3.329 → 0.3.332

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.
Files changed (363) hide show
  1. package/README.md +7 -2
  2. package/dist/Taskforce.module.css +290 -45
  3. package/dist/components/features/AiProfilesModule.js +3 -5
  4. package/dist/components/features/TaskSettings.js +70 -14
  5. package/dist/components/features/TaskforceAgentsModule.d.ts +1 -2
  6. package/dist/components/features/TaskforceAgentsModule.js +586 -116
  7. package/dist/components/features/agentCapabilities/AgentCapabilitiesPrototype.d.ts +2 -2
  8. package/dist/components/features/agentCapabilities/AgentCapabilitiesPrototype.js +2 -2
  9. package/dist/components/features/agentConnections/AgentConnectionControl.d.ts +15 -0
  10. package/dist/components/features/agentConnections/AgentConnectionControl.js +125 -0
  11. package/dist/components/features/agentConnections/ModelConnectionsPanel.d.ts +18 -0
  12. package/dist/components/features/agentConnections/ModelConnectionsPanel.js +393 -0
  13. package/dist/components/features/agentConnections/modelConnectionsApi.d.ts +65 -0
  14. package/dist/components/features/agentConnections/modelConnectionsApi.js +129 -0
  15. package/dist/components/features/planning/PlanningModule.js +15 -3
  16. package/dist/components/features/planning/planningMetadata.d.ts +10 -0
  17. package/dist/components/features/planning/planningMetadata.js +8 -0
  18. package/dist/components/features/taskforceAgentAssignments/AgentBehaviorAssignments.js +15 -24
  19. package/dist/components/features/taskforceAgentEditorModel.d.ts +2 -1
  20. package/dist/components/features/taskforceAgentEditorModel.js +3 -1
  21. package/dist/components/features/workflowManager/workflowManagerApi.d.ts +1 -1
  22. package/dist/components/features/workflowManager/workflowManagerApi.js +3 -0
  23. package/dist/components/task/TaskWorkflowAssignmentField.js +68 -10
  24. package/dist/components/views/StandaloneLayout.js +62 -27
  25. package/dist/components/views/panels/PlanningDrawer.d.ts +2 -1
  26. package/dist/components/views/panels/PlanningDrawer.js +12 -8
  27. package/dist/components/views/standalone/modals/SyncStatusModal.d.ts +4 -3
  28. package/dist/components/views/standalone/modals/SyncStatusModal.js +33 -38
  29. package/dist/config/envSchema.js +55 -1
  30. package/dist/core/McpTokenService.d.ts +25 -1
  31. package/dist/core/McpTokenService.js +106 -15
  32. package/dist/core/TaskChecklistCommandService.d.ts +27 -0
  33. package/dist/core/TaskChecklistCommandService.js +83 -5
  34. package/dist/core/TaskLifecycleCommandService.d.ts +3 -1
  35. package/dist/core/TaskLifecycleCommandService.js +6 -2
  36. package/dist/core/Taskforce.d.ts +43 -3
  37. package/dist/core/Taskforce.js +158 -7
  38. package/dist/core/types.d.ts +9 -0
  39. package/dist/documentReviews/DocumentReviewCommentStore.d.ts +2 -0
  40. package/dist/documentReviews/DocumentReviewCommentStore.js +28 -9
  41. package/dist/documentReviews/commandService.d.ts +2 -1
  42. package/dist/documentReviews/commandService.js +6 -3
  43. package/dist/hooks/sync/orchestratorShared.d.ts +1 -0
  44. package/dist/hooks/sync/orchestratorShared.js +2 -0
  45. package/dist/hooks/sync/useLocalSyncCoordinatorSnapshot.d.ts +3 -0
  46. package/dist/hooks/sync/useLocalSyncCoordinatorSnapshot.js +85 -9
  47. package/dist/hooks/sync/useSyncStatusControls.d.ts +4 -1
  48. package/dist/hooks/sync/useSyncStatusControls.js +47 -11
  49. package/dist/hooks/useSyncOrchestrator.d.ts +3 -0
  50. package/dist/hooks/useSyncOrchestrator.js +111 -2
  51. package/dist/hooks/useTaskData.d.ts +31 -1
  52. package/dist/hooks/useTaskData.js +29 -7
  53. package/dist/hooks/useTaskMutations.d.ts +3 -1
  54. package/dist/hooks/useTaskMutations.js +46 -12
  55. package/dist/hooks/useTaskforce.d.ts +2 -0
  56. package/dist/hooks/useTaskforce.js +11 -2
  57. package/dist/mcp/clientRegistry.d.ts +2 -2
  58. package/dist/mcp/clientRegistry.js +1 -1
  59. package/dist/mcp/documentAssetRegistrar.js +9 -6
  60. package/dist/mcp/durableTaskMutationRouter.d.ts +4 -1
  61. package/dist/mcp/durableTaskMutationRouter.js +10 -0
  62. package/dist/mcp/durableTaskRelationshipMutationRouter.js +4 -0
  63. package/dist/mcp/httpProtocolRouting.d.ts +11 -0
  64. package/dist/mcp/httpProtocolRouting.js +22 -0
  65. package/dist/mcp/localCliHealth.d.ts +2 -2
  66. package/dist/mcp/localCliHealth.js +2 -2
  67. package/dist/mcp/localServiceProxy.d.ts +1 -0
  68. package/dist/mcp/localServiceProxy.js +530 -68
  69. package/dist/mcp/planningAttachmentCommandAdapter.d.ts +3 -1
  70. package/dist/mcp/planningAttachmentCommandAdapter.js +20 -2
  71. package/dist/mcp/runtime.d.ts +54 -79
  72. package/dist/mcp/runtime.js +408 -102
  73. package/dist/mcp/taskPlanningRegistrar.js +25 -6
  74. package/dist/mcp/toolProfiles.d.ts +2 -0
  75. package/dist/mcp/toolProfiles.js +11 -0
  76. package/dist/mcp/toolRegistry.d.ts +1 -0
  77. package/dist/mcp/toolRegistry.js +9 -8
  78. package/dist/mcp/workflowExecutionRegistrar.js +4 -4
  79. package/dist/migrations/taskSchemaMigrations.d.ts +5 -0
  80. package/dist/migrations/taskSchemaMigrations.js +415 -0
  81. package/dist/runtime/appGates.d.ts +2 -1
  82. package/dist/runtime/appGates.js +7 -0
  83. package/dist/server/buildInfo.d.ts +1 -0
  84. package/dist/server/buildInfo.js +5 -1
  85. package/dist/server/cloudMcpCapacityTelemetry.d.ts +68 -0
  86. package/dist/server/cloudMcpCapacityTelemetry.js +221 -0
  87. package/dist/server/index.d.ts +3 -0
  88. package/dist/server/index.js +108 -11
  89. package/dist/server/localDatabaseIdentity.js +4 -1
  90. package/dist/server/localServiceLease.js +2 -1
  91. package/dist/server/localServiceSessions.d.ts +14 -17
  92. package/dist/server/localServiceSessions.js +308 -94
  93. package/dist/server/localWorkspaceSyncServerRuntime.js +25 -19
  94. package/dist/server/routes/admin.d.ts +4 -0
  95. package/dist/server/routes/admin.js +126 -5
  96. package/dist/server/routes/agents.d.ts +7 -0
  97. package/dist/server/routes/agents.js +277 -24
  98. package/dist/server/routes/billing.js +5 -1
  99. package/dist/server/routes/durableTaskHttpRouters.d.ts +2 -0
  100. package/dist/server/routes/executorPhaseAApprovals.d.ts +19 -0
  101. package/dist/server/routes/executorPhaseAApprovals.js +140 -0
  102. package/dist/server/routes/executorPhaseAIssuerRedemptions.d.ts +11 -0
  103. package/dist/server/routes/executorPhaseAIssuerRedemptions.js +24 -0
  104. package/dist/server/routes/githubReviewEvidence.d.ts +19 -0
  105. package/dist/server/routes/githubReviewEvidence.js +116 -0
  106. package/dist/server/routes/localService.d.ts +15 -4
  107. package/dist/server/routes/localService.js +136 -40
  108. package/dist/server/routes/modelConnections.d.ts +24 -0
  109. package/dist/server/routes/modelConnections.js +205 -0
  110. package/dist/server/routes/shared.d.ts +22 -0
  111. package/dist/server/routes/shared.js +298 -182
  112. package/dist/server/routes/sync.js +1 -0
  113. package/dist/server/routes/syncAuxRoutes.js +5 -1
  114. package/dist/server/routes/syncPushRoutes.d.ts +1 -0
  115. package/dist/server/routes/syncPushRoutes.js +1 -0
  116. package/dist/server/routes/syncV3FeedRoutes.js +10 -1
  117. package/dist/server/routes/syncV3OperationRoutes.js +35 -9
  118. package/dist/server/routes/tasks.js +21 -2
  119. package/dist/server/routes/workflows.js +9 -1
  120. package/dist/server/routes.js +59 -0
  121. package/dist/service/localServiceCli.d.ts +2 -2
  122. package/dist/service/localServiceCli.js +4 -3
  123. package/dist/services/codexAppServerModelGateway.d.ts +54 -5
  124. package/dist/services/codexAppServerModelGateway.js +246 -21
  125. package/dist/services/codexDeviceCodeLoginManager.d.ts +39 -0
  126. package/dist/services/codexDeviceCodeLoginManager.js +265 -0
  127. package/dist/services/codexModelProviderConnectionLifecycle.d.ts +8 -0
  128. package/dist/services/codexModelProviderConnectionLifecycle.js +73 -0
  129. package/dist/services/executorPhaseAApprovalRuntime.d.ts +14 -0
  130. package/dist/services/executorPhaseAApprovalRuntime.js +24 -0
  131. package/dist/services/executorPhaseAApprovalService.d.ts +40 -0
  132. package/dist/services/executorPhaseAApprovalService.js +609 -0
  133. package/dist/services/executorPhaseADriftEvaluator.d.ts +78 -0
  134. package/dist/services/executorPhaseADriftEvaluator.js +93 -0
  135. package/dist/services/executorPhaseAIssuerCore.d.ts +139 -0
  136. package/dist/services/executorPhaseAIssuerCore.js +402 -0
  137. package/dist/services/executorPhaseAIssuerRedemptionService.d.ts +34 -0
  138. package/dist/services/executorPhaseAIssuerRedemptionService.js +158 -0
  139. package/dist/services/githubReviewEvidenceRuntime.d.ts +14 -0
  140. package/dist/services/githubReviewEvidenceRuntime.js +30 -0
  141. package/dist/services/githubReviewEvidenceService.d.ts +93 -0
  142. package/dist/services/githubReviewEvidenceService.js +336 -0
  143. package/dist/services/modelGateway.d.ts +7 -0
  144. package/dist/services/modelProviderConnectionService.d.ts +71 -0
  145. package/dist/services/modelProviderConnectionService.js +279 -0
  146. package/dist/services/modelProviderCredentialHome.d.ts +32 -0
  147. package/dist/services/modelProviderCredentialHome.js +271 -0
  148. package/dist/services/ownerScopedModelConnectionGateway.d.ts +12 -0
  149. package/dist/services/ownerScopedModelConnectionGateway.js +30 -0
  150. package/dist/services/taskforceAgentConnectionBindingService.d.ts +66 -0
  151. package/dist/services/taskforceAgentConnectionBindingService.js +185 -0
  152. package/dist/services/taskforceAgentMcpBridge.d.ts +2 -2
  153. package/dist/services/taskforceAgentMcpBridge.js +42 -29
  154. package/dist/shared/adminEdgeProxy.d.ts +5 -0
  155. package/dist/shared/adminEdgeProxy.js +94 -0
  156. package/dist/shared/adminProxySessionCookies.d.ts +16 -0
  157. package/dist/shared/adminProxySessionCookies.js +86 -0
  158. package/dist/shared/aiProfileColors.d.ts +31 -1
  159. package/dist/shared/aiProfileColors.js +14 -6
  160. package/dist/shared/executorPhaseAApprovalGoldenVector.json +269 -0
  161. package/dist/shared/executorPhaseAApprovalReceipt.d.ts +112 -0
  162. package/dist/shared/executorPhaseAApprovalReceipt.js +58 -0
  163. package/dist/shared/executorPhaseAApprovalTrustPolicy.json +10 -0
  164. package/dist/shared/executorPhaseADriftContracts.d.ts +37 -0
  165. package/dist/shared/executorPhaseADriftContracts.js +63 -0
  166. package/dist/shared/executorPhaseAIssuerContracts.d.ts +75 -0
  167. package/dist/shared/executorPhaseAIssuerContracts.js +90 -0
  168. package/dist/shared/executorPhaseARunAuthorization.d.ts +120 -0
  169. package/dist/shared/executorPhaseARunAuthorization.js +232 -0
  170. package/dist/shared/executorPhaseASchemaValidation.d.ts +7 -0
  171. package/dist/shared/executorPhaseASchemaValidation.js +53 -0
  172. package/dist/shared/executorPhaseASchemas/approval-receipt.schema.json +106 -0
  173. package/dist/shared/executorPhaseASchemas/drift-attestation.schema.json +54 -0
  174. package/dist/shared/executorPhaseASchemas/drift-request.schema.json +47 -0
  175. package/dist/shared/executorPhaseASchemas/foundation-manifest.schema.json +29 -0
  176. package/dist/shared/executorPhaseASchemas/issuer-audit-record.schema.json +24 -0
  177. package/dist/shared/executorPhaseASchemas/issuer-proof.schema.json +43 -0
  178. package/dist/shared/executorPhaseASchemas/issuer-redemption-request.schema.json +18 -0
  179. package/dist/shared/executorPhaseASchemas/issuer-redemption-response.schema.json +39 -0
  180. package/dist/shared/executorPhaseASchemas/logical-envelope.schema.json +149 -0
  181. package/dist/shared/executorPhaseASchemas/preflight-report.schema.json +216 -0
  182. package/dist/shared/executorPhaseASchemas/run-capability.schema.json +111 -0
  183. package/dist/shared/executorPhaseASchemas/sender-proof.schema.json +37 -0
  184. package/dist/shared/executorPhaseASchemas/workload-grant.schema.json +68 -0
  185. package/dist/shared/executorPhaseASchemas/workload-jwt-claims.schema.json +67 -0
  186. package/dist/shared/executorPhaseATiming.d.ts +1 -0
  187. package/dist/shared/executorPhaseATiming.js +1 -0
  188. package/dist/shared/planningIdentity.js +1 -1
  189. package/dist/shared/productLogoKeys.d.ts +2 -0
  190. package/dist/shared/productLogoKeys.js +18 -0
  191. package/dist/shared/taskforceAgentDefinition.d.ts +0 -1
  192. package/dist/shared/taskforceAgentDefinition.js +6 -9
  193. package/dist/shared/taskforceAgentModels.js +7 -3
  194. package/dist/shared/userFeatureGrants.d.ts +4 -0
  195. package/dist/shared/userFeatureGrants.js +7 -0
  196. package/dist/storage/executorPhaseAApprovalReceiptStore.d.ts +37 -0
  197. package/dist/storage/executorPhaseAApprovalReceiptStore.js +81 -0
  198. package/dist/storage/executorPhaseARunAuthorizationStore.d.ts +103 -0
  199. package/dist/storage/executorPhaseARunAuthorizationStore.js +492 -0
  200. package/dist/storage/githubReviewEvidenceInstallationStore.d.ts +26 -0
  201. package/dist/storage/githubReviewEvidenceInstallationStore.js +89 -0
  202. package/dist/storage/modelProviderConnectionStore.d.ts +99 -0
  203. package/dist/storage/modelProviderConnectionStore.js +446 -0
  204. package/dist/storage/postgresAdapter.d.ts +4 -0
  205. package/dist/storage/postgresAdapter.js +14 -1
  206. package/dist/storage/postgresRequestDiagnostics.d.ts +9 -1
  207. package/dist/storage/postgresRequestDiagnostics.js +15 -2
  208. package/dist/storage/postgresWorker.js +20 -2
  209. package/dist/storage/postgresWorkerProtocol.d.ts +7 -0
  210. package/dist/storage/taskforceAgentConnectionBindingStore.d.ts +31 -0
  211. package/dist/storage/taskforceAgentConnectionBindingStore.js +84 -0
  212. package/dist/storage/workflowStore.d.ts +2 -0
  213. package/dist/storage/workflowStore.js +39 -2
  214. package/dist/sync/cloudSyncApi.js +4 -2
  215. package/dist/sync/collaborationSyncState.js +5 -0
  216. package/dist/sync/coordinator/localSyncExecutionPermitStore.js +60 -29
  217. package/dist/sync/coordinator/localWorkspaceSyncPendingV2PushProgress.d.ts +10 -0
  218. package/dist/sync/coordinator/localWorkspaceSyncPendingV2PushProgress.js +29 -0
  219. package/dist/sync/coordinator/localWorkspaceSyncRunner.d.ts +3 -1
  220. package/dist/sync/coordinator/localWorkspaceSyncRunner.js +18 -0
  221. package/dist/sync/coordinator/localWorkspaceSyncRunnerState.d.ts +15 -1
  222. package/dist/sync/coordinator/localWorkspaceSyncRunnerState.js +99 -2
  223. package/dist/sync/coordinator/workspaceSyncCredentialBroker.d.ts +1 -0
  224. package/dist/sync/coordinator/workspaceSyncCredentialBroker.js +33 -4
  225. package/dist/sync/engine/workspaceSyncContentLifecycleAdapter.d.ts +2 -1
  226. package/dist/sync/engine/workspaceSyncContentVersionStore.d.ts +38 -0
  227. package/dist/sync/engine/workspaceSyncContentVersionStore.js +50 -1
  228. package/dist/sync/engine/workspaceSyncEngineLifecyclePolicy.js +6 -6
  229. package/dist/sync/engine/workspaceSyncEnginePushCompletion.d.ts +14 -0
  230. package/dist/sync/engine/workspaceSyncEnginePushCompletion.js +84 -0
  231. package/dist/sync/engine/workspaceSyncEngineRecovery.js +1 -0
  232. package/dist/sync/engine/workspaceSyncEngineRuntime.d.ts +1 -0
  233. package/dist/sync/engine/workspaceSyncEngineRuntime.js +1 -0
  234. package/dist/sync/engine/workspaceSyncEngineServerRunnerOperations.js +112 -38
  235. package/dist/sync/engine/workspaceSyncEngineServerSnapshotReader.js +6 -0
  236. package/dist/sync/engine/workspaceSyncEngineTransfers.js +3 -1
  237. package/dist/sync/engine/workspaceSyncV2ChangeDispatcher.d.ts +1 -0
  238. package/dist/sync/engine/workspaceSyncV2ChangeDispatcher.js +31 -0
  239. package/dist/sync/syncApplyHandlers.d.ts +3 -0
  240. package/dist/sync/syncApplyHandlers.js +81 -15
  241. package/dist/sync/syncService.d.ts +15 -0
  242. package/dist/sync/syncService.js +83 -18
  243. package/dist/sync/taskforceAgentSyncAuthorization.d.ts +16 -0
  244. package/dist/sync/taskforceAgentSyncAuthorization.js +20 -0
  245. package/dist/sync/v3/combinedFeedCapability.js +4 -0
  246. package/dist/sync/v3/durableInitiativeMutationRouter.js +18 -10
  247. package/dist/sync/v3/durableOperationReplay.d.ts +14 -0
  248. package/dist/sync/v3/durableOperationReplay.js +18 -0
  249. package/dist/sync/v3/durableTaskAttachmentLinksMutationRouter.js +3 -0
  250. package/dist/sync/v3/durableTaskChecklistMutationRouter.d.ts +2 -1
  251. package/dist/sync/v3/durableTaskChecklistMutationRouter.js +58 -15
  252. package/dist/sync/v3/durableTaskCommentMutationRouter.js +3 -0
  253. package/dist/sync/v3/durableTaskHttpRootMutationRouter.d.ts +1 -1
  254. package/dist/sync/v3/durableTaskHttpRootMutationRouter.js +10 -0
  255. package/dist/sync/v3/durableTaxonomyMutationRouter.js +5 -0
  256. package/dist/sync/v3/durableWorkflowRuntimeMutationRouter.d.ts +18 -7
  257. package/dist/sync/v3/durableWorkflowRuntimeMutationRouter.js +89 -23
  258. package/dist/sync/v3/durableWorkstreamMutationRouter.js +18 -10
  259. package/dist/sync/v3/durableWorkstreamTaskOrderMutationRouter.js +16 -5
  260. package/dist/sync/v3/localOutboxDispatchRuntime.js +2 -2
  261. package/dist/sync/v3/localOutboxRecoveryPreparationService.js +8 -2
  262. package/dist/sync/v3/localTaskChecklistOutboxHandler.js +16 -2
  263. package/dist/sync/v3/localTaskChecklistOutboxService.d.ts +4 -0
  264. package/dist/sync/v3/localTaskChecklistOutboxService.js +14 -1
  265. package/dist/sync/v3/localTaskCreateOutboxService.d.ts +3 -1
  266. package/dist/sync/v3/localTaskCreateOutboxService.js +6 -1
  267. package/dist/sync/v3/localTaskDeleteOutboxService.js +1 -0
  268. package/dist/sync/v3/localTaskLifecycleOutboxService.d.ts +2 -1
  269. package/dist/sync/v3/localTaskLifecycleOutboxService.js +5 -1
  270. package/dist/sync/v3/localTaskMetadataOutboxService.d.ts +2 -1
  271. package/dist/sync/v3/localTaskMetadataOutboxService.js +6 -2
  272. package/dist/sync/v3/localTaskStatusOutboxService.d.ts +10 -1
  273. package/dist/sync/v3/localTaskStatusOutboxService.js +238 -16
  274. package/dist/sync/v3/syncDurabilityStore.d.ts +36 -1
  275. package/dist/sync/v3/syncDurabilityStore.js +202 -8
  276. package/dist/sync/v3/taskChecklistMutationService.d.ts +11 -0
  277. package/dist/sync/v3/taskChecklistMutationService.js +44 -1
  278. package/dist/sync/v3/taskStatusMutationService.d.ts +29 -1
  279. package/dist/sync/v3/taskStatusMutationService.js +119 -3
  280. package/dist/sync/v3/workflowAssignmentSync.d.ts +5 -0
  281. package/dist/sync/v3/workflowAssignmentSync.js +27 -0
  282. package/dist/sync/v3/workflowRuntimeMutationService.d.ts +5 -0
  283. package/dist/sync/v3/workflowRuntimeMutationService.js +124 -71
  284. package/dist/sync/v3/workspaceSyncJournalReader.js +1 -1
  285. package/dist/sync/v3/workspaceSyncOperationRetentionService.d.ts +16 -0
  286. package/dist/sync/v3/workspaceSyncOperationRetentionService.js +83 -0
  287. package/dist/sync/v3/workspaceSyncV3CloudOperationHandler.d.ts +1 -0
  288. package/dist/sync/v3/workspaceSyncV3CloudOperationHandler.js +9 -2
  289. package/dist/sync/v3/workspaceSyncV3CombinedLocalApply.js +25 -3
  290. package/dist/sync/v3/workspaceSyncV3CombinedRepairBaseline.d.ts +7 -0
  291. package/dist/sync/v3/workspaceSyncV3CombinedRepairBaseline.js +44 -32
  292. package/dist/sync/v3/workspaceSyncV3CombinedRepairMaterialization.d.ts +9 -5
  293. package/dist/sync/v3/workspaceSyncV3CombinedRepairMaterialization.js +54 -38
  294. package/dist/sync/v3/workspaceSyncV3CombinedRepairSnapshot.d.ts +10 -0
  295. package/dist/sync/v3/workspaceSyncV3CombinedRepairSnapshot.js +70 -31
  296. package/dist/sync/v3/workspaceSyncV3CombinedWireContract.d.ts +2 -1
  297. package/dist/sync/v3/workspaceSyncV3CombinedWireContract.js +16 -0
  298. package/dist/sync/v3/workspaceSyncV3CoverageRegistry.js +6 -0
  299. package/dist/sync/v3/workspaceSyncV3Feed.d.ts +1 -0
  300. package/dist/sync/v3/workspaceSyncV3Feed.js +6 -1
  301. package/dist/sync/v3/workspaceSyncV3NestedTaskProjection.d.ts +2 -0
  302. package/dist/sync/v3/workspaceSyncV3NestedTaskProjection.js +49 -18
  303. package/dist/sync/v3/workspaceSyncV3OperationProtocol.d.ts +3 -0
  304. package/dist/sync/v3/workspaceSyncV3OperatorDiagnostics.d.ts +5 -0
  305. package/dist/sync/v3/workspaceSyncV3OperatorDiagnostics.js +36 -2
  306. package/dist/sync/v3/workspaceSyncV3RepairSnapshotRetentionService.d.ts +17 -0
  307. package/dist/sync/v3/workspaceSyncV3RepairSnapshotRetentionService.js +64 -0
  308. package/dist/sync/v3/workspaceSyncV3WorkflowRuntimeApply.d.ts +1 -0
  309. package/dist/sync/v3/workspaceSyncV3WorkflowRuntimeApply.js +50 -5
  310. package/dist/sync/v3/workspaceSyncV3WorkflowTaskCoverCoverage.d.ts +7 -0
  311. package/dist/sync/v3/workspaceSyncV3WorkflowTaskCoverCoverage.js +33 -0
  312. package/dist/sync/v3/workspaceSyncV3WorkflowTaskCoverWireContract.d.ts +7 -0
  313. package/dist/sync/v3/workspaceSyncV3WorkflowTaskCoverWireContract.js +8 -0
  314. package/dist/sync/workspaceRepair.d.ts +5 -2
  315. package/dist/sync/workspaceRepair.js +161 -6
  316. package/dist/sync/workspaceSyncModel.d.ts +21 -0
  317. package/dist/sync/workspaceSyncModel.js +35 -7
  318. package/dist/sync/workspaceSyncState.d.ts +1 -0
  319. package/dist/sync/workspaceSyncV2SnapshotBuilder.d.ts +6 -0
  320. package/dist/sync/workspaceSyncV2SnapshotBuilder.js +5 -0
  321. package/dist/ui/assets/AiIdentityRosterCard-CDMPtnbC.js +1 -0
  322. package/dist/ui/assets/AiProfilesModule-Cww85C4E.js +1 -0
  323. package/dist/ui/assets/{AnnotatedAttachmentWorkspace-B68Wg-RV.js → AnnotatedAttachmentWorkspace-Dt9TKYSH.js} +1 -1
  324. package/dist/ui/assets/{AssetTraySortControl-C8Rztyal.js → AssetTraySortControl-CKgapnxu.js} +1 -1
  325. package/dist/ui/assets/{ContextAttachmentManager-Cj3c7X9y.js → ContextAttachmentManager-T-cEVcOZ.js} +2 -2
  326. package/dist/ui/assets/{DocumentWorkspace-B5uvzems.js → DocumentWorkspace-HD4MUjAZ.js} +1 -1
  327. package/dist/ui/assets/{EntityActivityTimeline-BVFvCB5R.js → EntityActivityTimeline-_V0zfMuh.js} +1 -1
  328. package/dist/ui/assets/PlanningModule-mTkBygsB.js +1 -0
  329. package/dist/ui/assets/{PlansPage-AY4cGWco.js → PlansPage-Btiq06VO.js} +1 -1
  330. package/dist/ui/assets/{TaskContextUpload-DZxTVesW.js → TaskContextUpload-C00NVUpn.js} +1 -1
  331. package/dist/ui/assets/TaskSettings-Cp-L-4xh.js +12 -0
  332. package/dist/ui/assets/TaskforceAgentsModule-Coq9-PUp.js +24 -0
  333. package/dist/ui/assets/TaskforceAgentsModule-b-8R25cJ.css +1 -0
  334. package/dist/ui/assets/{WorkflowManagerModule-DEr5di_r.js → WorkflowManagerModule-CuqRzMmM.js} +1 -1
  335. package/dist/ui/assets/index-BZ-hdZSk.css +1 -0
  336. package/dist/ui/assets/index-DSQINwt9.js +7 -0
  337. package/dist/ui/assets/{vendor-icons-D9Lpw-j4.js → vendor-icons-Bsq-mcEn.js} +1 -1
  338. package/dist/ui/branding/logos/letterhead_dark.png +0 -0
  339. package/dist/ui/branding/logos/letterhead_light.png +0 -0
  340. package/dist/ui/branding/logos/signature_dark.png +0 -0
  341. package/dist/ui/branding/logos/signature_light.png +0 -0
  342. package/dist/ui/index.html +3 -3
  343. package/dist/utils/aiProfileDefaultLogo.js +16 -48
  344. package/dist/utils/httpSetCookie.d.ts +1 -0
  345. package/dist/utils/httpSetCookie.js +4 -1
  346. package/dist/utils/localRuntimeUrl.d.ts +1 -0
  347. package/dist/utils/localRuntimeUrl.js +14 -0
  348. package/dist/utils/productLogoRegistry.d.ts +2 -0
  349. package/dist/utils/productLogoRegistry.js +36 -0
  350. package/dist/utils/syncStatusPresentation.d.ts +4 -0
  351. package/dist/utils/syncStatusPresentation.js +17 -0
  352. package/dist/utils/taskEvents.d.ts +2 -0
  353. package/dist/utils/workspaceSyncPresentation.d.ts +1 -1
  354. package/dist/utils/workspaceSyncPresentation.js +23 -17
  355. package/package.json +24 -4
  356. package/dist/ui/assets/AiIdentityRosterCard-BZM4aQnM.js +0 -1
  357. package/dist/ui/assets/AiProfilesModule-BbAEWtHH.js +0 -1
  358. package/dist/ui/assets/PlanningModule-B5DWQOGz.js +0 -1
  359. package/dist/ui/assets/TaskSettings-BeWAuyZj.js +0 -12
  360. package/dist/ui/assets/TaskforceAgentsModule-BifCYtjR.js +0 -21
  361. package/dist/ui/assets/TaskforceAgentsModule-D6IC0S7Q.css +0 -1
  362. package/dist/ui/assets/index-I5zhdtgt.js +0 -7
  363. package/dist/ui/assets/index-VRFsx3wz.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;
@@ -75,5 +75,5 @@ export function resolvePlanningIdentity(input) {
75
75
  export function planningIdentityColorToken(color) {
76
76
  return color
77
77
  ? `var(--planning-identity-${color})`
78
- : 'var(--planning-progress-empty)';
78
+ : 'var(--planning-identity-default)';
79
79
  }
@@ -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
+ ];
@@ -14,7 +14,6 @@ export interface AgentModelSelection {
14
14
  modelSource: TaskforceAgentModelSource;
15
15
  tier: ModelGatewayTier;
16
16
  connectionScope?: TaskforceAgentConnectionScope;
17
- connectionId?: string | null;
18
17
  }
19
18
  export interface AgentBehaviorConfig {
20
19
  personality?: {
@@ -1,4 +1,4 @@
1
- import { getTaskforceAgentModel, isTaskforceAgentModelVisible, isTaskforceAgentModelSource, normalizeTaskforceAgentConnectionScope, normalizeTaskforceAgentModelSource, } from './taskforceAgentModels.js';
1
+ import { getTaskforceAgentModel, isTaskforceAgentModelSource, normalizeTaskforceAgentConnectionScope, normalizeTaskforceAgentModelSource, } from './taskforceAgentModels.js';
2
2
  export const AGENT_DEFINITION_SCHEMA_VERSION = 1;
3
3
  const FIELD_LIMITS = {
4
4
  name: 80,
@@ -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', 'connectionId'], 'model', issues);
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,13 +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
- if (catalogModel && !isTaskforceAgentModelVisible(catalogModel)) {
309
- issue(issues, 'model_unavailable', 'model.modelKey', 'The selected model is not available in this runtime.');
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.');
310
312
  }
311
- if (modelSource === 'subscription_dev' && connectionScope !== 'local_dev') {
312
- issue(issues, 'invalid_subscription_dev_connection_scope', 'model.connectionScope', 'Subscription-dev models require local_dev connection scope.');
313
- }
314
- const connectionId = readOptionalString(value.model.connectionId, 'model.connectionId', FIELD_LIMITS.referenceId, issues);
315
313
  if (catalogModel && catalogModel.providerKey === providerKey && modelSource === catalogModel.source && MODEL_TIERS.has(value.model.tier)) {
316
314
  model = {
317
315
  providerKey: catalogModel.providerKey,
@@ -319,7 +317,6 @@ export function inspectAgentDefinition(value) {
319
317
  modelSource,
320
318
  tier: value.model.tier,
321
319
  ...(connectionScope ? { connectionScope } : {}),
322
- ...(connectionId ? { connectionId } : {}),
323
320
  };
324
321
  }
325
322
  }
@@ -300,8 +300,10 @@ export function normalizeTaskforceAgentModelKey(value, providerKey) {
300
300
  }
301
301
  export function normalizeTaskforceAgentModelSelection(input) {
302
302
  const providerKey = normalizeTaskforceAgentProviderKey(input.providerKey);
303
- const modelKey = normalizeTaskforceAgentModelKey(input.modelKey, providerKey);
304
- const model = getTaskforceAgentModel(modelKey);
303
+ const requestedModel = getTaskforceAgentModel(input.modelKey);
304
+ const model = requestedModel?.providerKey === providerKey
305
+ ? requestedModel
306
+ : getTaskforceAgentModel(normalizeTaskforceAgentModelKey(input.modelKey, providerKey));
305
307
  if (!model)
306
308
  return null;
307
309
  if (input.modelSource !== undefined
@@ -318,7 +320,9 @@ export function normalizeTaskforceAgentModelSelection(input) {
318
320
  && !connectionScope) {
319
321
  return null;
320
322
  }
321
- if (modelSource === 'subscription_dev' && connectionScope !== 'local_dev') {
323
+ if (modelSource === 'subscription_dev'
324
+ && connectionScope !== 'personal'
325
+ && connectionScope !== 'local_dev') {
322
326
  return null;
323
327
  }
324
328
  const connectionId = String(input.connectionId || '').trim();