hindsight-api 0.4.6__py3-none-any.whl → 0.4.8__py3-none-any.whl

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 (29) hide show
  1. hindsight_api/__init__.py +1 -1
  2. hindsight_api/alembic/versions/5a366d414dce_initial_schema.py +16 -2
  3. hindsight_api/api/http.py +83 -1
  4. hindsight_api/banner.py +3 -0
  5. hindsight_api/config.py +44 -6
  6. hindsight_api/daemon.py +18 -112
  7. hindsight_api/engine/llm_interface.py +146 -0
  8. hindsight_api/engine/llm_wrapper.py +304 -1327
  9. hindsight_api/engine/memory_engine.py +125 -41
  10. hindsight_api/engine/providers/__init__.py +14 -0
  11. hindsight_api/engine/providers/anthropic_llm.py +434 -0
  12. hindsight_api/engine/providers/claude_code_llm.py +352 -0
  13. hindsight_api/engine/providers/codex_llm.py +527 -0
  14. hindsight_api/engine/providers/gemini_llm.py +502 -0
  15. hindsight_api/engine/providers/mock_llm.py +234 -0
  16. hindsight_api/engine/providers/openai_compatible_llm.py +745 -0
  17. hindsight_api/engine/retain/fact_extraction.py +13 -9
  18. hindsight_api/engine/retain/fact_storage.py +5 -3
  19. hindsight_api/extensions/__init__.py +10 -0
  20. hindsight_api/extensions/builtin/tenant.py +36 -0
  21. hindsight_api/extensions/operation_validator.py +129 -0
  22. hindsight_api/main.py +6 -21
  23. hindsight_api/migrations.py +75 -0
  24. hindsight_api/worker/main.py +41 -11
  25. hindsight_api/worker/poller.py +26 -14
  26. {hindsight_api-0.4.6.dist-info → hindsight_api-0.4.8.dist-info}/METADATA +2 -1
  27. {hindsight_api-0.4.6.dist-info → hindsight_api-0.4.8.dist-info}/RECORD +29 -21
  28. {hindsight_api-0.4.6.dist-info → hindsight_api-0.4.8.dist-info}/WHEEL +0 -0
  29. {hindsight_api-0.4.6.dist-info → hindsight_api-0.4.8.dist-info}/entry_points.txt +0 -0
@@ -1,12 +1,12 @@
1
- hindsight_api/__init__.py,sha256=EoTpphsm_8aEA_RnGWJUQITI1_ASCAd3N78OGUaFxkA,1197
2
- hindsight_api/banner.py,sha256=BXn-jhkXe4xi-YV4JeuaVvjYhTMs96O43XoOMv4Cd28,4591
3
- hindsight_api/config.py,sha256=mLUMuQrhZCbUd___6Wqdc-OcMXtZ_CZZmxM4b7vO7CE,32506
4
- hindsight_api/daemon.py,sha256=yqMtalX0tlNz7KUpMjsRpC0r8T0WwHGvVKPxuO_Ye40,6111
5
- hindsight_api/main.py,sha256=-nVh2KrW-Y9y7Punv-1qUz7q4M4IY2vDHBiyAC-Igpk,15243
1
+ hindsight_api/__init__.py,sha256=H-lLDWXpU46uwagO3PyvShBWmpzixxlFVIKjj6scuwI,1197
2
+ hindsight_api/banner.py,sha256=eQeafvnm95eCbWPRjPBmGsIyBXF59SuL9For9unIEyM,4705
3
+ hindsight_api/config.py,sha256=eYorL_NBGSGWkENwuGaW4CH8h-91aJ1jETM4HbVoBlA,33878
4
+ hindsight_api/daemon.py,sha256=LMddRz7h5dg37YcyjjnquNF-Y9zkndN31OaUeNEWBSE,3423
5
+ hindsight_api/main.py,sha256=M2b0sO7SkGgUo6sR1WZDe0VGNfisi28bfnVMek8mgW4,14909
6
6
  hindsight_api/mcp_local.py,sha256=fJnCxMBc79GlBZrma94Ux6g-GVuh-W66194cqQdkKJQ,5613
