@linxiraos/editor 1.1.15
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 +21 -0
- package/VENDOR.md +29 -0
- package/bin/zeta-editor.js +23 -0
- package/package.json +26 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Eugene Yakhnenko
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/VENDOR.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# VENDOR — TTT Editor 快照账目
|
|
2
|
+
|
|
3
|
+
| 项 | 值 |
|
|
4
|
+
|---|---|
|
|
5
|
+
| 上游仓库 | https://github.com/eugenioenko/ttt |
|
|
6
|
+
| 来源 tag | `v1.5.0` |
|
|
7
|
+
| peeled SHA | `765048940a54d9765fa574ae62df43abed398fa8` |
|
|
8
|
+
| 引入方式 | `git archive v1.5.0`(无上游 git 历史)|
|
|
9
|
+
| 协议 | MIT(`LICENSE` 原样保留,未改动)|
|
|
10
|
+
| 引入日期 | 2026-09-19 |
|
|
11
|
+
| npm 包 | `@linxiraos/editor`(Go 二进制分发,版本对齐 Zeta 产品线)|
|
|
12
|
+
|
|
13
|
+
## 出局方案(选型记录)
|
|
14
|
+
|
|
15
|
+
- fresh(Rust,GPL-2.0):臂长引用价值不足,协议不可 vendor。
|
|
16
|
+
- termide(MIT):功能差一档(无多光标/插件)。
|
|
17
|
+
- subtree 全历史:ttt/.git 实测 57MB,超 50MB push 红线。
|
|
18
|
+
- submodule:树不可改、force-push 场景易碎。
|
|
19
|
+
|
|
20
|
+
## 修改层清单(对上游 v1.5.0 的全部偏离)
|
|
21
|
+
|
|
22
|
+
(当前为纯净快照,无修改。后续每一处偏离在此登记:文件、内容、原因。)
|
|
23
|
+
|
|
24
|
+
## bump 流程
|
|
25
|
+
|
|
26
|
+
1. `git -C temp/ttt fetch origin && git -C temp/ttt tag` 确认新 tag;
|
|
27
|
+
2. `git -C temp/ttt archive <new-tag> | tar -x -C editor`(覆盖前 `diff -r` 对账
|
|
28
|
+
本清单的修改层,逐项重新应用并登记);
|
|
29
|
+
3. 更新本文件 tag/SHA/修改层;单 commit 提交(`vendor: bump editor to <tag>`)。
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// @linxiraos/editor launcher: resolves the platform binary installed via
|
|
3
|
+
// optionalDependencies and execs it with all arguments forwarded.
|
|
4
|
+
"use strict";
|
|
5
|
+
const { existsSync } = require("node:fs");
|
|
6
|
+
const path = require("node:path");
|
|
7
|
+
|
|
8
|
+
const EXE = process.platform === "win32" ? "ttt.exe" : "ttt-linux-x64";
|
|
9
|
+
const candidates = [
|
|
10
|
+
path.join(__dirname, "..", `@linxiraos/editor-${process.platform}-${process.arch}`, "bin", EXE),
|
|
11
|
+
];
|
|
12
|
+
let found;
|
|
13
|
+
for (const c of candidates) {
|
|
14
|
+
if (existsSync(c)) { found = c; break; }
|
|
15
|
+
}
|
|
16
|
+
if (!found) {
|
|
17
|
+
console.error(`@linxiraos/editor: no binary for ${process.platform}-${process.arch}. Install the matching @linxiraos/editor-* package.`);
|
|
18
|
+
process.exit(1);
|
|
19
|
+
}
|
|
20
|
+
const { spawnSync } = require("node:child_process");
|
|
21
|
+
const r = spawnSync(found, process.argv.slice(2), { stdio: "inherit" });
|
|
22
|
+
if (r.error) throw r.error;
|
|
23
|
+
process.exit(r.status ?? 0);
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@linxiraos/editor",
|
|
3
|
+
"version": "1.1.15",
|
|
4
|
+
"description": "Zeta terminal IDE (vendored TTT Editor v1.5.0) — single-binary terminal text editor",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/Linxira-OS/linxira-zeta.git",
|
|
9
|
+
"directory": "editor"
|
|
10
|
+
},
|
|
11
|
+
"bin": {
|
|
12
|
+
"zeta-editor": "./bin/zeta-editor.js"
|
|
13
|
+
},
|
|
14
|
+
"optionalDependencies": {
|
|
15
|
+
"@linxiraos/editor-windows-x64": "1.1.15",
|
|
16
|
+
"@linxiraos/editor-linux-x64": "1.1.15"
|
|
17
|
+
},
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"bin",
|
|
23
|
+
"LICENSE",
|
|
24
|
+
"VENDOR.md"
|
|
25
|
+
]
|
|
26
|
+
}
|