@plune-ai/cairn 0.14.1 → 0.14.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/README.md +1 -0
- package/dist/agent/index.d.ts +5 -0
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/agent/index.js +54 -11
- package/dist/agent/index.js.map +1 -1
- package/dist/artifacts/contract.d.ts +1 -1
- package/dist/artifacts/contract.d.ts.map +1 -1
- package/dist/case/index.d.ts +88 -0
- package/dist/case/index.d.ts.map +1 -0
- package/dist/case/index.js +251 -0
- package/dist/case/index.js.map +1 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +31 -4
- package/dist/cli/index.js.map +1 -1
- package/dist/codegen/index.d.ts +2 -0
- package/dist/codegen/index.d.ts.map +1 -1
- package/dist/codegen/index.js +1 -1
- package/dist/codegen/index.js.map +1 -1
- package/dist/codegen/lint.d.ts +1 -1
- package/dist/codegen/lint.d.ts.map +1 -1
- package/dist/core/registry.js +1 -1
- package/dist/core/registry.js.map +1 -1
- package/dist/project/reusables.d.ts +25 -0
- package/dist/project/reusables.d.ts.map +1 -0
- package/dist/project/reusables.js +111 -0
- package/dist/project/reusables.js.map +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface Reusable {
|
|
2
|
+
/** Path relative to the repo, with `/`. */
|
|
3
|
+
file: string;
|
|
4
|
+
classes: {
|
|
5
|
+
name: string;
|
|
6
|
+
methods: string[];
|
|
7
|
+
}[];
|
|
8
|
+
exports: string[];
|
|
9
|
+
steps: string[];
|
|
10
|
+
}
|
|
11
|
+
/** What one file offers (classes with public methods, exports, step definitions). */
|
|
12
|
+
export declare function scanSource(text: string): Omit<Reusable, "file">;
|
|
13
|
+
/** Walk the repo and return every reusable file that offers something. */
|
|
14
|
+
export declare function findReusables(repoDir: string): Promise<Reusable[]>;
|
|
15
|
+
/**
|
|
16
|
+
* How a file in `fromDir` imports `target`: `./x` or `../x`, with `/`. Across Windows drives there is no relative path,
|
|
17
|
+
* so the absolute one is given (with `/`) instead of a broken `./D:/…`.
|
|
18
|
+
*/
|
|
19
|
+
export declare function importPath(fromDir: string, target: string): string;
|
|
20
|
+
/** One line per file, paths relative to the folder the spec is written to (imports resolve from there). */
|
|
21
|
+
export declare function formatReusables(found: readonly Reusable[], at: {
|
|
22
|
+
repoDir: string;
|
|
23
|
+
specDir: string;
|
|
24
|
+
}): string;
|
|
25
|
+
//# sourceMappingURL=reusables.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reusables.d.ts","sourceRoot":"","sources":["../../src/project/reusables.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,QAAQ;IACvB,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,CAAA;KAAE,EAAE,CAAC;IAC/C,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAsBD,qFAAqF;AACrF,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,CAY/D;AAED,0EAA0E;AAC1E,wBAAsB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CA+BxE;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAIlE;AAED,2GAA2G;AAC3G,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,QAAQ,EAAE,EAAE,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAgB5G"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ADR-0024 §4 — what a target repository already has for a generated spec to reuse: page objects (exported classes and
|
|
3
|
+
* their public methods), helpers and fixtures (exported functions / consts), Cucumber step definitions.
|
|
4
|
+
*
|
|
5
|
+
* Read-only and best-effort, like `parseConfigConventions`: text regexes over files that sit in a reusable place
|
|
6
|
+
* (`pages/`, `page-objects/`, `steps/`, `fixtures/`, `support/`, `*.page.ts`, `*.steps.ts`, `fixtures.ts`), never an
|
|
7
|
+
* import or an evaluation of the repo's code.
|
|
8
|
+
*/
|
|
9
|
+
import { readdir, readFile, stat } from "node:fs/promises";
|
|
10
|
+
import { isAbsolute, join, relative, sep, win32 } from "node:path";
|
|
11
|
+
const SKIP_DIRS = new Set(["node_modules", ".git", "dist", "build", "out", "coverage", "runs", "playwright-report", "test-results", ".next", ".cairn-cache"]);
|
|
12
|
+
const REUSE_DIR = /^(pages?|page-?objects?|pageobjects|pom|steps?|step-?definitions|support|fixtures?|helpers)$/i;
|
|
13
|
+
const REUSE_FILE = /(?:\.(?:page|po|steps?|fixtures?)|^(?:fixtures?|steps?))\.[cm]?[jt]sx?$/i;
|
|
14
|
+
const CODE_FILE = /\.[cm]?[jt]sx?$/i;
|
|
15
|
+
const NOT_REUSABLE = /\.(?:spec|test)\.[cm]?[jt]sx?$|\.d\.ts$/i;
|
|
16
|
+
// ponytail: fixed caps keep a huge monorepo from stalling the run; raise them when a real repo misses its page objects.
|
|
17
|
+
const MAX_ENTRIES = 5000;
|
|
18
|
+
const MAX_FILES = 200;
|
|
19
|
+
const MAX_FILE_BYTES = 64 * 1024;
|
|
20
|
+
const MAX_TEXT = 6000;
|
|
21
|
+
const KEYWORDS = new Set(["constructor", "if", "for", "while", "switch", "catch", "function", "return", "await"]);
|
|
22
|
+
// A member declaration: `name(…) {` (or a parameter list that goes on to the next line), or an arrow property
|
|
23
|
+
// `name = async (…) =>`. A call statement (`expect(x).toBe(y);`) reaches its `;` first and is skipped.
|
|
24
|
+
// ponytail: a call that takes a callback (`helper(() => {`) still reads as a method; a TS parser if that noise matters.
|
|
25
|
+
const METHOD = /^\s+(?:(?:public|static|readonly|async)\s+)*(\w+)\s*(?:\([^;{]*(?:\{|$)|=\s*(?:async\s*)?\([^)]*\)\s*(?::[^=;]*)?=>)/gm;
|
|
26
|
+
const CLASS = /export\s+(?:default\s+)?(?:abstract\s+)?class\s+(\w+)/g;
|
|
27
|
+
const EXPORT = /export\s+(?:async\s+function|function|const|let)\s+(\w+)/g;
|
|
28
|
+
const STEP = /\b(Given|When|Then)\(\s*('(?:[^'\\\n]|\\.)*'|"(?:[^"\\\n]|\\.)*"|`[^`]*`|\/(?:[^/\\\n]|\\.)+\/)/g;
|
|
29
|
+
/** What one file offers (classes with public methods, exports, step definitions). */
|
|
30
|
+
export function scanSource(text) {
|
|
31
|
+
const starts = [...text.matchAll(CLASS)];
|
|
32
|
+
const classes = starts.map((m, i) => {
|
|
33
|
+
const body = text.slice(m.index + m[0].length, starts[i + 1]?.index ?? text.length);
|
|
34
|
+
const methods = [...new Set([...body.matchAll(METHOD)].map((x) => x[1]).filter((n) => !KEYWORDS.has(n)))];
|
|
35
|
+
return { name: m[1], methods };
|
|
36
|
+
});
|
|
37
|
+
return {
|
|
38
|
+
classes,
|
|
39
|
+
exports: [...text.matchAll(EXPORT)].map((m) => m[1]),
|
|
40
|
+
steps: [...text.matchAll(STEP)].map((m) => `${m[1]} ${m[2]}`),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
/** Walk the repo and return every reusable file that offers something. */
|
|
44
|
+
export async function findReusables(repoDir) {
|
|
45
|
+
const out = [];
|
|
46
|
+
let seen = 0;
|
|
47
|
+
let read = 0;
|
|
48
|
+
const walk = async (dir, inReuseDir) => {
|
|
49
|
+
let entries;
|
|
50
|
+
try {
|
|
51
|
+
entries = await readdir(dir, { withFileTypes: true });
|
|
52
|
+
}
|
|
53
|
+
catch {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
entries.sort((a, b) => a.name.localeCompare(b.name));
|
|
57
|
+
for (const e of entries) {
|
|
58
|
+
if (++seen > MAX_ENTRIES || read >= MAX_FILES)
|
|
59
|
+
return;
|
|
60
|
+
const full = join(dir, e.name);
|
|
61
|
+
if (e.isDirectory()) {
|
|
62
|
+
if (!SKIP_DIRS.has(e.name) && !e.name.startsWith("."))
|
|
63
|
+
await walk(full, inReuseDir || REUSE_DIR.test(e.name));
|
|
64
|
+
continue;
|
|
65
|
+
}
|
|
66
|
+
if (!e.isFile() || !CODE_FILE.test(e.name) || NOT_REUSABLE.test(e.name))
|
|
67
|
+
continue;
|
|
68
|
+
if (!inReuseDir && !REUSE_FILE.test(e.name))
|
|
69
|
+
continue;
|
|
70
|
+
if ((await stat(full)).size > MAX_FILE_BYTES)
|
|
71
|
+
continue;
|
|
72
|
+
read++;
|
|
73
|
+
const found = scanSource(await readFile(full, "utf8"));
|
|
74
|
+
if (found.classes.length || found.exports.length || found.steps.length) {
|
|
75
|
+
out.push({ file: relative(repoDir, full).split(sep).join("/"), ...found });
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
await walk(repoDir, false);
|
|
80
|
+
return out;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* How a file in `fromDir` imports `target`: `./x` or `../x`, with `/`. Across Windows drives there is no relative path,
|
|
84
|
+
* so the absolute one is given (with `/`) instead of a broken `./D:/…`.
|
|
85
|
+
*/
|
|
86
|
+
export function importPath(fromDir, target) {
|
|
87
|
+
const rel = relative(fromDir, target).split(sep).join("/");
|
|
88
|
+
if (isAbsolute(rel) || win32.isAbsolute(rel))
|
|
89
|
+
return rel;
|
|
90
|
+
return rel.startsWith(".") ? rel : `./${rel}`;
|
|
91
|
+
}
|
|
92
|
+
/** One line per file, paths relative to the folder the spec is written to (imports resolve from there). */
|
|
93
|
+
export function formatReusables(found, at) {
|
|
94
|
+
const lines = [];
|
|
95
|
+
let size = 0;
|
|
96
|
+
for (const r of found) {
|
|
97
|
+
const path = importPath(at.specDir, join(at.repoDir, r.file));
|
|
98
|
+
const parts = [
|
|
99
|
+
...r.classes.map((c) => `class ${c.name} { ${c.methods.join(", ")} }`),
|
|
100
|
+
...(r.exports.length ? [`exports ${r.exports.join(", ")}`] : []),
|
|
101
|
+
...(r.steps.length ? [`steps ${r.steps.slice(0, 20).join("; ")}`] : []),
|
|
102
|
+
];
|
|
103
|
+
const line = `${path} — ${parts.join(" · ")}`;
|
|
104
|
+
if (size + line.length > MAX_TEXT)
|
|
105
|
+
break;
|
|
106
|
+
size += line.length + 1;
|
|
107
|
+
lines.push(line);
|
|
108
|
+
}
|
|
109
|
+
return lines.join("\n");
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=reusables.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reusables.js","sourceRoot":"","sources":["../../src/project/reusables.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAUnE,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,CAAC,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,mBAAmB,EAAE,cAAc,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC;AAC9J,MAAM,SAAS,GAAG,+FAA+F,CAAC;AAClH,MAAM,UAAU,GAAG,0EAA0E,CAAC;AAC9F,MAAM,SAAS,GAAG,kBAAkB,CAAC;AACrC,MAAM,YAAY,GAAG,0CAA0C,CAAC;AAChE,wHAAwH;AACxH,MAAM,WAAW,GAAG,IAAI,CAAC;AACzB,MAAM,SAAS,GAAG,GAAG,CAAC;AACtB,MAAM,cAAc,GAAG,EAAE,GAAG,IAAI,CAAC;AACjC,MAAM,QAAQ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AAI,GAAG,GAAG,IAAI,MAAM,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QAC9C,IAAI,IAAI,GAAG,IAAI,CAAC,MAAM,GAAG,QAAQ;YAAE,MAAM;QACzC,IAAI,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QACxB,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACnB,CAAC;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plune-ai/cairn",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.2",
|
|
4
4
|
"description": "Cairn — an AI that walks your system and leaves a trail of tests. Autonomous QA agent (UI today; API/unit/docs planned) powered by Claude/OpenRouter, with self-improvement via Langfuse.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,7 +37,8 @@
|
|
|
37
37
|
"exports": {
|
|
38
38
|
".": {
|
|
39
39
|
"types": "./dist/index.d.ts",
|
|
40
|
-
"import": "./dist/index.js"
|
|
40
|
+
"import": "./dist/index.js",
|
|
41
|
+
"default": "./dist/index.js"
|
|
41
42
|
}
|
|
42
43
|
},
|
|
43
44
|
"files": [
|