@checkstack/scripts 0.6.0 → 0.6.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/scripts",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Checkstack tooling: plugin scaffolding, codegen, and the plugin-pack CLI used by external plugin authors.",
5
5
  "license": "Elastic-2.0",
6
6
  "type": "module",
@@ -27,7 +27,7 @@
27
27
  "typecheck": "tsgo -b"
28
28
  },
29
29
  "dependencies": {
30
- "@checkstack/common": "0.14.1",
30
+ "@checkstack/common": "0.15.0",
31
31
  "ansi-escapes": "^7.3.0",
32
32
  "handlebars": "^4.7.8",
33
33
  "ink": "^7.0.5",
@@ -10,15 +10,22 @@ export const {{pluginNameCamel}}Access = {
10
10
  * - read: View {{pluginBaseName}} data (auto-assigned to authenticated users)
11
11
  * - manage: Create, update, and delete {{pluginBaseName}} data
12
12
  */
13
- ...accessPair("{{pluginBaseName}}", {
14
- read: {
15
- description: "Read {{pluginBaseName}} data",
16
- isDefault: true, // read is auto-assigned to "users" role
13
+ ...accessPair(
14
+ "{{pluginBaseName}}",
15
+ {
16
+ read: {
17
+ description: "Read {{pluginBaseName}} data",
18
+ isDefault: true, // read is auto-assigned to "users" role
19
+ },
20
+ manage: {
21
+ description: "Manage {{pluginBaseName}} data",
22
+ },
17
23
  },
18
- manage: {
19
- description: "Manage {{pluginBaseName}} data",
24
+ {
25
+ // Owning plugin id - rules are matched only as `{pluginId}.{id}`.
26
+ pluginId: "{{pluginBaseName}}",
20
27
  },
21
- }),
28
+ ),
22
29
  };
23
30
 
24
31
  /**