@samebase/alchemy-convex 0.46.0 → 0.48.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 CHANGED
@@ -313,90 +313,6 @@ resources and output, from the store function `state:readStack({ stack })` in on
313
313
  as the build inputs `["src/**", "public/**", "vite.config.ts"]`. A minted key for a command has
314
314
  every action, because the command can do more than a push.
315
315
 
316
- - `IdentityBroker.Client`, from
317
- `import * as IdentityBroker from "@samebase/alchemy-convex/identity-broker"`:
318
- `{ broker, redirectUris, deploymentType, connectors, app?, initialAccessToken?, key?, softwareVersion? }`
319
- gets a client of an identity broker, for an app that deploys in its own GitHub Actions run, on any
320
- host, and for development as a stage of the same stack. `deploymentType` is `production`,
321
- `preview`, or `development`. A production or preview client needs `permissions: id-token: write`
322
- in the workflow, and no key and no Samebase account. `redirectUris` lists every return address of
323
- the deployment, one to eight, one per handler that receives the broker's answers. The origin of
324
- each https address must serve `/samebase-verification.json` with the numeric GitHub id of the
325
- repository, `{ "repository": "123" }`, which `gh api repos/<owner>/<name> --jq .id` prints. The
326
- broker reads it before it registers the client, so the site must be live first. Outputs `status`,
327
- `issuer`, `clientId`, `clientSecret`, `registrationAccessToken`, `registrationClientUri`,
328
- `deploymentType`, `app`, `redirectUris`, `connectors`, `initialAccessToken`, and `repository`.
329
- - `app` is the app's name on the broker, at most 64 characters. Its default is the stack's path in
330
- the repository, `apps/web` for the stack `owner/repo/apps/web`, and `app` for a stack named
331
- `owner/repo`. A stack with another name, or a path over 64 characters, sets `app`. The name
332
- groups the clients of one deployable thing, their budgets, and the initial access token; it
333
- plays no part in user ids.
334
- - `connectors` names the broker's connectors the client signs in through, such as
335
- `["google", "github"]`: at least one name of `[a-z0-9-]{1,64}`. The broker's discovery document
336
- lists what it offers in `connectors_supported`, and its policy decides what a repository may
337
- enroll in; a name outside that is refused, and the log names the allowed ones. The set is
338
- recorded on the client for good, sorted, each once. The app sends `connector=<name>` to
339
- `/authorize` to skip the broker's page, or nothing to let the user choose among the set.
340
- - A production registration also gets the app's initial access token (RFC 7591) and the numeric
341
- repository id, which the state keeps. A renewal keeps both. They are empty for a preview, for a
342
- development client, and for the off values.
343
- - A development client needs `initialAccessToken`, and only a development client takes it. The
344
- client asks the broker with this token in place of the GitHub OIDC token, so it works in
345
- development. With an empty token, the client gets the off values, and the log says "deploy to
346
- main once for broker sign-in in development". See "The development stage" below.
347
- - A client of any `deploymentType` with `key` asks a broker on the stack layer with that key, from
348
- any run, with no GitHub token and no verification file. It waits up to about three minutes for
349
- the broker to answer discovery, so the run that deploys the broker registers its own client. The
350
- broker decides whether the key may register a production client. An undefined key gives the off
351
- values, or fails a `required` client.
352
- - `IdentityBroker.registrationKey(id, { stage })` gives the key `id` as a redacted Output: in the
353
- stage that deploys the broker it is an `Alchemy.Random`, kept in state; in any other stage it is
354
- read from that stage's row, and it is `undefined` before that stage ran. Bind it to the broker
355
- as a secret, and give it to `key`.
356
- - Each deploy reads the saved client on the broker with its own token. A client that is gone gets
357
- a new one, and a client with other `redirectUris`, another `app`, another `deploymentType`, or
358
- other `connectors` too. A replaced production client stays valid on the broker until its
359
- administrator deletes it, and a new production client replaces the app's initial access token,
360
- so a development stage reads the latest state of `prod` before its next registration. A saved
361
- row whose attributes this version cannot read stops the run with a fixed message, which holds no
362
- value of the row.
363
- - A new client logs the broker's issuer. A refusal logs its reason, such as a host that does not
364
- serve the file, a block, a token of another app, a connector the broker does not offer or allow,
365
- or the hourly limit it reached.
366
- - No failure of the broker stops a deploy or a destroy. A failed renewal keeps the saved values.
367
- Without saved values, `status` is `off`, and `issuer`, `clientId`, and `clientSecret` are the
368
- off values of a checkout without a broker: `http://127.0.0.1:1`, and `IdentityBroker.DISABLED`
369
- (`broker-disabled`) for the client ID and the secret. A production or preview run without a
370
- GitHub OIDC token, such as on a development machine, does the same, and logs no warning.
371
- - `required: true` makes the run fail unless the broker confirms the client in this run: a
372
- refusal, a broker that does not answer a registration or a renewal, or a suspended client fails
373
- it. Set it where sign-in is the product, so a deploy never ships guest sign-in, or a client that
374
- the broker stopped, with a green run. A failed run saves nothing, and the next run asks the
375
- broker again.
376
- - `status` is `suspended` when the broker suspended the client. The state keeps the client and its
377
- values, so the client works again when the broker lifts the suspension.
378
- - `IdentityBroker.Client.variables(client)` gives `issuer`, `clientId`, and `clientSecret` for the
379
- app's deployment: the client's values when `status` is `on`, and the off values when it is `off`
380
- or `suspended`. Give these to the deployment, not the outputs of the client.
381
- - `IdentityBroker.Client.read(id, { stage })` gives the attributes of the client `id` in another
382
- stage of the same stack, from the state store of the stack. When that stage has no row, it gives
383
- the off attributes and does not fail. `IdentityBroker.Client.ref` fails when the row is missing,
384
- and a development stage before the first deploy to main has no `prod` row.
385
- - The resource type is `IdentityBroker.Client`. A row that an earlier version saved as
386
- `IdentityHub.Client` or `IdentityHub.SharedClient` is the same client: the next deploy updates
387
- it in place and saves it with the new type, and `read` reads it.
388
- - A destroy deletes a preview or development client. It does nothing to a production client,
389
- because the production deployment can stay.
390
- - `broker` is the identity broker to register at, required: `{ issuer }`, such as
391
- `{ issuer: "https://id.samebase.com" }`. The run registers at `<issuer>/register`, the client
392
- registration endpoint of RFC 7591, with a GitHub token whose audience is the issuer, and the
393
- answer must name that issuer. The request sends `redirect_uris`, `software_id` (the app name),
394
- `software_version`, `token_endpoint_auth_method` (`client_secret_post`), and the broker's own
395
- `connectors`. The broker must run `@samebase/identity-broker` 0.33.0 or later. An earlier broker
396
- answers 404, and the client gets the off values. A client is renewed only at the broker that
397
- issued it: a changed broker registers a new client there, and the old one stays at the old
398
- broker.
399
-
400
316
  - `Convex.LocalDeployment`: `{ rootDir?, env }` writes the `env` of the logged-in local deployment
