@syntesseraai/opencode-feature-factory 0.2.2 → 0.2.4
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/dist/discovery.d.ts +18 -0
- package/dist/discovery.js +189 -0
- package/dist/discovery.test.d.ts +10 -0
- package/dist/discovery.test.js +95 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +81 -0
- package/dist/output.d.ts +17 -0
- package/dist/output.js +48 -0
- package/dist/output.test.d.ts +8 -0
- package/dist/output.test.js +205 -0
- package/dist/quality-gate-config.d.ts +37 -0
- package/dist/quality-gate-config.js +84 -0
- package/dist/quality-gate-config.test.d.ts +9 -0
- package/dist/quality-gate-config.test.js +164 -0
- package/dist/stop-quality-gate.d.ts +16 -0
- package/dist/stop-quality-gate.js +378 -0
- package/dist/stop-quality-gate.test.d.ts +8 -0
- package/dist/stop-quality-gate.test.js +549 -0
- package/dist/types.d.ts +68 -0
- package/dist/types.js +1 -0
- package/package.json +8 -6
- package/src/discovery.test.ts +0 -114
- package/src/discovery.ts +0 -242
- package/src/index.ts +0 -114
- package/src/output.test.ts +0 -233
- package/src/output.ts +0 -55
- package/src/quality-gate-config.test.ts +0 -186
- package/src/quality-gate-config.ts +0 -106
- package/src/stop-quality-gate.test.ts +0 -655
- package/src/stop-quality-gate.ts +0 -450
- package/src/tools/ffAcceptance.ts +0 -31
- package/src/tools/ffMiniPlan.ts +0 -28
- package/src/tools/ffReview.ts +0 -28
- package/src/tools/ffSecurity.ts +0 -28
- package/src/tools/ffValidate.ts +0 -28
- package/src/tools/ffWellArchitected.ts +0 -30
- package/src/types.ts +0 -72
package/src/types.ts
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configuration for the StopQualityGate plugin.
|
|
3
|
-
* Read from `qualityGate` in opencode.json or .opencode/opencode.json
|
|
4
|
-
*/
|
|
5
|
-
export interface QualityGateConfig {
|
|
6
|
-
/** Custom lint command (e.g., "pnpm -s lint") */
|
|
7
|
-
lint?: string;
|
|
8
|
-
/** Custom build command (e.g., "pnpm -s build") */
|
|
9
|
-
build?: string;
|
|
10
|
-
/** Custom test command (e.g., "pnpm -s test") */
|
|
11
|
-
test?: string;
|
|
12
|
-
/** Working directory relative to repo root (default: ".") */
|
|
13
|
-
cwd?: string;
|
|
14
|
-
/** Order of steps to run (default: ["lint", "build", "test"]) */
|
|
15
|
-
steps?: ('lint' | 'build' | 'test')[];
|
|
16
|
-
/** Whether to use management/ci.sh: "auto" | "always" | "never" (default: "auto") */
|
|
17
|
-
useCiSh?: 'auto' | 'always' | 'never';
|
|
18
|
-
/** Package manager override: "auto" | "pnpm" | "bun" | "yarn" | "npm" (default: "auto") */
|
|
19
|
-
packageManager?: 'auto' | 'pnpm' | 'bun' | 'yarn' | 'npm';
|
|
20
|
-
/** Cache duration in seconds before re-running checks (default: 30) */
|
|
21
|
-
cacheSeconds?: number;
|
|
22
|
-
/** Max lines of output tail to include in failure prompt (default: 160) */
|
|
23
|
-
maxOutputLines?: number;
|
|
24
|
-
/** Max error lines to extract and show (default: 60) */
|
|
25
|
-
maxErrorLines?: number;
|
|
26
|
-
/** Feature flags for discovery */
|
|
27
|
-
include?: {
|
|
28
|
-
/** Include cargo clippy in Rust discovery (default: true) */
|
|
29
|
-
rustClippy?: boolean;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* A single command step to execute
|
|
35
|
-
*/
|
|
36
|
-
export interface CommandStep {
|
|
37
|
-
/** Name of the step (e.g., "lint", "build", "test", "ci") */
|
|
38
|
-
step: string;
|
|
39
|
-
/** The shell command to run */
|
|
40
|
-
cmd: string;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Result of executing a command step
|
|
45
|
-
*/
|
|
46
|
-
export interface StepResult {
|
|
47
|
-
/** Name of the step */
|
|
48
|
-
step: string;
|
|
49
|
-
/** The command that was run */
|
|
50
|
-
cmd: string;
|
|
51
|
-
/** Exit code (0 = success) */
|
|
52
|
-
exitCode: number;
|
|
53
|
-
/** Combined stdout + stderr output */
|
|
54
|
-
output: string;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Per-session state for caching and dirty tracking
|
|
59
|
-
*/
|
|
60
|
-
export interface SessionState {
|
|
61
|
-
/** Timestamp of last quality gate run */
|
|
62
|
-
lastRunAt: number;
|
|
63
|
-
/** Results from last run */
|
|
64
|
-
lastResults: StepResult[];
|
|
65
|
-
/** Whether files have been edited since last run */
|
|
66
|
-
dirty: boolean;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Package manager type for Node projects
|
|
71
|
-
*/
|
|
72
|
-
export type PackageManager = 'pnpm' | 'bun' | 'yarn' | 'npm';
|