@antasphere/cli-core 0.5.0 → 0.7.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.
Files changed (48) hide show
  1. package/README.md +324 -85
  2. package/dist/auth.d.ts +1 -1
  3. package/dist/auth.d.ts.map +1 -1
  4. package/dist/config.d.ts +120 -62
  5. package/dist/config.d.ts.map +1 -1
  6. package/dist/config.js +207 -91
  7. package/dist/config.js.map +1 -1
  8. package/dist/connect-on-demand.d.ts +196 -99
  9. package/dist/connect-on-demand.d.ts.map +1 -1
  10. package/dist/connect-on-demand.js +565 -117
  11. package/dist/connect-on-demand.js.map +1 -1
  12. package/dist/connect.d.ts +8 -8
  13. package/dist/connect.d.ts.map +1 -1
  14. package/dist/index.d.ts +25 -17
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +20 -15
  17. package/dist/index.js.map +1 -1
  18. package/dist/kept-keys.d.ts +208 -0
  19. package/dist/kept-keys.d.ts.map +1 -0
  20. package/dist/kept-keys.js +484 -0
  21. package/dist/kept-keys.js.map +1 -0
  22. package/dist/lock.d.ts +65 -0
  23. package/dist/lock.d.ts.map +1 -0
  24. package/dist/lock.js +408 -0
  25. package/dist/lock.js.map +1 -0
  26. package/dist/migrate.d.ts +9 -3
  27. package/dist/migrate.d.ts.map +1 -1
  28. package/dist/migrate.js +32 -11
  29. package/dist/migrate.js.map +1 -1
  30. package/dist/resolve.d.ts +12 -4
  31. package/dist/resolve.d.ts.map +1 -1
  32. package/dist/resolve.js +12 -8
  33. package/dist/resolve.js.map +1 -1
  34. package/dist/sign-in.d.ts +266 -0
  35. package/dist/sign-in.d.ts.map +1 -0
  36. package/dist/sign-in.js +398 -0
  37. package/dist/sign-in.js.map +1 -0
  38. package/package.json +1 -1
  39. package/src/auth.ts +1 -1
  40. package/src/config.ts +303 -136
  41. package/src/connect-on-demand.ts +801 -223
  42. package/src/connect.ts +8 -8
  43. package/src/index.ts +42 -26
  44. package/src/kept-keys.ts +561 -0
  45. package/src/lock.ts +479 -0
  46. package/src/migrate.ts +33 -11
  47. package/src/resolve.ts +20 -15
  48. package/src/sign-in.ts +601 -0
