@linxiraos/main 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 +24 -0
- package/README.md +26 -0
- package/bin/zeta.js +46 -0
- package/package.json +29 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Mario Zechner
|
|
4
|
+
Copyright (c) 2025-2026 Can Bölük
|
|
5
|
+
Copyright (c) 2026 Stencil Labs, Inc.
|
|
6
|
+
Copyright (c) 2026 Linxira-OS (Zeta modifications and additions)
|
|
7
|
+
|
|
8
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
+
in the Software without restriction, including without limitation the rights
|
|
11
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
+
furnished to do so, subject to the following conditions:
|
|
14
|
+
|
|
15
|
+
The above copyright notice and this permission notice shall be included in all
|
|
16
|
+
copies or substantial portions of the Software.
|
|
17
|
+
|
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
24
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# zeta — the Zeta workspace
|
|
2
|
+
|
|
3
|
+
One terminal, many tools: `zeta` opens a nested-terminal workbench — top-level
|
|
4
|
+
tabs, tiled panes of real embedded terminals (PTY children), and a menu of the
|
|
5
|
+
Zeta suite. Type `zeta` in a project directory and everything is one key away:
|
|
6
|
+
|
|
7
|
+
- `Alt+C` — a pane running `zeta-c` (the coding agent)
|
|
8
|
+
- `Alt+E` — a pane running `zeta-e` (the terminal editor)
|
|
9
|
+
- `Alt+N` / `Alt+S` — a plain shell pane
|
|
10
|
+
- `Alt+T` / `Alt+1..9` — new tab / jump between tabs (each tab keeps its own
|
|
11
|
+
layout)
|
|
12
|
+
- `Alt+L` — cycle the pane layout (1x1, side-by-side, 2x2)
|
|
13
|
+
- `F1` — in-app help; `zeta --help` — the same map on the command line
|
|
14
|
+
|
|
15
|
+
Every tool also runs standalone (`zeta-c`, `zeta-editor`/`zeta-e`,
|
|
16
|
+
`zeta-ide`/`zeta-i`, each with its own `--help`).
|
|
17
|
+
|
|
18
|
+
The workspace is Rust (ratatui + portable-pty via the vendored TermIDE panel
|
|
19
|
+
crates). This tree is its own Cargo workspace — `cargo build` inside `main/`.
|
|
20
|
+
|
|
21
|
+
## npm distribution
|
|
22
|
+
|
|
23
|
+
`@linxiraos/main` (bin `zeta`) with `@linxiraos/main-windows-x64` /
|
|
24
|
+
`@linxiraos/main-linux-x64` platform leaves, mirroring the editor and ide
|
|
25
|
+
packages. Platform binaries are built locally and committed into the leaf
|
|
26
|
+
`bin/` directories before a release.
|
package/bin/zeta.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// zeta launcher — resolves the workspace binary from optionalDependencies
|
|
3
|
+
// leaves (same pattern as the zeta-ide / zeta-editor launchers). Node-only,
|
|
4
|
+
// no Bun needed.
|
|
5
|
+
|
|
6
|
+
const fs = require("node:fs");
|
|
7
|
+
const path = require("node:path");
|
|
8
|
+
const { spawn } = require("node:child_process");
|
|
9
|
+
|
|
10
|
+
// npm package names use "windows"; Node's process.platform is "win32".
|
|
11
|
+
const PKG_PLATFORM = process.platform === "win32" ? "windows" : process.platform;
|
|
12
|
+
const PKG_PREFIX = "@linxiraos/main-";
|
|
13
|
+
const EXE = process.platform === "win32" ? "zeta.exe" : "zeta-linux-x64";
|
|
14
|
+
|
|
15
|
+
function die(msg) {
|
|
16
|
+
process.stderr.write(`zeta: ${msg}\n`);
|
|
17
|
+
process.exit(1);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
let bin = null;
|
|
21
|
+
try {
|
|
22
|
+
bin = require.resolve(`${PKG_PREFIX}${PKG_PLATFORM}-${process.arch}/bin/${EXE}`);
|
|
23
|
+
} catch {
|
|
24
|
+
// Fall back to a repo-layout location (dev / source checkout):
|
|
25
|
+
// <repo>/main/target/release/<exe> next to this package.
|
|
26
|
+
const local = path.join(__dirname, "..", "..", "..", "target", "release", EXE);
|
|
27
|
+
if (fs.existsSync(local)) bin = local;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
if (!bin) {
|
|
31
|
+
die(
|
|
32
|
+
`no binary for ${process.platform}-${process.arch}; ` +
|
|
33
|
+
`install @linxiraos/main (supported: windows-x64, linux-x64) ` +
|
|
34
|
+
`or build from source with \`cargo build --release\` in the main/ workspace`,
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const child = spawn(bin, process.argv.slice(2), { stdio: "inherit" });
|
|
39
|
+
child.on("error", (err) => die(String(err)));
|
|
40
|
+
child.on("close", (code, signal) => {
|
|
41
|
+
if (signal) {
|
|
42
|
+
process.kill(process.pid, signal);
|
|
43
|
+
} else {
|
|
44
|
+
process.exit(code ?? 0);
|
|
45
|
+
}
|
|
46
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@linxiraos/main",
|
|
3
|
+
"version": "1.1.21",
|
|
4
|
+
"description": "zeta — the Zeta workspace: a nested-terminal workbench with tabs, panes, and the Zeta tool suite",
|
|
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": "main"
|
|
13
|
+
},
|
|
14
|
+
"bin": {
|
|
15
|
+
"zeta": "bin/zeta.js"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"bin/",
|
|
19
|
+
"LICENSE",
|
|
20
|
+
"README.md"
|
|
21
|
+
],
|
|
22
|
+
"optionalDependencies": {
|
|
23
|
+
"@linxiraos/main-windows-x64": "1.1.21",
|
|
24
|
+
"@linxiraos/main-linux-x64": "1.1.21"
|
|
25
|
+
},
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=18"
|
|
28
|
+
}
|
|
29
|
+
}
|