codex-overleaf-link 2.2.0 → 2.2.1
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.
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<h1>Codex Overleaf Link</h1>
|
|
4
4
|
<p><strong>Empower Overleaf with Codex.</strong></p>
|
|
5
5
|
<p>
|
|
6
|
-
<img src="https://img.shields.io/badge/version-2.2.
|
|
6
|
+
<img src="https://img.shields.io/badge/version-2.2.1-blue" alt="version">
|
|
7
7
|
<img src="https://img.shields.io/badge/platform-macOS%20%2F%20Windows%20%2F%20Linux-lightgrey" alt="platform">
|
|
8
8
|
<img src="https://img.shields.io/badge/chrome-MV3-green" alt="chrome manifest v3">
|
|
9
9
|
<img src="https://img.shields.io/badge/node-%3E%3D20-brightgreen" alt="node version">
|
|
@@ -38,14 +38,14 @@ One command installs the managed native host **and** managed extension runtime.
|
|
|
38
38
|
macOS / Linux:
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
|
-
CODEX_OVERLEAF_REF=v2.2.
|
|
41
|
+
CODEX_OVERLEAF_REF=v2.2.1 bash -c "$(curl -fsSL https://raw.githubusercontent.com/Ghqqqq/codex-overleaf-link/v2.2.1/install.sh)"
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
Windows PowerShell:
|
|
45
45
|
|
|
46
46
|
```powershell
|
|
47
|
-
iwr https://raw.githubusercontent.com/Ghqqqq/codex-overleaf-link/v2.2.
|
|
48
|
-
$env:CODEX_OVERLEAF_REF='v2.2.
|
|
47
|
+
iwr https://raw.githubusercontent.com/Ghqqqq/codex-overleaf-link/v2.2.1/install.ps1 -OutFile install.ps1
|
|
48
|
+
$env:CODEX_OVERLEAF_REF='v2.2.1'
|
|
49
49
|
powershell -ExecutionPolicy Bypass -File install.ps1
|
|
50
50
|
```
|
|
51
51
|
|
|
@@ -56,7 +56,7 @@ Then, in the `chrome://extensions` tab the script opened: enable **Developer mod
|
|
|
56
56
|
`npm exec` installs the same managed native host and extension runtime without keeping a source checkout. Use it if you prefer a pinned npm package.
|
|
57
57
|
|
|
58
58
|
```bash
|
|
59
|
-
npm exec --yes codex-overleaf-link@2.2.
|
|
59
|
+
npm exec --yes codex-overleaf-link@2.2.1 -- install-managed
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
Then, in `chrome://extensions`, enable **Developer mode**, click **Load unpacked**, and select the managed extension path printed by the command. The Release extension zip remains available for explicitly unmanaged/manual installations.
|
|
@@ -86,9 +86,9 @@ npm installs, updates, and uninstalls the coordinated managed extension/native p
|
|
|
86
86
|
|
|
87
87
|
| Action | Command |
|
|
88
88
|
|--------|---------|
|
|
89
|
-
| Install / update | `npm exec --yes codex-overleaf-link@2.2.
|
|
90
|
-
| Diagnose | `npm exec --yes codex-overleaf-link@2.2.
|
|
91
|
-
| Uninstall | `npm exec --yes codex-overleaf-link@2.2.
|
|
89
|
+
| Install / update | `npm exec --yes codex-overleaf-link@2.2.1 -- install-managed` |
|
|
90
|
+
| Diagnose | `npm exec --yes codex-overleaf-link@2.2.1 -- doctor` |
|
|
91
|
+
| Uninstall | `npm exec --yes codex-overleaf-link@2.2.1 -- uninstall-managed` |
|
|
92
92
|
|
|
93
93
|
Use `--extension-id <chrome-extension-id>` only for a custom/dev unpacked extension id that differs from the official bundled id.
|
|
94
94
|
|
|
@@ -102,13 +102,13 @@ Managed installations discover signed stable updates automatically and apply the
|
|
|
102
102
|
|
|
103
103
|
v2.2.0 introduces Bootstrap protocol 2. Existing v2.1.x managed installations must run the pinned `install-managed` command once, then reload the extension and Overleaf. Later protocol-2 releases use the in-product signed updater for ordinary runtime, style, vendor, and Native Host feature changes.
|
|
104
104
|
|
|
105
|
-
The v2.2.
|
|
105
|
+
The v2.2.1 GitHub Release contains:
|
|
106
106
|
|
|
107
|
-
- `codex-overleaf-link-extension-v2.2.
|
|
108
|
-
- `codex-overleaf-native-host-v2.2.
|
|
109
|
-
- `codex-overleaf-link-2.2.
|
|
110
|
-
- `install.sh`: release-pinned macOS / Linux installer that defaults to `v2.2.
|
|
111
|
-
- `install.ps1`: release-pinned Windows PowerShell installer that defaults to `v2.2.
|
|
107
|
+
- `codex-overleaf-link-extension-v2.2.1.zip`: loadable Chrome extension package for manual unpacked installation.
|
|
108
|
+
- `codex-overleaf-native-host-v2.2.1.tar.gz`: native host runtime files used by the installer and release verification.
|
|
109
|
+
- `codex-overleaf-link-2.2.1.tgz`: npm native host CLI package for pinned install, doctor, and uninstall flows.
|
|
110
|
+
- `install.sh`: release-pinned macOS / Linux installer that defaults to `v2.2.1` when run directly from the release artifact.
|
|
111
|
+
- `install.ps1`: release-pinned Windows PowerShell installer that defaults to `v2.2.1` when run directly from the release artifact.
|
|
112
112
|
- `uninstall-native-host.mjs`: native host uninstaller that removes the Chrome Native Messaging manifest, bridge executable, and runtime copy.
|
|
113
113
|
- `nativeHostPlatform.js`, `manifest.js`, `runtimeInstaller.js`: helper files required by the loose uninstaller asset.
|
|
114
114
|
- `SHA256SUMS` and `release-manifest.json`: checksum and artifact metadata for release verification.
|
|
@@ -119,7 +119,7 @@ The v2.2.0 GitHub Release contains:
|
|
|
119
119
|
Remove the native host (use `--browser chromium` on Linux Chromium):
|
|
120
120
|
|
|
121
121
|
```bash
|
|
122
|
-
npm exec --yes codex-overleaf-link@2.2.
|
|
122
|
+
npm exec --yes codex-overleaf-link@2.2.1 -- uninstall-managed
|
|
123
123
|
```
|
|
124
124
|
|
|
125
125
|
The same command works on Windows PowerShell. If you installed from a manual checkout or source installer, you can also run `npm run uninstall:native` inside the repo, use `node ~/.codex-overleaf/source/scripts/uninstall-native-host.mjs` on macOS / Linux, or use `node $env:LOCALAPPDATA\CodexOverleaf\source\scripts\uninstall-native-host.mjs` on Windows PowerShell.
|
|
@@ -154,13 +154,13 @@ Then remove the extension from `chrome://extensions`. To delete local data: on m
|
|
|
154
154
|
Linux Chromium install or update:
|
|
155
155
|
|
|
156
156
|
```bash
|
|
157
|
-
CODEX_OVERLEAF_REF=v2.2.
|
|
157
|
+
CODEX_OVERLEAF_REF=v2.2.1 bash -c "$(curl -fsSL https://raw.githubusercontent.com/Ghqqqq/codex-overleaf-link/v2.2.1/install.sh)" -- --browser chromium
|
|
158
158
|
```
|
|
159
159
|
|
|
160
160
|
Linux Chromium uninstall:
|
|
161
161
|
|
|
162
162
|
```bash
|
|
163
|
-
npm exec --yes codex-overleaf-link@2.2.
|
|
163
|
+
npm exec --yes codex-overleaf-link@2.2.1 -- uninstall-managed --browser chromium
|
|
164
164
|
```
|
|
165
165
|
|
|
166
166
|
## Features
|
|
@@ -296,7 +296,7 @@ Composer attachments are turn-scoped Codex context. Limits are 8 attachments per
|
|
|
296
296
|
Re-run any [native host installer](#install), reload the extension in `chrome://extensions`, then refresh the Overleaf tab. This also fixes extension/native version mismatch and native protocol mismatch.
|
|
297
297
|
|
|
298
298
|
```bash
|
|
299
|
-
npm exec --yes codex-overleaf-link@2.2.
|
|
299
|
+
npm exec --yes codex-overleaf-link@2.2.1 -- install-managed
|
|
300
300
|
```
|
|
301
301
|
|
|
302
302
|
**The Windows popup or panel shows a Bash recovery command**
|
|
@@ -345,8 +345,8 @@ Use this matrix for release-candidate signoff and compatibility reports. Record
|
|
|
345
345
|
| Browser/channel/version | Google Chrome channel and version. | Google Chrome channel and version. | Google Chrome channel and version. | Chromium channel/package and version. |
|
|
346
346
|
| Install mode | Manual unpacked extension from GitHub Release zip or checkout. | Manual unpacked extension from GitHub Release zip or checkout. | Manual unpacked extension from GitHub Release zip or checkout. | Manual unpacked extension from GitHub Release zip or checkout; native host installed with `--browser chromium`. |
|
|
347
347
|
| Extension id | Bundled id `illdpneeeopfffmiepaejglgmhpmdhdc`, or actual custom id passed with `--extension-id`. | Bundled id `illdpneeeopfffmiepaejglgmhpmdhdc`, or actual custom id passed with `--extension-id`. | Bundled id `illdpneeeopfffmiepaejglgmhpmdhdc`, or actual custom id passed with `--extension-id`. | Bundled id `illdpneeeopfffmiepaejglgmhpmdhdc`, or actual custom id passed with `--extension-id`. |
|
|
348
|
-
| Installer/update command | `npm exec --yes codex-overleaf-link@2.2.
|
|
349
|
-
| Uninstall command | `npm exec --yes codex-overleaf-link@2.2.
|
|
348
|
+
| Installer/update command | `npm exec --yes codex-overleaf-link@2.2.1 -- install-managed` | `npm exec --yes codex-overleaf-link@2.2.1 -- install-managed` | `npm exec --yes codex-overleaf-link@2.2.1 -- install-managed` | `npm exec --yes codex-overleaf-link@2.2.1 -- install-managed --browser chromium` |
|
|
349
|
+
| Uninstall command | `npm exec --yes codex-overleaf-link@2.2.1 -- uninstall-managed` | `npm exec --yes codex-overleaf-link@2.2.1 -- uninstall-managed` | `npm exec --yes codex-overleaf-link@2.2.1 -- uninstall-managed` | `npm exec --yes codex-overleaf-link@2.2.1 -- uninstall-managed --browser chromium` |
|
|
350
350
|
| Manifest/registry path | `~/Library/Application Support/Google/Chrome/NativeMessagingHosts/com.codex.overleaf.json` | `HKCU\Software\Google\Chrome\NativeMessagingHosts\com.codex.overleaf` -> `%LOCALAPPDATA%\CodexOverleaf\native-host-runtime\com.codex.overleaf.json` | `~/.config/google-chrome/NativeMessagingHosts/com.codex.overleaf.json` | `~/.config/chromium/NativeMessagingHosts/com.codex.overleaf.json` |
|
|
351
351
|
| Bridge/runtime/source path | Bridge `~/.codex-overleaf/codex-overleaf-bridge`; runtime `~/.codex-overleaf/native-host-runtime`; source `~/.codex-overleaf/source`. | Bridge `%LOCALAPPDATA%\CodexOverleaf\codex-overleaf-bridge.cmd`; runtime `%LOCALAPPDATA%\CodexOverleaf\native-host-runtime`; source `%LOCALAPPDATA%\CodexOverleaf\source`. | Bridge `~/.codex-overleaf/codex-overleaf-bridge`; runtime `~/.codex-overleaf/native-host-runtime`; source `~/.codex-overleaf/source`. | Bridge `~/.codex-overleaf/codex-overleaf-bridge`; runtime `~/.codex-overleaf/native-host-runtime`; source `~/.codex-overleaf/source`. |
|
|
352
352
|
| Node/Git/Codex/TeX | Node.js >= 20; Git; Codex CLI installed and logged in; TeX optional. | Node.js >= 20; Git; Codex CLI installed and logged in; TeX optional. | Node.js >= 20; Git; Codex CLI installed and logged in; TeX optional. | Node.js >= 20; Git; Codex CLI installed and logged in; TeX optional. |
|
|
@@ -382,7 +382,7 @@ Contributions are welcome. Please open an issue before submitting large changes
|
|
|
382
382
|
The recommended v1.9 installation owns one stable unpacked-extension directory and a versioned native-host directory:
|
|
383
383
|
|
|
384
384
|
```bash
|
|
385
|
-
npm exec --yes codex-overleaf-link@2.2.
|
|
385
|
+
npm exec --yes codex-overleaf-link@2.2.1 -- install-managed
|
|
386
386
|
```
|
|
387
387
|
|
|
388
388
|
Load the printed extension path once from `chrome://extensions`. Starting with the next signed stable release, Codex Overleaf Link checks GitHub Releases automatically, downloads and verifies the coordinated extension/native-host bundle, waits until every connected Overleaf tab is saved and idle, and then updates both components together. A failed health check restores the previous version automatically.
|
|
@@ -392,11 +392,11 @@ The stable updater ignores drafts and prereleases, performs no telemetry, and ca
|
|
|
392
392
|
The legacy native-only installer remains available for source or unmanaged extension directories:
|
|
393
393
|
|
|
394
394
|
```bash
|
|
395
|
-
npm exec --yes codex-overleaf-link@2.2.
|
|
395
|
+
npm exec --yes codex-overleaf-link@2.2.1 -- install-native
|
|
396
396
|
```
|
|
397
397
|
|
|
398
398
|
Legacy native-only installations can be removed with:
|
|
399
399
|
|
|
400
400
|
```bash
|
|
401
|
-
npm exec --yes codex-overleaf-link@2.2.
|
|
401
|
+
npm exec --yes codex-overleaf-link@2.2.1 -- uninstall-native
|
|
402
402
|
```
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
const MIN_NATIVE_VERSION = '1.0.0';
|
|
13
13
|
const MIN_COMPATIBLE_NATIVE_VERSION = '1.0.0';
|
|
14
14
|
const MIN_COMPATIBLE_EXTENSION_VERSION = '1.0.0';
|
|
15
|
-
const BUILD_TARGET_VERSION = '2.2.
|
|
15
|
+
const BUILD_TARGET_VERSION = '2.2.1';
|
|
16
16
|
const DEFAULT_CHROME_EXTENSION_ID = 'illdpneeeopfffmiepaejglgmhpmdhdc';
|
|
17
17
|
const REQUIRED_CAPABILITIES = Object.freeze([
|
|
18
18
|
'bridgePing',
|
|
@@ -124,13 +124,15 @@ async function collectMirrorChangesDetailed({ projectId, rootDir }) {
|
|
|
124
124
|
const previous = baselineByPath.get(filePath);
|
|
125
125
|
const target = resolveWorkspacePath(mirror.workspacePath, filePath);
|
|
126
126
|
const stat = fs.statSync(target);
|
|
127
|
-
if (
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
127
|
+
if (isGeneratedArtifactPath(filePath, baselineByPath)) {
|
|
128
|
+
if (!previous || !workspaceFileMatchesBaseline(target, previous)) {
|
|
129
|
+
unsupportedChanges.push({
|
|
130
|
+
type: 'unsupported-local-file',
|
|
131
|
+
path: filePath,
|
|
132
|
+
reason: 'generated_artifact',
|
|
133
|
+
size: stat.size
|
|
134
|
+
});
|
|
135
|
+
}
|
|
134
136
|
continue;
|
|
135
137
|
}
|
|
136
138
|
if (isSupportedBinaryAssetPath(filePath)) {
|
|
@@ -602,7 +604,12 @@ function hasMatchingRootSourceFile(normalizedPdfPath, baselineByPath) {
|
|
|
602
604
|
return true;
|
|
603
605
|
}
|
|
604
606
|
const stem = normalizedPdfPath.replace(/\.pdf$/i, '');
|
|
605
|
-
|
|
607
|
+
const sourcePath = `${stem}.tex`;
|
|
608
|
+
const hasMatchingSource = baselineByPath.has(sourcePath)
|
|
609
|
+
|| Array.from(baselineByPath.keys()).some(filePath =>
|
|
610
|
+
normalizeRelativePath(filePath).toLowerCase() === sourcePath
|
|
611
|
+
);
|
|
612
|
+
return hasMatchingSource || stem === 'main' || stem === 'output';
|
|
606
613
|
}
|
|
607
614
|
|
|
608
615
|
function isSupportedBinaryAssetPath(filePath) {
|