codex-overleaf-link 1.6.3 → 1.6.4
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 +21 -21
- package/extension/src/shared/agentTranscript.js +3 -0
- package/extension/src/shared/compatibility.js +1 -1
- package/extension/src/shared/i18n.js +20 -8
- package/extension/src/shared/sessionState.js +3 -0
- package/extension/src/shared/storageDb.js +3 -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.6.
|
|
6
|
+
<img src="https://img.shields.io/badge/version-1.6.4-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.6.
|
|
41
|
+
CODEX_OVERLEAF_REF=v1.6.4 bash -c "$(curl -fsSL https://raw.githubusercontent.com/Ghqqqq/codex-overleaf-link/v1.6.4/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.6.
|
|
48
|
-
$env:CODEX_OVERLEAF_REF='v1.6.
|
|
47
|
+
iwr https://raw.githubusercontent.com/Ghqqqq/codex-overleaf-link/v1.6.4/install.ps1 -OutFile install.ps1
|
|
48
|
+
$env:CODEX_OVERLEAF_REF='v1.6.4'
|
|
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.6.
|
|
59
|
+
npm exec --yes codex-overleaf-link@1.6.4 -- install-native
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
Then add the extension yourself: download `codex-overleaf-link-extension-v1.6.
|
|
62
|
+
Then add the extension yourself: download `codex-overleaf-link-extension-v1.6.4.zip` from the [v1.6.4 GitHub Release](https://github.com/Ghqqqq/codex-overleaf-link/releases/tag/v1.6.4), 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.6.
|
|
90
|
-
| Diagnose | `npm exec --yes codex-overleaf-link@1.6.
|
|
91
|
-
| Uninstall | `npm exec --yes codex-overleaf-link@1.6.
|
|
89
|
+
| Install / update | `npm exec --yes codex-overleaf-link@1.6.4 -- install-native` |
|
|
90
|
+
| Diagnose | `npm exec --yes codex-overleaf-link@1.6.4 -- doctor` |
|
|
91
|
+
| Uninstall | `npm exec --yes codex-overleaf-link@1.6.4 -- 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.6.
|
|
101
|
+
The v1.6.4 GitHub Release contains:
|
|
102
102
|
|
|
103
|
-
- `codex-overleaf-link-extension-v1.6.
|
|
104
|
-
- `codex-overleaf-native-host-v1.6.
|
|
105
|
-
- `codex-overleaf-link-1.6.
|
|
106
|
-
- `install.sh`: release-pinned macOS / Linux installer that defaults to `v1.6.
|
|
107
|
-
- `install.ps1`: release-pinned Windows PowerShell installer that defaults to `v1.6.
|
|
103
|
+
- `codex-overleaf-link-extension-v1.6.4.zip`: loadable Chrome extension package for manual unpacked installation.
|
|
104
|
+
- `codex-overleaf-native-host-v1.6.4.tar.gz`: native host runtime files used by the installer and release verification.
|
|
105
|
+
- `codex-overleaf-link-1.6.4.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.6.4` when run directly from the release artifact.
|
|
107
|
+
- `install.ps1`: release-pinned Windows PowerShell installer that defaults to `v1.6.4` 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.6.3 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.6.
|
|
118
|
+
npm exec --yes codex-overleaf-link@1.6.4 -- 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.6.
|
|
153
|
+
CODEX_OVERLEAF_REF=v1.6.4 bash -c "$(curl -fsSL https://raw.githubusercontent.com/Ghqqqq/codex-overleaf-link/v1.6.4/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.6.
|
|
159
|
+
npm exec --yes codex-overleaf-link@1.6.4 -- 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.6.
|
|
294
|
+
npm exec --yes codex-overleaf-link@1.6.4 -- 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.6.
|
|
344
|
-
| Uninstall command | `npm exec --yes codex-overleaf-link@1.6.
|
|
343
|
+
| Installer/update command | `npm exec --yes codex-overleaf-link@1.6.4 -- install-native` | `npm exec --yes codex-overleaf-link@1.6.4 -- install-native` | `npm exec --yes codex-overleaf-link@1.6.4 -- install-native` | `npm exec --yes codex-overleaf-link@1.6.4 -- install-native --browser chromium` |
|
|
344
|
+
| Uninstall command | `npm exec --yes codex-overleaf-link@1.6.4 -- uninstall-native` | `npm exec --yes codex-overleaf-link@1.6.4 -- uninstall-native` | `npm exec --yes codex-overleaf-link@1.6.4 -- uninstall-native` | `npm exec --yes codex-overleaf-link@1.6.4 -- 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. |
|
|
@@ -216,6 +216,9 @@
|
|
|
216
216
|
const base = {
|
|
217
217
|
kind: 'activity',
|
|
218
218
|
visible: true,
|
|
219
|
+
// Timeline renderers indent/badge subagent rows so parallel workers
|
|
220
|
+
// read as a distinct track instead of flat interleaved lines.
|
|
221
|
+
subagent: true,
|
|
219
222
|
technicalDetail: normalizeRawEvent(event)
|
|
220
223
|
};
|
|
221
224
|
if (type === 'codex.subagent.queued') {
|
|
@@ -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.6.
|
|
15
|
+
const BUILD_TARGET_VERSION = '1.6.4';
|
|
16
16
|
const DEFAULT_CHROME_EXTENSION_ID = 'illdpneeeopfffmiepaejglgmhpmdhdc';
|
|
17
17
|
const REQUIRED_CAPABILITIES = Object.freeze([
|
|
18
18
|
'bridgePing',
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
diagnosticsOtSummaryDisabled: 'Experimental OT is disabled, so Codex is using the normal project read path.',
|
|
50
50
|
diagnosticsOtNextStep: 'If you expected OT warm reads, turn on OT and wait for the status to show Live before relying on it.',
|
|
51
51
|
experimentalOtMenuTitle: 'Experimental OT Mirror',
|
|
52
|
-
experimentalOtMenuSubtitle: 'Experimental
|
|
52
|
+
experimentalOtMenuSubtitle: 'Experimental — speeds up reading the file you are editing; Codex falls back to normal reading whenever unsure.',
|
|
53
53
|
experimentalOtConfirmTitle: 'Experimental OT Mirror',
|
|
54
54
|
experimentalOtConfirmMessage: 'Experimental: tracks the current Overleaf editor and warms the local mirror so Codex can read recent focused-file edits faster. Codex uses it only when file scope is clear and the mirror is fresh; otherwise it falls back to normal project reading.',
|
|
55
55
|
experimentalOtConfirmEnable: 'Turn on',
|
|
@@ -262,7 +262,7 @@
|
|
|
262
262
|
technicalDetails: 'Technical Details',
|
|
263
263
|
newSession: 'New Session',
|
|
264
264
|
tasks: 'Tasks',
|
|
265
|
-
placeholder: 'Ask Codex anything.
|
|
265
|
+
placeholder: 'Ask Codex anything. Click + to add context',
|
|
266
266
|
mode: 'Mode',
|
|
267
267
|
writeMode: 'Write mode',
|
|
268
268
|
modeAsk: 'Ask',
|
|
@@ -272,6 +272,12 @@
|
|
|
272
272
|
modeAuto: 'Auto',
|
|
273
273
|
modeAutoTitle: 'Write directly after authorization. Deletes still require confirmation.',
|
|
274
274
|
addContext: 'Add @ context',
|
|
275
|
+
attachFiles: 'Attach files (PDF, images)',
|
|
276
|
+
diffHunkLocation: 'Line {line} · {count} lines',
|
|
277
|
+
diagnosticsDotOk: 'Diagnostics — all checks passed',
|
|
278
|
+
diagnosticsDotWarn: 'Diagnostics — something needs attention',
|
|
279
|
+
diagnosticsDotFail: 'Diagnostics — a check failed, click to inspect',
|
|
280
|
+
diagnosticsDotUnknown: 'Diagnostics',
|
|
275
281
|
reasoningLabel: 'Reasoning effort',
|
|
276
282
|
speedLabel: 'Speed',
|
|
277
283
|
requireReviewing: 'Track',
|
|
@@ -305,7 +311,7 @@
|
|
|
305
311
|
cancelRun: 'Cancel Current Task',
|
|
306
312
|
contextTitle: '@ Context',
|
|
307
313
|
refreshFileList: 'Refresh file list',
|
|
308
|
-
contextStatus: '
|
|
314
|
+
contextStatus: 'Click + to add context: files, attachments (PDF/images), @compile-log, @current-section.',
|
|
309
315
|
contextLoadingFiles: 'Reading available @files...',
|
|
310
316
|
contextReadFailed: 'Could not read files: {message}',
|
|
311
317
|
contextNoFiles: 'No usable text files were read from this Overleaf project.',
|
|
@@ -322,7 +328,7 @@
|
|
|
322
328
|
deleteRunningSession: 'Task running. Cancel it before deleting.',
|
|
323
329
|
newSessionFallback: 'New Session',
|
|
324
330
|
emptyRunLabel: 'Start a Codex task',
|
|
325
|
-
emptyRunsHint: '
|
|
331
|
+
emptyRunsHint: 'Click + to add files, type / for commands.',
|
|
326
332
|
unknownMode: 'Unknown mode',
|
|
327
333
|
askStatus: 'Ask',
|
|
328
334
|
canRun: 'Ready',
|
|
@@ -477,7 +483,7 @@
|
|
|
477
483
|
diagnosticsOtSummaryDisabled: '实验性 OT 已关闭,Codex 会使用常规项目读取路径。',
|
|
478
484
|
diagnosticsOtNextStep: '如果你希望使用 OT 预热读取,请开启 OT,并等状态显示为“实时”后再依赖它。',
|
|
479
485
|
experimentalOtMenuTitle: '实验性 OT Mirror',
|
|
480
|
-
experimentalOtMenuSubtitle: '
|
|
486
|
+
experimentalOtMenuSubtitle: '实验性——加快读取你正在编辑的文件;拿不准时自动回退到普通读取。',
|
|
481
487
|
experimentalOtConfirmTitle: '实验性 OT Mirror',
|
|
482
488
|
experimentalOtConfirmMessage: '实验性:实时跟踪当前 Overleaf 编辑器,把改动预热到本地 mirror,让 Codex 更快读到最近的当前文件改动。只有文件范围明确且 mirror 新鲜时才会使用;否则自动回退到普通项目读取。',
|
|
483
489
|
experimentalOtConfirmEnable: '开启',
|
|
@@ -690,7 +696,7 @@
|
|
|
690
696
|
technicalDetails: '技术细节',
|
|
691
697
|
newSession: '新建会话',
|
|
692
698
|
tasks: '任务',
|
|
693
|
-
placeholder: '问 Codex
|
|
699
|
+
placeholder: '问 Codex 任何事。点 + 添加上下文',
|
|
694
700
|
mode: '模式',
|
|
695
701
|
writeMode: '写入模式',
|
|
696
702
|
modeAsk: '只问不改',
|
|
@@ -700,6 +706,12 @@
|
|
|
700
706
|
modeAuto: '自动写入',
|
|
701
707
|
modeAutoTitle: '授权后直接写入,删除仍需确认',
|
|
702
708
|
addContext: '添加 @ 上下文',
|
|
709
|
+
attachFiles: '添加附件(PDF、图片)',
|
|
710
|
+
diffHunkLocation: '第 {line} 行起 · 共 {count} 行',
|
|
711
|
+
diagnosticsDotOk: '诊断——全部检查通过',
|
|
712
|
+
diagnosticsDotWarn: '诊断——有需要留意的项',
|
|
713
|
+
diagnosticsDotFail: '诊断——有检查未通过,点击查看',
|
|
714
|
+
diagnosticsDotUnknown: '诊断',
|
|
703
715
|
reasoningLabel: '推理强度',
|
|
704
716
|
speedLabel: '速度',
|
|
705
717
|
requireReviewing: '留痕',
|
|
@@ -733,7 +745,7 @@
|
|
|
733
745
|
cancelRun: '中断当前任务',
|
|
734
746
|
contextTitle: '@ 上下文',
|
|
735
747
|
refreshFileList: '刷新文件列表',
|
|
736
|
-
contextStatus: '
|
|
748
|
+
contextStatus: '点 + 添加上下文:文件、附件(PDF/图片)、@compile-log、@current-section。',
|
|
737
749
|
contextLoadingFiles: '正在读取可添加的 @文件...',
|
|
738
750
|
contextReadFailed: '读取文件失败:{message}',
|
|
739
751
|
contextNoFiles: '没有从当前 Overleaf 项目读取到可用文本文件。',
|
|
@@ -750,7 +762,7 @@
|
|
|
750
762
|
deleteRunningSession: '任务运行中,先中断后再删除',
|
|
751
763
|
newSessionFallback: '新会话',
|
|
752
764
|
emptyRunLabel: '开始一个 Codex 任务',
|
|
753
|
-
emptyRunsHint: '
|
|
765
|
+
emptyRunsHint: '点 + 添加文件,输入 / 调用命令。',
|
|
754
766
|
unknownMode: '未知模式',
|
|
755
767
|
askStatus: '只问不改',
|
|
756
768
|
canRun: '可以运行',
|
|
@@ -1076,6 +1076,9 @@
|
|
|
1076
1076
|
streamKey: typeof event.streamKey === 'string' ? event.streamKey : '',
|
|
1077
1077
|
streamRole: typeof event.streamRole === 'string' ? event.streamRole : ''
|
|
1078
1078
|
};
|
|
1079
|
+
if (event.subagent === true) {
|
|
1080
|
+
compact.subagent = true;
|
|
1081
|
+
}
|
|
1079
1082
|
const detail = compactDetailForStorage(event.detail, getEventDetailLimit(event, limits));
|
|
1080
1083
|
if (detail !== undefined) {
|
|
1081
1084
|
compact.detail = detail;
|
|
@@ -676,6 +676,9 @@
|
|
|
676
676
|
streamKey: typeof event.streamKey === 'string' ? redactSecretLikeText(event.streamKey) : '',
|
|
677
677
|
streamRole: typeof event.streamRole === 'string' ? redactSecretLikeText(event.streamRole) : ''
|
|
678
678
|
};
|
|
679
|
+
if (event.subagent === true) {
|
|
680
|
+
compact.subagent = true;
|
|
681
|
+
}
|
|
679
682
|
var detail = compactDisplayDetailForStorage(event.detail, getEventDetailLimit(event));
|
|
680
683
|
if (detail !== undefined) {
|
|
681
684
|
compact.detail = detail;
|