@taskforcehq/taskforce 0.3.303 → 0.3.304

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 (165) hide show
  1. package/dist/Taskforce.module.css +102 -5
  2. package/dist/TaskforceCore.js +514 -212
  3. package/dist/TaskforceCore.test.js +1172 -133
  4. package/dist/annotatedAttachments/service.d.ts +1 -1
  5. package/dist/annotatedAttachments/types.d.ts +1 -1
  6. package/dist/components/features/AgentsModule.js +1 -1
  7. package/dist/components/features/AgentsModule.test.js +1 -1
  8. package/dist/components/features/TaskSettings.js +58 -38
  9. package/dist/components/features/TaskSettings.test.js +139 -40
  10. package/dist/components/task/TaskActionHeader.d.ts +2 -1
  11. package/dist/components/task/TaskActionHeader.js +3 -3
  12. package/dist/components/task/TaskActionHeader.test.js +8 -0
  13. package/dist/components/task/TaskCard.js +16 -1
  14. package/dist/components/task/TaskCard.test.js +31 -0
  15. package/dist/components/task/TaskForm.d.ts +2 -1
  16. package/dist/components/task/TaskForm.js +22 -4
  17. package/dist/components/task/TaskForm.test.js +46 -0
  18. package/dist/components/task/TaskKanban.d.ts +1 -1
  19. package/dist/components/task/TaskKanban.js +31 -160
  20. package/dist/components/task/TaskStatusActions.d.ts +6 -1
  21. package/dist/components/task/TaskStatusActions.js +8 -3
  22. package/dist/components/task/TaskStatusActions.test.js +9 -0
  23. package/dist/components/task/taskKanbanDropRules.d.ts +58 -0
  24. package/dist/components/task/taskKanbanDropRules.js +187 -0
  25. package/dist/components/task/taskKanbanDropRules.test.d.ts +1 -0
  26. package/dist/components/task/taskKanbanDropRules.test.js +114 -0
  27. package/dist/components/ui/Modal.d.ts +1 -1
  28. package/dist/components/ui/Modal.js +1 -0
  29. package/dist/components/views/AppShellHeader.js +5 -1
  30. package/dist/components/views/AppShellHeader.test.js +4 -0
  31. package/dist/components/views/PlanComparisonPage.d.ts +3 -2
  32. package/dist/components/views/PlanComparisonPage.js +4 -2
  33. package/dist/components/views/PlanComparisonPage.test.js +4 -0
  34. package/dist/components/views/PlansPage.d.ts +5 -1
  35. package/dist/components/views/PlansPage.js +39 -12
  36. package/dist/components/views/PlansPage.test.js +59 -2
  37. package/dist/components/views/StandaloneLayout.js +113 -38
  38. package/dist/components/views/WidgetView.js +11 -2
  39. package/dist/components/views/standalone/modals/SyncStatusModal.js +1 -1
  40. package/dist/core/DeletedTaskLifecycleService.d.ts +2 -1
  41. package/dist/core/PlanEntitlementService.d.ts +3 -1
  42. package/dist/core/PlanEntitlementService.js +61 -11
  43. package/dist/core/SignupMonetizationSettings.test.js +37 -2
  44. package/dist/core/TaskActivityService.d.ts +4 -1
  45. package/dist/core/TaskActivityService.js +45 -0
  46. package/dist/core/TaskAuditTimeline.test.js +52 -1
  47. package/dist/core/Taskforce.d.ts +15 -11
  48. package/dist/core/Taskforce.js +43 -2
  49. package/dist/core/WorkspacePlanMode.test.js +65 -0
  50. package/dist/documentReviews/service.d.ts +1 -1
  51. package/dist/documentReviews/types.d.ts +1 -1
  52. package/dist/hooks/auth/useTaskforceAuthBootstrap.d.ts +48 -0
  53. package/dist/hooks/auth/useTaskforceAuthBootstrap.js +219 -0
  54. package/dist/hooks/sync/auth.d.ts +37 -0
  55. package/dist/hooks/sync/auth.js +61 -0
  56. package/dist/hooks/sync/bootstrap.d.ts +34 -0
  57. package/dist/hooks/sync/bootstrap.js +52 -0
  58. package/dist/hooks/sync/orchestratorShared.d.ts +36 -0
  59. package/dist/hooks/sync/orchestratorShared.js +209 -0
  60. package/dist/hooks/sync/orchestratorShared.test.d.ts +1 -0
  61. package/dist/hooks/sync/orchestratorShared.test.js +49 -0
  62. package/dist/hooks/sync/realtime.d.ts +25 -0
  63. package/dist/hooks/sync/realtime.js +60 -0
  64. package/dist/hooks/sync/recovery.d.ts +69 -0
  65. package/dist/hooks/sync/recovery.js +118 -0
  66. package/dist/hooks/sync/transfers.d.ts +122 -0
  67. package/dist/hooks/sync/transfers.js +431 -0
  68. package/dist/hooks/sync/useDataVersionRefresh.d.ts +16 -0
  69. package/dist/hooks/sync/useDataVersionRefresh.js +73 -0
  70. package/dist/hooks/ui/useResourceExport.d.ts +3 -1
  71. package/dist/hooks/ui/useResourceExport.js +5 -2
  72. package/dist/hooks/ui/useWorkflowTemplates.js +11 -6
  73. package/dist/hooks/useRealtimeSync.js +2 -1
  74. package/dist/hooks/useSyncOrchestrator.aiProfiles.test.js +8 -0
  75. package/dist/hooks/useSyncOrchestrator.context-assets.test.d.ts +1 -0
  76. package/dist/hooks/useSyncOrchestrator.context-assets.test.js +228 -0
  77. package/dist/hooks/useSyncOrchestrator.d.ts +5 -4
  78. package/dist/hooks/useSyncOrchestrator.js +314 -873
  79. package/dist/hooks/useSyncOrchestrator.retry-closure.test.js +568 -3
  80. package/dist/hooks/useTaskMutations.js +45 -6
  81. package/dist/hooks/useTaskMutations.test.js +147 -0
  82. package/dist/hooks/useTaskforce.d.ts +8 -2
  83. package/dist/hooks/useTaskforce.js +285 -812
  84. package/dist/hooks/useWorkspaceSyncController.d.ts +1 -0
  85. package/dist/hooks/useWorkspaceSyncController.js +22 -10
  86. package/dist/hooks/workspace/useTaskforceApiRouting.test.js +17 -0
  87. package/dist/hooks/workspace/useTaskforceWorkspaceBootstrap.d.ts +166 -0
  88. package/dist/hooks/workspace/useTaskforceWorkspaceBootstrap.js +434 -0
  89. package/dist/hooks/workspace/workspaceLocalState.d.ts +19 -0
  90. package/dist/hooks/workspace/workspaceLocalState.js +100 -0
  91. package/dist/hooks/workspace/workspaceLocalState.test.d.ts +1 -0
  92. package/dist/hooks/workspace/workspaceLocalState.test.js +59 -0
  93. package/dist/localization/locales/en-US.js +2 -2
  94. package/dist/mcp/canonicalAssetHelpers.d.ts +70 -0
  95. package/dist/mcp/canonicalAssetHelpers.js +259 -0
  96. package/dist/mcp/clientIntegrations.d.ts +12 -1
  97. package/dist/mcp/clientIntegrations.js +161 -6
  98. package/dist/mcp/clientIntegrations.test.js +76 -4
  99. package/dist/mcp/documentHelpers.d.ts +100 -0
  100. package/dist/mcp/documentHelpers.js +161 -0
  101. package/dist/mcp/runtime.js +174 -476
  102. package/dist/mcp/runtime.test.js +81 -8
  103. package/dist/mcp/taskAttachmentHelpers.d.ts +41 -0
  104. package/dist/mcp/taskAttachmentHelpers.js +60 -0
  105. package/dist/mcp/taskAttachmentTypes.d.ts +37 -0
  106. package/dist/mcp/taskAttachmentTypes.js +1 -0
  107. package/dist/plugins/vite.js +1 -1
  108. package/dist/runtime/appGateDefinitions.d.ts +1 -1
  109. package/dist/runtime/appGateDefinitions.js +1 -1
  110. package/dist/server/index.d.ts +1 -0
  111. package/dist/server/index.js +46 -3
  112. package/dist/server/index.test.js +12 -1
  113. package/dist/server/routes/admin.js +13 -19
  114. package/dist/server/routes/auth.js +37 -2
  115. package/dist/server/routes/billing.js +18 -67
  116. package/dist/server/routes/billing.test.js +43 -0
  117. package/dist/server/routes/shared.d.ts +30 -0
  118. package/dist/server/routes/shared.js +26 -0
  119. package/dist/server/routes/sync.integration.test.js +20 -0
  120. package/dist/server/routes/sync.js +110 -237
  121. package/dist/server/routes/tasks.js +49 -7
  122. package/dist/server/routes.js +8 -19
  123. package/dist/server/routes.test.js +243 -5
  124. package/dist/shared/taskActor.d.ts +10 -0
  125. package/dist/shared/taskActor.js +1 -0
  126. package/dist/sync/collaborationSyncPayload.js +4 -0
  127. package/dist/sync/collaborationSyncPayload.test.js +8 -0
  128. package/dist/sync/collaborationSyncState.d.ts +3 -1
  129. package/dist/sync/collaborationSyncState.js +19 -0
  130. package/dist/sync/contentSyncState.js +12 -10
  131. package/dist/sync/syncApplyHandlers.d.ts +87 -1
  132. package/dist/sync/syncApplyHandlers.js +370 -8
  133. package/dist/sync/syncApplyHandlers.test.d.ts +1 -0
  134. package/dist/sync/syncApplyHandlers.test.js +377 -0
  135. package/dist/sync/syncService.d.ts +8 -1
  136. package/dist/sync/syncService.js +36 -2
  137. package/dist/sync/syncService.test.js +48 -0
  138. package/dist/sync/workspacePullFeed.d.ts +1 -0
  139. package/dist/sync/workspacePullFeed.js +66 -59
  140. package/dist/sync/workspacePullFeed.test.js +72 -4
  141. package/dist/sync/workspaceSyncModel.d.ts +22 -1
  142. package/dist/sync/workspaceSyncModel.js +65 -0
  143. package/dist/sync/workspaceSyncModel.test.js +119 -0
  144. package/dist/types.d.ts +2 -10
  145. package/dist/ui/assets/AgentsModule-BLWVbuKP.js +1 -0
  146. package/dist/ui/assets/{AnnotatedAttachmentWorkspace-C_TmXZwA.js → AnnotatedAttachmentWorkspace-BlS-cqnl.js} +1 -1
  147. package/dist/ui/assets/{DocumentWorkspace-C3GyzrWm.js → DocumentWorkspace-BH_6DF6x.js} +1 -1
  148. package/dist/ui/assets/{InitiativesModule-4-Rh2K2n.js → InitiativesModule-BjR6iBf9.js} +1 -1
  149. package/dist/ui/assets/{PlansPage-BlVC_lRq.css → PlansPage-C2dd2n1X.css} +1 -1
  150. package/dist/ui/assets/PlansPage-CSDQ4sLa.js +1 -0
  151. package/dist/ui/assets/TaskSettings-CEDy34Jo.js +9 -0
  152. package/dist/ui/assets/{WorkflowsModule-CGk9s3NJ.js → WorkflowsModule-DnFqdUME.js} +1 -1
  153. package/dist/ui/assets/index-DXUdtH1B.js +6 -0
  154. package/dist/ui/assets/index-Ii0B0rTO.css +1 -0
  155. package/dist/ui/assets/{vendor-icons-pWocEipT.js → vendor-icons-I7ZwG1z_.js} +1 -1
  156. package/dist/ui/index.html +4 -4
  157. package/dist/utils/taskActivity.js +4 -0
  158. package/dist/utils/taskActivity.test.js +25 -1
  159. package/package.json +3 -1
  160. package/scripts/playwright-auth.sh +4 -0
  161. package/dist/ui/assets/AgentsModule-CpsTmrIW.js +0 -1
  162. package/dist/ui/assets/PlansPage-BP7AYOqr.js +0 -1
  163. package/dist/ui/assets/TaskSettings-BOC5F6Ag.js +0 -8
  164. package/dist/ui/assets/index-CLIMgR6g.js +0 -6
  165. package/dist/ui/assets/index-DneETxcu.css +0 -1
