Commit 0646326
docs(cloud): template context gets project-scoped listing examples
Follow-up to b108648, which added projectId filters to listFiles /
listFolders / listApps / listComponents / listExecutions plus
checkPermission / checkPermissionBatch. The cloud component template
didn't mention any of this, so new scaffolds had no signal that
project-scoped listing was available.
src/cli/templates/cloud/CONTEXT.md gains two "Common patterns"
subsections:
- Listing resources inside a project: shows listFiles({ projectId })
and siblings, notes the STORAGE:READ requirement and the backend's
403 on missing permission, and mentions a missing projectId still
works (personal scope).
- Gating an action with a permission check: shows checkPermission
usage with the new { hasPermission, scope } shape, explains scope
values (global / project / entity / none), and points to
checkPermissionBatch for batching.
No template code changes — these are pure doc additions. Root
CONTEXT.md was already updated by b108648 itself.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent ccd58fb commit 0646326
1 file changed
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
164 | 197 | | |
165 | 198 | | |
166 | 199 | | |
| |||
0 commit comments