@red-hat-developer-hub/backstage-plugin-intelligent-assistant-common 4.3.0 → 5.0.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/CHANGELOG.md +6 -0
- package/dist/index.cjs.js +4 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +9 -25
- package/dist/index.esm.js +1 -1
- package/dist/permissions.cjs.js +16 -40
- package/dist/permissions.cjs.js.map +1 -1
- package/dist/permissions.esm.js +13 -33
- package/dist/permissions.esm.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @red-hat-developer-hub/backstage-plugin-intelligent-assistant-common
|
|
2
2
|
|
|
3
|
+
## 5.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 5741af9: Consolidate Intelligent Assistant RBAC permissions into four feature-linked sets: `intelligent-assistant.chat`, `intelligent-assistant.notebooks`, `intelligent-assistant.mcp.tools`, and `intelligent-assistant.skills`. Update backend routes, frontend permission checks, example RBAC policies, and documentation to use the new permission names and exported constants.
|
|
8
|
+
|
|
3
9
|
## 4.3.0
|
|
4
10
|
|
|
5
11
|
## 4.2.0
|
package/dist/index.cjs.js
CHANGED
|
@@ -4,13 +4,9 @@ var permissions = require('./permissions.cjs.js');
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.iaMcpManagePermission = permissions.iaMcpManagePermission;
|
|
11
|
-
exports.iaMcpUsePermission = permissions.iaMcpUsePermission;
|
|
12
|
-
exports.iaNotebooksManagePermission = permissions.iaNotebooksManagePermission;
|
|
13
|
-
exports.iaNotebooksUsePermission = permissions.iaNotebooksUsePermission;
|
|
7
|
+
exports.iaChatPermission = permissions.iaChatPermission;
|
|
8
|
+
exports.iaMcpToolsPermission = permissions.iaMcpToolsPermission;
|
|
9
|
+
exports.iaNotebooksPermission = permissions.iaNotebooksPermission;
|
|
14
10
|
exports.iaPermissions = permissions.iaPermissions;
|
|
15
|
-
exports.
|
|
11
|
+
exports.iaSkillsPermission = permissions.iaSkillsPermission;
|
|
16
12
|
//# sourceMappingURL=index.cjs.js.map
|
package/dist/index.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,37 +1,21 @@
|
|
|
1
1
|
import * as _backstage_plugin_permission_common from '@backstage/plugin-permission-common';
|
|
2
2
|
|
|
3
|
-
/**
|
|
3
|
+
/** Full permissions to use the intelligent-assistant chat feature
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
6
|
-
declare const
|
|
7
|
-
/**
|
|
6
|
+
declare const iaChatPermission: _backstage_plugin_permission_common.BasicPermission;
|
|
7
|
+
/** Full permissions to use the intelligent-assistant notebooks feature
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
|
10
|
-
declare const
|
|
11
|
-
/**
|
|
10
|
+
declare const iaNotebooksPermission: _backstage_plugin_permission_common.BasicPermission;
|
|
11
|
+
/** Full permissions to use the intelligent-assistant MCP actions tooling
|
|
12
12
|
* @public
|
|
13
13
|
*/
|
|
14
|
-
declare const
|
|
15
|
-
/**
|
|
14
|
+
declare const iaMcpToolsPermission: _backstage_plugin_permission_common.BasicPermission;
|
|
15
|
+
/** Full permissions to use the intelligent-assistant skills feature
|
|
16
16
|
* @public
|
|
17
17
|
*/
|
|
18
|
-
declare const
|
|
19
|
-
/** This permission is used to manage MCP tooling
|
|
20
|
-
* @public
|
|
21
|
-
*/
|
|
22
|
-
declare const iaMcpManagePermission: _backstage_plugin_permission_common.BasicPermission;
|
|
23
|
-
/** This permission is used to access, create, and query intelligent-assistant notebooks
|
|
24
|
-
* @public
|
|
25
|
-
*/
|
|
26
|
-
declare const iaNotebooksUsePermission: _backstage_plugin_permission_common.BasicPermission;
|
|
27
|
-
/** This permission is used to update and delete intelligent-assistant notebooks
|
|
28
|
-
* @public
|
|
29
|
-
*/
|
|
30
|
-
declare const iaNotebooksManagePermission: _backstage_plugin_permission_common.BasicPermission;
|
|
31
|
-
/** This permission is used to view the list of configured skills
|
|
32
|
-
* @public
|
|
33
|
-
*/
|
|
34
|
-
declare const iaSkillsAccessPermission: _backstage_plugin_permission_common.BasicPermission;
|
|
18
|
+
declare const iaSkillsPermission: _backstage_plugin_permission_common.BasicPermission;
|
|
35
19
|
/**
|
|
36
20
|
* List of all permissions on permission polices.
|
|
37
21
|
*
|
|
@@ -103,4 +87,4 @@ interface SavedPromptDeleteResponse {
|
|
|
103
87
|
response: string;
|
|
104
88
|
}
|
|
105
89
|
|
|
106
|
-
export { type SavedPrompt, type SavedPromptCreateRequest, type SavedPromptDeleteResponse, type SavedPromptsConfig, type SavedPromptsListResponse,
|
|
90
|
+
export { type SavedPrompt, type SavedPromptCreateRequest, type SavedPromptDeleteResponse, type SavedPromptsConfig, type SavedPromptsListResponse, iaChatPermission, iaMcpToolsPermission, iaNotebooksPermission, iaPermissions, iaSkillsPermission };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { iaChatPermission, iaMcpToolsPermission, iaNotebooksPermission, iaPermissions, iaSkillsPermission } from './permissions.esm.js';
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|
package/dist/permissions.cjs.js
CHANGED
|
@@ -2,56 +2,32 @@
|
|
|
2
2
|
|
|
3
3
|
var pluginPermissionCommon = require('@backstage/plugin-permission-common');
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
name: "intelligent-assistant.chat
|
|
5
|
+
const iaChatPermission = pluginPermissionCommon.createPermission({
|
|
6
|
+
name: "intelligent-assistant.chat",
|
|
7
7
|
attributes: {}
|
|
8
8
|
});
|
|
9
|
-
const
|
|
10
|
-
name: "intelligent-assistant.
|
|
9
|
+
const iaNotebooksPermission = pluginPermissionCommon.createPermission({
|
|
10
|
+
name: "intelligent-assistant.notebooks",
|
|
11
11
|
attributes: {}
|
|
12
12
|
});
|
|
13
|
-
const
|
|
14
|
-
name: "intelligent-assistant.
|
|
13
|
+
const iaMcpToolsPermission = pluginPermissionCommon.createPermission({
|
|
14
|
+
name: "intelligent-assistant.mcp.tools",
|
|
15
15
|
attributes: {}
|
|
16
16
|
});
|
|
17
|
-
const
|
|
18
|
-
name: "
|
|
19
|
-
attributes: {}
|
|
20
|
-
});
|
|
21
|
-
const iaMcpManagePermission = pluginPermissionCommon.createPermission({
|
|
22
|
-
name: "mcp.tools.manage",
|
|
23
|
-
attributes: {}
|
|
24
|
-
});
|
|
25
|
-
const iaNotebooksUsePermission = pluginPermissionCommon.createPermission({
|
|
26
|
-
name: "intelligent-assistant.notebooks.use",
|
|
27
|
-
attributes: {}
|
|
28
|
-
});
|
|
29
|
-
const iaNotebooksManagePermission = pluginPermissionCommon.createPermission({
|
|
30
|
-
name: "intelligent-assistant.notebooks.manage",
|
|
31
|
-
attributes: {}
|
|
32
|
-
});
|
|
33
|
-
const iaSkillsAccessPermission = pluginPermissionCommon.createPermission({
|
|
34
|
-
name: "intelligent-assistant.skills.access",
|
|
17
|
+
const iaSkillsPermission = pluginPermissionCommon.createPermission({
|
|
18
|
+
name: "intelligent-assistant.skills",
|
|
35
19
|
attributes: {}
|
|
36
20
|
});
|
|
37
21
|
const iaPermissions = [
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
iaMcpManagePermission,
|
|
43
|
-
iaNotebooksManagePermission,
|
|
44
|
-
iaNotebooksUsePermission,
|
|
45
|
-
iaSkillsAccessPermission
|
|
22
|
+
iaChatPermission,
|
|
23
|
+
iaNotebooksPermission,
|
|
24
|
+
iaMcpToolsPermission,
|
|
25
|
+
iaSkillsPermission
|
|
46
26
|
];
|
|
47
27
|
|
|
48
|
-
exports.
|
|
49
|
-
exports.
|
|
50
|
-
exports.
|
|
51
|
-
exports.iaMcpManagePermission = iaMcpManagePermission;
|
|
52
|
-
exports.iaMcpUsePermission = iaMcpUsePermission;
|
|
53
|
-
exports.iaNotebooksManagePermission = iaNotebooksManagePermission;
|
|
54
|
-
exports.iaNotebooksUsePermission = iaNotebooksUsePermission;
|
|
28
|
+
exports.iaChatPermission = iaChatPermission;
|
|
29
|
+
exports.iaMcpToolsPermission = iaMcpToolsPermission;
|
|
30
|
+
exports.iaNotebooksPermission = iaNotebooksPermission;
|
|
55
31
|
exports.iaPermissions = iaPermissions;
|
|
56
|
-
exports.
|
|
32
|
+
exports.iaSkillsPermission = iaSkillsPermission;
|
|
57
33
|
//# sourceMappingURL=permissions.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.cjs.js","sources":["../src/permissions.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createPermission } from '@backstage/plugin-permission-common';\n\n/**
|
|
1
|
+
{"version":3,"file":"permissions.cjs.js","sources":["../src/permissions.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createPermission } from '@backstage/plugin-permission-common';\n\n/** Full permissions to use the intelligent-assistant chat feature\n * @public\n */\nexport const iaChatPermission = createPermission({\n name: 'intelligent-assistant.chat',\n attributes: {},\n});\n\n/** Full permissions to use the intelligent-assistant notebooks feature\n * @public\n */\nexport const iaNotebooksPermission = createPermission({\n name: 'intelligent-assistant.notebooks',\n attributes: {},\n});\n\n/** Full permissions to use the intelligent-assistant MCP actions tooling\n * @public\n */\nexport const iaMcpToolsPermission = createPermission({\n name: 'intelligent-assistant.mcp.tools',\n attributes: {},\n});\n\n/** Full permissions to use the intelligent-assistant skills feature\n * @public\n */\nexport const iaSkillsPermission = createPermission({\n name: 'intelligent-assistant.skills',\n attributes: {},\n});\n\n/**\n * List of all permissions on permission polices.\n *\n * @public\n */\nexport const iaPermissions = [\n iaChatPermission,\n iaNotebooksPermission,\n iaMcpToolsPermission,\n iaSkillsPermission,\n];\n"],"names":["createPermission"],"mappings":";;;;AAqBO,MAAM,mBAAmBA,uCAAA,CAAiB;AAAA,EAC/C,IAAA,EAAM,4BAAA;AAAA,EACN,YAAY;AACd,CAAC;AAKM,MAAM,wBAAwBA,uCAAA,CAAiB;AAAA,EACpD,IAAA,EAAM,iCAAA;AAAA,EACN,YAAY;AACd,CAAC;AAKM,MAAM,uBAAuBA,uCAAA,CAAiB;AAAA,EACnD,IAAA,EAAM,iCAAA;AAAA,EACN,YAAY;AACd,CAAC;AAKM,MAAM,qBAAqBA,uCAAA,CAAiB;AAAA,EACjD,IAAA,EAAM,8BAAA;AAAA,EACN,YAAY;AACd,CAAC;AAOM,MAAM,aAAA,GAAgB;AAAA,EAC3B,gBAAA;AAAA,EACA,qBAAA;AAAA,EACA,oBAAA;AAAA,EACA;AACF;;;;;;;;"}
|
package/dist/permissions.esm.js
CHANGED
|
@@ -1,47 +1,27 @@
|
|
|
1
1
|
import { createPermission } from '@backstage/plugin-permission-common';
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
name: "intelligent-assistant.chat
|
|
3
|
+
const iaChatPermission = createPermission({
|
|
4
|
+
name: "intelligent-assistant.chat",
|
|
5
5
|
attributes: {}
|
|
6
6
|
});
|
|
7
|
-
const
|
|
8
|
-
name: "intelligent-assistant.
|
|
7
|
+
const iaNotebooksPermission = createPermission({
|
|
8
|
+
name: "intelligent-assistant.notebooks",
|
|
9
9
|
attributes: {}
|
|
10
10
|
});
|
|
11
|
-
const
|
|
12
|
-
name: "intelligent-assistant.
|
|
11
|
+
const iaMcpToolsPermission = createPermission({
|
|
12
|
+
name: "intelligent-assistant.mcp.tools",
|
|
13
13
|
attributes: {}
|
|
14
14
|
});
|
|
15
|
-
const
|
|
16
|
-
name: "
|
|
17
|
-
attributes: {}
|
|
18
|
-
});
|
|
19
|
-
const iaMcpManagePermission = createPermission({
|
|
20
|
-
name: "mcp.tools.manage",
|
|
21
|
-
attributes: {}
|
|
22
|
-
});
|
|
23
|
-
const iaNotebooksUsePermission = createPermission({
|
|
24
|
-
name: "intelligent-assistant.notebooks.use",
|
|
25
|
-
attributes: {}
|
|
26
|
-
});
|
|
27
|
-
const iaNotebooksManagePermission = createPermission({
|
|
28
|
-
name: "intelligent-assistant.notebooks.manage",
|
|
29
|
-
attributes: {}
|
|
30
|
-
});
|
|
31
|
-
const iaSkillsAccessPermission = createPermission({
|
|
32
|
-
name: "intelligent-assistant.skills.access",
|
|
15
|
+
const iaSkillsPermission = createPermission({
|
|
16
|
+
name: "intelligent-assistant.skills",
|
|
33
17
|
attributes: {}
|
|
34
18
|
});
|
|
35
19
|
const iaPermissions = [
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
iaMcpManagePermission,
|
|
41
|
-
iaNotebooksManagePermission,
|
|
42
|
-
iaNotebooksUsePermission,
|
|
43
|
-
iaSkillsAccessPermission
|
|
20
|
+
iaChatPermission,
|
|
21
|
+
iaNotebooksPermission,
|
|
22
|
+
iaMcpToolsPermission,
|
|
23
|
+
iaSkillsPermission
|
|
44
24
|
];
|
|
45
25
|
|
|
46
|
-
export {
|
|
26
|
+
export { iaChatPermission, iaMcpToolsPermission, iaNotebooksPermission, iaPermissions, iaSkillsPermission };
|
|
47
27
|
//# sourceMappingURL=permissions.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.esm.js","sources":["../src/permissions.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createPermission } from '@backstage/plugin-permission-common';\n\n/**
|
|
1
|
+
{"version":3,"file":"permissions.esm.js","sources":["../src/permissions.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createPermission } from '@backstage/plugin-permission-common';\n\n/** Full permissions to use the intelligent-assistant chat feature\n * @public\n */\nexport const iaChatPermission = createPermission({\n name: 'intelligent-assistant.chat',\n attributes: {},\n});\n\n/** Full permissions to use the intelligent-assistant notebooks feature\n * @public\n */\nexport const iaNotebooksPermission = createPermission({\n name: 'intelligent-assistant.notebooks',\n attributes: {},\n});\n\n/** Full permissions to use the intelligent-assistant MCP actions tooling\n * @public\n */\nexport const iaMcpToolsPermission = createPermission({\n name: 'intelligent-assistant.mcp.tools',\n attributes: {},\n});\n\n/** Full permissions to use the intelligent-assistant skills feature\n * @public\n */\nexport const iaSkillsPermission = createPermission({\n name: 'intelligent-assistant.skills',\n attributes: {},\n});\n\n/**\n * List of all permissions on permission polices.\n *\n * @public\n */\nexport const iaPermissions = [\n iaChatPermission,\n iaNotebooksPermission,\n iaMcpToolsPermission,\n iaSkillsPermission,\n];\n"],"names":[],"mappings":";;AAqBO,MAAM,mBAAmB,gBAAA,CAAiB;AAAA,EAC/C,IAAA,EAAM,4BAAA;AAAA,EACN,YAAY;AACd,CAAC;AAKM,MAAM,wBAAwB,gBAAA,CAAiB;AAAA,EACpD,IAAA,EAAM,iCAAA;AAAA,EACN,YAAY;AACd,CAAC;AAKM,MAAM,uBAAuB,gBAAA,CAAiB;AAAA,EACnD,IAAA,EAAM,iCAAA;AAAA,EACN,YAAY;AACd,CAAC;AAKM,MAAM,qBAAqB,gBAAA,CAAiB;AAAA,EACjD,IAAA,EAAM,8BAAA;AAAA,EACN,YAAY;AACd,CAAC;AAOM,MAAM,aAAA,GAAgB;AAAA,EAC3B,gBAAA;AAAA,EACA,qBAAA;AAAA,EACA,oBAAA;AAAA,EACA;AACF;;;;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@red-hat-developer-hub/backstage-plugin-intelligent-assistant-common",
|
|
3
3
|
"description": "Common functionalities for the intelligent-assistant plugin",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "5.0.0",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|