@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.
Files changed (70) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +117 -0
  3. package/cockpit/android-chrome-192x192.png +0 -0
  4. package/cockpit/android-chrome-512x512.png +0 -0
  5. package/cockpit/app.js +1710 -0
  6. package/cockpit/apple-touch-icon.png +0 -0
  7. package/cockpit/favicon-16x16.png +0 -0
  8. package/cockpit/favicon-32x32.png +0 -0
  9. package/cockpit/favicon.ico +0 -0
  10. package/cockpit/index.html +180 -0
  11. package/cockpit/markdown-editor.js +93 -0
  12. package/cockpit/req0-logo-horiz.png +0 -0
  13. package/cockpit/req0-logo-stacked.png +0 -0
  14. package/cockpit/site.webmanifest +19 -0
  15. package/cockpit/styles.css +1710 -0
  16. package/cockpit/tokens.css +118 -0
  17. package/dist/adapter.d.ts +5 -0
  18. package/dist/adapter.js +16 -0
  19. package/dist/browser.d.ts +33 -0
  20. package/dist/browser.js +524 -0
  21. package/dist/cli.d.ts +2 -0
  22. package/dist/cli.js +265 -0
  23. package/dist/compile.d.ts +5 -0
  24. package/dist/compile.js +456 -0
  25. package/dist/diff.d.ts +15 -0
  26. package/dist/diff.js +114 -0
  27. package/dist/fix-from-proof.d.ts +13 -0
  28. package/dist/fix-from-proof.js +61 -0
  29. package/dist/gates.d.ts +7 -0
  30. package/dist/gates.js +7 -0
  31. package/dist/implement-brief.d.ts +9 -0
  32. package/dist/implement-brief.js +142 -0
  33. package/dist/implement.d.ts +70 -0
  34. package/dist/implement.js +615 -0
  35. package/dist/improve-log.d.ts +11 -0
  36. package/dist/improve-log.js +38 -0
  37. package/dist/improve-review.d.ts +45 -0
  38. package/dist/improve-review.js +182 -0
  39. package/dist/improve.d.ts +16 -0
  40. package/dist/improve.js +127 -0
  41. package/dist/jev-pack.d.ts +2 -0
  42. package/dist/jev-pack.js +114 -0
  43. package/dist/jev.d.ts +23 -0
  44. package/dist/jev.js +142 -0
  45. package/dist/pack.d.ts +101 -0
  46. package/dist/pack.js +609 -0
  47. package/dist/personas.d.ts +13 -0
  48. package/dist/personas.js +88 -0
  49. package/dist/proof-report.d.ts +8 -0
  50. package/dist/proof-report.js +82 -0
  51. package/dist/proof.d.ts +45 -0
  52. package/dist/proof.js +394 -0
  53. package/dist/qa-plan.d.ts +6 -0
  54. package/dist/qa-plan.js +58 -0
  55. package/dist/ready.d.ts +29 -0
  56. package/dist/ready.js +317 -0
  57. package/dist/runtime.d.ts +25 -0
  58. package/dist/runtime.js +125 -0
  59. package/dist/server.d.ts +15 -0
  60. package/dist/server.js +588 -0
  61. package/dist/stack.d.ts +35 -0
  62. package/dist/stack.js +220 -0
  63. package/dist/stages.d.ts +15 -0
  64. package/dist/stages.js +345 -0
  65. package/dist/template.d.ts +5 -0
  66. package/dist/template.js +55 -0
  67. package/dist/types.d.ts +282 -0
  68. package/dist/types.js +12 -0
  69. package/docs/requirement-template.md +341 -0
  70. package/package.json +81 -0
