@tianacloud/cli 0.2.0 → 0.2.1-beta.0
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 +10 -12
- package/bin/git-remote-tiana.mjs +5 -0
- package/bin/launcher.mjs +2 -2
- package/package.json +19 -6
- package/platforms/darwin-arm64/SHA256SUMS +2 -3
- package/platforms/darwin-arm64/git-remote-tiana +9 -0
- package/platforms/darwin-arm64/manifest.json +6 -18
- package/platforms/darwin-arm64/tiana +0 -0
- package/platforms/linux-amd64/SHA256SUMS +2 -3
- package/platforms/linux-amd64/git-remote-tiana +9 -0
- package/platforms/linux-amd64/manifest.json +6 -18
- package/platforms/linux-amd64/tiana +0 -0
- package/platforms/darwin-arm64/gateway-ca.pem +0 -11
- package/platforms/darwin-arm64/tiana-sql-executor +0 -0
- package/platforms/linux-amd64/gateway-ca.pem +0 -11
- package/platforms/linux-amd64/tiana-sql-executor +0 -0
package/README.md
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
# Tiana CLI
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
and the public Gateway CA for macOS arm64 and Linux amd64. Installation
|
|
5
|
-
does not compile source or download additional executables.
|
|
3
|
+
此预发布包包含 macOS arm64、Linux amd64 的原生 Go CLI 和 Git 启动器。安装时无需下载额外可执行文件,也不编译 Rust。使用 `npm install -g @tianacloud/cli@0.2.1-beta.0` 安装;此版本使用 `next` 标签。
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
helper contract. Then use `tiana auth login` in a terminal, or connect Tiana in
|
|
9
|
-
WorkBuddy. Both workflows use the same local credential store and task journal.
|
|
5
|
+
本地审核 tarball 也可用 `npm install -g /path/to/tiana-cli-VERSION.tgz` 安装。用 `tiana --version`、`tiana login --help`、`tiana apps --help` 核验功能。
|
|
10
6
|
|
|
11
|
-
|
|
12
|
-
Preview releases use the `next` tag. Access to the configured Tiana
|
|
13
|
-
Console and Gateway still requires the Tiana network and Console certificate
|
|
14
|
-
trust; installing this public npm package does not grant database access.
|
|
7
|
+
管理端地址可由 `--config /path/to/tiana/config.json` 中的 `managementOrigin` 提供,也支持 `TIANA_MGR_ORIGIN`;私有 CA 使用 `TIANA_CA_FILE` 或 `--ca-file`。包不内置部署地址或 CA,默认验证 TLS。
|
|
15
8
|
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
对话中运行 `tiana login --start --no-open --json` 并向用户展示 `data.verification_uri`。授权后执行 `tiana login --resume --json`,成功再执行 `tiana status`。普通终端可用 `tiana login`。
|
|
10
|
+
|
|
11
|
+
数据库:`tiana sqlite create NAME --wait`、`tiana sqlite shell INSTANCE -e 'SELECT 1'`。源码:`tiana git create NAME --wait`,使用返回的远程地址进行普通 Git 推送。连接读取已有账号登录态,不保存本地实例 Token;过期时重新登录。
|
|
12
|
+
|
|
13
|
+
应用:`tiana apps serve --dir DIST`、`tiana apps create --project ID --name NAME`、`tiana apps upload --project ID --version VERSION --dir DIST --json`。遵循配套 Tiana Skill 的模板、哈希路由和清单。
|
|
14
|
+
|
|
15
|
+
构建:分别执行 `node scripts/build-platform.mjs darwin-arm64 ASSETS` 与 `node scripts/build-platform.mjs linux-amd64 ASSETS`,然后 `node scripts/package-cli.mjs ASSETS OUTPUT`。输出 tarball 和校验和,不上传或发布。
|
package/bin/launcher.mjs
CHANGED
|
@@ -9,7 +9,7 @@ export function platformDirectory(platform, arch) {
|
|
|
9
9
|
}[`${platform}:${arch}`];
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export function run() {
|
|
12
|
+
export function run(args = process.argv.slice(2)) {
|
|
13
13
|
const platform = platformDirectory(process.platform, process.arch);
|
|
14
14
|
if (!platform) {
|
|
15
15
|
console.error(`Tiana CLI does not support ${process.platform}/${process.arch}`);
|
|
@@ -17,7 +17,7 @@ export function run() {
|
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
19
|
const executable = fileURLToPath(new URL(`../platforms/${platform}/tiana`, import.meta.url));
|
|
20
|
-
const child = spawn(executable,
|
|
20
|
+
const child = spawn(executable, args, { stdio: 'inherit' });
|
|
21
21
|
const onInterrupt = () => child.kill('SIGINT');
|
|
22
22
|
const onTerminate = () => child.kill('SIGTERM');
|
|
23
23
|
process.on('SIGINT', onInterrupt);
|
package/package.json
CHANGED
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tianacloud/cli",
|
|
3
|
-
"version": "0.2.0",
|
|
4
|
-
"description": "Tiana CLI
|
|
3
|
+
"version": "0.2.1-beta.0",
|
|
4
|
+
"description": "Tiana CLI for account login, SQLite, Git and application publication",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"engines": {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=20"
|
|
8
|
+
},
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public",
|
|
11
|
+
"registry": "https://registry.npmjs.org/",
|
|
12
|
+
"tag": "next"
|
|
13
|
+
},
|
|
14
|
+
"bin": {
|
|
15
|
+
"tiana": "bin/tiana.mjs",
|
|
16
|
+
"git-remote-tiana": "bin/git-remote-tiana.mjs"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"bin",
|
|
20
|
+
"platforms",
|
|
21
|
+
"README.md"
|
|
22
|
+
]
|
|
10
23
|
}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
a58227c8de2b5bdf3785a3194b35773a0dbe99be090348adfc15d3a06595c8f1 gateway-ca.pem
|
|
1
|
+
63195fea15639b54a886f2f9b84cc401d0052241c36f9b429aca87cfbc548e17 tiana
|
|
2
|
+
c0ae5f5c3387c24980b271f63cb5adba25d6317b3a4bcb38b2322e59b872da7d git-remote-tiana
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
set -eu
|
|
3
|
+
# Resolve only this launcher's directory; never search PATH for tiana.
|
|
4
|
+
case "$0" in
|
|
5
|
+
*/*) launcher=$0 ;;
|
|
6
|
+
*) launcher=$(command -v "$0") ;;
|
|
7
|
+
esac
|
|
8
|
+
launcher_dir=$(CDPATH='' cd -P -- "$(dirname -- "$launcher")" && pwd)
|
|
9
|
+
exec "$launcher_dir/tiana" git remote-helper "$@"
|
|
@@ -1,27 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.2.0",
|
|
2
|
+
"version": "0.2.1-beta.0",
|
|
3
3
|
"platform": "darwin",
|
|
4
4
|
"arch": "arm64",
|
|
5
5
|
"cli": {
|
|
6
|
-
"revision": "
|
|
7
|
-
"dirty":
|
|
6
|
+
"revision": "e9862310fdfebd79ba816b5715ee8be38d162943",
|
|
7
|
+
"dirty": false
|
|
8
8
|
},
|
|
9
|
-
"
|
|
10
|
-
"contract": 3,
|
|
11
|
-
"revision": "c681e209a9151eee8dc3a0b9ed0277145617ac82",
|
|
12
|
-
"tags": [],
|
|
13
|
-
"dirty": false,
|
|
14
|
-
"sha256": "79ddd75756093c3e6ca2dcb28aeabf5f608c1a7f6af5780cfd721d047abda521"
|
|
15
|
-
},
|
|
16
|
-
"sql_executor": {
|
|
17
|
-
"sdk_tag": "v0.1.0-dev.5",
|
|
18
|
-
"sdk_revision": "0d955224802d793539835b868f75f5163f27057f"
|
|
19
|
-
},
|
|
20
|
-
"gateway_port": "9443",
|
|
9
|
+
"runtime": "native-go",
|
|
21
10
|
"insecure_tls": false,
|
|
22
11
|
"files": {
|
|
23
|
-
"tiana": "
|
|
24
|
-
"
|
|
25
|
-
"gateway-ca.pem": "a58227c8de2b5bdf3785a3194b35773a0dbe99be090348adfc15d3a06595c8f1"
|
|
12
|
+
"tiana": "63195fea15639b54a886f2f9b84cc401d0052241c36f9b429aca87cfbc548e17",
|
|
13
|
+
"git-remote-tiana": "c0ae5f5c3387c24980b271f63cb5adba25d6317b3a4bcb38b2322e59b872da7d"
|
|
26
14
|
}
|
|
27
15
|
}
|
|
Binary file
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
a58227c8de2b5bdf3785a3194b35773a0dbe99be090348adfc15d3a06595c8f1 gateway-ca.pem
|
|
1
|
+
9175db757bb3ae83749316f59c6d2cc67423015b69d321a71d1d1571ae1aa974 tiana
|
|
2
|
+
c0ae5f5c3387c24980b271f63cb5adba25d6317b3a4bcb38b2322e59b872da7d git-remote-tiana
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
set -eu
|
|
3
|
+
# Resolve only this launcher's directory; never search PATH for tiana.
|
|
4
|
+
case "$0" in
|
|
5
|
+
*/*) launcher=$0 ;;
|
|
6
|
+
*) launcher=$(command -v "$0") ;;
|
|
7
|
+
esac
|
|
8
|
+
launcher_dir=$(CDPATH='' cd -P -- "$(dirname -- "$launcher")" && pwd)
|
|
9
|
+
exec "$launcher_dir/tiana" git remote-helper "$@"
|
|
@@ -1,27 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.2.0",
|
|
2
|
+
"version": "0.2.1-beta.0",
|
|
3
3
|
"platform": "linux",
|
|
4
4
|
"arch": "amd64",
|
|
5
5
|
"cli": {
|
|
6
|
-
"revision": "
|
|
7
|
-
"dirty":
|
|
6
|
+
"revision": "e9862310fdfebd79ba816b5715ee8be38d162943",
|
|
7
|
+
"dirty": false
|
|
8
8
|
},
|
|
9
|
-
"
|
|
10
|
-
"contract": 3,
|
|
11
|
-
"revision": "c681e209a9151eee8dc3a0b9ed0277145617ac82",
|
|
12
|
-
"tags": [],
|
|
13
|
-
"dirty": false,
|
|
14
|
-
"sha256": "9ef85e2719024639f0da90ac97218490252660297e42cdf6f41e79d80e66f24c"
|
|
15
|
-
},
|
|
16
|
-
"sql_executor": {
|
|
17
|
-
"sdk_tag": "v0.1.0-dev.5",
|
|
18
|
-
"sdk_revision": "0d955224802d793539835b868f75f5163f27057f"
|
|
19
|
-
},
|
|
20
|
-
"gateway_port": "9443",
|
|
9
|
+
"runtime": "native-go",
|
|
21
10
|
"insecure_tls": false,
|
|
22
11
|
"files": {
|
|
23
|
-
"tiana": "
|
|
24
|
-
"
|
|
25
|
-
"gateway-ca.pem": "a58227c8de2b5bdf3785a3194b35773a0dbe99be090348adfc15d3a06595c8f1"
|
|
12
|
+
"tiana": "9175db757bb3ae83749316f59c6d2cc67423015b69d321a71d1d1571ae1aa974",
|
|
13
|
+
"git-remote-tiana": "c0ae5f5c3387c24980b271f63cb5adba25d6317b3a4bcb38b2322e59b872da7d"
|
|
26
14
|
}
|
|
27
15
|
}
|
|
Binary file
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
-----BEGIN CERTIFICATE-----
|
|
2
|
-
MIIBpjCCAUugAwIBAgIUNWu+Mh42CLohPNuB/NWYYyV5WbwwCgYIKoZIzj0EAwIw
|
|
3
|
-
KDEmMCQGA1UEAwwdVGlhbmEgV3VsYW5jaGFidSBHYXRld2F5IFJvb3QwHhcNMjYw
|
|
4
|
-
ODMxMTMzMzEzWhcNMjcwODMxMTMzMzEzWjAoMSYwJAYDVQQDDB1UaWFuYSBXdWxh
|
|
5
|
-
bmNoYWJ1IEdhdGV3YXkgUm9vdDBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABFMy
|
|
6
|
-
+aW6atPqGtENk5km6zA/VAJo6m+zRWzBGGUN8Tbpzsy7YSnzpFLSUferMibOxg6a
|
|
7
|
-
R0XAnhBG8r6UBcEKypCjUzBRMB0GA1UdDgQWBBRdFpO4wpfptqHgmmlhn2cVCwWs
|
|
8
|
-
ATAfBgNVHSMEGDAWgBRdFpO4wpfptqHgmmlhn2cVCwWsATAPBgNVHRMBAf8EBTAD
|
|
9
|
-
AQH/MAoGCCqGSM49BAMCA0kAMEYCIQDJvsv7y17eTqJEymqex1W5TeEWNPK4PJKQ
|
|
10
|
-
iLChS8bJsgIhAOFkG3RPZ8yR8O/mybxtEITvkIIJ3w6i4/3n5sB1PEsS
|
|
11
|
-
-----END CERTIFIC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