@exaudeus/workrail 0.6.1-beta.9 → 0.7.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.
@@ -1,337 +0,0 @@
1
- {
2
- "id": "dashboard-template-workflow",
3
- "name": "Dashboard Template Workflow",
4
- "description": "Template demonstrating how to create dashboard-enabled workflows with best practices",
5
- "version": "1.0.0",
6
- "tags": ["template", "dashboard", "example"],
7
- "steps": [
8
- {
9
- "id": "initialize-dashboard",
10
- "title": "Initialize Dashboard",
11
- "instructions": [
12
- "Create a session for this workflow using workrail_create_session.",
13
- "Initialize the dashboard with basic information:",
14
- "- Set a clear, descriptive title",
15
- "- Set status to 'in_progress'",
16
- "- Set initial progress to 0",
17
- "",
18
- "Example structure:",
19
- "```json",
20
- "{",
21
- " \"dashboard\": {",
22
- " \"title\": \"[Workflow Name]: [Session ID]\",",
23
- " \"subtitle\": \"Brief description of what's happening\",",
24
- " \"status\": \"in_progress\",",
25
- " \"progress\": 0,",
26
- " \"_meta\": {",
27
- " \"order\": [\"summary\", \"details\", \"timeline\"],",
28
- " \"collapsible\": { \"timeline\": true }",
29
- " }",
30
- " }",
31
- "}",
32
- "```",
33
- "",
34
- "Use workrail_create_session with these parameters:",
35
- "- workflowId: \"dashboard-template-workflow\"",
36
- "- sessionId: A unique ID (e.g., timestamp or user-provided)",
37
- "- initialData: The dashboard structure above",
38
- "",
39
- "IMPORTANT: After creating the session, inform the user they can view the dashboard at:",
40
- "http://localhost:3456/dashboard.html?workflow=dashboard-template-workflow&id=[SESSION-ID]"
41
- ],
42
- "expectedOutput": {
43
- "sessionCreated": true,
44
- "dashboardUrl": "string"
45
- }
46
- },
47
- {
48
- "id": "gather-information",
49
- "title": "Gather Information",
50
- "instructions": [
51
- "Collect information needed for your workflow.",
52
- "As you gather information, update the dashboard to show progress.",
53
- "",
54
- "Use workrail_update_session to update:",
55
- "```json",
56
- "{",
57
- " \"dashboard\": {",
58
- " \"progress\": 25,",
59
- " \"currentPhase\": \"Information Gathering\"",
60
- " },",
61
- " \"summary\": {",
62
- " \"description\": \"Summary of information gathered so far\",",
63
- " \"status\": \"in_progress\"",
64
- " }",
65
- "}",
66
- "```",
67
- "",
68
- "Add timeline events to show what you're doing:",
69
- "```json",
70
- "{",
71
- " \"timeline\": [",
72
- " {",
73
- " \"timestamp\": \"[current ISO timestamp]\",",
74
- " \"event\": \"Started information gathering\",",
75
- " \"details\": \"Collecting data from user and system\"",
76
- " }",
77
- " ]",
78
- "}",
79
- "```",
80
- "",
81
- "TIP: Use dot notation for updates:",
82
- "- \"dashboard.progress\": 25 (updates just progress)",
83
- "- \"timeline\": [...] (replaces entire timeline)"
84
- ]
85
- },
86
- {
87
- "id": "analyze-data",
88
- "title": "Analyze Data",
89
- "instructions": [
90
- "Analyze the information you've gathered.",
91
- "Update the dashboard with your findings.",
92
- "",
93
- "For findings with severity:",
94
- "```json",
95
- "{",
96
- " \"dashboard\": {",
97
- " \"progress\": 50,",
98
- " \"currentPhase\": \"Analysis\"",
99
- " },",
100
- " \"findings\": [",
101
- " {",
102
- " \"finding\": \"Description of finding\",",
103
- " \"severity\": \"high\", // critical, high, medium, low, info",
104
- " \"confidence\": 8.5,",
105
- " \"reasoning\": \"Why this is a finding\"",
106
- " }",
107
- " ]",
108
- "}",
109
- "```",
110
- "",
111
- "For hypotheses:",
112
- "```json",
113
- "{",
114
- " \"hypotheses\": [",
115
- " {",
116
- " \"hypothesis\": \"Description of hypothesis\",",
117
- " \"status\": \"testing\", // active, testing, confirmed, partial, rejected, cancelled",
118
- " \"confidence\": 7.0,",
119
- " \"reasoning\": \"Why you believe this\"",
120
- " }",
121
- " ]",
122
- "}",
123
- "```",
124
- "",
125
- "Add timeline events:",
126
- "```json",
127
- "{",
128
- " \"timeline\": [",
129
- " ...(existing events),",
130
- " {",
131
- " \"timestamp\": \"[current ISO timestamp]\",",
132
- " \"event\": \"Analysis complete\",",
133
- " \"details\": \"Identified 3 potential issues\"",
134
- " }",
135
- " ]",
136
- "}",
137
- "```"
138
- ]
139
- },
140
- {
141
- "id": "generate-recommendations",
142
- "title": "Generate Recommendations",
143
- "instructions": [
144
- "Based on your analysis, generate actionable recommendations.",
145
- "",
146
- "Use priority-based recommendations:",
147
- "```json",
148
- "{",
149
- " \"dashboard\": {",
150
- " \"progress\": 75,",
151
- " \"currentPhase\": \"Recommendations\"",
152
- " },",
153
- " \"recommendations\": [",
154
- " {",
155
- " \"priority\": 9, // 1-10 scale, higher = more important",
156
- " \"description\": \"Clear, actionable recommendation\",",
157
- " \"reasoning\": \"Why this is important\",",
158
- " \"effort\": \"Estimated effort (e.g., '2 hours', 'medium')\",",
159
- " \"status\": \"proposed\" // proposed, planned, in_progress, complete",
160
- " },",
161
- " {",
162
- " \"priority\": 5,",
163
- " \"description\": \"Lower priority item\",",
164
- " \"reasoning\": \"Nice to have\"",
165
- " }",
166
- " ]",
167
- "}",
168
- "```",
169
- "",
170
- "The dashboard will automatically:",
171
- "- Sort by priority (highest first)",
172
- "- Color-code by priority (red=high, yellow=medium, blue=low)",
173
- "- Display in card format with reasoning"
174
- ]
175
- },
176
- {
177
- "id": "finalize",
178
- "title": "Finalize and Complete",
179
- "instructions": [
180
- "Complete the workflow and update the dashboard to reflect completion.",
181
- "",
182
- "Final update:",
183
- "```json",
184
- "{",
185
- " \"dashboard\": {",
186
- " \"status\": \"complete\", // or \"error\" if failed",
187
- " \"progress\": 100,",
188
- " \"currentPhase\": \"Complete\",",
189
- " \"confidence\": 8.5 // Overall confidence in results (0-10)",
190
- " },",
191
- " \"conclusion\": {",
192
- " \"summary\": \"High-level summary of what was accomplished\",",
193
- " \"keyFindings\": [\"Finding 1\", \"Finding 2\", \"Finding 3\"],",
194
- " \"nextSteps\": [\"Step 1\", \"Step 2\"]",
195
- " },",
196
- " \"timeline\": [",
197
- " ...(existing events),",
198
- " {",
199
- " \"timestamp\": \"[current ISO timestamp]\",",
200
- " \"event\": \"Workflow complete\",",
201
- " \"details\": \"All analysis and recommendations generated\"",
202
- " }",
203
- " ]",
204
- "}",
205
- "```",
206
- "",
207
- "Remind the user to check the dashboard for full results:",
208
- "http://localhost:3456/dashboard.html?workflow=dashboard-template-workflow&id=[SESSION-ID]"
209
- ]
210
- }
211
- ],
212
- "examples": [
213
- {
214
- "title": "Bug Investigation Pattern",
215
- "dashboard": {
216
- "title": "Bug Investigation: AUTH-1234",
217
- "subtitle": "Token Refresh Issue",
218
- "status": "in_progress",
219
- "progress": 65,
220
- "_meta": {
221
- "order": ["bugSummary", "rootCause", "fix", "hypotheses", "timeline", "recommendations"],
222
- "icons": {
223
- "bugSummary": "bug",
224
- "rootCause": "alert-circle",
225
- "fix": "wrench",
226
- "hypotheses": "lightbulb",
227
- "timeline": "clock",
228
- "recommendations": "star"
229
- },
230
- "collapsible": {
231
- "timeline": true,
232
- "hypotheses": true
233
- }
234
- }
235
- },
236
- "bugSummary": {
237
- "description": "Users unable to refresh auth tokens",
238
- "severity": "high",
239
- "affectedUsers": "~1000"
240
- },
241
- "rootCause": {
242
- "description": "Token expiry check using server time instead of UTC",
243
- "confidence": 9.5,
244
- "file": "/src/auth/token-manager.ts",
245
- "line": 145
246
- }
247
- },
248
- {
249
- "title": "Code Review Pattern",
250
- "dashboard": {
251
- "title": "Code Review: PR-456",
252
- "subtitle": "Feature: User Profile Updates",
253
- "status": "in_progress",
254
- "progress": 40,
255
- "_meta": {
256
- "order": ["summary", "findings", "recommendations"],
257
- "icons": {
258
- "summary": "file-text",
259
- "findings": "alert-circle",
260
- "recommendations": "star"
261
- },
262
- "collapsible": {
263
- "findings": true
264
- }
265
- }
266
- },
267
- "summary": {
268
- "filesChanged": 8,
269
- "linesAdded": 234,
270
- "linesRemoved": 67
271
- },
272
- "findings": [
273
- {
274
- "finding": "Missing error handling",
275
- "severity": "high",
276
- "file": "/src/profile.ts",
277
- "line": 45
278
- }
279
- ]
280
- },
281
- {
282
- "title": "Test Results Pattern",
283
- "dashboard": {
284
- "title": "Test Run: Suite #1234",
285
- "status": "complete",
286
- "progress": 100,
287
- "_meta": {
288
- "order": ["summary", "results", "failures"],
289
- "collapsible": {
290
- "failures": true
291
- }
292
- }
293
- },
294
- "summary": {
295
- "totalTests": 156,
296
- "passed": 148,
297
- "failed": 8,
298
- "coverage": "87%"
299
- }
300
- }
301
- ],
302
- "tips": [
303
- "Always include a 'dashboard' object with title, status, and progress",
304
- "Use semantic field names that describe the content",
305
- "Add timeline events to show what you're doing",
306
- "Use _meta.order to control section sequence",
307
- "Make long sections (timeline, logs) collapsible",
308
- "Include confidence scores for AI-generated insights",
309
- "Update progress incrementally (0%, 25%, 50%, 75%, 100%)",
310
- "Use status badges: pending, in_progress, complete, error",
311
- "Add severity to findings: critical, high, medium, low, info",
312
- "Add priority to recommendations: 1-10 scale",
313
- "Use ISO 8601 timestamps for timeline events",
314
- "Group related data: hypotheses array, findings array, etc.",
315
- "Hide internal fields with _meta.hidden",
316
- "Use custom icons with _meta.icons for visual identity"
317
- ],
318
- "autoRecognitionPatterns": {
319
- "timeline": "Arrays with 'timestamp' field",
320
- "groupedList": "Arrays with 'status' field",
321
- "severityList": "Arrays with 'severity' field",
322
- "priorityList": "Arrays with 'priority' field",
323
- "phasesList": "Object with keys like 'phase-0', 'phase-1' containing 'complete' and 'name'",
324
- "highlightCard": "Objects with 'confidence' >= 8",
325
- "progressBar": "Numbers between 0-100",
326
- "checkbox": "Boolean values",
327
- "link": "Strings starting with http:// or https://",
328
- "filePath": "Strings starting with / or containing file extensions",
329
- "code": "Strings with code-like patterns (function, class, etc.)"
330
- }
331
- }
332
-
333
-
334
-
335
-
336
-
337
-
File without changes