7
7
  hindsight_api/mcp_tools.py,sha256=cLQ9Bdu8FoL2DscO_Z1pAGpNiCeFY2PHBvIPLZXkwE8,20493
8
8
  hindsight_api/metrics.py,sha256=zgOh_UFTT8ZtqnLaZuyErRtoPZ9SGP3mbmiHT3wX3v4,20677
9
- hindsight_api/migrations.py,sha256=V4QL_N1cMe6kNF1ejJ3lPIPFXKU2Pzbaiviws7AyMIY,14624
9
+ hindsight_api/migrations.py,sha256=sDg2nMLBifZMpfORiKC_Xxp359a5vNk4Hz0BOUuk7zM,18955
10
10
  hindsight_api/models.py,sha256=SzJ8uM2nGr3D6X-UEfE8VIT-PbS9J4DmRT_4lv5n9T8,12831
11
11
  hindsight_api/pg0.py,sha256=Ntj3FYPLfmQTskG4gHoz_NTlQ4A3DqCm2PbbXm-ivGQ,6337
12
12
  hindsight_api/server.py,sha256=MU2ZvKe3KWfxKYZq8EEJPgKMmq5diPkRqfQBaz-yOQI,2483
@@ -15,7 +15,7 @@ hindsight_api/admin/cli.py,sha256=A1qkZ_9GWjz1qOIQYnmj-qUN005cIIlpFsvYH7tZdyc,11
15
15
  hindsight_api/alembic/README,sha256=MVlc9TYmr57RbhXET6QxgyCcwWP7w-vLkEsirENqiIQ,38
16
16
  hindsight_api/alembic/env.py,sha256=I4sGdtUo8xcXe95MyD36JQeMod_Bvp9JUkW64Ve4XSM,5808
17
17
  hindsight_api/alembic/script.py.mako,sha256=04kgeBtNMa4cCnG8CfQcKt6P6rnloIfj8wy0u_DBydM,704
18
- hindsight_api/alembic/versions/5a366d414dce_initial_schema.py,sha256=g3G7fV70Z10PZxwTrTmR34OAlEZjQTLJKr-Ol54JqrQ,17665
18
+ hindsight_api/alembic/versions/5a366d414dce_initial_schema.py,sha256=JhRzHjGhVo70K840l1rr554aA2N5rTNWPvHQIl114xM,18385
19
19
  hindsight_api/alembic/versions/b7c4d8e9f1a2_add_chunks_table.py,sha256=MaHFU4JczUIFLeUMBTKIV3ocuclil55N9fPPim-HRfk,2599
20
20
  hindsight_api/alembic/versions/c8e5f2a3b4d1_add_retain_params_to_documents.py,sha256=ChqkHANauZb4-nBt2uepoZN3q0vRzN6aRsWTGueULiA,1146
21
21
  hindsight_api/alembic/versions/d9f6a3b4c5e2_rename_bank_to_interactions.py,sha256=s5_B2D0JdaxO7WM-vWC5Yt6hAtTsAUzJhFGLFSkfuQU,1808
@@ -39,7 +39,7 @@ hindsight_api/alembic/versions/t5o6p7q8r9s0_rename_mental_models_to_observations
39
39
  hindsight_api/alembic/versions/u6p7q8r9s0t1_mental_models_text_id.py,sha256=uvil81f-4ag2dIxBXUGKZ5vxkqdNQRpxCWj_iVih09w,1355
40
40
  hindsight_api/alembic/versions/v7q8r9s0t1u2_add_max_tokens_to_mental_models.py,sha256=Mw68uW8PK-SaHcYcqb41vWI0R22t70SSasNS2Myeoec,1656
41
41
  hindsight_api/api/__init__.py,sha256=npF0AAy8WJhHF5a9ehkNn9_iYLk7RQOk2gdkdFb49Hk,3840
