@agentconnect/cli 0.2.0 → 0.2.2
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 +2 -2
- package/dist/fs-utils.js +0 -43
- package/dist/host.d.ts +0 -7
- package/dist/host.js +0 -663
- package/dist/manifest.js +0 -34
- package/dist/observed.d.ts +0 -7
- package/dist/observed.js +0 -69
- package/dist/paths.js +0 -36
- package/dist/providers/claude.d.ts +0 -12
- package/dist/providers/claude.js +0 -672
- package/dist/providers/codex.d.ts +0 -11
- package/dist/providers/codex.js +0 -509
- package/dist/providers/cursor.d.ts +0 -11
- package/dist/providers/index.d.ts +0 -5
- package/dist/providers/index.js +0 -90
- package/dist/providers/local.d.ts +0 -9
- package/dist/providers/local.js +0 -111
- package/dist/providers/utils.d.ts +0 -33
- package/dist/providers/utils.js +0 -256
- package/dist/registry-validate.js +0 -209
- package/dist/registry.js +0 -66
- package/dist/types.d.ts +0 -252
- package/dist/types.js +0 -1
- package/dist/zip.js +0 -71
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentconnect/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://github.com/rayzhudev/agent-connect",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dev": "tsc --watch"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@agentconnect/host": "^0.2.
|
|
35
|
+
"@agentconnect/host": "^0.2.2",
|
|
36
36
|
"ajv": "^8.17.1",
|
|
37
37
|
"yauzl": "^2.10.0",
|
|
38
38
|
"yazl": "^2.5.1"
|
package/dist/fs-utils.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import path from 'path';
|
|
2
|
-
import { promises as fs } from 'fs';
|
|
3
|
-
export async function collectFiles(root, options = {}) {
|
|
4
|
-
const ignoreNames = new Set(options.ignoreNames || []);
|
|
5
|
-
const ignorePaths = new Set(options.ignorePaths || []);
|
|
6
|
-
const files = [];
|
|
7
|
-
async function walk(dir) {
|
|
8
|
-
const entries = await fs.readdir(dir, { withFileTypes: true });
|
|
9
|
-
for (const entry of entries) {
|
|
10
|
-
if (ignoreNames.has(entry.name))
|
|
11
|
-
continue;
|
|
12
|
-
const fullPath = path.join(dir, entry.name);
|
|
13
|
-
const rel = path.relative(root, fullPath);
|
|
14
|
-
if (ignorePaths.has(rel))
|
|
15
|
-
continue;
|
|
16
|
-
if (entry.isDirectory()) {
|
|
17
|
-
await walk(fullPath);
|
|
18
|
-
}
|
|
19
|
-
else if (entry.isFile()) {
|
|
20
|
-
files.push({ fullPath, rel });
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
await walk(root);
|
|
25
|
-
return files.sort((a, b) => a.rel.localeCompare(b.rel));
|
|
26
|
-
}
|
|
27
|
-
export async function readJson(filePath) {
|
|
28
|
-
const raw = await fs.readFile(filePath, 'utf8');
|
|
29
|
-
return JSON.parse(raw);
|
|
30
|
-
}
|
|
31
|
-
export async function writeJson(filePath, data) {
|
|
32
|
-
await fs.mkdir(path.dirname(filePath), { recursive: true });
|
|
33
|
-
await fs.writeFile(filePath, JSON.stringify(data, null, 2), 'utf8');
|
|
34
|
-
}
|
|
35
|
-
export async function fileExists(filePath) {
|
|
36
|
-
try {
|
|
37
|
-
await fs.stat(filePath);
|
|
38
|
-
return true;
|
|
39
|
-
}
|
|
40
|
-
catch {
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
}
|