@@ -0,0 +1,228 @@
1
+ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
2
+ import { act, renderHook, waitFor } from '@testing-library/react';
3
+ import { useSyncOrchestrator } from './useSyncOrchestrator';
4
+ const { ensureCloudWorkspaceReadyForSyncServiceMock, runWorkspacePullSyncServiceMock, runWorkspacePushSyncServiceMock, syncUserGlobalSettingsServiceMock } = vi.hoisted(() => ({
5
+ ensureCloudWorkspaceReadyForSyncServiceMock: vi.fn(),
6
+ runWorkspacePullSyncServiceMock: vi.fn(),
7
+ runWorkspacePushSyncServiceMock: vi.fn(),
8
+ syncUserGlobalSettingsServiceMock: vi.fn()
9
+ }));
10
+ vi.mock('../sync/syncService', async () => {
11
+ const actual = await vi.importActual('../sync/syncService');
12
+ return {
13
+ ...actual,
14
+ calculateWorkspaceRetryDelayMs: vi.fn(() => 100),
15
+ ensureCloudWorkspaceReadyForSyncService: ensureCloudWorkspaceReadyForSyncServiceMock,
16
+ runWorkspacePullSyncService: runWorkspacePullSyncServiceMock,
17
+ runWorkspacePushSyncService: runWorkspacePushSyncServiceMock,
18
+ syncUserGlobalSettingsService: syncUserGlobalSettingsServiceMock
19
+ };
20
+ });
21
+ function buildInput(overrides) {
22
+ return {
23
+ currentWorkspaceId: 'workspace-local-active',
24
+ cloudAuthConfigured: true,
25
+ runtimeMode: 'local',
26
+ authSessionResolved: true,
27
+ isAuthenticated: true,
28
+ authUserId: 'user-1',
29
+ projectName: 'Test Project',
30
+ resolveCloudAuthUrl: (path) => `https://cloud.example.com${path}`,
31
+ resolveWebSocketUrl: (path) => `wss://api.example.com${path}`,
32
+ realtimeSyncEnabled: false,
33
+ tasks: [],
34
+ archivedTasks: [],
35
+ initiatives: [],
36
+ workstreams: [],
37
+ taxonomies: [],
38
+ setupState: null,
39
+ globalTheme: 'dark',
40
+ locale: 'en-US',
41
+ globalWeekStartsOn: 'monday',
42
+ themeUseGlobalDefault: true,
43
+ setTasks: vi.fn(),
44
+ setArchivedTasks: vi.fn(),
45
+ setAuthBlocked: vi.fn(),
46
+ setIsAuthenticated: vi.fn(),
47
+ checkAuthSession: vi.fn(async () => true),
48
+ setGlobalTheme: vi.fn(),
49
+ setCurrentTheme: vi.fn(),
50
+ setSetupState: vi.fn(),
51
+ setLocale: vi.fn(),
52
+ setGlobalWeekStartsOn: vi.fn(),
53
+ fetchPlanningEntities: vi.fn(async () => { }),
54
+ ...overrides
55
+ };
56
+ }
57
+ describe('useSyncOrchestrator context asset refreshes', () => {
58
+ beforeEach(() => {
59
+ ensureCloudWorkspaceReadyForSyncServiceMock.mockReset();
60
+ runWorkspacePullSyncServiceMock.mockReset();
61
+ runWorkspacePushSyncServiceMock.mockReset();
62
+ syncUserGlobalSettingsServiceMock.mockReset();
63
+ ensureCloudWorkspaceReadyForSyncServiceMock.mockResolvedValue({ success: true });
64
+ runWorkspacePullSyncServiceMock.mockResolvedValue({
65
+ success: true,
66
+ syncedAt: '2026-03-15T18:00:00.000Z',
67
+ cursor: null,
68
+ pages: 0,
69
+ appliedChanges: 0,
70
+ pullRequestMs: 1,
71
+ applyMs: 0,
72
+ pulledDeleteTaskIds: new Set(),
73
+ pulledActiveUpserts: false,
74
+ pulledArchivedUpserts: false,
75
+ documentDecryptFailures: []
76
+ });
77
+ runWorkspacePushSyncServiceMock.mockResolvedValue({
78
+ success: true,
79
+ syncedAt: '2026-03-15T18:00:00.000Z',
80
+ requestMs: 1,
81
+ changeCount: 0,
82
+ deleteCount: 0,
83
+ currentTaskIds: new Set(),
84
+ currentInitiativeIds: new Set(),
85
+ currentInitiativeWatermarks: new Map(),
86
+ currentWorkstreamIds: new Set(),
87
+ currentWorkstreamWatermarks: new Map(),
88
+ currentAiProfileIds: new Set(),
89
+ currentAiProfileWatermarks: new Map(),
90
+ currentDocumentPaths: new Set(),
91
+ currentDocumentWatermarks: new Map(),
92
+ currentAssetPaths: new Set(),
93
+ currentAssetWatermarks: new Map(),
94
+ currentDocumentReviewSessionIds: new Set(),
95
+ currentDocumentReviewSessionWatermarks: new Map(),
96
+ currentDocumentReviewCommentIds: new Set(),
97
+ currentDocumentReviewCommentWatermarks: new Map(),
98
+ currentAnnotatedAttachmentSessionIds: new Set(),
99
+ currentAnnotatedAttachmentSessionWatermarks: new Map(),
100
+ currentTaskEventWatermarks: new Map(),
101
+ deleteTaskIds: new Set(),
102
+ pushedWatermarks: new Map(),
103
+ emittedEventIds: []
104
+ });
105
+ syncUserGlobalSettingsServiceMock.mockResolvedValue({
106
+ success: true,
107
+ mode: 'pulled',
108
+ updatedAt: new Date().toISOString()
109
+ });
110
+ });
111
+ afterEach(() => {
112
+ vi.unstubAllGlobals();
113
+ vi.clearAllMocks();
114
+ });
115
+ it('refreshes only document and asset snapshots when task attachments change', async () => {
116
+ const fetchCounts = {
117
+ documents: 0,
118
+ assets: 0,
119
+ aiProfiles: 0,
120
+ documentReviews: 0,
121
+ annotatedAttachments: 0
122
+ };
123
+ vi.stubGlobal('fetch', vi.fn((url, init) => {
124
+ if (url.includes('/api/taskforce/ui-state?key=workspace-sync')) {
125
+ return Promise.resolve({
126
+ ok: true,
127
+ json: () => Promise.resolve({
128
+ success: true,
129
+ state: {
130
+ version: 2,
131
+ enabled: true,
132
+ phase: 'active',
133
+ pullCursor: null,
134
+ lastPullAt: null,
135
+ lastPushAt: null,
136
+ lastSyncedAt: null
137
+ }
138
+ })
139
+ });
140
+ }
141
+ if (url.includes('/api/taskforce/ui-state') && String(init?.method || '').toUpperCase() === 'POST') {
142
+ return Promise.resolve({ ok: true, json: () => Promise.resolve({ success: true }) });
143
+ }
144
+ if (url.includes('/api/taskforce/sync/workspace/documents')) {
145
+ fetchCounts.documents += 1;
146
+ return Promise.resolve({ ok: true, json: () => Promise.resolve({ documents: [] }) });
147
+ }
148
+ if (url.includes('/api/taskforce/sync/workspace/assets')) {
149
+ fetchCounts.assets += 1;
150
+ return Promise.resolve({ ok: true, json: () => Promise.resolve({ assets: [] }) });
151
+ }
152
+ if (url.includes('/api/taskforce/sync/workspace/ai-profiles')) {
153
+ fetchCounts.aiProfiles += 1;
154
+ return Promise.resolve({ ok: true, json: () => Promise.resolve({ aiProfiles: [] }) });
155
+ }
156
+ if (url.includes('/api/taskforce/sync/workspace/document-reviews')) {
157
+ fetchCounts.documentReviews += 1;
158
+ return Promise.resolve({ ok: true, json: () => Promise.resolve({ sessions: [], comments: [] }) });
159
+ }
160
+ if (url.includes('/api/taskforce/sync/workspace/annotated-attachments')) {
161
+ fetchCounts.annotatedAttachments += 1;
162
+ return Promise.resolve({ ok: true, json: () => Promise.resolve({ sessions: [] }) });
163
+ }
164
+ if (url.includes('/api/taskforce/sync/events')) {
165
+ return Promise.resolve({ ok: true, json: () => Promise.resolve({ success: true }) });
166
+ }
167
+ if (url.includes('/api/taskforce/tasks')) {
168
+ return Promise.resolve({ ok: true, json: () => Promise.resolve({ tasks: [] }) });
169
+ }
170
+ if (url.includes('/api/taskforce/archive')) {
171
+ return Promise.resolve({ ok: true, json: () => Promise.resolve({ archived: [] }) });
172
+ }
173
+ return Promise.resolve({ ok: true, json: () => Promise.resolve({ success: true }) });
174
+ }));
175
+ const baseTask = {
176
+ id: 'task-with-attachments',
177
+ title: 'Task with attachment refreshes',
178
+ description: '',
179
+ category: 'general',
180
+ type: 'task',
181
+ priority: 2,
182
+ complexity: 3,
183
+ status: 'task',
184
+ createdAt: '2026-03-15T12:00:00.000Z',
185
+ updatedAt: '2026-03-15T12:00:00.000Z',
186
+ attachments: [],
187
+ taskEvents: []
188
+ };
189
+ const initialInput = buildInput({
190
+ tasks: [baseTask]
191
+ });
192
+ const { result, rerender, unmount } = renderHook((props) => useSyncOrchestrator(props), {
193
+ initialProps: initialInput
194
+ });
195
+ act(() => {
196
+ result.current.applyWorkspaceSyncStateSnapshot({
197
+ enabled: true,
198
+ phase: 'active',
199
+ pullCursor: null
200
+ });
201
+ });
202
+ await waitFor(() => {
203
+ expect(fetchCounts.documents).toBeGreaterThan(0);
204
+ expect(fetchCounts.assets).toBeGreaterThan(0);
205
+ expect(fetchCounts.aiProfiles).toBeGreaterThan(0);
206
+ expect(fetchCounts.documentReviews).toBeGreaterThan(0);
207
+ });
208
+ const baselineCounts = { ...fetchCounts };
209
+ rerender({
210
+ ...initialInput,
211
+ tasks: [{
212
+ ...baseTask,
213
+ attachments: [{
214
+ id: 'asset-1',
215
+ path: 'workspaces/workspace-local-active/assets/file.txt'
216
+ }]
217
+ }]
218
+ });
219
+ await waitFor(() => {
220
+ expect(fetchCounts.documents).toBeGreaterThan(baselineCounts.documents);
221
+ expect(fetchCounts.assets).toBeGreaterThan(baselineCounts.assets);
222
+ });
223
+ expect(fetchCounts.aiProfiles).toBe(baselineCounts.aiProfiles);
224
+ expect(fetchCounts.documentReviews).toBe(baselineCounts.documentReviews);
225
+ expect(fetchCounts.annotatedAttachments).toBe(baselineCounts.annotatedAttachments);
226
+ unmount();
227
+ });
228
+ });
@@ -1,9 +1,8 @@
1
1
  import type { InitiativeItem, TaskItem, TaskforceTheme, WorkstreamItem } from '../types';
