@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
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en" data-theme="light">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<meta http-equiv="Cache-Control" content="no-store" />
|
|
7
|
+
<title>Req0 — Requirement Owner</title>
|
|
8
|
+
<link rel="icon" href="/favicon.ico" sizes="any" />
|
|
9
|
+
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
|
|
10
|
+
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
|
|
11
|
+
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
|
12
|
+
<link rel="manifest" href="/site.webmanifest" />
|
|
13
|
+
<link rel="stylesheet" href="/tokens.css" />
|
|
14
|
+
<link rel="stylesheet" href="/styles.css" />
|
|
15
|
+
</head>
|
|
16
|
+
<body>
|
|
17
|
+
<div class="app-shell app-shell-pipeline">
|
|
18
|
+
<header class="topbar">
|
|
19
|
+
<div class="topbar-start">
|
|
20
|
+
<button type="button" class="home-btn" id="home-btn" aria-label="All requirements">
|
|
21
|
+
<img class="logo-horiz" src="/req0-logo-horiz.png" alt="Req0" width="148" height="36" />
|
|
22
|
+
</button>
|
|
23
|
+
<button type="button" class="btn-secondary hidden" id="all-requirements">All requirements</button>
|
|
24
|
+
<div class="topbar-copy">
|
|
25
|
+
<p class="sidebar-pack" id="pack-title">Loading…</p>
|
|
26
|
+
<p class="going" id="how-going">Loading…</p>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="topbar-actions">
|
|
30
|
+
<p class="hint" id="next-hint" hidden></p>
|
|
31
|
+
<button type="button" class="btn-primary cta" id="next-action" disabled>…</button>
|
|
32
|
+
</div>
|
|
33
|
+
</header>
|
|
34
|
+
<div class="stack-gate hidden" id="stack-gate">
|
|
35
|
+
<div class="stack-gate-inner">
|
|
36
|
+
<h1 class="stack-gate-title" id="setup-title">Set up this project</h1>
|
|
37
|
+
<p class="stack-gate-copy" id="setup-copy">
|
|
38
|
+
Req0 writes your choices to req0.json. You can change them later by editing that file.
|
|
39
|
+
</p>
|
|
40
|
+
<div class="stack-gate-section" id="coding-section">
|
|
41
|
+
<p class="setup-label">How should code get written?</p>
|
|
42
|
+
<div class="stack-gate-actions" id="coding-bar">
|
|
43
|
+
<button type="button" class="stack-choice" data-coding="manual" id="coding-manual">
|
|
44
|
+
<strong>I’ll write the code</strong>
|
|
45
|
+
<span>Req0 stays on the requirement and QA. Implement stays off.</span>
|
|
46
|
+
</button>
|
|
47
|
+
<button type="button" class="stack-choice" data-coding="cursor" id="coding-cursor">
|
|
48
|
+
<strong>Cursor</strong>
|
|
49
|
+
<span>After Ready, Req0 starts a Cursor agent with the implement brief.</span>
|
|
50
|
+
</button>
|
|
51
|
+
<button type="button" class="stack-choice" data-coding="copilot" id="coding-copilot">
|
|
52
|
+
<strong>Copilot</strong>
|
|
53
|
+
<span>After Ready, Req0 starts GitHub Copilot CLI with the implement brief.</span>
|
|
54
|
+
</button>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
<div class="stack-gate-section hidden" id="stack-section">
|
|
58
|
+
<p class="setup-label">Which stack?</p>
|
|
59
|
+
<div class="stack-gate-actions" id="stack-bar">
|
|
60
|
+
<button type="button" class="stack-choice" data-stack="nextjs-default" id="stack-nextjs">
|
|
61
|
+
<strong>Next.js default</strong>
|
|
62
|
+
<span>App Router, TypeScript, Tailwind, shadcn/ui, Prisma, PostgreSQL, Better Auth</span>
|
|
63
|
+
</button>
|
|
64
|
+
<button type="button" class="stack-choice" data-stack="amplify-gen2" id="stack-amplify">
|
|
65
|
+
<strong>Amplify Gen 2</strong>
|
|
66
|
+
<span>Next.js, Cognito, Data, S3</span>
|
|
67
|
+
</button>
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
<p class="hint stack-gate-error" id="stack-error"></p>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
<div class="main" id="cockpit-app">
|
|
74
|
+
<div class="pack-home" id="pack-home">
|
|
75
|
+
<h1 class="pack-home-title">Requirements</h1>
|
|
76
|
+
<p class="hint hidden" id="pack-empty">No requirements yet. Create one below.</p>
|
|
77
|
+
<ul id="pack-list" class="pack-list"></ul>
|
|
78
|
+
<div class="create-bar" id="create-bar">
|
|
79
|
+
<label class="field">
|
|
80
|
+
New requirement id
|
|
81
|
+
<input class="input" id="new-id" placeholder="001" autocomplete="off" />
|
|
82
|
+
</label>
|
|
83
|
+
<button type="button" class="btn-secondary" id="create-new">Create pack</button>
|
|
84
|
+
<p class="hint" id="create-error"></p>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
|
|
88
|
+
<div class="pack-workspace hidden" id="pack-workspace">
|
|
89
|
+
<section class="pipeline" aria-label="Pipeline">
|
|
90
|
+
|
|
91
|
+
<div id="pipeline-graph" class="pipeline-graph"></div>
|
|
92
|
+
</section>
|
|
93
|
+
|
|
94
|
+
<div class="stage-workspace">
|
|
95
|
+
<nav id="stage-nav" class="stage-nav" aria-label="Stages"></nav>
|
|
96
|
+
<div class="stage-main">
|
|
97
|
+
<section class="panel stage-view workspace" id="view-define" data-view="define">
|
|
98
|
+
<div class="workspace-head">
|
|
99
|
+
<p class="editor-label" id="workspace-label">requirement.md</p>
|
|
100
|
+
<div class="review-actions hidden" id="review-actions">
|
|
101
|
+
<button type="button" class="btn-secondary cta" id="review-reject">Reject</button>
|
|
102
|
+
<button type="button" class="btn-primary cta" id="review-accept" disabled>Accept</button>
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
<div id="editor" class="markdown-editor" aria-label="requirement.md"></div>
|
|
106
|
+
<div class="review-diff hidden" id="review-diff" hidden></div>
|
|
107
|
+
<p class="save-state" id="save-state"></p>
|
|
108
|
+
</section>
|
|
109
|
+
|
|
110
|
+
<section class="panel stage-view hidden" id="view-spec" data-view="spec" hidden>
|
|
111
|
+
<div class="status-bar" id="spec-status" data-tone="idle"></div>
|
|
112
|
+
<ul id="spec-sections" class="list-rows spec-sections"></ul>
|
|
113
|
+
<p class="nav-label">Findings</p>
|
|
114
|
+
<ul id="spec-findings" class="list-rows"></ul>
|
|
115
|
+
</section>
|
|
116
|
+
|
|
117
|
+
<section class="panel stage-view hidden" id="view-judgment" data-view="judgment" hidden>
|
|
118
|
+
<div class="status-bar" id="judgment-badge" data-tone="idle"></div>
|
|
119
|
+
<div class="workspace-head">
|
|
120
|
+
<div class="stage-actions">
|
|
121
|
+
<button type="button" class="pill-btn cta" id="action-ready" hidden disabled></button>
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
<ul id="judgment-findings" class="list-rows"></ul>
|
|
125
|
+
</section>
|
|
126
|
+
|
|
127
|
+
<section class="panel stage-view hidden" id="view-implement" data-view="implement" hidden>
|
|
128
|
+
<div class="status-bar" id="implement-status" data-tone="idle"></div>
|
|
129
|
+
<div class="workspace-head">
|
|
130
|
+
<div class="stage-actions">
|
|
131
|
+
<button type="button" class="pill-btn cta" id="action-build" hidden disabled></button>
|
|
132
|
+
<button type="button" class="pill-btn cta" id="action-build-ignore" hidden disabled></button>
|
|
133
|
+
<button type="button" class="pill-btn cta" id="action-build-stop" hidden disabled></button>
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
<p class="nav-label">Activity</p>
|
|
137
|
+
<ol id="implement-activity" class="list-rows activity-log"></ol>
|
|
138
|
+
</section>
|
|
139
|
+
|
|
140
|
+
<section class="panel stage-view hidden" id="view-qa" data-view="qa" hidden>
|
|
141
|
+
<div class="status-bar" id="qa-status" data-tone="idle"></div>
|
|
142
|
+
<div class="workspace-head">
|
|
143
|
+
<div class="stage-actions">
|
|
144
|
+
<button type="button" class="pill-btn cta" id="action-proof" hidden disabled></button>
|
|
145
|
+
<button type="button" class="pill-btn cta" id="action-fix-proof" hidden disabled></button>
|
|
146
|
+
</div>
|
|
147
|
+
</div>
|
|
148
|
+
<p class="nav-label">Report</p>
|
|
149
|
+
<div id="proof-report" class="proof-report md-preview"></div>
|
|
150
|
+
<p class="nav-label">Activity</p>
|
|
151
|
+
<ol id="qa-activity" class="list-rows activity-log"></ol>
|
|
152
|
+
</section>
|
|
153
|
+
</div>
|
|
154
|
+
</div>
|
|
155
|
+
</div>
|
|
156
|
+
</div>
|
|
157
|
+
</div>
|
|
158
|
+
<dialog id="ignore-build-dialog" class="confirm-dialog">
|
|
159
|
+
<p>Was implementation successful?</p>
|
|
160
|
+
<div class="dialog-actions">
|
|
161
|
+
<button type="button" class="btn-secondary" id="ignore-build-no">No</button>
|
|
162
|
+
<button type="button" class="btn-primary" id="ignore-build-yes">Yes</button>
|
|
163
|
+
<button type="button" class="btn-secondary" id="ignore-build-cancel">Cancel</button>
|
|
164
|
+
</div>
|
|
165
|
+
</dialog>
|
|
166
|
+
<div class="context-menu hidden" id="pack-menu" role="menu" hidden>
|
|
167
|
+
<button type="button" class="context-menu-item context-menu-danger" role="menuitem" id="pack-menu-delete">
|
|
168
|
+
Delete
|
|
169
|
+
</button>
|
|
170
|
+
</div>
|
|
171
|
+
<dialog id="delete-pack-dialog" class="confirm-dialog">
|
|
172
|
+
<p id="delete-pack-copy">Delete this requirement?</p>
|
|
173
|
+
<div class="dialog-actions">
|
|
174
|
+
<button type="button" class="btn-secondary" id="delete-pack-cancel">Cancel</button>
|
|
175
|
+
<button type="button" class="btn-primary cta-danger" id="delete-pack-confirm">Delete</button>
|
|
176
|
+
</div>
|
|
177
|
+
</dialog>
|
|
178
|
+
<script src="/app.js" type="module"></script>
|
|
179
|
+
</body>
|
|
180
|
+
</html>
|