agentsmesh 0.3.1 → 0.6.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 CHANGED
@@ -1,12 +1,32 @@
1
1
  {
2
2
  "name": "agentsmesh",
3
- "version": "0.3.1",
3
+ "version": "0.6.0",
4
4
  "description": "One canonical source for AI coding agent rules, commands, skills, MCP, hooks, and permissions — synced across Claude Code, Cursor, Copilot, Continue, Junie, Gemini CLI, Cline, Codex CLI, Windsurf, Antigravity, and Roo Code.",
5
5
  "type": "module",
6
- "main": "./dist/cli.js",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
7
8
  "author": "sampleXbro",
8
9
  "exports": {
9
- ".": "./dist/cli.js"
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "default": "./dist/index.js"
14
+ },
15
+ "./engine": {
16
+ "types": "./dist/engine.d.ts",
17
+ "import": "./dist/engine.js",
18
+ "default": "./dist/engine.js"
19
+ },
20
+ "./canonical": {
21
+ "types": "./dist/canonical.d.ts",
22
+ "import": "./dist/canonical.js",
23
+ "default": "./dist/canonical.js"
24
+ },
25
+ "./targets": {
26
+ "types": "./dist/targets.d.ts",
27
+ "import": "./dist/targets.js",
28
+ "default": "./dist/targets.js"
29
+ }
10
30
  },
11
31
  "bin": {
12
32
  "agentsmesh": "./dist/cli.js",
@@ -15,6 +35,10 @@
15
35
  "engines": {
16
36
  "node": ">=20.0.0"
17
37
  },
38
+ "os": [
39
+ "darwin",
40
+ "linux"
41
+ ],
18
42
  "repository": {
19
43
  "type": "git",
20
44
  "url": "git+https://github.com/sampleXbro/agentsmesh.git"
@@ -60,11 +84,13 @@
60
84
  },
61
85
  "files": [
62
86
  "dist",
87
+ "schemas",
63
88
  "README.md",
64
89
  "CHANGELOG.md",
65
90
  "LICENSE"
66
91
  ],
67
92
  "devDependencies": {
93
+ "@arethetypeswrong/cli": "^0.18.2",
68
94
  "@changesets/cli": "^2.27.12",
69
95
  "@eslint/js": "^10.0.1",
70
96
  "@types/node": "^25.6.0",
@@ -76,7 +102,9 @@
76
102
  "husky": "^9.1.7",
77
103
  "lint-staged": "^16.4.0",
78
104
  "prettier": "^3.8.2",
105
+ "publint": "^0.3.18",
79
106
  "tsup": "^8.5.1",
107
+ "tsx": "^4.21.0",
80
108
  "typescript": "^5.9.3",
81
109
  "vitest": "^4.1.4"
82
110
  },
@@ -93,6 +121,8 @@
93
121
  "build": "tsup",
94
122
  "pretest": "pnpm build",
95
123
  "test": "vitest run",
124
+ "test:contract": "vitest run tests/contract",
125
+ "flake:check": "tsx scripts/flake-check.ts",
96
126
  "test:watch": "vitest",
97
127
  "test:coverage": "vitest run --coverage",
98
128
  "test:e2e": "pnpm build && vitest run --config vitest.e2e.config.ts",
@@ -100,8 +130,15 @@
100
130
  "format": "prettier --write src/",
101
131
  "format:check": "prettier --check src/",
102
132
  "typecheck": "tsc --noEmit",
133
+ "schemas:generate": "tsx scripts/generate-schemas.ts",
134
+ "matrix:generate": "tsx scripts/render-support-matrix.ts",
135
+ "matrix:verify": "tsx scripts/render-support-matrix.ts --verify",
103
136
  "changeset": "changeset",
104
137
  "version": "changeset version",
105
- "release": "pnpm build && changeset publish"
138
+ "release": "pnpm build && changeset publish",
139
+ "publint": "publint",
140
+ "attw": "attw --pack . --profile esm-only",
141
+ "consumer-smoke": "./scripts/consumer-smoke.sh",
142
+ "install-global": "pnpm build && pnpm pack && pnpm add -g $(pwd)/agentsmesh-$(node -p 'require(\"./package.json\").version').tgz"
106
143
  }
107
144
  }
