@richjava/req0 0.1.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/LICENSE +21 -0
- package/README.md +117 -0
- package/cockpit/android-chrome-192x192.png +0 -0
- package/cockpit/android-chrome-512x512.png +0 -0
- package/cockpit/app.js +1710 -0
- package/cockpit/apple-touch-icon.png +0 -0
- package/cockpit/favicon-16x16.png +0 -0
- package/cockpit/favicon-32x32.png +0 -0
- package/cockpit/favicon.ico +0 -0
- package/cockpit/index.html +180 -0
- package/cockpit/markdown-editor.js +93 -0
- package/cockpit/req0-logo-horiz.png +0 -0
- package/cockpit/req0-logo-stacked.png +0 -0
- package/cockpit/site.webmanifest +19 -0
- package/cockpit/styles.css +1710 -0
- package/cockpit/tokens.css +118 -0
- package/dist/adapter.d.ts +5 -0
- package/dist/adapter.js +16 -0
- package/dist/browser.d.ts +33 -0
- package/dist/browser.js +524 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +265 -0
- package/dist/compile.d.ts +5 -0
- package/dist/compile.js +456 -0
- package/dist/diff.d.ts +15 -0
- package/dist/diff.js +114 -0
- package/dist/fix-from-proof.d.ts +13 -0
- package/dist/fix-from-proof.js +61 -0
- package/dist/gates.d.ts +7 -0
- package/dist/gates.js +7 -0
- package/dist/implement-brief.d.ts +9 -0
- package/dist/implement-brief.js +142 -0
- package/dist/implement.d.ts +70 -0
- package/dist/implement.js +615 -0
- package/dist/improve-log.d.ts +11 -0
- package/dist/improve-log.js +38 -0
- package/dist/improve-review.d.ts +45 -0
- package/dist/improve-review.js +182 -0
- package/dist/improve.d.ts +16 -0
- package/dist/improve.js +127 -0
- package/dist/jev-pack.d.ts +2 -0
- package/dist/jev-pack.js +114 -0
- package/dist/jev.d.ts +23 -0
- package/dist/jev.js +142 -0
- package/dist/pack.d.ts +101 -0
- package/dist/pack.js +609 -0
- package/dist/personas.d.ts +13 -0
- package/dist/personas.js +88 -0
- package/dist/proof-report.d.ts +8 -0
- package/dist/proof-report.js +82 -0
- package/dist/proof.d.ts +45 -0
- package/dist/proof.js +394 -0
- package/dist/qa-plan.d.ts +6 -0
- package/dist/qa-plan.js +58 -0
- package/dist/ready.d.ts +29 -0
- package/dist/ready.js +317 -0
- package/dist/runtime.d.ts +25 -0
- package/dist/runtime.js +125 -0
- package/dist/server.d.ts +15 -0
- package/dist/server.js +588 -0
- package/dist/stack.d.ts +35 -0
- package/dist/stack.js +220 -0
- package/dist/stages.d.ts +15 -0
- package/dist/stages.js +345 -0
- package/dist/template.d.ts +5 -0
- package/dist/template.js +55 -0
- package/dist/types.d.ts +282 -0
- package/dist/types.js +12 -0
- package/docs/requirement-template.md +341 -0
- package/package.json +81 -0
package/dist/pack.d.ts
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { type LaunchAdapterResult } from "./implement.js";
|
|
2
|
+
import { type JevClient } from "./jev.js";
|
|
3
|
+
import { type PersonasResult } from "./personas.js";
|
|
4
|
+
import { type ProofDriver } from "./proof.js";
|
|
5
|
+
import { type RuntimeResult } from "./runtime.js";
|
|
6
|
+
import type { AdapterId, CompileResult, PackListItem, ProgressFn } from "./types.js";
|
|
7
|
+
export declare const REQUIREMENT_FILE = "requirement.md";
|
|
8
|
+
export declare const PERSONAS_FILE: string;
|
|
9
|
+
export declare const RUNTIME_FILE: string;
|
|
10
|
+
export type PackPaths = {
|
|
11
|
+
id: string;
|
|
12
|
+
root: string;
|
|
13
|
+
requirement: string;
|
|
14
|
+
personas: string;
|
|
15
|
+
derived: string;
|
|
16
|
+
spec: string;
|
|
17
|
+
health: string;
|
|
18
|
+
status: string;
|
|
19
|
+
jevPack: string;
|
|
20
|
+
jevRun: string;
|
|
21
|
+
implementBrief: string;
|
|
22
|
+
fixFromProofBrief: string;
|
|
23
|
+
improveBrief: string;
|
|
24
|
+
improveSnapshot: string;
|
|
25
|
+
improveLog: string;
|
|
26
|
+
buildRun: string;
|
|
27
|
+
runtime: string;
|
|
28
|
+
qaPlan: string;
|
|
29
|
+
proofRun: string;
|
|
30
|
+
proofReport: string;
|
|
31
|
+
proveLog: string;
|
|
32
|
+
};
|
|
33
|
+
export declare function packPaths(root: string): PackPaths;
|
|
34
|
+
export declare function isPackDir(dir: string): Promise<boolean>;
|
|
35
|
+
export declare function resolveCockpitPack(cwd: string): Promise<PackPaths | null>;
|
|
36
|
+
export declare function resolvePack(cwd: string): Promise<PackPaths | null>;
|
|
37
|
+
export declare function summarizePacks(packs: PackPaths[]): Promise<PackListItem[]>;
|
|
38
|
+
export declare function listPacks(requirementsDir: string): Promise<PackPaths[]>;
|
|
39
|
+
export declare function findRequirementsDir(cwd: string): Promise<string | null>;
|
|
40
|
+
export declare function readMarkdown(paths: PackPaths): Promise<string>;
|
|
41
|
+
export declare function loadPersonas(paths: PackPaths): Promise<PersonasResult>;
|
|
42
|
+
export declare function compilePack(paths: PackPaths): Promise<CompileResult>;
|
|
43
|
+
export declare function checkPack(paths: PackPaths, client?: JevClient): Promise<CompileResult>;
|
|
44
|
+
export declare function persistDerived(paths: PackPaths, result: CompileResult): Promise<void>;
|
|
45
|
+
export declare function createPack(root: string): Promise<PackPaths>;
|
|
46
|
+
export declare function deletePack(paths: PackPaths): Promise<void>;
|
|
47
|
+
export declare function writeRuntimeStubIfMissing(paths: PackPaths): Promise<boolean>;
|
|
48
|
+
export declare function implementPack(paths: PackPaths, options?: {
|
|
49
|
+
adapter?: AdapterId;
|
|
50
|
+
stack?: string;
|
|
51
|
+
fromProof?: boolean;
|
|
52
|
+
onLogLine?: (line: string) => void;
|
|
53
|
+
}): Promise<{
|
|
54
|
+
result: CompileResult;
|
|
55
|
+
message: string;
|
|
56
|
+
launch?: LaunchAdapterResult;
|
|
57
|
+
}>;
|
|
58
|
+
export declare function finishImplement(paths: PackPaths, launch: LaunchAdapterResult, adapter: AdapterId): Promise<{
|
|
59
|
+
result: CompileResult;
|
|
60
|
+
message: string;
|
|
61
|
+
}>;
|
|
62
|
+
export declare class StopImplementLockedError extends Error {
|
|
63
|
+
readonly code = "stop_implement_gate";
|
|
64
|
+
constructor(message?: string);
|
|
65
|
+
}
|
|
66
|
+
export declare function stopImplement(paths: PackPaths, launch: LaunchAdapterResult, reason?: string): Promise<{
|
|
67
|
+
result: CompileResult;
|
|
68
|
+
message: string;
|
|
69
|
+
}>;
|
|
70
|
+
export declare function ignoreBuild(paths: PackPaths, successful: boolean): Promise<{
|
|
71
|
+
result: CompileResult;
|
|
72
|
+
message: string;
|
|
73
|
+
}>;
|
|
74
|
+
export declare function writeImproveBrief(paths: PackPaths, compiled?: CompileResult | null): Promise<{
|
|
75
|
+
result: CompileResult;
|
|
76
|
+
brief: string;
|
|
77
|
+
}>;
|
|
78
|
+
export declare function launchImprove(paths: PackPaths, options?: {
|
|
79
|
+
adapter?: AdapterId;
|
|
80
|
+
}): Promise<{
|
|
81
|
+
ok: boolean;
|
|
82
|
+
message: string;
|
|
83
|
+
}>;
|
|
84
|
+
export declare function improvePack(paths: PackPaths, options?: {
|
|
85
|
+
adapter?: AdapterId;
|
|
86
|
+
}): Promise<{
|
|
87
|
+
result: CompileResult;
|
|
88
|
+
message: string;
|
|
89
|
+
brief: string;
|
|
90
|
+
}>;
|
|
91
|
+
export declare function writeRequirement(paths: PackPaths, markdown: string): Promise<CompileResult>;
|
|
92
|
+
export declare function loadRuntime(paths: PackPaths): Promise<RuntimeResult>;
|
|
93
|
+
export declare function provePack(paths: PackPaths, deps?: {
|
|
94
|
+
driver?: ProofDriver;
|
|
95
|
+
client?: JevClient;
|
|
96
|
+
waitForUrl?: (url: string) => Promise<boolean>;
|
|
97
|
+
onProgress?: ProgressFn;
|
|
98
|
+
}): Promise<{
|
|
99
|
+
result: CompileResult;
|
|
100
|
+
message: string;
|
|
101
|
+
}>;
|