@taskforcehq/taskforce 0.3.170 → 0.3.300

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 (696) hide show
  1. package/README.md +52 -21
  2. package/dist/Taskforce.module.css +3394 -5981
  3. package/dist/TaskforceCore.CategoryFallback.test.js +5 -2
  4. package/dist/TaskforceCore.filter-persistence.test.js +402 -0
  5. package/dist/TaskforceCore.js +388 -71
  6. package/dist/TaskforceCore.routing.test.js +311 -0
  7. package/dist/TaskforceCore.test.js +3344 -615
  8. package/dist/TaskforceWidget.js +3 -2
  9. package/dist/__tests__/localizationCatalogs.test.js +48 -31
  10. package/dist/__tests__/workflowSimulation.test.js +2 -2
  11. package/dist/annotatedAttachments/AnnotatedAttachmentSessionStore.d.ts +60 -0
  12. package/dist/annotatedAttachments/AnnotatedAttachmentSessionStore.js +324 -0
  13. package/dist/annotatedAttachments/AnnotatedAttachmentSessionStore.test.js +278 -0
  14. package/dist/annotatedAttachments/payload.d.ts +2 -0
  15. package/dist/annotatedAttachments/payload.js +54 -0
  16. package/dist/annotatedAttachments/payload.test.js +67 -0
  17. package/dist/annotatedAttachments/service.d.ts +49 -0
  18. package/dist/annotatedAttachments/service.js +121 -0
  19. package/dist/annotatedAttachments/types.d.ts +86 -0
  20. package/dist/cli.js +74 -25
  21. package/dist/compat/deploymentCompat.d.ts +12 -0
  22. package/dist/compat/deploymentCompat.js +43 -0
  23. package/dist/compat/workspaceSyncCompat.d.ts +6 -0
  24. package/dist/compat/workspaceSyncCompat.js +79 -0
  25. package/dist/compat/workspaceSyncCompat.test.js +87 -0
  26. package/dist/components/features/AgentsModule.d.ts +5 -0
  27. package/dist/components/features/AgentsModule.js +131 -0
  28. package/dist/components/features/AgentsModule.test.js +102 -0
  29. package/dist/components/features/AnnotatedAttachmentWorkspace.d.ts +24 -0
  30. package/dist/components/features/AnnotatedAttachmentWorkspace.js +1942 -0
  31. package/dist/components/features/AnnotatedAttachmentWorkspace.test.js +2831 -0
  32. package/dist/components/features/DocumentGenerateModal.js +8 -16
  33. package/dist/components/features/DocumentIndex.d.ts +3 -4
  34. package/dist/components/features/DocumentIndex.js +22 -10
  35. package/dist/components/features/DocumentViewer.d.ts +6 -2
  36. package/dist/components/features/DocumentViewer.js +1000 -18
  37. package/dist/components/features/DocumentWorkspace.d.ts +40 -2
  38. package/dist/components/features/DocumentWorkspace.js +96 -16
  39. package/dist/components/features/DocumentWorkspace.test.js +1202 -0
  40. package/dist/components/features/InitiativesModule.d.ts +22 -0
  41. package/dist/components/features/InitiativesModule.js +33 -0
  42. package/dist/components/features/TaskSettings.d.ts +41 -32
  43. package/dist/components/features/TaskSettings.js +798 -313
  44. package/dist/components/features/TaskSettings.test.js +1221 -47
  45. package/dist/components/features/WorkflowsModule.d.ts +27 -0
  46. package/dist/components/features/WorkflowsModule.js +21 -0
  47. package/dist/components/features/documentWorkspaceFilters.d.ts +10 -0
  48. package/dist/components/features/documentWorkspaceFilters.js +11 -0
  49. package/dist/components/features/settings/CategoryManager.d.ts +2 -0
  50. package/dist/components/features/settings/CategoryManager.js +15 -8
  51. package/dist/components/features/settings/PriorityManager.d.ts +18 -0
  52. package/dist/components/features/settings/PriorityManager.js +51 -0
  53. package/dist/components/features/settings/TaxonomyEditor.d.ts +2 -1
  54. package/dist/components/features/settings/TaxonomyEditor.js +41 -18
  55. package/dist/components/features/settings/TaxonomyLibraryManager.d.ts +26 -0
  56. package/dist/components/features/settings/TaxonomyLibraryManager.js +301 -0
  57. package/dist/components/features/settings/TaxonomyLibraryManager.test.js +141 -0
  58. package/dist/components/features/settings/TaxonomyManager.d.ts +35 -12
  59. package/dist/components/features/settings/TaxonomyManager.js +59 -27
  60. package/dist/components/features/settings/TypeManager.d.ts +11 -0
  61. package/dist/components/features/settings/TypeManager.js +48 -11
  62. package/dist/components/features/settings/{WorkflowEditorPrototype.d.ts → WorkflowEditor.d.ts} +2 -2
  63. package/dist/components/features/settings/{WorkflowEditorPrototype.js → WorkflowEditor.js} +3 -3
  64. package/dist/components/task/TaskActionHeader.d.ts +12 -2
  65. package/dist/components/task/TaskActionHeader.js +64 -8
  66. package/dist/components/task/TaskActionHeader.test.js +73 -0
  67. package/dist/components/task/TaskCard.d.ts +14 -16
  68. package/dist/components/task/TaskCard.js +144 -174
  69. package/dist/components/task/TaskCard.test.js +416 -64
  70. package/dist/components/task/TaskContextUpload.d.ts +6 -5
  71. package/dist/components/task/TaskContextUpload.js +199 -64
  72. package/dist/components/task/TaskContextUpload.test.js +331 -14
  73. package/dist/components/task/TaskForm.d.ts +23 -29
  74. package/dist/components/task/TaskForm.js +348 -169
  75. package/dist/components/task/TaskForm.test.js +419 -23
  76. package/dist/components/task/TaskKanban.d.ts +20 -21
  77. package/dist/components/task/TaskKanban.js +176 -316
  78. package/dist/components/task/TaskKanban.planning-drop.test.js +93 -0
  79. package/dist/components/task/TaskList.d.ts +22 -11
  80. package/dist/components/task/TaskList.js +98 -12
  81. package/dist/components/task/TaskList.test.js +206 -7
  82. package/dist/components/task/TaskReferenceBadge.d.ts +12 -0
  83. package/dist/components/task/TaskReferenceBadge.js +5 -0
  84. package/dist/components/task/TaskStatusActions.d.ts +12 -0
  85. package/dist/components/task/TaskStatusActions.js +18 -0
  86. package/dist/components/task/TaskStatusActions.test.js +45 -0
  87. package/dist/components/ui/ImageReferenceBadge.d.ts +12 -0
  88. package/dist/components/ui/ImageReferenceBadge.js +5 -0
  89. package/dist/components/ui/LevelSelector.d.ts +2 -1
  90. package/dist/components/ui/LevelSelector.js +2 -2
  91. package/dist/components/ui/Markdown.d.ts +1 -2
  92. package/dist/components/ui/Markdown.js +2 -13
  93. package/dist/components/ui/Modal.d.ts +3 -2
  94. package/dist/components/ui/Modal.js +4 -3
  95. package/dist/components/ui/MultiSelectFilter.d.ts +3 -1
  96. package/dist/components/ui/MultiSelectFilter.js +2 -2
  97. package/dist/components/ui/ReferenceBadgeButton.d.ts +13 -0
  98. package/dist/components/ui/ReferenceBadgeButton.js +6 -0
  99. package/dist/components/ui/TaxonomyDropdown.d.ts +7 -1
  100. package/dist/components/ui/TaxonomyDropdown.js +58 -23
  101. package/dist/components/ui/TopNoticeLayer.d.ts +7 -0
  102. package/dist/components/ui/TopNoticeLayer.js +14 -0
  103. package/dist/components/ui/TopNoticeLayer.test.js +25 -0
  104. package/dist/components/views/AppShellHeader.d.ts +13 -0
  105. package/dist/components/views/AppShellHeader.js +19 -0
  106. package/dist/components/views/AppShellHeader.test.js +21 -0
  107. package/dist/components/views/PlanComparisonPage.d.ts +73 -0
  108. package/dist/components/views/PlanComparisonPage.js +196 -0
  109. package/dist/components/views/PlanComparisonPage.test.js +251 -0
  110. package/dist/components/views/PlansPage.d.ts +14 -0
  111. package/dist/components/views/PlansPage.js +355 -0
  112. package/dist/components/views/StandaloneLayout.d.ts +2 -2
  113. package/dist/components/views/StandaloneLayout.js +2212 -1194
  114. package/dist/components/views/WidgetView.d.ts +2 -2
  115. package/dist/components/views/WidgetView.js +149 -43
  116. package/dist/components/views/chrome/WorkspaceChromeSections.d.ts +57 -0
  117. package/dist/components/views/chrome/WorkspaceChromeSections.js +38 -0
  118. package/dist/components/views/chrome/WorkspaceChromeSections.test.js +54 -0
  119. package/dist/components/views/chrome/workspaceChrome.d.ts +31 -0
  120. package/dist/components/views/chrome/workspaceChrome.js +108 -0
  121. package/dist/components/views/chrome/workspaceChrome.test.js +52 -0
  122. package/dist/components/views/panels/DocumentFilterToolbar.d.ts +10 -0
  123. package/dist/components/views/panels/DocumentFilterToolbar.js +7 -0
  124. package/dist/components/views/panels/DocumentFilterToolbar.test.js +19 -0
  125. package/dist/components/views/panels/FilterToolbar.d.ts +66 -0
  126. package/dist/components/views/panels/FilterToolbar.js +21 -0
  127. package/dist/components/views/panels/FilterToolbar.test.d.ts +1 -0
  128. package/dist/components/views/panels/FilterToolbar.test.js +45 -0
  129. package/dist/components/views/panels/FilterToolbarControls.d.ts +46 -0
  130. package/dist/components/views/panels/FilterToolbarControls.js +61 -0
  131. package/dist/components/views/panels/PlanningDrawer.d.ts +115 -0
  132. package/dist/components/views/panels/PlanningDrawer.js +220 -0
  133. package/dist/components/views/panels/ScheduleSidebar.d.ts +52 -0
  134. package/dist/components/views/panels/ScheduleSidebar.js +127 -0
  135. package/dist/components/views/panels/scheduleUtils.d.ts +14 -0
  136. package/dist/components/views/panels/scheduleUtils.js +79 -0
  137. package/dist/components/views/teamManagementAccess.d.ts +6 -0
  138. package/dist/components/views/teamManagementAccess.js +18 -0
  139. package/dist/components/views/teamManagementAccess.test.d.ts +1 -0
  140. package/dist/components/views/teamManagementAccess.test.js +44 -0
  141. package/dist/config/clientDeployment.d.ts +2 -0
  142. package/dist/config/clientDeployment.js +13 -0
  143. package/dist/config/cloudEnvironment.d.ts +15 -0
  144. package/dist/config/cloudEnvironment.js +60 -0
  145. package/dist/config/deployment.d.ts +20 -0
  146. package/dist/config/deployment.js +67 -0
  147. package/dist/config/deployment.test.d.ts +1 -0
  148. package/dist/config/deployment.test.js +88 -0
  149. package/dist/config/envSchema.js +36 -8
  150. package/dist/config/envSchema.test.js +28 -0
  151. package/dist/core/AiProfileService.d.ts +66 -0
  152. package/dist/core/AiProfileService.js +320 -0
  153. package/dist/core/AiProfileService.test.d.ts +1 -0
  154. package/dist/core/AiProfileService.test.js +164 -0
  155. package/dist/core/AiProfiles.test.d.ts +1 -0
  156. package/dist/core/AiProfiles.test.js +449 -0
  157. package/dist/core/AttachmentLinkService.d.ts +15 -0
  158. package/dist/core/AttachmentLinkService.js +157 -0
  159. package/dist/core/AuthTokenService.d.ts +44 -0
  160. package/dist/core/AuthTokenService.js +207 -0
  161. package/dist/core/CreatedBy.test.js +134 -6
  162. package/dist/core/DeletedTaskLifecycleService.d.ts +33 -0
  163. package/dist/core/DeletedTaskLifecycleService.js +158 -0
  164. package/dist/core/DeletedTaskTrash.test.d.ts +1 -0
  165. package/dist/core/DeletedTaskTrash.test.js +104 -0
  166. package/dist/core/EntitlementsPolicy.test.js +78 -5
  167. package/dist/core/GlobalSettingsService.d.ts +16 -0
  168. package/dist/core/GlobalSettingsService.js +370 -0
  169. package/dist/core/JsonBackupRuntime.test.d.ts +1 -0
  170. package/dist/core/JsonBackupRuntime.test.js +155 -0
  171. package/dist/core/McpTokenService.d.ts +118 -0
  172. package/dist/core/McpTokenService.js +921 -0
  173. package/dist/core/PlanEntitlementService.d.ts +201 -0
  174. package/dist/core/PlanEntitlementService.js +1442 -0
  175. package/dist/core/PlanVersionPolicy.test.d.ts +1 -0
  176. package/dist/core/PlanVersionPolicy.test.js +178 -0
  177. package/dist/core/PlanningEntities.test.d.ts +1 -0
  178. package/dist/core/PlanningEntities.test.js +95 -0
  179. package/dist/core/ScheduleFields.test.js +15 -19
  180. package/dist/core/SignupMonetizationSettings.test.d.ts +1 -0
  181. package/dist/core/SignupMonetizationSettings.test.js +159 -0
  182. package/dist/core/Stats.test.d.ts +1 -0
  183. package/dist/core/Stats.test.js +36 -0
  184. package/dist/core/SyncReconciliationService.d.ts +93 -0
  185. package/dist/core/SyncReconciliationService.js +406 -0
  186. package/dist/core/SystemAdmin.test.js +578 -13
  187. package/dist/core/TaskActivityService.d.ts +21 -0
  188. package/dist/core/TaskActivityService.js +130 -0
  189. package/dist/core/TaskAttachmentsCanonical.test.d.ts +1 -0
  190. package/dist/core/TaskAttachmentsCanonical.test.js +306 -0
  191. package/dist/core/TaskAuditTimeline.test.d.ts +1 -0
  192. package/dist/core/TaskAuditTimeline.test.js +132 -0
  193. package/dist/core/TaskTaxonomyValidation.test.js +338 -15
  194. package/dist/core/Taskforce.d.ts +930 -183
  195. package/dist/core/Taskforce.ids.test.js +252 -0
  196. package/dist/core/Taskforce.js +3848 -2532
  197. package/dist/core/Taskforce.mcpAuth.test.d.ts +1 -0
  198. package/dist/core/Taskforce.mcpAuth.test.js +343 -0
  199. package/dist/core/Taskforce.realtimeMutation.test.js +57 -2
  200. package/dist/core/TaxonomySettingsService.d.ts +18 -0
  201. package/dist/core/TaxonomySettingsService.js +162 -0
  202. package/dist/core/WorkspaceDelete.test.js +32 -13
  203. package/dist/core/WorkspaceLifecycleService.d.ts +11 -0
  204. package/dist/core/WorkspaceLifecycleService.js +88 -0
  205. package/dist/core/WorkspacePermissions.test.js +95 -0
  206. package/dist/core/WorkspacePlanMode.test.js +114 -1
  207. package/dist/core/WorkspacePreferenceService.d.ts +41 -0
  208. package/dist/core/WorkspacePreferenceService.js +246 -0
  209. package/dist/core/WorkspaceSyncSettings.test.d.ts +1 -0
  210. package/dist/core/WorkspaceSyncSettings.test.js +65 -0
  211. package/dist/core/__tests__/TaskAttachmentsCanonical.test.d.ts +1 -0
  212. package/dist/core/__tests__/TaskAttachmentsCanonical.test.js +212 -0
  213. package/dist/core/shared.d.ts +36 -0
  214. package/dist/core/shared.js +128 -0
  215. package/dist/core/types.d.ts +614 -0
  216. package/dist/core/types.js +27 -0
  217. package/dist/documentReviews/DocumentReviewCommentStore.d.ts +56 -0
  218. package/dist/documentReviews/DocumentReviewCommentStore.js +230 -0
  219. package/dist/documentReviews/DocumentReviewSessionStore.d.ts +52 -0
  220. package/dist/documentReviews/DocumentReviewSessionStore.js +193 -0
  221. package/dist/documentReviews/DocumentReviewSessionStore.test.d.ts +1 -0
  222. package/dist/documentReviews/DocumentReviewSessionStore.test.js +127 -0
  223. package/dist/documentReviews/service.d.ts +68 -0
  224. package/dist/documentReviews/service.js +210 -0
  225. package/dist/documentReviews/types.d.ts +58 -0
  226. package/dist/documentReviews/types.js +1 -0
  227. package/dist/hooks/auth/useAuthGuardPolicy.d.ts +2 -0
  228. package/dist/hooks/auth/useAuthGuardPolicy.js +1 -0
  229. package/dist/hooks/tasks/useCurrentTaskRelations.d.ts +15 -0
  230. package/dist/hooks/tasks/useCurrentTaskRelations.js +37 -0
  231. package/dist/hooks/tasks/useTaskActions.d.ts +3 -0
  232. package/dist/hooks/tasks/useTaskActions.js +2 -0
  233. package/dist/hooks/tasks/useTaskEditorNavigation.d.ts +65 -0
  234. package/dist/hooks/tasks/useTaskEditorNavigation.js +235 -0
  235. package/dist/hooks/tasks/useTaskFilters.d.ts +2 -0
  236. package/dist/hooks/tasks/useTaskFilters.js +2 -0
  237. package/dist/hooks/tasks/useTaskFormActions.d.ts +58 -0
  238. package/dist/hooks/tasks/useTaskFormActions.js +365 -0
  239. package/dist/hooks/tasks/useTaskRelationships.d.ts +16 -0
  240. package/dist/hooks/tasks/useTaskRelationships.js +64 -0
  241. package/dist/hooks/ui/useResourceExport.d.ts +19 -0
  242. package/dist/hooks/ui/useResourceExport.js +84 -0
  243. package/dist/hooks/ui/useSettingsModel.d.ts +203 -0
  244. package/dist/hooks/ui/useSettingsModel.js +125 -0
  245. package/dist/hooks/ui/useSettingsPersistence.d.ts +36 -0
  246. package/dist/hooks/ui/useSettingsPersistence.js +254 -0
  247. package/dist/hooks/ui/useSettingsTaxonomyManagement.d.ts +119 -0
  248. package/dist/hooks/ui/useSettingsTaxonomyManagement.js +536 -0
  249. package/dist/hooks/ui/useUiNotice.d.ts +1 -0
  250. package/dist/hooks/ui/useUiNotice.js +1 -0
  251. package/dist/hooks/ui/useWorkflowTemplates.d.ts +37 -0
  252. package/dist/hooks/ui/useWorkflowTemplates.js +111 -0
  253. package/dist/hooks/ui/useZenMode.d.ts +5 -0
  254. package/dist/hooks/ui/useZenMode.js +32 -0
  255. package/dist/hooks/useFilterSort.d.ts +60 -0
  256. package/dist/hooks/useFilterSort.js +362 -0
  257. package/dist/hooks/useFilterSort.test.d.ts +1 -0
  258. package/dist/hooks/useFilterSort.test.js +333 -0
  259. package/dist/hooks/useRealtimeSync.d.ts +1 -0
  260. package/dist/hooks/useRealtimeSync.js +24 -9
  261. package/dist/hooks/useRealtimeSync.test.js +28 -1
  262. package/dist/hooks/useSyncOrchestrator.aiProfiles.test.d.ts +1 -0
  263. package/dist/hooks/useSyncOrchestrator.aiProfiles.test.js +34 -0
  264. package/dist/hooks/useSyncOrchestrator.d.ts +65 -103
  265. package/dist/hooks/useSyncOrchestrator.js +1538 -670
  266. package/dist/hooks/useSyncOrchestrator.retry-closure.test.js +700 -174
  267. package/dist/hooks/useTaskData.d.ts +35 -0
  268. package/dist/hooks/useTaskData.js +239 -0
  269. package/dist/hooks/useTaskData.test.d.ts +1 -0
  270. package/dist/hooks/useTaskData.test.js +119 -0
  271. package/dist/hooks/useTaskMutations.d.ts +46 -0
  272. package/dist/hooks/useTaskMutations.js +472 -0
  273. package/dist/hooks/useTaskMutations.test.d.ts +1 -0
  274. package/dist/hooks/useTaskMutations.test.js +80 -0
  275. package/dist/hooks/useTaskforce.contract.test.d.ts +1 -0
  276. package/dist/hooks/useTaskforce.contract.test.js +7 -0
  277. package/dist/hooks/useTaskforce.d.ts +260 -295
  278. package/dist/hooks/useTaskforce.js +1954 -2623
  279. package/dist/hooks/useTaskforce.priority-filters.test.js +6 -11
  280. package/dist/hooks/useTaskforce.sync-behavior.test.d.ts +1 -0
  281. package/dist/hooks/useTaskforce.sync-behavior.test.js +1120 -0
  282. package/dist/hooks/useUiNotice.d.ts +16 -0
  283. package/dist/hooks/useUiNotice.js +49 -0
  284. package/dist/hooks/useWorkspaceSyncController.d.ts +23 -46
  285. package/dist/hooks/useWorkspaceSyncController.js +280 -461
  286. package/dist/hooks/useWorkspaceSyncController.test.js +106 -199
  287. package/dist/hooks/workspace/useTaskforceApiRouting.d.ts +8 -0
  288. package/dist/hooks/workspace/useTaskforceApiRouting.js +91 -0
  289. package/dist/hooks/workspace/useTaskforceApiRouting.test.d.ts +1 -0
  290. package/dist/hooks/workspace/useTaskforceApiRouting.test.js +60 -0
  291. package/dist/hooks/workspace/useWorkspaceSyncController.d.ts +1 -0
  292. package/dist/hooks/workspace/useWorkspaceSyncController.js +1 -0
  293. package/dist/hooks/workspace/workspaceLocalState.d.ts +30 -0
  294. package/dist/hooks/workspace/workspaceLocalState.js +101 -0
  295. package/dist/localization/locales/en-US.d.ts +1 -8
  296. package/dist/localization/locales/en-US.js +4 -11
  297. package/dist/localization/locales/es-419.js +2 -9
  298. package/dist/localization/locales/pt-BR.js +2 -9
  299. package/dist/localization/localizationCatalogs.test.d.ts +1 -0
  300. package/dist/localization/localizationCatalogs.test.js +37 -0
  301. package/dist/main.d.ts +1 -0
  302. package/dist/main.js +9 -15
  303. package/dist/mcp/clientIntegrations.d.ts +33 -0
  304. package/dist/mcp/clientIntegrations.js +199 -0
  305. package/dist/mcp/clientIntegrations.test.d.ts +1 -0
  306. package/dist/mcp/clientIntegrations.test.js +110 -0
  307. package/dist/mcp/index.d.ts +2 -0
  308. package/dist/mcp/index.js +2 -0
  309. package/dist/mcp/optionResolution.test.js +6 -2
  310. package/dist/mcp/runtime.d.ts +120 -0
  311. package/dist/mcp/runtime.js +5668 -0
  312. package/dist/mcp/runtime.test.d.ts +1 -0
  313. package/dist/mcp/runtime.test.js +3293 -0
  314. package/dist/mcp/server.js +2 -1793
  315. package/dist/mcp/structuredCommentValidation.test.d.ts +1 -0
  316. package/dist/{__tests__ → mcp}/structuredCommentValidation.test.js +1 -1
  317. package/dist/mcp/structuredDocValidation.js +1 -2
  318. package/dist/mcp/structuredDocValidation.test.d.ts +1 -0
  319. package/dist/{__tests__ → mcp}/structuredDocValidation.test.js +9 -4
  320. package/dist/mcp/toolRegistry.d.ts +570 -0
  321. package/dist/mcp/toolRegistry.js +90 -0
  322. package/dist/mcp/toolRegistry.test.d.ts +1 -0
  323. package/dist/mcp/toolRegistry.test.js +30 -0
  324. package/dist/migrations/billingSchemaParity.test.js +111 -0
  325. package/dist/migrations/taskSchemaMigrations.d.ts +5 -0
  326. package/dist/migrations/taskSchemaMigrations.js +681 -39
  327. package/dist/migrations/taskSchemaMigrations.test.d.ts +1 -0
  328. package/dist/migrations/taskSchemaMigrations.test.js +210 -0
  329. package/dist/plugins/vite.js +13 -7
  330. package/dist/public/apple-touch-icon.png +0 -0
  331. package/dist/public/archive/phoenix/apple-touch-icon.png +0 -0
  332. package/dist/public/archive/phoenix/favicon.ico +0 -0
  333. package/dist/public/archive/phoenix/site.webmanifest +1 -0
  334. package/dist/public/favicon-96x96.png +0 -0
  335. package/dist/public/favicon.ico +0 -0
  336. package/dist/public/favicon.svg +17 -0
  337. package/dist/public/site.webmanifest +21 -1
  338. package/dist/public/web-app-manifest-192x192.png +0 -0
  339. package/dist/public/web-app-manifest-512x512.png +0 -0
  340. package/dist/releaseVersion.test.d.ts +1 -0
  341. package/dist/{__tests__/releaseVersion.test.js → releaseVersion.test.js} +1 -1
  342. package/dist/resources/templates/WORKFLOW_V2_POLICY.md +1 -1
  343. package/dist/resources/templates/workflow-sources/workflowDocs.mjs +62 -52
  344. package/dist/resources/templates/workflows/collaborate.yaml +11 -5
  345. package/dist/resources/templates/workflows/do.yaml +8 -2
  346. package/dist/resources/templates/workflows/evaluate.yaml +13 -7
  347. package/dist/resources/templates/workflows/execute.yaml +40 -23
  348. package/dist/resources/templates/workflows/plan.yaml +15 -8
  349. package/dist/resources/templates/workflows/review.yaml +14 -8
  350. package/dist/runtime/appGateDefinitions.d.ts +32 -0
  351. package/dist/runtime/appGateDefinitions.js +32 -0
  352. package/dist/runtime/appGates.d.ts +29 -0
  353. package/dist/runtime/appGates.js +53 -0
  354. package/dist/runtime/appGates.test.d.ts +1 -0
  355. package/dist/runtime/appGates.test.js +42 -0
  356. package/dist/runtime/migrationFlags.d.ts +1 -0
  357. package/dist/runtime/migrationFlags.js +1 -0
  358. package/dist/server/annotatedAttachmentsRoutes.test.d.ts +1 -0
  359. package/dist/server/annotatedAttachmentsRoutes.test.js +473 -0
  360. package/dist/server/auth.js +14 -2
  361. package/dist/server/auth.test.js +21 -1
  362. package/dist/server/cors.js +11 -5
  363. package/dist/server/cors.test.js +6 -0
  364. package/dist/server/documentReviewRoutes.test.d.ts +1 -0
  365. package/dist/server/documentReviewRoutes.test.js +157 -0
  366. package/dist/server/index.cookieProxy.test.js +46 -1
  367. package/dist/server/index.d.ts +20 -0
  368. package/dist/server/index.js +168 -41
  369. package/dist/server/index.rateLimit.test.js +6 -0
  370. package/dist/server/index.test.js +133 -2
  371. package/dist/server/mockStripe.d.ts +72 -0
  372. package/dist/server/mockStripe.js +357 -0
  373. package/dist/server/realtimeSyncWs.js +4 -0
  374. package/dist/server/routes/admin.d.ts +114 -0
  375. package/dist/server/routes/admin.js +2226 -0
  376. package/dist/server/routes/annotatedAttachments.d.ts +24 -0
  377. package/dist/server/routes/annotatedAttachments.js +235 -0
  378. package/dist/server/routes/auth.d.ts +61 -0
  379. package/dist/server/routes/auth.js +1296 -0
  380. package/dist/server/{routes.billing.d.ts → routes/billing.d.ts} +3 -2
  381. package/dist/server/routes/billing.js +2001 -0
  382. package/dist/server/routes/billing.test.d.ts +1 -0
  383. package/dist/server/routes/billing.test.js +1631 -0
  384. package/dist/server/routes/documentReviews.d.ts +11 -0
  385. package/dist/server/routes/documentReviews.js +191 -0
  386. package/dist/server/routes/documents.d.ts +118 -0
  387. package/dist/server/routes/documents.js +1113 -0
  388. package/dist/server/routes/resources.d.ts +25 -0
  389. package/dist/server/routes/resources.js +225 -0
  390. package/dist/server/routes/shared.d.ts +35 -0
  391. package/dist/server/routes/shared.js +305 -0
  392. package/dist/server/routes/shared.test.d.ts +1 -0
  393. package/dist/server/routes/shared.test.js +32 -0
  394. package/dist/server/{routes.sync.d.ts → routes/sync.d.ts} +5 -5
  395. package/dist/server/routes/sync.integration.test.d.ts +1 -0
  396. package/dist/server/routes/sync.integration.test.js +2003 -0
  397. package/dist/server/routes/sync.js +3143 -0
  398. package/dist/server/routes/tasks.d.ts +72 -0
  399. package/dist/server/routes/tasks.js +1252 -0
  400. package/dist/server/routes/workspaces.d.ts +32 -0
  401. package/dist/server/routes/workspaces.js +307 -0
  402. package/dist/server/routes.d.ts +8 -9
  403. package/dist/server/routes.js +968 -4092
  404. package/dist/server/routes.test.js +9043 -2415
  405. package/dist/server/runtimeMode.d.ts +1 -1
  406. package/dist/server/runtimeMode.js +3 -18
  407. package/dist/server/runtimeMode.test.js +3 -3
  408. package/dist/server/securityHeaders.d.ts +1 -1
  409. package/dist/server/securityHeaders.js +65 -6
  410. package/dist/server/securityHeaders.test.js +40 -2
  411. package/dist/services/templateEngine.test.d.ts +1 -0
  412. package/dist/{__tests__ → services}/templateEngine.test.js +1 -1
  413. package/dist/services/templates.test.d.ts +1 -0
  414. package/dist/{__tests__ → services}/templates.test.js +1 -1
  415. package/dist/services/workflowDocumentFixtures.test.d.ts +1 -0
  416. package/dist/{__tests__ → services}/workflowDocumentFixtures.test.js +4 -4
  417. package/dist/services/workflowExportMatrix.test.d.ts +1 -0
  418. package/dist/{__tests__ → services}/workflowExportMatrix.test.js +1 -1
  419. package/dist/services/workflowExportSnapshots.test.d.ts +1 -0
  420. package/dist/services/workflowGeneration.test.d.ts +1 -0
  421. package/dist/services/workflowSimulation.test.d.ts +1 -0
  422. package/dist/services/workflowSimulation.test.js +113 -0
  423. package/dist/services/workflowV2Policy.test.d.ts +1 -0
  424. package/dist/{__tests__ → services}/workflowV2Policy.test.js +2 -2
  425. package/dist/shared/aiProfileSurfaceType.d.ts +9 -0
  426. package/dist/shared/aiProfileSurfaceType.js +49 -0
  427. package/dist/shared/customTaxonomyLibrary.d.ts +11 -0
  428. package/dist/shared/customTaxonomyLibrary.js +276 -0
  429. package/dist/shared/customTaxonomyLibrary.test.d.ts +1 -0
  430. package/dist/shared/customTaxonomyLibrary.test.js +20 -0
  431. package/dist/shared/taxonomyCatalog.d.ts +19 -0
  432. package/dist/shared/taxonomyCatalog.js +36 -0
  433. package/dist/shared/taxonomyDefaults.d.ts +29 -0
  434. package/dist/shared/taxonomyDefaults.js +26 -0
  435. package/dist/shared/taxonomyLibrary.d.ts +15 -0
  436. package/dist/shared/taxonomyLibrary.js +98 -0
  437. package/dist/shared/taxonomyLibrary.test.d.ts +1 -0
  438. package/dist/shared/taxonomyLibrary.test.js +26 -0
  439. package/dist/shared/taxonomyState.d.ts +36 -0
  440. package/dist/shared/taxonomyState.js +73 -0
  441. package/dist/shared/taxonomyState.test.d.ts +1 -0
  442. package/dist/shared/taxonomyState.test.js +71 -0
  443. package/dist/shared/workflowDefaults.d.ts +9 -0
  444. package/dist/shared/workflowDefaults.js +11 -0
  445. package/dist/storage/documentIntegrity.d.ts +2 -0
  446. package/dist/storage/documentIntegrity.js +34 -17
  447. package/dist/storage/documentPurge.d.ts +2 -1
  448. package/dist/storage/documentPurge.js +35 -8
  449. package/dist/storage/index.d.ts +4 -0
  450. package/dist/storage/index.js +2 -0
  451. package/dist/storage/objectStorage.d.ts +1 -1
  452. package/dist/storage/objectStorageClient.d.ts +6 -4
  453. package/dist/storage/objectStorageClient.js +77 -29
  454. package/dist/storage/objectStorageClient.test.d.ts +1 -0
  455. package/dist/storage/objectStorageClient.test.js +57 -0
  456. package/dist/storage/objectStorageConfig.js +3 -1
  457. package/dist/storage/objectStorageConfig.test.d.ts +1 -0
  458. package/dist/storage/objectStorageConfig.test.js +38 -0
  459. package/dist/storage/postgresAdapter.d.ts +5 -0
  460. package/dist/storage/postgresAdapter.js +2 -2
  461. package/dist/storage/postgresAdapter.test.d.ts +1 -0
  462. package/dist/storage/postgresAdapter.test.js +29 -0
  463. package/dist/storage/taskAssetStore.d.ts +7 -4
  464. package/dist/storage/taskAssetStore.js +65 -60
  465. package/dist/storage/workspaceAssetStore.d.ts +122 -0
  466. package/dist/storage/workspaceAssetStore.js +496 -0
  467. package/dist/storage/workspaceAssetStore.test.d.ts +1 -0
  468. package/dist/storage/workspaceAssetStore.test.js +501 -0
  469. package/dist/sync/cloudSyncApi.d.ts +33 -2
  470. package/dist/sync/cloudSyncApi.js +37 -15
  471. package/dist/sync/cloudSyncApi.test.js +60 -3
  472. package/dist/sync/index.d.ts +2 -0
  473. package/dist/sync/index.js +3 -0
  474. package/dist/sync/syncService.d.ts +25 -0
  475. package/dist/sync/syncService.js +184 -16
  476. package/dist/sync/syncService.test.js +289 -25
  477. package/dist/sync/workspaceRepair.d.ts +114 -0
  478. package/dist/sync/workspaceRepair.js +566 -0
  479. package/dist/sync/workspaceSyncModel.d.ts +230 -2
  480. package/dist/sync/workspaceSyncModel.js +456 -17
  481. package/dist/sync/workspaceSyncModel.test.js +642 -0
  482. package/dist/sync/workspaceSyncState.d.ts +12 -0
  483. package/dist/sync/workspaceSyncState.js +12 -0
  484. package/dist/sync/workspaceSyncSurface.d.ts +33 -0
  485. package/dist/sync/workspaceSyncSurface.js +74 -0
  486. package/dist/types.d.ts +143 -18
  487. package/dist/types.js +9 -24
  488. package/dist/ui/assets/AgentsModule-TVmCgizS.js +1 -0
  489. package/dist/ui/assets/AnnotatedAttachmentWorkspace-BaS2VwIr.css +1 -0
  490. package/dist/ui/assets/AnnotatedAttachmentWorkspace-CAyhnPeR.js +3 -0
  491. package/dist/ui/assets/DocumentWorkspace-BOCw5e4D.js +250 -0
  492. package/dist/ui/assets/DocumentWorkspace-C_8T8oz-.css +1 -0
  493. package/dist/ui/assets/InitiativesModule-CN0r02Oi.js +1 -0
  494. package/dist/ui/assets/PlansPage-BlVC_lRq.css +1 -0
  495. package/dist/ui/assets/PlansPage-FcQSNLZd.js +1 -0
  496. package/dist/ui/assets/TaskSettings-BwB9NtmJ.css +1 -0
  497. package/dist/ui/assets/TaskSettings-Cw5zYD1L.js +8 -0
  498. package/dist/ui/assets/WorkflowsModule-CY9R2zPB.js +5 -0
  499. package/dist/ui/assets/index-Bzqy5QGm.js +6 -0
  500. package/dist/ui/assets/index-DxRiI3tY.css +1 -0
  501. package/dist/ui/assets/vendor-dnd-DRzYolkg.js +5 -0
  502. package/dist/ui/assets/{vendor-icons-ZFG3SGwo.js → vendor-icons-QZyhEwgT.js} +1 -1
  503. package/dist/ui/assets/{vendor-markdown-CKYkQHfj.js → vendor-markdown-BUxTU7dS.js} +1 -1
  504. package/dist/ui/assets/vendor-react-CKJs5o3c.js +61 -0
  505. package/dist/ui/assets/vendor-router-BbWMxlnO.js +3 -0
  506. package/dist/ui/branding/logos/logo.png +0 -0
  507. package/dist/ui/branding/logos/logo_dark.svg +27 -0
  508. package/dist/ui/branding/logos/logo_favicon.svg +35 -0
  509. package/dist/ui/branding/logos/logo_light.svg +27 -0
  510. package/dist/ui/favicon/apple-touch-icon.png +0 -0
  511. package/dist/ui/favicon/archive/phoenix/apple-touch-icon.png +0 -0
  512. package/dist/ui/favicon/archive/phoenix/favicon.ico +0 -0
  513. package/dist/ui/favicon/archive/phoenix/site.webmanifest +1 -0
  514. package/dist/ui/favicon/favicon-96x96.png +0 -0
  515. package/dist/ui/favicon/favicon.ico +0 -0
  516. package/dist/ui/favicon/favicon.svg +17 -0
  517. package/dist/ui/favicon/site.webmanifest +21 -1
  518. package/dist/ui/favicon/web-app-manifest-192x192.png +0 -0
  519. package/dist/ui/favicon/web-app-manifest-512x512.png +0 -0
  520. package/dist/ui/index.html +10 -7
  521. package/dist/ui/product/screen_01.png +0 -0
  522. package/dist/ui/product/screen_02.png +0 -0
  523. package/dist/ui/product/screen_03.png +0 -0
  524. package/dist/utils/annotatedAttachments.d.ts +20 -0
  525. package/dist/utils/annotatedAttachments.js +74 -0
  526. package/dist/utils/annotatedAttachments.test.d.ts +1 -0
  527. package/dist/utils/annotatedAttachments.test.js +108 -0
  528. package/dist/utils/assignees.d.ts +26 -0
  529. package/dist/utils/assignees.js +132 -0
  530. package/dist/utils/canonicalAssetKind.d.ts +16 -0
  531. package/dist/utils/canonicalAssetKind.js +39 -0
  532. package/dist/utils/canonicalAssetKind.test.d.ts +1 -0
  533. package/dist/utils/canonicalAssetKind.test.js +24 -0
  534. package/dist/utils/coalescedRefresh.d.ts +5 -0
  535. package/dist/utils/coalescedRefresh.js +16 -0
  536. package/dist/utils/coalescedRefresh.test.d.ts +1 -0
  537. package/dist/utils/coalescedRefresh.test.js +30 -0
  538. package/dist/utils/constants.d.ts +16 -3
  539. package/dist/utils/constants.icons.test.js +2 -1
  540. package/dist/utils/constants.js +70 -13
  541. package/dist/utils/contextAssetEvents.d.ts +7 -0
  542. package/dist/utils/contextAssetEvents.js +6 -0
  543. package/dist/utils/contextFiles.d.ts +14 -3
  544. package/dist/utils/contextFiles.js +40 -8
  545. package/dist/utils/documentManagerApi.d.ts +6 -0
  546. package/dist/utils/documentManagerApi.js +19 -0
  547. package/dist/utils/documentNames.d.ts +24 -0
  548. package/dist/utils/documentNames.js +91 -0
  549. package/dist/utils/documentReferences.d.ts +9 -0
  550. package/dist/utils/documentReferences.js +11 -0
  551. package/dist/utils/entityReferences.d.ts +9 -0
  552. package/dist/utils/entityReferences.js +32 -0
  553. package/dist/utils/imageReferences.d.ts +9 -0
  554. package/dist/utils/imageReferences.js +11 -0
  555. package/dist/utils/planParser.d.ts +2 -2
  556. package/dist/utils/planParser.js +11 -11
  557. package/dist/utils/planParser.test.d.ts +1 -0
  558. package/dist/{__tests__ → utils}/planParser.test.js +22 -22
  559. package/dist/utils/planningReferences.d.ts +17 -0
  560. package/dist/utils/planningReferences.js +30 -0
  561. package/dist/utils/planningReferences.test.d.ts +1 -0
  562. package/dist/utils/planningReferences.test.js +17 -0
  563. package/dist/utils/taskActivity.d.ts +9 -0
  564. package/dist/utils/taskActivity.js +147 -0
  565. package/dist/utils/taskActivity.test.d.ts +1 -0
  566. package/dist/utils/taskActivity.test.js +34 -0
  567. package/dist/utils/taskDraftDefaults.d.ts +21 -0
  568. package/dist/utils/taskDraftDefaults.js +40 -0
  569. package/dist/utils/taskDraftDefaults.test.d.ts +1 -0
  570. package/dist/utils/taskDraftDefaults.test.js +34 -0
  571. package/dist/utils/taskNormalization.d.ts +25 -0
  572. package/dist/utils/taskNormalization.js +161 -0
  573. package/dist/utils/taskNormalization.test.d.ts +1 -0
  574. package/dist/utils/taskNormalization.test.js +158 -0
  575. package/dist/utils/taskReferences.d.ts +5 -0
  576. package/dist/utils/taskReferences.js +11 -0
  577. package/dist/utils/taskforceApiClient.d.ts +2 -0
  578. package/dist/utils/taskforceApiClient.js +101 -3
  579. package/dist/utils/taskforceApiClient.test.d.ts +1 -0
  580. package/dist/utils/taskforceApiClient.test.js +44 -0
  581. package/dist/utils/taxonomyFilterOptions.d.ts +2 -0
  582. package/dist/utils/taxonomyFilterOptions.js +17 -0
  583. package/dist/utils/taxonomyFormDefaults.d.ts +3 -0
  584. package/dist/utils/taxonomyFormDefaults.js +28 -0
  585. package/dist/utils/taxonomyFormDefaults.test.d.ts +1 -0
  586. package/dist/utils/taxonomyFormDefaults.test.js +63 -0
  587. package/dist/utils/taxonomyLifecycle.d.ts +3 -0
  588. package/dist/utils/taxonomyLifecycle.js +17 -0
  589. package/dist/utils/taxonomySorting.d.ts +7 -0
  590. package/dist/utils/taxonomySorting.js +74 -0
  591. package/dist/utils/theme.d.ts +15 -0
  592. package/dist/utils/theme.js +23 -0
  593. package/dist/utils/uiNotice.d.ts +7 -0
  594. package/dist/utils/uiNotice.js +6 -0
  595. package/dist/utils/uiNotice.test.d.ts +1 -0
  596. package/dist/utils/uiNotice.test.js +18 -0
  597. package/dist/utils/workspaceIdentity.d.ts +14 -0
  598. package/dist/utils/workspaceIdentity.js +21 -0
  599. package/dist/utils/workspaceIdentity.test.js +30 -1
  600. package/dist/utils/workspaceSyncPresentation.d.ts +20 -0
  601. package/dist/utils/workspaceSyncPresentation.js +21 -0
  602. package/dist/utils/workspaceSyncPresentation.test.d.ts +1 -0
  603. package/dist/utils/workspaceSyncPresentation.test.js +36 -0
  604. package/package.json +28 -23
  605. package/scripts/bootstrap-playwright-auth.mjs +155 -0
  606. package/scripts/check-compat-boundaries.mjs +41 -0
  607. package/scripts/check-env.ts +9 -2
  608. package/scripts/debug-login.mjs +32 -0
  609. package/scripts/migrate-planning-model.ts +233 -0
  610. package/scripts/migrate-task-data-assets.mjs +408 -0
  611. package/scripts/playwright-auth.sh +11 -0
  612. package/scripts/run-dev-proxy.sh +2 -0
  613. package/scripts/update-homebrew-formula.sh +2 -2
  614. package/scripts/with-esbuild.sh +11 -0
  615. package/src/resources/templates/WORKFLOW_V2_POLICY.md +1 -1
  616. package/src/resources/templates/workflow-sources/workflowDocs.mjs +62 -52
  617. package/src/resources/templates/workflows/collaborate.yaml +11 -5
  618. package/src/resources/templates/workflows/do.yaml +8 -2
  619. package/src/resources/templates/workflows/evaluate.yaml +13 -7
  620. package/src/resources/templates/workflows/execute.yaml +40 -23
  621. package/src/resources/templates/workflows/plan.yaml +15 -8
  622. package/src/resources/templates/workflows/review.yaml +14 -8
  623. package/dist/TaskforceScreenshot.d.ts +0 -11
  624. package/dist/TaskforceScreenshot.js +0 -113
  625. package/dist/compat/priorityCompat.d.ts +0 -2
  626. package/dist/compat/priorityCompat.js +0 -24
  627. package/dist/components/features/settings/TaxonomyManager 2.d.ts +0 -52
  628. package/dist/components/features/settings/TaxonomyManager 2.js +0 -75
  629. package/dist/components/task/TaskKanban 2.d.ts +0 -76
  630. package/dist/components/task/TaskKanban 2.js +0 -1004
  631. package/dist/components/task/TaskScreenshotSection.d.ts +0 -15
  632. package/dist/components/task/TaskScreenshotSection.js +0 -22
  633. package/dist/components/views/StandaloneLayout 2.d.ts +0 -8
  634. package/dist/components/views/StandaloneLayout 2.js +0 -1660
  635. package/dist/core/InitiativeTemplates.test.js +0 -50
  636. package/dist/core/ParentLifecycle.test.js +0 -98
  637. package/dist/migrations/clientMigrations.d.ts +0 -9
  638. package/dist/migrations/clientMigrations.js +0 -74
  639. package/dist/migrations/flags.d.ts +0 -6
  640. package/dist/migrations/flags.js +0 -8
  641. package/dist/migrations/taskMigrations.d.ts +0 -71
  642. package/dist/migrations/taskMigrations.js +0 -236
  643. package/dist/migrations/taskMigrations.test.js +0 -34
  644. package/dist/server/routes.billing.js +0 -991
  645. package/dist/server/routes.billing.test.js +0 -387
  646. package/dist/server/routes.sync.integration.test.js +0 -470
  647. package/dist/server/routes.sync.js +0 -1141
  648. package/dist/soak/syncSoakHarness.d.ts +0 -6
  649. package/dist/soak/syncSoakHarness.js +0 -10
  650. package/dist/ui/assets/index-0W5vyCpn.css +0 -1
  651. package/dist/ui/assets/index-MCZuNNfn.js +0 -23
  652. package/dist/ui/assets/logo_white_01-0Vx-iIIv.png +0 -0
  653. package/dist/ui/assets/vendor-dnd-BI1K77C1.js +0 -5
  654. package/dist/ui/assets/vendor-react-DdIDsh7f.js +0 -9
  655. package/dist/ui/assets/vendor-router-BtiNU7Dl.js +0 -3
  656. package/dist/utils/taskHierarchy.d.ts +0 -4
  657. package/dist/utils/taskHierarchy.js +0 -69
  658. package/dist/utils/taskHierarchy.test.js +0 -38
  659. package/dist/utils/taskParenting.d.ts +0 -3
  660. package/dist/utils/taskParenting.js +0 -24
  661. package/dist/utils/taskParenting.test.js +0 -21
  662. package/dist/utils/taskRelations.d.ts +0 -6
  663. package/dist/utils/taskRelations.js +0 -24
  664. package/dist/utils/taskRelations.test.js +0 -34
  665. package/scripts/check-compat-boundaries.js +0 -48
  666. /package/dist/{__tests__/planParser.test.d.ts → TaskforceCore.filter-persistence.test.d.ts} +0 -0
  667. /package/dist/{__tests__/releaseVersion.test.d.ts → TaskforceCore.routing.test.d.ts} +0 -0
  668. /package/dist/{__tests__/structuredCommentValidation.test.d.ts → annotatedAttachments/AnnotatedAttachmentSessionStore.test.d.ts} +0 -0
  669. /package/dist/{__tests__/structuredDocValidation.test.d.ts → annotatedAttachments/payload.test.d.ts} +0 -0
  670. /package/dist/{__tests__/templateEngine.test.d.ts → annotatedAttachments/types.js} +0 -0
  671. /package/dist/{__tests__/templates.test.d.ts → compat/workspaceSyncCompat.test.d.ts} +0 -0
  672. /package/dist/{__tests__/workflowDocumentFixtures.test.d.ts → components/features/AgentsModule.test.d.ts} +0 -0
  673. /package/dist/{__tests__/workflowExportMatrix.test.d.ts → components/features/AnnotatedAttachmentWorkspace.test.d.ts} +0 -0
  674. /package/dist/{__tests__/workflowExportSnapshots.test.d.ts → components/features/DocumentWorkspace.test.d.ts} +0 -0
  675. /package/dist/{__tests__/workflowGeneration.test.d.ts → components/features/settings/TaxonomyLibraryManager.test.d.ts} +0 -0
  676. /package/dist/{__tests__/workflowV2Policy.test.d.ts → components/task/TaskActionHeader.test.d.ts} +0 -0
  677. /package/dist/{core/InitiativeTemplates.test.d.ts → components/task/TaskKanban.planning-drop.test.d.ts} +0 -0
  678. /package/dist/{core/ParentLifecycle.test.d.ts → components/task/TaskStatusActions.test.d.ts} +0 -0
  679. /package/dist/{migrations/taskMigrations.test.d.ts → components/ui/TopNoticeLayer.test.d.ts} +0 -0
  680. /package/dist/{server/routes.billing.test.d.ts → components/views/AppShellHeader.test.d.ts} +0 -0
  681. /package/dist/{server/routes.sync.integration.test.d.ts → components/views/PlanComparisonPage.test.d.ts} +0 -0
  682. /package/dist/{utils/taskHierarchy.test.d.ts → components/views/chrome/WorkspaceChromeSections.test.d.ts} +0 -0
  683. /package/dist/{utils/taskParenting.test.d.ts → components/views/chrome/workspaceChrome.test.d.ts} +0 -0
  684. /package/dist/{utils/taskRelations.test.d.ts → components/views/panels/DocumentFilterToolbar.test.d.ts} +0 -0
  685. /package/dist/public/{android-chrome-192x192.png → archive/phoenix/android-chrome-192x192.png} +0 -0
  686. /package/dist/public/{android-chrome-512x512.png → archive/phoenix/android-chrome-512x512.png} +0 -0
  687. /package/dist/public/{favicon-16x16.png → archive/phoenix/favicon-16x16.png} +0 -0
  688. /package/dist/public/{favicon-32x32.png → archive/phoenix/favicon-32x32.png} +0 -0
  689. /package/dist/public/{favicon.png → archive/phoenix/favicon.png} +0 -0
  690. /package/dist/{__tests__ → services}/workflowExportSnapshots.test.js +0 -0
  691. /package/dist/{__tests__ → services}/workflowGeneration.test.js +0 -0
  692. /package/dist/ui/favicon/{android-chrome-192x192.png → archive/phoenix/android-chrome-192x192.png} +0 -0
  693. /package/dist/ui/favicon/{android-chrome-512x512.png → archive/phoenix/android-chrome-512x512.png} +0 -0
  694. /package/dist/ui/favicon/{favicon-16x16.png → archive/phoenix/favicon-16x16.png} +0 -0
  695. /package/dist/ui/favicon/{favicon-32x32.png → archive/phoenix/favicon-32x32.png} +0 -0
  696. /package/dist/ui/favicon/{favicon.png → archive/phoenix/favicon.png} +0 -0
