agentsmesh 0.3.1 → 0.5.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,27 @@
1
1
  {
2
2
  "name": "agentsmesh",
3
- "version": "0.3.1",
3
+ "version": "0.5.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
6
  "main": "./dist/cli.js",
7
7
  "author": "sampleXbro",
8
8
  "exports": {
9
- ".": "./dist/cli.js"
9
+ ".": "./dist/cli.js",
10
+ "./engine": {
11
+ "types": "./dist/engine.d.ts",
12
+ "import": "./dist/engine.js",
13
+ "default": "./dist/engine.js"
14
+ },
15
+ "./canonical": {
16
+ "types": "./dist/canonical.d.ts",
17
+ "import": "./dist/canonical.js",
18
+ "default": "./dist/canonical.js"
19
+ },
20
+ "./targets": {
21
+ "types": "./dist/targets.d.ts",
22
+ "import": "./dist/targets.js",
23
+ "default": "./dist/targets.js"
24
+ }
10
25
  },
11
26
  "bin": {
12
27
  "agentsmesh": "./dist/cli.js",
@@ -60,6 +75,7 @@
60
75
  },
61
76
  "files": [
62
77
  "dist",
78
+ "schemas",
63
79
  "README.md",
64
80
  "CHANGELOG.md",
65
81
  "LICENSE"
@@ -77,6 +93,7 @@
77
93
  "lint-staged": "^16.4.0",
78
94
  "prettier": "^3.8.2",
79
95
  "tsup": "^8.5.1",
96
+ "tsx": "^4.21.0",
80
97
  "typescript": "^5.9.3",
81
98
  "vitest": "^4.1.4"
82
99
  },
@@ -93,6 +110,8 @@
93
110
  "build": "tsup",
94
111
  "pretest": "pnpm build",
95
112
  "test": "vitest run",
113
+ "test:contract": "vitest run tests/contract",
114
+ "flake:check": "tsx scripts/flake-check.ts",
96
115
  "test:watch": "vitest",
97
116
  "test:coverage": "vitest run --coverage",
98
117
  "test:e2e": "pnpm build && vitest run --config vitest.e2e.config.ts",
@@ -100,8 +119,12 @@
100
119
  "format": "prettier --write src/",
101
120
  "format:check": "prettier --check src/",
102
121
  "typecheck": "tsc --noEmit",
122
+ "schemas:generate": "tsx scripts/generate-schemas.ts",
123
+ "matrix:generate": "tsx scripts/render-support-matrix.ts",
124
+ "matrix:verify": "tsx scripts/render-support-matrix.ts --verify",
103
125
  "changeset": "changeset",
104
126
  "version": "changeset version",
105
- "release": "pnpm build && changeset publish"
127
+ "release": "pnpm build && changeset publish",
128
+ "install-global": "pnpm build && pnpm pack && pnpm add -g $(pwd)/agentsmesh-$(node -p 'require(\"./package.json\").version').tgz"
106
129
  }
107
130
  }
