@mytechtoday/augment-extensions 1.2.2 → 1.3.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 (57) hide show
  1. package/augment-extensions/visual-design/CHANGELOG.md +132 -0
  2. package/augment-extensions/visual-design/README.md +255 -0
  3. package/augment-extensions/visual-design/__tests__/README.md +119 -0
  4. package/augment-extensions/visual-design/__tests__/style-selector.test.ts +172 -0
  5. package/augment-extensions/visual-design/__tests__/vendor-styles.test.ts +214 -0
  6. package/augment-extensions/visual-design/domains/other/ai-prompt-helper.ts +157 -0
  7. package/augment-extensions/visual-design/domains/other/dotnet-application.ts +156 -0
  8. package/augment-extensions/visual-design/domains/other/linux-platform.ts +156 -0
  9. package/augment-extensions/visual-design/domains/other/mobile-application.ts +157 -0
  10. package/augment-extensions/visual-design/domains/other/motion-picture.ts +156 -0
  11. package/augment-extensions/visual-design/domains/other/os-application.ts +156 -0
  12. package/augment-extensions/visual-design/domains/other/print-campaigns.ts +158 -0
  13. package/augment-extensions/visual-design/domains/other/web-app.ts +157 -0
  14. package/augment-extensions/visual-design/domains/other/website.ts +161 -0
  15. package/augment-extensions/visual-design/domains/other/windows-platform.ts +156 -0
  16. package/augment-extensions/visual-design/domains/web-page-styles/amazon-cloudscape.ts +506 -0
  17. package/augment-extensions/visual-design/domains/web-page-styles/google-modern.ts +615 -0
  18. package/augment-extensions/visual-design/domains/web-page-styles/microsoft-fluent.ts +531 -0
  19. package/augment-extensions/visual-design/examples/README.md +97 -0
  20. package/augment-extensions/visual-design/examples/ai-prompt-generation.md +233 -0
  21. package/augment-extensions/visual-design/examples/basic-usage.md +216 -0
  22. package/augment-extensions/visual-design/examples/domain-workflows.md +257 -0
  23. package/augment-extensions/visual-design/examples/vendor-comparison.md +247 -0
  24. package/augment-extensions/visual-design/module.json +78 -0
  25. package/augment-extensions/visual-design/style-selector.ts +177 -0
  26. package/augment-extensions/visual-design/types.ts +302 -0
  27. package/augment-extensions/visual-design/visual-design-core.ts +469 -0
  28. package/augment-extensions/workflows/adr-support/README.md +227 -0
  29. package/augment-extensions/workflows/adr-support/__tests__/adr-validator.test.ts +203 -0
  30. package/augment-extensions/workflows/adr-support/adr-validator.ts +162 -0
  31. package/augment-extensions/workflows/adr-support/examples/complete-lifecycle-example.md +449 -0
  32. package/augment-extensions/workflows/adr-support/examples/integration-example.md +580 -0
  33. package/augment-extensions/workflows/adr-support/examples/superseding-example.md +436 -0
  34. package/augment-extensions/workflows/adr-support/module.json +112 -0
  35. package/augment-extensions/workflows/adr-support/rules/adr-creation.md +372 -0
  36. package/augment-extensions/workflows/adr-support/rules/beads-integration.md +443 -0
  37. package/augment-extensions/workflows/adr-support/rules/conflict-detection.md +486 -0
  38. package/augment-extensions/workflows/adr-support/rules/decision-detection.md +362 -0
  39. package/augment-extensions/workflows/adr-support/rules/lifecycle-management.md +427 -0
  40. package/augment-extensions/workflows/adr-support/rules/openspec-integration.md +465 -0
  41. package/augment-extensions/workflows/adr-support/rules/template-selection.md +405 -0
  42. package/augment-extensions/workflows/adr-support/rules/validation-rules.md +543 -0
  43. package/augment-extensions/workflows/adr-support/schemas/adr-config.json +191 -0
  44. package/augment-extensions/workflows/adr-support/schemas/adr-metadata.json +172 -0
  45. package/augment-extensions/workflows/adr-support/templates/business-case.md +235 -0
  46. package/augment-extensions/workflows/adr-support/templates/madr-elaborate.md +197 -0
  47. package/augment-extensions/workflows/adr-support/templates/madr-simple.md +68 -0
  48. package/augment-extensions/workflows/adr-support/templates/nygard.md +84 -0
  49. package/cli/dist/utils/__tests__/adr-validator.example.d.ts +6 -0
  50. package/cli/dist/utils/__tests__/adr-validator.example.d.ts.map +1 -0
  51. package/cli/dist/utils/__tests__/adr-validator.example.js +148 -0
  52. package/cli/dist/utils/__tests__/adr-validator.example.js.map +1 -0
  53. package/cli/dist/utils/adr-validator.d.ts +65 -0
  54. package/cli/dist/utils/adr-validator.d.ts.map +1 -0
  55. package/cli/dist/utils/adr-validator.js +203 -0
  56. package/cli/dist/utils/adr-validator.js.map +1 -0
  57. package/package.json +1 -1
