初始提交:terminalX 可运行态(M0/M1/M1.5 已真机验证)

- M0: libghostty SSH 终端(渲染/输入/连接)+ 白屏修复(OutputGate) + 会话状态机/自动重连
- M1: tsnet 用户态组网 + SSH-over-tsnet(fd 桥),shell 级真机验证;R5(Go+gvisor+C+++Swift 同进程) retire
- M1.5: tmux -CC 原生 tab(MVP)
- 结构: packages/(TXCore·TXTransport), apps/TerminalX, vendor/(libghostty-spm/libssh2/mbedtls/tsnet-bridge), artifacts/
- 文档: CLAUDE.md + docs/HANDOFF.md(新会话入口)
- 环境: 认证代理→依赖 vendor 本地化;Go 在 ~/.local/go;仅模拟器/未签名
- 待续: M2 mosh, tmux 多 pane, M4 安全(host key/SE)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
kid
2026-07-24 10:20:46 +08:00
commit aa92d0e676
2761 changed files with 803505 additions and 0 deletions

View File

@@ -0,0 +1,146 @@
// Auto-generated by Script/generate-themes.sh do not edit
public extension GhosttyThemeDefinition {
static let earthsong = GhosttyThemeDefinition(
name: "Earthsong",
background: "292520",
foreground: "e5c7a9",
cursorColor: "f6f7ec",
cursorText: "292520",
selectionBackground: "121418",
selectionForeground: "e5c7a9",
palette: [0: "121418", 1: "c94234", 2: "85c54c", 3: "f5ae2e", 4: "1398b9", 5: "d0633d", 6: "509552", 7: "e5c6aa", 8: "675f54", 9: "ff645a", 10: "98e036", 11: "e0d561", 12: "5fdaff", 13: "ff9269", 14: "84f088", 15: "f6f7ec"]
)
static let electron_Highlighter = GhosttyThemeDefinition(
name: "Electron Highlighter",
background: "23283d",
foreground: "a5b6d4",
cursorColor: "a5b6d4",
cursorText: "1a1b27",
selectionBackground: "25345a",
selectionForeground: "a5b6d4",
palette: [0: "15161f", 1: "ff6c8d", 2: "00ffc3", 3: "ffd7a9", 4: "77abff", 5: "daa4f4", 6: "00fdff", 7: "778faf", 8: "4a6789", 9: "ff6c8d", 10: "00ffc3", 11: "ffd7a9", 12: "77abff", 13: "daa4f4", 14: "00fdff", 15: "c3cee2"]
)
static let elegant = GhosttyThemeDefinition(
name: "Elegant",
background: "292b31",
foreground: "ced2d6",
cursorColor: "00beff",
cursorText: "ffffff",
selectionBackground: "d5d5d5",
selectionForeground: "144385",
palette: [0: "0a1222", 1: "ff0257", 2: "85cc95", 3: "ffcb8b", 4: "8dabe1", 5: "c792eb", 6: "78ccf0", 7: "ffffff", 8: "575656", 9: "ff0057", 10: "85cc95", 11: "ffcb8b", 12: "8dabe1", 13: "c792eb", 14: "3facef", 15: "ffffff"]
)
static let elemental = GhosttyThemeDefinition(
name: "Elemental",
background: "22211d",
foreground: "807a74",
cursorColor: "facb80",
cursorText: "161611",
selectionBackground: "413829",
selectionForeground: "facd77",
palette: [0: "3c3c30", 1: "98290f", 2: "479a43", 3: "7f7111", 4: "497f7d", 5: "7f4e2f", 6: "387f58", 7: "807974", 8: "555445", 9: "e0502a", 10: "61e070", 11: "d69927", 12: "79d9d9", 13: "cd7c54", 14: "59d599", 15: "fff1e9"]
)
static let elementary = GhosttyThemeDefinition(
name: "Elementary",
background: "181818",
foreground: "efefef",
cursorColor: "bbbbbb",
cursorText: "ffffff",
selectionBackground: "b5d5ff",
selectionForeground: "000000",
palette: [0: "242424", 1: "d71c15", 2: "5aa513", 3: "fdb40c", 4: "134899", 5: "e40038", 6: "2595e1", 7: "efefef", 8: "4b4b4b", 9: "fc1c18", 10: "6bc219", 11: "fec80e", 12: "0955ff", 13: "fb0050", 14: "3ea8fc", 15: "8c00ec"]
)
static let embark = GhosttyThemeDefinition(
name: "Embark",
background: "1e1c31",
foreground: "eeffff",
cursorColor: "a1efd3",
cursorText: "1e1c31",
selectionBackground: "fbfcfc",
selectionForeground: "1e1c31",
palette: [0: "1e1c31", 1: "f0719b", 2: "a1efd3", 3: "ffe9aa", 4: "57c7ff", 5: "c792ea", 6: "87dfeb", 7: "f8f8f2", 8: "585273", 9: "f02e6e", 10: "2ce592", 11: "ffb378", 12: "1da0e2", 13: "a742ea", 14: "63f2f1", 15: "a6b3cc"]
)
static let embers_Dark = GhosttyThemeDefinition(
name: "Embers Dark",
background: "16130f",
foreground: "a39a90",
cursorColor: "a39a90",
cursorText: "16130f",
selectionBackground: "433b32",
selectionForeground: "a39a90",
palette: [0: "16130f", 1: "826d57", 2: "57826d", 3: "6d8257", 4: "6d5782", 5: "82576d", 6: "576d82", 7: "a39a90", 8: "5a5047", 9: "828257", 10: "464039", 11: "50483f", 12: "8a8075", 13: "beb6ae", 14: "825757", 15: "dbd6d1"]
)
static let eNCOM = GhosttyThemeDefinition(
name: "ENCOM",
background: "000000",
foreground: "00a595",
cursorColor: "bbbbbb",
cursorText: "ffffff",
selectionBackground: "00a48c",
selectionForeground: "3de1c9",
palette: [0: "000000", 1: "9f0000", 2: "008b00", 3: "ffd000", 4: "0081ff", 5: "bc00ca", 6: "008b8b", 7: "bbbbbb", 8: "555555", 9: "ff0000", 10: "00ee00", 11: "ffff00", 12: "0000ff", 13: "ff00ff", 14: "00cdcd", 15: "ffffff"]
)
static let espresso = GhosttyThemeDefinition(
name: "Espresso",
background: "323232",
foreground: "ffffff",
cursorColor: "d6d6d6",
cursorText: "999999",
selectionBackground: "5b5b5b",
selectionForeground: "ffffff",
palette: [0: "353535", 1: "d25252", 2: "a5c261", 3: "ffc66d", 4: "6c99bb", 5: "d197d9", 6: "bed6ff", 7: "eeeeec", 8: "606060", 9: "f00c0c", 10: "c2e075", 11: "e1e48b", 12: "8ab7d9", 13: "efb5f7", 14: "dcf4ff", 15: "ffffff"]
)
static let espresso_Libre = GhosttyThemeDefinition(
name: "Espresso Libre",
background: "2a211c",
foreground: "b8a898",
cursorColor: "ffffff",
cursorText: "000000",
selectionBackground: "c3dcff",
selectionForeground: "ab9b8b",
palette: [0: "000000", 1: "cc0000", 2: "1a921c", 3: "f0e53a", 4: "0066ff", 5: "c5656b", 6: "06989a", 7: "d3d7cf", 8: "555753", 9: "ef2929", 10: "9aff87", 11: "fffb5c", 12: "43a8ed", 13: "ff818a", 14: "34e2e2", 15: "eeeeec"]
)
static let everblush = GhosttyThemeDefinition(
name: "Everblush",
background: "141b1e",
foreground: "dadada",
cursorColor: "dadada",
cursorText: "141b1e",
selectionBackground: "141b1e",
selectionForeground: "dadada",
palette: [0: "232a2d", 1: "e57474", 2: "8ccf7e", 3: "e5c76b", 4: "67b0e8", 5: "c47fd5", 6: "6cbfbf", 7: "b3b9b8", 8: "464e50", 9: "ef7e7e", 10: "96d988", 11: "f4d67a", 12: "71baf2", 13: "ce89df", 14: "67cbe7", 15: "bdc3c2"]
)
static let everforest_Dark_Hard = GhosttyThemeDefinition(
name: "Everforest Dark Hard",
background: "1e2326",
foreground: "d3c6aa",
cursorColor: "e69875",
cursorText: "4c3743",
selectionBackground: "4c3743",
selectionForeground: "d3c6aa",
palette: [0: "7a8478", 1: "e67e80", 2: "a7c080", 3: "dbbc7f", 4: "7fbbb3", 5: "d699b6", 6: "83c092", 7: "f2efdf", 8: "a6b0a0", 9: "f85552", 10: "8da101", 11: "dfa000", 12: "3a94c5", 13: "df69ba", 14: "35a77c", 15: "fffbef"]
)
static let everforest_Light_Med = GhosttyThemeDefinition(
name: "Everforest Light Med",
background: "efebd4",
foreground: "5c6a72",
cursorColor: "f57d26",
cursorText: "eaedc8",
selectionBackground: "eaedc8",
selectionForeground: "5c6a72",
palette: [0: "7a8478", 1: "e67e80", 2: "9ab373", 3: "c1a266", 4: "7fbbb3", 5: "d699b6", 6: "83c092", 7: "b2af9f", 8: "a6b0a0", 9: "f85552", 10: "8da101", 11: "dfa000", 12: "3a94c5", 13: "df69ba", 14: "35a77c", 15: "fffbef"]
)
}