401
317
  of the folder `rootDir` (the working directory without it), which
402
318
  `npx convex deployment create <team>:<project>:local --select` makes and `npx convex dev` runs.
@@ -411,96 +327,9 @@ resources and output, from the store function `state:readStack({ stack })` in on
411
327
  - With a `local:` deployment selected in `.env.local`, the Convex CLI login takes the team of the
412
328
  project in `config.json`.
413
329
 
414
- ### The development stage
415
-
416
- A development checkout gets its client from a stage `dev-<name>` of the app's stack, run on purpose,
417
- not at each dev start: `npx convex dev` has made and selected the dev deployment and pushed the
418
- code, and then `alchemy deploy --stage dev-<name>` gives that deployment its variables. The stage
419
- creates nothing and pushes nothing. It has three rows on the deployment that `.env.local` selects,
420
- taken over by its Convex name:
421
-
422
- ```ts
423
- // `selected` is the name in CONVEX_DEPLOYMENT of .env.local, such as happy-animal-123, and
424
- // `project` is the project of stage `prod`.
425
- const prod = IdentityBroker.Client.read("BrokerClient", { stage: "prod" });
426
- const site =
427
- yield *
428
- Convex.Deployment("Verification", {
429
- project,
430
- type: "dev",
431
- name: selected,
432
- env: { SAMEBASE_REPOSITORY_ID: prod.repository },
433
- }).pipe(adopt(true));
434
- const client =
435
- yield *
436
- IdentityBroker.Client("BrokerClient", {
437
- redirectUris: [Output.interpolate`${site.siteUrl}/auth/broker/callback`],
438
- deploymentType: "development",
439
- connectors: ["google", "github"],
440
- initialAccessToken: prod.initialAccessToken,
441
- });
442
- const variables = IdentityBroker.Client.variables(client);
443
- yield *
444
- Convex.Deployment("Site", {
445
- project,
446
- type: "dev",
447
- name: selected,
448
- env: {
449
- IDENTITY_BROKER_ISSUER: variables.issuer,
450
- IDENTITY_BROKER_CLIENT_ID: variables.clientId,
451
- IDENTITY_BROKER_CLIENT_SECRET: variables.clientSecret,
452
- },
453
- }).pipe(adopt(true));
454
- ```
455
-
456
- The imports are `alchemy/AdoptPolicy` for `adopt`, `alchemy/Output` for `Output`, and
457
- `@samebase/alchemy-convex/identity-broker` for `IdentityBroker`.
458
-
459
- 1. `read` gives the initial access token and the repository id from the `BrokerClient` row of stage
460
- `prod`.
461
- 2. "Verification" sets `SAMEBASE_REPOSITORY_ID`, which the site serves as
462
- `/samebase-verification.json`. `adopt` takes over the deployment and the variables that the dev
463
- start set before.
464
- 3. "BrokerClient" asks the broker for a development client on the deployment's site URL with the
465
- token. A later run renews it. A sign-in renews it too, so a development server in use never needs
466
- the stage again; a development client expires 14 days after its last run or sign-in.
467
- 4. "Site" writes the three variables. It removes only a name that leaves its own `env`, so
468
- `SAMEBASE_REPOSITORY_ID` stays.
469
-
470
- Both deployment rows keep the default removal policy `retain`. `alchemy destroy --stage dev-<name>`
471
- deletes the development client and keeps the deployment.
472
-
473
- ## Pull request comment
474
-
475
- `alchemy-convex stack-comment` keeps one comment on a pull request. The comment has a card for each
476
- stack of the repository at the stage `pr-<number>`: the folder, the address, the last run, and a row
477
- for each main resource, with its type, its link and its schedule, each under the resource that uses
478
- it. The rows come from `stageDiagram` of `@samebase/alchemy-kit/stack`, the same model as Samebase's
479
- stack diagram, so a project or a broker client shows under its deployment and not as a row of its
480
- own. A stack sees only itself, so a comment that a stack declares cannot show this.
481
-
482
- Run it after every deploy of the workflow. The run record gives the repository and the pull request,
483
- so the command needs no argument with a team access token:
484
-
485
- ```yaml
486
- permissions:
487
- pull-requests: write
488
-
489
- steps:
490
- # The deploy steps of each stack.
491
- - name: Update the stack comment
492
- if: github.event_name == 'pull_request'
493
- run: pnpm exec alchemy-convex stack-comment
494
- env:
495
- CONVEX_ACCESS_TOKEN: ${{ secrets.CONVEX_ACCESS_TOKEN }}
496
- GITHUB_TOKEN: ${{ github.token }}
497
- ```
498
-
499
- A stage whose version 2 run record has the repository id of the run belongs to the repository, under
500
- any stack name. A stage with another repository id does not. A stage without a version 2 record
501
- belongs to the repository `owner/name` when its stack is named `owner/name`, or
502
- `owner/name/<folder>` for a stack in a folder. A stack without the stage of the pull request has no
503
- card.
330
+ A client of an identity broker, `IdentityBroker.Client`, is in `@samebase/identity-broker/alchemy`:
331
+ see
332
+ [An app that uses a broker](https://github.com/samebase/samebase/tree/main/packages/identity-broker#an-app-that-uses-a-broker).
504
333
 
505
334
  ## Data safety
506
335
 
package/lib/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { a as CredentialsError, c as fromValues, i as Credentials, n as providers, o as DEPLOY_KEY_ENV, r as ACCESS_TOKEN_ENV, s as fromConfig, t as Providers } from "./Providers-zL1fUs0r.js";
2
1
  import { Stack } from "alchemy/Stack";
3
2
  import * as Effect from "effect/Effect";
4
3
  import * as Schema from "effect/Schema";
@@ -9,12 +8,52 @@ import { Resource } from "alchemy";
9
8
  import * as Provider from "alchemy/Provider";
10
9
  import * as ChildProcessSpawner from "effect/process/ChildProcessSpawner";
11
10
  import { createDeploymentClient, createManagementClient } from "@convex-dev/platform";
12
- import { State, StateStoreError } from "alchemy/State";
13
11
  import { RUN_RECORD_KEY, RunRecord, RunRecordError, runRecord, withRunRecord } from "@samebase/alchemy-kit/run-record";
14
12
  import "effect/Scope";
13
+ import { State, StateStoreError } from "alchemy/State";
15
14
  import { NamespaceNode } from "alchemy/Namespace";
16
15
  import { InputProps } from "alchemy/Input";
17
16
  import { components } from "@convex-dev/platform/managementApi";
17
+ //#region src/Credentials.d.ts
18
+ interface ResolvedCredentials {
19
+ /** Bearer token accepted by https://api.convex.dev/v1: a team access token, an OAuth token, or the Convex CLI login. */
20
+ readonly accessToken: Redacted.Redacted<string>;
21
+ /** Where the token came from, for error messages only. */
22
+ readonly source: "env" | "explicit" | "convex-cli-login";
23
+ }
24
+ interface CredentialsService {
25
+ /** The Management API token. Dies when there is none. */
26
+ readonly accessToken: Effect.Effect<ResolvedCredentials>;
27
+ /** True when there is a Management API token. */
28
+ readonly hasAccessToken: Effect.Effect<boolean>;
29
+ /** A deploy key or a preview deploy key, or undefined. */
30
+ readonly deployKey: Effect.Effect<Redacted.Redacted<string> | undefined>;
31
+ }
32
+ declare const Credentials_base: Context.ServiceClass<Credentials, "@samebase/alchemy-convex/Credentials", CredentialsService>;
33
+ export declare class Credentials extends Credentials_base {}
34
+ /** Environment variable for the access token, read by {@link fromConfig}. */
35
+ export declare const ACCESS_TOKEN_ENV = "CONVEX_ACCESS_TOKEN";
36
+ /** Environment variable for the deploy key, read by {@link fromConfig}. The Convex CLI reads the same name. */
37
+ export declare const DEPLOY_KEY_ENV = "CONVEX_DEPLOY_KEY";
38
+ declare const CredentialsError_base: Schema.Class<CredentialsError, Schema.TaggedStruct<"CredentialsError", {
39
+ readonly reason: Schema.String;
40
+ }>, import("effect/Cause").YieldableError>;
41
+ export declare class CredentialsError extends CredentialsError_base {}
42
+ /**
43
+ * Default resolution through the stack ConfigProvider (process env, `.env`,
44
+ * stack secrets): `CONVEX_ACCESS_TOKEN`, then the Convex CLI login on this
45
+ * machine, for the access token; `CONVEX_DEPLOY_KEY` for the deploy key. A
46
+ * developer who ran `npx convex login` needs nothing. CI sets only the
47
+ * deploy key when the stack pushes to deployments that exist, and the access
48
+ * token when the stack also creates projects or deployments.
49
+ */
50
+ export declare const fromConfig: () => Layer.Layer<Credentials>;
51
+ /** Explicit values, for tests or callers that already hold them. */
52
+ export declare const fromValues: (values: {
53
+ readonly accessToken?: Redacted.Redacted<string>;
54
+ readonly deployKey?: Redacted.Redacted<string>;
55
+ }) => Layer.Layer<Credentials>;
56
+ //#endregion
18
57
  //#region src/ManagementApi.d.ts
19
58
  type ManagementClient = ReturnType<typeof createManagementClient>;
20
59
  type DeploymentClient = ReturnType<typeof createDeploymentClient>;
@@ -74,6 +113,16 @@ interface ManagementApiService {
74
113
  declare const ManagementApi_base: Context.ServiceClass<ManagementApi, "@samebase/alchemy-convex/ManagementApi", ManagementApiService>;
75
114
  export declare class ManagementApi extends ManagementApi_base {}
76
115
  //#endregion
116
+ //#region src/Providers.d.ts
117
+ declare const Providers_base: Provider.ProviderCollection<Providers, "Convex">;
118
+ export declare class Providers extends Providers_base {}
119
+ /**
120
+ * The Convex resource providers. Pass a credentials layer to override the
121
+ * default lookup (`CONVEX_ACCESS_TOKEN`, then the Convex CLI login, and
122
+ * `CONVEX_DEPLOY_KEY`).
123
+ */
124
+ export declare const providers: (credentials?: Layer.Layer<Credentials>) => Layer.Layer<Providers, never, import("effect/process/ChildProcessSpawner").ChildProcessSpawner | import("effect/FileSystem").FileSystem | import("effect/Path").Path>;
125
+ //#endregion
77
126
  //#region src/Push.d.ts
78
127
  /** A value of the `env` prop: a string, or a secret such as `Config.Redacted("AUTH_SECRET")`. */
79
128
  type EnvValue = string | Redacted.Redacted<string>;
@@ -408,5 +457,5 @@ export declare const STORE_PROJECT_NAME = "alchemy-state-store";
408
457
  */
409
458
  export declare const state: () => Layer.Layer<State, never, ChildProcessSpawner.ChildProcessSpawner>;
410
459
  //#endregion
411
- export { ACCESS_TOKEN_ENV, type ComponentBinding, Credentials, CredentialsError, DEPLOY_KEY_ENV, type DeploymentAttributes, type DeploymentInput, type DeploymentProps, type DeploymentRegion, type EnvValue, type LocalDeploymentAttributes, type LocalDeploymentProps, type ProjectAttributes, type ProjectProps, Providers, RUN_RECORD_KEY, type RunRecord, RunRecordError, type Source, fromConfig, fromValues, providers, runRecord, withRunRecord };
460
+ export { type ComponentBinding, type DeploymentAttributes, type DeploymentInput, type DeploymentProps, type DeploymentRegion, type EnvValue, type LocalDeploymentAttributes, type LocalDeploymentProps, type ProjectAttributes, type ProjectProps, RUN_RECORD_KEY, type RunRecord, RunRecordError, type Source, runRecord, withRunRecord };
412
461
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/ManagementApi.ts","../src/Push.ts","../src/Deployment.ts","../src/Component.ts","../src/LocalDeployment.ts","../src/Project.ts","../src/State.ts"],"mappings":";;;;;;;;;;;;;;;;;;KAmBY,mBAAmB,kBAAkB;KACrC,mBAAmB,kBAAkB;;UAGhC,YAAY;WAClB,OAAO;WACP;WACA,UAAU;;;;;;;;;;;;;qBAQR,uBAAuB;UAuBnB;;WAEN,UAAU,GACjB,mBACA,MAAM,QAAQ,qBAAqB,QAAQ,YAAY,QACpD,OAAO,OAAO,GAAG;;WAEb,cACP,mBACA,MAAM,QAAQ,qBAAqB,QAAQ,0BACxC,OAAO,aAAa;;WAEhB,oBAAoB,GAC3B,mBACA,6BACA,WAAW,SAAS,kBACpB,MAAM,QAAQ,qBAAqB,QAAQ,YAAY,QACpD,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B,mCAE5B,sBACA,kCAEA;qBAEW,mCAAe,yBAAA;;;;;;;;;;KCxBhB,mBAAmB;KAInB;;WAGG;WACA;;WAEA,mBAAmB;;WAEnB;;;WAIA;WACA;;UAGE;WACN;WACA;WACA;WACA;WACA;WACA;;YAGC,UAAU,2BAA2B,cAAc,0BAA0B;qBAC5E,2BAAO,cAAA;;;;;;;qBAGP,0BAA0B;MAIxB;;;;;;;;;;;;qBASF,gCAAgC;MAS9B;;;;;;;;qBAOF,yBAAyB;MAKvB;;;;;;qBAMF,+BAA+B;MAI7B;;;;;;;qBAMF,wBAAwB;MAItB;;;;;qBCxCF;;;;;;;;qBAyXA,aAAY,MAAM,MAAM,cAAc,oBAAoB"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/Credentials.ts","../src/ManagementApi.ts","../src/Providers.ts","../src/Push.ts","../src/Deployment.ts","../src/Component.ts","../src/LocalDeployment.ts","../src/Project.ts","../src/State.ts"],"mappings":";;;;;;;;;;;;;;;;;UA6BiB;;WAEN,aAAa,SAAS;;WAEtB;;UAGM;;WAEN,aAAa,OAAO,OAAO;;WAE3B,gBAAgB,OAAO;;WAEvB,WAAW,OAAO,OAAO,SAAS;;;qBAGhC,oBAAoB;;qBAKpB;;qBAGA;;;;qBAOA,yBAAyB;;;;;;;;;qBAiCzB,kBAAiB,MAAM,MAAM;;qBA0B7B,aAAc;WAChB,cAAc,SAAS;WACvB,YAAY,SAAS;MAC5B,MAAM,MAAM;;;KCvGJ,mBAAmB,kBAAkB;KACrC,mBAAmB,kBAAkB;;UAGhC,YAAY;WAClB,OAAO;WACP;WACA,UAAU;;;;;;;;;;;;;qBAQR,uBAAuB;UAuBnB;;WAEN,UAAU,GACjB,mBACA,MAAM,QAAQ,qBAAqB,QAAQ,YAAY,QACpD,OAAO,OAAO,GAAG;;WAEb,cACP,mBACA,MAAM,QAAQ,qBAAqB,QAAQ,0BACxC,OAAO,aAAa;;WAEhB,oBAAoB,GAC3B,mBACA,6BACA,WAA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