agentsmesh 0.2.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 +61 -0
- package/LICENSE +21 -0
- package/README.md +222 -0
- package/dist/cli.js +11942 -0
- package/dist/cli.js.map +1 -0
- package/package.json +107 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- bda10c7: Initial public release of AgentsBridge v0.1.0.
|
|
8
|
+
|
|
9
|
+
One canonical `.agentsbridge/` source synced to Claude Code, Cursor, GitHub Copilot, Continue, Junie, Gemini CLI, Cline, Codex CLI, and Windsurf. Includes `init`, `generate`, `import`, `diff`, `lint`, `watch`, `check`, `merge`, `matrix`, and `install` CLI commands with full support for rules, commands, agents, skills, MCP servers, hooks, ignore patterns, permissions, local/remote extends, link rebasing, and lock-file-based collaboration.
|
|
10
|
+
|
|
11
|
+
All notable changes to this project will be documented in this file.
|
|
12
|
+
|
|
13
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
14
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
15
|
+
|
|
16
|
+
## [0.1.0] - 2026-03-25
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
**CLI commands**
|
|
21
|
+
|
|
22
|
+
- `init` — Scaffold `agentsbridge.yaml`, `.agentsbridge/rules/_root.md`, and `agentsbridge.local.yaml`; auto-detect existing AI tool configs in the project
|
|
23
|
+
- `generate` — Sync canonical `.agentsbridge/` to target tool configs; supports `--targets`, `--dry-run`, `--force`, `--refresh-cache`, `--no-cache`
|
|
24
|
+
- `import --from <target>` — Import existing tool configs into canonical form; supports all 9 targets
|
|
25
|
+
- `diff --targets` — Show unified diff of what the next `generate` would change
|
|
26
|
+
- `lint --targets` — Validate canonical files and target-specific constraints with per-feature diagnostics
|
|
27
|
+
- `watch --targets` — Watch `.agentsbridge/` and regenerate on change with 300 ms debounce; self-generated lock file writes do not retrigger the pipeline
|
|
28
|
+
- `check` — Verify generated files match the lock file; designed for CI drift detection
|
|
29
|
+
- `merge` — Resolve `.agentsbridge/.lock` conflicts after a git merge
|
|
30
|
+
- `matrix --targets --verbose` — Show the feature-target compatibility table
|
|
31
|
+
- `install` — Install skills, rules, commands, or agents from a local path or remote GitHub/GitLab/git source; supports `--as`, `--sync`, `--dry-run`, `--force`, `--path`, `--target`, `--name`, `--extends`
|
|
32
|
+
|
|
33
|
+
**Supported targets**
|
|
34
|
+
|
|
35
|
+
Claude Code, Cursor, GitHub Copilot, Continue, Junie, Gemini CLI, Cline, Codex CLI, Windsurf
|
|
36
|
+
|
|
37
|
+
**Canonical features**
|
|
38
|
+
|
|
39
|
+
rules, commands, agents, skills, mcp, hooks, ignore, permissions
|
|
40
|
+
|
|
41
|
+
**Config**
|
|
42
|
+
|
|
43
|
+
- `agentsbridge.yaml` — project config with targets, features, and extends
|
|
44
|
+
- `agentsbridge.local.yaml` — local-only overrides for targets, features, and personal extends (gitignored)
|
|
45
|
+
- `.agentsbridge/` — canonical source directory (source of truth)
|
|
46
|
+
- `.agentsbridge/.lock` — generated-state lock file for `check` and `merge`
|
|
47
|
+
|
|
48
|
+
**Extends**
|
|
49
|
+
|
|
50
|
+
- Local extends (`local:path` or relative path) — merge shared configs from a relative directory
|
|
51
|
+
- Remote extends (`github:org/repo@tag`, `gitlab:group/repo@tag`, `git+ssh://...`) — fetch and cache in `~/.agentsbridge/cache/`
|
|
52
|
+
|
|
53
|
+
**Link rebasing**
|
|
54
|
+
|
|
55
|
+
Internal `.agentsbridge/` file references are rewritten to target-relative paths on `generate` and restored to canonical form on `import`, so supporting files and cross-skill links remain correct across all targets
|
|
56
|
+
|
|
57
|
+
**Collaboration**
|
|
58
|
+
|
|
59
|
+
- Lock file tracks checksums for all canonical features and extends
|
|
60
|
+
- `check` integrates with CI to catch generated file drift
|
|
61
|
+
- `merge` recovers from three-way lock file conflicts after `git merge`
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 AgentsBridge Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
# AgentsBridge
|
|
2
|
+
|
|
3
|
+
[](https://github.com/sampleXbro/agentsbridge/actions/workflows/ci.yml)
|
|
4
|
+
[](https://www.npmjs.com/package/agentsbridge)
|
|
5
|
+
[](https://codecov.io/gh/sampleXbro/agentsbridge)
|
|
6
|
+
[](LICENSE)
|
|
7
|
+
[](https://www.typescriptlang.org/)
|
|
8
|
+
[](https://nodejs.org/)
|
|
9
|
+
[](https://www.npmjs.com/package/agentsbridge)
|
|
10
|
+
|
|
11
|
+
AgentsBridge gives you one canonical AI config in `.agentsbridge/` and syncs it to the tools your team actually uses: Claude Code, Cursor, Copilot, Continue, Junie, Gemini CLI, Cline, Codex CLI, and Windsurf.
|
|
12
|
+
|
|
13
|
+
The point is simple: keep one source of truth for rules, commands, agents, skills, MCP, hooks, ignore patterns, and permissions, then generate the right format for each tool without hand-editing nine different config layouts.
|
|
14
|
+
|
|
15
|
+
## Why it is useful
|
|
16
|
+
|
|
17
|
+
- One canonical config instead of tool-by-tool drift
|
|
18
|
+
- Import existing configs before you standardize anything
|
|
19
|
+
- Generate back out to multiple tools from the same source
|
|
20
|
+
- Keep team changes safe with lock files, drift checks, and merge recovery
|
|
21
|
+
- See support clearly with a built-in compatibility matrix
|
|
22
|
+
- Share base configs across repos with `extends`
|
|
23
|
+
- Keep personal preferences local with `agentsbridge.local.yaml`
|
|
24
|
+
- Preserve links and supporting files when content moves between targets
|
|
25
|
+
|
|
26
|
+
## What ships today
|
|
27
|
+
|
|
28
|
+
AgentsBridge already covers the pieces most teams care about in practice:
|
|
29
|
+
|
|
30
|
+
- Rules, commands, agents, skills, MCP servers, hooks, ignore patterns, and permissions
|
|
31
|
+
- Bidirectional import/generate flow across 9 supported targets
|
|
32
|
+
- `diff`, `lint`, `watch`, `check`, `merge`, and `matrix` commands
|
|
33
|
+
- Local overrides with `agentsbridge.local.yaml`
|
|
34
|
+
- Remote and local `extends` support
|
|
35
|
+
- Lock file based collaboration for generated state
|
|
36
|
+
- Link rebasing so internal file references still make sense after generation
|
|
37
|
+
- Target-specific conversions where native support does not exist
|
|
38
|
+
|
|
39
|
+
The strongest parts of the library right now are the operational pieces competitors usually skip: permissions syncing, lock file handling, diffing, linting, watch mode, local overrides, link rebasing, and the compatibility matrix.
|
|
40
|
+
|
|
41
|
+
## Supported tools
|
|
42
|
+
|
|
43
|
+
| Tool | Current support |
|
|
44
|
+
| --- | --- |
|
|
45
|
+
| Claude Code | Native rules, commands, agents, skills, MCP, hooks, ignore, permissions |
|
|
46
|
+
| Cursor | Native rules, commands, agents, skills, MCP, hooks, ignore; partial permissions |
|
|
47
|
+
| Copilot | Native rules, commands, agents, skills; partial hooks |
|
|
48
|
+
| Continue | Native rules and MCP; commands via embedded invokable prompt rules; skills via embedded skill directories |
|
|
49
|
+
| Junie | Partial rules via a single project guidelines file; embedded skills; native MCP and ignore |
|
|
50
|
+
| Gemini CLI | Native rules, commands, skills, MCP, ignore; partial hooks; agents via projected skills |
|
|
51
|
+
| Cline | Native rules, workflows-from-commands, skills, MCP, ignore; agents via projected skills |
|
|
52
|
+
| Codex CLI | Native rules, skills, MCP; commands and agents via projected skills |
|
|
53
|
+
| Windsurf | Native rules, workflows-from-commands, skills, ignore; agents via projected skills |
|
|
54
|
+
|
|
55
|
+
Embedded support is deliberate, not a hacky one-way export. For example, Codex commands are round-tripped through reserved skills, and projected agent-skills keep enough metadata for `import --from ...` to restore canonical agents instead of flattening them into plain skills.
|
|
56
|
+
|
|
57
|
+
## Install
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
pnpm add -D agentsbridge
|
|
61
|
+
# or
|
|
62
|
+
npm install -D agentsbridge
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Requires Node.js 20+. The CLI is available as `agentsbridge` and `agbr`.
|
|
66
|
+
|
|
67
|
+
## Quick start
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
# create the canonical scaffold
|
|
71
|
+
agentsbridge init
|
|
72
|
+
|
|
73
|
+
# sync .agentsbridge/ to the configured targets
|
|
74
|
+
agentsbridge generate
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
If the repo already has tool-specific config, import it first:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
agentsbridge import --from cursor
|
|
81
|
+
agentsbridge generate
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Canonical layout
|
|
85
|
+
|
|
86
|
+
```text
|
|
87
|
+
.agentsbridge/
|
|
88
|
+
rules/_root.md
|
|
89
|
+
rules/*.md
|
|
90
|
+
commands/*.md
|
|
91
|
+
agents/*.md
|
|
92
|
+
skills/{name}/SKILL.md
|
|
93
|
+
mcp.json
|
|
94
|
+
permissions.yaml
|
|
95
|
+
hooks.yaml
|
|
96
|
+
ignore
|
|
97
|
+
agentsbridge.yaml
|
|
98
|
+
agentsbridge.local.yaml
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
What each part does:
|
|
102
|
+
|
|
103
|
+
- `rules/`: shared instructions, including the required root rule, target scoping, globs, and optional trigger modes
|
|
104
|
+
- `commands/`: reusable slash-command style prompts
|
|
105
|
+
- `agents/`: custom subagents with tools, model, hooks, MCP, skills, and memory
|
|
106
|
+
- `skills/`: skills plus supporting files
|
|
107
|
+
- `mcp.json`: MCP server definitions
|
|
108
|
+
- `permissions.yaml`: allow/deny lists
|
|
109
|
+
- `hooks.yaml`: lifecycle hooks
|
|
110
|
+
- `ignore`: shared ignore patterns
|
|
111
|
+
- `agentsbridge.local.yaml`: local-only overrides that should not be committed
|
|
112
|
+
|
|
113
|
+
## CLI commands
|
|
114
|
+
|
|
115
|
+
Global flags:
|
|
116
|
+
|
|
117
|
+
- `--help`
|
|
118
|
+
- `--version`
|
|
119
|
+
- `--verbose`
|
|
120
|
+
|
|
121
|
+
| Command | What it does | Supported flags |
|
|
122
|
+
| --- | --- | --- |
|
|
123
|
+
| `init` | Create `agentsbridge.yaml`, `.agentsbridge/`, `agentsbridge.local.yaml`, and update `.gitignore` | `--yes` |
|
|
124
|
+
| `generate` | Generate target files from `.agentsbridge/` | `--targets`, `--dry-run`, `--check`, `--force`, `--refresh-cache`, `--no-cache` |
|
|
125
|
+
| `import` | Import an existing tool config into `.agentsbridge/` | `--from` |
|
|
126
|
+
| `install` | Install resources from a local/remote source and materialize them as packs or extends | `--sync`, `--dry-run`, `--force`, `--path`, `--target`, `--as`, `--name`, `--extends` |
|
|
127
|
+
| `diff` | Show what the next `generate` would change without writing files | `--targets` |
|
|
128
|
+
| `lint` | Validate canonical files against target constraints | `--targets` |
|
|
129
|
+
| `watch` | Watch canonical files and regenerate on change | `--targets` |
|
|
130
|
+
| `check` | Verify the canonical state still matches the lock file | none |
|
|
131
|
+
| `merge` | Resolve `.agentsbridge/.lock` merge conflicts | none |
|
|
132
|
+
| `matrix` | Show feature support for the current config | `--targets`, `--verbose` |
|
|
133
|
+
| `help` | Show command help | n/a (also via global `--help`) |
|
|
134
|
+
| `version` | Show CLI/library version | n/a (also via global `--version`) |
|
|
135
|
+
|
|
136
|
+
Examples:
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
agentsbridge init --yes
|
|
140
|
+
agentsbridge generate --targets cursor,claude-code
|
|
141
|
+
agentsbridge generate --dry-run
|
|
142
|
+
agentsbridge generate --check
|
|
143
|
+
agentsbridge generate --refresh-cache
|
|
144
|
+
agentsbridge import --from codex-cli
|
|
145
|
+
agentsbridge install github:org/repo@main --path skills --as skills
|
|
146
|
+
agentsbridge diff --targets windsurf
|
|
147
|
+
agentsbridge lint
|
|
148
|
+
agentsbridge watch
|
|
149
|
+
agentsbridge check
|
|
150
|
+
agentsbridge merge
|
|
151
|
+
agentsbridge matrix --verbose
|
|
152
|
+
agentsbridge --help
|
|
153
|
+
agentsbridge --version
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
## Features worth knowing about
|
|
157
|
+
|
|
158
|
+
- `extends` can pull shared config from a local folder, GitHub release, GitLab repo, or generic git remote
|
|
159
|
+
- `agentsbridge.local.yaml` lets one developer narrow targets or disable conversions without changing the shared project config
|
|
160
|
+
- Conversion controls let you turn off projected command-to-skill or agent-to-skill mappings per target
|
|
161
|
+
- `watch` ignores its own lock-file writes, so generation does not loop on itself
|
|
162
|
+
- `check` and `merge` are built for team workflows, not just solo local use
|
|
163
|
+
|
|
164
|
+
Example `extends` config:
|
|
165
|
+
|
|
166
|
+
```yaml
|
|
167
|
+
extends:
|
|
168
|
+
- source: ../shared-ai-config
|
|
169
|
+
features: [rules, commands]
|
|
170
|
+
- source: github:my-org/ai-config@v1.0.0
|
|
171
|
+
features: [rules, permissions]
|
|
172
|
+
- source: gitlab:team/platform/ai-config@v2.3.1
|
|
173
|
+
features: [rules]
|
|
174
|
+
- source: git+ssh://git@git.example.com/platform/ai-config.git#main
|
|
175
|
+
features: [rules, commands, permissions]
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
## Roadmap
|
|
179
|
+
|
|
180
|
+
This section is planned work, not current functionality.
|
|
181
|
+
|
|
182
|
+
### Tier 1
|
|
183
|
+
|
|
184
|
+
- Global mode for user-level config outside a single repo
|
|
185
|
+
- Programmatic API for `generate`, `lint`, and `diff`
|
|
186
|
+
- More targets: Roo Code, Kilo Code, Goose, Kiro, OpenCode, Factory Droid, Google Antigravity
|
|
187
|
+
- Homebrew distribution and a single binary build
|
|
188
|
+
- `--json` output on command results
|
|
189
|
+
- Dedicated `.gitignore` command
|
|
190
|
+
- MCP server so agents can inspect and manage their own config
|
|
191
|
+
|
|
192
|
+
### Tier 2
|
|
193
|
+
|
|
194
|
+
- `.gitattributes` auto-generation for generated files
|
|
195
|
+
- `convert` for direct tool-to-tool conversion
|
|
196
|
+
- Ephemeral generation mode (`--stdout`, temp output)
|
|
197
|
+
- Plugin system for custom targets
|
|
198
|
+
- JSON Schema for `agentsbridge.yaml`
|
|
199
|
+
|
|
200
|
+
### Tier 3
|
|
201
|
+
|
|
202
|
+
- Community registry for shared rule sets and configs
|
|
203
|
+
- `migrate --from <tool>` for zero-friction imports from other AI config tools
|
|
204
|
+
- IDE extension for VS Code and JetBrains
|
|
205
|
+
|
|
206
|
+
## Development commands
|
|
207
|
+
|
|
208
|
+
```bash
|
|
209
|
+
pnpm build
|
|
210
|
+
pnpm test
|
|
211
|
+
pnpm test:watch
|
|
212
|
+
pnpm test:coverage
|
|
213
|
+
pnpm test:e2e
|
|
214
|
+
pnpm lint
|
|
215
|
+
pnpm typecheck
|
|
216
|
+
pnpm format
|
|
217
|
+
pnpm format:check
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
## Contributing
|
|
221
|
+
|
|
222
|
+
Keep changes small, verify them, and prefer updating the canonical `.agentsbridge/` source over editing generated target files by hand.
|