pilotswarm-horizon-store 0.2.2

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 (71) hide show
  1. package/README.md +154 -0
  2. package/dist/src/agent-tools.d.ts +32 -0
  3. package/dist/src/agent-tools.d.ts.map +1 -0
  4. package/dist/src/agent-tools.js +263 -0
  5. package/dist/src/agent-tools.js.map +1 -0
  6. package/dist/src/config.d.ts +93 -0
  7. package/dist/src/config.d.ts.map +1 -0
  8. package/dist/src/config.js +120 -0
  9. package/dist/src/config.js.map +1 -0
  10. package/dist/src/db-retry.d.ts +21 -0
  11. package/dist/src/db-retry.d.ts.map +1 -0
  12. package/dist/src/db-retry.js +94 -0
  13. package/dist/src/db-retry.js.map +1 -0
  14. package/dist/src/embedding-client.d.ts +13 -0
  15. package/dist/src/embedding-client.d.ts.map +1 -0
  16. package/dist/src/embedding-client.js +79 -0
  17. package/dist/src/embedding-client.js.map +1 -0
  18. package/dist/src/graph-model.d.ts +49 -0
  19. package/dist/src/graph-model.d.ts.map +1 -0
  20. package/dist/src/graph-model.js +112 -0
  21. package/dist/src/graph-model.js.map +1 -0
  22. package/dist/src/graph-queries.d.ts +83 -0
  23. package/dist/src/graph-queries.d.ts.map +1 -0
  24. package/dist/src/graph-queries.js +727 -0
  25. package/dist/src/graph-queries.js.map +1 -0
  26. package/dist/src/graph-store.d.ts +57 -0
  27. package/dist/src/graph-store.d.ts.map +1 -0
  28. package/dist/src/graph-store.js +327 -0
  29. package/dist/src/graph-store.js.map +1 -0
  30. package/dist/src/horizon-migrator.d.ts +49 -0
  31. package/dist/src/horizon-migrator.d.ts.map +1 -0
  32. package/dist/src/horizon-migrator.js +231 -0
  33. package/dist/src/horizon-migrator.js.map +1 -0
  34. package/dist/src/horizon-store.d.ts +116 -0
  35. package/dist/src/horizon-store.d.ts.map +1 -0
  36. package/dist/src/horizon-store.js +563 -0
  37. package/dist/src/horizon-store.js.map +1 -0
  38. package/dist/src/index.d.ts +13 -0
  39. package/dist/src/index.d.ts.map +1 -0
  40. package/dist/src/index.js +21 -0
  41. package/dist/src/index.js.map +1 -0
  42. package/dist/src/preconditions.d.ts +16 -0
  43. package/dist/src/preconditions.d.ts.map +1 -0
  44. package/dist/src/preconditions.js +99 -0
  45. package/dist/src/preconditions.js.map +1 -0
  46. package/dist/src/query-builder.d.ts +37 -0
  47. package/dist/src/query-builder.d.ts.map +1 -0
  48. package/dist/src/query-builder.js +82 -0
  49. package/dist/src/query-builder.js.map +1 -0
  50. package/dist/src/sql-util.d.ts +20 -0
  51. package/dist/src/sql-util.d.ts.map +1 -0
  52. package/dist/src/sql-util.js +40 -0
  53. package/dist/src/sql-util.js.map +1 -0
  54. package/dist/src/types.d.ts +16 -0
  55. package/dist/src/types.d.ts.map +1 -0
  56. package/dist/src/types.js +35 -0
  57. package/dist/src/types.js.map +1 -0
  58. package/migrations/0001_facts_table.sql +77 -0
  59. package/migrations/0002_indexes.sql +27 -0
  60. package/migrations/0003_age_bootstrap.sql +13 -0
  61. package/migrations/0004_facts_procs.sql +253 -0
  62. package/migrations/0005_embedder_workflow.sql +119 -0
  63. package/migrations/0006_facts_read_uncrawled_embedded_gate.sql +33 -0
  64. package/migrations/0007_embed_key_value_text.sql +122 -0
  65. package/migrations/0008_embedder_failure_recovery.sql +409 -0
  66. package/migrations/0009_search_text_full_value.sql +52 -0
  67. package/migrations/0010_minimal_two_loop_embedder.sql +392 -0
  68. package/migrations/0011_unified_api_embedder_workflow.sql +273 -0
  69. package/migrations/0012_facts_soft_delete.sql +587 -0
  70. package/migrations/0013_graph_namespaces.sql +60 -0
  71. package/package.json +69 -0
package/package.json ADDED
@@ -0,0 +1,69 @@
1
+ {
2
+ "name": "pilotswarm-horizon-store",
3
+ "version": "0.2.2",
4
+ "type": "module",
5
+ "description": "HorizonDB-backed enhanced facts and graph providers for PilotSwarm.",
6
+ "main": "./dist/src/index.js",
7
+ "types": "./dist/src/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/src/index.js",
11
+ "types": "./dist/src/index.d.ts"
12
+ }
13
+ },
14
+ "files": [
15
+ "dist/**/*",
16
+ "migrations/**/*",
17
+ "README.md"
18
+ ],
19
+ "scripts": {
20
+ "build": "tsc",
21
+ "dev": "tsc --watch",
22
+ "test": "node ../../node_modules/vitest/vitest.mjs run test/graph-model.test.mjs test/query-builder.test.mjs test/provider-guards.test.mjs test/pg-pool.test.mjs test/db-retry.test.mjs test/horizon-migrator.test.mjs",
23
+ "test:integration": "node --env-file-if-exists=.env ../../node_modules/vitest/vitest.mjs run test/integration",
24
+ "test:all": "bash scripts/run-tests.sh",
25
+ "poc:lexical": "node poc/01-lexical.mjs",
26
+ "poc:semantic": "node poc/02-semantic.mjs",
27
+ "poc:graph": "node poc/03-graph.mjs",
28
+ "poc:hybrid": "node poc/04-hybrid.mjs",
29
+ "poc:crawler": "node poc/05-crawler.mjs",
30
+ "eval:harvester": "node --env-file-if-exists=.env eval/scenarios.mjs sc1a",
31
+ "eval:scenarios": "node --env-file-if-exists=.env eval/scenarios.mjs"
32
+ },
33
+ "dependencies": {
34
+ "pg": "^8.13.1"
35
+ },
36
+ "peerDependencies": {
37
+ "pilotswarm-sdk": "^0.2.2"
38
+ },
39
+ "devDependencies": {
40
+ "@github/copilot": "^1.0.50",
41
+ "@github/copilot-sdk": "^1.0.0-beta.4",
42
+ "@types/node": "^24.0.0",
43
+ "@types/pg": "^8.11.10",
44
+ "pilotswarm-sdk": "*",
45
+ "typescript": "^5.6.0"
46
+ },
47
+ "engines": {
48
+ "node": ">=24.0.0"
49
+ },
50
+ "keywords": [
51
+ "pilotswarm",
52
+ "horizondb",
53
+ "facts",
54
+ "graph",
55
+ "pgvector",
56
+ "apache-age"
57
+ ],
58
+ "author": "Affan Dar",
59
+ "license": "MIT",
60
+ "repository": {
61
+ "type": "git",
62
+ "url": "https://github.com/affandar/PilotSwarm",
63
+ "directory": "packages/horizon-store"
64
+ },
65
+ "homepage": "https://github.com/affandar/PilotSwarm/tree/main/packages/horizon-store",
66
+ "bugs": {
67
+ "url": "https://github.com/affandar/PilotSwarm/issues"
68
+ }
69
+ }