@celljs/ta-gateway 4.13.1 → 4.15.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/esm/node/gateway-cli.js +10 -9
- package/lib/node/gateway-cli.js +10 -9
- package/package.json +6 -6
package/esm/node/gateway-cli.js
CHANGED
|
@@ -7,23 +7,24 @@ import { SignInLinks } from './sign-in-links.js';
|
|
|
7
7
|
const HELP = `Usage: ta gateway [--host <host>] [--port <port>] [--dir <dir>]
|
|
8
8
|
ta gateway link <account> [--name <name>] [--dir <dir>]
|
|
9
9
|
|
|
10
|
-
One sign-in for many people, each with a Ta of their own: an account that signs in is a tenant, whose
|
|
11
|
-
runs in a sandbox of its own (a container per tenant by default), or in a Ta service of the user's.
|
|
12
|
-
client is served here; each browser's connection goes to the Ta of its tenant. Stops on SIGINT
|
|
10
|
+
One sign-in for many people, each with a Ta of their own: an account that signs in is a tenant, whose
|
|
11
|
+
Ta runs in a sandbox of its own (a container per tenant by default), or in a Ta service of the user's.
|
|
12
|
+
The web client is served here; each browser's connection goes to the Ta of its tenant. Stops on SIGINT
|
|
13
|
+
or SIGTERM.
|
|
13
14
|
|
|
14
15
|
--host Address to listen on. Default: 127.0.0.1
|
|
15
16
|
--port Port to listen on. Default: 4100, or PORT
|
|
16
17
|
--dir Its configuration and data. Default: TA_GATEWAY_DIR, else ~/.ta/gateway
|
|
17
18
|
|
|
18
|
-
Accounts sign in with the providers of the environment (TA_GITHUB_*, TA_GOOGLE_*, TA_WECHAT_*,
|
|
19
|
-
for ta serve) when TA_ALLOWED_USERS lets them in; TA_GATEWAY_ADMINS are let in too and
|
|
20
|
-
"ta gateway link <account>" prints a link that signs in as the account once, within
|
|
21
|
-
for someone without a provider of accounts (user:alice), or before one is set up.
|
|
19
|
+
Accounts sign in with the providers of the environment (TA_GITHUB_*, TA_GOOGLE_*, TA_WECHAT_*,
|
|
20
|
+
TA_OIDC_*, as for ta serve) when TA_ALLOWED_USERS lets them in; TA_GATEWAY_ADMINS are let in too and
|
|
21
|
+
manage the others. "ta gateway link <account>" prints a link that signs in as the account once, within
|
|
22
|
+
a day, and lets it in: for someone without a provider of accounts (user:alice), or before one is set up.
|
|
22
23
|
|
|
23
24
|
The sandboxes are those of sandboxes.json in the directory, as pi's models.json for models:
|
|
24
25
|
{ "default": "docker", "providers": { "docker": { "type": "docker", "image": "ta:latest", "memory": "4g" } } }
|
|
25
|
-
Types: docker, command (shell commands for any platform), local (no isolation: tests), ta (a Ta service
|
|
26
|
-
runs), module (a file whose default export makes a provider). See the README of @celljs/ta-gateway.
|
|
26
|
+
Types: docker, command (shell commands for any platform), local (no isolation: tests), ta (a Ta service
|
|
27
|
+
that runs), module (a file whose default export makes a provider). See the README of @celljs/ta-gateway.
|
|
27
28
|
`;
|
|
28
29
|
export var GatewayCli;
|
|
29
30
|
(function (GatewayCli) {
|
package/lib/node/gateway-cli.js
CHANGED
|
@@ -10,23 +10,24 @@ const sign_in_links_1 = require("./sign-in-links");
|
|
|
10
10
|
const HELP = `Usage: ta gateway [--host <host>] [--port <port>] [--dir <dir>]
|
|
11
11
|
ta gateway link <account> [--name <name>] [--dir <dir>]
|
|
12
12
|
|
|
13
|
-
One sign-in for many people, each with a Ta of their own: an account that signs in is a tenant, whose
|
|
14
|
-
runs in a sandbox of its own (a container per tenant by default), or in a Ta service of the user's.
|
|
15
|
-
client is served here; each browser's connection goes to the Ta of its tenant. Stops on SIGINT
|
|
13
|
+
One sign-in for many people, each with a Ta of their own: an account that signs in is a tenant, whose
|
|
14
|
+
Ta runs in a sandbox of its own (a container per tenant by default), or in a Ta service of the user's.
|
|
15
|
+
The web client is served here; each browser's connection goes to the Ta of its tenant. Stops on SIGINT
|
|
16
|
+
or SIGTERM.
|
|
16
17
|
|
|
17
18
|
--host Address to listen on. Default: 127.0.0.1
|
|
18
19
|
--port Port to listen on. Default: 4100, or PORT
|
|
19
20
|
--dir Its configuration and data. Default: TA_GATEWAY_DIR, else ~/.ta/gateway
|
|
20
21
|
|
|
21
|
-
Accounts sign in with the providers of the environment (TA_GITHUB_*, TA_GOOGLE_*, TA_WECHAT_*,
|
|
22
|
-
for ta serve) when TA_ALLOWED_USERS lets them in; TA_GATEWAY_ADMINS are let in too and
|
|
23
|
-
"ta gateway link <account>" prints a link that signs in as the account once, within
|
|
24
|
-
for someone without a provider of accounts (user:alice), or before one is set up.
|
|
22
|
+
Accounts sign in with the providers of the environment (TA_GITHUB_*, TA_GOOGLE_*, TA_WECHAT_*,
|
|
23
|
+
TA_OIDC_*, as for ta serve) when TA_ALLOWED_USERS lets them in; TA_GATEWAY_ADMINS are let in too and
|
|
24
|
+
manage the others. "ta gateway link <account>" prints a link that signs in as the account once, within
|
|
25
|
+
a day, and lets it in: for someone without a provider of accounts (user:alice), or before one is set up.
|
|
25
26
|
|
|
26
27
|
The sandboxes are those of sandboxes.json in the directory, as pi's models.json for models:
|
|
27
28
|
{ "default": "docker", "providers": { "docker": { "type": "docker", "image": "ta:latest", "memory": "4g" } } }
|
|
28
|
-
Types: docker, command (shell commands for any platform), local (no isolation: tests), ta (a Ta service
|
|
29
|
-
runs), module (a file whose default export makes a provider). See the README of @celljs/ta-gateway.
|
|
29
|
+
Types: docker, command (shell commands for any platform), local (no isolation: tests), ta (a Ta service
|
|
30
|
+
that runs), module (a file whose default export makes a provider). See the README of @celljs/ta-gateway.
|
|
30
31
|
`;
|
|
31
32
|
var GatewayCli;
|
|
32
33
|
(function (GatewayCli) {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-gateway",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.15.0",
|
|
4
4
|
"description": "ta gateway: one Ta per account, each in a sandbox of its own, behind one sign-in",
|
|
5
|
-
"homepage": "https://github.com/cellbang/
|
|
5
|
+
"homepage": "https://github.com/cellbang/ta",
|
|
6
6
|
"bugs": {
|
|
7
|
-
"url": "https://github.com/cellbang/
|
|
7
|
+
"url": "https://github.com/cellbang/ta/issues"
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"watch": "tsc -b -w --preserveWatchOutput"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@celljs/rpc": "4.
|
|
33
|
-
"@celljs/ta-host": "4.
|
|
34
|
-
"@celljs/ta-protocol": "4.
|
|
32
|
+
"@celljs/rpc": "4.15.0",
|
|
33
|
+
"@celljs/ta-host": "4.15.0",
|
|
34
|
+
"@celljs/ta-protocol": "4.15.0"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|