@motorical/scope-catalog 0.8.0 → 0.9.0
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/package.json +1 -1
- package/src/tools.js +37 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@motorical/scope-catalog",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Canonical MCP/OAuth scope metadata for Motorical — descriptions, Public API scope mapping, implied-read rules, and declarative tool/resource membership. One source of truth consumed by motorical-backend and @motorical/mcp.",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"engines": {
|
package/src/tools.js
CHANGED
|
@@ -91,7 +91,26 @@ const MOTOR_BLOCK_TOOLS = [
|
|
|
91
91
|
* the comms audience, grant resolution, scope table, workspace binding). Not in ALL_TOOLS and not on the main server: marketing has its
|
|
92
92
|
* own server and its own consent. More tools arrive in M3, each adding the scope it needs to this server's offer.
|
|
93
93
|
*/
|
|
94
|
-
const COMMS_TOOLS = [
|
|
94
|
+
const COMMS_TOOLS = [
|
|
95
|
+
'comms_get_readiness', 'comms_get_map',
|
|
96
|
+
'comms_list_workspaces',
|
|
97
|
+
'comms_list_marketing_blocks',
|
|
98
|
+
'comms_list_lists',
|
|
99
|
+
'comms_get_list',
|
|
100
|
+
'comms_compare_lists',
|
|
101
|
+
'comms_get_list_relations',
|
|
102
|
+
'comms_list_templates',
|
|
103
|
+
'comms_get_template',
|
|
104
|
+
'comms_get_template_rules',
|
|
105
|
+
'comms_lint_template',
|
|
106
|
+
'comms_suggest_template_fixes',
|
|
107
|
+
'comms_check_links',
|
|
108
|
+
'comms_preview_template',
|
|
109
|
+
'comms_list_starters',
|
|
110
|
+
'comms_get_brand_kit',
|
|
111
|
+
'comms_list_campaigns',
|
|
112
|
+
'comms_get_campaign',
|
|
113
|
+
];
|
|
95
114
|
|
|
96
115
|
const ALL_TOOLS = [
|
|
97
116
|
...new Set([
|
|
@@ -182,6 +201,23 @@ const TOOL_SCOPES = {
|
|
|
182
201
|
motorical_motor_block_delete_status: ['manage:motor-blocks'],
|
|
183
202
|
comms_get_readiness: ['read:comms'],
|
|
184
203
|
comms_get_map: ['read:comms'],
|
|
204
|
+
comms_list_workspaces: ['read:comms'],
|
|
205
|
+
comms_list_marketing_blocks: ['read:comms'],
|
|
206
|
+
comms_list_lists: ['read:comms'],
|
|
207
|
+
comms_get_list: ['read:comms'],
|
|
208
|
+
comms_compare_lists: ['read:comms'],
|
|
209
|
+
comms_get_list_relations: ['read:comms'],
|
|
210
|
+
comms_list_templates: ['read:comms'],
|
|
211
|
+
comms_get_template: ['read:comms'],
|
|
212
|
+
comms_get_template_rules: ['read:comms'],
|
|
213
|
+
comms_lint_template: ['read:comms'],
|
|
214
|
+
comms_suggest_template_fixes: ['read:comms'],
|
|
215
|
+
comms_check_links: ['read:comms'],
|
|
216
|
+
comms_preview_template: ['read:comms'],
|
|
217
|
+
comms_list_starters: ['read:comms'],
|
|
218
|
+
comms_get_brand_kit: ['read:comms'],
|
|
219
|
+
comms_list_campaigns: ['read:comms'],
|
|
220
|
+
comms_get_campaign: ['read:comms'],
|
|
185
221
|
};
|
|
186
222
|
|
|
187
223
|
/** `|| []`: a tool with no entry (signup's own tool) contributes no scopes rather than throwing. */
|