@quatronic/qore 0.1.8 → 0.1.10-test.0da2f9c

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
@@ -23,6 +23,9 @@ qore version # CLI + portal version info
23
23
 
24
24
  qore env pull # write this module's local secrets into an env file
25
25
  qore run -- <command> # run a command with those secrets in its environment
26
+ qore roles list # roles in your code, on local, and yours there
27
+ qore roles sync # announce your code's roles for local, keep yours
28
+ qore roles use <role…> # announce your code's roles for local and take these
26
29
 
27
30
  qore errors --env stag # recent unresolved errors
28
31
  qore errors FRONTEND-1A --env prod --with trace,logs # one error, its trace and logs
@@ -145,6 +148,19 @@ not in the interactive conflict prompt, not in `--verbose` logs, and not in
145
148
  the portal's own audit trail, which records key names only (see
146
149
  `app.local_env.fetched`).
147
150
 
151
+ #### `qore roles`
152
+
153
+ Run in the app's frontend module. `qore roles sync` does the announcing alone:
154
+ local learns every role in `permissions.ts` and your own roles stay as they are.
155
+ `qore roles use inspector` reads the roles in
156
+ `src/lib/permissions.ts`, tells the portal they exist on `local` (only there —
157
+ staging and production learn roles from the code that environment deploys:
158
+ `main` for staging, the `production` branch for production), and makes exactly
159
+ the named roles yours on `local`. Sign out and back in to the local app
160
+ afterwards. `qore roles list` shows the roles in your code, the ones `local`
161
+ knows, and yours. Needs write on the module, like `qore env pull`. An announced
162
+ role stays on `local`; nothing removes it automatically.
163
+
148
164
  #### `qore run`
149
165
 
150
166
  Runs a command with this module's local secrets injected into its