42
- hindsight_api/api/http.py,sha256=uWQ2P5GiC8tBK1-lbwYxfZgon9tpVgIvLJyp9SeK2Y4,132812
42
+ hindsight_api/api/http.py,sha256=yIdoTpg3TOHGOnKrYuMWhQ3L-3OpTtNxEyMc02iYcRw,136567
43
43
  hindsight_api/api/mcp.py,sha256=4ZxeEa_LHcyFRf1jK60hr4JDLXObOQdnpc3bTLJCdVI,8647
44
44
  hindsight_api/engine/__init__.py,sha256=-BwaSwG9fTT_BBO0c_2MBkxG6-tGdclSzIqsgHw4cnw,1633
45
45
  hindsight_api/engine/cross_encoder.py,sha256=Q1s-C-JOOJ246Twl1FyYbeXAJnfdXnfhcDpntScYFvQ,32301
@@ -48,8 +48,9 @@ hindsight_api/engine/db_utils.py,sha256=Fq1pXETt8ZPhkWYjrcGbgL6glrwmCGWh3_lYJgHq
48
48
  hindsight_api/engine/embeddings.py,sha256=KvK65y89E4Hxz8gvQR4G6qSGNlGoai6NBIaWdMzoV_A,27054
49
49
  hindsight_api/engine/entity_resolver.py,sha256=qVvWJHnbGEfh0iUFtc1dbM3IUNwPMsQsmg2rMgiX2DY,23794
50
50
  hindsight_api/engine/interface.py,sha256=wpJUIN-64RFJ_iYNtYWlyR4L-mDO2xijXUFqLD4tkeg,15821
51
- hindsight_api/engine/llm_wrapper.py,sha256=q0d01bdYCVcW9lwJVNxhw3hAp1Qr4YSwU3vXqM3K80Y,71399
52
- hindsight_api/engine/memory_engine.py,sha256=NpMG8XwTODJogpumWg1RxajUOFoXv7LJkTcjvP9NNV0,227563
51
+ hindsight_api/engine/llm_interface.py,sha256=mdeEJxv-f8f79wIULUctFTkNs6Snvy2w53o9Ygdo0_Y,4950
52
+ hindsight_api/engine/llm_wrapper.py,sha256=QKggTADJB1b0-qtWlXxtNIKgoh14rIzCkUyWSZKWHPg,22662
53
+ hindsight_api/engine/memory_engine.py,sha256=I-7Bbud8u3ShMn-AjaIG_lfgvjZldRVGJINCJ9mNfsk,231550
53
54
  hindsight_api/engine/query_analyzer.py,sha256=7APe0MjBcUxjivcMlM03PmMk_w5FjWvlEe20yAJlHlc,19741
54
55
  hindsight_api/engine/response_models.py,sha256=ZPP80NmEP205erz5qEE8IJ9-c622UHqYo17e5UOiXAE,15578
55
56
  hindsight_api/engine/task_backend.py,sha256=FFZnjUsjXrrZwww16ow--J61QIpUFwxLdcmeF1NPoYk,8500
@@ -61,6 +62,13 @@ hindsight_api/engine/directives/__init__.py,sha256=5ZxaRqZVyJckbGElaI2DMRMBtnj-q
61
62
  hindsight_api/engine/directives/models.py,sha256=PKxvmhW1-fjBITAOBu7RKX5Lj61c2jdsTaX8ADelKag,1523
62
63
  hindsight_api/engine/mental_models/__init__.py,sha256=TU6dSPyIsevFDgY6PLYctDsk5K4SA4pFSQnmQvbdRlA,488
63
64
  hindsight_api/engine/mental_models/models.py,sha256=DjgumJE7LvbMVpv90aMkGhIWOZ3ZrXM2DFAqHuGerAs,2102
