You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: skills/nocobase-acl-manage/SKILL.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -225,18 +225,18 @@ Default behavior when user says `you decide`:
225
225
- never execute write commands with uncertain, unresolved, or type-mismatched parameters
226
226
- lock execution base-dir before any ACL discovery/write (use one stable project root for the whole task)
227
227
- run execution guard sequence before ACL writes:
228
-
-`nb env list -s project`
228
+
-`nb env list`
229
229
-`nb env update <current_env_name>`
230
230
-`nb api acl --help`
231
231
-`nb api acl roles --help`
232
232
- fail-closed policy:
233
233
- if `nb api acl --help` or `nb api acl roles --help` fails, stop and return capability-boundary message; do not switch to ad-hoc script execution.
234
-
- confirm current env context through direct CLI: run `nb env list -s project` and resolve current env from the row marked with `*`
235
-
- if no env is configured/current, stop writes and ask user whether to add/switch env using direct CLI (`nb env add ...` or `nb env use ... -s project`)
234
+
- confirm current env context through direct CLI: run `nb env list` and resolve current env from the row marked with `*`
235
+
- if no env is configured/current, stop writes and ask user whether to add/switch env using direct CLI (`nb env add ...` or `nb env use ...`)
236
236
- if runtime command cache is missing/stale or command schema changed, run `nb env update <current_env_name>`
237
237
- if runtime refresh fails with `swagger:get` 404 or API documentation plugin errors, activate dependency bundle and retry:
238
-
-`nb pm enable @nocobase/plugin-api-doc`
239
-
-`nb pm enable @nocobase/plugin-api-keys`
238
+
-`nb plugin enable @nocobase/plugin-api-doc`
239
+
-`nb plugin enable @nocobase/plugin-api-keys`
240
240
- restart app before retrying runtime refresh
241
241
- if token is missing/invalid, ensure `@nocobase/plugin-api-keys` is active and refresh token env first
242
242
- resolve runtime command names via [intent-to-tool-map-v1](references/intent-to-tool-map-v1.md) and command help discovery
@@ -315,10 +315,10 @@ When a scenario is not supported by current CLI/runtime/tool policy:
315
315
316
316
- task normalized to canonical task
317
317
- required inputs complete before writes
318
-
- CLI capability gate passes (env context available via direct `nb env list -s project`, runtime commands resolvable)
318
+
- CLI capability gate passes (env context available via direct `nb env list`, runtime commands resolvable)
319
319
- CLI dependency plugins (`@nocobase/plugin-api-doc`, `@nocobase/plugin-api-keys`) are active or explicit recovery guidance is emitted
320
320
- runtime command names resolved from command map/help
321
-
- execution guard evidence includes locked `base-dir` plus `nb env list -s project`, `nb env update <current_env_name>`, `nb api acl --help`, and `nb api acl roles --help`
321
+
- execution guard evidence includes locked `base-dir` plus `nb env list`, `nb env update <current_env_name>`, `nb api acl --help`, and `nb api acl roles --help`
322
322
- every write has immediate readback evidence
323
323
- for `permission.data-source.resource.set`, data source + resolved collections + actions + scope were confirmed before write
324
324
- when user did not provide scope, confirmation/readback shows `all` as the applied default scope
Copy file name to clipboardExpand all lines: skills/nocobase-acl-manage/references/_archive/scopes.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,7 +140,7 @@ Common scope-related CLI commands:
140
140
-`data_sources_roles_resources_scopes_update`
141
141
-`data_sources_roles_resources_scopes_destroy`
142
142
143
-
All calls should use resolved `nb` runtime commands through direct nb CLI (`nb <command> [subcommand ...] [flags ...]`) discovered from CLI help, after env context is confirmed by `nb env list -s project`.
143
+
All calls should use resolved `nb` runtime commands through direct nb CLI (`nb <command> [subcommand ...] [flags ...]`) discovered from CLI help, after env context is confirmed by `nb env list`.
144
144
145
145
Business rules:
146
146
@@ -174,4 +174,3 @@ Recommended usage:
174
174
-`own` does not mean owner, assignee, approver, manager, or department member
175
175
- for those semantics, create a custom scope and reference `$user` against real business relation paths
Copy file name to clipboardExpand all lines: skills/nocobase-acl-manage/references/configuration.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -373,11 +373,10 @@ Use CLI command contracts when auditing results. Do not fallback to direct HTTP
373
373
4.`roles_data_source_resources_get`
374
374
5.`data_sources_roles_resources_scopes_get` or `data_sources_roles_resources_scopes_list`
375
375
376
-
All checks above should be executed through resolved CLI runtime commands via direct nb CLI (`nb <command> [subcommand ...] [flags ...]`) and command help discovery, with env context resolved first by `nb env list -s project`.
376
+
All checks above should be executed through resolved CLI runtime commands via direct nb CLI (`nb <command> [subcommand ...] [flags ...]`) and command help discovery, with env context resolved first by `nb env list`.
377
377
378
378
For scoped actions, do not rely only on appended `actions.scope` payloads. Prefer:
379
379
380
380
- read the resource action and record its `scopeId`
0 commit comments