@@ -1 +1 @@
1
- {"version":3,"file":"resolve.js","sourceRoot":"","sources":["../src/resolve.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,OAAO,aAAc,SAAQ,KAAK;IAC7B,QAAQ,CAAS;IAE1B,YAAY,OAAe,EAAE,OAA8B,EAAE;QAC3D,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;QAC5B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,IAAI,CAAC,CAAC;IACrC,CAAC;CACF;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,OAAO,CAAC;AAQrC;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAC5B,MAAiB,EACjB,SAA6B,EAC7B,OAA6C,EAAE;IAE/C,IAAI,SAAS,EAAE,CAAC;QACd,MAAM,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,aAAa,CACrB,oBAAoB,SAAS,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CACpF,CAAC;QACJ,CAAC;QACD,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;IACtC,CAAC;IACD,MAAM,IAAI,GAAG,MAAM,CAAC,aAAa,CAAC;IAClC,MAAM,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACzD,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAA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AE,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC7F,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,MAAM,IAAI,aAAa,CACrB,IAAI,CAAC,cAAc,IAAI,wDAAwD,IAAI,CAAC,MAAM,GAAG,CAC9F,CAAC;IACJ,CAAC;IACD,OAAO,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AACjC,CAAC;AAWD;4CAC4C;AAC5C,MAAM,UAAU,aAAa,CAAC,IAA0B;IACtD,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAC1E,CAAC;AAUD;;;;;;;;GAQG;AACH,MAAM,UAAU,UAAU,CAAC,IAAuB;IAChD,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;AACpD,CAAC"}
@@ -0,0 +1,266 @@
1
+ import type { CliEnv, CliHubKey, CliProfile, CliSiteFacts } from './config.js';
2
+ /**
3
+ * Which Antasphere login signs a tool command in (R2, PRDCT-3521): the login
4
+ * at the hub the command's SITE trusts, never the machine's active hub login.
5
+ *
6
+ * - A LOGIN is an entry of the hub file (`HUB_TOOL`, `config.json`) that
7
+ * holds a key: its name, its hub (`baseUrl`, else the hub's cloud URL), its
8
+ * e-mail. Several may share a hub. An entry that holds a key and whose hub
9
+ * cannot be told (a `baseUrl` that does not parse as an `http:` or `https:`
10
+ * URL) is no login but UNDECIDED (`undecidedLogins`): unknown is not gone,
11
+ * so while one is there no kept key is judged gone for want of a login.
12
+ * Every function whose answer decides a stale key requires `hubCloudUrl`,
13
+ * so an entry with no `baseUrl` always has a hub.
14
+ * - Rule R2, the hub (`chooseHub`): a site that names its hub (discovery
15
+ * `auth.hub`) decides it, and `--hub` or `ANTASPHERE_URL` naming ANOTHER
16
+ * hub is refused before any exchange, both named. A site that names none (a
17
+ * server from before), or one never reached: `--hub`, else
18
+ * `ANTASPHERE_URL`, else the hub of the profile's newest kept key whose
19
+ * login is still in place, else the hub its last exchange went through
20
+ * (`lastHub`) while a login is in place there, else an error naming the
21
+ * machine's logins and the one command that picks one. Never a guess, even
22
+ * with one login. A recovery after a 401 (`decide`'s internal `hubHint`)
23
+ * continues the command whose key was refused: for a site that names none,
24
+ * right after `ANTASPHERE_URL`, the refused key's hub while a login is in
25
+ * place there.
26
+ * - Rule 3, the login at that hub (`chooseLogin`): `--email` when given,
27
+ * else the only one, else the one whose address the profile's newest kept
28
+ * key there carries, else an error naming them; none there, an error
29
+ * naming the hub and `login`.
30
+ *
31
+ * `planSignIn` is the one decision the command (`connectOnDemand`) and a
32
+ * listing share: pure, it reads the hub file, writes nothing and asks
33
+ * nothing of the network.
34
+ */
35
+ /**
36
+ * A hub address this CLI can read: the URL a non-blank string parses as, when
37
+ * its scheme is `http:` or `https:`; undefined otherwise (a value that is not
38
+ * a string included).
39
+ */
40
+ export declare function httpUrl(value: unknown): URL | undefined;
41
+ /**
42
+ * The `hubCloudUrl` of a function whose answer decides a stale key, trimmed.
43
+ * Missing, blank, or not an `http:` or `https:` URL, it is a `TypeError`
44
+ * naming the option: with it, a hub entry with no `baseUrl` always has a hub
45
+ * (its default address, the rule the selection applies).
46
+ */
47
+ export declare function requireHubCloudUrl(fn: string, value: unknown): string;
48
+ /** A login of this machine: an entry of the hub file that holds a key, at a hub this CLI can read. */
49
+ export interface CliLogin {
50
+ /** The entry's name in the hub file's `profiles`. */
51
+ name: string;
52
+ /** Its hub: `normalizeUrl(firstSet(baseUrl, hubCloudUrl))`. */
53
+ hub: string;
54
+ /** Its account's e-mail, when it carries one. */
55
+ email?: string;
56
+ /** The entry itself (its `apiKey` is the hub key: never printed). */
57
+ profile: CliProfile;
58
+ }
59
+ /** What one read of the hub file says of its entries that hold a key. */
60
+ export interface LoginsRead {
61
+ /** The logins, in the file's order. */
62
+ logins: CliLogin[];
63
+ /** The names of the entries whose hub cannot be told, in the file's order. */
64
+ undecided: string[];
65
+ }
66
+ /**
67
+ * One read of the hub file: each entry that holds a key is a login when its
68
+ * hub can be told (`entryHub`), and UNDECIDED otherwise. An entry with no key
69
+ * is neither. Strict like `loadConfig`: a hub file that does not parse throws.
70
+ */
71
+ export declare function readLogins(env: CliEnv, hubCloudUrl: string | undefined): LoginsRead;
72
+ /**
73
+ * The logins of this machine, in the hub file's order: every entry that holds
74
+ * a key and whose hub can be told: its `baseUrl` when that is an `http:` or
75
+ * `https:` URL, else (no `baseUrl`, or a blank one) `hubCloudUrl`. An entry
76
+ * with no key is no login, nor one whose hub cannot be told: a `baseUrl` that
77
+ * does not parse as such a URL (`undecidedLogins` names those), or none when
78
+ * no `hubCloudUrl` is given. Strict like `loadConfig`: a hub file that does
79
+ * not parse throws.
80
+ */
81
+ export declare function listLogins(env: CliEnv, opts?: {
82
+ hubCloudUrl?: string | undefined;
83
+ }): CliLogin[];
84
+ /**
85
+ * The names of the hub file's entries that hold a key and whose hub cannot be
86
+ * told (a `baseUrl` that does not parse as an `http:` or `https:` URL), in the
87
+ * file's order, for a listing to say. Such an entry is no login, and while
88
+ * one is there no kept key is judged gone for want of a login: nothing is
89
+ * revoked on that ground. `hubCloudUrl` is required (a `TypeError` naming it):
90
+ * an entry with no `baseUrl` is at it.
91
+ */
92
+ export declare function undecidedLogins(env: CliEnv, opts: {
93
+ hubCloudUrl: string;
94
+ }): string[];
95
+ /**
96
+ * How every sentence names the profile to sign in on at `site`: `--profile <name>` when that
97
+ * profile is on disk there (`onDisk`: its name), else `--api-url <site>`. `--profile` names only a
98
+ * profile on disk (`resolveProfile` throws `Unknown profile` otherwise); `--api-url` selects the
99
+ * site's profile, or makes it.
100
+ */
101
+ export declare function profileFlag(site: string, onDisk: string | undefined): string;
102
+ /** Where rule R2 found its hub (`remembered`: the profile's `lastHub`). */
103
+ export type HubSource = 'site' | 'option' | 'env' | 'kept_key' | 'remembered';
104
+ /** Rule R2's answer: the hub, a refusal, or nothing found (the person picks one). */
105
+ export type HubChoice = {
106
+ kind: 'hub';
107
+ hub: string;
108
+ source: HubSource;
109
+ } | {
110
+ kind: 'refused';
111
+ sentence: string;
112
+ } | {
113
+ kind: 'pick_hub';
114
+ sentence: string;
115
+ candidates: CliLogin[];
116
+ };
117
+ export interface ChooseHubInput {
118
+ /** The command's site (its origin). */
119
+ siteUrl: string;
120
+ /** The hub the site names (`auth.hub`); null when it names none; undefined when never reached. */
121
+ siteHub?: string | null | undefined;
122
+ /** The profile AT this site, on disk, whose kept keys (old slots read by name), then its
123
+ * `lastHub`, hint the hub of a site that names none; the sentence names it by `--profile`. Omit
124
+ * for a profile not on disk, or at another site: the sentence then names `--api-url <site>`. */
125
+ profile?: CliProfile | undefined;
126
+ /** The machine's logins (`listLogins`). */
127
+ logins: CliLogin[];
128
+ /** `login --hub`. */
129
+ hubUrl?: string | undefined;
130
+ /** `ANTASPHERE_URL` (the listing leaves it out). */
131
+ envHub?: string | undefined;
132
+ /** The profile, for the sentences. */
133
+ profileName: string;
134
+ /** The binary named in the sentences. */
135
+ bin: string;
136
+ }
137
+ /** Rule R2: the hub that signs a command on this site in. */
138
+ export declare function chooseHub(input: ChooseHubInput): HubChoice;
139
+ /** Where `decide` found its hub: rule R2's sources, or a recovery's hint (`refused_key`, internal). */
140
+ export type DecidedSource = HubSource | 'refused_key';
141
+ /** Rule 3's answer: the login, none at that hub, or several and none used before. */
142
+ export type LoginChoice = {
143
+ kind: 'login';
144
+ login: CliLogin;
145
+ } | {
146
+ kind: 'no_login_at_hub';
147
+ sentence: string;
148
+ } | {
149
+ kind: 'pick_login';
150
+ sentence: string;
151
+ candidates: CliLogin[];
152
+ };
153
+ export interface ChooseLoginInput {
154
+ /** The hub rule R2 picked. */
155
+ hub: string;
156
+ /** The command's site (its origin), for the sentences. */
157
+ siteUrl: string;
158
+ /** The profile AT this site, on disk, whose newest kept key at that hub names the login last
159
+ * used; the sentences name it by `--profile`. Omit for a profile not on disk, or at another
160
+ * site: the sentences then name `--api-url <site>`. */
161
+ profile?: CliProfile | undefined;
162
+ logins: CliLogin[];
163
+ /** `login --email`: that account's login at that hub. */
164
+ email?: string | undefined;
165
+ profileName: string;
166
+ bin: string;
167
+ }
168
+ /** Rule 3: the login at that hub. */
169
+ export declare function chooseLogin(input: ChooseLoginInput): LoginChoice;
170
+ /** Where a profile stands with its sign-in: one state, and why. */
171
+ export type SignInState = 'signed_in' | 'will_sign_in' | 'needs_login' | 'unknown';
172
+ export type SignInReason = 'own_key' | 'kept_key' | 'login_ready' | 'no_login_at_hub' | 'pick_hub' | 'pick_login' | 'own_sign_in' | 'never_reached' | 'refused';
173
+ /** The one decision of who signs a profile in on its site, from the two files alone. */
174
+ export interface SignInPlan {
175
+ state: SignInState;
176
+ /** `key`: the profile's own key; `login`: a login at a hub; null when nothing signs in yet. */
177
+ via: 'key' | 'login' | null;
178
+ /** The hub rule R2 picks, when one is picked. */
179
+ hub: string | null;
180
+ /** The login rule 3 picks. */
181
+ login: CliLogin | null;
182
+ /** The servable kept key (`signed_in` via `login`). */
183
+ keptKey: CliHubKey | null;
184
+ reason: SignInReason;
185
+ /** The sentence, when `reason` is `refused`. */
186
+ refusal: string | null;
187
+ /** `pick_hub`: every login; `pick_login`: the logins at the hub; otherwise empty. */
188
+ candidates: CliLogin[];
189
+ /** What the next command on this profile revokes on its site, before it serves a kept key or
190
+ * mints, then forgets (old slots included, with hub '' when they had none). A key whose login
191
+ * is gone is not in it while the hub file holds an entry whose hub cannot be told
192
+ * (`undecidedLogins`), nor while a login at its hub carries no e-mail (it may be its account). */
193
+ stale: CliHubKey[];
194
+ }
195
+ export interface PlanSignInInput {
196
+ env: CliEnv;
197
+ /** The tool's namespace; also the binary named in sentences. */
198
+ tool: string;
199
+ profileName: string;
200
+ /** The profile as the tool file holds it (undefined: not on disk). */
201
+ profile: CliProfile | undefined;
202
+ /** The site the command targets (a listing: the profile's own). */
203
+ siteUrl: string;
204
+ /** What a profile with no `baseUrl` is at. */
205
+ cloudUrl?: string | undefined;
206
+ /** REQUIRED: the hub's cloud URL, what a login with no `baseUrl` is at (a `TypeError` naming it
207
+ * when missing, blank or not an `http:` or `https:` URL). */
208
+ hubCloudUrl: string;
209
+ /** `ANTASPHERE_URL`: a command passes `firstSet(env.ANTASPHERE_URL)`, a listing nothing. */
210
+ envHub?: string | undefined;
211
+ /** `login --hub`. */
212
+ hubUrl?: string | undefined;
213
+ /** `login --email`. */
214
+ email?: string | undefined;
215
+ }
216
+ /** A profile's remembered site facts, when they read as such. */
217
+ export declare function siteFactsOf(profile: CliProfile | undefined): CliSiteFacts | undefined;
218
+ /**
219
+ * The plan of who signs a profile in on a site, in this order: the profile's
220
+ * own key (`signed_in`, `own_key`); a site that signs in by itself
221
+ * (`site.federated` false: `needs_login`, `own_sign_in`); rule R2 (a refusal:
222
+ * `needs_login`, `refused`, with its sentence); rule 3; then the kept key:
223
+ * servable (`signed_in`, `kept_key`), else a login ready to sign in at the
224
+ * next command (`will_sign_in`, `login_ready`), no login at the hub
225
+ * (`no_login_at_hub`), several (`pick_login`), nothing found for a site that
226
+ * names no hub (`pick_hub`), nothing known at all (`unknown`,
227
+ * `never_reached`). Pure: it reads the hub file once (`readLogins`), writes
228
+ * nothing and asks nothing of the network. A kept key is servable only on a
229
+ * profile at `siteUrl`, at the hub R2 picks, to the login rule 3 picks.
230
+ * `hubCloudUrl` is required: a `TypeError` naming it otherwise.
231
+ */
232
+ export declare function planSignIn(input: PlanSignInInput): SignInPlan;
233
+ export interface DecideInput {
234
+ siteUrl: string;
235
+ profileName: string;
236
+ profile: CliProfile | undefined;
237
+ cloudUrl?: string | undefined;
238
+ /** The site's facts; undefined = the ones the profile remembers (when it is at the site). */
239
+ site: CliSiteFacts | undefined;
240
+ logins: CliLogin[];
241
+ /** The entries whose hub cannot be told, from the same read (`readLogins`): while there is one,
242
+ * no kept key is judged gone for want of a login. */
243
+ undecided: string[];
244
+ envHub?: string | undefined;
245
+ hubUrl?: string | undefined;
246
+ email?: string | undefined;
247
+ bin: string;
248
+ /** Whether the profile's own key comes first (the plan of a listing); a hub sign-in skips it. */
249
+ ownKeyFirst: boolean;
250
+ /** A key never served (the one a site just refused). */
251
+ avoid?: string | undefined;
252
+ /** A recovery's hint: the hub of the key a site just refused. For a site that names no hub, it
253
+ * comes right after `envHub`, while a login is in place there; never an option, never refused. */
254
+ hubHint?: string | undefined;
255
+ now: string;
256
+ }
257
+ /** A plan, with the sentence a command throws when it cannot sign in. */
258
+ export interface Decision {
259
+ plan: SignInPlan;
260
+ sentence: string | null;
261
+ /** Where the plan's hub was found, when one was. */
262
+ hubSource?: DecidedSource;
263
+ }
264
+ /** The plan, and the sentence of its refusal or of what the person must pick (internal). */
265
+ export declare function decide(input: DecideInput): Decision;
266
+ //# sourceMappingURL=sign-in.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sign-in.d.ts","sourceRoot":"","sources":["../src/sign-in.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAI/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,GAAG,GAAG,SAAS,CASvD;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,CAOrE;AAED,sGAAsG;AACtG,MAAM,WAAW,QAAQ;IACvB,qDAAqD;IACrD,IAAI,EAAE,MAAM,CAAC;IACb,+DAA+D;IAC/D,GAAG,EAAE,MAAM,CAAC;IACZ,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qEAAqE;IACrE,OAAO,EAAE,UAAU,CAAC;CACrB;AA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