2
2
  import { type WorkspaceSyncPhase } from '../sync/workspaceSyncState';
3
- import { type WorkspaceSyncAiProfileSnapshot } from '../sync/workspaceSyncModel';
4
3
  import type { WorkspaceTaxonomyState } from '../shared/taxonomyState.js';
5
4
  import type { SupportedLocale } from '../localization';
6
- export declare function normalizeWorkspaceSyncAiProfileSnapshotEntry(entry: any): WorkspaceSyncAiProfileSnapshot;
5
+ import { normalizeWorkspaceSyncAiProfileSnapshotEntry } from './sync/orchestratorShared';
7
6
  export interface UseSyncOrchestratorInput {
8
7
  currentWorkspaceId: string;
9
8
  cloudAuthConfigured: boolean;
@@ -41,9 +40,10 @@ export interface UseSyncOrchestratorInput {
41
40
  fetchPlanningEntities: () => Promise<void>;
42
41
  }
43
42
  export type WorkspaceSyncStatus = 'off' | 'syncing' | 'attention' | 'healthy';
43
+ export { normalizeWorkspaceSyncAiProfileSnapshotEntry };
44
44
  export declare function useSyncOrchestrator(input: UseSyncOrchestratorInput): {
45
- userGlobalSyncStatus: "error" | "idle" | "syncing" | "disconnected";
46
- setUserGlobalSyncStatus: import("react").Dispatch<import("react").SetStateAction<"error" | "idle" | "syncing" | "disconnected">>;
45
+ userGlobalSyncStatus: "error" | "idle" | "disconnected" | "syncing";
46
+ setUserGlobalSyncStatus: import("react").Dispatch<import("react").SetStateAction<"error" | "idle" | "disconnected" | "syncing">>;
47
47
  userGlobalSyncError: string | null;
48
48
  setUserGlobalSyncError: import("react").Dispatch<import("react").SetStateAction<string | null>>;
49
49
  workspaceLastPullAt: string | null;
@@ -85,6 +85,7 @@ export declare function useSyncOrchestrator(input: UseSyncOrchestratorInput): {
85
85
  }) => Promise<boolean>;
86
86
  pullWorkspaceChangesFromCloud: (options?: {
87
87
  repairMode?: boolean;
88
+ forceCursorNull?: boolean;
88
89
  }) => Promise<boolean>;
89
90
  saveWorkspaceCloudSyncSettings: (settings: {
90
91
  enabled: boolean;