flowquery 1.0.25 → 1.0.27

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 (54) hide show
  1. package/.github/workflows/release.yml +1 -0
  2. package/.husky/pre-commit +3 -2
  3. package/dist/flowquery.min.js +1 -1
  4. package/dist/parsing/expressions/reference.d.ts +1 -0
  5. package/dist/parsing/expressions/reference.d.ts.map +1 -1
  6. package/dist/parsing/expressions/reference.js +3 -0
  7. package/dist/parsing/expressions/reference.js.map +1 -1
  8. package/dist/parsing/parser.d.ts.map +1 -1
  9. package/dist/parsing/parser.js +19 -4
  10. package/dist/parsing/parser.js.map +1 -1
  11. package/docs/flowquery.min.js +1 -1
  12. package/flowquery-py/pyproject.toml +1 -1
  13. package/flowquery-py/src/parsing/parser.py +14 -0
  14. package/flowquery-py/tests/compute/test_runner.py +67 -1
  15. package/flowquery-py/tests/parsing/test_parser.py +18 -0
  16. package/flowquery-vscode/flowQueryEngine/flowquery.min.js +1 -1
  17. package/jest.config.js +6 -9
  18. package/misc/apps/RAG/data/chats.json +302 -0
  19. package/misc/apps/RAG/data/emails.json +182 -0
  20. package/misc/apps/RAG/data/events.json +226 -0
  21. package/misc/apps/RAG/data/files.json +172 -0
  22. package/misc/apps/RAG/data/users.json +158 -0
  23. package/misc/apps/RAG/jest.config.js +21 -0
  24. package/misc/apps/RAG/package.json +9 -2
  25. package/misc/apps/RAG/src/App.tsx +5 -5
  26. package/misc/apps/RAG/src/components/ChatContainer.tsx +53 -124
  27. package/misc/apps/RAG/src/components/FlowQueryAgent.ts +151 -157
  28. package/misc/apps/RAG/src/components/index.ts +1 -1
  29. package/misc/apps/RAG/src/graph/index.ts +19 -0
  30. package/misc/apps/RAG/src/graph/initializeGraph.ts +254 -0
  31. package/misc/apps/RAG/src/index.tsx +25 -13
  32. package/misc/apps/RAG/src/prompts/FlowQuerySystemPrompt.ts +146 -231
  33. package/misc/apps/RAG/src/prompts/index.ts +4 -4
  34. package/misc/apps/RAG/src/tests/graph.test.ts +35 -0
  35. package/misc/apps/RAG/src/utils/FlowQueryExecutor.ts +20 -21
  36. package/misc/apps/RAG/src/utils/FlowQueryExtractor.ts +35 -30
  37. package/misc/apps/RAG/src/utils/Llm.ts +248 -0
  38. package/misc/apps/RAG/src/utils/index.ts +7 -4
  39. package/misc/apps/RAG/tsconfig.json +4 -3
  40. package/misc/apps/RAG/webpack.config.js +40 -40
  41. package/package.json +1 -1
  42. package/src/parsing/expressions/reference.ts +8 -5
  43. package/src/parsing/parser.ts +19 -4
  44. package/tests/compute/runner.test.ts +47 -1
  45. package/tests/parsing/parser.test.ts +16 -0
  46. package/misc/apps/RAG/src/plugins/README.md +0 -139
  47. package/misc/apps/RAG/src/plugins/index.ts +0 -72
  48. package/misc/apps/RAG/src/plugins/loaders/CatFacts.ts +0 -70
  49. package/misc/apps/RAG/src/plugins/loaders/FetchJson.ts +0 -65
  50. package/misc/apps/RAG/src/plugins/loaders/Form.ts +0 -594
  51. package/misc/apps/RAG/src/plugins/loaders/Llm.ts +0 -450
  52. package/misc/apps/RAG/src/plugins/loaders/MockData.ts +0 -101
  53. package/misc/apps/RAG/src/plugins/loaders/Table.ts +0 -274
  54. package/misc/apps/RAG/src/plugins/loaders/Weather.ts +0 -138
