@palbase/backend 22.0.0 → 22.0.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/docs/README.md CHANGED
@@ -194,13 +194,18 @@ generated client surface) changes; the verb/path do not affect it.
194
194
  - `palbase push` — deploy the current backend to the selected Environment. For a
195
195
  GitHub-backed project it runs `git push`; the pushed source Git branch deploys
196
196
  to the Environment configured for that branch.
197
- - `palbase secret set NAME=value` / `palbase secret list` Environment-scoped
198
- secrets (encrypted at rest), read in code via `process.env.NAME`.
199
- - `palbase secret pull` / `palbase secret push` sync the selected Environment's
200
- variables with a local `.env.local` (gitignored). `pull` writes decrypted
201
- values for local dev (merging local-only keys); `push` uploads changed keys
202
- (new keys default to SECRET and need `--secret`/`--plain` classification,
203
- existing secrets are left untouched unless `--force-secrets`).
197
+ - `palbase secret set NAME=value` (or `set NAME --stdin`, which keeps it out of
198
+ your shell history) / `palbase secret list` / `palbase secret remove NAME` —
199
+ Environment-scoped secrets, read in code via `process.env.NAME`. Everything in
200
+ the vault is sealed: there is no `--secret`/`--plain` classification, and the
201
+ listing answers names and last-changed times, never values.
202
+ - `palbase run -- <command>` run something on YOUR machine with the project's
203
+ secrets in its environment. There is no `.env` file: nothing writes one and
204
+ nothing reads one, so the values live in one child process and are gone when it
205
+ exits.
206
+ - `config/secrets.ts` — `defineSecrets({ secrets: [secret("NAME")] })` declares
207
+ WHICH secrets the backend needs (never a value). `push` refuses the deploy when
208
+ a required one is missing from the target Environment, naming it.
204
209
  - `tsconfig.json` needs `"experimentalDecorators": true` (the scaffold sets it).
205
210
 
206
211
  ## Mental model
@@ -202,13 +202,18 @@ generated client surface) changes; the verb/path do not affect it.
202
202
  - `palbase push` — deploy the current backend to the selected Environment. For a
203
203
  GitHub-backed project it runs `git push`; the pushed source Git branch deploys
204
204
  to the Environment configured for that branch.
205
- - `palbase secret set NAME=value` / `palbase secret list` Environment-scoped
206
- secrets (encrypted at rest), read in code via `process.env.NAME`.
207
- - `palbase secret pull` / `palbase secret push` sync the selected Environment's
208
- variables with a local `.env.local` (gitignored). `pull` writes decrypted
209
- values for local dev (merging local-only keys); `push` uploads changed keys
210
- (new keys default to SECRET and need `--secret`/`--plain` classification,
211
- existing secrets are left untouched unless `--force-secrets`).
205
+ - `palbase secret set NAME=value` (or `set NAME --stdin`, which keeps it out of
206
+ your shell history) / `palbase secret list` / `palbase secret remove NAME` —
207
+ Environment-scoped secrets, read in code via `process.env.NAME`. Everything in
208
+ the vault is sealed: there is no `--secret`/`--plain` classification, and the
209
+ listing answers names and last-changed times, never values.
210
+ - `palbase run -- <command>` run something on YOUR machine with the project's
211
+ secrets in its environment. There is no `.env` file: nothing writes one and
212
+ nothing reads one, so the values live in one child process and are gone when it
213
+ exits.
214
+ - `config/secrets.ts` — `defineSecrets({ secrets: [secret("NAME")] })` declares
215
+ WHICH secrets the backend needs (never a value). `push` refuses the deploy when
216
+ a required one is missing from the target Environment, naming it.
212
217
  - `tsconfig.json` needs `"experimentalDecorators": true` (the scaffold sets it).
213
218
 
214
219
  ## Mental model
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@palbase/backend",
3
- "version": "22.0.0",
4
- "description": "Palbase Backend SDK class controllers (@Controller/@Get/@Post + @Body/@QueryParams/@Param), error classes, schema DSL",
3
+ "version": "22.0.1",
4
+ "description": "Palbase Backend SDK \u2014 class controllers (@Controller/@Get/@Post + @Body/@QueryParams/@Param), error classes, schema DSL",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",