agentsmesh 0.18.0 → 0.19.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 +368 -0
- package/README.md +28 -3
- package/dist/canonical.d.ts +31 -3
- package/dist/canonical.js +15989 -15361
- package/dist/canonical.js.map +1 -1
- package/dist/cli.js +183 -151
- package/dist/engine.d.ts +2 -2
- package/dist/engine.js +1368 -610
- package/dist/engine.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1368 -610
- package/dist/index.js.map +1 -1
- package/dist/{schema-B4PYQrZH.d.ts → schema-CLmR2JOb.d.ts} +17 -1
- package/dist/{target-descriptor-XZEis_Js.d.ts → target-descriptor-CkLWz3Xk.d.ts} +47 -16
- package/dist/targets.d.ts +3 -3
- package/dist/targets.js +472 -354
- package/dist/targets.js.map +1 -1
- package/package.json +8 -2
- package/schemas/agentsmesh.json +10 -12
- package/schemas/install-manifest.json +66 -0
- package/schemas/installs.json +154 -0
- package/schemas/mcp.json +3 -10
- package/schemas/pack.json +10 -0
- package/schemas/permissions.json +0 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentsmesh",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.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/index.js",
|
|
@@ -89,6 +89,7 @@
|
|
|
89
89
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
90
90
|
"@changesets/cli": "^2.27.12",
|
|
91
91
|
"@eslint/js": "^10.0.1",
|
|
92
|
+
"knip": "^5.66.0",
|
|
92
93
|
"@types/node": "^25.6.0",
|
|
93
94
|
"@typescript-eslint/eslint-plugin": "^8.58.1",
|
|
94
95
|
"@typescript-eslint/parser": "^8.58.1",
|
|
@@ -123,10 +124,15 @@
|
|
|
123
124
|
"test": "vitest run",
|
|
124
125
|
"test:contract": "vitest run tests/contract",
|
|
125
126
|
"flake:check": "tsx scripts/flake-check.ts",
|
|
127
|
+
"flake:watch": "tsx scripts/flake-check-watch.ts",
|
|
126
128
|
"test:watch": "vitest",
|
|
129
|
+
"pretest:coverage": "pnpm build",
|
|
127
130
|
"test:coverage": "COVERAGE=1 vitest run --coverage",
|
|
128
131
|
"test:e2e": "pnpm build && vitest run --config vitest.e2e.config.ts",
|
|
129
132
|
"lint": "eslint src tests",
|
|
133
|
+
"lint:dead": "knip",
|
|
134
|
+
"lint:dead:strict": "knip --strict",
|
|
135
|
+
"precommit": "pnpm typecheck && pnpm lint:dead && pnpm test:coverage && pnpm lint-staged",
|
|
130
136
|
"format": "prettier --write src/",
|
|
131
137
|
"format:check": "prettier --check src/",
|
|
132
138
|
"typecheck": "tsc --noEmit",
|
|
@@ -139,6 +145,6 @@
|
|
|
139
145
|
"publint": "publint",
|
|
140
146
|
"attw": "attw --pack . --profile esm-only",
|
|
141
147
|
"consumer-smoke": "./scripts/consumer-smoke.sh",
|
|
142
|
-
"install-global": "rm -f agentsmesh-*.tgz &&
|
|
148
|
+
"install-global": "rm -f agentsmesh-*.tgz && npm run build && npm pack && (npm uninstall -g agentsmesh 2>/dev/null || true) && npm install -g $(pwd)/agentsmesh-*.tgz"
|
|
143
149
|
}
|
|
144
150
|
}
|
package/schemas/agentsmesh.json
CHANGED
|
@@ -152,6 +152,15 @@
|
|
|
152
152
|
"zed"
|
|
153
153
|
]
|
|
154
154
|
},
|
|
155
|
+
"as": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"enum": [
|
|
158
|
+
"rules",
|
|
159
|
+
"commands",
|
|
160
|
+
"agents",
|
|
161
|
+
"skills"
|
|
162
|
+
]
|
|
163
|
+
},
|
|
155
164
|
"features": {
|
|
156
165
|
"type": "array",
|
|
157
166
|
"items": {
|
|
@@ -248,10 +257,6 @@
|
|
|
248
257
|
}
|
|
249
258
|
}
|
|
250
259
|
},
|
|
251
|
-
"required": [
|
|
252
|
-
"strategy",
|
|
253
|
-
"lock_features"
|
|
254
|
-
],
|
|
255
260
|
"additionalProperties": false
|
|
256
261
|
},
|
|
257
262
|
"conversions": {
|
|
@@ -404,14 +409,7 @@
|
|
|
404
409
|
}
|
|
405
410
|
},
|
|
406
411
|
"required": [
|
|
407
|
-
"version"
|
|
408
|
-
"targets",
|
|
409
|
-
"features",
|
|
410
|
-
"extends",
|
|
411
|
-
"overrides",
|
|
412
|
-
"collaboration",
|
|
413
|
-
"plugins",
|
|
414
|
-
"pluginTargets"
|
|
412
|
+
"version"
|
|
415
413
|
],
|
|
416
414
|
"additionalProperties": false,
|
|
417
415
|
"title": "agentsmesh.yaml",
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
"installed_at": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"minLength": 1
|
|
16
|
+
},
|
|
17
|
+
"extends_id": {
|
|
18
|
+
"anyOf": [
|
|
19
|
+
{
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"type": "null"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"source_type": {
|
|
28
|
+
"anyOf": [
|
|
29
|
+
{
|
|
30
|
+
"type": "string",
|
|
31
|
+
"enum": [
|
|
32
|
+
"anthropic-skill-pack",
|
|
33
|
+
"canonical-agentsmesh",
|
|
34
|
+
"tool-native",
|
|
35
|
+
"unknown"
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"type": "null"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"files": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"propertyNames": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"minLength": 1
|
|
48
|
+
},
|
|
49
|
+
"additionalProperties": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"pattern": "^sha256:[0-9a-f]{64}$"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"required": [
|
|
56
|
+
"name",
|
|
57
|
+
"source",
|
|
58
|
+
"installed_at",
|
|
59
|
+
"extends_id",
|
|
60
|
+
"source_type",
|
|
61
|
+
"files"
|
|
62
|
+
],
|
|
63
|
+
"additionalProperties": false,
|
|
64
|
+
"title": "agentsmesh-install-manifest.json",
|
|
65
|
+
"description": "Per-pack integrity manifest (.agentsmesh/packs/{name}/.agentsmesh-install-manifest.json) — install-time provenance + per-file sha256 map used by `uninstall` to detect locally-modified files before deleting."
|
|
66
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
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
|
+
"installs": {
|
|
10
|
+
"default": [],
|
|
11
|
+
"type": "array",
|
|
12
|
+
"items": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"name": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"minLength": 1
|
|
18
|
+
},
|
|
19
|
+
"source": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"minLength": 1
|
|
22
|
+
},
|
|
23
|
+
"version": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"source_kind": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"enum": [
|
|
29
|
+
"github",
|
|
30
|
+
"gitlab",
|
|
31
|
+
"git",
|
|
32
|
+
"local"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"features": {
|
|
36
|
+
"minItems": 1,
|
|
37
|
+
"type": "array",
|
|
38
|
+
"items": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"enum": [
|
|
41
|
+
"rules",
|
|
42
|
+
"commands",
|
|
43
|
+
"agents",
|
|
44
|
+
"skills",
|
|
45
|
+
"mcp",
|
|
46
|
+
"hooks",
|
|
47
|
+
"ignore",
|
|
48
|
+
"permissions"
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"pick": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"properties": {
|
|
55
|
+
"skills": {
|
|
56
|
+
"type": "array",
|
|
57
|
+
"items": {
|
|
58
|
+
"type": "string"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"commands": {
|
|
62
|
+
"type": "array",
|
|
63
|
+
"items": {
|
|
64
|
+
"type": "string"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"rules": {
|
|
68
|
+
"type": "array",
|
|
69
|
+
"items": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"agents": {
|
|
74
|
+
"type": "array",
|
|
75
|
+
"items": {
|
|
76
|
+
"type": "string"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"additionalProperties": false
|
|
81
|
+
},
|
|
82
|
+
"target": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"enum": [
|
|
85
|
+
"aider",
|
|
86
|
+
"amazon-q",
|
|
87
|
+
"amp",
|
|
88
|
+
"antigravity",
|
|
89
|
+
"augment-code",
|
|
90
|
+
"claude-code",
|
|
91
|
+
"cline",
|
|
92
|
+
"codex-cli",
|
|
93
|
+
"continue",
|
|
94
|
+
"copilot",
|
|
95
|
+
"crush",
|
|
96
|
+
"cursor",
|
|
97
|
+
"deepagents-cli",
|
|
98
|
+
"factory-droid",
|
|
99
|
+
"gemini-cli",
|
|
100
|
+
"goose",
|
|
101
|
+
"jules",
|
|
102
|
+
"junie",
|
|
103
|
+
"kilo-code",
|
|
104
|
+
"kiro",
|
|
105
|
+
"opencode",
|
|
106
|
+
"pi-agent",
|
|
107
|
+
"qwen-code",
|
|
108
|
+
"replit-agent",
|
|
109
|
+
"roo-code",
|
|
110
|
+
"rovodev",
|
|
111
|
+
"trae",
|
|
112
|
+
"warp",
|
|
113
|
+
"windsurf",
|
|
114
|
+
"zed"
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
"path": {
|
|
118
|
+
"type": "string"
|
|
119
|
+
},
|
|
120
|
+
"paths": {
|
|
121
|
+
"minItems": 1,
|
|
122
|
+
"type": "array",
|
|
123
|
+
"items": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"minLength": 1
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"as": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"enum": [
|
|
131
|
+
"rules",
|
|
132
|
+
"commands",
|
|
133
|
+
"agents",
|
|
134
|
+
"skills"
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"required": [
|
|
139
|
+
"name",
|
|
140
|
+
"source",
|
|
141
|
+
"source_kind",
|
|
142
|
+
"features"
|
|
143
|
+
],
|
|
144
|
+
"additionalProperties": false
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"required": [
|
|
149
|
+
"version"
|
|
150
|
+
],
|
|
151
|
+
"additionalProperties": false,
|
|
152
|
+
"title": "agentsmesh-installs.yaml",
|
|
153
|
+
"description": "AgentsMesh install manifest (.agentsmesh/installs.yaml) — tracks every installed pack so `--sync` can replay them post-clone."
|
|
154
|
+
}
|
package/schemas/mcp.json
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"type": "object",
|
|
4
4
|
"properties": {
|
|
5
5
|
"mcpServers": {
|
|
6
|
-
"default": {},
|
|
7
6
|
"description": "Map of server name to server configuration",
|
|
7
|
+
"default": {},
|
|
8
8
|
"type": "object",
|
|
9
9
|
"propertyNames": {
|
|
10
10
|
"type": "string"
|
|
@@ -49,9 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"required": [
|
|
51
51
|
"type",
|
|
52
|
-
"
|
|
53
|
-
"command",
|
|
54
|
-
"args"
|
|
52
|
+
"command"
|
|
55
53
|
],
|
|
56
54
|
"additionalProperties": false,
|
|
57
55
|
"description": "stdio MCP server (local process)"
|
|
@@ -98,9 +96,7 @@
|
|
|
98
96
|
},
|
|
99
97
|
"required": [
|
|
100
98
|
"type",
|
|
101
|
-
"
|
|
102
|
-
"url",
|
|
103
|
-
"headers"
|
|
99
|
+
"url"
|
|
104
100
|
],
|
|
105
101
|
"additionalProperties": false,
|
|
106
102
|
"description": "URL-based MCP server (HTTP/SSE)"
|
|
@@ -110,9 +106,6 @@
|
|
|
110
106
|
}
|
|
111
107
|
}
|
|
112
108
|
},
|
|
113
|
-
"required": [
|
|
114
|
-
"mcpServers"
|
|
115
|
-
],
|
|
116
109
|
"additionalProperties": false,
|
|
117
110
|
"description": "AgentsMesh MCP server config (.agentsmesh/mcp.json)",
|
|
118
111
|
"title": "agentsmesh-mcp.json"
|
package/schemas/pack.json
CHANGED
package/schemas/permissions.json
CHANGED