@@ -0,0 +1,248 @@
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
+ "type": "boolean"
211
+ }
212
+ },
213
+ "additionalProperties": false
214
+ },
215
+ "agents_to_skills": {
216
+ "type": "object",
217
+ "properties": {
218
+ "gemini-cli": {
219
+ "type": "boolean"
220
+ },
221
+ "cline": {
222
+ "type": "boolean"
223
+ },
224
+ "codex-cli": {
225
+ "type": "boolean"
226
+ },
227
+ "windsurf": {
228
+ "type": "boolean"
229
+ }
230
+ },
231
+ "additionalProperties": false
232
+ }
233
+ },
234
+ "additionalProperties": false
235
+ }
236
+ },
237
+ "required": [
238
+ "version",
239
+ "targets",
240
+ "features",
241
+ "extends",
242
+ "overrides",
243
+ "collaboration"
244
+ ],
245
+ "additionalProperties": false,
246
+ "title": "agentsmesh.yaml",
247
+ "description": "AgentsMesh configuration file (agentsmesh.yaml / agentsmesh.local.yaml)"
248
+ }
@@ -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
+ }
@@ -0,0 +1,131 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "name": {
6
+ "type": "string",
7
+ "minLength": 1
8
+ },
9
+ "source": {
10
+ "type": "string",
11
+ "minLength": 1
12
+ },
13
+ "version": {
14
+ "type": "string"
15
+ },
16
+ "source_kind": {
17
+ "type": "string",
18
+ "enum": [
19
+ "github",
20
+ "gitlab",
21
+ "git",
22
+ "local"
23
+ ]
24
+ },
25
+ "installed_at": {
26
+ "type": "string"
27
+ },
28
+ "updated_at": {
29
+ "type": "string"
30
+ },
31
+ "features": {
32
+ "minItems": 1,
33
+ "type": "array",
34
+ "items": {
35
+ "type": "string",
36
+ "enum": [
37
+ "rules",
38
+ "commands",
39
+ "agents",
40
+ "skills",
41
+ "mcp",
42
+ "hooks",
43
+ "ignore",
44
+ "permissions"
45
+ ]
46
+ }
47
+ },
48
+ "pick": {
49
+ "type": "object",
50
+ "properties": {
51
+ "skills": {
52
+ "type": "array",
53
+ "items": {
54
+ "type": "string"
55
+ }
56
+ },
57
+ "commands": {
58
+ "type": "array",
59
+ "items": {
60
+ "type": "string"
61
+ }
62
+ },
63
+ "rules": {
64
+ "type": "array",
65
+ "items": {
66
+ "type": "string"
67
+ }
68
+ },
69
+ "agents": {
70
+ "type": "array",
71
+ "items": {
72
+ "type": "string"
73
+ }
74
+ }
75
+ },
76
+ "additionalProperties": false
77
+ },
78
+ "target": {
79
+ "type": "string",
80
+ "enum": [
81
+ "claude-code",
82
+ "cursor",
83
+ "copilot",
84
+ "continue",
85
+ "junie",
86
+ "kiro",
87
+ "gemini-cli",
88
+ "cline",
89
+ "codex-cli",
90
+ "windsurf",
91
+ "antigravity",
92
+ "roo-code"
93
+ ]
94
+ },
95
+ "path": {
96
+ "type": "string"
97
+ },
98
+ "paths": {
99
+ "minItems": 1,
100
+ "type": "array",
101
+ "items": {
102
+ "type": "string",
103
+ "minLength": 1
104
+ }
105
+ },
106
+ "as": {
107
+ "type": "string",
108
+ "enum": [
109
+ "rules",
110
+ "commands",
111
+ "agents",
112
+ "skills"
113
+ ]
114
+ },
115
+ "content_hash": {
116
+ "type": "string"
117
+ }
118
+ },
119
+ "required": [
120
+ "name",
121
+ "source",
122
+ "source_kind",
123
+ "installed_at",
124
+ "updated_at",
125
+ "features",
126
+ "content_hash"
127
+ ],
128
+ "additionalProperties": false,
129
+ "title": "agentsmesh-pack.yaml",
130
+ "description": "AgentsMesh pack metadata (.agentsmesh/packs/{name}/pack.yaml)"
131
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "allow": {
6
+ "default": [],
7
+ "description": "Tool calls to allow without confirmation",
8
+ "type": "array",
9
+ "items": {
10
+ "type": "string"
11
+ }
12
+ },
13
+ "deny": {
14
+ "default": [],
15
+ "description": "Tool calls to always deny",
16
+ "type": "array",
17
+ "items": {
18
+ "type": "string"
19
+ }
20
+ },
21
+ "ask": {
22
+ "default": [],
23
+ "description": "Tool calls to confirm before running",
24
+ "type": "array",
25
+ "items": {
26
+ "type": "string"
27
+ }
28
+ }
29
+ },
30
+ "required": [
31
+ "allow",
32
+ "deny",
33
+ "ask"
34
+ ],
35
+ "additionalProperties": false,
36
+ "description": "AgentsMesh permissions config (.agentsmesh/permissions.yaml)",
37
+ "title": "agentsmesh-permissions.yaml"
38
+ }