@pontia/cli 0.7.6 → 0.7.7
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 +43 -0
- package/bin/pontia-install.js +15 -5
- package/package.json +6 -6
package/README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# @pontia/cli
|
|
2
|
+
|
|
3
|
+
Install [Pontia](https://pontia.dev/) from the npm registry. Pontia lets you run and control your coding agents (pi, Codex, Claude Code, and ACP agents) from a local or remote Dashboard.
|
|
4
|
+
|
|
5
|
+
The `pontia` and `pontiad` binaries come from a platform package on your configured registry, so npm mirrors and private registries work.
|
|
6
|
+
|
|
7
|
+
## Requirements
|
|
8
|
+
|
|
9
|
+
- Linux with systemd, or macOS 13.5 or later, on x64 or arm64.
|
|
10
|
+
- Node.js with npm. Do not install with `--omit=optional`.
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
Install Pontia and start the interactive initializer:
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
npx @pontia/cli init
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Install Pontia without initializing, for example when an agent or script sets up the device step by step:
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
npx @pontia/cli install
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Both commands place `pontia` and `pontiad` in `$HOME/.local/bin`. Set `PONTIA_INSTALL_DIR` to use a different directory, and make sure the directory is in your `PATH`. If both binaries are already installed, they are kept.
|
|
27
|
+
|
|
28
|
+
Update to the latest signed release:
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
npx @pontia/cli update
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
This runs `pontia update`, which downloads from the Pontia release server instead of npm.
|
|
35
|
+
|
|
36
|
+
## Documentation
|
|
37
|
+
|
|
38
|
+
- [Getting started](https://pontia.dev/docs/getting-started)
|
|
39
|
+
- [Initialization](https://pontia.dev/docs/initialization)
|
|
40
|
+
|
|
41
|
+
## License
|
|
42
|
+
|
|
43
|
+
Apache-2.0
|
package/bin/pontia-install.js
CHANGED
|
@@ -12,7 +12,8 @@ const PLATFORM_PACKAGES = {
|
|
|
12
12
|
"darwin-x64": "@pontia/cli-darwin-x64",
|
|
13
13
|
"darwin-arm64": "@pontia/cli-darwin-arm64",
|
|
14
14
|
};
|
|
15
|
-
const USAGE =
|
|
15
|
+
const USAGE = `Usage: npx @pontia/cli install
|
|
16
|
+
npx @pontia/cli <init|update> [pontia arguments...]`;
|
|
16
17
|
const CURL_INSTALL = "curl -fsSL https://get.pontia.dev/install.sh | sh";
|
|
17
18
|
|
|
18
19
|
class InstallerError extends Error {}
|
|
@@ -77,17 +78,26 @@ function runPontia(directory, args) {
|
|
|
77
78
|
return result.status ?? 1;
|
|
78
79
|
}
|
|
79
80
|
|
|
81
|
+
// Install the packaged binaries unless both are already present.
|
|
82
|
+
function ensureInstalled(directory) {
|
|
83
|
+
if (!isInstalled(directory)) install(platformPackageDir(), directory);
|
|
84
|
+
if (!onPath(directory)) {
|
|
85
|
+
console.error(`${directory} is not in PATH. Add it to PATH to run pontia directly.`);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
80
89
|
function main([command, ...args]) {
|
|
90
|
+
if (command === "install" && args.length === 0) {
|
|
91
|
+
ensureInstalled(installDir());
|
|
92
|
+
return 0;
|
|
93
|
+
}
|
|
81
94
|
if (command !== "init" && command !== "update") {
|
|
82
95
|
console.error(USAGE);
|
|
83
96
|
return 2;
|
|
84
97
|
}
|
|
85
98
|
const directory = installDir();
|
|
86
99
|
if (command === "init") {
|
|
87
|
-
|
|
88
|
-
if (!onPath(directory)) {
|
|
89
|
-
console.error(`${directory} is not in PATH. Add it to PATH to run pontia directly.`);
|
|
90
|
-
}
|
|
100
|
+
ensureInstalled(directory);
|
|
91
101
|
} else if (!isInstalled(directory)) {
|
|
92
102
|
throw new InstallerError(`Pontia is not installed in ${directory}. Run: npx @pontia/cli init`);
|
|
93
103
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pontia/cli",
|
|
3
|
-
"version": "0.7.
|
|
4
|
-
"description": "Install Pontia
|
|
3
|
+
"version": "0.7.7",
|
|
4
|
+
"description": "Install Pontia from the npm registry.",
|
|
5
5
|
"homepage": "https://pontia.dev/",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/anthod0/pontia/issues"
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"test": "node --test"
|
|
25
25
|
},
|
|
26
26
|
"optionalDependencies": {
|
|
27
|
-
"@pontia/cli-darwin-arm64": "0.7.
|
|
28
|
-
"@pontia/cli-darwin-x64": "0.7.
|
|
29
|
-
"@pontia/cli-linux-arm64": "0.7.
|
|
30
|
-
"@pontia/cli-linux-x64": "0.7.
|
|
27
|
+
"@pontia/cli-darwin-arm64": "0.7.7",
|
|
28
|
+
"@pontia/cli-darwin-x64": "0.7.7",
|
|
29
|
+
"@pontia/cli-linux-arm64": "0.7.7",
|
|
30
|
+
"@pontia/cli-linux-x64": "0.7.7"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|