flowapy 0.1.3__tar.gz → 0.2.2__tar.gz

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 (321) hide show
  1. {flowapy-0.1.3 → flowapy-0.2.2}/PKG-INFO +2 -1
  2. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/README.md +11 -9
  3. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/aggregation.json +1207 -1146
  4. flowapy-0.2.2/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/extractions/10.1002%2Fhumu.23878.json +84 -0
  5. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/extractions/10.1016%2Fj.ymgmr.2024.101163.json +12 -4
  6. flowapy-0.2.2/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/extractions/10.1038%2Fs41598-022-25914-8.json +105 -0
  7. flowapy-0.2.2/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/extractions/10.1186%2Fs12881-019-0878-8.json +69 -0
  8. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/extractions/10.1186%2Fs13023-021-01817-1.json +44 -44
  9. flowapy-0.2.2/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/extractions/10.1186%2Fs13023-021-02146-z.json +40 -0
  10. flowapy-0.2.2/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/extractions/10.1186%2Fs13023-023-02848-6.json +117 -0
  11. flowapy-0.2.2/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/extractions/10.1186%2Fs13052-019-0692-0.json +45 -0
  12. flowapy-0.2.2/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/extractions/10.3389%2Ffcvm.2022.1061384.json +37 -0
  13. flowapy-0.2.2/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/extractions/10.3389%2Ffcvm.2023.1261172.json +45 -0
  14. flowapy-0.2.2/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/extractions/10.3389%2Ffimmu.2024.1336599.json +53 -0
  15. flowapy-0.2.2/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/extractions/10.3389%2Ffped.2021.729824.json +53 -0
  16. flowapy-0.2.2/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/extractions/10.3389%2Ffphar.2022.903488.json +77 -0
  17. flowapy-0.2.2/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/extractions/10.3390%2Fijns11010016.json +29 -0
  18. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/extractions/10.3390%2Fijns6020031.json +3 -3
  19. flowapy-0.2.2/examples/demo/fixtures/papers/10.1002%2Fhumu.23878/pdf_index.pkl.zst +0 -0
  20. flowapy-0.2.2/examples/demo/fixtures/papers/10.1016%2Fj.ymgmr.2024.101163/pdf_index.pkl.zst +0 -0
  21. flowapy-0.2.2/examples/demo/fixtures/papers/10.1038%2Fs41598-022-25914-8/pdf_index.pkl.zst +0 -0
  22. flowapy-0.2.2/examples/demo/fixtures/papers/10.1186%2Fs12881-019-0878-8/pdf_index.pkl.zst +0 -0
  23. flowapy-0.2.2/examples/demo/fixtures/papers/10.1186%2Fs13023-021-01817-1/pdf_index.pkl.zst +0 -0
  24. flowapy-0.2.2/examples/demo/fixtures/papers/10.1186%2Fs13023-021-02146-z/pdf_index.pkl.zst +0 -0
  25. flowapy-0.2.2/examples/demo/fixtures/papers/10.1186%2Fs13023-023-02848-6/pdf_index.pkl.zst +0 -0
  26. flowapy-0.2.2/examples/demo/fixtures/papers/10.1186%2Fs13052-019-0692-0/pdf_index.pkl.zst +0 -0
  27. flowapy-0.2.2/examples/demo/fixtures/papers/10.3389%2Ffcvm.2022.1061384/pdf_index.pkl.zst +0 -0
  28. flowapy-0.2.2/examples/demo/fixtures/papers/10.3389%2Ffcvm.2023.1261172/pdf_index.pkl.zst +0 -0
  29. flowapy-0.2.2/examples/demo/fixtures/papers/10.3389%2Ffimmu.2024.1336599/pdf_index.pkl.zst +0 -0
  30. flowapy-0.2.2/examples/demo/fixtures/papers/10.3389%2Ffped.2021.729824/pdf_index.pkl.zst +0 -0
  31. flowapy-0.2.2/examples/demo/fixtures/papers/10.3389%2Ffphar.2022.903488/pdf_index.pkl.zst +0 -0
  32. flowapy-0.2.2/examples/demo/fixtures/papers/10.3390%2Fijns11010016/pdf_index.pkl.zst +0 -0
  33. flowapy-0.2.2/examples/demo/fixtures/papers/10.3390%2Fijns6020031/pdf_index.pkl.zst +0 -0
  34. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo-gateway/src/demo_gateway/main.py +13 -18
  35. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo-gateway/tests/test_resolve.py +13 -28
  36. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo-gateway/uv.lock +64 -37
  37. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/package.json +2 -2
  38. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/package.json +1 -1
  39. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/pdf-viewer/PdfHighlightViewer.test.tsx +21 -1
  40. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/pdf-viewer/PdfHighlightViewer.tsx +31 -7
  41. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/pdf-viewer/types.ts +7 -0
  42. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/triage/EvidenceViewerShell.tsx +34 -2
  43. {flowapy-0.1.3 → flowapy-0.2.2}/prompts/generic/extraction_prompt.txt +1 -7
  44. {flowapy-0.1.3 → flowapy-0.2.2}/pyproject.toml +2 -1
  45. {flowapy-0.1.3 → flowapy-0.2.2}/src/flowa/aggregate.py +66 -58
  46. flowapy-0.2.2/src/flowa/content_validation.py +153 -0
  47. {flowapy-0.1.3 → flowapy-0.2.2}/src/flowa/convert.py +45 -20
  48. flowapy-0.2.2/src/flowa/pdf_index_cache.py +133 -0
  49. {flowapy-0.1.3 → flowapy-0.2.2}/src/flowa/resolve.py +54 -69
  50. flowapy-0.2.2/tests/test_content_validation.py +164 -0
  51. flowapy-0.2.2/tests/test_pdf_index_cache.py +120 -0
  52. flowapy-0.2.2/tests/test_resolve.py +158 -0
  53. {flowapy-0.1.3 → flowapy-0.2.2}/uv.lock +28 -1
  54. flowapy-0.1.3/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/extractions/10.1002%2Fhumu.23878.json +0 -77
  55. flowapy-0.1.3/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/extractions/10.1038%2Fs41598-022-25914-8.json +0 -109
  56. flowapy-0.1.3/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/extractions/10.1186%2Fs12881-019-0878-8.json +0 -61
  57. flowapy-0.1.3/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/extractions/10.1186%2Fs13023-021-02146-z.json +0 -37
  58. flowapy-0.1.3/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/extractions/10.1186%2Fs13023-023-02848-6.json +0 -133
  59. flowapy-0.1.3/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/extractions/10.1186%2Fs13052-019-0692-0.json +0 -85
  60. flowapy-0.1.3/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/extractions/10.3389%2Ffcvm.2022.1061384.json +0 -37
  61. flowapy-0.1.3/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/extractions/10.3389%2Ffcvm.2023.1261172.json +0 -69
  62. flowapy-0.1.3/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/extractions/10.3389%2Ffimmu.2024.1336599.json +0 -96
  63. flowapy-0.1.3/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/extractions/10.3389%2Ffped.2021.729824.json +0 -37
  64. flowapy-0.1.3/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/extractions/10.3389%2Ffphar.2022.903488.json +0 -61
  65. flowapy-0.1.3/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/extractions/10.3390%2Fijns11010016.json +0 -37
  66. flowapy-0.1.3/tests/test_resolve.py +0 -207
  67. {flowapy-0.1.3 → flowapy-0.2.2}/.env.example +0 -0
  68. {flowapy-0.1.3 → flowapy-0.2.2}/.github/dependabot.yml +0 -0
  69. {flowapy-0.1.3 → flowapy-0.2.2}/.github/workflows/dependabot-auto-merge.yml +0 -0
  70. {flowapy-0.1.3 → flowapy-0.2.2}/.github/workflows/lint.yaml +0 -0
  71. {flowapy-0.1.3 → flowapy-0.2.2}/.github/workflows/release-chat-service.yaml +0 -0
  72. {flowapy-0.1.3 → flowapy-0.2.2}/.github/workflows/release-flowapy.yaml +0 -0
  73. {flowapy-0.1.3 → flowapy-0.2.2}/.github/workflows/release-react-viewer.yaml +0 -0
  74. {flowapy-0.1.3 → flowapy-0.2.2}/.gitignore +0 -0
  75. {flowapy-0.1.3 → flowapy-0.2.2}/.markdownlint.json +0 -0
  76. {flowapy-0.1.3 → flowapy-0.2.2}/.nvmrc +0 -0
  77. {flowapy-0.1.3 → flowapy-0.2.2}/.pre-commit-config.yaml +0 -0
  78. {flowapy-0.1.3 → flowapy-0.2.2}/.prettierignore +0 -0
  79. {flowapy-0.1.3 → flowapy-0.2.2}/Dockerfile +0 -0
  80. {flowapy-0.1.3 → flowapy-0.2.2}/LICENSE +0 -0
  81. {flowapy-0.1.3 → flowapy-0.2.2}/README.md +0 -0
  82. {flowapy-0.1.3 → flowapy-0.2.2}/docs/images/viewer.png +0 -0
  83. {flowapy-0.1.3 → flowapy-0.2.2}/examples/.gitkeep +0 -0
  84. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/.env.example +0 -0
  85. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/.gitignore +0 -0
  86. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/LICENSES.md +0 -0
  87. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/query.json +0 -0
  88. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/runs/cfc0186a7b7e46eb802a516b86ec207f/progress.jsonl +0 -0
  89. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/assessments/NM_000152_5-c_1935C_A/variant_details.json +0 -0
  90. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1002%2Fajmg.a.61481/metadata.json +0 -0
  91. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1002%2Fhumu.23878/markdown.md +0 -0
  92. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1002%2Fhumu.23878/metadata.json +0 -0
  93. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1002%2Fhumu.23878/source.pdf +0 -0
  94. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1016%2Fj.ejmg.2020.103997/metadata.json +0 -0
  95. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1016%2Fj.nmd.2022.02.002/metadata.json +0 -0
  96. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1016%2Fj.tjog.2022.07.008/metadata.json +0 -0
  97. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1016%2Fj.ymgmr.2024.101163/markdown.md +0 -0
  98. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1016%2Fj.ymgmr.2024.101163/metadata.json +0 -0
  99. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1016%2Fj.ymgmr.2024.101163/source.pdf +0 -0
  100. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1038%2Fs41598-022-25914-8/markdown.md +0 -0
  101. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1038%2Fs41598-022-25914-8/metadata.json +0 -0
  102. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1038%2Fs41598-022-25914-8/source.pdf +0 -0
  103. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1093%2Fhmg%2Fddz218/metadata.json +0 -0
  104. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1136%2Fjmg-2022-108675/metadata.json +0 -0
  105. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1186%2Fs12881-019-0878-8/markdown.md +0 -0
  106. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1186%2Fs12881-019-0878-8/metadata.json +0 -0
  107. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1186%2Fs12881-019-0878-8/source.pdf +0 -0
  108. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1186%2Fs13023-021-01817-1/markdown.md +0 -0
  109. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1186%2Fs13023-021-01817-1/metadata.json +0 -0
  110. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1186%2Fs13023-021-01817-1/source.pdf +0 -0
  111. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1186%2Fs13023-021-02146-z/markdown.md +0 -0
  112. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1186%2Fs13023-021-02146-z/metadata.json +0 -0
  113. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1186%2Fs13023-021-02146-z/source.pdf +0 -0
  114. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1186%2Fs13023-023-02848-6/markdown.md +0 -0
  115. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1186%2Fs13023-023-02848-6/metadata.json +0 -0
  116. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1186%2Fs13023-023-02848-6/source.pdf +0 -0
  117. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1186%2Fs13052-019-0692-0/markdown.md +0 -0
  118. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1186%2Fs13052-019-0692-0/metadata.json +0 -0
  119. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.1186%2Fs13052-019-0692-0/source.pdf +0 -0
  120. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.3389%2Ffcvm.2022.1061384/markdown.md +0 -0
  121. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.3389%2Ffcvm.2022.1061384/metadata.json +0 -0
  122. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.3389%2Ffcvm.2022.1061384/source.pdf +0 -0
  123. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.3389%2Ffcvm.2023.1261172/markdown.md +0 -0
  124. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.3389%2Ffcvm.2023.1261172/metadata.json +0 -0
  125. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.3389%2Ffcvm.2023.1261172/source.pdf +0 -0
  126. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.3389%2Ffimmu.2024.1336599/markdown.md +0 -0
  127. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.3389%2Ffimmu.2024.1336599/metadata.json +0 -0
  128. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.3389%2Ffimmu.2024.1336599/source.pdf +0 -0
  129. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.3389%2Ffped.2021.729824/markdown.md +0 -0
  130. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.3389%2Ffped.2021.729824/metadata.json +0 -0
  131. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.3389%2Ffped.2021.729824/source.pdf +0 -0
  132. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.3389%2Ffphar.2022.903488/markdown.md +0 -0
  133. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.3389%2Ffphar.2022.903488/metadata.json +0 -0
  134. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.3389%2Ffphar.2022.903488/source.pdf +0 -0
  135. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.3390%2Fijns11010016/markdown.md +0 -0
  136. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.3390%2Fijns11010016/metadata.json +0 -0
  137. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.3390%2Fijns11010016/source.pdf +0 -0
  138. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.3390%2Fijns6020031/markdown.md +0 -0
  139. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.3390%2Fijns6020031/metadata.json +0 -0
  140. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/fixtures/papers/10.3390%2Fijns6020031/source.pdf +0 -0
  141. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/next-env.d.ts +0 -0
  142. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/next.config.mjs +0 -0
  143. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/package.json +0 -0
  144. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/postcss.config.cjs +0 -0
  145. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/public/favicon.svg +0 -0
  146. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/scripts/chat-service.ts +0 -0
  147. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/scripts/copy-pdfjs-assets.ts +0 -0
  148. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/scripts/exercise-llm.ts +0 -0
  149. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/scripts/start.ts +0 -0
  150. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/components/literature/LiteratureView.tsx +0 -0
  151. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/components/literature/PaperStatusGroup.tsx +0 -0
  152. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/components/literature/ProgressLog.tsx +0 -0
  153. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/components/literature/matchFilename.ts +0 -0
  154. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/db/migrate.ts +0 -0
  155. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/db/schema.sql +0 -0
  156. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/lib/aggregate.ts +0 -0
  157. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/lib/chatSessionClient.ts +0 -0
  158. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/lib/citationResolverClient.ts +0 -0
  159. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/lib/demoConfig.ts +0 -0
  160. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/lib/papers.ts +0 -0
  161. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/lib/progressEvents.ts +0 -0
  162. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/lib/runs.ts +0 -0
  163. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/lib/triageBackendClient.ts +0 -0
  164. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/lib/triageDb.ts +0 -0
  165. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/lib/variantId.ts +0 -0
  166. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/pages/_app.tsx +0 -0
  167. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/pages/api/aggregate/[variantId]/[category].ts +0 -0
  168. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/pages/api/edit-drafts/[variantId]/[category]/[version].ts +0 -0
  169. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/pages/api/edit-drafts/[variantId]/[category]/index.ts +0 -0
  170. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/pages/api/papers/[doi]/pdf.ts +0 -0
  171. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/pages/api/papers/index.ts +0 -0
  172. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/pages/api/runs/[variantId]/[runId]/progress.ts +0 -0
  173. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/pages/api/runs/index.ts +0 -0
  174. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/pages/api/runs/latest.ts +0 -0
  175. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/pages/api/triage/claim.ts +0 -0
  176. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/pages/api/triage/comment.ts +0 -0
  177. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/pages/api/triage/paper-done.ts +0 -0
  178. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/pages/api/triage/snapshot/[variantId]/[category]/[version].ts +0 -0
  179. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/pages/index.tsx +0 -0
  180. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/pages/variants/[variantId].tsx +0 -0
  181. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/pages/viewer/[variantId]/[category].tsx +0 -0
  182. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/src/styles/globals.css +0 -0
  183. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/tailwind.config.ts +0 -0
  184. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/test/LiteratureView.test.tsx +0 -0
  185. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/test/ProgressLog.test.tsx +0 -0
  186. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/test/aggregate.test.ts +0 -0
  187. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/test/chat-service.test.ts +0 -0
  188. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/test/index-page.test.tsx +0 -0
  189. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/test/matchFilename.test.ts +0 -0
  190. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/test/papers-pdf-upload.test.ts +0 -0
  191. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/test/papers-route.test.ts +0 -0
  192. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/test/papers.test.ts +0 -0
  193. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/test/progress-route.test.ts +0 -0
  194. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/test/runs-latest-route.test.ts +0 -0
  195. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/test/runs-route.test.ts +0 -0
  196. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/test/runs.test.ts +0 -0
  197. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/test/setup.ts +0 -0
  198. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/test/triage.test.ts +0 -0
  199. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/test/variantId.test.ts +0 -0
  200. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/tsconfig.json +0 -0
  201. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo/vitest.config.ts +0 -0
  202. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo-gateway/README.md +0 -0
  203. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo-gateway/pyproject.toml +0 -0
  204. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo-gateway/src/demo_gateway/__init__.py +0 -0
  205. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo-gateway/src/demo_gateway/config.py +0 -0
  206. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo-gateway/src/demo_gateway/progress.py +0 -0
  207. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo-gateway/src/demo_gateway/runs.py +0 -0
  208. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo-gateway/tests/__init__.py +0 -0
  209. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo-gateway/tests/conftest.py +0 -0
  210. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo-gateway/tests/test_main.py +0 -0
  211. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo-gateway/tests/test_progress.py +0 -0
  212. {flowapy-0.1.3 → flowapy-0.2.2}/examples/demo-gateway/tests/test_runs.py +0 -0
  213. {flowapy-0.1.3 → flowapy-0.2.2}/package.json +0 -0
  214. {flowapy-0.1.3 → flowapy-0.2.2}/packages/.gitkeep +0 -0
  215. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/Dockerfile +0 -0
  216. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/LICENSE +0 -0
  217. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/README.md +0 -0
  218. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/src/artifact.ts +0 -0
  219. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/src/audit.ts +0 -0
  220. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/src/auth/jwt.ts +0 -0
  221. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/src/auth/oidc.ts +0 -0
  222. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/src/chat.ts +0 -0
  223. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/src/cli.ts +0 -0
  224. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/src/config.ts +0 -0
  225. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/src/index.ts +0 -0
  226. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/src/instrumentation.ts +0 -0
  227. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/src/llm/anthropic.ts +0 -0
  228. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/src/llm/bedrock.ts +0 -0
  229. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/src/llm/factory.ts +0 -0
  230. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/src/llm/google-gla.ts +0 -0
  231. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/src/llm/google-vertex.ts +0 -0
  232. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/src/llm/interface.ts +0 -0
  233. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/src/llm/openai.ts +0 -0
  234. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/src/prompts.ts +0 -0
  235. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/src/server.ts +0 -0
  236. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/src/session.ts +0 -0
  237. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/src/storage/factory.ts +0 -0
  238. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/src/storage/fs.ts +0 -0
  239. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/src/storage/gcs.ts +0 -0
  240. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/src/storage/interface.ts +0 -0
  241. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/src/storage/s3.ts +0 -0
  242. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/src/storage-keys.ts +0 -0
  243. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/src/telemetry.ts +0 -0
  244. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/src/text.ts +0 -0
  245. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/src/yaml.ts +0 -0
  246. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/test/chat.test.ts +0 -0
  247. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/test/generic-prompt.test.ts +0 -0
  248. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/test/llm-factory.test.ts +0 -0
  249. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/test/oidc.test.ts +0 -0
  250. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/test/paper-cache.test.ts +0 -0
  251. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/test/storage-fs.test.ts +0 -0
  252. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/test/storage-gcs.test.ts +0 -0
  253. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/test/storage-s3.test.ts +0 -0
  254. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/test/text.test.ts +0 -0
  255. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/test/yaml.test.ts +0 -0
  256. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/tsconfig.build.json +0 -0
  257. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/tsconfig.json +0 -0
  258. {flowapy-0.1.3 → flowapy-0.2.2}/packages/chat-service/vitest.config.ts +0 -0
  259. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/LICENSE +0 -0
  260. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/README.md +0 -0
  261. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/citations/sanitize.test.ts +0 -0
  262. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/citations/sanitize.ts +0 -0
  263. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/citations/types.ts +0 -0
  264. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/index.ts +0 -0
  265. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/llm-content/LlmContent.test.tsx +0 -0
  266. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/llm-content/LlmContent.tsx +0 -0
  267. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/styles.css +0 -0
  268. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/triage/ChatDrawer.tsx +0 -0
  269. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/triage/ChatSection.tsx +0 -0
  270. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/triage/ClaimList.tsx +0 -0
  271. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/triage/EvidenceViewerShell.test.tsx +0 -0
  272. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/triage/FocusCard.tsx +0 -0
  273. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/triage/PaperHeader.tsx +0 -0
  274. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/triage/PaperRail.test.tsx +0 -0
  275. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/triage/PaperRail.tsx +0 -0
  276. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/triage/SynthesisPanel.tsx +0 -0
  277. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/triage/backend.ts +0 -0
  278. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/triage/citation-resolver.ts +0 -0
  279. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/triage/citation-utils.test.ts +0 -0
  280. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/triage/citation-utils.ts +0 -0
  281. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/triage/claim-refs.test.ts +0 -0
  282. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/triage/claim-refs.ts +0 -0
  283. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/triage/keyboard.test.ts +0 -0
  284. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/triage/keyboard.ts +0 -0
  285. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/triage/store.test.ts +0 -0
  286. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/triage/store.ts +0 -0
  287. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/src/triage/types.ts +0 -0
  288. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/tailwind.config.ts +0 -0
  289. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/tsconfig.json +0 -0
  290. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/tsup.config.ts +0 -0
  291. {flowapy-0.1.3 → flowapy-0.2.2}/packages/react-viewer/vitest.config.ts +0 -0
  292. {flowapy-0.1.3 → flowapy-0.2.2}/pnpm-lock.yaml +0 -0
  293. {flowapy-0.1.3 → flowapy-0.2.2}/pnpm-workspace.yaml +0 -0
  294. {flowapy-0.1.3 → flowapy-0.2.2}/prompts/generic/aggregation_edit_prompt.txt +0 -0
  295. {flowapy-0.1.3 → flowapy-0.2.2}/prompts/generic/aggregation_edit_schema.ts +0 -0
  296. {flowapy-0.1.3 → flowapy-0.2.2}/prompts/generic/aggregation_prompt.txt +0 -0
  297. {flowapy-0.1.3 → flowapy-0.2.2}/prompts/generic/aggregation_schema.py +0 -0
  298. {flowapy-0.1.3 → flowapy-0.2.2}/prompts/generic/extraction_schema.py +0 -0
  299. {flowapy-0.1.3 → flowapy-0.2.2}/prompts/generic/transcription_prompt.txt +0 -0
  300. {flowapy-0.1.3 → flowapy-0.2.2}/prompts/package.json +0 -0
  301. {flowapy-0.1.3 → flowapy-0.2.2}/src/flowa/__init__.py +0 -0
  302. {flowapy-0.1.3 → flowapy-0.2.2}/src/flowa/artifact.py +0 -0
  303. {flowapy-0.1.3 → flowapy-0.2.2}/src/flowa/cli.py +0 -0
  304. {flowapy-0.1.3 → flowapy-0.2.2}/src/flowa/clinvar.py +0 -0
  305. {flowapy-0.1.3 → flowapy-0.2.2}/src/flowa/download.py +0 -0
  306. {flowapy-0.1.3 → flowapy-0.2.2}/src/flowa/extract.py +0 -0
  307. {flowapy-0.1.3 → flowapy-0.2.2}/src/flowa/http_retry.py +0 -0
  308. {flowapy-0.1.3 → flowapy-0.2.2}/src/flowa/models.py +0 -0
  309. {flowapy-0.1.3 → flowapy-0.2.2}/src/flowa/normalize.py +0 -0
  310. {flowapy-0.1.3 → flowapy-0.2.2}/src/flowa/progress.py +0 -0
  311. {flowapy-0.1.3 → flowapy-0.2.2}/src/flowa/prompts/__init__.py +0 -0
  312. {flowapy-0.1.3 → flowapy-0.2.2}/src/flowa/py.typed +0 -0
  313. {flowapy-0.1.3 → flowapy-0.2.2}/src/flowa/query.py +0 -0
  314. {flowapy-0.1.3 → flowapy-0.2.2}/src/flowa/run.py +0 -0
  315. {flowapy-0.1.3 → flowapy-0.2.2}/src/flowa/schema.py +0 -0
  316. {flowapy-0.1.3 → flowapy-0.2.2}/src/flowa/settings.py +0 -0
  317. {flowapy-0.1.3 → flowapy-0.2.2}/src/flowa/storage.py +0 -0
  318. {flowapy-0.1.3 → flowapy-0.2.2}/tests/__init__.py +0 -0
  319. {flowapy-0.1.3 → flowapy-0.2.2}/tests/test_progress.py +0 -0
  320. {flowapy-0.1.3 → flowapy-0.2.2}/tests/test_prompts.py +0 -0
  321. {flowapy-0.1.3 → flowapy-0.2.2}/tsconfig.base.json +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flowapy
