Document direct access to listed extension projects
This commit is contained in:
@@ -164,23 +164,19 @@ Extensions that participate in a cross-extension project workflow can request:
|
||||
{
|
||||
"permissions": [
|
||||
"get_app_info",
|
||||
"filesystem_read",
|
||||
"projects_read",
|
||||
"projects_open_listed",
|
||||
"projects_write"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
- `projects_read` enables `projects_list` for the active launch group.
|
||||
- `projects_write` enables `projects_create` and `projects_set_archived` for
|
||||
that group.
|
||||
- `projects_open_listed` together with `projects_read` and `filesystem_read` lets the package open active projects by ID in its launch group without individual folder selection. The resulting grant covers the project folder, including other extensions’ data. Write access also requires the applicable write permissions. Declare this permission for a shared project overview that opens rows directly.
|
||||
- `projects_write` enables project creation and supported lifecycle actions.
|
||||
|
||||
The permissions are independent and appear under `get_app_info().projects` as
|
||||
`canRead`, `canWrite`, and the exact available commands. The host discards any
|
||||
extension-supplied workspace or group scope and injects the frozen launch
|
||||
context. These permissions expose project identity and metadata only; they do
|
||||
not grant raw filesystem access to the project registry. Store extension-owned
|
||||
project data in the extension group folder and key it by the returned project
|
||||
id.
|
||||
Check the advertised commands in `get_app_info().projects`. The host supplies the workspace and launch group. Listing reveals project metadata. Opening or creating a project grants access to its folder. Declare the filesystem or KV permissions needed to read or write the extension’s data there. [Project start screen](20-dashboard-backed-project-sync.md#project-start-screen)
|
||||
|
||||
Archiving is a reversible metadata change, not deletion. It preserves the
|
||||
project id and does not remove extension-owned files associated with that id.
|
||||
|
||||
Reference in New Issue
Block a user