@linxiraos/ide 1.1.21

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/LICENSE ADDED
@@ -0,0 +1,23 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 TermIDE Contributors
4
+ Copyright (c) 2026 Linxira-OS / Zeta Contributors (vendored distribution;
5
+ see VENDOR.md for the modification-layer ledger)
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ SOFTWARE.
package/VENDOR.md ADDED
@@ -0,0 +1,36 @@
1
+ # VENDOR — TermIDE 工作台快照账目
2
+
3
+ | 项 | 值 |
4
+ | ---------- | ---------------------------------------------------------- |
5
+ | 上游仓库 | https://github.com/termide/termide |
6
+ | 来源 commit | `main` HEAD `b1400585e2aeadca23b6b86a86010e612e3dddae`(fork 零落后核验,2026-09-28) |
7
+ | 引入方式 | `git archive HEAD`(无上游 git 历史;上游 `.github/` 不随树) |
8
+ | 协议 | MIT(`LICENSE` 追加 Linxira-OS/Zeta 版权行) |
9
+ | 引入日期 | 2026-09-28 |
10
+ | npm 包 | `@linxiraos/ide`(bin `zeta-ide` + 短别名 `zeta-i`,Rust 二进制分发,版本对齐 Zeta 产品线;2026-09-30 由未发布的 `@linxiraos/work` 更名) |
11
+ | 角色 | 工作台/壳:可视化文件管理器(最底层入口)+ 内嵌虚拟终端 pane;`zeta` 与 `zeta-editor`(短别名 `zeta-e`)作为 pane 内子进程经 PTY 组合,零代码耦合。产品愿景:把完整 Linux 无图形界面运维迁移到 Agent 流程的 TUI 底座 |
12
+
13
+ ## 出局方案(选型记录)
14
+
15
+ - fresh(Rust,GPL-2.0):上游 sinelaw/fresh(9k★)活跃,但 **GPL 不可 vendor**(与 editor/VENDOR.md 同一结论);其 Orchestrator(worktree 工作区、agent 会话编排、Everything 对话框)仅作 MIT 重实现的交互参考。
16
+ - 自建壳于 Zeta 主仓库:污染 OMP 可合并面,否决。
17
+
18
+ ## 与仓库其余部分的关系
19
+
20
+ - **不是根 Cargo workspace 成员**:根 `Cargo.toml` members 显式列 `crates/*`;termide 自带 `[workspace]`(members `crates/*`,自有 `rust-toolchain.toml` = 1.91.1、`Cargo.lock`)。在 `termide/` 内跑 cargo 命令,与根 workspace 完全隔离。
21
+ - **不是 Bun workspace 包**(同 `editor/`、`web-ui/` 先例)。
22
+ - 构建产物走 `termide/target/`(根 `.gitignore` 全局 `target/` 已覆盖)。
23
+
24
+ ## 修改层清单(对上游快照的全部偏离)
25
+
26
+ | # | 文件 | 偏离 | 原因 | 日期 |
27
+ | --- | --- | --- | --- | --- |
28
+ | 1 | `LICENSE` | 版权行追加 Linxira-OS/Zeta | MIT 分发声明 | 2026-09-28 |
29
+ | 2 | `npm/`(新增) | `@linxiraos/ide` 主包 + `ide-windows-x64`/`ide-linux-x64` 平台 leaf(bin `zeta-ide` + `zeta-i`;2026-09-30 由 work 更名,含 launcher win32→windows 映射修复与 leaf `files` 白名单) | npm 分发链路,照抄 `editor/npm/` 模式;平台二进制(`termide.exe`/`termide-linux-x64`)发布前本地构建后提交进 leaf 的 `bin/`(同 editor 的 ttt.exe 先例),发布经 `ide-publish.yml` | 2026-09-28 |
30
+ | 3 | `rustfmt.toml`(新增) | 空配置文件,仅注释 | 阻断 rustfmt 向上发现 Zeta 根配置(hard_tabs);否则 `cargo fmt` 重排整个快照、CI `--check` 门必挂(上游仓库自身即根,无此问题) | 2026-09-28 |
31
+
32
+ ## bump 流程
33
+
34
+ 1. `git -C temp/termide fetch origin && git -C temp/termide log HEAD..origin/main` 确认新提交;
35
+ 2. `git -C temp/termide archive <commit> | tar -x -C termide`(覆盖前 `diff -r` 对账本清单修改层,逐项重新应用并登记;上游 `.github/` 不随树);
36
+ 3. 更新本文件来源 commit/修改层;单 commit 提交(`vendor: bump termide to <sha>`)。
@@ -0,0 +1,45 @@
1
+ #!/usr/bin/env node
2
+ // zeta-ide launcher — resolves the platform binary from optionalDependencies
3
+ // leaves (same pattern as the zeta-editor launcher). Node-only, no Bun needed.
4
+
5
+ const fs = require("node:fs");
6
+ const path = require("node:path");
7
+ const { spawn } = require("node:child_process");
8
+
9
+ // npm package names use "windows"; Node's process.platform is "win32".
10
+ const PKG_PLATFORM = process.platform === "win32" ? "windows" : process.platform;
11
+ const PKG_PREFIX = "@linxiraos/ide-";
12
+ const EXE = process.platform === "win32" ? "termide.exe" : "termide-linux-x64";
13
+
14
+ function die(msg) {
15
+ process.stderr.write(`zeta-ide: ${msg}\n`);
16
+ process.exit(1);
17
+ }
18
+
19
+ let bin = null;
20
+ try {
21
+ bin = require.resolve(`${PKG_PREFIX}${PKG_PLATFORM}-${process.arch}/bin/${EXE}`);
22
+ } catch {
23
+ // Fall back to a repo-layout location (dev / source checkout):
24
+ // <repo>/termide/target/release/<exe> next to this package.
25
+ const local = path.join(__dirname, "..", "..", "..", "target", "release", EXE);
26
+ if (fs.existsSync(local)) bin = local;
27
+ }
28
+
29
+ if (!bin) {
30
+ die(
31
+ `no binary for ${process.platform}-${process.arch}; ` +
32
+ `install @linxiraos/ide (supported: windows-x64, linux-x64) ` +
33
+ `or build from source with \`cargo build --release\` in the termide/ workspace`,
34
+ );
35
+ }
36
+
37
+ const child = spawn(bin, process.argv.slice(2), { stdio: "inherit" });
38
+ child.on("error", (err) => die(String(err)));
39
+ child.on("close", (code, signal) => {
40
+ if (signal) {
41
+ process.kill(process.pid, signal);
42
+ } else {
43
+ process.exit(code ?? 0);
44
+ }
45
+ });
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "@linxiraos/ide",
3
+ "version": "1.1.21",
4
+ "description": "zeta-ide — the Zeta terminal IDE (vendored TermIDE): file manager, panels, git, and embedded virtual terminals",
5
+ "license": "MIT",
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/Linxira-OS/linxira-zeta.git",
12
+ "directory": "termide"
13
+ },
14
+ "bin": {
15
+ "zeta-ide": "bin/zeta-ide.js",
16
+ "zeta-i": "bin/zeta-ide.js"
17
+ },
18
+ "files": [
19
+ "bin/",
20
+ "LICENSE",
21
+ "VENDOR.md"
22
+ ],
23
+ "optionalDependencies": {
24
+ "@linxiraos/ide-windows-x64": "1.1.21",
25
+ "@linxiraos/ide-linux-x64": "1.1.21"
26
+ },
27
+ "engines": {
28
+ "node": ">=18"
29
+ }
30
+ }