@@ -0,0 +1,362 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "version": {
6
+ "type": "number",
7
+ "const": 1
8
+ },
9
+ "targets": {
10
+ "default": [
11
+ "claude-code",
12
+ "cursor",
13
+ "copilot",
14
+ "continue",
15
+ "junie",
16
+ "kiro",
17
+ "gemini-cli",
18
+ "cline",
19
+ "codex-cli",
20
+ "windsurf",
21
+ "antigravity",
22
+ "roo-code"
23
+ ],
24
+ "type": "array",
25
+ "items": {
26
+ "type": "string",
27
+ "enum": [
28
+ "claude-code",
29
+ "cursor",
30
+ "copilot",
31
+ "continue",
32
+ "junie",
33
+ "kiro",
34
+ "gemini-cli",
35
+ "cline",
36
+ "codex-cli",
37
+ "windsurf",
38
+ "antigravity",
39
+ "roo-code"
40
+ ]
41
+ }
42
+ },
43
+ "features": {
44
+ "default": [
45
+ "rules",
46
+ "commands",
47
+ "agents",
48
+ "skills",
49
+ "mcp",
50
+ "hooks",
51
+ "ignore",
52
+ "permissions"
53
+ ],
54
+ "type": "array",
55
+ "items": {
56
+ "type": "string",
57
+ "enum": [
58
+ "rules",
59
+ "commands",
60
+ "agents",
61
+ "skills",
62
+ "mcp",
63
+ "hooks",
64
+ "ignore",
65
+ "permissions"
66
+ ]
67
+ }
68
+ },
69
+ "extends": {
70
+ "default": [],
71
+ "type": "array",
72
+ "items": {
73
+ "type": "object",
74
+ "properties": {
75
+ "name": {
76
+ "type": "string"
77
+ },
78
+ "source": {
79
+ "type": "string"
80
+ },
81
+ "version": {
82
+ "type": "string"
83
+ },
84
+ "target": {
85
+ "type": "string",
86
+ "enum": [
87
+ "claude-code",
88
+ "cursor",
89
+ "copilot",
90
+ "continue",
91
+ "junie",
92
+ "kiro",
93
+ "gemini-cli",
94
+ "cline",
95
+ "codex-cli",
96
+ "windsurf",
97
+ "antigravity",
98
+ "roo-code"
99
+ ]
100
+ },
101
+ "features": {
102
+ "type": "array",
103
+ "items": {
104
+ "type": "string",
105
+ "enum": [
106
+ "rules",
107
+ "commands",
108
+ "agents",
109
+ "skills",
110
+ "mcp",
111
+ "hooks",
112
+ "ignore",
113
+ "permissions"
114
+ ]
115
+ }
116
+ },
117
+ "path": {
118
+ "type": "string"
119
+ },
120
+ "pick": {
121
+ "type": "object",
122
+ "properties": {
123
+ "skills": {
124
+ "type": "array",
125
+ "items": {
126
+ "type": "string"
127
+ }
128
+ },
129
+ "commands": {
130
+ "type": "array",
131
+ "items": {
132
+ "type": "string"
133
+ }
134
+ },
135
+ "rules": {
136
+ "type": "array",
137
+ "items": {
138
+ "type": "string"
139
+ }
140
+ },
141
+ "agents": {
142
+ "type": "array",
143
+ "items": {
144
+ "type": "string"
145
+ }
146
+ }
147
+ },
148
+ "additionalProperties": false
149
+ }
150
+ },
151
+ "required": [
152
+ "name",
153
+ "source",
154
+ "features"
155
+ ],
156
+ "additionalProperties": false
157
+ }
158
+ },
159
+ "overrides": {
160
+ "default": {},
161
+ "type": "object",
162
+ "propertyNames": {
163
+ "type": "string"
164
+ },
165
+ "additionalProperties": {
166
+ "type": "object",
167
+ "propertyNames": {
168
+ "type": "string"
169
+ },
170
+ "additionalProperties": {}
171
+ }
172
+ },
173
+ "collaboration": {
174
+ "default": {
175
+ "strategy": "merge",
176
+ "lock_features": []
177
+ },
178
+ "type": "object",
179
+ "properties": {
180
+ "strategy": {
181
+ "default": "merge",
182
+ "type": "string",
183
+ "enum": [
184
+ "merge",
185
+ "lock",
186
+ "last-wins"
187
+ ]
188
+ },
189
+ "lock_features": {
190
+ "default": [],
191
+ "type": "array",
192
+ "items": {
193
+ "type": "string"
194
+ }
195
+ }
196
+ },
197
+ "required": [
198
+ "strategy",
199
+ "lock_features"
200
+ ],
201
+ "additionalProperties": false
202
+ },
203
+ "conversions": {
204
+ "type": "object",
205
+ "properties": {
206
+ "commands_to_skills": {
207
+ "type": "object",
208
+ "properties": {
209
+ "codex-cli": {
210
+ "anyOf": [
211
+ {
212
+ "type": "boolean"
213
+ },
214
+ {
215
+ "type": "object",
216
+ "properties": {
217
+ "project": {
218
+ "type": "boolean"
219
+ },
220
+ "global": {
221
+ "type": "boolean"
222
+ }
223
+ },
224
+ "additionalProperties": false
225
+ }
226
+ ]
227
+ }
228
+ },
229
+ "additionalProperties": {}
230
+ },
231
+ "agents_to_skills": {
232
+ "type": "object",
233
+ "properties": {
234
+ "gemini-cli": {
235
+ "anyOf": [
236
+ {
237
+ "type": "boolean"
238
+ },
239
+ {
240
+ "type": "object",
241
+ "properties": {
242
+ "project": {
243
+ "type": "boolean"
244
+ },
245
+ "global": {
246
+ "type": "boolean"
247
+ }
248
+ },
249
+ "additionalProperties": false
250
+ }
251
+ ]
252
+ },
253
+ "cline": {
254
+ "anyOf": [
255
+ {
256
+ "type": "boolean"
257
+ },
258
+ {
259
+ "type": "object",
260
+ "properties": {
261
+ "project": {
262
+ "type": "boolean"
263
+ },
264
+ "global": {
265
+ "type": "boolean"
266
+ }
267
+ },
268
+ "additionalProperties": false
269
+ }
270
+ ]
271
+ },
272
+ "codex-cli": {
273
+ "anyOf": [
274
+ {
275
+ "type": "boolean"
276
+ },
277
+ {
278
+ "type": "object",
279
+ "properties": {
280
+ "project": {
281
+ "type": "boolean"
282
+ },
283
+ "global": {
284
+ "type": "boolean"
285
+ }
286
+ },
287
+ "additionalProperties": false
288
+ }
289
+ ]
290
+ },
291
+ "windsurf": {
292
+ "anyOf": [
293
+ {
294
+ "type": "boolean"
295
+ },
296
+ {
297
+ "type": "object",
298
+ "properties": {
299
+ "project": {
300
+ "type": "boolean"
301
+ },
302
+ "global": {
303
+ "type": "boolean"
304
+ }
305
+ },
306
+ "additionalProperties": false
307
+ }
308
+ ]
309
+ }
310
+ },
311
+ "additionalProperties": {}
312
+ }
313
+ },
314
+ "additionalProperties": false
315
+ },
316
+ "plugins": {
317
+ "default": [],
318
+ "type": "array",
319
+ "items": {
320
+ "type": "object",
321
+ "properties": {
322
+ "id": {
323
+ "type": "string",
324
+ "pattern": "^[a-z][a-z0-9-]*$"
325
+ },
326
+ "source": {
327
+ "type": "string"
328
+ },
329
+ "version": {
330
+ "type": "string"
331
+ }
332
+ },
333
+ "required": [
334
+ "id",
335
+ "source"
336
+ ],
337
+ "additionalProperties": false
338
+ }
339
+ },
340
+ "pluginTargets": {
341
+ "default": [],
342
+ "type": "array",
343
+ "items": {
344
+ "type": "string",
345
+ "pattern": "^[a-z][a-z0-9-]*$"
346
+ }
347
+ }
348
+ },
349
+ "required": [
350
+ "version",
351
+ "targets",
352
+ "features",
353
+ "extends",
354
+ "overrides",
355
+ "collaboration",
356
+ "plugins",
357
+ "pluginTargets"
358
+ ],
359
+ "additionalProperties": false,
360
+ "title": "agentsmesh.yaml",
361
+ "description": "AgentsMesh configuration file (agentsmesh.yaml / agentsmesh.local.yaml)"
362
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "propertyNames": {
5
+ "type": "string"
6
+ },
7
+ "additionalProperties": {
8
+ "type": "array",
9
+ "items": {
10
+ "type": "object",
11
+ "properties": {
12
+ "matcher": {
13
+ "type": "string",
14
+ "description": "Tool name pattern to match (e.g. \"Edit|Write\", \"Bash\", \"*\")"
15
+ },
16
+ "command": {
17
+ "type": "string",
18
+ "description": "Shell command to run"
19
+ },
20
+ "type": {
21
+ "description": "Hook entry type",
22
+ "type": "string",
23
+ "enum": [
24
+ "command",
25
+ "prompt"
26
+ ]
27
+ },
28
+ "timeout": {
29
+ "description": "Timeout in milliseconds",
30
+ "type": "number"
31
+ },
32
+ "prompt": {
33
+ "description": "Prompt text (when type is prompt)",
34
+ "type": "string"
35
+ }
36
+ },
37
+ "required": [
38
+ "matcher",
39
+ "command"
40
+ ],
41
+ "additionalProperties": false,
42
+ "description": "A single lifecycle hook entry"
43
+ }
44
+ },
45
+ "description": "AgentsMesh lifecycle hooks (.agentsmesh/hooks.yaml)",
46
+ "title": "agentsmesh-hooks.yaml"
47
+ }
@@ -0,0 +1,119 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "mcpServers": {
6
+ "default": {},
7
+ "description": "Map of server name to server configuration",
8
+ "type": "object",
9
+ "propertyNames": {
10
+ "type": "string"
11
+ },
12
+ "additionalProperties": {
13
+ "oneOf": [
14
+ {
15
+ "type": "object",
16
+ "properties": {
17
+ "description": {
18
+ "description": "Human-readable description of this MCP server",
19
+ "type": "string"
20
+ },
21
+ "type": {
22
+ "type": "string",
23
+ "const": "stdio",
24
+ "description": "stdio transport — launches a local process"
25
+ },
26
+ "env": {
27
+ "default": {},
28
+ "description": "Environment variables",
29
+ "type": "object",
30
+ "propertyNames": {
31
+ "type": "string"
32
+ },
33
+ "additionalProperties": {
34
+ "type": "string"
35
+ }
36
+ },
37
+ "command": {
38
+ "type": "string",
39
+ "description": "Executable to run"
40
+ },
41
+ "args": {
42
+ "default": [],
43
+ "description": "Command-line arguments",
44
+ "type": "array",
45
+ "items": {
46
+ "type": "string"
47
+ }
48
+ }
49
+ },
50
+ "required": [
51
+ "type",
52
+ "env",
53
+ "command",
54
+ "args"
55
+ ],
56
+ "additionalProperties": false,
57
+ "description": "stdio MCP server (local process)"
58
+ },
59
+ {
60
+ "type": "object",
61
+ "properties": {
62
+ "description": {
63
+ "description": "Human-readable description of this MCP server",
64
+ "type": "string"
65
+ },
66
+ "type": {
67
+ "type": "string",
68
+ "const": "url",
69
+ "description": "url transport — connects to a remote HTTP/SSE endpoint"
70
+ },
71
+ "env": {
72
+ "default": {},
73
+ "description": "Environment variables",
74
+ "type": "object",
75
+ "propertyNames": {
76
+ "type": "string"
77
+ },
78
+ "additionalProperties": {
79
+ "type": "string"
80
+ }
81
+ },
82
+ "url": {
83
+ "type": "string",
84
+ "format": "uri",
85
+ "description": "Remote endpoint URL"
86
+ },
87
+ "headers": {
88
+ "default": {},
89
+ "description": "HTTP headers",
90
+ "type": "object",
91
+ "propertyNames": {
92
+ "type": "string"
93
+ },
94
+ "additionalProperties": {
95
+ "type": "string"
96
+ }
97
+ }
98
+ },
99
+ "required": [
100
+ "type",
101
+ "env",
102
+ "url",
103
+ "headers"
104
+ ],
105
+ "additionalProperties": false,
106
+ "description": "URL-based MCP server (HTTP/SSE)"
107
+ }
108
+ ],
109
+ "description": "MCP server configuration"
110
+ }
111
+ }
112
+ },
113
+ "required": [
114
+ "mcpServers"
115
+ ],
116
+ "additionalProperties": false,
117
+ "description": "AgentsMesh MCP server config (.agentsmesh/mcp.json)",
118
+ "title": "agentsmesh-mcp.json"
119
+ }