Skip to content

Commit 36ff632

Browse files
raistlin042claude
andauthored
fix(apps): update miaoda scopes after platform consolidation (#1127)
妙搭/spark consolidated the apps domain onto spark:app:read / spark:app:write. The standalone spark:app:publish and spark:app.access_scope:* scopes are retired. - +html-publish: spark:app:publish -> spark:app:write - +access-scope-get: spark:app.access_scope:read -> spark:app:read - +access-scope-set: spark:app.access_scope:write -> spark:app:write Verified against the official docs for upload_html_code_and_release, get_app_visibility and update_app_visibility. +create/+update/+list were already correct (spark:app:write / spark:app:read). Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent ab94ee9 commit 36ff632

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

shortcuts/apps/apps_access_scope_get.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var AppsAccessScopeGet = common.Shortcut{
2121
Command: "+access-scope-get",
2222
Description: "Get Miaoda app access scope configuration",
2323
Risk: "read",
24-
Scopes: []string{"spark:app.access_scope:read"},
24+
Scopes: []string{"spark:app:read"},
2525
AuthTypes: []string{"user"},
2626
HasFormat: true,
2727
Flags: []common.Flag{

shortcuts/apps/apps_access_scope_set.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var AppsAccessScopeSet = common.Shortcut{
2727
Command: "+access-scope-set",
2828
Description: "Set Miaoda app access scope (specific / public / tenant)",
2929
Risk: "write",
30-
Scopes: []string{"spark:app.access_scope:write"},
30+
Scopes: []string{"spark:app:write"},
3131
AuthTypes: []string{"user"},
3232
HasFormat: true,
3333
Flags: []common.Flag{

shortcuts/apps/apps_html_publish.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var AppsHTMLPublish = common.Shortcut{
2121
Command: "+html-publish",
2222
Description: "Publish HTML to a Miaoda app (single multipart POST returns the access URL)",
2323
Risk: "write",
24-
Scopes: []string{"spark:app:publish"},
24+
Scopes: []string{"spark:app:write"},
2525
AuthTypes: []string{"user"},
2626
HasFormat: true,
2727
Flags: []common.Flag{

0 commit comments

Comments
 (0)