@@ -0,0 +1,226 @@
1
+ [
2
+ {
3
+ "id": "ev-001",
4
+ "subject": "Q1 Roadmap Review",
5
+ "organizer": "u-003",
6
+ "attendees": [
7
+ { "userId": "u-001", "response": "accepted" },
8
+ { "userId": "u-002", "response": "accepted" },
9
+ { "userId": "u-004", "response": "accepted" },
10
+ { "userId": "u-008", "response": "accepted" }
11
+ ],
12
+ "start": "2026-01-08T16:00:00Z",
13
+ "end": "2026-01-08T17:00:00Z",
14
+ "location": "Conference Room A (Seattle HQ)",
15
+ "isOnline": true,
16
+ "onlineMeetingUrl": "https://teams.microsoft.com/l/meetup/northwindtech-roadmap-q1",
17
+ "body": "Reviewing the Q1 2026 product roadmap. Please come prepared with feedback on the draft Priya shared via email.",
18
+ "recurrence": null,
19
+ "relatedEmails": ["em-001", "em-002", "em-003"],
20
+ "relatedFiles": ["f-001"],
21
+ "categories": ["Roadmap", "Leadership"]
22
+ },
23
+ {
24
+ "id": "ev-002",
25
+ "subject": "Engineering Weekly Standup",
26
+ "organizer": "u-002",
27
+ "attendees": [
28
+ { "userId": "u-005", "response": "accepted" },
29
+ { "userId": "u-006", "response": "accepted" },
30
+ { "userId": "u-007", "response": "accepted" },
31
+ { "userId": "u-008", "response": "accepted" }
32
+ ],
33
+ "start": "2026-01-12T15:00:00Z",
34
+ "end": "2026-01-12T15:30:00Z",
35
+ "location": null,
36
+ "isOnline": true,
37
+ "onlineMeetingUrl": "https://teams.microsoft.com/l/meetup/northwindtech-eng-standup",
38
+ "body": "Weekly engineering standup. Review sprint progress, blockers, and upcoming work.",
39
+ "recurrence": {
40
+ "pattern": "weekly",
41
+ "daysOfWeek": ["monday"],
42
+ "interval": 1
43
+ },
44
+ "relatedEmails": [],
45
+ "relatedFiles": [],
46
+ "categories": ["Engineering", "Standup"]
47
+ },
48
+ {
49
+ "id": "ev-003",
50
+ "subject": "Project Aurora - Design Review",
51
+ "organizer": "u-009",
52
+ "attendees": [
53
+ { "userId": "u-008", "response": "accepted" },
54
+ { "userId": "u-005", "response": "accepted" },
55
+ { "userId": "u-003", "response": "tentative" }
56
+ ],
57
+ "start": "2026-01-13T18:00:00Z",
58
+ "end": "2026-01-13T19:00:00Z",
59
+ "location": "Conference Room B (Seattle HQ)",
60
+ "isOnline": true,
61
+ "onlineMeetingUrl": "https://teams.microsoft.com/l/meetup/northwindtech-aurora-design",
62
+ "body": "Reviewing Mia's dashboard mockups for Project Aurora. Three layout options to evaluate. Figma link in the project folder.",
63
+ "recurrence": null,
64
+ "relatedEmails": ["em-007"],
65
+ "relatedFiles": ["f-003"],
66
+ "categories": ["Project Aurora", "Design"]
67
+ },
68
+ {
69
+ "id": "ev-004",
70
+ "subject": "Contoso SSO Technical Scoping",
71
+ "organizer": "u-002",
72
+ "attendees": [
73
+ { "userId": "u-005", "response": "accepted" },
74
+ { "userId": "u-010", "response": "accepted" },
75
+ { "userId": "u-004", "response": "accepted" },
76
+ { "userId": "u-012", "response": "accepted" }
77
+ ],
78
+ "start": "2026-01-14T17:00:00Z",
79
+ "end": "2026-01-14T18:00:00Z",
80
+ "location": null,
81
+ "isOnline": true,
82
+ "onlineMeetingUrl": "https://teams.microsoft.com/l/meetup/northwindtech-contoso-sso",
83
+ "body": "Technical scoping for Contoso enterprise deal. Need to evaluate SAML + OIDC requirements and on-prem data residency feasibility.",
84
+ "recurrence": null,
85
+ "relatedEmails": ["em-005", "em-006"],
86
+ "relatedFiles": ["f-005"],
87
+ "categories": ["Sales", "Enterprise", "Contoso"]
88
+ },
89
+ {
90
+ "id": "ev-005",
91
+ "subject": "K8s Migration Planning",
92
+ "organizer": "u-007",
93
+ "attendees": [
94
+ { "userId": "u-002", "response": "accepted" },
95
+ { "userId": "u-006", "response": "accepted" },
96
+ { "userId": "u-012", "response": "accepted" }
97
+ ],
98
+ "start": "2026-01-15T16:00:00Z",
99
+ "end": "2026-01-15T17:00:00Z",
100
+ "location": null,
101
+ "isOnline": true,
102
+ "onlineMeetingUrl": "https://teams.microsoft.com/l/meetup/northwindtech-k8s-migration",
103
+ "body": "Walk through the AKS migration plan for staging (Jan 20-24). Review database migration scripts David prepared and discuss rollback procedures.",
104
+ "recurrence": null,
105
+ "relatedEmails": ["em-004"],
106
+ "relatedFiles": ["f-004"],
107
+ "categories": ["Infrastructure", "DevOps"]
108
+ },
109
+ {
110
+ "id": "ev-006",
111
+ "subject": "All Hands - January",
112
+ "organizer": "u-001",
113
+ "attendees": [
114
+ { "userId": "u-002", "response": "accepted" },
115
+ { "userId": "u-003", "response": "accepted" },
116
+ { "userId": "u-004", "response": "accepted" },
117
+ { "userId": "u-005", "response": "accepted" },
118
+ { "userId": "u-006", "response": "accepted" },
119
+ { "userId": "u-007", "response": "accepted" },
120
+ { "userId": "u-008", "response": "accepted" },
121
+ { "userId": "u-009", "response": "accepted" },
122
+ { "userId": "u-010", "response": "accepted" },
123
+ { "userId": "u-011", "response": "accepted" },
124
+ { "userId": "u-012", "response": "accepted" }
125
+ ],
126
+ "start": "2026-01-16T18:00:00Z",
127
+ "end": "2026-01-16T19:00:00Z",
128
+ "location": "Conference Room A (Seattle HQ)",
129
+ "isOnline": true,
130
+ "onlineMeetingUrl": "https://teams.microsoft.com/l/meetup/northwindtech-allhands-jan",
131
+ "body": "Monthly all-hands meeting. Agenda: Q4 results recap, Q1 priorities, Contoso deal announcement, team updates.",
132
+ "recurrence": {
133
+ "pattern": "monthly",
134
+ "dayOfMonth": 16,
135
+ "interval": 1
136
+ },
137
+ "relatedEmails": [],
138
+ "relatedFiles": [],
139
+ "categories": ["All Hands", "Company"]
140
+ },
141
+ {
142
+ "id": "ev-007",
143
+ "subject": "Sprint 25 Planning",
144
+ "organizer": "u-008",
145
+ "attendees": [
146
+ { "userId": "u-002", "response": "accepted" },
147
+ { "userId": "u-005", "response": "accepted" },
148
+ { "userId": "u-006", "response": "accepted" },
149
+ { "userId": "u-007", "response": "accepted" },
150
+ { "userId": "u-009", "response": "accepted" }
151
+ ],
152
+ "start": "2026-01-19T15:00:00Z",
153
+ "end": "2026-01-19T16:30:00Z",
154
+ "location": null,
155
+ "isOnline": true,
156
+ "onlineMeetingUrl": "https://teams.microsoft.com/l/meetup/northwindtech-sprint25",
157
+ "body": "Sprint 25 planning session. Focus areas: Aurora frontend components, API v3 schema design, security remediation items from Noah's audit.",
158
+ "recurrence": null,
159
+ "relatedEmails": ["em-009", "em-010"],
160
+ "relatedFiles": ["f-007"],
161
+ "categories": ["Sprint", "Agile"]
162
+ },
163
+ {
164
+ "id": "ev-008",
165
+ "subject": "1:1 - Marcus & Emily",
166
+ "organizer": "u-002",
167
+ "attendees": [{ "userId": "u-005", "response": "accepted" }],
168
+ "start": "2026-01-13T20:00:00Z",
169
+ "end": "2026-01-13T20:30:00Z",
170
+ "location": null,
171
+ "isOnline": true,
172
+ "onlineMeetingUrl": "https://teams.microsoft.com/l/meetup/northwindtech-marcus-emily",
173
+ "body": "Regular 1:1. Topics: Aurora progress, component library, career growth discussion.",
174
+ "recurrence": {
175
+ "pattern": "weekly",
176
+ "daysOfWeek": ["tuesday"],
177
+ "interval": 1
178
+ },
179
+ "relatedEmails": [],
180
+ "relatedFiles": [],
181
+ "categories": ["1:1"]
182
+ },
183
+ {
184
+ "id": "ev-009",
185
+ "subject": "Marketing Sync",
186
+ "organizer": "u-004",
187
+ "attendees": [
188
+ { "userId": "u-011", "response": "accepted" },
189
+ { "userId": "u-010", "response": "accepted" }
190
+ ],
191
+ "start": "2026-01-14T15:00:00Z",
192
+ "end": "2026-01-14T15:30:00Z",
193
+ "location": null,
194
+ "isOnline": true,
195
+ "onlineMeetingUrl": "https://teams.microsoft.com/l/meetup/northwindtech-marketing-sync",
196
+ "body": "Weekly marketing and sales alignment. Discuss blog post, Fabrikam webinar logistics, and Q1 campaign plan.",
197
+ "recurrence": {
198
+ "pattern": "weekly",
199
+ "daysOfWeek": ["wednesday"],
200
+ "interval": 1
201
+ },
202
+ "relatedEmails": ["em-008", "em-011"],
203
+ "relatedFiles": ["f-006"],
204
+ "categories": ["Marketing", "Sales"]
205
+ },
206
+ {
207
+ "id": "ev-010",
208
+ "subject": "Fabrikam Webinar Dry Run",
209
+ "organizer": "u-011",
210
+ "attendees": [
211
+ { "userId": "u-003", "response": "accepted" },
212
+ { "userId": "u-004", "response": "accepted" },
213
+ { "userId": "u-008", "response": "tentative" }
214
+ ],
215
+ "start": "2026-02-10T17:00:00Z",
216
+ "end": "2026-02-10T18:00:00Z",
217
+ "location": null,
218
+ "isOnline": true,
219
+ "onlineMeetingUrl": "https://teams.microsoft.com/l/meetup/northwindtech-fabrikam-dryrun",
220
+ "body": "Practice run for the Fabrikam joint webinar (Feb 12). Priya to demo the API integration, Olivia handles intro and Q&A logistics.",
221
+ "recurrence": null,
222
+ "relatedEmails": ["em-011"],
223
+ "relatedFiles": [],
224
+ "categories": ["Partnership", "Marketing", "Fabrikam"]
225
+ }
226
+ ]
@@ -0,0 +1,172 @@
1
+ [
2
+ {
3
+ "id": "f-001",
4
+ "name": "Q1 2026 Product Roadmap.pptx",
5
+ "createdBy": "u-003",
6
+ "createdDateTime": "2026-01-05T14:00:00Z",
7
+ "lastModifiedBy": "u-003",
8
+ "lastModifiedDateTime": "2026-01-06T08:45:00Z",
9
+ "size": 2457600,
10
+ "mimeType": "application/vnd.openxmlformats-officedocument.presentationml.presentation",
11
+ "webUrl": "https://northwindtech.sharepoint.com/sites/Product/Shared Documents/Roadmaps/Q1 2026 Product Roadmap.pptx",
12
+ "driveId": "drive-product",
13
+ "parentFolder": "/Product/Shared Documents/Roadmaps",
14
+ "sharedWith": ["u-001", "u-002", "u-004", "u-008"],
15
+ "relatedEmails": ["em-001"],
16
+ "relatedEvents": ["ev-001"],
17
+ "tags": ["Roadmap", "Q1", "2026"]
18
+ },
19
+ {
20
+ "id": "f-002",
21
+ "name": "Engineering OKRs Q1 2026.xlsx",
22
+ "createdBy": "u-002",
23
+ "createdDateTime": "2026-01-04T10:00:00Z",
24
+ "lastModifiedBy": "u-008",
25
+ "lastModifiedDateTime": "2026-01-10T16:20:00Z",
26
+ "size": 184320,
27
+ "mimeType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
28
+ "webUrl": "https://northwindtech.sharepoint.com/sites/Engineering/Shared Documents/OKRs/Engineering OKRs Q1 2026.xlsx",
29
+ "driveId": "drive-engineering",
30
+ "parentFolder": "/Engineering/Shared Documents/OKRs",
31
+ "sharedWith": ["u-005", "u-006", "u-007", "u-008", "u-003"],
32
+ "relatedEmails": [],
33
+ "relatedEvents": ["ev-007"],
34
+ "tags": ["OKRs", "Engineering", "Q1"]
35
+ },
36
+ {
37
+ "id": "f-003",
38
+ "name": "Aurora Dashboard Mockups v1.fig",
39
+ "createdBy": "u-009",
40
+ "createdDateTime": "2026-01-07T09:00:00Z",
41
+ "lastModifiedBy": "u-009",
42
+ "lastModifiedDateTime": "2026-01-10T08:30:00Z",
43
+ "size": 8912000,
44
+ "mimeType": "application/x-figma",
45
+ "webUrl": "https://northwindtech.sharepoint.com/sites/Product/Shared Documents/Project Aurora/Design/Aurora Dashboard Mockups v1.fig",
46
+ "driveId": "drive-product",
47
+ "parentFolder": "/Product/Shared Documents/Project Aurora/Design",
48
+ "sharedWith": ["u-008", "u-005", "u-003", "u-002"],
49
+ "relatedEmails": ["em-007"],
50
+ "relatedEvents": ["ev-003"],
51
+ "tags": ["Aurora", "Design", "Mockups"]
52
+ },
53
+ {
54
+ "id": "f-004",
55
+ "name": "AKS Migration Plan.docx",
56
+ "createdBy": "u-007",
57
+ "createdDateTime": "2026-01-06T13:00:00Z",
58
+ "lastModifiedBy": "u-007",
59
+ "lastModifiedDateTime": "2026-01-08T10:15:00Z",
60
+ "size": 524288,
61
+ "mimeType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
62
+ "webUrl": "https://northwindtech.sharepoint.com/sites/Engineering/Shared Documents/Infrastructure/AKS Migration Plan.docx",
63
+ "driveId": "drive-engineering",
64
+ "parentFolder": "/Engineering/Shared Documents/Infrastructure",
65
+ "sharedWith": ["u-002", "u-006", "u-012"],
66
+ "relatedEmails": ["em-004"],
67
+ "relatedEvents": ["ev-005"],
68
+ "tags": ["Infrastructure", "Kubernetes", "Migration"]
69
+ },
70
+ {
71
+ "id": "f-005",
72
+ "name": "Contoso Enterprise Requirements.docx",
73
+ "createdBy": "u-010",
74
+ "createdDateTime": "2026-01-09T14:00:00Z",
75
+ "lastModifiedBy": "u-010",
76
+ "lastModifiedDateTime": "2026-01-13T11:30:00Z",
77
+ "size": 312000,
78
+ "mimeType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
79
+ "webUrl": "https://northwindtech.sharepoint.com/sites/Sales/Shared Documents/Enterprise/Contoso/Contoso Enterprise Requirements.docx",
80
+ "driveId": "drive-sales",
81
+ "parentFolder": "/Sales/Shared Documents/Enterprise/Contoso",
82
+ "sharedWith": ["u-004", "u-002", "u-005", "u-012"],
83
+ "relatedEmails": ["em-005", "em-006"],
84
+ "relatedEvents": ["ev-004"],
85
+ "tags": ["Contoso", "Enterprise", "Requirements"]
86
+ },
87
+ {
88
+ "id": "f-006",
89
+ "name": "2025 Year in Review - Blog Draft.docx",
90
+ "createdBy": "u-011",
91
+ "createdDateTime": "2026-01-11T10:00:00Z",
92
+ "lastModifiedBy": "u-011",
93
+ "lastModifiedDateTime": "2026-01-12T12:45:00Z",
94
+ "size": 198400,
95
+ "mimeType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
96
+ "webUrl": "https://northwindtech.sharepoint.com/sites/Marketing/Shared Documents/Blog/2025 Year in Review - Blog Draft.docx",
97
+ "driveId": "drive-marketing",
98
+ "parentFolder": "/Marketing/Shared Documents/Blog",
99
+ "sharedWith": ["u-004", "u-001"],
100
+ "relatedEmails": ["em-008"],
101
+ "relatedEvents": ["ev-009"],
102
+ "tags": ["Marketing", "Blog", "Year in Review"]
103
+ },
104
+ {
105
+ "id": "f-007",
106
+ "name": "Security Audit Report Q4 2025.pdf",
107
+ "createdBy": "u-012",
108
+ "createdDateTime": "2026-01-12T16:00:00Z",
109
+ "lastModifiedBy": "u-012",
110
+ "lastModifiedDateTime": "2026-01-13T09:00:00Z",
111
+ "size": 1048576,
112
+ "mimeType": "application/pdf",
113
+ "webUrl": "https://northwindtech.sharepoint.com/sites/IT/Shared Documents/Security/Security Audit Report Q4 2025.pdf",
114
+ "driveId": "drive-it",
115
+ "parentFolder": "/IT/Shared Documents/Security",
116
+ "sharedWith": ["u-002", "u-007", "u-001"],
117
+ "relatedEmails": ["em-009"],
118
+ "relatedEvents": ["ev-007"],
119
+ "tags": ["Security", "Audit", "Compliance"]
120
+ },
121
+ {
122
+ "id": "f-008",
123
+ "name": "Python SDK Beta Feedback Report.xlsx",
124
+ "createdBy": "u-006",
125
+ "createdDateTime": "2026-01-15T09:00:00Z",
126
+ "lastModifiedBy": "u-006",
127
+ "lastModifiedDateTime": "2026-01-16T11:00:00Z",
128
+ "size": 256000,
129
+ "mimeType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
130
+ "webUrl": "https://northwindtech.sharepoint.com/sites/Engineering/Shared Documents/SDK/Python SDK Beta Feedback Report.xlsx",
131
+ "driveId": "drive-engineering",
132
+ "parentFolder": "/Engineering/Shared Documents/SDK",
133
+ "sharedWith": ["u-002", "u-008", "u-005"],
134
+ "relatedEmails": ["em-012"],
135
+ "relatedEvents": [],
136
+ "tags": ["SDK", "Python", "Beta", "Feedback"]
137
+ },
138
+ {
139
+ "id": "f-009",
140
+ "name": "API v3 Schema Design.md",
141
+ "createdBy": "u-005",
142
+ "createdDateTime": "2026-01-10T11:00:00Z",
143
+ "lastModifiedBy": "u-005",
144
+ "lastModifiedDateTime": "2026-01-14T15:30:00Z",
145
+ "size": 45000,
146
+ "mimeType": "text/markdown",
147
+ "webUrl": "https://northwindtech.sharepoint.com/sites/Engineering/Shared Documents/API/API v3 Schema Design.md",
148
+ "driveId": "drive-engineering",
149
+ "parentFolder": "/Engineering/Shared Documents/API",
150
+ "sharedWith": ["u-002", "u-006", "u-008", "u-003"],
151
+ "relatedEmails": ["em-002"],
152
+ "relatedEvents": [],
153
+ "tags": ["API", "GraphQL", "Schema", "v3"]
154
+ },
155
+ {
156
+ "id": "f-010",
157
+ "name": "Sprint 24 Retro Notes.docx",
158
+ "createdBy": "u-008",
159
+ "createdDateTime": "2026-01-14T17:00:00Z",
160
+ "lastModifiedBy": "u-008",
161
+ "lastModifiedDateTime": "2026-01-14T17:25:00Z",
162
+ "size": 98304,
163
+ "mimeType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
164
+ "webUrl": "https://northwindtech.sharepoint.com/sites/Engineering/Shared Documents/Sprints/Sprint 24/Sprint 24 Retro Notes.docx",
165
+ "driveId": "drive-engineering",
166
+ "parentFolder": "/Engineering/Shared Documents/Sprints/Sprint 24",
167
+ "sharedWith": ["u-002", "u-005", "u-006", "u-007", "u-003"],
168
+ "relatedEmails": ["em-010"],
169
+ "relatedEvents": [],
170
+ "tags": ["Sprint", "Retrospective", "Agile"]
171
+ }
172
+ ]
@@ -0,0 +1,158 @@
1
+ [
2
+ {
3
+ "id": "u-001",
4
+ "displayName": "Sarah Chen",
5
+ "mail": "sarah.chen@northwindtech.com",
6
+ "jobTitle": "CEO",
7
+ "department": "Executive",
8
+ "officeLocation": "Seattle HQ - Floor 5",
9
+ "managerId": null,
10
+ "directReports": ["u-002", "u-003", "u-004"],
11
+ "hireDate": "2019-03-15",
12
+ "skills": ["Leadership", "Strategy", "Cloud Architecture"],
13
+ "phone": "+1-206-555-0100"
14
+ },
15
+ {
16
+ "id": "u-002",
17
+ "displayName": "Marcus Rivera",
18
+ "mail": "marcus.rivera@northwindtech.com",
19
+ "jobTitle": "VP of Engineering",
20
+ "department": "Engineering",
21
+ "officeLocation": "Seattle HQ - Floor 4",
22
+ "managerId": "u-001",
23
+ "directReports": ["u-005", "u-006", "u-007"],
24
+ "hireDate": "2019-06-01",
25
+ "skills": ["Software Architecture", "Agile", "TypeScript", "Azure"],
26
+ "phone": "+1-206-555-0201"
27
+ },
28
+ {
29
+ "id": "u-003",
30
+ "displayName": "Priya Sharma",
31
+ "mail": "priya.sharma@northwindtech.com",
32
+ "jobTitle": "VP of Product",
33
+ "department": "Product",
34
+ "officeLocation": "Seattle HQ - Floor 4",
35
+ "managerId": "u-001",
36
+ "directReports": ["u-008", "u-009"],
37
+ "hireDate": "2020-01-10",
38
+ "skills": ["Product Management", "UX Research", "Data Analytics"],
39
+ "phone": "+1-206-555-0301"
40
+ },
41
+ {
42
+ "id": "u-004",
43
+ "displayName": "James Okafor",
44
+ "mail": "james.okafor@northwindtech.com",
45
+ "jobTitle": "VP of Sales & Marketing",
46
+ "department": "Sales",
47
+ "officeLocation": "Seattle HQ - Floor 3",
48
+ "managerId": "u-001",
49
+ "directReports": ["u-010", "u-011"],
50
+ "hireDate": "2020-04-20",
51
+ "skills": ["Sales Strategy", "Enterprise Accounts", "CRM"],
52
+ "phone": "+1-206-555-0401"
53
+ },
54
+ {
55
+ "id": "u-005",
56
+ "displayName": "Emily Zhang",
57
+ "mail": "emily.zhang@northwindtech.com",
58
+ "jobTitle": "Senior Software Engineer",
59
+ "department": "Engineering",
60
+ "officeLocation": "Seattle HQ - Floor 4",
61
+ "managerId": "u-002",
62
+ "directReports": [],
63
+ "hireDate": "2020-08-15",
64
+ "skills": ["React", "TypeScript", "GraphQL", "Node.js"],
65
+ "phone": "+1-206-555-0501"
66
+ },
67
+ {
68
+ "id": "u-006",
69
+ "displayName": "David Kim",
70
+ "mail": "david.kim@northwindtech.com",
71
+ "jobTitle": "Software Engineer",
72
+ "department": "Engineering",
73
+ "officeLocation": "Portland Office",
74
+ "managerId": "u-002",
75
+ "directReports": [],
76
+ "hireDate": "2021-02-01",
77
+ "skills": ["Python", "Azure Functions", "CosmosDB", "Docker"],
78
+ "phone": "+1-503-555-0601"
79
+ },
80
+ {
81
+ "id": "u-007",
82
+ "displayName": "Ana Petrova",
83
+ "mail": "ana.petrova@northwindtech.com",
84
+ "jobTitle": "DevOps Engineer",
85
+ "department": "Engineering",
86
+ "officeLocation": "Remote - Denver",
87
+ "managerId": "u-002",
88
+ "directReports": [],
89
+ "hireDate": "2021-06-15",
90
+ "skills": ["CI/CD", "Kubernetes", "Terraform", "Azure DevOps"],
91
+ "phone": "+1-720-555-0701"
92
+ },
93
+ {
94
+ "id": "u-008",
95
+ "displayName": "Liam Foster",
96
+ "mail": "liam.foster@northwindtech.com",
97
+ "jobTitle": "Product Manager",
98
+ "department": "Product",
99
+ "officeLocation": "Seattle HQ - Floor 4",
100
+ "managerId": "u-003",
101
+ "directReports": [],
102
+ "hireDate": "2021-09-01",
103
+ "skills": ["Roadmap Planning", "User Stories", "Jira", "Figma"],
104
+ "phone": "+1-206-555-0801"
105
+ },
106
+ {
107
+ "id": "u-009",
108
+ "displayName": "Mia Torres",
109
+ "mail": "mia.torres@northwindtech.com",
110
+ "jobTitle": "UX Designer",
111
+ "department": "Product",
112
+ "officeLocation": "Seattle HQ - Floor 4",
113
+ "managerId": "u-003",
114
+ "directReports": [],
115
+ "hireDate": "2022-01-10",
116
+ "skills": ["UI Design", "Figma", "User Research", "Prototyping"],
117
+ "phone": "+1-206-555-0901"
118
+ },
119
+ {
120
+ "id": "u-010",
121
+ "displayName": "Ryan Mitchell",
122
+ "mail": "ryan.mitchell@northwindtech.com",
123
+ "jobTitle": "Account Executive",
124
+ "department": "Sales",
125
+ "officeLocation": "Seattle HQ - Floor 3",
126
+ "managerId": "u-004",
127
+ "directReports": [],
128
+ "hireDate": "2021-11-01",
129
+ "skills": ["Enterprise Sales", "Negotiation", "Salesforce"],
130
+ "phone": "+1-206-555-1001"
131
+ },
132
+ {
133
+ "id": "u-011",
134
+ "displayName": "Olivia Grant",
135
+ "mail": "olivia.grant@northwindtech.com",
136
+ "jobTitle": "Marketing Manager",
137
+ "department": "Sales",
138
+ "officeLocation": "Remote - Austin",
139
+ "managerId": "u-004",
140
+ "directReports": [],
141
+ "hireDate": "2022-03-15",
142
+ "skills": ["Content Marketing", "SEO", "Social Media", "HubSpot"],
143
+ "phone": "+1-512-555-1101"
144
+ },
145
+ {
146
+ "id": "u-012",
147
+ "displayName": "Noah Andersen",
148
+ "mail": "noah.andersen@northwindtech.com",
149
+ "jobTitle": "IT Administrator",
150
+ "department": "IT",
151
+ "officeLocation": "Seattle HQ - Floor 2",
152
+ "managerId": "u-001",
153
+ "directReports": [],
154
+ "hireDate": "2020-05-10",
155
+ "skills": ["M365 Administration", "Azure AD", "Security", "Networking"],
156
+ "phone": "+1-206-555-1201"
157
+ }
158
+ ]
@@ -0,0 +1,21 @@
1
+ /** @type {import('ts-jest').JestConfigWithTsJest} **/
2
+ module.exports = {
3
+ testEnvironment: "node",
4
+ // Only transform our own TypeScript files, not node_modules
5
+ transform: {
6
+ "^.+\\.tsx?$": [
7
+ "ts-jest",
8
+ {
9
+ tsconfig: "tsconfig.json",
10
+ },
11
+ ],
12
+ },
13
+ testPathIgnorePatterns: ["/node_modules/"],
14
+ // Explicitly exclude node_modules from transformation
15
+ transformIgnorePatterns: ["/node_modules/"],
16
+ // Use moduleNameMapper to ensure flowquery imports use the dist files
17
+ moduleNameMapper: {
18
+ "^flowquery$": "<rootDir>/node_modules/flowquery/dist/index.node.js",
19
+ "^flowquery/extensibility$": "<rootDir>/node_modules/flowquery/dist/extensibility.js",
20
+ },
21
+ };
@@ -6,7 +6,8 @@
6
6
  "scripts": {
7
7
  "start": "webpack serve --mode development",
8
8
  "build": "webpack --mode production",
9
- "dev": "webpack serve --mode development --hot"
9
+ "dev": "webpack serve --mode development --hot",
10
+ "test": "jest"
10
11
  },
