@dallay/agentsync 1.14.2 → 1.14.4

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/README.md CHANGED
@@ -1,132 +1,150 @@
1
1
  # @dallay/agentsync
2
2
 
3
- Sync AI agent configurations across multiple coding assistants using symbolic links.
3
+ [![npm version](https://img.shields.io/npm/v/@dallay/agentsync.svg)](https://www.npmjs.com/package/@dallay/agentsync)
4
+ [![license](https://img.shields.io/npm/l/@dallay/agentsync.svg)](https://github.com/dallay/agentsync/blob/main/LICENSE)
5
+ [![repository](https://img.shields.io/badge/repo-dallay%2Fagentsync-blue)](https://github.com/dallay/agentsync)
4
6
 
5
- [![npm version](https://img.shields.io/npm/v/@dallay/agentsync.svg)](https://www.npmjs.com/package/@dallay/agentsync)
6
- [![license](https://img.shields.io/npm/l/@dallay/agentsync.svg)](./LICENSE)
7
- [![repo](https://img.shields.io/badge/repo-dallay%2Fagentsync-blue)](https://github.com/dallay/agentsync)
7
+ **Version:** 1.14.2
8
+ **License:** MIT
8
9
 
9
- Purpose
10
- -------
11
- agentsync helps you keep AI agent configuration files synchronized across multiple AI coding assistants (e.g. Copilot, Claude, Gemini) by managing symbolic links and a simple CLI.
10
+ Effortlessly synchronize AI agent configurations across tools like Copilot, Claude, Cursor, and other MCP-compatible servers using symbolic links and an intuitive CLI.
12
11
 
13
- Quick links
14
- -----------
15
- - Repository: https://github.com/dallay/agentsync
16
- - Issues: https://github.com/dallay/agentsync/issues
12
+ 🌟 **[Explore the Full Documentation Here](https://dallay.github.io/agentsync/)**
17
13
 
18
- Installation
19
- ------------
20
- Install locally with pnpm (recommended):
14
+ ---
21
15
 
22
- pnpm add @dallay/agentsync
16
+ ## Key Features
23
17
 
24
- Run without installing with pnpm dlx:
18
+ - **Simple CLI**: Manage symbolic links with minimal setup.
19
+ - **Multi-assistant support**: Compatible across Copilot, Claude, Gemini, and more.
20
+ - **Cross-platform binaries**: Available for Linux, MacOS, and Windows.
21
+ - **Node.js integration**: Use programmatically within your applications.
25
22
 
26
- pnpm dlx @dallay/agentsync --help
23
+ ---
27
24
 
28
- Or with npx:
25
+ ## 🚀 Installation
29
26
 
30
- npx @dallay/agentsync --help
27
+ Make sure you have Node.js (>=18) installed.
31
28
 
32
- CLI Usage
33
- ---------
34
- The package exposes a CLI executable named `agentsync`.
29
+ ### Using `pnpm` (recommended):
30
+ ```bash
31
+ pnpm install -g @dallay/agentsync
32
+ ```
35
33
 
36
- Basic help:
34
+ ### Using `npm`:
35
+ ```bash
36
+ npm install -g @dallay/agentsync
37
+ ```
37
38
 
38
- agentsync --help
39
+ ### Using `yarn`:
40
+ ```bash
41
+ yarn global add @dallay/agentsync
42
+ ```
39
43
 
40
- Common workflows:
41
-
42
- - Create or update symlinks from a central config directory to target assistant config locations.
43
- - Validate existing symlinks and report missing or broken links.
44
- - Export or import agent configurations.
45
-
46
- Configuration
47
- -------------
48
- agentsync uses a small configuration file to define sources and targets for synchronization. Example (adjust to your environment):
49
-
50
- ```json
51
- {
52
- "sources": [
53
- "~/.config/agents/common",
54
- "./shared-agent-configs"
55
- ],
56
- "targets": {
57
- "copilot": "~/.config/copilot/agents",
58
- "claude": "~/.config/claude/agents",
59
- "gemini": "~/.config/gemini/agents"
60
- },
61
- "options": {
62
- "dryRun": false,
63
- "force": false
64
- }
65
- }
44
+ ### Using `bun`:
45
+ ```bash
46
+ bun add -g @dallay/agentsync
66
47
  ```
67
48
 
68
- Programmatic usage
69
- -------------------
70
- This package can be executed as a CLI. If you need to call core functionality from Node, require the package entry point and use the public functions exported from `lib/` (build artifacts). Generate typed API docs with TypeDoc if you want accurate signatures.
49
+ Verify installation:
50
+ ```bash
51
+ agentsync --help
52
+ ```
53
+
54
+ ---
55
+
56
+ ## 🛠️ Usage
57
+
58
+ ### Managing Configurations
71
59
 
72
- Example (run CLI programmatically):
60
+ #### Sync Configurations:
61
+ Run the following to create symbolic links across your AI coding assistants:
62
+ ```bash
63
+ agentsync apply
64
+ ```
73
65
 
74
- ```js
75
- // run the CLI handler as a programmatic entry point
76
- const { main } = require('@dallay/agentsync');
77
- main(process.argv).catch(err => {
78
- console.error(err);
79
- process.exit(1);
80
- });
66
+ #### Clean Configurations:
67
+ Remove previously created symbolic links:
68
+ ```bash
69
+ agentsync clean
81
70
  ```
82
71
 
83
- Note: Replace the snippet above with the real exported function names if your code exposes a different API. Prefer inspecting `lib/index.js` or generating TypeDoc output to document precise signatures.
72
+ 🎯 **Example Workflows**:
73
+
74
+ - **Programmatic Usage in Node.js**:
75
+ ```javascript
76
+ const { main } = require('@dallay/agentsync');
77
+
78
+ main(['apply']).catch((error) => {
79
+ console.error(error);
80
+ process.exit(1);
81
+ });
82
+ ```
83
+
84
+ - **Integrate with npm scripts**:
85
+ Add configuration syncing to your npm scripts to automate process workflows.
86
+ For example, in your `package.json`:
87
+ ```json
88
+ {
89
+ "scripts": {
90
+ "precommit": "pnpm exec agentsync apply --dry-run",
91
+ "prepare": "pnpm exec agentsync apply"
92
+ }
93
+ }
94
+ ```
95
+
96
+ - For complex workflows, see the [detailed API documentation](https://dallay.github.io/agentsync/).
97
+
98
+ ---
99
+
100
+ ## 👷 Development
101
+
102
+ ### Prerequisites
103
+ - [pnpm](https://pnpm.io/): Dependency manager.
104
+ - [Node.js](https://nodejs.org/) >= 18.
105
+
106
+ ### Steps
107
+ 1. Clone the repository:
108
+ ```bash
109
+ git clone https://github.com/dallay/agentsync.git
110
+ cd agentsync
111
+ ```
84
112
 
85
- Development
86
- -----------
87
- Build and type-check (this project uses TypeScript):
113
+ 2. Install dependencies:
114
+ ```bash
115
+ pnpm install
116
+ ```
88
117
 
89
- pnpm install
90
- pnpm run typecheck
91
- pnpm run build
118
+ 3. Build:
119
+ ```bash
120
+ pnpm run build
121
+ ```
92
122
 
93
- Useful scripts defined in package.json:
123
+ 4. Run type checks:
124
+ ```bash
125
+ pnpm run typecheck
126
+ ```
94
127
 
95
- - typecheck — tsc --noEmit
96
- - build — tsc
97
- - clean — remove generated `lib/`
128
+ ---
98
129
 
99
- Publishing
100
- ----------
101
- This package is published to npm as @dallay/agentsync. The repository sets `publishConfig.access=public`.
130
+ ## 🌐 Resources
102
131
 
103
- Before publishing:
132
+ - **Project Repository**: [GitHub Repository](https://github.com/dallay/agentsync)
133
+ - **Submit Issues**: [GitHub Issues](https://github.com/dallay/agentsync/issues)
134
+ - **Explore Full Documentation**: [Documentation Website](https://dallay.github.io/agentsync/)
104
135
 
105
- 1. Ensure `lib/` is built (pnpm run build).
106
- 2. Verify package.json fields: `main`, `files`, `bin`, `repository`, `bugs`, `homepage`.
107
- 3. Ensure LICENSE is present and tests/CI are green.
136
+ ---
108
137
 
109
- pnpm publish --access public
138
+ ## 📜 License
110
139
 
111
- Contributing
112
- ------------
113
- Contributions welcome. Keep it simple:
140
+ MIT License. See the [LICENSE](https://github.com/dallay/agentsync/blob/main/LICENSE) for details.
114
141
 
115
- 1. Fork the repo and create a feature branch.
116
- 2. pnpm install
117
- 3. pnpm run typecheck && pnpm run build
118
- 4. Open a PR with a clear description and link to any related issue.
142
+ ---
119
143
 
120
- We use Conventional Commits to generate changelogs. Keep commits focused and small.
144
+ ## 🙏 Acknowledgments
121
145
 
122
- Security
123
- --------
124
- Report security issues by opening a private issue on the repository or emailing the maintainer listed in package.json.
146
+ Special thanks to the developer community for their contributions and feedback. For suggestions and improvements, feel free to open a pull request!
125
147
 
126
- License
127
- -------
128
- MIT — see LICENSE
148
+ ---
129
149
 
130
- More documentation
131
- ------------------
132
- For full API docs and examples, generate TypeDoc or add an `docs/` or `examples/` directory. If you want, I can generate a TypeDoc-based docs bundle and add CI to publish it to GitHub Pages.
150
+ 📣 Ready? Start syncing agent configs today with `@dallay/agentsync`!
package/lib/index.js CHANGED
@@ -38,7 +38,9 @@ function getExePath() {
38
38
  throw new Error(`Unsupported platform: ${platformKey}\n\nSupported platforms:\n${supportedPlatforms}\n\nPlease open an issue at https://github.com/dallay/agentsync/issues`);
39
39
  }
40
40
  // Determine binary name (with .exe on Windows and Cygwin)
41
- const binaryName = platform === "win32" || platform === "cygwin" ? "agentsync.exe" : "agentsync";
41
+ const binaryName = platform === "win32" || platform === "cygwin"
42
+ ? "agentsync.exe"
43
+ : "agentsync";
42
44
  // Try to resolve the binary from the platform-specific package
43
45
  let binaryPath;
44
46
  try {
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAEA,iDAA0C;AAC1C,2BAAgC;AAChC,+BAA4B;AAE5B;;GAEG;AACH,MAAM,SAAS,GAA2B;IACxC,YAAY,EAAE,8BAA8B;IAC5C,cAAc,EAAE,gCAAgC;IAChD,WAAW,EAAE,6BAA6B;IAC1C,aAAa,EAAE,+BAA+B;IAC9C,WAAW,EAAE,+BAA+B;IAC5C,aAAa,EAAE,iCAAiC;IAChD,YAAY,EAAE,+BAA+B;IAC7C,cAAc,EAAE,iCAAiC;CAClD,CAAC;AAEF;;;;;;;;GAQG;AACH,SAAS,UAAU;IACjB,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;IAClC,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAE1B,MAAM,WAAW,GAAG,GAAG,QAAQ,IAAI,IAAI,EAAE,CAAC;IAC1C,MAAM,WAAW,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC;IAE3C,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,MAAM,kBAAkB,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC;aAC9C,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;aACtB,IAAI,CAAC,IAAI,CAAC,CAAC;QACd,MAAM,IAAI,KAAK,CACb,yBAAyB,WAAW,6BAA6B,kBAAkB,wEAAwE,CAC5J,CAAC;IACJ,CAAC;IAED,0DAA0D;IAC1D,MAAM,UAAU,GAAG,QAAQ,KAAK,OAAO,IAAI,QAAQ,KAAK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EAAE;QAC1C,KAAK,EAAE,SAAS;QAChB,GAAG,EAAE,OAAO,CAAC,GAAG;KAChB,CAAC,CAAC;IAEH,sBAAsB;IACtB,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;QAClB,OAAO,CAAC,KAAK,CAAC,gCAAgC,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;QACtE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACjB,CAAC;IAED,wCAAwC;IACxC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC;AAClC,CAAC;AAED,GAAG,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dallay/agentsync",
3
- "version": "1.14.2",
3
+ "version": "1.14.4",
4
4
  "description": "A fast CLI tool to sync AI agent configurations and MCP servers across Claude, Copilot, Cursor, and more using symbolic links.",
5
5
  "author": "Yuniel Acosta <yunielacosta738@gmail.com>",
6
6
  "license": "MIT",
@@ -41,17 +41,18 @@
41
41
  "typescript": "^5.9.3"
42
42
  },
43
43
  "optionalDependencies": {
44
- "@dallay/agentsync-linux-x64": "1.14.2",
45
- "@dallay/agentsync-linux-arm64": "1.14.2",
46
- "@dallay/agentsync-darwin-x64": "1.14.2",
47
- "@dallay/agentsync-darwin-arm64": "1.14.2",
48
- "@dallay/agentsync-windows-x64": "1.14.2",
49
- "@dallay/agentsync-windows-arm64": "1.14.2"
44
+ "@dallay/agentsync-linux-x64": "1.14.4",
45
+ "@dallay/agentsync-linux-arm64": "1.14.4",
46
+ "@dallay/agentsync-darwin-x64": "1.14.4",
47
+ "@dallay/agentsync-darwin-arm64": "1.14.4",
48
+ "@dallay/agentsync-windows-x64": "1.14.4",
49
+ "@dallay/agentsync-windows-arm64": "1.14.4"
50
50
  },
51
51
  "engines": {
52
52
  "node": ">=18"
53
53
  },
54
54
  "scripts": {
55
+ "test": "pnpm run typecheck",
55
56
  "typecheck": "tsc --noEmit",
56
57
  "build": "tsc",
57
58
  "clean": "node -e \"require('fs').rmSync('lib', {recursive: true, force: true})\""