@@ -0,0 +1,282 @@
1
+ export declare const REQUIRED_H2: readonly ["Business Rules", "Use Cases", "Roles & Permissions"];
2
+ export declare const OPTIONAL_H2: readonly ["Overview", "Out of scope", "Open questions", "Entities", "UI notes"];
3
+ export type RequiredH2 = (typeof REQUIRED_H2)[number];
4
+ export type OptionalH2 = (typeof OPTIONAL_H2)[number];
5
+ export type FindingSeverity = "error" | "warning";
6
+ export type Finding = {
7
+ line: number;
8
+ severity: FindingSeverity;
9
+ message: string;
10
+ };
11
+ export type Permission = "allow" | "deny";
12
+ export type BusinessRule = {
13
+ id: string;
14
+ title: string;
15
+ statement: string;
16
+ observable: string;
17
+ line: number;
18
+ };
19
+ export type UseCase = {
20
+ id: string;
21
+ title: string;
22
+ actor: string;
23
+ preconditions: string;
24
+ steps: string[];
25
+ outcome: string;
26
+ alternatePaths?: string;
27
+ line: number;
28
+ };
29
+ export type PermissionMatrix = {
30
+ roles: string[];
31
+ actions: {
32
+ id: string;
33
+ permissions: Record<string, Permission>;
34
+ line: number;
35
+ }[];
36
+ };
37
+ export type SpecAst = {
38
+ requirementId: string;
39
+ title: string;
40
+ optional: Partial<Record<OptionalH2, string>>;
41
+ businessRules: BusinessRule[];
42
+ useCases: UseCase[];
43
+ matrix: PermissionMatrix;
44
+ };
45
+ export type MeterState = "not_yet" | "empty" | "drafting" | "valid";
46
+ export type NextAction = {
47
+ id: string;
48
+ label: string;
49
+ enabled: boolean;
50
+ hint?: string;
51
+ };
52
+ export type StageAction = {
53
+ id: string;
54
+ label: string;
55
+ enabled: boolean;
56
+ hint?: string;
57
+ hidden?: boolean;
58
+ };
59
+ export type StageBoard = {
60
+ ready: StageAction;
61
+ build: StageAction;
62
+ proof: StageAction;
63
+ /** Primary after a failed or review proof. Reimplement stays on the build pill. */
64
+ fixFromProof?: StageAction;
65
+ /** Shown on a failed Build so the owner can unlock Prove. */
66
+ ignoreBuild?: StageAction;
67
+ /** Shown while Implement is running. */
68
+ stopImplement?: StageAction;
69
+ };
70
+ /** Cockpit display only. health.json still uses spec / ready / build / proof. */
71
+ export type PipelineTone = "idle" | "draft" | "ok" | "bad" | "progress";
72
+ export type PipelineViewId = "define" | "spec" | "judgment" | "implement" | "qa";
73
+ export type PipelineNodeId = "start" | "define" | "implement" | "qa" | "end";
74
+ export type PipelineBranch = {
75
+ id: "spec" | "judgment";
76
+ label: string;
77
+ view: PipelineViewId;
78
+ tone: PipelineTone;
79
+ badge?: string;
80
+ mark?: "fail" | "block";
81
+ };
82
+ export type PipelineNode = {
83
+ id: PipelineNodeId;
84
+ label: string;
85
+ view: PipelineViewId;
86
+ tone: PipelineTone;
87
+ badge?: string;
88
+ mark?: "fail" | "block";
89
+ hidden?: boolean;
90
+ children?: PipelineBranch[];
91
+ };
92
+ export type PipelineView = {
93
+ nodes: PipelineNode[];
94
+ implementOwned: boolean;
95
+ };
96
+ /** Cockpit home row. File keys stay spec / ready / build / proof. */
97
+ export type PackListMeterKey = "spec" | "ready" | "build" | "proof";
98
+ export type PackListMeter = {
99
+ key: PackListMeterKey;
100
+ label: string;
101
+ tone: PipelineTone;
102
+ badge: string;
103
+ };
104
+ export type PackListItem = {
105
+ id: string;
106
+ title: string;
107
+ meters: PackListMeter[];
108
+ };
109
+ export type ReadyState = "not_yet" | "blocked" | "ready";
110
+ export type ReadyReason = "spec_invalid" | "no_api_key" | "unchecked" | "blockers" | "passed";
111
+ export type ReadyFindingKind = "persona_missing" | "untestable_rule" | "matrix_contradiction" | "pack_gate" | "section_score" | "uncertain";
112
+ export type ReadyFinding = {
113
+ id: string;
114
+ kind: ReadyFindingKind;
115
+ severity: "blocker" | "nit";
116
+ message: string;
117
+ specId?: string;
118
+ line?: number;
119
+ noul?: number;
120
+ };
121
+ export type ReadyMeter = {
122
+ state: ReadyState;
123
+ reason: ReadyReason;
124
+ blockers: number;
125
+ nits: number;
126
+ nextId?: string;
127
+ packNoul?: number;
128
+ jevCurrent?: boolean;
129
+ alreadyImproved?: string[];
130
+ findings: ReadyFinding[];
131
+ };
132
+ export type JevQuestionType = "noul" | "choice" | "score";
133
+ export type JevQuestion = {
134
+ id: string;
135
+ type: JevQuestionType;
136
+ instructions: string;
137
+ criteria?: Record<string, string> | string[];
138
+ specId?: string;
139
+ section?: string;
140
+ state: Record<string, unknown>;
141
+ };
142
+ export type JevPack = {
143
+ requirementId: string;
144
+ catalog: "m2-authoring-v1" | "m4-proof-v1";
145
+ questions: JevQuestion[];
146
+ };
147
+ export type JevAnswer = {
148
+ id: string;
149
+ type: JevQuestionType;
150
+ noul?: number;
151
+ choice?: string;
152
+ score?: number;
153
+ confidence?: number;
154
+ };
155
+ export type JevRun = {
156
+ specHash: string;
157
+ checkedAt: string;
158
+ answers: JevAnswer[];
159
+ };
160
+ export type AdapterId = "cursor" | "copilot" | "manual";
161
+ export type StackChoice = {
162
+ id: string;
163
+ label: string;
164
+ };
165
+ export type Req0Config = {
166
+ adapter?: AdapterId;
167
+ stack?: StackChoice;
168
+ /** When false, Req0 does not own Implement. Prove uses Ready + runtime.yaml. */
169
+ implement?: boolean;
170
+ };
171
+ export type ProductRepo = {
172
+ root: string | null;
173
+ empty: boolean;
174
+ stack: StackChoice;
175
+ recorded: boolean;
176
+ adapter: AdapterId;
177
+ /** False until req0.json records adapter or implement: false. */
178
+ adapterRecorded?: boolean;
179
+ implement: boolean;
180
+ };
181
+ export type BuildState = "not_yet" | "running" | "succeeded" | "failed" | "stale";
182
+ export type BuildMeter = {
183
+ state: BuildState;
184
+ /** False when req0.json sets implement: false. Prove does not need a build stamp. */
185
+ owned?: boolean;
186
+ adapter?: AdapterId;
187
+ /** Empty product repo with no stack in req0.json. Implement stays off until one is recorded. */
188
+ needsStack?: boolean;
189
+ message?: string;
190
+ /** Owner ignored a failed Build so Prove can run. */
191
+ ignored?: boolean;
192
+ };
193
+ export type BuildRun = {
194
+ specHash: string;
195
+ state: "running" | "succeeded" | "failed";
196
+ adapter: AdapterId;
197
+ at: string;
198
+ message?: string;
199
+ /** Agent pid this Req0 process is following. Ignored after restart. */
200
+ pid?: number;
201
+ /** Owner chose Ignore. Prove may run even if state is failed. */
202
+ ignored?: boolean;
203
+ };
204
+ export type ProofState = "not_yet" | "passed" | "failed" | "needs_review" | "stale";
205
+ export type ProofFinding = {
206
+ id: string;
207
+ specId: string;
208
+ severity: "fail" | "review";
209
+ message: string;
210
+ noul?: number;
211
+ };
212
+ export type ProofMeter = {
213
+ state: ProofState;
214
+ runtime: boolean;
215
+ message?: string;
216
+ passed?: number;
217
+ failed?: number;
218
+ review?: number;
219
+ findings: ProofFinding[];
220
+ };
221
+ export type ProofVerdict = "pass" | "fail" | "review";
222
+ export type ProofCaseResult = {
223
+ id: string;
224
+ kind: "allow" | "deny";
225
+ verdict: ProofVerdict;
226
+ noul?: number;
227
+ message: string;
228
+ };
229
+ export type ProofRun = {
230
+ specHash: string;
231
+ checkedAt: string;
232
+ buildAt?: string;
233
+ boot: {
234
+ ok: boolean;
235
+ message?: string;
236
+ };
237
+ cases: ProofCaseResult[];
238
+ };
239
+ export type ActivityLevel = "info" | "ok" | "error";
240
+ export type ActivityLine = {
241
+ at: string;
242
+ level: ActivityLevel;
243
+ message: string;
244
+ };
245
+ export type ProgressFn = (message: string, level?: ActivityLevel) => void;
246
+ export type Health = {
247
+ requirementId: string;
248
+ spec: {
249
+ state: "empty" | "drafting" | "valid";
250
+ findings: Finding[];
251
+ };
252
+ ready: ReadyMeter;
253
+ build: BuildMeter;
254
+ proof: ProofMeter;
255
+ nextAction: NextAction;
256
+ stages?: StageBoard;
257
+ howThisIsGoing: string;
258
+ };
259
+ export type CompileResult = {
260
+ spec: SpecAst | null;
261
+ health: Health;
262
+ markdown: string;
263
+ jevPack?: JevPack;
264
+ implementBrief?: string;
265
+ qaPlan?: QaPlan;
266
+ };
267
+ export type QaCaseKind = "allow" | "deny";
268
+ export type QaCase = {
269
+ id: string;
270
+ specId: string;
271
+ kind: QaCaseKind;
272
+ actor: string;
273
+ control: string | null;
274
+ steps: string[];
275
+ preconditions: string;
276
+ outcome: string;
277
+ };
278
+ export type QaPlan = {
279
+ requirementId: string;
280
+ specHash: string;
281
+ cases: QaCase[];
282
+ };
package/dist/types.js ADDED
@@ -0,0 +1,12 @@
1
+ export const REQUIRED_H2 = [
2
+ "Business Rules",
3
+ "Use Cases",
4
+ "Roles & Permissions",
5
+ ];
6
+ export const OPTIONAL_H2 = [
7
+ "Overview",
8
+ "Out of scope",
9
+ "Open questions",
10
+ "Entities",
11
+ "UI notes",
12
+ ];
@@ -0,0 +1,341 @@
1
+ # Untitled Requirement
2
+
3
+ > **Template guidance**
4
+ >
5
+ > - **[Required]** — include in every requirement.
6
+ > - **[Conditional]** — include when relevant to the requirement.
7
+ > - Remove these guidance labels and any unused conditional sections when finalising the requirement.
8
+
9
+ ---
10
+
11
+ ## Description [Required]
12
+
13
+ Describe the feature and its purpose.
14
+
15
+ Include:
16
+
17
+ - What capability is being introduced or changed.
18
+ - Where it exists in the application.
19
+ - The main user outcome.
20
+ - Important high-level boundaries or constraints.
21
+
22
+ Keep this focused on **what the requirement does**, rather than detailed interaction rules.
23
+
24
+ ---
25
+
26
+ ## Actors and Permissions [Required]
27
+
28
+ ### Actors [Required]
29
+
30
+ List the roles that directly participate in this requirement.
31
+
32
+ - `RoleName`
33
+ - `RoleName`
34
+
35
+ Briefly explain why these roles are actors where useful.
36
+
37
+ ### Role Permissions [Required]
38
+
39
+ Describe what each relevant role can and cannot do.
40
+
41
+ Explicitly identify important permission differences between roles.
42
+
43
+ Where permissions are defined by another requirement or shared Roles and Permissions document, reference that source rather than unnecessarily duplicating it.
44
+
45
+ ### Scope [Required]
46
+
47
+ Define the permission and access boundaries relevant to this requirement.
48
+
49
+ For example:
50
+
51
+ - The user must have access to the relevant project/client.
52
+ - The feature applies only within a particular page or workflow.
53
+ - The requirement does not grant access to other areas of the application.
54
+ - Related permissions remain governed elsewhere.
55
+
56
+ **This requirement does not grant permissions beyond the overarching Roles and Permissions definition.**
57
+
58
+ ---
59
+
60
+ ## Definitions [Conditional]
61
+
62
+ Include when the requirement introduces terminology, concepts, states, or distinctions that need a precise definition.
63
+
64
+ ### Term Name
65
+
66
+ Definition of the term.
67
+
68
+ ### Another Term
69
+
70
+ Definition of the term.
71
+
72
+ ---
73
+
74
+ ## Data Definition [Conditional]
75
+
76
+ Include when the requirement introduces or modifies structured data.
77
+
78
+ ### Entity / Value Name
79
+
80
+ Describe the data represented by the requirement.
81
+
82
+ | Field | Type | Required | Validation |
83
+ |---|---|---:|---|
84
+ | Field Name | String | Yes | Validation rule |
85
+ | Field Name | Integer | No | Validation rule |
86
+
87
+ Include relevant rules for:
88
+
89
+ - data types
90
+ - required/optional values
91
+ - valid ranges
92
+ - formats
93
+ - units
94
+ - defaults
95
+ - relationships
96
+ - persistence/versioning
97
+
98
+ Do not include this section when the requirement does not introduce or materially change data.
99
+
100
+ ---
101
+
102
+ ## Business Rules [Required]
103
+
104
+ Define the complete functional rules of the requirement.
105
+
106
+ ### BR_XXX.1 Rule Name
107
+
108
+ Describe the rule precisely.
109
+
110
+ ### BR_XXX.2 Rule Name
111
+
112
+ Describe the next rule.
113
+
114
+ ### BR_XXX.3 Rule Name
115
+
116
+ Describe the next rule.
117
+
118
+ Business rules should cover relevant:
119
+
120
+ - permissions
121
+ - visibility
122
+ - state changes
123
+ - validation
124
+ - defaults
125
+ - persistence
126
+ - versioning
127
+ - filtering
128
+ - ordering
129
+ - limits
130
+ - edge cases
131
+ - interactions with related features
132
+
133
+ A business rule should be independently understandable and testable where practical.
134
+
135
+ ---
136
+
137
+ ## State Matrix [Conditional]
138
+
139
+ Include when behaviour depends on combinations of states or values and a table communicates the rules more clearly than prose.
140
+
141
+ | State / Condition | Expected Behaviour | Actions Available |
142
+ |---|---|---|
143
+ | State A | Behaviour | Action |
144
+ | State B | Behaviour | Action |
145
+ | State C | Behaviour | Action |
146
+
147
+ The matrix supplements the Business Rules; it does not replace them.
148
+
149
+ ---
150
+
151
+ ## Interaction Synchronisation Matrix [Conditional]
152
+
153
+ Include when multiple controls or interface elements represent or modify the same underlying value.
154
+
155
+ | User Interaction | UI Element A | UI Element B | Resulting State |
156
+ |---|---|---|---|
157
+ | Interaction A | Update | Update | Changed |
158
+ | Interaction B | No change | Update | Changed |
159
+
160
+ For example, this is useful where a map, form fields, selectors, or other controls must remain synchronised.
161
+
162
+ ---
163
+
164
+ ## Examples [Conditional]
165
+
166
+ Include when examples materially improve understanding of the rules.
167
+
168
+ ### Example 1
169
+
170
+ Given:
171
+
172
+ - Condition A
173
+ - Condition B
174
+
175
+ When:
176
+
177
+ - User performs action
178
+
179
+ Then:
180
+
181
+ - Expected result
182
+
183
+ Examples illustrate the rules but do not override the Business Rules.
184
+
185
+ ---
186
+
187
+ ## Use Cases [Required]
188
+
189
+ ### UC_XXX Use Case Name
190
+
191
+ **Actors:**
192
+
193
+ - `RoleName`
194
+ - `RoleName`
195
+
196
+ **Preconditions:**
197
+
198
+ - Required condition.
199
+ - Required condition.
200
+
201
+ **Goal:**
202
+
203
+ Describe the outcome the actor is trying to achieve.
204
+
205
+ **Trigger:**
206
+
207
+ - Event or user action that starts the use case.
208
+
209
+ **Main Flow:**
210
+
211
+ 1. User performs an action.
212
+ 2. System responds.
213
+ 3. User performs the next action.
214
+ 4. System completes the operation.
215
+
216
+ **Postconditions:**
217
+
218
+ - Expected resulting state.
219
+ - Persisted changes, where applicable.
220
+
221
+ ---
222
+
223
+ ### UC_XXX.1 Use Case / Sub-Use Case Name [Conditional]
224
+
225
+ **Actors:**
226
+
227
+ - `RoleName`
228
+
229
+ **Preconditions:**
230
+
231
+ - Required condition.
232
+
233
+ **Trigger:**
234
+
235
+ - Triggering action/event.
236
+
237
+ **Main Flow:**
238
+
239
+ 1. Step.
240
+ 2. Step.
241
+ 3. Step.
242
+
243
+ **Postconditions:**
244
+
245
+ - Resulting state.
246
+
247
+ Repeat for additional use cases as required.
248
+
249
+ ---
250
+
251
+ ## Alternate / Exception Flows [Conditional]
252
+
253
+ Include when significant alternate or failure paths are easier to understand separately from the main use cases.
254
+
255
+ ### AF_XXX.1 Alternate Flow Name
256
+
257
+ **Condition:**
258
+
259
+ Describe when this flow occurs.
260
+
261
+ **Flow:**
262
+
263
+ 1. System detects the condition.
264
+ 2. System responds appropriately.
265
+ 3. User can recover or continue as applicable.
266
+
267
+ **Result:**
268
+
269
+ Describe the resulting state.
270
+
271
+ ---
272
+
273
+ ## Event / Response Rules [Conditional]
274
+
275
+ Include when the requirement contains important event-driven behaviour.
276
+
277
+ | Event | System Response |
278
+ |---|---|
279
+ | Event occurs | Expected system response |
280
+ | Another event occurs | Expected system response |
281
+
282
+ This can be useful for notifications, emails, asynchronous operations, state transitions, or interactions involving several components.
283
+
284
+ ---
285
+
286
+ ## Validation [Conditional]
287
+
288
+ Include as a dedicated section when validation is substantial enough that keeping it only within Business Rules would make the requirement difficult to follow.
289
+
290
+ | Condition | Valid? | Behaviour |
291
+ |---|---:|---|
292
+ | Condition A | Yes | Allow operation |
293
+ | Condition B | No | Display validation and block operation |
294
+
295
+ Avoid duplicating simple validation already adequately defined in Business Rules or Data Definition.
296
+
297
+ ---
298
+
299
+ ## Empty States [Conditional]
300
+
301
+ Include when the requirement defines specific empty-state behaviour.
302
+
303
+ ### Empty State Name
304
+
305
+ **Condition:**
306
+
307
+ Describe what makes this state empty.
308
+
309
+ **Display:**
310
+
311
+ `Empty-state message`
312
+
313
+ **Available actions:**
314
+
315
+ - Action, if applicable.
316
+ - No action for read-only roles, if applicable.
317
+
318
+ Distinguish true empty states from filtered-zero or access-related states where relevant.
319
+
320
+ ---
321
+
322
+ ## Related Requirements [Conditional]
323
+
324
+ List requirements that this feature depends on, extends, or interacts with.
325
+
326
+ | Requirement | Relationship |
327
+ |---|---|
328
+ | `REQ_XXX` | Describe the relationship. |
329
+ | `REQ_XXX` | Describe the relationship. |
330
+
331
+ Do not duplicate rules owned by another requirement unless the context is necessary to understand this requirement.
332
+
333
+ ---
334
+
335
+ ## Out of Scope [Conditional]
336
+
337
+ Explicitly identify closely related behaviour that is intentionally not part of this requirement.
338
+
339
+ - Out-of-scope behaviour.
340
+ - Functionality governed by another requirement.
341
+ - Future functionality not included in this iteration.
package/package.json ADDED
@@ -0,0 +1,81 @@
1
+ {
2
+ "name": "@richjava/req0",
3
+ "version": "0.1.0",
4
+ "description": "Requirement operating system: spec packs, a local cockpit, Jev, coding-agent implement, and browser proof.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "bin": {
8
+ "req0": "./dist/cli.js"
9
+ },
10
+ "files": [
11
+ "dist",
12
+ "cockpit",
13
+ "docs/requirement-template.md"
14
+ ],
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/richjava/req0.git"
18
+ },
19
+ "bugs": {
20
+ "url": "https://github.com/richjava/req0/issues"
21
+ },
22
+ "homepage": "https://github.com/richjava/req0#readme",
23
+ "keywords": [
24
+ "requirements",
25
+ "spec",
26
+ "cli",
27
+ "cockpit",
28
+ "jev"
29
+ ],
30
+ "publishConfig": {
31
+ "access": "public"
32
+ },
33
+ "scripts": {
34
+ "build": "tsc -p tsconfig.cli.json",
35
+ "build:cockpit": "node scripts/build-markdown-editor.mjs",
36
+ "build:app": "next build",
37
+ "prepack": "npm run build",
38
+ "req0": "tsx src/cli.ts",
39
+ "start": "tsx src/cli.ts start",
40
+ "dev": "next dev",
41
+ "db:seed": "tsx scripts/seed.ts",
42
+ "sandbox": "npx ampx sandbox --once",
43
+ "test": "vitest run",
44
+ "test:watch": "vitest"
45
+ },
46
+ "engines": {
47
+ "node": ">=22.15"
48
+ },
49
+ "dependencies": {
50
+ "playwright": "^1.63.0"
51
+ },
52
+ "devDependencies": {
53
+ "@aws-amplify/backend": "^1.25.1",
54
+ "@aws-amplify/backend-cli": "^1.10.0",
55
+ "@aws-amplify/seed": "^1.1.5",
56
+ "@aws-sdk/client-cognito-identity-provider": "^3.1141.0",
57
+ "aws-amplify": "^6.22.0",
58
+ "@codemirror/commands": "^6.10.3",
59
+ "@codemirror/lang-markdown": "^6.5.2",
60
+ "@codemirror/language": "^6.12.3",
61
+ "@codemirror/state": "^6.6.0",
62
+ "@codemirror/view": "^6.39.16",
63
+ "@tailwindcss/postcss": "^4",
64
+ "@types/js-yaml": "^4.0.9",
65
+ "@types/node": "^24.5.2",
66
+ "@types/react": "^19",
67
+ "@types/react-dom": "^19",
68
+ "aws-cdk-lib": "^2.271.0",
69
+ "constructs": "^10.8.1",
70
+ "esbuild": "^0.25.9",
71
+ "js-yaml": "^5.4.2",
72
+ "marked": "^18.0.14",
73
+ "next": "15.5.26",
74
+ "react": "19.1.0",
75
+ "react-dom": "19.1.0",
76
+ "tailwindcss": "^4",
77
+ "tsx": "4.19.4",
78
+ "typescript": "^5.9.2",
79
+ "vitest": "^3.2.4"
80
+ }
81
+ }