@syengup/fridaynext-codex-channel 0.1.0-beta.2 → 0.1.0-beta.3
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 +10 -8
- package/installer-ui.mjs +7 -7
- package/onboarding.mjs +3 -3
- package/package.json +1 -1
- package/plugin.tgz +0 -0
- package/release.json +5 -5
package/README.md
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
# FridayNext Codex 插件 · Beta
|
|
1
|
+
# FridayNext Codex 插件 · Beta 3
|
|
2
2
|
|
|
3
3
|
在要连接的项目目录打开终端,执行:
|
|
4
4
|
|
|
5
5
|
```sh
|
|
6
|
-
npx -y @syengup/fridaynext-codex-channel@0.1.0-beta.
|
|
6
|
+
npx -y @syengup/fridaynext-codex-channel@0.1.0-beta.3
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
安装器依次安装官方标准插件、配置连接、启动网关、校验网关并显示二维码。用 Friday Next 扫码即可配对,无需另开终端运行 configure、activate 或 pair。关闭安装终端后专用进程继续运行,电脑重启后重新执行同一命令。
|
|
10
10
|
|
|
11
11
|
## 准备
|
|
12
12
|
|
|
13
|
-
- 当前验证 macOS、Node.js ≥22.13、Codex CLI **0.159.3**,以及兼容适配器0.1.
|
|
13
|
+
- 当前验证 macOS、Node.js ≥22.13、Codex CLI **0.159.3**,以及兼容适配器0.1.102的 Friday iOS 版本。
|
|
14
14
|
- 先在电脑端安装并登录 Codex。固定CLI不在PATH时设置 `FN_CODEX_BINARY=/绝对路径/codex`;安装器不替换电脑已有的 Codex 版本,不复制认证。
|
|
15
15
|
- 手机和电脑先连接同一局域网。安装器自动选择实际私网IPv4;多网卡或从个人主目录启动时,会询问地址或项目目录。项目范围取运行命令的目录,不自动授权整个HOME。
|
|
16
16
|
|
|
17
17
|
也可以显式选择:
|
|
18
18
|
|
|
19
19
|
```sh
|
|
20
|
-
npx -y @syengup/fridaynext-codex-channel@0.1.0-beta.
|
|
20
|
+
npx -y @syengup/fridaynext-codex-channel@0.1.0-beta.3 --workspace /绝对路径/项目 --lan-host 192.168.1.10
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
## 服务与数据
|
|
@@ -31,13 +31,15 @@ npx -y @syengup/fridaynext-codex-channel@0.1.0-beta.2 --workspace /绝对路径/
|
|
|
31
31
|
## 常用操作
|
|
32
32
|
|
|
33
33
|
```sh
|
|
34
|
-
npx -y @syengup/fridaynext-codex-channel@0.1.0-beta.
|
|
35
|
-
npx -y @syengup/fridaynext-codex-channel@0.1.0-beta.
|
|
36
|
-
npx -y @syengup/fridaynext-codex-channel@0.1.0-beta.
|
|
34
|
+
npx -y @syengup/fridaynext-codex-channel@0.1.0-beta.3 status
|
|
35
|
+
npx -y @syengup/fridaynext-codex-channel@0.1.0-beta.3 pair
|
|
36
|
+
npx -y @syengup/fridaynext-codex-channel@0.1.0-beta.3 stop
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
`stop`只作用于本安装器登记的工作进程,等待原生执行空闲后关闭专用宿主;不停止外部已有宿主。重跑默认命令可恢复。单独pair保留原CLI的完整资料及0600 PNG/文本输出;二维码十分钟有效,重出作废旧券,已配对手机不受影响。不要公开配对资料。
|
|
40
40
|
|
|
41
41
|
自动化只安装不启动时用 `install --only --json`;原configure/roots/permissions/sessions入口继续保留。卸载使用官方 `codex plugin remove fridaynext-codex@fridaynext-local` 和 `codex plugin marketplace remove fridaynext-local`,先正常停止自有服务,不删除私有数据。
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
本包内置适配器 0.1.102,依赖精确 registry Kit 0.2.0-beta.9。本版提供工作目录的持久卷身份、队列删除及语音输入。专用宿主经标准插件见证后才可使用。安装只创建连接所需状态,首次模型请求由用户发起。
|
|
44
|
+
|
|
45
|
+
从较早的 beta 升级时,安装器会校验原代码来源。不同运行版本共用同一代码目录会返回 `INSTALL_VERSION_CONFLICT`。请先使用原版的 stop 停止该安装器管理的服务,通过上面的官方命令移除其插件登记和 marketplace,移走原代码目录作为备份,再执行新版安装。保留原数据目录、工作目录及配置以继续使用原有身份和历史。
|
package/installer-ui.mjs
CHANGED
|
@@ -44,7 +44,7 @@ export function createInstallerUI(opts = {}) {
|
|
|
44
44
|
|
|
45
45
|
let timer = null;
|
|
46
46
|
let frame = 0;
|
|
47
|
-
|
|
47
|
+
|
|
48
48
|
let running = null;
|
|
49
49
|
|
|
50
50
|
const stepLine = (mark, label, detail) => ` ${mark} ${label}${detail ? " " + dim(detail) : ""}`;
|
|
@@ -64,14 +64,14 @@ export function createInstallerUI(opts = {}) {
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
return {
|
|
67
|
-
|
|
67
|
+
|
|
68
68
|
header(subtitle) {
|
|
69
69
|
write("\n " + paint(ANSI.bold, "Friday Next"));
|
|
70
70
|
if (subtitle) write(dim(" " + subtitle));
|
|
71
71
|
write("\n\n");
|
|
72
72
|
},
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
|
|
75
75
|
step(label) {
|
|
76
76
|
running = { label, detail: "" };
|
|
77
77
|
if (isTTY) {
|
|
@@ -109,12 +109,12 @@ export function createInstallerUI(opts = {}) {
|
|
|
109
109
|
};
|
|
110
110
|
},
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
|
|
113
113
|
note(text) {
|
|
114
114
|
write(stepLine(paint(ANSI.yellow, "!"), dim(text), "") + "\n");
|
|
115
115
|
},
|
|
116
116
|
|
|
117
|
-
|
|
117
|
+
|
|
118
118
|
result({ qr, hint, hintMuted = false, fields = [] }) {
|
|
119
119
|
if (hint) {
|
|
120
120
|
write(
|
|
@@ -144,7 +144,7 @@ export function createInstallerUI(opts = {}) {
|
|
|
144
144
|
write("\n");
|
|
145
145
|
},
|
|
146
146
|
|
|
147
|
-
|
|
147
|
+
|
|
148
148
|
fatal(lines) {
|
|
149
149
|
write("\n");
|
|
150
150
|
for (const [i, line] of lines.entries()) {
|
|
@@ -153,7 +153,7 @@ export function createInstallerUI(opts = {}) {
|
|
|
153
153
|
write("\n");
|
|
154
154
|
},
|
|
155
155
|
|
|
156
|
-
|
|
156
|
+
|
|
157
157
|
cleanup() {
|
|
158
158
|
stopSpinner();
|
|
159
159
|
running = null;
|
package/onboarding.mjs
CHANGED
|
@@ -77,12 +77,12 @@ export function codexOnboarding({ root, binary, options = {} }) {
|
|
|
77
77
|
async pair() {
|
|
78
78
|
const value = await jsonCommand(cli, ['pair']);
|
|
79
79
|
if (!value.lanUrl || /https?:\/\/(127\.|localhost|\[::1\])/.test(value.lanUrl)) throw failure('EXISTING_SERVICE_LAN_UNAVAILABLE');
|
|
80
|
-
const {
|
|
81
|
-
return { code:
|
|
80
|
+
const { presentPairing } = await load('pairing-presentation');
|
|
81
|
+
return { code: (await presentPairing(value)).text };
|
|
82
82
|
},
|
|
83
83
|
async render(code) {
|
|
84
84
|
const { default: QRCode } = await runtimeModule(plugin, 'qrcode');
|
|
85
|
-
return QRCode.toString(code, { type: process.stdout.isTTY ? 'terminal' : 'utf8', small: true, margin: 4 });
|
|
85
|
+
return QRCode.toString(code, { type: process.stdout.isTTY ? 'terminal' : 'utf8', small: true, margin: 4, errorCorrectionLevel: 'L' });
|
|
86
86
|
},
|
|
87
87
|
async cleanup() { await worker?.stop(); },
|
|
88
88
|
};
|
package/package.json
CHANGED
package/plugin.tgz
CHANGED
|
Binary file
|
package/release.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
|
-
"distributionVersion": "0.1.0-beta.
|
|
4
|
-
"adapterVersion": "0.1.
|
|
3
|
+
"distributionVersion": "0.1.0-beta.3",
|
|
4
|
+
"adapterVersion": "0.1.102",
|
|
5
5
|
"host": "0.159.3",
|
|
6
|
-
"kit": "0.2.0-beta.
|
|
7
|
-
"sourceDigest": "
|
|
8
|
-
"payloadSHA256": "
|
|
6
|
+
"kit": "0.2.0-beta.9",
|
|
7
|
+
"sourceDigest": "f317ac36ddc4f7e4721198bfb0cc34470b8663034648b11623f109a4b80bd195",
|
|
8
|
+
"payloadSHA256": "8fdf53a8bf780ab599f2f835885d248fd695ea9ca1b48c648a24185d777c9aa0"
|
|
9
9
|
}
|