-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
69 lines (65 loc) · 1.29 KB
/
index.ts
File metadata and controls
69 lines (65 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/**
* cursor-sync - Sync Cursor sessions to OpenSync dashboard
*
* Main exports for programmatic usage
*/
// Re-export types
export {
OPENSYNC_SOURCE,
type OpenSyncSource,
type OpenSyncConfig,
type OpenSyncSession,
type OpenSyncMessage,
type SyncSessionPayload,
type SyncMessagePayload,
type SyncSessionRequest,
type SyncMessageRequest,
type SyncBatchRequest,
type SyncSessionResponse,
type SyncMessageResponse,
type SyncBatchResponse,
type CursorHookPayload,
type CursorBasePayload,
type BeforeSubmitPromptPayload,
type BeforeShellExecutionPayload,
type BeforeMCPExecutionPayload,
type BeforeReadFilePayload,
type AfterFileEditPayload,
type StopPayload,
type HookResponse,
type SessionState,
} from "./types.js";
// Re-export API functions
export {
syncSession,
syncMessage,
syncBatch,
testConnection,
createTestSession,
getStats,
} from "./api.js";
// Re-export config functions
export {
loadConfig,
saveConfig,
clearConfig,
getConfigValue,
setConfigValue,
getApiUrl,
maskApiKey,
loadState,
saveState,
getSession,
updateSession,
markSessionSynced,
clearState,
CONFIG_DIR,
CONFIG_FILE,
} from "./config.js";
// Re-export hook handlers
export {
readPayload,
writeResponse,
allowAction,
handleHook,
} from "./hooks.js";