65
+ hindsight_api/engine/providers/__init__.py,sha256=UEoVUTzQGGFe_A8jUmnbQINmwZ7L3P-PLpnh38w2tI8,468
66
+ hindsight_api/engine/providers/anthropic_llm.py,sha256=xv5r4p0HwzKyhcTj0cTLp_kMnW4HuAiIGWtU-PfWhBw,17228
67
+ hindsight_api/engine/providers/claude_code_llm.py,sha256=Cd9TJvO0Tl1Ql-bxU6qjTfw5nYItsxnPPepbZhLdjwQ,14386
68
+ hindsight_api/engine/providers/codex_llm.py,sha256=xdsrCXH38I7DLtEN0zKeLDaoM6h9XwzjCqU3G-Mryd0,19254
69
+ hindsight_api/engine/providers/gemini_llm.py,sha256=51peFrDYVBqhZTOoyZMQp5aMANvikVQrAwRJTSJzHkk,20175
70
+ hindsight_api/engine/providers/mock_llm.py,sha256=h2wF8oVNdqSOpDljolKgXUY-wqjYQhpxVvA3RThY1Qk,8217
71
+ hindsight_api/engine/providers/openai_compatible_llm.py,sha256=ls2XAWTjUsVzPo-KiYSR_20WJ0s2RFXbPFy7waDPFZE,33309
64
72
  hindsight_api/engine/reflect/__init__.py,sha256=r70r-Y9LElHIL3EsvImO1KIL1sT_ubr1lC0IH5kH6O0,484
65
73
  hindsight_api/engine/reflect/agent.py,sha256=mr0rUrwdnDISt9iyuspI_ZhL4qfyLTWAzJO9EAIEctM,37610
66
74
  hindsight_api/engine/reflect/models.py,sha256=ZnMCi4sta5bSVGRRNatTA2jNSun59mWEVVq6Dkmjq1Q,5185
@@ -75,8 +83,8 @@ hindsight_api/engine/retain/deduplication.py,sha256=kqs7I7eIc_ppvgAF9GlzL6fSGuEE
75
83
  hindsight_api/engine/retain/embedding_processing.py,sha256=R35oyKYIKjuqC-yZl5Ru56F8xRe0N6KW_9p5PZ9CBi0,1649
76
84
  hindsight_api/engine/retain/embedding_utils.py,sha256=uulXIBiA7XNsj16K1VGawR3s5jV-hsAmvmoCi-IodpU,1565
77
85
  hindsight_api/engine/retain/entity_processing.py,sha256=0x5b48Im7pWjeqg3xTMIRVhrzd4otc4rSkFBjxgOL9Y,3632
78
- hindsight_api/engine/retain/fact_extraction.py,sha256=RTAGPY9Ltabn8mfJ727TPQIWKzRn6zu2ZWV7baW_OvE,63138
79
- hindsight_api/engine/retain/fact_storage.py,sha256=PUdMfNWaGuDA-DodeT3hs8ft81ldzXZedCMXys-sFf4,6690
86
+ hindsight_api/engine/retain/fact_extraction.py,sha256=2fB1MGi53rbvnwQEMCEOy7xpP75HZjgmicQzKfZulO0,63269
87
+ hindsight_api/engine/retain/fact_storage.py,sha256=F3uLckWmunRCIjOBCgGn3wlY5-Kr5ifMaF0ZmqcwnZs,6841
80
88
  hindsight_api/engine/retain/link_creation.py,sha256=KP2kGU2VCymJptgw0hjaSdsjvncBgNp3P_A4OB_qx-w,3082
81
89
  hindsight_api/engine/retain/link_utils.py,sha256=eKa9Ecf7Mpqjl4laAEtRilQgu4fbsGWAjg98kdMDsDc,33078
82
90
  hindsight_api/engine/retain/orchestrator.py,sha256=JrPOsWzHnAEO4pRgmHGtq5tK9Z_l2erHfaKv8BgRsdY,21824
@@ -94,19 +102,19 @@ hindsight_api/engine/search/think_utils.py,sha256=k2NBmb1eczTiDHuQZ7-VW4lsvlGt20
94
102
  hindsight_api/engine/search/trace.py,sha256=RjvbkKBK-_MZBcVhVlaDTLD0yg6krngMNyC0_zLK05Y,11748
95
103
  hindsight_api/engine/search/tracer.py,sha256=B75CZQjdoheN2UpNgqKbJkdXlDVKJjzVTdUhvBUFaLY,16212
96
104
  hindsight_api/engine/search/types.py,sha256=meIoT8Q1coal1TmV_UiCqo9emjQI6af27EXPWVZL4h4,6418