11
12
  "keywords": [
12
13
  "rag",
@@ -20,17 +21,23 @@
20
21
  "@fluentui/react-icons": "^2.0.316",
21
22
  "adaptivecards": "^3.0.5",
22
23
  "adaptivecards-templating": "^2.3.1",
23
- "flowquery": "^1.0.16",
24
+ "flowquery": "^1.0.24",
24
25
  "react": "^19.2.3",
25
26
  "react-dom": "^19.2.3"
26
27
  },
28
+ "overrides": {
29
+ "fast-xml-parser": "5.3.4"
30
+ },
27
31
  "devDependencies": {
32
+ "@types/jest": "^29.5.12",
28
33
  "@types/node": "^22.0.0",
29
34
  "@types/react": "^19.2.7",
30
35
  "@types/react-dom": "^19.2.3",
31
36
  "css-loader": "^7.1.2",
32
37
  "html-webpack-plugin": "^5.6.5",
38
+ "jest": "^29.7.0",
33
39
  "style-loader": "^4.0.0",
40
+ "ts-jest": "^29.1.2",
34
41
  "ts-loader": "^9.5.1",
35
42
  "ts-node": "^10.9.2",
36
43
  "typescript": "^5.7.2",
@@ -15,8 +15,11 @@ const App: React.FC = () => {
15
15
 
16
16
  useEffect(() => {
17
17
  // Generate the system prompt after plugins are initialized
18
- const prompt = generateFlowQuerySystemPrompt();
19
- setSystemPrompt(prompt);
18
+ const loadPrompt = async () => {
19
+ const prompt = await generateFlowQuerySystemPrompt();
20
+ setSystemPrompt(prompt);
21
+ };
22
+ loadPrompt();
20
23
  }, []);
21
24
 
22
25
  return (
@@ -36,9 +39,6 @@ const App: React.FC = () => {
36
39
  <div className="chat-wrapper">
37
40
  <ChatContainer
38
41
  systemPrompt={systemPrompt}
39
- useStreaming={true}
40
- useFlowQueryAgent={true}
41
- showIntermediateSteps={true}
42
42
  />
43
43
  </div>
44
44
  </div>