@lotics/cli 0.205.0 → 0.205.1
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/AGENTS.md +14 -3
- package/README.md +2 -2
- package/dist/src/cli.js +1 -1
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -55,12 +55,23 @@ response there is *not* evidence the subcommand is absent. To find out whether s
|
|
|
55
55
|
- **A credential is either a SIGN-IN or an API KEY, and `logout` treats them differently.** A profile
|
|
56
56
|
from `auth login` / `auth signup` acts as the person who confirmed it and is theirs — `lotics auth
|
|
57
57
|
logout` revokes it server-side, and it lapses on its own after 90 idle days (each use pushes that
|
|
58
|
-
out). A profile from `auth api-key` holds a key an ADMIN issued
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
out). A profile from `auth api-key` holds a key an ADMIN issued. A key created in Settings carries
|
|
59
|
+
its OWN access — every app and table, or only the ones chosen on the key, so a listing that comes
|
|
60
|
+
back short is the key's reach, not a bug — while a key created FOR a person carries that
|
|
61
|
+
person's access and dies with their membership. Either is routinely also on a server and on
|
|
62
|
+
other machines, so logout only forgets it locally and says so; only an admin revokes it. A profile that states no kind (saved before the field existed) is resolved against the SERVER
|
|
61
63
|
and revoked only if the answer is a sign-in; a bare `--api-key` / `LOTICS_API_KEY` names no
|
|
62
64
|
profile to remove at all. Nothing is ever revoked on a guess — between two, the destructive one is
|
|
63
65
|
wrong. `lotics auth whoami` prints the kind, asking the server when the store cannot say.
|
|
66
|
+
- **A key created in Settings never administers the organization, whatever its access.** The verbs
|
|
67
|
+
`docs/cli_reference.md` marks *admin only* split in two under a key: the ones that BUILD inside a workspace
|
|
68
|
+
the key reaches — `scaffold apply`, `library init`, `app upgrade`, `workspace doctor`, `scaffold
|
|
69
|
+
export`, `field rename` — run as before, while managing people, sharing or ownership, creating or
|
|
70
|
+
deleting a workspace, changing workspace settings, setting credit limits, reading the access log
|
|
71
|
+
and publishing a starter or an app's API answer `403` and name the remedy: an admin signed in, so
|
|
72
|
+
`lotics auth login <email>` and run it again. A sign-in acts as that person and is refused none of
|
|
73
|
+
them. Do not retry a `403` with the same credential and do not ask for a wider key — no answer on
|
|
74
|
+
the key's own screen grants this.
|
|
64
75
|
- **A 401 names its remedy — act on the hint, do not retry.** "This credential expired / was
|
|
65
76
|
revoked / belongs to a member who is no longer active" carries the one remedy that ends this
|
|
66
77
|
credential: run `lotics auth login <email>` for a sign-in, or ask the admin who issued it for a
|
package/README.md
CHANGED
|
@@ -124,9 +124,9 @@ The CLI checks for updates once per day and prints a note on stderr, naming the
|
|
|
124
124
|
|
|
125
125
|
## Authentication
|
|
126
126
|
|
|
127
|
-
**Two kinds of credential, and which you hold decides what `logout` does.** `auth signup` / `auth login` give this machine a **sign-in** — it acts as you, carries whatever role you have, and is yours to see and revoke at Settings → Security → *Keys and terminals*; it lapses after 90 days of disuse, and each use pushes that out. `auth api-key` saves an **API key** an admin issued
|
|
127
|
+
**Two kinds of credential, and which you hold decides what `logout` does.** `auth signup` / `auth login` give this machine a **sign-in** — it acts as you, carries whatever role you have, and is yours to see and revoke at Settings → Security → *Keys and terminals*; it lapses after 90 days of disuse, and each use pushes that out. `auth api-key` saves an **API key** an admin issued. A key an admin creates in Settings has its own name and its own access, reaching either every app and table or only the ones chosen on the key; a key created FOR a person carries that person's access and stops working when that person is removed. Either kind often lives on a server and on other people's machines too, and only an admin revokes it. `lotics auth whoami` prints which kind this machine holds — from the saved profile, or from the server when the profile does not say.
|
|
128
128
|
|
|
129
|
-
When a credential stops working the refusal says which of the three ways it is dead — "
|
|
129
|
+
When a credential stops working the refusal says which of the three ways it is dead — "… was revoked." / "… expired." / "… belongs to a member who is no longer active in this organization." — and its `hint` names the remedy: `lotics auth login <email>` for a terminal sign-in, ask an admin for a new key for an API key. A credential whose record does not say which of the two it is gets both. A key the server does not recognize at all gets one generic answer, deliberately: an unrecognized key learns nothing from being refused.
|
|
130
130
|
|
|
131
131
|
**`lotics auth signup`** — Creates a new Lotics account, organization, workspace, and API key in one step. Sends a magic link email so you can access the web app.
|
|
132
132
|
|
package/dist/src/cli.js
CHANGED
|
@@ -40111,7 +40111,7 @@ function resultSideEffects(result) {
|
|
|
40111
40111
|
}
|
|
40112
40112
|
|
|
40113
40113
|
// src/version.ts
|
|
40114
|
-
var VERSION = "0.205.
|
|
40114
|
+
var VERSION = "0.205.1";
|
|
40115
40115
|
|
|
40116
40116
|
// src/timezone.ts
|
|
40117
40117
|
function machineTimezone() {
|