@@ -0,0 +1,3 @@
1
+ import{r as i}from"./vendor-react-CKJs5o3c.js";var oe="popstate";function Te(e={}){let{initialEntries:t=["/"],initialIndex:n,v5Compat:o=!1}=e,r;r=t.map((h,v)=>d(h,typeof h=="string"?null:h.state,v===0?"default":void 0));let a=s(n??r.length-1),l="POP",u=null;function s(h){return Math.min(Math.max(h,0),r.length-1)}function c(){return r[a]}function d(h,v=null,p){let m=J(r?c().pathname:"/",h,v,p);return S(m.pathname.charAt(0)==="/",`relative pathnames are not supported in memory history: ${JSON.stringify(h)}`),m}function f(h){return typeof h=="string"?h:D(h)}return{get index(){return a},get action(){return l},get location(){return c()},createHref:f,createURL(h){return new URL(f(h),"http://localhost")},encodeLocation(h){let v=typeof h=="string"?M(h):h;return{pathname:v.pathname||"",search:v.search||"",hash:v.hash||""}},push(h,v){l="PUSH";let p=d(h,v);a+=1,r.splice(a,r.length,p),o&&u&&u({action:l,location:p,delta:1})},replace(h,v){l="REPLACE";let p=d(h,v);r[a]=p,o&&u&&u({action:l,location:p,delta:0})},go(h){l="POP";let v=s(a+h),p=r[v];a=v,u&&u({action:l,location:p,delta:h})},listen(h){return u=h,()=>{u=null}}}}function Oe(e={}){function t(o,r){let{pathname:a,search:l,hash:u}=o.location;return J("",{pathname:a,search:l,hash:u},r.state&&r.state.usr||null,r.state&&r.state.key||"default")}function n(o,r){return typeof r=="string"?r:D(r)}return Ie(t,n,null,e)}function E(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function S(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ne(){return Math.random().toString(36).substring(2,10)}function le(e,t){return{usr:e.state,key:e.key,idx:t}}function J(e,t,n=null,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?M(t):t,state:n,key:t&&t.key||o||Ne()}}function D({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function M(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let o=e.indexOf("?");o>=0&&(t.search=e.substring(o),e=e.substring(0,o)),e&&(t.pathname=e)}return t}function Ie(e,t,n,o={}){let{window:r=document.defaultView,v5Compat:a=!1}=o,l=r.history,u="POP",s=null,c=d();c==null&&(c=0,l.replaceState({...l.state,idx:c},""));function d(){return(l.state||{idx:null}).idx}function f(){u="POP";let m=d(),w=m==null?null:m-c;c=m,s&&s({action:u,location:p.location,delta:w})}function y(m,w){u="PUSH";let g=J(p.location,m,w);c=d()+1;let R=le(g,c),b=p.createHref(g);try{l.pushState(R,"",b)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;r.location.assign(b)}a&&s&&s({action:u,location:p.location,delta:1})}function h(m,w){u="REPLACE";let g=J(p.location,m,w);c=d();let R=le(g,c),b=p.createHref(g);l.replaceState(R,"",b),a&&s&&s({action:u,location:p.location,delta:0})}function v(m){return De(m)}let p={get action(){return u},get location(){return e(r,l)},listen(m){if(s)throw new Error("A history only accepts one active listener");return r.addEventListener(oe,f),s=m,()=>{r.removeEventListener(oe,f),s=null}},createHref(m){return t(r,m)},createURL:v,encodeLocation(m){let w=v(m);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:y,replace:h,go(m){return l.go(m)}};return p}function De(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),E(n,"No window.location.(origin|href) available to create URL");let o=typeof e=="string"?e:D(e);return o=o.replace(/ $/,"%20"),!t&&o.startsWith("//")&&(o=n+o),new URL(o,n)}function fe(e,t,n="/"){return Me(e,t,n,!1)}function Me(e,t,n,o){let r=typeof t=="string"?M(t):t,a=$(r.pathname||"/",n);if(a==null)return null;let l=de(e);Fe(l);let u=null;for(let s=0;u==null&&s<l.length;++s){let c=Ke(a);u=ze(l[s],c,o)}return u}function de(e,t=[],n=[],o="",r=!1){let a=(l,u,s=r,c)=>{let d={relativePath:c===void 0?l.path||"":c,caseSensitive:l.caseSensitive===!0,childrenIndex:u,route:l};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(o)&&s)return;E(d.relativePath.startsWith(o),`Absolute route path "${d.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(o.length)}let f=P([o,d.relativePath]),y=n.concat(d);l.children&&l.children.length>0&&(E(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),de(l.children,t,y,f,s)),!(l.path==null&&!l.index)&&t.push({path:f,score:je(f,l.index),routesMeta:y})};return e.forEach((l,u)=>{if(l.path===""||!l.path?.includes("?"))a(l,u);else for(let s of he(l.path))a(l,u,!0,s)}),t}function he(e){let t=e.split("/");if(t.length===0)return[];let[n,...o]=t,r=n.endsWith("?"),a=n.replace(/\?$/,"");if(o.length===0)return r?[a,""]:[a];let l=he(o.join("/")),u=[];return u.push(...l.map(s=>s===""?a:[a,s].join("/"))),r&&u.push(...l),u.map(s=>e.startsWith("/")&&s===""?"/":s)}function Fe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Je(t.routesMeta.map(o=>o.childrenIndex),n.routesMeta.map(o=>o.childrenIndex)))}var Ue=/^:[\w-]+$/,Ae=3,Be=2,_e=1,We=10,He=-2,ie=e=>e==="*";function je(e,t){let n=e.split("/"),o=n.length;return n.some(ie)&&(o+=He),t&&(o+=Be),n.filter(r=>!ie(r)).reduce((r,a)=>r+(Ue.test(a)?Ae:a===""?_e:We),o)}function Je(e,t){return e.length===t.length&&e.slice(0,-1).every((o,r)=>o===t[r])?e[e.length-1]-t[t.length-1]:0}function ze(e,t,n=!1){let{routesMeta:o}=e,r={},a="/",l=[];for(let u=0;u<o.length;++u){let s=o[u],c=u===o.length-1,d=a==="/"?t:t.slice(a.length)||"/",f=z({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d),y=s.route;if(!f&&c&&n&&!o[o.length-1].route.index&&(f=z({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},d)),!f)return null;Object.assign(r,f.params),l.push({params:r,pathname:P([a,f.pathname]),pathnameBase:Xe(P([a,f.pathnameBase])),route:y}),f.pathnameBase!=="/"&&(a=P([a,f.pathnameBase]))}return l}function z(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,o]=Ve(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let a=r[0],l=a.replace(/(.)\/+$/,"$1"),u=r.slice(1);return{params:o.reduce((c,{paramName:d,isOptional:f},y)=>{if(d==="*"){let v=u[y]||"";l=a.slice(0,a.length-v.length).replace(/(.)\/+$/,"$1")}const h=u[y];return f&&!h?c[d]=void 0:c[d]=(h||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:l,pattern:e}}function Ve(e,t=!1,n=!0){S(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let o=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,u,s)=>(o.push({paramName:u,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(o.push({paramName:"*"}),r+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":e!==""&&e!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),o]}function Ke(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return S(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function $(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,o=e.charAt(n);return o&&o!=="/"?null:e.slice(n)||"/"}var Ye=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Ge(e,t="/"){let{pathname:n,search:o="",hash:r=""}=typeof e=="string"?M(e):e,a;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?a=ue(n.substring(1),"/"):a=ue(n,t)):a=t,{pathname:a,search:Qe(o),hash:Ze(r)}}function ue(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function G(e,t,n,o){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function qe(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Q(e){let t=qe(e);return t.map((n,o)=>o===t.length-1?n.pathname:n.pathnameBase)}function Z(e,t,n,o=!1){let r;typeof e=="string"?r=M(e):(r={...e},E(!r.pathname||!r.pathname.includes("?"),G("?","pathname","search",r)),E(!r.pathname||!r.pathname.includes("#"),G("#","pathname","hash",r)),E(!r.search||!r.search.includes("#"),G("#","search","hash",r)));let a=e===""||r.pathname==="",l=a?"/":r.pathname,u;if(l==null)u=n;else{let f=t.length-1;if(!o&&l.startsWith("..")){let y=l.split("/");for(;y[0]==="..";)y.shift(),f-=1;r.pathname=y.join("/")}u=f>=0?t[f]:"/"}let s=Ge(r,u),c=l&&l!=="/"&&l.endsWith("/"),d=(a||l===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(c||d)&&(s.pathname+="/"),s}var P=e=>e.join("/").replace(/\/\/+/g,"/"),Xe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Qe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ze=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,et=class{constructor(e,t,n,o=!1){this.status=e,this.statusText=t||"",this.internal=o,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function tt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function nt(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var me=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function pe(e,t){let n=e;if(typeof n!="string"||!Ye.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let o=n,r=!1;if(me)try{let a=new URL(window.location.href),l=n.startsWith("//")?new URL(a.protocol+n):new URL(n),u=$(l.pathname,t);l.origin===a.origin&&u!=null?n=u+l.search+l.hash:r=!0}catch{S(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:r,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ge=["POST","PUT","PATCH","DELETE"];new Set(ge);var rt=["GET",...ge];new Set(rt);var F=i.createContext(null);F.displayName="DataRouter";var V=i.createContext(null);V.displayName="DataRouterState";var at=i.createContext(!1),ye=i.createContext({isTransitioning:!1});ye.displayName="ViewTransition";var ot=i.createContext(new Map);ot.displayName="Fetchers";var lt=i.createContext(null);lt.displayName="Await";var C=i.createContext(null);C.displayName="Navigation";var K=i.createContext(null);K.displayName="Location";var L=i.createContext({outlet:null,matches:[],isDataRoute:!1});L.displayName="Route";var ee=i.createContext(null);ee.displayName="RouteError";var ve="REACT_ROUTER_ERROR",it="REDIRECT",ut="ROUTE_ERROR_RESPONSE";function st(e){if(e.startsWith(`${ve}:${it}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function ct(e){if(e.startsWith(`${ve}:${ut}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new et(t.status,t.statusText,t.data)}catch{}}function ft(e,{relative:t}={}){E(U(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:o}=i.useContext(C),{hash:r,pathname:a,search:l}=_(e,{relative:t}),u=a;return n!=="/"&&(u=a==="/"?n:P([n,a])),o.createHref({pathname:u,search:l,hash:r})}function U(){return i.useContext(K)!=null}function k(){return E(U(),"useLocation() may be used only in the context of a <Router> component."),i.useContext(K).location}var we="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Re(e){i.useContext(C).static||i.useLayoutEffect(e)}function Ee(){let{isDataRoute:e}=i.useContext(L);return e?bt():dt()}function dt(){E(U(),"useNavigate() may be used only in the context of a <Router> component.");let e=i.useContext(F),{basename:t,navigator:n}=i.useContext(C),{matches:o}=i.useContext(L),{pathname:r}=k(),a=JSON.stringify(Q(o)),l=i.useRef(!1);return Re(()=>{l.current=!0}),i.useCallback((s,c={})=>{if(S(l.current,we),!l.current)return;if(typeof s=="number"){n.go(s);return}let d=Z(s,JSON.parse(a),r,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:P([t,d.pathname])),(c.replace?n.replace:n.push)(d,c.state,c)},[t,n,a,r,e])}i.createContext(null);function _(e,{relative:t}={}){let{matches:n}=i.useContext(L),{pathname:o}=k(),r=JSON.stringify(Q(n));return i.useMemo(()=>Z(e,JSON.parse(r),o,t==="path"),[e,r,o,t])}function ht(e,t,n,o,r){E(U(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=i.useContext(C),{matches:l}=i.useContext(L),u=l[l.length-1],s=u?u.params:{},c=u?u.pathname:"/",d=u?u.pathnameBase:"/",f=u&&u.route;{let g=f&&f.path||"";Ce(c,!f||g.endsWith("*")||g.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${g}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
2
+
3
+ Please change the parent <Route path="${g}"> to <Route path="${g==="/"?"*":`${g}/*`}">.`)}let y=k(),h;h=y;let v=h.pathname||"/",p=v;if(d!=="/"){let g=d.replace(/^\//,"").split("/");p="/"+v.replace(/^\//,"").split("/").slice(g.length).join("/")}let m=fe(e,{pathname:p});return S(f||m!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),S(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),vt(m&&m.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:P([d,a.encodeLocation?a.encodeLocation(g.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?d:P([d,a.encodeLocation?a.encodeLocation(g.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:g.pathnameBase])})),l,n,o,r)}function mt(){let e=Ct(),t=tt(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:o},a={padding:"2px 4px",backgroundColor:o},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=i.createElement(i.Fragment,null,i.createElement("p",null,"💿 Hey developer 👋"),i.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",i.createElement("code",{style:a},"ErrorBoundary")," or"," ",i.createElement("code",{style:a},"errorElement")," prop on your route.")),i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),n?i.createElement("pre",{style:r},n):null,l)}var pt=i.createElement(mt,null),xe=class extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=ct(e.digest);n&&(e=n)}let t=e!==void 0?i.createElement(L.Provider,{value:this.props.routeContext},i.createElement(ee.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?i.createElement(gt,{error:e},t):t}};xe.contextType=at;var q=new WeakMap;function gt({children:e,error:t}){let{basename:n}=i.useContext(C);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let o=st(t.digest);if(o){let r=q.get(t);if(r)throw r;let a=pe(o.location,n);if(me&&!q.get(t))if(a.isExternal||o.reloadDocument)window.location.href=a.absoluteURL||a.to;else{const l=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:o.replace}));throw q.set(t,l),l}return i.createElement("meta",{httpEquiv:"refresh",content:`0;url=${a.absoluteURL||a.to}`})}}return e}function yt({routeContext:e,match:t,children:n}){let o=i.useContext(F);return o&&o.static&&o.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=t.route.id),i.createElement(L.Provider,{value:e},n)}function vt(e,t=[],n=null,o=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=n?.errors;if(l!=null){let d=a.findIndex(f=>f.route.id&&l?.[f.route.id]!==void 0);E(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let u=!1,s=-1;if(n)for(let d=0;d<a.length;d++){let f=a[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(s=d),f.route.id){let{loaderData:y,errors:h}=n,v=f.route.loader&&!y.hasOwnProperty(f.route.id)&&(!h||h[f.route.id]===void 0);if(f.route.lazy||v){u=!0,s>=0?a=a.slice(0,s+1):a=[a[0]];break}}}let c=n&&o?(d,f)=>{o(d,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:nt(n.matches),errorInfo:f})}:void 0;return a.reduceRight((d,f,y)=>{let h,v=!1,p=null,m=null;n&&(h=l&&f.route.id?l[f.route.id]:void 0,p=f.route.errorElement||pt,u&&(s<0&&y===0?(Ce("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,m=null):s===y&&(v=!0,m=f.route.hydrateFallbackElement||null)));let w=t.concat(a.slice(0,y+1)),g=()=>{let R;return h?R=p:v?R=m:f.route.Component?R=i.createElement(f.route.Component,null):f.route.element?R=f.route.element:R=d,i.createElement(yt,{match:f,routeContext:{outlet:d,matches:w,isDataRoute:n!=null},children:R})};return n&&(f.route.ErrorBoundary||f.route.errorElement||y===0)?i.createElement(xe,{location:n.location,revalidation:n.revalidation,component:p,error:h,children:g(),routeContext:{outlet:null,matches:w,isDataRoute:!0},onError:c}):g()},null)}function te(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function wt(e){let t=i.useContext(F);return E(t,te(e)),t}function Rt(e){let t=i.useContext(V);return E(t,te(e)),t}function Et(e){let t=i.useContext(L);return E(t,te(e)),t}function ne(e){let t=Et(e),n=t.matches[t.matches.length-1];return E(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function xt(){return ne("useRouteId")}function Ct(){let e=i.useContext(ee),t=Rt("useRouteError"),n=ne("useRouteError");return e!==void 0?e:t.errors?.[n]}function bt(){let{router:e}=wt("useNavigate"),t=ne("useNavigate"),n=i.useRef(!1);return Re(()=>{n.current=!0}),i.useCallback(async(r,a={})=>{S(n.current,we),n.current&&(typeof r=="number"?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...a}))},[e,t])}var se={};function Ce(e,t,n){!t&&!se[e]&&(se[e]=!0,S(!1,n))}i.memo(St);function St({routes:e,future:t,state:n,onError:o}){return ht(e,void 0,n,o,t)}function on({basename:e,children:t,initialEntries:n,initialIndex:o,unstable_useTransitions:r}){let a=i.useRef();a.current==null&&(a.current=Te({initialEntries:n,initialIndex:o,v5Compat:!0}));let l=a.current,[u,s]=i.useState({action:l.action,location:l.location}),c=i.useCallback(d=>{r===!1?s(d):i.startTransition(()=>s(d))},[r]);return i.useLayoutEffect(()=>l.listen(c),[l,c]),i.createElement(be,{basename:e,children:t,location:u.location,navigationType:u.action,navigator:l,unstable_useTransitions:r})}function ln({to:e,replace:t,state:n,relative:o}){E(U(),"<Navigate> may be used only in the context of a <Router> component.");let{static:r}=i.useContext(C);S(!r,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=i.useContext(L),{pathname:l}=k(),u=Ee(),s=Z(e,Q(a),l,o==="path"),c=JSON.stringify(s);return i.useEffect(()=>{u(JSON.parse(c),{replace:t,state:n,relative:o})},[u,c,o,t,n]),null}function be({basename:e="/",children:t=null,location:n,navigationType:o="POP",navigator:r,static:a=!1,unstable_useTransitions:l}){E(!U(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),s=i.useMemo(()=>({basename:u,navigator:r,static:a,unstable_useTransitions:l,future:{}}),[u,r,a,l]);typeof n=="string"&&(n=M(n));let{pathname:c="/",search:d="",hash:f="",state:y=null,key:h="default"}=n,v=i.useMemo(()=>{let p=$(c,u);return p==null?null:{location:{pathname:p,search:d,hash:f,state:y,key:h},navigationType:o}},[u,c,d,f,y,h,o]);return S(v!=null,`<Router basename="${u}"> is not able to match the URL "${c}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:i.createElement(C.Provider,{value:s},i.createElement(K.Provider,{children:t,value:v}))}var H="get",j="application/x-www-form-urlencoded";function Y(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Lt(e){return Y(e)&&e.tagName.toLowerCase()==="button"}function Pt(e){return Y(e)&&e.tagName.toLowerCase()==="form"}function $t(e){return Y(e)&&e.tagName.toLowerCase()==="input"}function kt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Tt(e,t){return e.button===0&&(!t||t==="_self")&&!kt(e)}var W=null;function Ot(){if(W===null)try{new FormData(document.createElement("form"),0),W=!1}catch{W=!0}return W}var Nt=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function X(e){return e!=null&&!Nt.has(e)?(S(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${j}"`),null):e}function It(e,t){let n,o,r,a,l;if(Pt(e)){let u=e.getAttribute("action");o=u?$(u,t):null,n=e.getAttribute("method")||H,r=X(e.getAttribute("enctype"))||j,a=new FormData(e)}else if(Lt(e)||$t(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||u.getAttribute("action");if(o=s?$(s,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||H,r=X(e.getAttribute("formenctype"))||X(u.getAttribute("enctype"))||j,a=new FormData(u,e),!Ot()){let{name:c,type:d,value:f}=e;if(d==="image"){let y=c?`${c}.`:"";a.append(`${y}x`,"0"),a.append(`${y}y`,"0")}else c&&a.append(c,f)}}else{if(Y(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=H,o=null,r=j,l=e}return a&&r==="text/plain"&&(l=a,a=void 0),{action:o,method:n.toLowerCase(),encType:r,formData:a,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function re(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Dt(e,t,n,o){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?r.pathname.endsWith("/")?r.pathname=`${r.pathname}_.${o}`:r.pathname=`${r.pathname}.${o}`:r.pathname==="/"?r.pathname=`_root.${o}`:t&&$(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${o}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${o}`,r}async function Mt(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Ft(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Ut(e,t,n){let o=await Promise.all(e.map(async r=>{let a=t.routes[r.route.id];if(a){let l=await Mt(a,n);return l.links?l.links():[]}return[]}));return Wt(o.flat(1).filter(Ft).filter(r=>r.rel==="stylesheet"||r.rel==="preload").map(r=>r.rel==="stylesheet"?{...r,rel:"prefetch",as:"style"}:{...r,rel:"prefetch"}))}function ce(e,t,n,o,r,a){let l=(s,c)=>n[c]?s.route.id!==n[c].route.id:!0,u=(s,c)=>n[c].pathname!==s.pathname||n[c].route.path?.endsWith("*")&&n[c].params["*"]!==s.params["*"];return a==="assets"?t.filter((s,c)=>l(s,c)||u(s,c)):a==="data"?t.filter((s,c)=>{let d=o.routes[s.route.id];if(!d||!d.hasLoader)return!1;if(l(s,c)||u(s,c))return!0;if(s.route.shouldRevalidate){let f=s.route.shouldRevalidate({currentUrl:new URL(r.pathname+r.search+r.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof f=="boolean")return f}return!0}):[]}function At(e,t,{includeHydrateFallback:n}={}){return Bt(e.map(o=>{let r=t.routes[o.route.id];if(!r)return[];let a=[r.module];return r.clientActionModule&&(a=a.concat(r.clientActionModule)),r.clientLoaderModule&&(a=a.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(a=a.concat(r.hydrateFallbackModule)),r.imports&&(a=a.concat(r.imports)),a}).flat(1))}function Bt(e){return[...new Set(e)]}function _t(e){let t={},n=Object.keys(e).sort();for(let o of n)t[o]=e[o];return t}function Wt(e,t){let n=new Set;return new Set(t),e.reduce((o,r)=>{let a=JSON.stringify(_t(r));return n.has(a)||(n.add(a),o.push({key:a,link:r})),o},[])}function Se(){let e=i.useContext(F);return re(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Ht(){let e=i.useContext(V);return re(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var ae=i.createContext(void 0);ae.displayName="FrameworkContext";function Le(){let e=i.useContext(ae);return re(e,"You must render this element inside a <HydratedRouter> element"),e}function jt(e,t){let n=i.useContext(ae),[o,r]=i.useState(!1),[a,l]=i.useState(!1),{onFocus:u,onBlur:s,onMouseEnter:c,onMouseLeave:d,onTouchStart:f}=t,y=i.useRef(null);i.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let p=w=>{w.forEach(g=>{l(g.isIntersecting)})},m=new IntersectionObserver(p,{threshold:.5});return y.current&&m.observe(y.current),()=>{m.disconnect()}}},[e]),i.useEffect(()=>{if(o){let p=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(p)}}},[o]);let h=()=>{r(!0)},v=()=>{r(!1),l(!1)};return n?e!=="intent"?[a,y,{}]:[a,y,{onFocus:B(u,h),onBlur:B(s,v),onMouseEnter:B(c,h),onMouseLeave:B(d,v),onTouchStart:B(f,h)}]:[!1,y,{}]}function B(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Jt({page:e,...t}){let{router:n}=Se(),o=i.useMemo(()=>fe(n.routes,e,n.basename),[n.routes,e,n.basename]);return o?i.createElement(Vt,{page:e,matches:o,...t}):null}function zt(e){let{manifest:t,routeModules:n}=Le(),[o,r]=i.useState([]);return i.useEffect(()=>{let a=!1;return Ut(e,t,n).then(l=>{a||r(l)}),()=>{a=!0}},[e,t,n]),o}function Vt({page:e,matches:t,...n}){let o=k(),{future:r,manifest:a,routeModules:l}=Le(),{basename:u}=Se(),{loaderData:s,matches:c}=Ht(),d=i.useMemo(()=>ce(e,t,c,a,o,"data"),[e,t,c,a,o]),f=i.useMemo(()=>ce(e,t,c,a,o,"assets"),[e,t,c,a,o]),y=i.useMemo(()=>{if(e===o.pathname+o.search+o.hash)return[];let p=new Set,m=!1;if(t.forEach(g=>{let R=a.routes[g.route.id];!R||!R.hasLoader||(!d.some(b=>b.route.id===g.route.id)&&g.route.id in s&&l[g.route.id]?.shouldRevalidate||R.hasClientLoader?m=!0:p.add(g.route.id))}),p.size===0)return[];let w=Dt(e,u,r.unstable_trailingSlashAwareDataRequests,"data");return m&&p.size>0&&w.searchParams.set("_routes",t.filter(g=>p.has(g.route.id)).map(g=>g.route.id).join(",")),[w.pathname+w.search]},[u,r.unstable_trailingSlashAwareDataRequests,s,o,a,d,t,e,l]),h=i.useMemo(()=>At(f,a),[f,a]),v=zt(f);return i.createElement(i.Fragment,null,y.map(p=>i.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...n})),h.map(p=>i.createElement("link",{key:p,rel:"modulepreload",href:p,...n})),v.map(({key:p,link:m})=>i.createElement("link",{key:p,nonce:n.nonce,...m,crossOrigin:m.crossOrigin??n.crossOrigin})))}function Kt(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Yt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Yt&&(window.__reactRouterVersion="7.13.0")}catch{}function un({basename:e,children:t,unstable_useTransitions:n,window:o}){let r=i.useRef();r.current==null&&(r.current=Oe({window:o,v5Compat:!0}));let a=r.current,[l,u]=i.useState({action:a.action,location:a.location}),s=i.useCallback(c=>{n===!1?u(c):i.startTransition(()=>u(c))},[n]);return i.useLayoutEffect(()=>a.listen(s),[a,s]),i.createElement(be,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:a,unstable_useTransitions:n})}var Pe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$e=i.forwardRef(function({onClick:t,discover:n="render",prefetch:o="none",relative:r,reloadDocument:a,replace:l,state:u,target:s,to:c,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:y,...h},v){let{basename:p,unstable_useTransitions:m}=i.useContext(C),w=typeof c=="string"&&Pe.test(c),g=pe(c,p);c=g.to;let R=ft(c,{relative:r}),[b,x,T]=jt(o,h),O=Qt(c,{replace:l,state:u,target:s,preventScrollReset:d,relative:r,viewTransition:f,unstable_defaultShouldRevalidate:y,unstable_useTransitions:m});function N(A){t&&t(A),A.defaultPrevented||O(A)}let I=i.createElement("a",{...h,...T,href:g.absoluteURL||R,onClick:g.isExternal||a?t:N,ref:Kt(v,x),target:s,"data-discover":!w&&n==="render"?"true":void 0});return b&&!w?i.createElement(i.Fragment,null,I,i.createElement(Jt,{page:R})):I});$e.displayName="Link";var Gt=i.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:o="",end:r=!1,style:a,to:l,viewTransition:u,children:s,...c},d){let f=_(l,{relative:c.relative}),y=k(),h=i.useContext(V),{navigator:v,basename:p}=i.useContext(C),m=h!=null&&rn(f)&&u===!0,w=v.encodeLocation?v.encodeLocation(f).pathname:f.pathname,g=y.pathname,R=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;n||(g=g.toLowerCase(),R=R?R.toLowerCase():null,w=w.toLowerCase()),R&&p&&(R=$(R,p)||R);const b=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let x=g===w||!r&&g.startsWith(w)&&g.charAt(b)==="/",T=R!=null&&(R===w||!r&&R.startsWith(w)&&R.charAt(w.length)==="/"),O={isActive:x,isPending:T,isTransitioning:m},N=x?t:void 0,I;typeof o=="function"?I=o(O):I=[o,x?"active":null,T?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let A=typeof a=="function"?a(O):a;return i.createElement($e,{...c,"aria-current":N,className:I,ref:d,style:A,to:l,viewTransition:u},typeof s=="function"?s(O):s)});Gt.displayName="NavLink";var qt=i.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:o,replace:r,state:a,method:l=H,action:u,onSubmit:s,relative:c,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:y,...h},v)=>{let{unstable_useTransitions:p}=i.useContext(C),m=tn(),w=nn(u,{relative:c}),g=l.toLowerCase()==="get"?"get":"post",R=typeof u=="string"&&Pe.test(u),b=x=>{if(s&&s(x),x.defaultPrevented)return;x.preventDefault();let T=x.nativeEvent.submitter,O=T?.getAttribute("formmethod")||l,N=()=>m(T||x.currentTarget,{fetcherKey:t,method:O,navigate:n,replace:r,state:a,relative:c,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:y});p&&n!==!1?i.startTransition(()=>N()):N()};return i.createElement("form",{ref:v,method:g,action:w,onSubmit:o?s:b,...h,"data-discover":!R&&e==="render"?"true":void 0})});qt.displayName="Form";function Xt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ke(e){let t=i.useContext(F);return E(t,Xt(e)),t}function Qt(e,{target:t,replace:n,state:o,preventScrollReset:r,relative:a,viewTransition:l,unstable_defaultShouldRevalidate:u,unstable_useTransitions:s}={}){let c=Ee(),d=k(),f=_(e,{relative:a});return i.useCallback(y=>{if(Tt(y,t)){y.preventDefault();let h=n!==void 0?n:D(d)===D(f),v=()=>c(e,{replace:h,state:o,preventScrollReset:r,relative:a,viewTransition:l,unstable_defaultShouldRevalidate:u});s?i.startTransition(()=>v()):v()}},[d,c,f,n,o,t,e,r,a,l,u,s])}var Zt=0,en=()=>`__${String(++Zt)}__`;function tn(){let{router:e}=ke("useSubmit"),{basename:t}=i.useContext(C),n=xt(),o=e.fetch,r=e.navigate;return i.useCallback(async(a,l={})=>{let{action:u,method:s,encType:c,formData:d,body:f}=It(a,t);if(l.navigate===!1){let y=l.fetcherKey||en();await o(y,n,l.action||u,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:d,body:f,formMethod:l.method||s,formEncType:l.encType||c,flushSync:l.flushSync})}else await r(l.action||u,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:d,body:f,formMethod:l.method||s,formEncType:l.encType||c,replace:l.replace,state:l.state,fromRouteId:n,flushSync:l.flushSync,viewTransition:l.viewTransition})},[o,r,t,n])}function nn(e,{relative:t}={}){let{basename:n}=i.useContext(C),o=i.useContext(L);E(o,"useFormAction must be used inside a RouteContext");let[r]=o.matches.slice(-1),a={..._(e||".",{relative:t})},l=k();if(e==null){a.search=l.search;let u=new URLSearchParams(a.search),s=u.getAll("index");if(s.some(d=>d==="")){u.delete("index"),s.filter(f=>f).forEach(f=>u.append("index",f));let d=u.toString();a.search=d?`?${d}`:""}}return(!e||e===".")&&r.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:P([n,a.pathname])),D(a)}function rn(e,{relative:t}={}){let n=i.useContext(ye);E(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=ke("useViewTransitionState"),r=_(e,{relative:t});if(!n.isTransitioning)return!1;let a=$(n.currentLocation.pathname,o)||n.currentLocation.pathname,l=$(n.nextLocation.pathname,o)||n.nextLocation.pathname;return z(r.pathname,l)!=null||z(r.pathname,a)!=null}export{un as B,on as M,ln as N,k as a,U as b,Ee as u};
Binary file
@@ -0,0 +1,27 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <!-- Created with Inkscape (http://www.inkscape.org/) -->
3
+
4
+ <svg
5
+ width="366.67789"
6
+ height="331.30933"
7
+ viewBox="0 0 97.016858 87.658923"
8
+ version="1.1"
9
+ id="svg1"
10
+ xml:space="preserve"
11
+ xmlns="http://www.w3.org/2000/svg"
12
+ xmlns:svg="http://www.w3.org/2000/svg"><defs
13
+ id="defs1" /><g
14
+ id="layer1"
15
+ transform="translate(186.19563,-780.65573)"><g
16
+ id="g1-7-1-6-2-1"
17
+ transform="matrix(4.9815479,0,0,4.9855822,-690.60878,46.524148)"><path
18
+ style="font-style:italic;font-weight:bold;font-size:19.4819px;line-height:2.5;font-family:'Russo One';-inkscape-font-specification:'Russo One Medium Italic';text-align:center;letter-spacing:0px;text-anchor:middle;fill-rule:evenodd;stroke:#000000;stroke-width:0.613604;stroke-linecap:round;stroke-linejoin:round"
19
+ d="m 149.44066,161.19505 h -3.50674 v -10.90986 h -4.0912 v -2.72747 h 11.68914 v 2.72747 h -4.0912 z"
20
+ id="text1-4-3-3-1-0"
21
+ transform="skewX(-15)"
22
+ aria-label="T" /><path
23
+ style="font-style:italic;font-weight:bold;font-size:19.4819px;line-height:2.5;font-family:'Russo One';-inkscape-font-specification:'Russo One Medium Italic';text-align:end;letter-spacing:0px;text-anchor:end;fill:#ff8a00;fill-rule:evenodd;stroke:#ff8a00;stroke-width:0.613604;stroke-linecap:round;stroke-linejoin:round"
24
+ d="m 153.53888,164.5266 h -3.50674 v -13.63733 h 10.81245 v 2.72746 h -7.30571 v 3.21452 h 5.74716 v 2.72746 h -5.74716 z"
25
+ id="text1-9-8-4-3-7-2"
26
+ transform="skewX(-15)"
27
+ aria-label="F" /></g></g></svg>
@@ -0,0 +1,35 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <!-- Created with Inkscape (http://www.inkscape.org/) -->
3
+
4
+ <svg
5
+ width="412.72354"
6
+ height="412.72339"
7
+ viewBox="0 0 109.19977 109.19973"
8
+ version="1.1"
9
+ id="svg1"
10
+ xml:space="preserve"
11
+ xmlns="http://www.w3.org/2000/svg"
12
+ xmlns:svg="http://www.w3.org/2000/svg"><defs
13
+ id="defs1" /><g
14
+ id="layer1"
15
+ transform="translate(137.06029,-861.29626)"><rect
16
+ style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.22621;stroke-linecap:round;stroke-linejoin:round"
17
+ id="rect11"
18
+ width="108.97356"
19
+ height="108.97356"
20
+ x="-136.94717"
21
+ y="861.40936"
22
+ ry="7.9375"
23
+ rx="7.9375" /><g
24
+ id="g1-7-1-6-2-1-9"
25
+ transform="matrix(4.9815479,0,0,4.9855822,-635.38196,137.93512)"><path
26
+ style="font-style:italic;font-weight:bold;font-size:19.4819px;line-height:2.5;font-family:'Russo One';-inkscape-font-specification:'Russo One Medium Italic';text-align:center;letter-spacing:0px;text-anchor:middle;fill:#ffffff;fill-rule:evenodd;stroke:#ffffff;stroke-width:0.613604;stroke-linecap:round;stroke-linejoin:round"
27
+ d="m 149.44066,161.19505 h -3.50674 v -10.90986 h -4.0912 v -2.72747 h 11.68914 v 2.72747 h -4.0912 z"
28
+ id="text1-4-3-3-1-0-3"
29
+ transform="skewX(-15)"
30
+ aria-label="T" /><path
31
+ style="font-style:italic;font-weight:bold;font-size:19.4819px;line-height:2.5;font-family:'Russo One';-inkscape-font-specification:'Russo One Medium Italic';text-align:end;letter-spacing:0px;text-anchor:end;fill:#ff8a00;fill-rule:evenodd;stroke:#ff8a00;stroke-width:0.613604;stroke-linecap:round;stroke-linejoin:round"
32
+ d="m 153.53888,164.5266 h -3.50674 v -13.63733 h 10.81245 v 2.72746 h -7.30571 v 3.21452 h 5.74716 v 2.72746 h -5.74716 z"
33
+ id="text1-9-8-4-3-7-2-7"
34
+ transform="skewX(-15)"
35
+ aria-label="F" /></g></g></svg>
@@ -0,0 +1,27 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <!-- Created with Inkscape (http://www.inkscape.org/) -->
3
+
4
+ <svg
5
+ width="366.67786"
6
+ height="331.30933"
7
+ viewBox="0 0 97.01685 87.658923"
8
+ version="1.1"
9
+ id="svg1"
10
+ xml:space="preserve"
11
+ xmlns="http://www.w3.org/2000/svg"
12
+ xmlns:svg="http://www.w3.org/2000/svg"><defs
13
+ id="defs1" /><g
14
+ id="layer1"
15
+ transform="translate(130.96881,-872.06668)"><g
16
+ id="g1-7-1-6-2-1-9"
17
+ transform="matrix(4.9815479,0,0,4.9855822,-635.38196,137.93512)"><path
18
+ style="font-style:italic;font-weight:bold;font-size:19.4819px;line-height:2.5;font-family:'Russo One';-inkscape-font-specification:'Russo One Medium Italic';text-align:center;letter-spacing:0px;text-anchor:middle;fill:#ffffff;fill-rule:evenodd;stroke:#ffffff;stroke-width:0.613604;stroke-linecap:round;stroke-linejoin:round"
19
+ d="m 149.44066,161.19505 h -3.50674 v -10.90986 h -4.0912 v -2.72747 h 11.68914 v 2.72747 h -4.0912 z"
20
+ id="text1-4-3-3-1-0-3"
21
+ transform="skewX(-15)"
22
+ aria-label="T" /><path
23
+ style="font-style:italic;font-weight:bold;font-size:19.4819px;line-height:2.5;font-family:'Russo One';-inkscape-font-specification:'Russo One Medium Italic';text-align:end;letter-spacing:0px;text-anchor:end;fill:#ff8a00;fill-rule:evenodd;stroke:#ff8a00;stroke-width:0.613604;stroke-linecap:round;stroke-linejoin:round"
24
+ d="m 153.53888,164.5266 h -3.50674 v -13.63733 h 10.81245 v 2.72746 h -7.30571 v 3.21452 h 5.74716 v 2.72746 h -5.74716 z"
25
+ id="text1-9-8-4-3-7-2-7"
26
+ transform="skewX(-15)"
27
+ aria-label="F" /></g></g></svg>
@@ -0,0 +1 @@
1
+ {"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
Binary file
@@ -0,0 +1,17 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" width="1000" height="1000"><style>
2
+ #light-icon {
3
+ display: inline;
4
+ }
5
+ #dark-icon {
6
+ display: none;
7
+ }
8
+
9
+ @media (prefers-color-scheme: dark) {
10
+ #light-icon {
11
+ display: none;
12
+ }
13
+ #dark-icon {
14
+ display: inline;
15
+ }
16
+ }
17
+ </style><g id="light-icon"><svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" width="1000" height="1000"><g><g transform="matrix(2.7271892504890327,0,0,2.7271892504890327,0,48.22837831863819)"><svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="366.67789" height="331.30933" viewBox="0 0 97.016858 87.658923" id="svg1" xml:space="preserve" xmlns:svg="http://www.w3.org/2000/svg"><defs id="defs1"></defs><g id="layer1" transform="translate(186.19563,-780.65573)"><g id="g1-7-1-6-2-1" transform="matrix(4.9815479,0,0,4.9855822,-690.60878,46.524148)"><path style="font-style:italic;font-weight:bold;font-size:19.4819px;line-height:2.5;font-family:'Russo One';-inkscape-font-specification:'Russo One Medium Italic';text-align:center;letter-spacing:0px;text-anchor:middle;fill-rule:evenodd;stroke:#000000;stroke-width:0.613604;stroke-linecap:round;stroke-linejoin:round" d="m 149.44066,161.19505 h -3.50674 v -10.90986 h -4.0912 v -2.72747 h 11.68914 v 2.72747 h -4.0912 z" id="text1-4-3-3-1-0" transform="skewX(-15)" aria-label="T"></path><path style="font-style:italic;font-weight:bold;font-size:19.4819px;line-height:2.5;font-family:'Russo One';-inkscape-font-specification:'Russo One Medium Italic';text-align:end;letter-spacing:0px;text-anchor:end;fill:#ff8a00;fill-rule:evenodd;stroke:#ff8a00;stroke-width:0.613604;stroke-linecap:round;stroke-linejoin:round" d="m 153.53888,164.5266 h -3.50674 v -13.63733 h 10.81245 v 2.72746 h -7.30571 v 3.21452 h 5.74716 v 2.72746 h -5.74716 z" id="text1-9-8-4-3-7-2" transform="skewX(-15)" aria-label="F"></path></g></g></svg></g></g></svg></g><g id="dark-icon"><svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" width="1000" height="1000"><g><g transform="matrix(2.727189473615887,0,0,2.727189473615887,0,48.228341356633905)"><svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="366.67786" height="331.30933" viewBox="0 0 97.01685 87.658923" id="svg1" xml:space="preserve" xmlns:svg="http://www.w3.org/2000/svg"><defs id="defs1"></defs><g id="layer1" transform="translate(130.96881,-872.06668)"><g id="g1-7-1-6-2-1-9" transform="matrix(4.9815479,0,0,4.9855822,-635.38196,137.93512)"><path style="font-style:italic;font-weight:bold;font-size:19.4819px;line-height:2.5;font-family:'Russo One';-inkscape-font-specification:'Russo One Medium Italic';text-align:center;letter-spacing:0px;text-anchor:middle;fill:#ffffff;fill-rule:evenodd;stroke:#ffffff;stroke-width:0.613604;stroke-linecap:round;stroke-linejoin:round" d="m 149.44066,161.19505 h -3.50674 v -10.90986 h -4.0912 v -2.72747 h 11.68914 v 2.72747 h -4.0912 z" id="text1-4-3-3-1-0-3" transform="skewX(-15)" aria-label="T"></path><path style="font-style:italic;font-weight:bold;font-size:19.4819px;line-height:2.5;font-family:'Russo One';-inkscape-font-specification:'Russo One Medium Italic';text-align:end;letter-spacing:0px;text-anchor:end;fill:#ff8a00;fill-rule:evenodd;stroke:#ff8a00;stroke-width:0.613604;stroke-linecap:round;stroke-linejoin:round" d="m 153.53888,164.5266 h -3.50674 v -13.63733 h 10.81245 v 2.72746 h -7.30571 v 3.21452 h 5.74716 v 2.72746 h -5.74716 z" id="text1-9-8-4-3-7-2-7" transform="skewX(-15)" aria-label="F"></path></g></g></svg></g></g></svg></g></svg>
@@ -1 +1,21 @@
1
- {"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
1
+ {
2
+ "name": "Taskforce HQ",
3
+ "short_name": "Taskforce",
4
+ "icons": [
5
+ {
6
+ "src": "/web-app-manifest-192x192.png",
7
+ "sizes": "192x192",
8
+ "type": "image/png",
9
+ "purpose": "maskable"
10
+ },
11
+ {
12
+ "src": "/web-app-manifest-512x512.png",
13
+ "sizes": "512x512",
14
+ "type": "image/png",
15
+ "purpose": "maskable"
16
+ }
17
+ ],
18
+ "theme_color": "#ffffff",
19
+ "background_color": "#ffffff",
20
+ "display": "standalone"
21
+ }
@@ -4,14 +4,17 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <link rel="icon" type="image/x-icon" href="/taskforce/favicon/favicon.ico" />
7
+ <link rel="icon" type="image/png" sizes="32x32" href="/favicon/favicon-32x32.png" />
8
+ <link rel="icon" type="image/png" sizes="16x16" href="/favicon/favicon-16x16.png" />
9
+ <link rel="apple-touch-icon" href="/taskforce/favicon/apple-touch-icon.png" />
7
10
  <title>Taskforce Dashboard</title>
8
- <script type="module" crossorigin src="/taskforce/assets/index-MCZuNNfn.js"></script>
9
- <link rel="modulepreload" crossorigin href="/taskforce/assets/vendor-react-DdIDsh7f.js">
10
- <link rel="modulepreload" crossorigin href="/taskforce/assets/vendor-icons-ZFG3SGwo.js">
11
- <link rel="modulepreload" crossorigin href="/taskforce/assets/vendor-markdown-CKYkQHfj.js">
12
- <link rel="modulepreload" crossorigin href="/taskforce/assets/vendor-dnd-BI1K77C1.js">
13
- <link rel="modulepreload" crossorigin href="/taskforce/assets/vendor-router-BtiNU7Dl.js">
14
- <link rel="stylesheet" crossorigin href="/taskforce/assets/index-0W5vyCpn.css">
11
+ <script type="module" crossorigin src="/taskforce/assets/index-Bzqy5QGm.js"></script>
12
+ <link rel="modulepreload" crossorigin href="/taskforce/assets/vendor-react-CKJs5o3c.js">
13
+ <link rel="modulepreload" crossorigin href="/taskforce/assets/vendor-icons-QZyhEwgT.js">
14
+ <link rel="modulepreload" crossorigin href="/taskforce/assets/vendor-markdown-BUxTU7dS.js">
15
+ <link rel="modulepreload" crossorigin href="/taskforce/assets/vendor-dnd-DRzYolkg.js">
16
+ <link rel="modulepreload" crossorigin href="/taskforce/assets/vendor-router-BbWMxlnO.js">
17
+ <link rel="stylesheet" crossorigin href="/taskforce/assets/index-DxRiI3tY.css">
15
18
  </head>
16
19
  <body>
17
20
  <div id="root"></div>
Binary file
Binary file
Binary file
@@ -0,0 +1,20 @@
1
+ import type { AttachmentItem, TaskItem } from '../types';
2
+ export interface OpenAnnotatedAttachmentDetail {
3
+ taskId?: string;
4
+ taskReferenceLabel?: string;
5
+ assetId: string;
6
+ imageReferenceLabel?: string;
7
+ path: string;
8
+ displayName: string;
9
+ }
10
+ type AnnotatedAttachmentTarget = string | AttachmentItem;
11
+ export declare function canOpenAnnotatedAttachment(target: AnnotatedAttachmentTarget, options?: {
12
+ taskId?: string | null;
13
+ taskReferenceLabel?: string | null;
14
+ }): boolean;
15
+ export declare function dispatchOpenAnnotatedAttachment(target: AnnotatedAttachmentTarget, options?: {
16
+ taskId?: string | null;
17
+ taskReferenceLabel?: string | null;
18
+ }): boolean;
19
+ export declare function resolveAnnotatedAttachmentDetail(detail: OpenAnnotatedAttachmentDetail | null | undefined, tasks: Array<Pick<TaskItem, 'id' | 'referenceNumber' | 'referenceLabel'>>): OpenAnnotatedAttachmentDetail | null;
20
+ export {};
@@ -0,0 +1,74 @@
1
+ import { getImageReferenceLabel } from './imageReferences';
2
+ import { getTaskReferenceLabel } from './taskReferences';
3
+ function normalizeCandidate(value) {
4
+ return value.trim().replace(/\\/g, '/');
5
+ }
6
+ function resolvePath(target) {
7
+ return typeof target === 'string' ? target : String(target.path || '').trim();
8
+ }
9
+ function isImagePath(pathValue) {
10
+ return /\.(png|jpe?g|webp)(\?|#|$)/i.test(pathValue);
11
+ }
12
+ function resolveDisplayName(target) {
13
+ if (typeof target === 'string') {
14
+ return normalizeCandidate(target).split('/').pop() || 'Image attachment';
15
+ }
16
+ return String(target.caption
17
+ || target.displayName
18
+ || target.originalFilename
19
+ || target.fsPath
20
+ || target.path.split('/').pop()
21
+ || 'Image attachment').trim();
22
+ }
23
+ export function canOpenAnnotatedAttachment(target, options) {
24
+ if (typeof target === 'string')
25
+ return false;
26
+ const assetId = String(target.assetId || '').trim();
27
+ const path = resolvePath(target);
28
+ return Boolean(assetId && path && isImagePath(path));
29
+ }
30
+ export function dispatchOpenAnnotatedAttachment(target, options) {
31
+ if (!canOpenAnnotatedAttachment(target, options))
32
+ return false;
33
+ const attachment = target;
34
+ const taskId = String(options?.taskId || attachment.taskId || '').trim();
35
+ const taskReferenceLabel = String(options?.taskReferenceLabel || '').trim();
36
+ const assetId = String(attachment.assetId || '').trim();
37
+ const imageReferenceLabel = getImageReferenceLabel(attachment);
38
+ const path = resolvePath(target);
39
+ const event = new CustomEvent('taskforce:open-annotated-attachment', {
40
+ detail: {
41
+ ...(taskId ? { taskId } : {}),
42
+ ...(taskReferenceLabel ? { taskReferenceLabel } : {}),
43
+ assetId,
44
+ ...(imageReferenceLabel ? { imageReferenceLabel } : {}),
45
+ path,
46
+ displayName: resolveDisplayName(target),
47
+ },
48
+ cancelable: true,
49
+ });
50
+ return !window.dispatchEvent(event);
51
+ }
52
+ export function resolveAnnotatedAttachmentDetail(detail, tasks) {
53
+ if (!detail)
54
+ return null;
55
+ const taskId = String(detail.taskId || '').trim();
56
+ const assetId = String(detail.assetId || '').trim();
57
+ const path = String(detail.path || '').trim();
58
+ const displayName = String(detail.displayName || '').trim() || 'Image attachment';
59
+ if (!assetId || !path)
60
+ return null;
61
+ const explicitLabel = String(detail.taskReferenceLabel || '').trim();
62
+ const matchedTask = taskId ? tasks.find((task) => task.id === taskId) : undefined;
63
+ const taskReferenceLabel = taskId
64
+ ? (explicitLabel || getTaskReferenceLabel(matchedTask) || taskId)
65
+ : undefined;
66
+ return {
67
+ ...(taskId ? { taskId } : {}),
68
+ ...(taskReferenceLabel ? { taskReferenceLabel } : {}),
69
+ assetId,
70
+ imageReferenceLabel: String(detail.imageReferenceLabel || '').trim() || undefined,
71
+ path,
72
+ displayName,
73
+ };
74
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,108 @@
1
+ import { describe, expect, it, vi } from 'vitest';
2
+ import { canOpenAnnotatedAttachment, dispatchOpenAnnotatedAttachment, resolveAnnotatedAttachmentDetail } from './annotatedAttachments';
3
+ describe('annotatedAttachments helpers', () => {
4
+ it('only allows editable image formats for annotated attachments', () => {
5
+ expect(canOpenAnnotatedAttachment({
6
+ path: '/api/taskforce/context/image.png',
7
+ assetId: 'asset-image',
8
+ })).toBe(true);
9
+ expect(canOpenAnnotatedAttachment({
10
+ path: '/api/taskforce/context/animated.gif',
11
+ assetId: 'asset-gif',
12
+ })).toBe(false);
13
+ });
14
+ it('dispatches annotated attachment events with canonical detail', () => {
15
+ const dispatchSpy = vi.spyOn(window, 'dispatchEvent').mockReturnValue(false);
16
+ const handled = dispatchOpenAnnotatedAttachment({
17
+ path: '/api/taskforce/context/workspaces%2Fworkspace-1%2Fassets%2Fimages%2Fasset-image-1-ui.png',
18
+ assetId: 'asset-image-1',
19
+ referenceLabel: 'I-9',
20
+ taskId: 'task-1',
21
+ displayName: 'UI Screenshot',
22
+ originalFilename: 'ui.png',
23
+ }, { taskReferenceLabel: 'T-101' });
24
+ expect(handled).toBe(true);
25
+ expect(dispatchSpy).toHaveBeenCalledWith(expect.objectContaining({
26
+ type: 'taskforce:open-annotated-attachment',
27
+ detail: expect.objectContaining({
28
+ taskId: 'task-1',
29
+ taskReferenceLabel: 'T-101',
30
+ assetId: 'asset-image-1',
31
+ imageReferenceLabel: 'I-9',
32
+ displayName: 'UI Screenshot',
33
+ })
34
+ }));
35
+ dispatchSpy.mockRestore();
36
+ });
37
+ it('dispatches canonical image detail without requiring a task id', () => {
38
+ const dispatchSpy = vi.spyOn(window, 'dispatchEvent').mockReturnValue(false);
39
+ const handled = dispatchOpenAnnotatedAttachment({
40
+ path: '/api/taskforce/context/workspaces%2Fworkspace-1%2Fassets%2Fimages%2Fasset-image-2-ui.png',
41
+ assetId: 'asset-image-2',
42
+ referenceLabel: 'I-12',
43
+ displayName: 'Standalone Screenshot',
44
+ originalFilename: 'standalone.png',
45
+ });
46
+ expect(handled).toBe(true);
47
+ expect(dispatchSpy).toHaveBeenCalledWith(expect.objectContaining({
48
+ type: 'taskforce:open-annotated-attachment',
49
+ detail: {
50
+ assetId: 'asset-image-2',
51
+ imageReferenceLabel: 'I-12',
52
+ path: '/api/taskforce/context/workspaces%2Fworkspace-1%2Fassets%2Fimages%2Fasset-image-2-ui.png',
53
+ displayName: 'Standalone Screenshot',
54
+ }
55
+ }));
56
+ dispatchSpy.mockRestore();
57
+ });
58
+ it('derives the image reference label from the reference number when dispatching', () => {
59
+ const dispatchSpy = vi.spyOn(window, 'dispatchEvent').mockReturnValue(false);
60
+ const handled = dispatchOpenAnnotatedAttachment({
61
+ path: '/api/taskforce/context/workspaces%2Fworkspace-1%2Fassets%2Fimages%2Fasset-image-3-ui.png',
62
+ assetId: 'asset-image-3',
63
+ referenceNumber: 22,
64
+ displayName: 'Derived reference screenshot',
65
+ originalFilename: 'derived.png',
66
+ });
67
+ expect(handled).toBe(true);
68
+ expect(dispatchSpy).toHaveBeenCalledWith(expect.objectContaining({
69
+ detail: expect.objectContaining({
70
+ assetId: 'asset-image-3',
71
+ imageReferenceLabel: 'I-22',
72
+ })
73
+ }));
74
+ dispatchSpy.mockRestore();
75
+ });
76
+ it('resolves a missing annotated attachment reference label from the task', () => {
77
+ expect(resolveAnnotatedAttachmentDetail({
78
+ taskId: 'task-1',
79
+ assetId: 'asset-image-1',
80
+ path: '/api/taskforce/context/workspaces%2Fworkspace-1%2Fassets%2Fimages%2Fasset-image-1-ui.png',
81
+ displayName: 'UI Screenshot',
82
+ }, [{
83
+ id: 'task-1',
84
+ referenceNumber: 101,
85
+ referenceLabel: 'T-101',
86
+ }])).toEqual({
87
+ taskId: 'task-1',
88
+ taskReferenceLabel: 'T-101',
89
+ assetId: 'asset-image-1',
90
+ imageReferenceLabel: undefined,
91
+ path: '/api/taskforce/context/workspaces%2Fworkspace-1%2Fassets%2Fimages%2Fasset-image-1-ui.png',
92
+ displayName: 'UI Screenshot',
93
+ });
94
+ });
95
+ it('resolves canonical image detail without requiring task context', () => {
96
+ expect(resolveAnnotatedAttachmentDetail({
97
+ assetId: 'asset-image-2',
98
+ imageReferenceLabel: 'I-12',
99
+ path: '/api/taskforce/context/workspaces%2Fworkspace-1%2Fassets%2Fimages%2Fasset-image-2-ui.png',
100
+ displayName: 'Standalone Screenshot',
101
+ }, [])).toEqual({
102
+ assetId: 'asset-image-2',
103
+ imageReferenceLabel: 'I-12',
104
+ path: '/api/taskforce/context/workspaces%2Fworkspace-1%2Fassets%2Fimages%2Fasset-image-2-ui.png',
105
+ displayName: 'Standalone Screenshot',
106
+ });
107
+ });
108
+ });
@@ -0,0 +1,26 @@
1
+ import type { TaskAssignee } from '../types';
2
+ export declare const TASK_ASSIGNEE_UNASSIGNED: "unassigned";
3
+ export declare const TASK_ASSIGNEE_AGENT: "agent";
4
+ export type AssigneeKind = 'unassigned' | 'agent' | 'member';
5
+ export interface WorkspaceAssigneeCandidate {
6
+ userId: string;
7
+ email: string;
8
+ displayName?: string | null;
9
+ }
10
+ export interface TaskAssigneeOption {
11
+ value: TaskAssignee;
12
+ label: string;
13
+ icon: string;
14
+ color: string;
15
+ kind: AssigneeKind;
16
+ }
17
+ export declare function isAgentAssignee(value: unknown): boolean;
18
+ export declare function isUnassignedAssignee(value: unknown): boolean;
19
+ export declare function getAssigneeKind(value: unknown): AssigneeKind;
20
+ export declare function formatWorkspaceAssigneeLabel(candidate: WorkspaceAssigneeCandidate): string;
21
+ export declare function createDefaultAssigneeOptions(): TaskAssigneeOption[];
22
+ export declare function createWorkspaceAssigneeOptions(candidates: WorkspaceAssigneeCandidate[]): TaskAssigneeOption[];
23
+ export declare function mergeAssigneeOptions(options: TaskAssigneeOption[] | undefined | null): TaskAssigneeOption[];
24
+ export declare function ensureAssigneeOptionPresent(options: TaskAssigneeOption[], assignee: TaskAssignee | undefined | null): TaskAssigneeOption[];
25
+ export declare function normalizeAssigneeOptions(options: TaskAssigneeOption[] | undefined | null): TaskAssigneeOption[];
26
+ export declare function getAssigneeLabel(assignee: TaskAssignee | undefined | null, options: TaskAssigneeOption[] | undefined | null): string;