codex-overleaf-link 1.8.0 → 1.8.2
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-1.8.
|
|
6
|
+
<img src="https://img.shields.io/badge/version-1.8.2-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 native host **and** sets up the extension: the script r
|
|
|
38
38
|
macOS / Linux:
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
|
-
CODEX_OVERLEAF_REF=v1.8.
|
|
41
|
+
CODEX_OVERLEAF_REF=v1.8.2 bash -c "$(curl -fsSL https://raw.githubusercontent.com/Ghqqqq/codex-overleaf-link/v1.8.2/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/v1.8.
|
|
48
|
-
$env:CODEX_OVERLEAF_REF='v1.8.
|
|
47
|
+
iwr https://raw.githubusercontent.com/Ghqqqq/codex-overleaf-link/v1.8.2/install.ps1 -OutFile install.ps1
|
|
48
|
+
$env:CODEX_OVERLEAF_REF='v1.8.2'
|
|
49
49
|
powershell -ExecutionPolicy Bypass -File install.ps1
|
|
50
50
|
```
|
|
51
51
|
|
|
@@ -56,10 +56,10 @@ Then, in the `chrome://extensions` tab the script opened: enable **Developer mod
|
|
|
56
56
|
`npm exec` installs and updates the **native host only** — it does not include the Chrome extension. Use it if you prefer a pinned npm package to a source checkout.
|
|
57
57
|
|
|
58
58
|
```bash
|
|
59
|
-
npm exec --yes codex-overleaf-link@1.8.
|
|
59
|
+
npm exec --yes codex-overleaf-link@1.8.2 -- install-native
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
Then add the extension yourself: download `codex-overleaf-link-extension-v1.8.
|
|
62
|
+
Then add the extension yourself: download `codex-overleaf-link-extension-v1.8.2.zip` from the [v1.8.2 GitHub Release](https://github.com/Ghqqqq/codex-overleaf-link/releases/tag/v1.8.2), unzip it to a stable folder, and in `chrome://extensions` enable **Developer mode**, click **Load unpacked**, and select that folder.
|
|
63
63
|
|
|
64
64
|
### Open Overleaf
|
|
65
65
|
|
|
@@ -86,9 +86,9 @@ npm installs, updates, uninstalls, and diagnoses the native host only. npm does
|
|
|
86
86
|
|
|
87
87
|
| Action | Command |
|
|
88
88
|
|--------|---------|
|
|
89
|
-
| Install / update | `npm exec --yes codex-overleaf-link@1.8.
|
|
90
|
-
| Diagnose | `npm exec --yes codex-overleaf-link@1.8.
|
|
91
|
-
| Uninstall | `npm exec --yes codex-overleaf-link@1.8.
|
|
89
|
+
| Install / update | `npm exec --yes codex-overleaf-link@1.8.2 -- install-native` |
|
|
90
|
+
| Diagnose | `npm exec --yes codex-overleaf-link@1.8.2 -- doctor` |
|
|
91
|
+
| Uninstall | `npm exec --yes codex-overleaf-link@1.8.2 -- uninstall-native` |
|
|
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
|
|
|
@@ -98,13 +98,13 @@ To update, re-run any of the [native host installers](#install) — they install
|
|
|
98
98
|
|
|
99
99
|
## GitHub Release Artifacts
|
|
100
100
|
|
|
101
|
-
The v1.8.
|
|
101
|
+
The v1.8.2 GitHub Release contains:
|
|
102
102
|
|
|
103
|
-
- `codex-overleaf-link-extension-v1.8.
|
|
104
|
-
- `codex-overleaf-native-host-v1.8.
|
|
105
|
-
- `codex-overleaf-link-1.8.
|
|
106
|
-
- `install.sh`: release-pinned macOS / Linux installer that defaults to `v1.8.
|
|
107
|
-
- `install.ps1`: release-pinned Windows PowerShell installer that defaults to `v1.8.
|
|
103
|
+
- `codex-overleaf-link-extension-v1.8.2.zip`: loadable Chrome extension package for manual unpacked installation.
|
|
104
|
+
- `codex-overleaf-native-host-v1.8.2.tar.gz`: native host runtime files used by the installer and release verification.
|
|
105
|
+
- `codex-overleaf-link-1.8.2.tgz`: npm native host CLI package for pinned install, doctor, and uninstall flows.
|
|
106
|
+
- `install.sh`: release-pinned macOS / Linux installer that defaults to `v1.8.2` when run directly from the release artifact.
|
|
107
|
+
- `install.ps1`: release-pinned Windows PowerShell installer that defaults to `v1.8.2` when run directly from the release artifact.
|
|
108
108
|
- `uninstall-native-host.mjs`: native host uninstaller that removes the Chrome Native Messaging manifest, bridge executable, and runtime copy.
|
|
109
109
|
- `nativeHostPlatform.js`, `manifest.js`, `runtimeInstaller.js`: helper files required by the loose uninstaller asset.
|
|
110
110
|
- `SHA256SUMS` and `release-manifest.json`: checksum and artifact metadata for release verification.
|
|
@@ -115,7 +115,7 @@ The v1.8.0 GitHub Release contains:
|
|
|
115
115
|
Remove the native host (use `--browser chromium` on Linux Chromium):
|
|
116
116
|
|
|
117
117
|
```bash
|
|
118
|
-
npm exec --yes codex-overleaf-link@1.8.
|
|
118
|
+
npm exec --yes codex-overleaf-link@1.8.2 -- uninstall-native
|
|
119
119
|
```
|
|
120
120
|
|
|
121
121
|
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.
|
|
@@ -150,13 +150,13 @@ Then remove the extension from `chrome://extensions`. To delete local data: on m
|
|
|
150
150
|
Linux Chromium install or update:
|
|
151
151
|
|
|
152
152
|
```bash
|
|
153
|
-
CODEX_OVERLEAF_REF=v1.8.
|
|
153
|
+
CODEX_OVERLEAF_REF=v1.8.2 bash -c "$(curl -fsSL https://raw.githubusercontent.com/Ghqqqq/codex-overleaf-link/v1.8.2/install.sh)" -- --browser chromium
|
|
154
154
|
```
|
|
155
155
|
|
|
156
156
|
Linux Chromium uninstall:
|
|
157
157
|
|
|
158
158
|
```bash
|
|
159
|
-
npm exec --yes codex-overleaf-link@1.8.
|
|
159
|
+
npm exec --yes codex-overleaf-link@1.8.2 -- uninstall-native --browser chromium
|
|
160
160
|
```
|
|
161
161
|
|
|
162
162
|
## Features
|
|
@@ -291,7 +291,7 @@ Composer attachments are turn-scoped Codex context. Limits are 8 attachments per
|
|
|
291
291
|
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.
|
|
292
292
|
|
|
293
293
|
```bash
|
|
294
|
-
npm exec --yes codex-overleaf-link@1.8.
|
|
294
|
+
npm exec --yes codex-overleaf-link@1.8.2 -- install-native
|
|
295
295
|
```
|
|
296
296
|
|
|
297
297
|
**The Windows popup or panel shows a Bash recovery command**
|
|
@@ -340,8 +340,8 @@ Use this matrix for release-candidate signoff and compatibility reports. Record
|
|
|
340
340
|
| Browser/channel/version | Google Chrome channel and version. | Google Chrome channel and version. | Google Chrome channel and version. | Chromium channel/package and version. |
|
|
341
341
|
| 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`. |
|
|
342
342
|
| 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`. |
|
|
343
|
-
| Installer/update command | `npm exec --yes codex-overleaf-link@1.8.
|
|
344
|
-
| Uninstall command | `npm exec --yes codex-overleaf-link@1.8.
|
|
343
|
+
| Installer/update command | `npm exec --yes codex-overleaf-link@1.8.2 -- install-native` | `npm exec --yes codex-overleaf-link@1.8.2 -- install-native` | `npm exec --yes codex-overleaf-link@1.8.2 -- install-native` | `npm exec --yes codex-overleaf-link@1.8.2 -- install-native --browser chromium` |
|
|
344
|
+
| Uninstall command | `npm exec --yes codex-overleaf-link@1.8.2 -- uninstall-native` | `npm exec --yes codex-overleaf-link@1.8.2 -- uninstall-native` | `npm exec --yes codex-overleaf-link@1.8.2 -- uninstall-native` | `npm exec --yes codex-overleaf-link@1.8.2 -- uninstall-native --browser chromium` |
|
|
345
345
|
| 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` |
|
|
346
346
|
| 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`. |
|
|
347
347
|
| 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. |
|
|
@@ -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 = '1.8.
|
|
15
|
+
const BUILD_TARGET_VERSION = '1.8.2';
|
|
16
16
|
const DEFAULT_CHROME_EXTENSION_ID = 'illdpneeeopfffmiepaejglgmhpmdhdc';
|
|
17
17
|
const REQUIRED_CAPABILITIES = Object.freeze([
|
|
18
18
|
'bridgePing',
|
|
@@ -469,6 +469,13 @@
|
|
|
469
469
|
recentProjects_badge_completed: 'completed',
|
|
470
470
|
recentProjects_badge_failed: 'failed',
|
|
471
471
|
recentProjects_badge_interrupted: 'interrupted',
|
|
472
|
+
recentProjects_unnamed: 'Project \u00b7 {prefix}',
|
|
473
|
+
recentProjects_zombieRunningNote: 'Marked as running, but it may be a leftover from an interrupted run.',
|
|
474
|
+
recentProjects_zombieDeleteConfirm: 'This session is marked as running. If no other tab is actually running it, you can delete it anyway.',
|
|
475
|
+
recentProjects_retryScope: 'Retry',
|
|
476
|
+
recentProjects_degraded_hint: 'Could not identify the Overleaf account on this page, so the project list is hidden to avoid mixing accounts. This usually resolves on a reload.',
|
|
477
|
+
recentProjects_sessionsCount: '{count} session(s)',
|
|
478
|
+
recentProjects_welcome_stats: '{projects} project(s) \u00b7 {sessions} session(s) with Codex history',
|
|
472
479
|
recentProjects_badge_background_completed: 'completed in background',
|
|
473
480
|
recentProjects_badge_needs_review_after_navigation: 'pending',
|
|
474
481
|
recentProjects_badge_abandoned_after_navigation: 'abandoned'
|
|
@@ -930,6 +937,13 @@
|
|
|
930
937
|
recentProjects_badge_completed: '已完成',
|
|
931
938
|
recentProjects_badge_failed: '失败',
|
|
932
939
|
recentProjects_badge_interrupted: '已中断',
|
|
940
|
+
recentProjects_unnamed: '项目 · {prefix}',
|
|
941
|
+
recentProjects_zombieRunningNote: '标记为运行中,但可能是被中断后的残留。',
|
|
942
|
+
recentProjects_zombieDeleteConfirm: '该会话标记为运行中。如果确认没有其他标签页在运行它,可以直接删除。',
|
|
943
|
+
recentProjects_retryScope: '重试',
|
|
944
|
+
recentProjects_degraded_hint: '无法识别本页的 Overleaf 账号,为避免账号间串数据已隐藏项目列表。通常刷新即可恢复。',
|
|
945
|
+
recentProjects_sessionsCount: '{count} 个会话',
|
|
946
|
+
recentProjects_welcome_stats: '{projects} 个项目 · {sessions} 个会话有 Codex 历史',
|
|
933
947
|
recentProjects_badge_background_completed: '后台已完成',
|
|
934
948
|
recentProjects_badge_needs_review_after_navigation: '待处理',
|
|
935
949
|
recentProjects_badge_abandoned_after_navigation: '已中止'
|
|
@@ -899,7 +899,10 @@
|
|
|
899
899
|
'failed',
|
|
900
900
|
'background_completed',
|
|
901
901
|
'needs_review_after_navigation',
|
|
902
|
-
'abandoned_after_navigation'
|
|
902
|
+
'abandoned_after_navigation',
|
|
903
|
+
// v1.8.1: reload-orphaned runs settle to 'interrupted' (v1.7.6); the
|
|
904
|
+
// storage round-trip must not rewrite them to a false 'completed'.
|
|
905
|
+
'interrupted'
|
|
903
906
|
].indexOf(status) !== -1 ? status : 'completed';
|
|
904
907
|
}
|
|
905
908
|
|
|
@@ -1146,6 +1149,7 @@
|
|
|
1146
1149
|
return [];
|
|
1147
1150
|
}
|
|
1148
1151
|
var byProject = {}; // projectId → session
|
|
1152
|
+
var sessionCounts = {}; // projectId → number of sessions
|
|
1149
1153
|
var all = Array.isArray(sessions) ? sessions : [];
|
|
1150
1154
|
for (var i = 0; i < all.length; i++) {
|
|
1151
1155
|
var s = all[i];
|
|
@@ -1157,6 +1161,10 @@
|
|
|
1157
1161
|
if (!prev || prev.lastActivityAt < s.lastActivityAt) {
|
|
1158
1162
|
byProject[s.projectId] = s;
|
|
1159
1163
|
}
|
|
1164
|
+
// v1.8.1: the per-project session count was computed here and thrown
|
|
1165
|
+
// away — keep it so dashboard rows can show how much work lives in a
|
|
1166
|
+
// project without a second scan.
|
|
1167
|
+
sessionCounts[s.projectId] = (sessionCounts[s.projectId] || 0) + 1;
|
|
1160
1168
|
}
|
|
1161
1169
|
var survivors = [];
|
|
1162
1170
|
var keys = Object.keys(byProject);
|
|
@@ -1173,7 +1181,8 @@
|
|
|
1173
1181
|
projectId: session.projectId,
|
|
1174
1182
|
lastActivityAt: session.lastActivityAt,
|
|
1175
1183
|
safeTaskSummary: typeof session.safeTaskSummary === 'string' ? session.safeTaskSummary : '',
|
|
1176
|
-
primaryStatusBadge: derivePrimaryStatusBadge(session)
|
|
1184
|
+
primaryStatusBadge: derivePrimaryStatusBadge(session),
|
|
1185
|
+
sessionCount: sessionCounts[session.projectId] || 1
|
|
1177
1186
|
});
|
|
1178
1187
|
}
|
|
1179
1188
|
return rows;
|