@sentry/dotagents 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/README.md +96 -0
- package/dist/cli/commands/add.d.ts +12 -0
- package/dist/cli/commands/add.d.ts.map +1 -0
- package/dist/cli/commands/add.js +127 -0
- package/dist/cli/commands/add.js.map +1 -0
- package/dist/cli/commands/init.d.ts +10 -0
- package/dist/cli/commands/init.d.ts.map +1 -0
- package/dist/cli/commands/init.js +81 -0
- package/dist/cli/commands/init.js.map +1 -0
- package/dist/cli/commands/init.test.d.ts +2 -0
- package/dist/cli/commands/init.test.d.ts.map +1 -0
- package/dist/cli/commands/init.test.js +71 -0
- package/dist/cli/commands/init.test.js.map +1 -0
- package/dist/cli/commands/install.d.ts +15 -0
- package/dist/cli/commands/install.d.ts.map +1 -0
- package/dist/cli/commands/install.js +139 -0
- package/dist/cli/commands/install.js.map +1 -0
- package/dist/cli/commands/install.test.d.ts +2 -0
- package/dist/cli/commands/install.test.d.ts.map +1 -0
- package/dist/cli/commands/install.test.js +94 -0
- package/dist/cli/commands/install.test.js.map +1 -0
- package/dist/cli/commands/list.d.ts +13 -0
- package/dist/cli/commands/list.d.ts.map +1 -0
- package/dist/cli/commands/list.js +82 -0
- package/dist/cli/commands/list.js.map +1 -0
- package/dist/cli/commands/list.test.d.ts +2 -0
- package/dist/cli/commands/list.test.d.ts.map +1 -0
- package/dist/cli/commands/list.test.js +96 -0
- package/dist/cli/commands/list.test.js.map +1 -0
- package/dist/cli/commands/remove.d.ts +10 -0
- package/dist/cli/commands/remove.d.ts.map +1 -0
- package/dist/cli/commands/remove.js +68 -0
- package/dist/cli/commands/remove.js.map +1 -0
- package/dist/cli/commands/sync.d.ts +16 -0
- package/dist/cli/commands/sync.d.ts.map +1 -0
- package/dist/cli/commands/sync.js +108 -0
- package/dist/cli/commands/sync.js.map +1 -0
- package/dist/cli/commands/sync.test.d.ts +2 -0
- package/dist/cli/commands/sync.test.d.ts.map +1 -0
- package/dist/cli/commands/sync.test.js +100 -0
- package/dist/cli/commands/sync.test.js.map +1 -0
- package/dist/cli/commands/update.d.ts +15 -0
- package/dist/cli/commands/update.d.ts.map +1 -0
- package/dist/cli/commands/update.js +113 -0
- package/dist/cli/commands/update.js.map +1 -0
- package/dist/cli/commands/update.test.d.ts +2 -0
- package/dist/cli/commands/update.test.d.ts.map +1 -0
- package/dist/cli/commands/update.test.js +90 -0
- package/dist/cli/commands/update.test.js.map +1 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +49 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/config/index.d.ts +5 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +4 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/loader.d.ts +6 -0
- package/dist/config/loader.d.ts.map +1 -0
- package/dist/config/loader.js +35 -0
- package/dist/config/loader.js.map +1 -0
- package/dist/config/loader.test.d.ts +2 -0
- package/dist/config/loader.test.d.ts.map +1 -0
- package/dist/config/loader.test.js +60 -0
- package/dist/config/loader.test.js.map +1 -0
- package/dist/config/schema.d.ts +37 -0
- package/dist/config/schema.d.ts.map +1 -0
- package/dist/config/schema.js +43 -0
- package/dist/config/schema.js.map +1 -0
- package/dist/config/schema.test.d.ts +2 -0
- package/dist/config/schema.test.d.ts.map +1 -0
- package/dist/config/schema.test.js +138 -0
- package/dist/config/schema.test.js.map +1 -0
- package/dist/config/writer.d.ts +17 -0
- package/dist/config/writer.d.ts.map +1 -0
- package/dist/config/writer.js +71 -0
- package/dist/config/writer.js.map +1 -0
- package/dist/config/writer.test.d.ts +2 -0
- package/dist/config/writer.test.d.ts.map +1 -0
- package/dist/config/writer.test.js +103 -0
- package/dist/config/writer.test.js.map +1 -0
- package/dist/gitignore/index.d.ts +2 -0
- package/dist/gitignore/index.d.ts.map +1 -0
- package/dist/gitignore/index.js +2 -0
- package/dist/gitignore/index.js.map +1 -0
- package/dist/gitignore/writer.d.ts +16 -0
- package/dist/gitignore/writer.d.ts.map +1 -0
- package/dist/gitignore/writer.js +40 -0
- package/dist/gitignore/writer.js.map +1 -0
- package/dist/gitignore/writer.test.d.ts +2 -0
- package/dist/gitignore/writer.test.d.ts.map +1 -0
- package/dist/gitignore/writer.test.js +99 -0
- package/dist/gitignore/writer.test.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/lockfile/index.d.ts +5 -0
- package/dist/lockfile/index.d.ts.map +1 -0
- package/dist/lockfile/index.js +4 -0
- package/dist/lockfile/index.js.map +1 -0
- package/dist/lockfile/loader.d.ts +10 -0
- package/dist/lockfile/loader.d.ts.map +1 -0
- package/dist/lockfile/loader.js +36 -0
- package/dist/lockfile/loader.js.map +1 -0
- package/dist/lockfile/schema.d.ts +42 -0
- package/dist/lockfile/schema.d.ts.map +1 -0
- package/dist/lockfile/schema.js +25 -0
- package/dist/lockfile/schema.js.map +1 -0
- package/dist/lockfile/schema.test.d.ts +2 -0
- package/dist/lockfile/schema.test.d.ts.map +1 -0
- package/dist/lockfile/schema.test.js +60 -0
- package/dist/lockfile/schema.test.js.map +1 -0
- package/dist/lockfile/writer.d.ts +7 -0
- package/dist/lockfile/writer.d.ts.map +1 -0
- package/dist/lockfile/writer.js +17 -0
- package/dist/lockfile/writer.js.map +1 -0
- package/dist/lockfile/writer.test.d.ts +2 -0
- package/dist/lockfile/writer.test.d.ts.map +1 -0
- package/dist/lockfile/writer.test.js +73 -0
- package/dist/lockfile/writer.test.js.map +1 -0
- package/dist/skills/discovery.d.ts +17 -0
- package/dist/skills/discovery.d.ts.map +1 -0
- package/dist/skills/discovery.js +156 -0
- package/dist/skills/discovery.js.map +1 -0
- package/dist/skills/discovery.test.d.ts +2 -0
- package/dist/skills/discovery.test.d.ts.map +1 -0
- package/dist/skills/discovery.test.js +110 -0
- package/dist/skills/discovery.test.js.map +1 -0
- package/dist/skills/index.d.ts +7 -0
- package/dist/skills/index.d.ts.map +1 -0
- package/dist/skills/index.js +4 -0
- package/dist/skills/index.js.map +1 -0
- package/dist/skills/loader.d.ts +14 -0
- package/dist/skills/loader.d.ts.map +1 -0
- package/dist/skills/loader.js +57 -0
- package/dist/skills/loader.js.map +1 -0
- package/dist/skills/loader.test.d.ts +2 -0
- package/dist/skills/loader.test.d.ts.map +1 -0
- package/dist/skills/loader.test.js +69 -0
- package/dist/skills/loader.test.js.map +1 -0
- package/dist/skills/resolver.d.ts +46 -0
- package/dist/skills/resolver.d.ts.map +1 -0
- package/dist/skills/resolver.integration.test.d.ts +2 -0
- package/dist/skills/resolver.integration.test.d.ts.map +1 -0
- package/dist/skills/resolver.integration.test.js +106 -0
- package/dist/skills/resolver.integration.test.js.map +1 -0
- package/dist/skills/resolver.js +82 -0
- package/dist/skills/resolver.js.map +1 -0
- package/dist/skills/resolver.test.d.ts +2 -0
- package/dist/skills/resolver.test.d.ts.map +1 -0
- package/dist/skills/resolver.test.js +36 -0
- package/dist/skills/resolver.test.js.map +1 -0
- package/dist/sources/cache.d.ts +23 -0
- package/dist/sources/cache.d.ts.map +1 -0
- package/dist/sources/cache.js +61 -0
- package/dist/sources/cache.js.map +1 -0
- package/dist/sources/git.d.ts +25 -0
- package/dist/sources/git.d.ts.map +1 -0
- package/dist/sources/git.js +72 -0
- package/dist/sources/git.js.map +1 -0
- package/dist/sources/index.d.ts +5 -0
- package/dist/sources/index.d.ts.map +1 -0
- package/dist/sources/index.js +4 -0
- package/dist/sources/index.js.map +1 -0
- package/dist/sources/local.d.ts +9 -0
- package/dist/sources/local.d.ts.map +1 -0
- package/dist/sources/local.js +32 -0
- package/dist/sources/local.js.map +1 -0
- package/dist/symlinks/index.d.ts +2 -0
- package/dist/symlinks/index.d.ts.map +1 -0
- package/dist/symlinks/index.js +2 -0
- package/dist/symlinks/index.js.map +1 -0
- package/dist/symlinks/manager.d.ts +20 -0
- package/dist/symlinks/manager.d.ts.map +1 -0
- package/dist/symlinks/manager.js +103 -0
- package/dist/symlinks/manager.js.map +1 -0
- package/dist/symlinks/manager.test.d.ts +2 -0
- package/dist/symlinks/manager.test.d.ts.map +1 -0
- package/dist/symlinks/manager.test.js +94 -0
- package/dist/symlinks/manager.test.js.map +1 -0
- package/dist/utils/exec.d.ts +16 -0
- package/dist/utils/exec.d.ts.map +1 -0
- package/dist/utils/exec.js +37 -0
- package/dist/utils/exec.js.map +1 -0
- package/dist/utils/fs.d.ts +6 -0
- package/dist/utils/fs.d.ts.map +1 -0
- package/dist/utils/fs.js +10 -0
- package/dist/utils/fs.js.map +1 -0
- package/dist/utils/hash.d.ts +16 -0
- package/dist/utils/hash.d.ts.map +1 -0
- package/dist/utils/hash.js +50 -0
- package/dist/utils/hash.js.map +1 -0
- package/dist/utils/hash.test.d.ts +2 -0
- package/dist/utils/hash.test.d.ts.map +1 -0
- package/dist/utils/hash.test.js +61 -0
- package/dist/utils/hash.test.js.map +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/index.js.map +1 -0
- package/package.json +56 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compute a deterministic integrity hash of a directory.
|
|
3
|
+
*
|
|
4
|
+
* Algorithm:
|
|
5
|
+
* 1. Walk all files, sorted alphabetically by relative path
|
|
6
|
+
* 2. SHA-256 each file's contents
|
|
7
|
+
* 3. Concatenate "<relative-path>\0<hex-hash>\n"
|
|
8
|
+
* 4. SHA-256 the concatenation
|
|
9
|
+
* 5. Base64-encode with "sha256-" prefix
|
|
10
|
+
*/
|
|
11
|
+
export declare function hashDirectory(dirPath: string): Promise<string>;
|
|
12
|
+
/**
|
|
13
|
+
* SHA-256 hex hash of a string.
|
|
14
|
+
*/
|
|
15
|
+
export declare function sha256(input: string): string;
|
|
16
|
+
//# sourceMappingURL=hash.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hash.d.ts","sourceRoot":"","sources":["../../src/utils/hash.ts"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAepE;AAoBD;;GAEG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE5C"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
2
|
+
import { readFile, readdir } from "node:fs/promises";
|
|
3
|
+
import { join, relative } from "node:path";
|
|
4
|
+
/**
|
|
5
|
+
* Compute a deterministic integrity hash of a directory.
|
|
6
|
+
*
|
|
7
|
+
* Algorithm:
|
|
8
|
+
* 1. Walk all files, sorted alphabetically by relative path
|
|
9
|
+
* 2. SHA-256 each file's contents
|
|
10
|
+
* 3. Concatenate "<relative-path>\0<hex-hash>\n"
|
|
11
|
+
* 4. SHA-256 the concatenation
|
|
12
|
+
* 5. Base64-encode with "sha256-" prefix
|
|
13
|
+
*/
|
|
14
|
+
export async function hashDirectory(dirPath) {
|
|
15
|
+
const files = await walkFiles(dirPath);
|
|
16
|
+
files.sort();
|
|
17
|
+
const parts = [];
|
|
18
|
+
for (const filePath of files) {
|
|
19
|
+
const relPath = relative(dirPath, filePath);
|
|
20
|
+
const content = await readFile(filePath);
|
|
21
|
+
const fileHash = createHash("sha256").update(content).digest("hex");
|
|
22
|
+
parts.push(`${relPath}\0${fileHash}\n`);
|
|
23
|
+
}
|
|
24
|
+
const combined = parts.join("");
|
|
25
|
+
const digest = createHash("sha256").update(combined).digest("base64");
|
|
26
|
+
return `sha256-${digest}`;
|
|
27
|
+
}
|
|
28
|
+
async function walkFiles(dir) {
|
|
29
|
+
const results = [];
|
|
30
|
+
const entries = await readdir(dir, { withFileTypes: true });
|
|
31
|
+
for (const entry of entries) {
|
|
32
|
+
const fullPath = join(dir, entry.name);
|
|
33
|
+
if (entry.isDirectory()) {
|
|
34
|
+
const nested = await walkFiles(fullPath);
|
|
35
|
+
results.push(...nested);
|
|
36
|
+
}
|
|
37
|
+
else if (entry.isFile()) {
|
|
38
|
+
results.push(fullPath);
|
|
39
|
+
}
|
|
40
|
+
// Skip symlinks, sockets, etc.
|
|
41
|
+
}
|
|
42
|
+
return results;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* SHA-256 hex hash of a string.
|
|
46
|
+
*/
|
|
47
|
+
export function sha256(input) {
|
|
48
|
+
return createHash("sha256").update(input).digest("hex");
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=hash.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hash.js","sourceRoot":"","sources":["../../src/utils/hash.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE3C;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,OAAe;IACjD,MAAM,KAAK,GAAG,MAAM,SAAS,CAAC,OAAO,CAAC,CAAC;IACvC,KAAK,CAAC,IAAI,EAAE,CAAC;IAEb,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,KAAK,MAAM,QAAQ,IAAI,KAAK,EAAE,CAAC;QAC7B,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACzC,MAAM,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACpE,KAAK,CAAC,IAAI,CAAC,GAAG,OAAO,KAAK,QAAQ,IAAI,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beforeEach, afterEach } from "vitest";
|
|
2
|
+
import { mkdtemp, writeFile, mkdir, rm } from "node:fs/promises";
|
|
3
|
+
import { join } from "node:path";
|
|
4
|
+
import { tmpdir } from "node:os";
|
|
5
|
+
import { hashDirectory, sha256 } from "./hash.js";
|
|
6
|
+
describe("hashDirectory", () => {
|
|
7
|
+
let dir;
|
|
8
|
+
beforeEach(async () => {
|
|
9
|
+
dir = await mkdtemp(join(tmpdir(), "dotagents-hash-"));
|
|
10
|
+
});
|
|
11
|
+
afterEach(async () => {
|
|
12
|
+
await rm(dir, { recursive: true });
|
|
13
|
+
});
|
|
14
|
+
it("produces a sha256- prefixed hash", async () => {
|
|
15
|
+
await writeFile(join(dir, "SKILL.md"), "# Test Skill\n");
|
|
16
|
+
const hash = await hashDirectory(dir);
|
|
17
|
+
expect(hash).toMatch(/^sha256-.+$/);
|
|
18
|
+
});
|
|
19
|
+
it("is deterministic for same content", async () => {
|
|
20
|
+
await writeFile(join(dir, "a.txt"), "hello");
|
|
21
|
+
await writeFile(join(dir, "b.txt"), "world");
|
|
22
|
+
const hash1 = await hashDirectory(dir);
|
|
23
|
+
// Create same content in a different directory
|
|
24
|
+
const dir2 = await mkdtemp(join(tmpdir(), "dotagents-hash-"));
|
|
25
|
+
await writeFile(join(dir2, "a.txt"), "hello");
|
|
26
|
+
await writeFile(join(dir2, "b.txt"), "world");
|
|
27
|
+
const hash2 = await hashDirectory(dir2);
|
|
28
|
+
await rm(dir2, { recursive: true });
|
|
29
|
+
expect(hash1).toBe(hash2);
|
|
30
|
+
});
|
|
31
|
+
it("changes when file content changes", async () => {
|
|
32
|
+
await writeFile(join(dir, "file.txt"), "v1");
|
|
33
|
+
const hash1 = await hashDirectory(dir);
|
|
34
|
+
await writeFile(join(dir, "file.txt"), "v2");
|
|
35
|
+
const hash2 = await hashDirectory(dir);
|
|
36
|
+
expect(hash1).not.toBe(hash2);
|
|
37
|
+
});
|
|
38
|
+
it("changes when a file is added", async () => {
|
|
39
|
+
await writeFile(join(dir, "a.txt"), "hello");
|
|
40
|
+
const hash1 = await hashDirectory(dir);
|
|
41
|
+
await writeFile(join(dir, "b.txt"), "world");
|
|
42
|
+
const hash2 = await hashDirectory(dir);
|
|
43
|
+
expect(hash1).not.toBe(hash2);
|
|
44
|
+
});
|
|
45
|
+
it("handles nested directories", async () => {
|
|
46
|
+
await mkdir(join(dir, "sub"), { recursive: true });
|
|
47
|
+
await writeFile(join(dir, "sub", "nested.txt"), "deep");
|
|
48
|
+
const hash = await hashDirectory(dir);
|
|
49
|
+
expect(hash).toMatch(/^sha256-.+$/);
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
describe("sha256", () => {
|
|
53
|
+
it("returns a hex string", () => {
|
|
54
|
+
const result = sha256("hello");
|
|
55
|
+
expect(result).toMatch(/^[a-f0-9]{64}$/);
|
|
56
|
+
});
|
|
57
|
+
it("is deterministic", () => {
|
|
58
|
+
expect(sha256("test")).toBe(sha256("test"));
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
//# sourceMappingURL=hash.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hash.test.js","sourceRoot":"","sources":["../../src/utils/hash.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAElD,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,IAAI,GAAW,CAAC;IAEhB,UAAU,CAAC,KAAK,IAAI,EAAE;QACpB,GAAG,GAAG,M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AAC;QACxD,MAAM,IAAI,GAAG,MAAM,aAAa,CAAC,GAAG,CAAC,CAAC;QACtC,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;IACtB,EAAE,CAAC,sBAAsB,EAAE,GAAG,EAAE;QAC9B,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;QAC/B,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kBAAkB,EAAE,GAAG,EAAE;QAC1B,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sentry/dotagents",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Package manager for .agents directories",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"bin": {
|
|
9
|
+
"dotagents": "dist/cli/index.js"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"dev": "tsx src/cli/index.ts",
|
|
13
|
+
"build": "tsc",
|
|
14
|
+
"test": "vitest run",
|
|
15
|
+
"test:watch": "vitest",
|
|
16
|
+
"lint": "oxlint src --deny-warnings",
|
|
17
|
+
"typecheck": "tsc --noEmit",
|
|
18
|
+
"check": "pnpm lint && pnpm typecheck && pnpm test"
|
|
19
|
+
},
|
|
20
|
+
"simple-git-hooks": {
|
|
21
|
+
"pre-commit": "pnpm lint-staged"
|
|
22
|
+
},
|
|
23
|
+
"lint-staged": {
|
|
24
|
+
"*.ts": [
|
|
25
|
+
"oxlint --deny-warnings"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"dist/",
|
|
30
|
+
"README.md",
|
|
31
|
+
"LICENSE"
|
|
32
|
+
],
|
|
33
|
+
"packageManager": "pnpm@10.28.2",
|
|
34
|
+
"license": "MIT",
|
|
35
|
+
"engines": {
|
|
36
|
+
"node": ">=20"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"chalk": "^5.6.2",
|
|
40
|
+
"smol-toml": "^1.6.0",
|
|
41
|
+
"zod": "^4.3.6"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@types/node": "^25.2.1",
|
|
45
|
+
"lint-staged": "^16.2.7",
|
|
46
|
+
"oxlint": "^1.43.0",
|
|
47
|
+
"simple-git-hooks": "^2.13.1",
|
|
48
|
+
"tsx": "^4.21.0",
|
|
49
|
+
"typescript": "^5.9.3",
|
|
50
|
+
"vitest": "^4.0.18"
|
|
51
|
+
},
|
|
52
|
+
"onlyBuiltDependencies": [
|
|
53
|
+
"esbuild",
|
|
54
|
+
"simple-git-hooks"
|
|
55
|
+
]
|
|
56
|
+
}
|