@diagonal-hq/cli 0.20.2 → 0.20.3

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 (2) hide show
  1. package/README.md +8 -8
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -37,7 +37,7 @@ From the workspace root, run:
37
37
  diagonal make:migration backfill_post_slug
38
38
  ```
39
39
 
40
- The command creates `migrations/YYYYMMDDHHmmss_backfill_post_slug.ts` with the current timestamp. In a workspace template, run `npm run migration -- backfill_post_slug` for the same result. Edit the generated workflow, then run `diagonal check` before publishing. Keep deployed files unchanged. Use a new migration filename for a correction.
40
+ The command creates `migrations/YYYYMMDDHHmmss_backfill_post_slug.ts` with the current timestamp. In a workspace template, run `npm run migration -- backfill_post_slug` for the same result. Edit the generated workflow, then run `diagonal check` before committing. Keep deployed files unchanged. Use a new migration filename for a correction.
41
41
 
42
42
  ## Workspace API credentials
43
43
 
@@ -290,7 +290,7 @@ export default defineConfig({
290
290
  - An image is an Application Asset: import `Assets` from `@app/generated/assets` and write `Assets.<Name>.key`, as in a page `seo.image`, or `null` for no image. `<Name>` is the studly case of the key in `assets.ts`. The check refuses a string, an unknown asset name, and an asset that is not an image, at its line. Application Assets are public, so a Brand Kit image is always public. The Brand Kit stores the version of each image, and `/files/<version>` links to it. A logo or a favicon that one mode omits falls back to the other mode, as in the admin Brand Kit.
291
291
  - The check refuses an unknown section, mode, token, or logo variant, a font or a radius that is not in the catalog, and a shadow that is not a preset, at the line of the error.
292
292
  - `brand` is the whole Brand Kit, not a change to the stored one. Each deploy writes it to the `brand_kit` workspace setting. A token, an image, or a section that leaves the file leaves the workspace on the next deploy. A file without `brand` gives the platform default Brand Kit.
293
- - In a file-based workspace, the AI does not offer its Brand Kit tools. Change `brand` and publish instead.
293
+ - In a file-based workspace, the AI does not offer its Brand Kit tools. Change `brand` and commit it instead. The commit deploys.
294
294
 
295
295
  `brand-kit.generated.d.ts` declares the `BrandKit` type, and `brand-kit-catalog.json` lists the tokens, the choices, the presets, and the limits. `npm run generate-types` generates both from the Brand Kit schema. Do not edit them.
296
296
 
@@ -519,7 +519,7 @@ A notification has a type, one or more templates, and optionally an email layout
519
519
 
520
520
  Each type, template, and layout has a `uid` and a `slug`. See [Definition uids and slugs](#definition-uids-and-slugs).
521
521
 
522
- - `uid` is the stable identity of the definition. `diagonal check` writes it. A publish writes the definition into the row with this uid, so the row keeps its id when you change the slug, rename the definition, or move the file.
522
+ - `uid` is the stable identity of the definition. `diagonal check` writes it. A deploy writes the definition into the row with this uid, so the row keeps its id when you change the slug, rename the definition, or move the file.
523
523
  - `slug` is optional. Without it, the slug is the name of the definition's folder or file, for example `'member-welcome'` for `notifications/member-welcome/type.ts` and `'standard'` for `standard.template.ts`. A `slug` option can differ from the path, and a rename of the folder or file then keeps it. It follows the slug rule and has at most 64 characters, and so does a folder or file name that gives the slug. The generated names come from the paths, so a rename changes them, and the check reports each reference that the rename breaks.
524
524
 
525
525
  A schedule has a `uid` with the same rules, but no `slug`, because no file refers to a schedule.
@@ -665,7 +665,7 @@ This sends the Standard welcome 7 days after each active member's `joined_on`.
665
665
 
666
666
  A deployed schedule is a System Notification. It sends with no staff identity, and `filters` decides who gets it. A file cannot name a person to send as. Staff actions on one generated notification, such as **Send now** or an edit, still act as the person who clicks.
667
667
 
668
- A publish writes the schedule into the workspace and makes its upcoming notifications. A later publish updates the same schedule. An offset that stays in the list keeps its notifications, with their edits and holds. When the file is gone, the publish deletes the schedule, as **Delete** on the schedule page does: the notifications that were not sent are archived, and the send history stays. A publish never pauses or enables a schedule. Staff can still pause it on the schedule page, which shows the other fields as read-only, with the path of the file.
668
+ A deploy writes the schedule into the workspace and makes its upcoming notifications. A later deploy updates the same schedule. An offset that stays in the list keeps its notifications, with their edits and holds. When the file is gone, the publish deletes the schedule, as **Delete** on the schedule page does: the notifications that were not sent are archived, and the send history stays. A publish never pauses or enables a schedule. Staff can still pause it on the schedule page, which shows the other fields as read-only, with the path of the file.
669
669
 
670
670
  ### Send from a workflow
671
671
 
@@ -725,7 +725,7 @@ The editor checks the shape of each definition. `diagonal check` and the build a
725
725
  - A schedule's `recipient` path reaches the type's recipient resource through relations that each hold one record. Without `recipient`, the source resource is the recipient resource.
726
726
  - Each key of a schedule's `variables` is a variable of the type, and each path reaches a field of the source record or of a record that its single-record relations reach. A record variable maps to the id of a record of its resource, for example `'first_event.id'`. Each required variable is mapped.
727
727
 
728
- A publish writes each type, template, layout, and schedule into the workspace, matched by its uid, and removes each one that no file declares. A later publish that adds a removed uid again restores the same definition. A publish fails, and changes nothing, when:
728
+ A deploy writes each type, template, layout, and schedule into the workspace, matched by its uid, and removes each one that no file declares. A later deploy that adds a removed uid again restores the same definition. A deploy fails, and changes nothing, when:
729
729
 
730
730
  - A definition has no uid. Run `diagonal check` to write one.
731
731
  - A template keeps its uid but names another type. A template cannot move to another type. To use another type, create the template in a new file without a uid, update its references, and remove the old file in the same save.
@@ -735,8 +735,8 @@ A publish writes each type, template, layout, and schedule into the workspace, m
735
735
  These rules need server data, so the check does not check them yet:
736
736
 
737
737
  - A built-in `recipient` resource can receive notifications.
738
- - The fields of a built-in resource. The publish checks them.
739
- - The field paths of a schedule's `filters`. The publish does not check them either: a filter that names a field that does not exist deploys.
738
+ - The fields of a built-in resource. The deploy checks them.
739
+ - The field paths of a schedule's `filters`. The deploy does not check them either: a filter that names a field that does not exist deploys.
740
740
 
741
741
  ### Fixtures
742
742
 
@@ -805,7 +805,7 @@ export default defineResource({
805
805
  - After the deploy, the platform runs the same provisioning as the resource builder. It creates the system fields of a Subscription, the accounting entity fields, the billing relations, the record indexes, and the booking and schedule setup. For an Authenticatable resource, it creates the Role and Permission resources, so members can sign in.
806
806
  - A setting that provisioning fills can be left out. A Subscription starts from the builder's default settings, so set only the defaults that change.
807
807
  - Provisioning can create a field, for example `accounting_entity`. The files cannot declare a field with the same key later. Use another key.
808
- - The resource builder and the API refuse a capability change in a file-based workspace. Change the resource file, then publish.
808
+ - The resource builder and the API refuse a capability change in a file-based workspace. Change the resource file, then commit it. The commit deploys.
809
809
 
810
810
  ### Page reference settings
811
811
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diagonal-hq/cli",
3
- "version": "0.20.2",
3
+ "version": "0.20.3",
4
4
  "description": "The diagonal CLI and the configuration helpers for file-based Diagonal workspaces.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {