@celljs/ta-gateway 4.13.1 → 4.14.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.
@@ -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 Ta
11
- runs in a sandbox of its own (a container per tenant by default), or in a Ta service of the user's. The web
12
- client is served here; each browser's connection goes to the Ta of its tenant. Stops on SIGINT or SIGTERM.
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_*, TA_OIDC_*, as
19
- for ta serve) when TA_ALLOWED_USERS lets them in; TA_GATEWAY_ADMINS are let in too and manage the others.
20
- "ta gateway link <account>" prints a link that signs in as the account once, within a day, and lets it in:
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 that
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) {
@@ -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 Ta
14
- runs in a sandbox of its own (a container per tenant by default), or in a Ta service of the user's. The web
15
- client is served here; each browser's connection goes to the Ta of its tenant. Stops on SIGINT or SIGTERM.
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_*, TA_OIDC_*, as
22
- for ta serve) when TA_ALLOWED_USERS lets them in; TA_GATEWAY_ADMINS are let in too and manage the others.
23
- "ta gateway link <account>" prints a link that signs in as the account once, within a day, and lets it in:
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 that
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.13.1",
3
+ "version": "4.14.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/cell",
5
+ "homepage": "https://github.com/cellbang/ta",
6
6
  "bugs": {
7
- "url": "https://github.com/cellbang/cell/issues"
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.13.1",
33
- "@celljs/ta-host": "4.13.1",
34
- "@celljs/ta-protocol": "4.13.1"
32
+ "@celljs/rpc": "4.14.0",
33
+ "@celljs/ta-host": "4.14.0",
34
+ "@celljs/ta-protocol": "4.14.0"
35
35
  },
36
36
  "publishConfig": {
37
37
  "access": "public"