summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/compilationManager.ts3
-rw-r--r--src/main/fileSyncBridge.ts3
-rw-r--r--src/main/index.ts3
-rw-r--r--src/main/otClient.ts3
-rw-r--r--src/main/otTransform.ts3
-rw-r--r--src/main/otTypes.ts3
-rw-r--r--src/main/overleafProtocol.ts3
-rw-r--r--src/main/overleafSocket.ts3
8 files changed, 24 insertions, 0 deletions
diff --git a/src/main/compilationManager.ts b/src/main/compilationManager.ts
index 8fbd946..72c0c5e 100644
--- a/src/main/compilationManager.ts
+++ b/src/main/compilationManager.ts
@@ -1,3 +1,6 @@
+// Copyright (c) 2026 Yuren Hao
+// Licensed under AGPL-3.0 - see LICENSE file
+
// Manages temp directory for Overleaf socket-mode compilation
import { join, basename } from 'path'
import { writeFile, mkdir, rm } from 'fs/promises'
diff --git a/src/main/fileSyncBridge.ts b/src/main/fileSyncBridge.ts
index e0529cb..0bd24b0 100644
--- a/src/main/fileSyncBridge.ts
+++ b/src/main/fileSyncBridge.ts
@@ -1,3 +1,6 @@
+// Copyright (c) 2026 Yuren Hao
+// Licensed under AGPL-3.0 - see LICENSE file
+
// Bidirectional file sync bridge: temp dir ↔ Overleaf via OT
import { join } from 'path'
import { readFile, writeFile, mkdir } from 'fs/promises'
diff --git a/src/main/index.ts b/src/main/index.ts
index 7fc1c4d..b543b46 100644
--- a/src/main/index.ts
+++ b/src/main/index.ts
@@ -1,3 +1,6 @@
+// Copyright (c) 2026 Yuren Hao
+// Licensed under AGPL-3.0 - see LICENSE file
+
import { app, BrowserWindow, ipcMain, dialog, shell, net } from 'electron'
import { join, basename } from 'path'
import { readFile, writeFile } from 'fs/promises'
diff --git a/src/main/otClient.ts b/src/main/otClient.ts
index 7985c66..dc6bb4c 100644
--- a/src/main/otClient.ts
+++ b/src/main/otClient.ts
@@ -1,3 +1,6 @@
+// Copyright (c) 2026 Yuren Hao
+// Licensed under AGPL-3.0 - see LICENSE file
+
// OT state machine for main process (mirror of renderer otClient)
import type { OtOp } from './otTypes'
import { transformOps } from './otTransform'
diff --git a/src/main/otTransform.ts b/src/main/otTransform.ts
index 0d05450..f1c8331 100644
--- a/src/main/otTransform.ts
+++ b/src/main/otTransform.ts
@@ -1,3 +1,6 @@
+// Copyright (c) 2026 Yuren Hao
+// Licensed under AGPL-3.0 - see LICENSE file
+
// OT transform functions for main process (mirror of renderer transform)
import type { OtOp } from './otTypes'
import { isInsert, isDelete, isComment } from './otTypes'
diff --git a/src/main/otTypes.ts b/src/main/otTypes.ts
index 8e9df9f..e4f0d07 100644
--- a/src/main/otTypes.ts
+++ b/src/main/otTypes.ts
@@ -1,3 +1,6 @@
+// Copyright (c) 2026 Yuren Hao
+// Licensed under AGPL-3.0 - see LICENSE file
+
// OT type definitions for main process (mirror of renderer types)
export interface InsertOp {
diff --git a/src/main/overleafProtocol.ts b/src/main/overleafProtocol.ts
index 49b06d7..884aff2 100644
--- a/src/main/overleafProtocol.ts
+++ b/src/main/overleafProtocol.ts
@@ -1,3 +1,6 @@
+// Copyright (c) 2026 Yuren Hao
+// Licensed under AGPL-3.0 - see LICENSE file
+
// Socket.IO v0.9 protocol encoding/decoding
export interface ParsedMessage {
diff --git a/src/main/overleafSocket.ts b/src/main/overleafSocket.ts
index 1a12260..811e433 100644
--- a/src/main/overleafSocket.ts
+++ b/src/main/overleafSocket.ts
@@ -1,3 +1,6 @@
+// Copyright (c) 2026 Yuren Hao
+// Licensed under AGPL-3.0 - see LICENSE file
+
// Persistent Socket.IO v0.9 client for real-time Overleaf collaboration
import { EventEmitter } from 'events'
import WebSocket from 'ws'