@lucasacoutinho/archer 0.0.0-stage → 0.2.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/LICENSE +202 -0
- package/NOTICE +5 -0
- package/README.md +459 -2
- package/dist/bun/plugin.cjs +85 -0
- package/dist/bun/plugin.d.cts +7 -0
- package/dist/bun/plugin.d.ts +7 -0
- package/dist/bun/plugin.js +11 -0
- package/dist/bun.cjs +2238 -0
- package/dist/bun.d.cts +13 -0
- package/dist/bun.d.ts +13 -0
- package/dist/bun.js +28 -0
- package/dist/chunk-2AKMBLHG.js +2165 -0
- package/dist/chunk-67YEOTXP.js +25 -0
- package/dist/chunk-IDVLHNL2.js +46 -0
- package/dist/chunk-ZZ6TR4PO.js +201 -0
- package/dist/cli.js +2643 -0
- package/dist/index.cjs +2484 -0
- package/dist/index.d.cts +45 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.js +54 -0
- package/dist/jest/plugin.cjs +85 -0
- package/dist/jest/plugin.d.cts +7 -0
- package/dist/jest/plugin.d.ts +7 -0
- package/dist/jest/plugin.js +11 -0
- package/dist/jest.cjs +2237 -0
- package/dist/jest.d.cts +13 -0
- package/dist/jest.d.ts +13 -0
- package/dist/jest.js +27 -0
- package/dist/matchers-Cqnbsyxe.d.cts +11 -0
- package/dist/matchers-Cqnbsyxe.d.ts +11 -0
- package/dist/node.cjs +2237 -0
- package/dist/node.d.cts +13 -0
- package/dist/node.d.ts +13 -0
- package/dist/node.js +27 -0
- package/dist/reporters-BbAXMpuW.d.cts +6 -0
- package/dist/reporters-xh-HQneS.d.ts +6 -0
- package/dist/suite-BwnPDCvU.d.cts +337 -0
- package/dist/suite-BwnPDCvU.d.ts +337 -0
- package/dist/vitest/plugin.cjs +85 -0
- package/dist/vitest/plugin.d.cts +7 -0
- package/dist/vitest/plugin.d.ts +7 -0
- package/dist/vitest/plugin.js +11 -0
- package/dist/vitest.cjs +2531 -0
- package/dist/vitest.d.cts +37 -0
- package/dist/vitest.d.ts +37 -0
- package/dist/vitest.js +139 -0
- package/package.json +216 -4
- package/skills/archer/SKILL.md +81 -0
- package/skills/archer/agents/openai.yaml +4 -0
- package/skills/archer/references/rules.md +87 -0
package/dist/bun.d.cts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { A as ArcherOptions, a as ArchitectureSuite } from './suite-BwnPDCvU.cjs';
|
|
2
|
+
export { S as Selector } from './suite-BwnPDCvU.cjs';
|
|
3
|
+
|
|
4
|
+
interface BunArchTestOptions extends ArcherOptions {
|
|
5
|
+
/** Per-test timeout in milliseconds. */
|
|
6
|
+
readonly timeout?: number;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Registers an architecture test in Bun and returns its rule builder.
|
|
10
|
+
*/
|
|
11
|
+
declare function arch(name: string, options?: BunArchTestOptions): ArchitectureSuite;
|
|
12
|
+
|
|
13
|
+
export { ArcherOptions, type BunArchTestOptions, arch };
|
package/dist/bun.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { A as ArcherOptions, a as ArchitectureSuite } from './suite-BwnPDCvU.js';
|
|
2
|
+
export { S as Selector } from './suite-BwnPDCvU.js';
|
|
3
|
+
|
|
4
|
+
interface BunArchTestOptions extends ArcherOptions {
|
|
5
|
+
/** Per-test timeout in milliseconds. */
|
|
6
|
+
readonly timeout?: number;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Registers an architecture test in Bun and returns its rule builder.
|
|
10
|
+
*/
|
|
11
|
+
declare function arch(name: string, options?: BunArchTestOptions): ArchitectureSuite;
|
|
12
|
+
|
|
13
|
+
export { ArcherOptions, type BunArchTestOptions, arch };
|
package/dist/bun.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ArchitectureSuite
|
|
3
|
+
} from "./chunk-2AKMBLHG.js";
|
|
4
|
+
import {
|
|
5
|
+
ArchitectureError
|
|
6
|
+
} from "./chunk-IDVLHNL2.js";
|
|
7
|
+
|
|
8
|
+
// src/adapters/bun/index.ts
|
|
9
|
+
import { test } from "bun:test";
|
|
10
|
+
function arch(name, options = {}) {
|
|
11
|
+
const { timeout, ...archerOptions } = options;
|
|
12
|
+
const suite = new ArchitectureSuite(archerOptions);
|
|
13
|
+
const check = async () => {
|
|
14
|
+
const result = await suite.check();
|
|
15
|
+
if (!result.ok) {
|
|
16
|
+
throw new ArchitectureError(result);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
if (timeout === void 0) {
|
|
20
|
+
test(name, check);
|
|
21
|
+
} else {
|
|
22
|
+
test(name, check, timeout);
|
|
23
|
+
}
|
|
24
|
+
return suite;
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
arch
|
|
28
|
+
};
|