@dalzoubi/dev-agents-sync 1.0.0 → 1.0.1
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 +43 -43
- package/src/commands/check.mjs +1 -1
- package/src/commands/diff.mjs +1 -1
- package/src/commands/init.mjs +1 -1
- package/src/commands/update.mjs +1 -1
- package/src/fetcher.mjs +356 -356
- package/tests/fetcher.test.mjs +1247 -1247
- package/tests/init.test.mjs +17 -0
package/package.json
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@dalzoubi/dev-agents-sync",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"description": "CLI that syncs managed dev-agent prompts into consumer repos (.claude/ and/or .cursor/).",
|
|
6
|
-
"bin": {
|
|
7
|
-
"dev-agents-sync": "./src/cli.mjs"
|
|
8
|
-
},
|
|
9
|
-
"exports": {
|
|
10
|
-
".": "./src/index.mjs",
|
|
11
|
-
"./lockfile": "./src/lockfile.mjs",
|
|
12
|
-
"./marker": "./src/marker.mjs",
|
|
13
|
-
"./range": "./src/range.mjs",
|
|
14
|
-
"./fetcher": "./src/fetcher.mjs",
|
|
15
|
-
"./writer": "./src/writer.mjs",
|
|
16
|
-
"./auth": "./src/auth.mjs",
|
|
17
|
-
"./commands/init": "./src/commands/init.mjs",
|
|
18
|
-
"./commands/update": "./src/commands/update.mjs",
|
|
19
|
-
"./commands/status": "./src/commands/status.mjs",
|
|
20
|
-
"./commands/check": "./src/commands/check.mjs",
|
|
21
|
-
"./commands/diff": "./src/commands/diff.mjs"
|
|
22
|
-
},
|
|
23
|
-
"scripts": {
|
|
24
|
-
"dev": "node --watch src/cli.mjs",
|
|
25
|
-
"build": "echo 'No build step for v1 (pure ESM)'",
|
|
26
|
-
"test": "node --test tests/*.test.mjs",
|
|
27
|
-
"test:e2e": "node --test tests/e2e/*.test.mjs",
|
|
28
|
-
"lint": "npx eslint ."
|
|
29
|
-
},
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"semver": "^7.6.0",
|
|
32
|
-
"tar": "^7.4.0"
|
|
33
|
-
},
|
|
34
|
-
"devDependencies": {
|
|
35
|
-
"node": ">=20.0.0"
|
|
36
|
-
},
|
|
37
|
-
"engines": {
|
|
38
|
-
"node": ">=20.0.0"
|
|
39
|
-
},
|
|
40
|
-
"publishConfig": {
|
|
41
|
-
"access": "public"
|
|
42
|
-
}
|
|
43
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@dalzoubi/dev-agents-sync",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "CLI that syncs managed dev-agent prompts into consumer repos (.claude/ and/or .cursor/).",
|
|
6
|
+
"bin": {
|
|
7
|
+
"dev-agents-sync": "./src/cli.mjs"
|
|
8
|
+
},
|
|
9
|
+
"exports": {
|
|
10
|
+
".": "./src/index.mjs",
|
|
11
|
+
"./lockfile": "./src/lockfile.mjs",
|
|
12
|
+
"./marker": "./src/marker.mjs",
|
|
13
|
+
"./range": "./src/range.mjs",
|
|
14
|
+
"./fetcher": "./src/fetcher.mjs",
|
|
15
|
+
"./writer": "./src/writer.mjs",
|
|
16
|
+
"./auth": "./src/auth.mjs",
|
|
17
|
+
"./commands/init": "./src/commands/init.mjs",
|
|
18
|
+
"./commands/update": "./src/commands/update.mjs",
|
|
19
|
+
"./commands/status": "./src/commands/status.mjs",
|
|
20
|
+
"./commands/check": "./src/commands/check.mjs",
|
|
21
|
+
"./commands/diff": "./src/commands/diff.mjs"
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"dev": "node --watch src/cli.mjs",
|
|
25
|
+
"build": "echo 'No build step for v1 (pure ESM)'",
|
|
26
|
+
"test": "node --test tests/*.test.mjs",
|
|
27
|
+
"test:e2e": "node --test tests/e2e/*.test.mjs",
|
|
28
|
+
"lint": "npx eslint ."
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"semver": "^7.6.0",
|
|
32
|
+
"tar": "^7.4.0"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"node": ">=20.0.0"
|
|
36
|
+
},
|
|
37
|
+
"engines": {
|
|
38
|
+
"node": ">=20.0.0"
|
|
39
|
+
},
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public"
|
|
42
|
+
}
|
|
43
|
+
}
|
package/src/commands/check.mjs
CHANGED
|
@@ -35,7 +35,7 @@ export async function runCheck(consumerCwd, opts = {}) {
|
|
|
35
35
|
|
|
36
36
|
let fileMap;
|
|
37
37
|
try {
|
|
38
|
-
fileMap = await fetcher(repo,
|
|
38
|
+
fileMap = await fetcher(repo, lock.resolvedVersion, token);
|
|
39
39
|
} catch (err) {
|
|
40
40
|
const wrapped = new Error(
|
|
41
41
|
`tooling error while fetching v${lock.resolvedVersion}: ${err.message}`,
|
package/src/commands/diff.mjs
CHANGED
|
@@ -50,7 +50,7 @@ export async function runDiff(consumerCwd, opts = {}) {
|
|
|
50
50
|
|
|
51
51
|
const lock = readLockfile(consumerCwd);
|
|
52
52
|
|
|
53
|
-
const fileMap = await fetcher(repo,
|
|
53
|
+
const fileMap = await fetcher(repo, lock.resolvedVersion, token);
|
|
54
54
|
const scoped = filterFileMapByTargets(normalizeFileMap(fileMap), lock.targets);
|
|
55
55
|
|
|
56
56
|
let combined = '';
|
package/src/commands/init.mjs
CHANGED
|
@@ -101,7 +101,7 @@ export async function runInit(consumerCwd, opts = {}) {
|
|
|
101
101
|
|
|
102
102
|
const resolvedVersion = resolveRange(availableTags, range);
|
|
103
103
|
|
|
104
|
-
const fileMap = await fetcher(repo,
|
|
104
|
+
const fileMap = await fetcher(repo, resolvedVersion, token);
|
|
105
105
|
const normalized = normalizeFileMap(fileMap);
|
|
106
106
|
const scoped = filterFileMapByTargets(normalized, resolvedTargets);
|
|
107
107
|
|
package/src/commands/update.mjs
CHANGED
|
@@ -49,7 +49,7 @@ export async function runUpdate(consumerCwd, opts = {}) {
|
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
const fileMap = await fetcher(repo,
|
|
52
|
+
const fileMap = await fetcher(repo, targetVersion, token);
|
|
53
53
|
const normalized = normalizeFileMap(fileMap);
|
|
54
54
|
const scoped = filterFileMapByTargets(normalized, lock.targets);
|
|
55
55
|
|