aicommunicator-plugin-check 0.2.2 → 0.3.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/LICENSE CHANGED
@@ -1,55 +1,55 @@
1
- Apache License
2
-
3
- Version 2.0, January 2004
4
-
5
- http://www.apache.org/licenses/
6
-
7
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
-
9
- 1. Definitions.
10
-
11
- "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
12
-
13
- "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
16
-
17
- "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
18
-
19
- "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
20
-
21
- "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
22
-
23
- "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
24
-
25
- "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
26
-
27
- "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
28
-
29
- "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
30
-
31
- 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
32
-
33
- 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
34
-
35
- 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
36
-
37
- You must give any other recipients of the Work or Derivative Works a copy of this License; and
38
-
39
- You must cause any modified files to carry prominent notices stating that You changed the files; and
40
-
41
- You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
42
-
43
- If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
44
-
45
- 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
46
-
47
- 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
48
-
49
- 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
50
-
51
- 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
52
-
53
- 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
54
-
55
- END OF TERMS AND CONDITIONS
1
+ Apache License
2
+
3
+ Version 2.0, January 2004
4
+
5
+ http://www.apache.org/licenses/
6
+
7
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
+
9
+ 1. Definitions.
10
+
11
+ "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
16
+
17
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
18
+
19
+ "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
20
+
21
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
22
+
23
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
24
+
25
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
26
+
27
+ "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
28
+
29
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
30
+
31
+ 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
32
+
33
+ 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
34
+
35
+ 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
36
+
37
+ You must give any other recipients of the Work or Derivative Works a copy of this License; and
38
+
39
+ You must cause any modified files to carry prominent notices stating that You changed the files; and
40
+
41
+ You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
42
+
43
+ If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
44
+
45
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
46
+
47
+ 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
48
+
49
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
50
+
51
+ 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
52
+
53
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
54
+
55
+ END OF TERMS AND CONDITIONS
package/README.md CHANGED
@@ -4,7 +4,7 @@ Code that checks the rules for the manifest and the package file (`.tgz`) of AIC
4
4
 
5
5
  - It depends on no other package and uses only built-in Node modules (`node:crypto`, `node:zlib`). It runs on Node 22.13 or later.
6
6
  - It does not run plugin code. It only looks at the text of the manifest, the names and sizes of files in the package file, and the text of the manual and sample files.
7
- - The design is in `doc/036_plugin_registry_design.md` of the aicommunicator repository, and the manual and samples are in `doc/037_plugin_manual_design.md`.
7
+ - The design is in `docs/en/history/036_plugin_registry_design.md` of the aicommunicator repository, and the manual and samples are in `docs/en/history/037_plugin_manual_design.md`.
8
8
 
