From 8b3b3be550307598e84c59e3d708e6ee9a3e1beb Mon Sep 17 00:00:00 2001 From: haoyuren <13851610112@163.com> Date: Fri, 13 Mar 2026 01:15:01 -0500 Subject: Add AGPL-3.0 license and copyright headers to all source files Co-Authored-By: Claude Opus 4.6 --- src/main/compilationManager.ts | 3 +++ src/main/fileSyncBridge.ts | 3 +++ src/main/index.ts | 3 +++ src/main/otClient.ts | 3 +++ src/main/otTransform.ts | 3 +++ src/main/otTypes.ts | 3 +++ src/main/overleafProtocol.ts | 3 +++ src/main/overleafSocket.ts | 3 +++ 8 files changed, 24 insertions(+) (limited to 'src/main') 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' -- cgit v1.2.3