@shruubi/agentconfig 0.1.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/LICENSE +21 -0
- package/README.md +61 -0
- package/package.json +55 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Damon Swayn
|
|
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,61 @@
|
|
|
1
|
+
# agentconfig
|
|
2
|
+
|
|
3
|
+
Sync a single agent config source to multiple coding agents.
|
|
4
|
+
|
|
5
|
+
## Requirements
|
|
6
|
+
|
|
7
|
+
- Node.js 20+
|
|
8
|
+
|
|
9
|
+
## Quickstart
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install
|
|
13
|
+
npm run build
|
|
14
|
+
npm link
|
|
15
|
+
agentconfig init
|
|
16
|
+
agentconfig sync
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Install from npm
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm install -g agentconfig
|
|
23
|
+
agentconfig --help
|
|
24
|
+
agentconfig init
|
|
25
|
+
agentconfig sync
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Commands
|
|
29
|
+
|
|
30
|
+
- `agentconfig init` Create `agentconfig.yml` in the source root.
|
|
31
|
+
- `agentconfig sync` Sync configs to agent targets.
|
|
32
|
+
- `agentconfig status` Show drift status based on last sync.
|
|
33
|
+
- `agentconfig doctor` Validate config structure.
|
|
34
|
+
- `agentconfig list-agents` List supported agents.
|
|
35
|
+
|
|
36
|
+
## Common options
|
|
37
|
+
|
|
38
|
+
- `--project <path>` Project-only sync into a repo root.
|
|
39
|
+
- `--dry-run` Show actions without writing.
|
|
40
|
+
- `--link` Force symlink mode.
|
|
41
|
+
- `--copy` Force copy mode.
|
|
42
|
+
- `--force` Overwrite unmanaged targets.
|
|
43
|
+
- `--agent <name>` Restrict to one agent.
|
|
44
|
+
|
|
45
|
+
## Config location
|
|
46
|
+
|
|
47
|
+
Default source root is `~/.agentconfig`. Override with `AGENTCONFIG_HOME`.
|
|
48
|
+
|
|
49
|
+
## Tests
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
npm test
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Linting and formatting
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
npm run lint
|
|
59
|
+
npm run format:check
|
|
60
|
+
npm run format
|
|
61
|
+
```
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@shruubi/agentconfig",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Sync a single agent config source to multiple coding agents",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "https://github.com/damonswayn/agentconfig",
|
|
7
|
+
"type": "commonjs",
|
|
8
|
+
"main": "dist/cli.js",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"README.md",
|
|
12
|
+
"LICENSE"
|
|
13
|
+
],
|
|
14
|
+
"engines": {
|
|
15
|
+
"node": ">=20"
|
|
16
|
+
},
|
|
17
|
+
"bin": {
|
|
18
|
+
"agentconfig": "dist/cli.js"
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"clean": "node scripts/clean.js",
|
|
22
|
+
"build": "tsc",
|
|
23
|
+
"postbuild": "node scripts/add-shebang.js",
|
|
24
|
+
"lint": "eslint . --ext .ts,.js",
|
|
25
|
+
"format": "prettier --write .",
|
|
26
|
+
"format:check": "prettier --check .",
|
|
27
|
+
"prepare": "husky",
|
|
28
|
+
"test": "npm run build && node --test",
|
|
29
|
+
"dev": "tsc -w"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"yaml": "^2.8.1"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@types/node": "^22.13.4",
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^8.26.0",
|
|
37
|
+
"@typescript-eslint/parser": "^8.26.0",
|
|
38
|
+
"eslint": "^9.21.0",
|
|
39
|
+
"eslint-config-prettier": "^9.1.0",
|
|
40
|
+
"husky": "^9.0.11",
|
|
41
|
+
"lint-staged": "^15.2.11",
|
|
42
|
+
"prettier": "^3.5.2",
|
|
43
|
+
"typescript-eslint": "^8.26.0",
|
|
44
|
+
"typescript": "^5.7.3"
|
|
45
|
+
},
|
|
46
|
+
"lint-staged": {
|
|
47
|
+
"**/*.{ts,js}": [
|
|
48
|
+
"eslint --fix",
|
|
49
|
+
"prettier --write"
|
|
50
|
+
],
|
|
51
|
+
"**/*.{json,md,yml,yaml}": [
|
|
52
|
+
"prettier --write"
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
}
|