97
- hindsight_api/extensions/__init__.py,sha256=F8q_tH-2Hl8-4F8wzIieA4Cya2dMEE9gwPtz7Z56BYc,2151
105
+ hindsight_api/extensions/__init__.py,sha256=Tl2ZZsReYF4mdZ2ZxebekB8zJduMeFuMIcZ09WTHIqE,2458
98
106
  hindsight_api/extensions/base.py,sha256=M7zXuM-tbqDnUwXX1mxAxiFs1eXOzNqIJutKLiUE4mU,2357
99
107
  hindsight_api/extensions/context.py,sha256=Qq-uy3hhxO6ioDmf6dPXdnIjs_pdm7lTspDiEhJJmPU,4469
100
108
  hindsight_api/extensions/http.py,sha256=c-a1g6R6rzibyReyR-WHz8DjRRGr4rVSyV9KB4UxVVU,2907
101
109
  hindsight_api/extensions/loader.py,sha256=UwGM0XH7zHGng_xfHUY0VbOQemj9DmjuDaMst1TrFi8,4170
102
- hindsight_api/extensions/operation_validator.py,sha256=ciXvTtlX4c5VcLze5cVbuaD6B-10IxnfgnNhbY8LGLc,13360
110
+ hindsight_api/extensions/operation_validator.py,sha256=ukGjgFZuh_pze917sAhd_d_oq_ysPJH80FwVY-6kzJg,18094
103
111
  hindsight_api/extensions/tenant.py,sha256=0LraksQ1gzsOYLEGrx2q2F0or596Ywfo_MqD1FJMNRM,2617
104
112
  hindsight_api/extensions/builtin/__init__.py,sha256=hLx2oFYZ1JtZhTWfab6AYcR02SWP2gIdbEqnZezT8ek,526
105
- hindsight_api/extensions/builtin/tenant.py,sha256=R7jfNR41deGWqQB5P8Qk5njy1bZgvemcTpkXDRiAZBA,1835
113
+ hindsight_api/extensions/builtin/tenant.py,sha256=hAB88q9wuMT1Fqolq22HyP3QrBdICOfLZ1Xo7au1LxU,3325
106
114
  hindsight_api/worker/__init__.py,sha256=hzpMLvOfgL2KKrrik_9ouvEzCdvJSrH-pj5UdFK63J0,256
107
- hindsight_api/worker/main.py,sha256=eE6AmFErNJKGBrLivwceAMo5n73y_e6EUwjQoGo-lhE,9757
108
- hindsight_api/worker/poller.py,sha256=2jyl5bJPEwgr6T6xgEvdHPGqtXvOIs28v4v38a26sRo,25122
109
- hindsight_api-0.4.6.dist-info/METADATA,sha256=yzMF97SjV0WyhzsXfY289NO3yjAE-jtXnrBnlvcJMSQ,5794
110
- hindsight_api-0.4.6.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
111
- hindsight_api-0.4.6.dist-info/entry_points.txt,sha256=1-mxPbRGL_Byf9ZrHYkPW-TEgLYFcwCiSFCxOgI_3vM,206
112
- hindsight_api-0.4.6.dist-info/RECORD,,
115
+ hindsight_api/worker/main.py,sha256=wF0c19CqXnECK4NHrUGU9zle8N8QrhuxcvaE3byOID0,11349
116
+ hindsight_api/worker/poller.py,sha256=C3IEbIN-LNgTxW0zhViZxORQotftYIDeNTYD4Bqn2jw,25912
117
+ hindsight_api-0.4.8.dist-info/METADATA,sha256=iK2IIlna5dXjiIlQ5lg055uo7-HGfu7E-hR8WS1QTZk,5834
118
+ hindsight_api-0.4.8.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
119
+ hindsight_api-0.4.8.dist-info/entry_points.txt,sha256=1-mxPbRGL_Byf9ZrHYkPW-TEgLYFcwCiSFCxOgI_3vM,206
120
+ hindsight_api-0.4.8.dist-info/RECORD,,