3
- Version: 0.1.3
3
+ Version: 0.2.2
4
4
  Summary: Variant literature assessment pipeline with AI extraction
5
5
  Project-URL: Homepage, https://github.com/populationgenomics/flowa
6
6
  Project-URL: Source, https://github.com/populationgenomics/flowa
@@ -47,6 +47,7 @@ Requires-Dist: pypdf
47
47
  Requires-Dist: s3fs
48
48
  Requires-Dist: tenacity
49
49
  Requires-Dist: typer
50
+ Requires-Dist: zstandard
50
51
  Provides-Extra: anthropic
51
52
  Requires-Dist: pydantic-ai-slim[anthropic]==1.101.0; extra == 'anthropic'
52
53
  Provides-Extra: bedrock
@@ -166,10 +166,10 @@ VARIANT=NM_001035_3-c_14174A_G
166
166
  rm -f assessments/$VARIANT/aggregation.json \
167
167
  assessments/$VARIANT/aggregation_raw.json
168
168
  rm -rf assessments/$VARIANT/extractions/ assessments/$VARIANT/runs/
169
- # Re-runs flowa.convert (which uses anchorite for PDF chunking).
170
- # Drop this line to reuse the cached markdown and only redo extract +
171
- # aggregate.
172
- rm -f papers/*/markdown.md papers/*/convert_raw.json
169
+ # Re-runs flowa.convert (which uses anchorite for PDF chunking and
170
+ # builds pdf_index.pkl.zst). Drop this line to reuse the cached markdown
171
+ # + index and only redo extract + aggregate.
172
+ rm -f papers/*/markdown.md papers/*/convert_raw.json papers/*/pdf_index.pkl.zst
173
173
  ```
174
174
 
175
175
  Then drive the pipeline. The demo's `scripts/start.ts` translates the
@@ -208,11 +208,13 @@ and not needed by anything downstream.
208
208
  For papers whose source license blocks redistribution (CC-BY-NC-ND,
209
209
  paywalled; see `fixtures/LICENSES.md` for the rule), do **not** delete
210
210
  the whole `papers/{encodedDoi}/` directory — only delete `source.pdf`,
211
- `markdown.md`, and `convert_raw.json`. Keep `metadata.json` (the
212
- bibliographic fields are factual data, not copyrightable) but replace
213
- its `abstract` field with a sentinel string, so the omission reads as
214
- deliberate (not a missing-data bug) when the literature view renders
215
- the row:
211
+ `markdown.md`, `convert_raw.json`, and `pdf_index.pkl.zst`. The
212
+ `pdf_index.pkl.zst` embeds the PDF's extracted text (anchorite's char
213
+ index), so it carries the same copyright as `source.pdf` and must not
214
+ ship in the open-source repo. Keep `metadata.json` (the bibliographic
215
+ fields are factual data, not copyrightable) but replace its `abstract`
216
+ field with a sentinel string, so the omission reads as deliberate (not
217
+ a missing-data bug) when the literature view renders the row:
216
218
 
217
219
  ```bash
218
220
  python3 -c "