omp-memory 0.2.0__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.
omp_memory/__init__.py ADDED
@@ -0,0 +1,188 @@
1
+ """Local-first SQLite memory for coding agents."""
2
+
3
+ __version__ = "0.2.0"
4
+
5
+ from .db import (
6
+ BACKUP_DIR,
7
+ DB_PATH,
8
+ DECAY_FLOOR,
9
+ DECAY_POWER_TAU_DAYS,
10
+ DECAY_POWER_BETA,
11
+ SCHEMA_PRIOR_WEIGHT,
12
+ SPACING_MIN_GAP_HOURS,
13
+ SPACING_FULL_GAP_HOURS,
14
+ RIF_PENALTY,
15
+ RIF_MIN_CONFIDENCE,
16
+ RETRIEVAL_WINDOW_DAYS,
17
+ RETRIEVALS_FOR_CONSOLIDATION,
18
+ CONSOLIDATE_GAIN,
19
+ ABSTAIN_SCORE,
20
+ FORGET_FLOOR_SLACK,
21
+ FORGET_MIN_AGE_DAYS,
22
+ FORGET_WINDOW_DAYS,
23
+ SLEEP_EVICT_BUDGET,
24
+ SLEEP_PRUNE_SIMILARITY,
25
+ HEAT_WEIGHTS,
26
+ HEAT_DECAY_POWER_TAU_DAYS,
27
+ HEAT_DECAY_POWER_BETA,
28
+ PROMOTABLE_TYPES,
29
+ PRE_COMPRESS_CHECKPOINT_API_VERSION,
30
+ PROMOTE_HEAT,
31
+ SCHEMA_VERSION,
32
+ SIMILAR_THRESHOLD,
33
+ RECALL_POOL_FACTOR,
34
+ RECALL_POOL_MIN,
35
+ RECALL_WEIGHTS,
36
+ SNIPPET_CHARS,
37
+ TYPE_PRIOR,
38
+ UPSERT_THRESHOLD,
39
+ VALID_SIGNALS,
40
+ VALID_TYPES,
41
+ apply_decay,
42
+ backup_db,
43
+ clear_profile,
44
+ connect,
45
+ content_id,
46
+ create_pre_compress_checkpoint,
47
+ db_path_of,
48
+ decide,
49
+ end_session,
50
+ ensure_dirs,
51
+ export_markdown,
52
+ forget_cold,
53
+ find_record,
54
+ find_similar,
55
+ get_profile,
56
+ get_profile_context,
57
+ get_record,
58
+ health,
59
+ heat_of,
60
+ heat_parts,
61
+ identity_text,
62
+ init_db,
63
+ integrity_check,
64
+ list_records,
65
+ last_promotion,
66
+ list_sessions,
67
+ normalize_cue,
68
+ now_iso,
69
+ normalize_content,
70
+ promote_hot,
71
+ quick_check,
72
+ record_id_for,
73
+ recall,
74
+ remember,
75
+ reinforce,
76
+ repair_from_backup,
77
+ restore_from_checkpoint,
78
+ search,
79
+ set_profile,
80
+ set_profile_context,
81
+ sha,
82
+ similarity,
83
+ start_session,
84
+ stats,
85
+ sync_mirror,
86
+ upsert_record,
87
+ )
88
+ from .context import (
89
+ StreamingContextScrubber,
90
+ build_memory_context_block,
91
+ sanitize_context,
92
+ )
93
+ from .provider import (
94
+ INDICATOR_GLYPH,
95
+ MemoryProvider,
96
+ RecallStatus,
97
+ is_core_memory_provider,
98
+ )
99
+
100
+
101
+
102
+ __all__ = [
103
+ "BACKUP_DIR",
104
+ "DB_PATH",
105
+ "DECAY_FLOOR",
106
+ "DECAY_POWER_TAU_DAYS",
107
+ "DECAY_POWER_BETA",
108
+ "SCHEMA_PRIOR_WEIGHT",
109
+ "SPACING_MIN_GAP_HOURS",
110
+ "SPACING_FULL_GAP_HOURS",
111
+ "RIF_PENALTY",
112
+ "RIF_MIN_CONFIDENCE",
113
+ "RETRIEVAL_WINDOW_DAYS",
114
+ "RETRIEVALS_FOR_CONSOLIDATION",
115
+ "CONSOLIDATE_GAIN",
116
+ "ABSTAIN_SCORE",
117
+ "FORGET_FLOOR_SLACK",
118
+ "FORGET_MIN_AGE_DAYS",
119
+ "FORGET_WINDOW_DAYS",
120
+ "SLEEP_EVICT_BUDGET",
121
+ "SLEEP_PRUNE_SIMILARITY",
122
+ "HEAT_WEIGHTS",
123
+ "HEAT_DECAY_POWER_TAU_DAYS",
124
+ "HEAT_DECAY_POWER_BETA",
125
+ "PROMOTABLE_TYPES",
126
+ "INDICATOR_GLYPH",
127
+ "MemoryProvider",
128
+ "PRE_COMPRESS_CHECKPOINT_API_VERSION",
129
+ "PROMOTE_HEAT",
130
+ "RECALL_POOL_FACTOR",
131
+ "RECALL_POOL_MIN",
132
+ "RECALL_WEIGHTS",
133
+ "RecallStatus",
134
+ "SCHEMA_VERSION",
135
+ "StreamingContextScrubber",
136
+ "SIMILAR_THRESHOLD",
137
+ "UPSERT_THRESHOLD",
138
+ "VALID_SIGNALS",
139
+ "VALID_TYPES",
140
+ "apply_decay",
141
+ "backup_db",
142
+ "build_memory_context_block",
143
+ "clear_profile",
144
+ "connect",
145
+ "content_id",
146
+ "create_pre_compress_checkpoint",
147
+ "db_path_of",
148
+ "decide",
149
+ "end_session",
150
+ "forget_cold",
151
+ "export_markdown",
152
+ "ensure_dirs",
153
+ "find_record",
154
+ "find_similar",
155
+ "get_profile",
156
+ "get_profile_context",
157
+ "get_record",
158
+ "health",
159
+ "init_db",
160
+ "identity_text",
161
+ "integrity_check",
162
+ "is_core_memory_provider",
163
+ "last_promotion",
164
+ "list_records",
165
+ "list_sessions",
166
+ "now_iso",
167
+ "normalize_content",
168
+ "normalize_cue",
169
+ "promote_hot",
170
+ "quick_check",
171
+ "recall",
172
+ "record_id_for",
173
+ "remember",
174
+ "reinforce",
175
+ "repair_from_backup",
176
+ "restore_from_checkpoint",
177
+ "sanitize_context",
178
+ "search",
179
+ "set_profile",
180
+ "set_profile_context",
181
+ "similarity",
182
+ "start_session",
183
+ "stats",
184
+ "sync_mirror",
185
+ "SNIPPET_CHARS",
186
+ "TYPE_PRIOR",
187
+ "upsert_record",
188
+ ]
omp_memory/__main__.py ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env python3
2
+ """Allow `python -m omp_memory`."""
3
+ import sys
4
+
5
+ from .cli import main
6
+
7
+ if __name__ == "__main__":
8
+ sys.exit(main())