flowquery 1.0.25 → 1.0.26

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 (49) 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/parser.d.ts.map +1 -1
  5. package/dist/parsing/parser.js +1 -0
  6. package/dist/parsing/parser.js.map +1 -1
  7. package/docs/flowquery.min.js +1 -1
  8. package/flowquery-py/pyproject.toml +1 -1
  9. package/flowquery-py/src/parsing/parser.py +1 -0
  10. package/flowquery-py/tests/compute/test_runner.py +26 -0
  11. package/flowquery-py/tests/parsing/test_parser.py +18 -0
  12. package/flowquery-vscode/flowQueryEngine/flowquery.min.js +1 -1
  13. package/jest.config.js +6 -9
  14. package/misc/apps/RAG/data/chats.json +302 -0
  15. package/misc/apps/RAG/data/emails.json +182 -0
  16. package/misc/apps/RAG/data/events.json +226 -0
  17. package/misc/apps/RAG/data/files.json +172 -0
  18. package/misc/apps/RAG/data/users.json +158 -0
  19. package/misc/apps/RAG/jest.config.js +21 -0
  20. package/misc/apps/RAG/package.json +9 -2
  21. package/misc/apps/RAG/src/App.tsx +5 -5
  22. package/misc/apps/RAG/src/components/ChatContainer.tsx +53 -124
  23. package/misc/apps/RAG/src/components/FlowQueryAgent.ts +151 -157
  24. package/misc/apps/RAG/src/components/index.ts +1 -1
  25. package/misc/apps/RAG/src/graph/index.ts +19 -0
  26. package/misc/apps/RAG/src/graph/initializeGraph.ts +254 -0
  27. package/misc/apps/RAG/src/index.tsx +25 -13
  28. package/misc/apps/RAG/src/prompts/FlowQuerySystemPrompt.ts +146 -231
  29. package/misc/apps/RAG/src/prompts/index.ts +4 -4
  30. package/misc/apps/RAG/src/tests/graph.test.ts +35 -0
  31. package/misc/apps/RAG/src/utils/FlowQueryExecutor.ts +20 -21
  32. package/misc/apps/RAG/src/utils/FlowQueryExtractor.ts +35 -30
  33. package/misc/apps/RAG/src/utils/Llm.ts +248 -0
  34. package/misc/apps/RAG/src/utils/index.ts +7 -4
  35. package/misc/apps/RAG/tsconfig.json +4 -3
  36. package/misc/apps/RAG/webpack.config.js +40 -40
  37. package/package.json +1 -1
  38. package/src/parsing/parser.ts +1 -0
  39. package/tests/compute/runner.test.ts +1 -1
  40. package/tests/parsing/parser.test.ts +16 -0
  41. package/misc/apps/RAG/src/plugins/README.md +0 -139
  42. package/misc/apps/RAG/src/plugins/index.ts +0 -72
  43. package/misc/apps/RAG/src/plugins/loaders/CatFacts.ts +0 -70
  44. package/misc/apps/RAG/src/plugins/loaders/FetchJson.ts +0 -65
  45. package/misc/apps/RAG/src/plugins/loaders/Form.ts +0 -594
  46. package/misc/apps/RAG/src/plugins/loaders/Llm.ts +0 -450
  47. package/misc/apps/RAG/src/plugins/loaders/MockData.ts +0 -101
  48. package/misc/apps/RAG/src/plugins/loaders/Table.ts +0 -274
  49. package/misc/apps/RAG/src/plugins/loaders/Weather.ts +0 -138
@@ -1,6 +1,7 @@
1
1
  name: Build and Release
2
2
 
3
3
  on:
4
+ workflow_dispatch:
4
5
  push:
5
6
  branches:
6
7
  - main
package/.husky/pre-commit CHANGED
@@ -18,10 +18,11 @@ if git diff --cached --name-only | grep -q "^flowquery-py/.*\.py$"; then
18
18
  cd ..
19
19
  fi
20
20
 
21
- # Strip outputs from notebook files in flowquery-py
22
- for notebook in $(git ls-files 'flowquery-py/**/*.ipynb'); do
21
+ # Strip outputs from notebook files in flowquery-py (only changed ones)
22
+ for notebook in $(git diff --cached --name-only -- 'flowquery-py/**/*.ipynb'); do
23
23
  if [ -f "$notebook" ]; then
24
24
  echo "Stripping outputs from: $notebook"
25
25
  python -m nbstripout "$notebook"
26
+ git add "$notebook"
26
27
  fi
27
28
  done