codex-overleaf-link 1.9.6 → 1.9.8
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 +23 -23
- package/extension/bootstrap/background.js +7 -2
- package/extension/bootstrap/manifest.template.json +3 -1
- package/extension/bootstrap/popup.html +0 -13
- package/extension/bootstrap/update.css +366 -0
- package/extension/bootstrap/update.html +55 -0
- package/extension/bootstrap/update.js +331 -0
- package/extension/runtime-manifest.json +2 -0
- package/extension/src/backgroundUpdateCoordinator.js +51 -5
- package/extension/src/content/settingsPanel.js +12 -0
- package/extension/src/content/updateNotice.js +117 -6
- package/extension/src/popup.js +24 -35
- package/extension/src/shared/compatibility.js +1 -1
- package/extension/src/shared/i18n.js +6 -0
- package/package.json +1 -1
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.9.
|
|
6
|
+
<img src="https://img.shields.io/badge/version-1.9.8-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=v1.9.
|
|
41
|
+
CODEX_OVERLEAF_REF=v1.9.8 bash -c "$(curl -fsSL https://raw.githubusercontent.com/Ghqqqq/codex-overleaf-link/v1.9.8/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.9.
|
|
48
|
-
$env:CODEX_OVERLEAF_REF='v1.9.
|
|
47
|
+
iwr https://raw.githubusercontent.com/Ghqqqq/codex-overleaf-link/v1.9.8/install.ps1 -OutFile install.ps1
|
|
48
|
+
$env:CODEX_OVERLEAF_REF='v1.9.8'
|
|
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@1.9.
|
|
59
|
+
npm exec --yes codex-overleaf-link@1.9.8 -- 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@1.9.
|
|
90
|
-
| Diagnose | `npm exec --yes codex-overleaf-link@1.9.
|
|
91
|
-
| Uninstall | `npm exec --yes codex-overleaf-link@1.9.
|
|
89
|
+
| Install / update | `npm exec --yes codex-overleaf-link@1.9.8 -- install-managed` |
|
|
90
|
+
| Diagnose | `npm exec --yes codex-overleaf-link@1.9.8 -- doctor` |
|
|
91
|
+
| Uninstall | `npm exec --yes codex-overleaf-link@1.9.8 -- 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
|
|
|
@@ -98,13 +98,13 @@ Managed installations discover signed stable updates automatically and apply the
|
|
|
98
98
|
|
|
99
99
|
## GitHub Release Artifacts
|
|
100
100
|
|
|
101
|
-
The v1.9.
|
|
101
|
+
The v1.9.8 GitHub Release contains:
|
|
102
102
|
|
|
103
|
-
- `codex-overleaf-link-extension-v1.9.
|
|
104
|
-
- `codex-overleaf-native-host-v1.9.
|
|
105
|
-
- `codex-overleaf-link-1.9.
|
|
106
|
-
- `install.sh`: release-pinned macOS / Linux installer that defaults to `v1.9.
|
|
107
|
-
- `install.ps1`: release-pinned Windows PowerShell installer that defaults to `v1.9.
|
|
103
|
+
- `codex-overleaf-link-extension-v1.9.8.zip`: loadable Chrome extension package for manual unpacked installation.
|
|
104
|
+
- `codex-overleaf-native-host-v1.9.8.tar.gz`: native host runtime files used by the installer and release verification.
|
|
105
|
+
- `codex-overleaf-link-1.9.8.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.9.8` when run directly from the release artifact.
|
|
107
|
+
- `install.ps1`: release-pinned Windows PowerShell installer that defaults to `v1.9.8` 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.9.6 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.9.
|
|
118
|
+
npm exec --yes codex-overleaf-link@1.9.8 -- uninstall-managed
|
|
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.9.
|
|
153
|
+
CODEX_OVERLEAF_REF=v1.9.8 bash -c "$(curl -fsSL https://raw.githubusercontent.com/Ghqqqq/codex-overleaf-link/v1.9.8/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.9.
|
|
159
|
+
npm exec --yes codex-overleaf-link@1.9.8 -- uninstall-managed --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.9.
|
|
294
|
+
npm exec --yes codex-overleaf-link@1.9.8 -- install-managed
|
|
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.9.
|
|
344
|
-
| Uninstall command | `npm exec --yes codex-overleaf-link@1.9.
|
|
343
|
+
| Installer/update command | `npm exec --yes codex-overleaf-link@1.9.8 -- install-managed` | `npm exec --yes codex-overleaf-link@1.9.8 -- install-managed` | `npm exec --yes codex-overleaf-link@1.9.8 -- install-managed` | `npm exec --yes codex-overleaf-link@1.9.8 -- install-managed --browser chromium` |
|
|
344
|
+
| Uninstall command | `npm exec --yes codex-overleaf-link@1.9.8 -- uninstall-managed` | `npm exec --yes codex-overleaf-link@1.9.8 -- uninstall-managed` | `npm exec --yes codex-overleaf-link@1.9.8 -- uninstall-managed` | `npm exec --yes codex-overleaf-link@1.9.8 -- uninstall-managed --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. |
|
|
@@ -377,7 +377,7 @@ Contributions are welcome. Please open an issue before submitting large changes
|
|
|
377
377
|
The recommended v1.9 installation owns one stable unpacked-extension directory and a versioned native-host directory:
|
|
378
378
|
|
|
379
379
|
```bash
|
|
380
|
-
npm exec --yes codex-overleaf-link@1.9.
|
|
380
|
+
npm exec --yes codex-overleaf-link@1.9.8 -- install-managed
|
|
381
381
|
```
|
|
382
382
|
|
|
383
383
|
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.
|
|
@@ -387,11 +387,11 @@ The stable updater ignores drafts and prereleases, performs no telemetry, and ca
|
|
|
387
387
|
The legacy native-only installer remains available for source or unmanaged extension directories:
|
|
388
388
|
|
|
389
389
|
```bash
|
|
390
|
-
npm exec --yes codex-overleaf-link@1.9.
|
|
390
|
+
npm exec --yes codex-overleaf-link@1.9.8 -- install-native
|
|
391
391
|
```
|
|
392
392
|
|
|
393
393
|
Legacy native-only installations can be removed with:
|
|
394
394
|
|
|
395
395
|
```bash
|
|
396
|
-
npm exec --yes codex-overleaf-link@1.9.
|
|
396
|
+
npm exec --yes codex-overleaf-link@1.9.8 -- uninstall-native
|
|
397
397
|
```
|
|
@@ -6,10 +6,15 @@ const UPDATE_STATE_KEY = 'codex-overleaf-managed-update-state-v1';
|
|
|
6
6
|
const UPDATE_RELOAD_TABS_KEY = 'codex-overleaf-managed-update-tabs-v1';
|
|
7
7
|
const CHECK_ALARM = 'codex-overleaf-stable-update-check';
|
|
8
8
|
const IDLE_ALARM = 'codex-overleaf-staged-update-idle';
|
|
9
|
-
const
|
|
9
|
+
const OVERLEAF_EDITOR_MATCHES = [
|
|
10
10
|
'https://www.overleaf.com/project/*',
|
|
11
11
|
'https://overleaf.com/project/*'
|
|
12
12
|
];
|
|
13
|
+
const OVERLEAF_MATCHES = [
|
|
14
|
+
'https://www.overleaf.com/project',
|
|
15
|
+
'https://overleaf.com/project',
|
|
16
|
+
...OVERLEAF_EDITOR_MATCHES
|
|
17
|
+
];
|
|
13
18
|
const APPLYING_STATES = new Set(['applying', 'awaiting_health', 'rolling_back']);
|
|
14
19
|
|
|
15
20
|
let runtimeLoadError = null;
|
|
@@ -195,7 +200,7 @@ async function tryApplyStagedUpdate() {
|
|
|
195
200
|
if (Number(state.postponeUntil || 0) > Date.now()) {
|
|
196
201
|
return state;
|
|
197
202
|
}
|
|
198
|
-
const tabs = await chrome.tabs.query({ url:
|
|
203
|
+
const tabs = await chrome.tabs.query({ url: OVERLEAF_EDITOR_MATCHES });
|
|
199
204
|
const probes = await Promise.all(tabs.map(tab => probeTabIdle(tab)));
|
|
200
205
|
const nativeGate = await requestInternal({ method: 'update.canApply', params: {} }).catch(error => ({
|
|
201
206
|
ok: false,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest_version": 3,
|
|
3
3
|
"name": "Codex Overleaf Link",
|
|
4
|
-
"version": "1.9.
|
|
4
|
+
"version": "1.9.8",
|
|
5
5
|
"description": "Connect the active Overleaf project to a local Codex bridge.",
|
|
6
6
|
"icons": {
|
|
7
7
|
"16": "assets/icons/icon16.png",
|
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
"storage"
|
|
18
18
|
],
|
|
19
19
|
"host_permissions": [
|
|
20
|
+
"https://www.overleaf.com/project",
|
|
21
|
+
"https://overleaf.com/project",
|
|
20
22
|
"https://www.overleaf.com/project/*",
|
|
21
23
|
"https://overleaf.com/project/*"
|
|
22
24
|
],
|
|
@@ -13,18 +13,6 @@
|
|
|
13
13
|
</div>
|
|
14
14
|
<button id="open-panel" data-popup-context>Open panel in Overleaf</button>
|
|
15
15
|
<p id="status" data-popup-context>Use this on an Overleaf project tab.</p>
|
|
16
|
-
<section class="updates" aria-labelledby="updates-title">
|
|
17
|
-
<div class="section-head">
|
|
18
|
-
<strong id="updates-title">Stable updates</strong>
|
|
19
|
-
<span id="update-state" class="update-state">Checking</span>
|
|
20
|
-
</div>
|
|
21
|
-
<p id="update-versions">Current unknown · Latest unknown</p>
|
|
22
|
-
<p id="update-detail" class="muted">Automatic updates apply when Overleaf is saved and idle.</p>
|
|
23
|
-
<div class="update-actions">
|
|
24
|
-
<button id="check-update" class="secondary" type="button">Check now</button>
|
|
25
|
-
<button id="postpone-update" class="quiet" type="button" hidden>Later</button>
|
|
26
|
-
</div>
|
|
27
|
-
</section>
|
|
28
16
|
<div id="native-install" class="install" data-popup-context hidden>
|
|
29
17
|
<strong>Native host attention required</strong>
|
|
30
18
|
<p>Run this command in Terminal, then reload this extension in Chrome.</p>
|
|
@@ -34,6 +22,5 @@
|
|
|
34
22
|
<script src="../runtime/src/shared/compatibility.js"></script>
|
|
35
23
|
<script src="../runtime/src/popup.js"></script>
|
|
36
24
|
<script src="updateStatus.js"></script>
|
|
37
|
-
<script src="popup.js"></script>
|
|
38
25
|
</body>
|
|
39
26
|
</html>
|
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
color-scheme: dark;
|
|
3
|
+
--canvas: #101310;
|
|
4
|
+
--surface: #171b17;
|
|
5
|
+
--line: rgba(215, 230, 217, 0.13);
|
|
6
|
+
--line-strong: rgba(215, 230, 217, 0.24);
|
|
7
|
+
--text: #f1f4ef;
|
|
8
|
+
--muted: #a4aca4;
|
|
9
|
+
--quiet: #747d75;
|
|
10
|
+
--green: #86dc94;
|
|
11
|
+
--blue: #6eb5ff;
|
|
12
|
+
--amber: #e2bc70;
|
|
13
|
+
--red: #f28b82;
|
|
14
|
+
--shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
|
|
15
|
+
font-family: "Avenir Next", "Segoe UI", sans-serif;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
* {
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
html,
|
|
23
|
+
body {
|
|
24
|
+
min-width: 390px;
|
|
25
|
+
min-height: 500px;
|
|
26
|
+
margin: 0;
|
|
27
|
+
background:
|
|
28
|
+
radial-gradient(circle at 88% 5%, rgba(70, 131, 105, 0.17), transparent 34%),
|
|
29
|
+
radial-gradient(circle at 8% 88%, rgba(53, 100, 151, 0.13), transparent 38%),
|
|
30
|
+
var(--canvas);
|
|
31
|
+
color: var(--text);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
body {
|
|
35
|
+
padding: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
button {
|
|
39
|
+
font: inherit;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.update-shell {
|
|
43
|
+
width: min(100%, 440px);
|
|
44
|
+
min-height: 500px;
|
|
45
|
+
margin: 0 auto;
|
|
46
|
+
padding: 26px 26px 22px;
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
animation: shell-enter 180ms ease-out both;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.update-header {
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: flex-start;
|
|
55
|
+
justify-content: space-between;
|
|
56
|
+
gap: 20px;
|
|
57
|
+
padding-bottom: 22px;
|
|
58
|
+
border-bottom: 1px solid var(--line);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.eyebrow,
|
|
62
|
+
.update-kind,
|
|
63
|
+
.version-route,
|
|
64
|
+
.update-detail,
|
|
65
|
+
.persistence-note {
|
|
66
|
+
margin: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.eyebrow {
|
|
70
|
+
color: var(--text);
|
|
71
|
+
font-size: 15px;
|
|
72
|
+
font-weight: 700;
|
|
73
|
+
letter-spacing: -0.01em;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.update-kind {
|
|
77
|
+
margin-top: 3px;
|
|
78
|
+
color: var(--muted);
|
|
79
|
+
font-size: 12px;
|
|
80
|
+
letter-spacing: 0.08em;
|
|
81
|
+
text-transform: uppercase;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.status-badge {
|
|
85
|
+
min-height: 26px;
|
|
86
|
+
padding: 5px 9px;
|
|
87
|
+
border: 1px solid var(--line-strong);
|
|
88
|
+
border-radius: 999px;
|
|
89
|
+
color: var(--muted);
|
|
90
|
+
background: rgba(255, 255, 255, 0.025);
|
|
91
|
+
font-size: 11px;
|
|
92
|
+
font-weight: 700;
|
|
93
|
+
letter-spacing: 0.02em;
|
|
94
|
+
white-space: nowrap;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.status-badge[data-tone="success"] {
|
|
98
|
+
border-color: rgba(134, 220, 148, 0.34);
|
|
99
|
+
color: var(--green);
|
|
100
|
+
background: rgba(72, 143, 84, 0.11);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.status-badge[data-tone="active"] {
|
|
104
|
+
border-color: rgba(110, 181, 255, 0.34);
|
|
105
|
+
color: var(--blue);
|
|
106
|
+
background: rgba(60, 115, 170, 0.12);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.status-badge[data-tone="warning"] {
|
|
110
|
+
border-color: rgba(226, 188, 112, 0.34);
|
|
111
|
+
color: var(--amber);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.status-badge[data-tone="error"] {
|
|
115
|
+
border-color: rgba(242, 139, 130, 0.38);
|
|
116
|
+
color: var(--red);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.update-summary {
|
|
120
|
+
padding: 27px 0 18px;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.version-route {
|
|
124
|
+
color: var(--green);
|
|
125
|
+
font: 600 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
126
|
+
letter-spacing: 0.01em;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
h1 {
|
|
130
|
+
margin: 8px 0 8px;
|
|
131
|
+
max-width: 350px;
|
|
132
|
+
font-size: 27px;
|
|
133
|
+
line-height: 1.13;
|
|
134
|
+
letter-spacing: -0.035em;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.update-detail {
|
|
138
|
+
max-width: 370px;
|
|
139
|
+
color: var(--muted);
|
|
140
|
+
font-size: 13px;
|
|
141
|
+
line-height: 1.55;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.progress-track {
|
|
145
|
+
position: relative;
|
|
146
|
+
width: 100%;
|
|
147
|
+
height: 3px;
|
|
148
|
+
margin: 1px 0 24px;
|
|
149
|
+
overflow: hidden;
|
|
150
|
+
border-radius: 999px;
|
|
151
|
+
background: rgba(255, 255, 255, 0.09);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.progress-fill {
|
|
155
|
+
display: block;
|
|
156
|
+
width: 0;
|
|
157
|
+
height: 100%;
|
|
158
|
+
border-radius: inherit;
|
|
159
|
+
background: linear-gradient(90deg, var(--blue), var(--green));
|
|
160
|
+
box-shadow: 0 0 15px rgba(110, 181, 255, 0.38);
|
|
161
|
+
transition: width 240ms ease;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.progress-track[data-indeterminate="true"] .progress-fill {
|
|
165
|
+
width: 36%;
|
|
166
|
+
animation: progress-scan 1.25s ease-in-out infinite;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.update-stages {
|
|
170
|
+
margin: 0;
|
|
171
|
+
padding: 0;
|
|
172
|
+
list-style: none;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.update-stages li {
|
|
176
|
+
position: relative;
|
|
177
|
+
display: grid;
|
|
178
|
+
grid-template-columns: 28px 1fr;
|
|
179
|
+
gap: 12px;
|
|
180
|
+
min-height: 62px;
|
|
181
|
+
color: var(--quiet);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.update-stages li:not(:last-child)::after {
|
|
185
|
+
content: "";
|
|
186
|
+
position: absolute;
|
|
187
|
+
top: 27px;
|
|
188
|
+
bottom: 1px;
|
|
189
|
+
left: 13px;
|
|
190
|
+
width: 1px;
|
|
191
|
+
background: var(--line-strong);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.stage-marker {
|
|
195
|
+
position: relative;
|
|
196
|
+
z-index: 1;
|
|
197
|
+
display: grid;
|
|
198
|
+
place-items: center;
|
|
199
|
+
width: 27px;
|
|
200
|
+
height: 27px;
|
|
201
|
+
border: 1px solid var(--line-strong);
|
|
202
|
+
border-radius: 50%;
|
|
203
|
+
background: var(--canvas);
|
|
204
|
+
color: var(--quiet);
|
|
205
|
+
font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.update-stages strong,
|
|
209
|
+
.update-stages small {
|
|
210
|
+
display: block;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.update-stages strong {
|
|
214
|
+
padding-top: 2px;
|
|
215
|
+
color: inherit;
|
|
216
|
+
font-size: 13px;
|
|
217
|
+
line-height: 1.25;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.update-stages small {
|
|
221
|
+
margin-top: 4px;
|
|
222
|
+
color: var(--quiet);
|
|
223
|
+
font-size: 11px;
|
|
224
|
+
line-height: 1.35;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.update-stages li[data-state="active"] {
|
|
228
|
+
color: var(--text);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.update-stages li[data-state="active"] .stage-marker {
|
|
232
|
+
border-color: var(--blue);
|
|
233
|
+
color: var(--canvas);
|
|
234
|
+
background: var(--blue);
|
|
235
|
+
box-shadow: 0 0 0 4px rgba(110, 181, 255, 0.1);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.update-stages li[data-state="done"] {
|
|
239
|
+
color: var(--green);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.update-stages li[data-state="done"] .stage-marker {
|
|
243
|
+
border-color: rgba(134, 220, 148, 0.5);
|
|
244
|
+
color: var(--green);
|
|
245
|
+
background: rgba(82, 155, 94, 0.14);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.update-stages li[data-state="error"] {
|
|
249
|
+
color: var(--red);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.update-stages li[data-state="error"] .stage-marker {
|
|
253
|
+
border-color: rgba(242, 139, 130, 0.62);
|
|
254
|
+
color: var(--red);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.persistence-note {
|
|
258
|
+
margin-top: 5px;
|
|
259
|
+
padding: 12px 0 15px;
|
|
260
|
+
border-top: 1px solid var(--line);
|
|
261
|
+
color: var(--muted);
|
|
262
|
+
font-size: 11px;
|
|
263
|
+
line-height: 1.45;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.technical-details {
|
|
267
|
+
margin: 0 0 14px;
|
|
268
|
+
color: var(--muted);
|
|
269
|
+
font-size: 11px;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.technical-details summary {
|
|
273
|
+
cursor: pointer;
|
|
274
|
+
color: var(--muted);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.technical-details pre {
|
|
278
|
+
max-height: 100px;
|
|
279
|
+
margin: 9px 0 0;
|
|
280
|
+
padding: 10px;
|
|
281
|
+
overflow: auto;
|
|
282
|
+
border-radius: 8px;
|
|
283
|
+
background: rgba(0, 0, 0, 0.24);
|
|
284
|
+
color: #cbd1cb;
|
|
285
|
+
font: 10px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
286
|
+
white-space: pre-wrap;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.update-actions {
|
|
290
|
+
display: flex;
|
|
291
|
+
justify-content: flex-end;
|
|
292
|
+
gap: 9px;
|
|
293
|
+
margin-top: auto;
|
|
294
|
+
padding-top: 4px;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.update-actions button {
|
|
298
|
+
min-height: 36px;
|
|
299
|
+
padding: 0 15px;
|
|
300
|
+
border: 1px solid var(--line-strong);
|
|
301
|
+
border-radius: 8px;
|
|
302
|
+
color: var(--text);
|
|
303
|
+
background: rgba(255, 255, 255, 0.035);
|
|
304
|
+
font-size: 12px;
|
|
305
|
+
font-weight: 700;
|
|
306
|
+
cursor: pointer;
|
|
307
|
+
transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.update-actions button:hover {
|
|
311
|
+
border-color: rgba(215, 230, 217, 0.38);
|
|
312
|
+
background: rgba(255, 255, 255, 0.075);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.update-actions button:active {
|
|
316
|
+
transform: translateY(1px);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.update-actions button:focus-visible,
|
|
320
|
+
.technical-details summary:focus-visible {
|
|
321
|
+
outline: 2px solid var(--blue);
|
|
322
|
+
outline-offset: 2px;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.update-actions button[data-kind="primary"] {
|
|
326
|
+
border-color: #4f9ce5;
|
|
327
|
+
color: #08131e;
|
|
328
|
+
background: linear-gradient(180deg, #77bdff, #5aa8ee);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.update-actions button[data-kind="primary"]:hover {
|
|
332
|
+
border-color: #8bc9ff;
|
|
333
|
+
background: linear-gradient(180deg, #87c7ff, #67b1f3);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.update-actions button[data-kind="quiet"] {
|
|
337
|
+
border-color: transparent;
|
|
338
|
+
color: var(--muted);
|
|
339
|
+
background: transparent;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.update-actions button:disabled {
|
|
343
|
+
opacity: 0.5;
|
|
344
|
+
cursor: default;
|
|
345
|
+
transform: none;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
@keyframes shell-enter {
|
|
349
|
+
from { opacity: 0; transform: translateY(5px); }
|
|
350
|
+
to { opacity: 1; transform: translateY(0); }
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
@keyframes progress-scan {
|
|
354
|
+
from { transform: translateX(-120%); }
|
|
355
|
+
to { transform: translateX(380%); }
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
@media (prefers-reduced-motion: reduce) {
|
|
359
|
+
*,
|
|
360
|
+
*::before,
|
|
361
|
+
*::after {
|
|
362
|
+
animation-duration: 0.01ms !important;
|
|
363
|
+
animation-iteration-count: 1 !important;
|
|
364
|
+
transition-duration: 0.01ms !important;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title>Codex Overleaf Link Update</title>
|
|
7
|
+
<link rel="stylesheet" href="update.css">
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<main class="update-shell" aria-labelledby="update-title">
|
|
11
|
+
<header class="update-header">
|
|
12
|
+
<div>
|
|
13
|
+
<p class="eyebrow">Codex Overleaf Link</p>
|
|
14
|
+
<p class="update-kind">Stable Update</p>
|
|
15
|
+
</div>
|
|
16
|
+
<span id="status-badge" class="status-badge" data-tone="neutral">Ready</span>
|
|
17
|
+
</header>
|
|
18
|
+
|
|
19
|
+
<section class="update-summary" aria-live="polite" aria-atomic="true">
|
|
20
|
+
<p id="version-route" class="version-route">Checking installed version</p>
|
|
21
|
+
<h1 id="update-title">Checking for updates</h1>
|
|
22
|
+
<p id="update-detail" class="update-detail">Reading the latest saved update state.</p>
|
|
23
|
+
</section>
|
|
24
|
+
|
|
25
|
+
<div id="progress-track" class="progress-track" role="progressbar" aria-label="Update progress" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0" hidden>
|
|
26
|
+
<span id="progress-fill" class="progress-fill"></span>
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
<ol id="update-stages" class="update-stages" aria-label="Update stages">
|
|
30
|
+
<li data-stage="download">
|
|
31
|
+
<span class="stage-marker" aria-hidden="true">1</span>
|
|
32
|
+
<span><strong>Download and verify</strong><small>Fetch the signed stable release and verify its manifest.</small></span>
|
|
33
|
+
</li>
|
|
34
|
+
<li data-stage="safe-point">
|
|
35
|
+
<span class="stage-marker" aria-hidden="true">2</span>
|
|
36
|
+
<span><strong>Wait for a safe point</strong><small>Protect active Overleaf work before changing runtime files.</small></span>
|
|
37
|
+
</li>
|
|
38
|
+
<li data-stage="restart">
|
|
39
|
+
<span class="stage-marker" aria-hidden="true">3</span>
|
|
40
|
+
<span><strong>Restart and health check</strong><small>Activate Extension and Native Host together, then verify both.</small></span>
|
|
41
|
+
</li>
|
|
42
|
+
</ol>
|
|
43
|
+
|
|
44
|
+
<p id="persistence-note" class="persistence-note">This window can stay open while work continues elsewhere. Progress is saved automatically.</p>
|
|
45
|
+
|
|
46
|
+
<details id="technical-details" class="technical-details" hidden>
|
|
47
|
+
<summary>Technical details</summary>
|
|
48
|
+
<pre id="technical-message"></pre>
|
|
49
|
+
</details>
|
|
50
|
+
|
|
51
|
+
<footer id="update-actions" class="update-actions" aria-label="Update actions"></footer>
|
|
52
|
+
</main>
|
|
53
|
+
<script src="update.js"></script>
|
|
54
|
+
</body>
|
|
55
|
+
</html>
|