@@ -0,0 +1,443 @@
1
+ # Beads Integration Rules
2
+
3
+ ## Overview
4
+
5
+ This document defines how Architecture Decision Records (ADRs) integrate with Beads task tracking, including task creation from ADRs, linking tasks to ADRs, status updates, and workflow coordination.
6
+
7
+ ## Integration Points
8
+
9
+ ### 1. Tasks from ADRs
10
+
11
+ When ADRs require implementation work:
12
+
13
+ ```
14
+ ADR Approved
15
+
16
+ Create Implementation Tasks
17
+
18
+ Link Tasks to ADR
19
+
20
+ Track Progress
21
+
22
+ Update ADR Status when Complete
23
+ ```
24
+
25
+ ### 2. ADRs from Tasks
26
+
27
+ When tasks reveal architectural decisions:
28
+
29
+ ```
30
+ Working on Task
31
+
32
+ Architectural Decision Identified
33
+
34
+ Create ADR
35
+
36
+ Link ADR to Task
37
+
38
+ Document Decision
39
+ ```
40
+
41
+ ## Linking ADRs to Tasks
42
+
43
+ ### In ADR Metadata
44
+
45
+ ```yaml
46
+ ---
47
+ id: adr-0042
48
+ title: "Migrate to Microservices Architecture"
49
+ status: approved
50
+ date: 2026-02-05
51
+ related_tasks:
52
+ - "bd-ms01" # Create user service
53
+ - "bd-ms02" # Create payment service
54
+ - "bd-ms03" # Set up service mesh
55
+ implementation_epic: "bd-ms00" # Parent epic task
56
+ ---
57
+ ```
58
+
59
+ ### In Beads Task
60
+
61
+ ```bash
62
+ # Create task with ADR reference
63
+ bd create "Implement user microservice" \
64
+ --description "Implement user service as defined in ADR-0042: Migrate to Microservices Architecture" \
65
+ --labels "adr-0042,microservices,implementation"
66
+
67
+ # Add comment linking to ADR
68
+ bd comment bd-ms01 "Implementing ADR-0042: Migrate to Microservices (adr/0042-migrate-to-microservices.md)"
69
+ ```
70
+
71
+ ### In Coordination Manifest
72
+
73
+ ```json
74
+ {
75
+ "adrs": {
76
+ "adr-0042": {
77
+ "file": "adr/0042-migrate-to-microservices.md",
78
+ "status": "approved",
79
+ "relatedTasks": ["bd-ms00", "bd-ms01", "bd-ms02", "bd-ms03"],
80
+ "implementationProgress": "in_progress"
81
+ }
82
+ },
83
+ "tasks": {
84
+ "bd-ms01": {
85
+ "title": "Create user microservice",
86
+ "status": "in_progress",
87
+ "relatedADRs": ["adr-0042"],
88
+ "relatedSpecs": ["architecture/microservices"]
89
+ }
90
+ }
91
+ }
92
+ ```
93
+
94
+ ## Task Creation from ADRs
95
+
96
+ ### Automatic Task Generation
97
+
98
+ When ADR is approved, AI agent should prompt to create implementation tasks:
99
+
100
+ ```
101
+ ADR-0042 has been approved: "Migrate to Microservices Architecture"
102
+
103
+ Would you like me to create implementation tasks?
104
+
105
+ Suggested tasks based on ADR:
106
+ 1. Create user microservice (bd-ms01)
107
+ 2. Create payment microservice (bd-ms02)
108
+ 3. Set up service mesh (bd-ms03)
109
+ 4. Implement API gateway (bd-ms04)
110
+ 5. Set up monitoring (bd-ms05)
111
+
112
+ [Create All] [Select Tasks] [Skip]
113
+ ```
114
+
115
+ ### Task Template from ADR
116
+
117
+ ```typescript
118
+ function generateTasksFromADR(adr: ADR): Task[] {
119
+ const tasks = [];
120
+
121
+ // Create epic task
122
+ const epic = {
123
+ id: generateTaskId(),
124
+ title: `Implement ${adr.title}`,
125
+ description: `Epic task for implementing ADR-${adr.id}`,
126
+ type: 'epic',
127
+ labels: [`adr-${adr.id}`, 'implementation'],
128
+ related_adrs: [adr.id]
129
+ };
130
+ tasks.push(epic);
131
+
132
+ // Extract implementation steps from ADR
133
+ const steps = extractImplementationSteps(adr);
134
+ steps.forEach((step, index) => {
135
+ tasks.push({
136
+ id: generateTaskId(),
137
+ title: step.title,
138
+ description: `${step.description}\n\nPart of ADR-${adr.id}: ${adr.title}`,
139
+ type: 'task',
140
+ parent: epic.id,
141
+ labels: [`adr-${adr.id}`, 'implementation'],
142
+ related_adrs: [adr.id]
143
+ });
144
+ });
145
+
146
+ return tasks;
147
+ }
148
+ ```
149
+
150
+ ### Manual Task Creation
151
+
152
+ ```bash
153
+ # Create epic for ADR implementation
154
+ bd create "Implement ADR-0042: Migrate to Microservices" \
155
+ --type epic \
156
+ --labels "adr-0042,architecture,microservices"
157
+
158
+ # Create subtasks
159
+ bd create "Create user microservice" \
160
+ --parent bd-ms00 \
161
+ --labels "adr-0042,microservices" \
162
+ --description "Implement user service as defined in ADR-0042"
163
+
164
+ bd create "Create payment microservice" \
165
+ --parent bd-ms00 \
166
+ --labels "adr-0042,microservices" \
167
+ --description "Implement payment service as defined in ADR-0042"
168
+ ```
169
+
170
+ ## Status Synchronization
171
+
172
+ ### ADR Status from Task Progress
173
+
174
+ Update ADR status based on task completion:
175
+
176
+ ```typescript
177
+ function updateADRFromTasks(adrId: string) {
178
+ const adr = loadADR(adrId);
179
+ const tasks = loadTasksByADR(adrId);
180
+
181
+ // Calculate progress
182
+ const total = tasks.length;
183
+ const completed = tasks.filter(t => t.status === 'closed').length;
184
+ const progress = completed / total;
185
+
186
+ // Update ADR status
187
+ if (progress === 0 && adr.status === 'approved') {
188
+ // No change needed
189
+ } else if (progress > 0 && progress < 1 && adr.status === 'approved') {
190
+ // Implementation started
191
+ updateADRStatus(adrId, 'implemented', {
192
+ implementation_notes: `Implementation in progress (${completed}/${total} tasks completed)`
193
+ });
194
+ } else if (progress === 1 && adr.status === 'implemented') {
195
+ // All tasks complete, move to maintained
196
+ updateADRStatus(adrId, 'maintained', {
197
+ implemented_date: new Date().toISOString(),
198
+ implementation_notes: `All ${total} implementation tasks completed`
199
+ });
200
+ }
201
+ }
202
+ ```
203
+
204
+ ### Task Updates from ADR Changes
205
+
206
+ When ADR status changes, update related tasks:
207
+
208
+ ```typescript
209
+ function updateTasksFromADR(adr: ADR, oldStatus: string, newStatus: string) {
210
+ const tasks = loadTasksByADR(adr.id);
211
+
212
+ if (newStatus === 'superseded') {
213
+ // ADR superseded, close related tasks
214
+ tasks.forEach(task => {
215
+ if (task.status !== 'closed') {
216
+ bd.close(task.id, `ADR-${adr.id} superseded by ADR-${adr.superseded_by}`);
217
+ }
218
+ });
219
+ }
220
+
221
+ if (newStatus === 'approved' && oldStatus === 'proposed') {
222
+ // ADR approved, tasks can now be started
223
+ tasks.forEach(task => {
224
+ bd.comment(task.id, `ADR-${adr.id} approved, implementation can begin`);
225
+ });
226
+ }
227
+ }
228
+ ```
229
+
230
+ ## Workflow Integration Patterns
231
+
232
+ ### Pattern 1: ADR-Driven Development
233
+
234
+ **Use when:** Clear architectural decision drives implementation work.
235
+
236
+ ```
237
+ 1. Create ADR (draft)
238
+ 2. Evaluate alternatives
239
+ 3. Approve ADR
240
+ 4. Generate implementation tasks from ADR
241
+ 5. Work on tasks
242
+ 6. Update ADR as implementation progresses
243
+ 7. Mark ADR as maintained when complete
244
+ ```
245
+
246
+ **Example:**
247
+ ```bash
248
+ # Step 1-3: Create and approve ADR
249
+ # ADR-0042: Migrate to Microservices
250
+
251
+ # Step 4: Generate tasks
252
+ bd create "Implement ADR-0042: Migrate to Microservices" --type epic
253
+ bd create "Create user service" --parent bd-ms00 --labels "adr-0042"
254
+ bd create "Create payment service" --parent bd-ms00 --labels "adr-0042"
255
+
256
+ # Step 5-6: Work on tasks, update ADR
257
+ bd start bd-ms01
258
+ # ... implementation work ...
259
+ bd close bd-ms01 "User service implemented"
260
+
261
+ # Step 7: All tasks complete, update ADR
262
+ # ADR status: approved → implemented → maintained
263
+ ```
264
+
265
+ ### Pattern 2: Task-Discovered ADR
266
+
267
+ **Use when:** Architectural decision emerges during task work.
268
+
269
+ ```
270
+ 1. Working on task
271
+ 2. Identify architectural decision needed
272
+ 3. Create ADR (draft)
273
+ 4. Link ADR to current task
274
+ 5. Evaluate alternatives
275
+ 6. Approve ADR
276
+ 7. Continue task with approved decision
277
+ 8. Update task with ADR reference
278
+ ```
279
+
280
+ **Example:**
281
+ ```bash
282
+ # Step 1: Working on task
283
+ bd start bd-cache01 "Implement caching layer"
284
+
285
+ # Step 2-4: Decision needed, create ADR
286
+ # Created ADR-0045: Use Redis for Caching
287
+ bd comment bd-cache01 "Created ADR-0045 to document caching decision"
288
+
289
+ # Step 5-6: Evaluate and approve ADR
290
+
291
+ # Step 7-8: Continue with approved decision
292
+ bd comment bd-cache01 "Implementing Redis caching per ADR-0045"
293
+ bd close bd-cache01 "Caching implemented using Redis (ADR-0045)"
294
+ ```
295
+
296
+ ### Pattern 3: Epic with Multiple ADRs
297
+
298
+ **Use when:** Large initiative requires multiple architectural decisions.
299
+
300
+ ```
301
+ 1. Create epic task
302
+ 2. Break down into subtasks
303
+ 3. Identify architectural decisions needed
304
+ 4. Create ADRs for each decision
305
+ 5. Link ADRs to epic and subtasks
306
+ 6. Approve ADRs
307
+ 7. Implement subtasks
308
+ 8. Update ADRs as work completes
309
+ ```
310
+
311
+ **Example:**
312
+ ```bash
313
+ # Step 1-2: Create epic and subtasks
314
+ bd create "Modernize authentication system" --type epic
315
+ bd create "Replace session storage" --parent bd-auth00
316
+ bd create "Implement OAuth2" --parent bd-auth00
317
+ bd create "Add MFA support" --parent bd-auth00
318
+
319
+ # Step 3-5: Create and link ADRs
320
+ # ADR-0050: Use Redis for Session Storage (linked to bd-auth01)
321
+ # ADR-0051: Use Auth0 for OAuth2 (linked to bd-auth02)
322
+ # ADR-0052: Use TOTP for MFA (linked to bd-auth03)
323
+
324
+ bd comment bd-auth00 "Architectural decisions: ADR-0050, ADR-0051, ADR-0052"
325
+ ```
326
+
327
+ ## Task Labels for ADRs
328
+
329
+ ### Standard Labels
330
+
331
+ Use consistent labels to link tasks to ADRs:
332
+
333
+ ```bash
334
+ # ADR reference label
335
+ --labels "adr-0042"
336
+
337
+ # Implementation phase label
338
+ --labels "adr-0042,implementation"
339
+
340
+ # ADR category labels
341
+ --labels "adr-0042,architecture"
342
+ --labels "adr-0045,infrastructure"
343
+ --labels "adr-0050,security"
344
+ ```
345
+
346
+ ### Querying Tasks by ADR
347
+
348
+ ```bash
349
+ # Find all tasks for an ADR
350
+ bd list --labels "adr-0042"
351
+
352
+ # Find open tasks for an ADR
353
+ bd list --labels "adr-0042" --status open
354
+
355
+ # Find implementation tasks
356
+ bd list --labels "implementation" --status in_progress
357
+ ```
358
+
359
+ ## Progress Tracking
360
+
361
+ ### ADR Implementation Dashboard
362
+
363
+ Track ADR implementation progress:
364
+
365
+ ```typescript
366
+ function getADRImplementationStatus(adrId: string) {
367
+ const adr = loadADR(adrId);
368
+ const tasks = loadTasksByADR(adrId);
369
+
370
+ return {
371
+ adr: {
372
+ id: adr.id,
373
+ title: adr.title,
374
+ status: adr.status
375
+ },
376
+ tasks: {
377
+ total: tasks.length,
378
+ open: tasks.filter(t => t.status === 'open').length,
379
+ in_progress: tasks.filter(t => t.status === 'in_progress').length,
380
+ closed: tasks.filter(t => t.status === 'closed').length
381
+ },
382
+ progress: tasks.filter(t => t.status === 'closed').length / tasks.length
383
+ };
384
+ }
385
+ ```
386
+
387
+ ### Reporting
388
+
389
+ ```bash
390
+ # Generate ADR implementation report
391
+ bd report --adr adr-0042
392
+
393
+ # Output:
394
+ # ADR-0042: Migrate to Microservices Architecture
395
+ # Status: implemented
396
+ # Progress: 3/5 tasks completed (60%)
397
+ #
398
+ # Tasks:
399
+ # ✓ bd-ms01: Create user service (closed)
400
+ # ✓ bd-ms02: Create payment service (closed)
401
+ # ✓ bd-ms03: Set up service mesh (closed)
402
+ # ○ bd-ms04: Implement API gateway (in_progress)
403
+ # ○ bd-ms05: Set up monitoring (open)
404
+ ```
405
+
406
+ ## Best Practices
407
+
408
+ 1. **Create Epic for Complex ADRs**
409
+ - Use epic task to group related work
410
+ - Link epic to ADR
411
+ - Break down into subtasks
412
+
413
+ 2. **Use Consistent Labels**
414
+ - Always use `adr-NNNN` label format
415
+ - Add category labels (architecture, infrastructure, etc.)
416
+ - Include implementation phase labels
417
+
418
+ 3. **Keep Tasks and ADRs in Sync**
419
+ - Update ADR when tasks complete
420
+ - Update tasks when ADR status changes
421
+ - Use coordination manifest for tracking
422
+
423
+ 4. **Document Decisions in Tasks**
424
+ - Reference ADR in task description
425
+ - Add comments linking to ADR
426
+ - Explain how task implements ADR
427
+
428
+ 5. **Track Progress Actively**
429
+ - Review ADR implementation status regularly
430
+ - Update ADR with implementation notes
431
+ - Close tasks promptly when complete
432
+
433
+ ## Examples
434
+
435
+ See [examples/integration-example.md](../examples/integration-example.md) for complete workflow example.
436
+
437
+ ## See Also
438
+
439
+ - [ADR Creation Guidelines](./adr-creation.md)
440
+ - [OpenSpec Integration](./openspec-integration.md)
441
+ - [Lifecycle Management](./lifecycle-management.md)
442
+ - [Coordination System](../../../../.augment-guidelines/system-integration/coordination-system.md)
443
+