9
9
  ```bash
10
10
  npm install aicommunicator-plugin-check
@@ -39,12 +39,23 @@ export type OsName = 'windows' | 'macos' | 'linux';
39
39
  /** 바깥 도구 하나(034 2.1절). */
40
40
  export interface ExternalTool {
41
41
  name: string;
42
- kind: 'program' | 'web' | 'mcp';
42
+ kind: 'program' | 'web' | 'mcp' | 'relay';
43
43
  account: 'none' | 'free' | 'paid';
44
44
  install: boolean;
45
45
  note?: string;
46
46
  /** 플러그인 화면에서 사람이 만들 수 있는 HTTP 연결(032 44.2절). kind 가 mcp 인 항목에만 있다. */
47
47
  connect?: ExternalConnect;
48
+ /** 플러그인 화면이 코어를 거쳐 부르는 중개기(relay.md 5절 1번). kind 가 relay 인 항목에만 있고, 그 항목에는 꼭 있다. */
49
+ relay?: ExternalRelay;
50
+ }
51
+ /**
52
+ * 중개기 하나(relay.md 5절 1번). connection 은 사람이 connections.json 에 중개기 연결로 적은 이름이고, actions 는 화면이 부를 action 이름이다.
53
+ * AIC 용 중개기면 aic_relay_describe 의 actions 가운데 이름이고, 일반 MCP 서버(4.1절)면 그 서버의 도구 이름이다. 코어는 이 목록에 있고
54
+ * describe 에도 있는 action 만, 일반 MCP 서버면 이 목록에 있고 사람이 확인 창에서 고른 도구만 부른다.
55
+ */
56
+ export interface ExternalRelay {
57
+ connection: string;
58
+ actions: string[];
48
59
  }
49
60
  /**
50
61
  * 플러그인 화면에서 사람이 [연결] 을 눌러 만드는 HTTP 연결(032 44.2절). 코어는 이 manifest 의 주소만 쓰고 화면 코드가 주소를 넘기지 못한다.
@@ -74,6 +85,15 @@ export declare const CONNECT_URL_MAX = 500;
74
85
  * 않는다. 문제가 있으면 "<칸> <까닭>" 의 까닭이고 없으면 null 이다. 코어도 연결을 쓰기 전에 이것으로 다시 본다.
75
86
  */
76
87
  export declare function connectUrlProblem(value: unknown): string | null;
88
+ /** 중개기 항목의 action 수 한도(relay.md 5절 1번). */
89
+ export declare const RELAY_ACTIONS_MAX = 50;
90
+ /**
91
+ * action 이름(relay.md 4절 1번). MCP 도구 이름과 같은 모양(영어 글자, 숫자, _, -, . 로 128자까지)이다. 일반 MCP 서버면 도구 이름 그대로 쓰기
92
+ * 때문이다.
93
+ */
94
+ export declare const RELAY_ACTION_NAME: RegExp;
95
+ /** 중개기 계약의 도구 이름(relay.md 4절). 화면이 부를 action 이 아니므로 actions 에 받지 않는다. */
96
+ export declare const RELAY_PROTOCOL_TOOLS: readonly string[];
77
97
  /** `계정이름.플러그인이름` 모양인가. 각 부분은 영어 소문자, 숫자, `-` 이고 2자에서 40자다(036 4절). */
78
98
  export declare function isPluginId(id: unknown): id is string;
79
99
  /** id 의 앞부분(계정 이름). */
package/dist/manifest.js CHANGED
@@ -12,7 +12,7 @@ const SAMPLE_ID = /^[a-z0-9][a-z0-9-]{0,39}$/;
12
12
  /** 폴더 없는 파일 이름. 코어가 `/plugin/<id>/ui/<파일>` 로 내보내는 모양과 같다. */
13
13
  const FILE_NAME = /^[\w.-]+$/;
14
14
  const OS_NAMES = ['windows', 'macos', 'linux'];
15
- const TOOL_KINDS = ['program', 'web', 'mcp'];
15
+ const TOOL_KINDS = ['program', 'web', 'mcp', 'relay'];
16
16
  const ACCOUNTS = ['none', 'free', 'paid'];
17
17
  /** 연결 이름. 코어의 link/connections.ts 의 CONNECTION_NAME 과 같은 모양이다(이 패키지는 코어를 불러오지 않는다). */
18
18
  const CONNECTION_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$/;
@@ -76,6 +76,39 @@ function connectProblem(where, value) {
76
76
  }
77
77
  return null;
78
78
  }
79
+ /** 중개기 항목의 action 수 한도(relay.md 5절 1번). */
80
+ export const RELAY_ACTIONS_MAX = 50;
81
+ /**
82
+ * action 이름(relay.md 4절 1번). MCP 도구 이름과 같은 모양(영어 글자, 숫자, _, -, . 로 128자까지)이다. 일반 MCP 서버면 도구 이름 그대로 쓰기
83
+ * 때문이다.
84
+ */
85
+ export const RELAY_ACTION_NAME = /^[A-Za-z0-9_][A-Za-z0-9_.-]{0,127}$/;
86
+ /** 중개기 계약의 도구 이름(relay.md 4절). 화면이 부를 action 이 아니므로 actions 에 받지 않는다. */
87
+ export const RELAY_PROTOCOL_TOOLS = ['aic_relay_describe', 'aic_relay_call'];
88
+ /** requires.external[].relay 의 모양(relay.md 5절 1번). */
89
+ function relayProblem(where, value) {
90
+ const shape = objectProblem(where, value, ['connection', 'actions']);
91
+ if (shape)
92
+ return shape;
93
+ const r = value;
94
+ if (typeof r.connection !== 'string' || !CONNECTION_NAME.test(r.connection)) {
95
+ return `${where}.connection must be up to 64 characters of English letters, digits, ., _ and -, starting with a letter or digit. It is the name of the relay connection the person writes in connections.json`;
96
+ }
97
+ if (!Array.isArray(r.actions) || r.actions.length === 0)
98
+ return `${where}.actions must be a non-empty list of the action names the screen calls (tool names for a general MCP server)`;
99
+ if (r.actions.length > RELAY_ACTIONS_MAX)
100
+ return `${where}.actions can have up to ${RELAY_ACTIONS_MAX} entries (${r.actions.length} given)`;
101
+ for (const a of r.actions) {
102
+ if (typeof a !== 'string' || !RELAY_ACTION_NAME.test(a))
103
+ return `${where}.actions has ${JSON.stringify(a)}, but an action name is up to 128 characters of English letters, digits, _, - and .`;
104
+ if (RELAY_PROTOCOL_TOOLS.includes(a))
105
+ return `${where}.actions must not have ${a}. It is a tool of the relay contract, not an action the screen calls`;
106
+ }
107
+ const twice = r.actions.filter((a, i, all) => all.indexOf(a) !== i);
108
+ if (twice.length > 0)
109
+ return `${where}.actions repeats the same action: ${[...new Set(twice)].join(', ')}`;
110
+ return null;
111
+ }
79
112
  /** `계정이름.플러그인이름` 모양인가. 각 부분은 영어 소문자, 숫자, `-` 이고 2자에서 40자다(036 4절). */
80
113
  export function isPluginId(id) {
81
114
  if (typeof id !== 'string')
@@ -142,9 +175,12 @@ function requiresProblem(value) {
142
175
  // 화면은 connectExternal 에 name 을 주고 코어는 connect.connection 으로 연결을 만든다. 둘 다 겹치면 어느 것인지 모른다(032 44.3절)
143
176
  const connectNames = new Set();
144
177
  const connections = new Set();
178
+ // 화면은 relayCall 에 name 을 주고 코어는 relay.connection 의 중개기를 부른다. 같은 이유로 둘 다 겹치지 않게 한다(relay.md 5절 2번)
179
+ const relayNames = new Set();
180
+ const relayConnections = new Set();
145
181
  for (const [i, t] of r.external.entries()) {
146
182
  const where = `requires.external[${i}]`;
147
- const shape = objectProblem(where, t, ['name', 'kind', 'account', 'install', 'note', 'connect']);
183
+ const shape = objectProblem(where, t, ['name', 'kind', 'account', 'install', 'note', 'connect', 'relay']);
148
184
  if (shape)
149
185
  return shape;
150
186
  const tool = t;
@@ -152,7 +188,7 @@ function requiresProblem(value) {
152
188
  if (name)
153
189
  return name;
154
190
  if (typeof tool.kind !== 'string' || !TOOL_KINDS.includes(tool.kind))
155
- return `${where}.kind must be one of program, web, mcp`;
191
+ return `${where}.kind must be one of program, web, mcp, relay`;
156
192
  if (typeof tool.account !== 'string' || !ACCOUNTS.includes(tool.account))
157
193
  return `${where}.account must be one of none, free, paid`;
158
194
  if (typeof tool.install !== 'boolean')
@@ -176,6 +212,22 @@ function requiresProblem(value) {
176
212
  connectNames.add(tool.name);
177
213
  connections.add(c.connection);
178
214
  }
215
+ if (tool.kind === 'relay' && tool.relay === undefined)
216
+ return `${where} of kind "relay" needs relay: { connection, actions }`;
217
+ if (tool.relay !== undefined) {
218
+ if (tool.kind !== 'relay')
219
+ return `${where}.relay is only for kind "relay" (a relay the screen calls through the core)`;
220
+ const relay = relayProblem(`${where}.relay`, tool.relay);
221
+ if (relay)
222
+ return relay;
223
+ const rl = tool.relay;
224
+ if (relayNames.has(tool.name))
225
+ return `requires.external has two relay entries named ${tool.name}`;
226
+ if (relayConnections.has(rl.connection))
227
+ return `requires.external has two relay entries for the connection ${rl.connection}`;
228
+ relayNames.add(tool.name);
229
+ relayConnections.add(rl.connection);
230
+ }
179
231
  }
180
232
  }
181
233
  return null;
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "aicommunicator-plugin-check",
3
- "version": "0.2.2",
3
+ "version": "0.3.0",
4
4
  "description": "Checks the rules for the manifest and package file (.tgz) of AIC (aicommunicator) plugins. Shared by the AIC core, the aic command, and the plugin registry site",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "engines": { "node": ">=22.13" },
8
8
  "repository": { "type": "git", "url": "git+https://github.com/rawdev/aicommunicator.git", "directory": "packages/manifest" },
9
+ "bugs": { "url": "https://github.com/rawdev/aicommunicator/issues" },
10
+ "homepage": "https://github.com/rawdev/aicommunicator/tree/main/packages/manifest#readme",
9
11
  "keywords": ["aicommunicator", "aic", "plugin", "manifest"],
10
12
  "exports": {
11
13
  ".": {