@tianacloud/cli 0.2.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 +17 -0
- package/bin/launcher.mjs +34 -0
- package/bin/tiana.mjs +4 -0
- package/package.json +10 -0
- package/platforms/darwin-arm64/SHA256SUMS +3 -0
- package/platforms/darwin-arm64/gateway-ca.pem +11 -0
- package/platforms/darwin-arm64/manifest.json +27 -0
- package/platforms/darwin-arm64/tiana +0 -0
- package/platforms/darwin-arm64/tiana-sql-executor +0 -0
- package/platforms/linux-amd64/SHA256SUMS +3 -0
- package/platforms/linux-amd64/gateway-ca.pem +11 -0
- package/platforms/linux-amd64/manifest.json +27 -0
- package/platforms/linux-amd64/tiana +0 -0
- package/platforms/linux-amd64/tiana-sql-executor +0 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Tiana CLI
|
|
2
|
+
|
|
3
|
+
This package distributes the Go CLI, its embedded Rust helper, the SQL executor,
|
|
4
|
+
and the public Gateway CA for macOS arm64 and Linux amd64. Installation
|
|
5
|
+
does not compile source or download additional executables.
|
|
6
|
+
|
|
7
|
+
Run `tiana verify-install --json` to check the installed executable pair and
|
|
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.
|
|
10
|
+
|
|
11
|
+
Install the pinned preview version with `npm install -g @tianacloud/cli@0.2.0`.
|
|
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.
|
|
15
|
+
|
|
16
|
+
Intel Mac support is deferred. The source template is not an installable
|
|
17
|
+
release: the release packager adds both native platform directories.
|
package/bin/launcher.mjs
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { spawn } from 'node:child_process';
|
|
2
|
+
import { constants } from 'node:os';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
4
|
+
|
|
5
|
+
export function platformDirectory(platform, arch) {
|
|
6
|
+
return {
|
|
7
|
+
'darwin:arm64': 'darwin-arm64',
|
|
8
|
+
'linux:x64': 'linux-amd64',
|
|
9
|
+
}[`${platform}:${arch}`];
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export function run() {
|
|
13
|
+
const platform = platformDirectory(process.platform, process.arch);
|
|
14
|
+
if (!platform) {
|
|
15
|
+
console.error(`Tiana CLI does not support ${process.platform}/${process.arch}`);
|
|
16
|
+
process.exitCode = 1;
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
const executable = fileURLToPath(new URL(`../platforms/${platform}/tiana`, import.meta.url));
|
|
20
|
+
const child = spawn(executable, process.argv.slice(2), { stdio: 'inherit' });
|
|
21
|
+
const onInterrupt = () => child.kill('SIGINT');
|
|
22
|
+
const onTerminate = () => child.kill('SIGTERM');
|
|
23
|
+
process.on('SIGINT', onInterrupt);
|
|
24
|
+
process.on('SIGTERM', onTerminate);
|
|
25
|
+
child.on('error', () => {
|
|
26
|
+
console.error('Cannot start the packaged Tiana CLI. Reinstall the complete package for this platform.');
|
|
27
|
+
process.exitCode = 1;
|
|
28
|
+
});
|
|
29
|
+
child.on('close', (code, signal) => {
|
|
30
|
+
process.off('SIGINT', onInterrupt);
|
|
31
|
+
process.off('SIGTERM', onTerminate);
|
|
32
|
+
process.exitCode = signal ? 128 + constants.signals[signal] : (code !== null && code >= 0 ? code : 1);
|
|
33
|
+
});
|
|
34
|
+
}
|
package/bin/tiana.mjs
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tianacloud/cli",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Tiana CLI with precompiled database helpers",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"engines": { "node": ">=20" },
|
|
7
|
+
"publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/", "tag": "next" },
|
|
8
|
+
"bin": { "tiana": "bin/tiana.mjs" },
|
|
9
|
+
"files": ["bin", "platforms", "README.md"]
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
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 CERTIFICATE-----
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.2.0",
|
|
3
|
+
"platform": "darwin",
|
|
4
|
+
"arch": "arm64",
|
|
5
|
+
"cli": {
|
|
6
|
+
"revision": "557957ae294443632a4094cd432c8bc2af1cb653",
|
|
7
|
+
"dirty": true
|
|
8
|
+
},
|
|
9
|
+
"helper": {
|
|
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",
|
|
21
|
+
"insecure_tls": false,
|
|
22
|
+
"files": {
|
|
23
|
+
"tiana": "d9b95aeed88063d54ab0ebe41dd0e3da80828202f5a4ed198c69bda3d8558a56",
|
|
24
|
+
"tiana-sql-executor": "af11364c247c60d8f63a09cf79dcea35ef845f8834296a73acb6cb3920f5d0a7",
|
|
25
|
+
"gateway-ca.pem": "a58227c8de2b5bdf3785a3194b35773a0dbe99be090348adfc15d3a06595c8f1"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
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 CERTIFICATE-----
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.2.0",
|
|
3
|
+
"platform": "linux",
|
|
4
|
+
"arch": "amd64",
|
|
5
|
+
"cli": {
|
|
6
|
+
"revision": "557957ae294443632a4094cd432c8bc2af1cb653",
|
|
7
|
+
"dirty": true
|
|
8
|
+
},
|
|
9
|
+
"helper": {
|
|
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",
|
|
21
|
+
"insecure_tls": false,
|
|
22
|
+
"files": {
|
|
23
|
+
"tiana": "01de9b66e158665c9656e02fcff3fb0c94557657d668ba8d8289828398cf7fc0",
|
|
24
|
+
"tiana-sql-executor": "9f656ddfa0abdb0e51c3341dca29e73d988c1779da7a1f0391daee209b401426",
|
|
25
|
+
"gateway-ca.pem": "a58227c8de2b5bdf3785a3194b35773a0dbe99be090348adfc15d3a06595c8f1"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
Binary file
|
|
Binary file
|