basic-memory 0.4.0__py3-none-any.whl → 0.4.1__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.

Potentially problematic release.


This version of basic-memory might be problematic. Click here for more details.

basic_memory/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """basic-memory - Local-first knowledge management combining Zettelkasten with knowledge graphs"""
2
2
 
3
- __version__ = "0.4.0"
3
+ __version__ = "0.4.1"
basic_memory/db.py CHANGED
@@ -134,7 +134,12 @@ async def run_migrations(app_config: ProjectConfig, database_type=DatabaseType.F
134
134
  """Run any pending alembic migrations."""
135
135
  logger.info("Running database migrations...")
136
136
  try:
137
- config = Config("alembic.ini")
137
+ # Get the absolute path to the alembic directory relative to this file
138
+ alembic_dir = Path(__file__).parent / "alembic"
139
+ config = Config()
140
+ config.set_main_option("script_location", str(alembic_dir))
141
+ config.set_main_option("sqlalchemy.url", "driver://user:pass@localhost/dbname")
142
+
138
143
  command.upgrade(config, "head")
139
144
  logger.info("Migrations completed successfully")
140
145
 
@@ -142,4 +147,4 @@ async def run_migrations(app_config: ProjectConfig, database_type=DatabaseType.F
142
147
  await SearchRepository(session_maker).init_search_index()
143
148
  except Exception as e: # pragma: no cover
144
149
  logger.error(f"Error running migrations: {e}")
145
- raise
150
+ raise
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: basic-memory
3
- Version: 0.4.0
3
+ Version: 0.4.1
4
4
  Summary: Local-first knowledge management combining Zettelkasten with knowledge graphs
5
5
  Project-URL: Homepage, https://github.com/basicmachines-co/basic-memory
6
6
  Project-URL: Repository, https://github.com/basicmachines-co/basic-memory
@@ -299,7 +299,7 @@ including
299
299
  Import Claude.ai conversation data
300
300
 
301
301
  ```bash
302
- basic-memory import claude conversations conversations.json
302
+ basic-memory import claude conversations
303
303
  ```
304
304
 
305
305
  The conversations will be turned into Markdown files and placed in the "conversations" folder by default (this can be
@@ -1,6 +1,6 @@
1
- basic_memory/__init__.py,sha256=-gENVBDpKGZOdTlwqKdZ7bGfjTyvAEkavJkI0MLiQIc,122
1
+ basic_memory/__init__.py,sha256=2cRKgLU6pxU7UGIk0ISBR4M8QSEQY1sWg26LKqHmX1Y,122
2
2
  basic_memory/config.py,sha256=PZA2qgwKACvKfRcM3H-BPB_8FYVhgZAwTmlKJ3ROfhU,1643
3
- basic_memory/db.py,sha256=cN8g_5dTMjQZKCvy_NwWs3dXV5lZZL7DCeu99guIK5k,4613
3
+ basic_memory/db.py,sha256=kFCPOzf4bUiW7E_7E6JEHcrVaQuUgdHXkNnh6-Fk_Kg,4891
4
4
  basic_memory/deps.py,sha256=UzivBw6e6iYcU_8SQ8LNCmSsmFyHfjdzfWvnfNzqbRc,5375
5
5
  basic_memory/file_utils.py,sha256=gp7RCFWaddFnELIyTc1E19Rk8jJsrKshG2n8ZZR-kKA,5751
6
6
  basic_memory/utils.py,sha256=HiLorP5_YCQeNeTcDqvnkrwY7OBaFRS3i_hdV9iWKLs,2374
@@ -74,8 +74,8 @@ basic_memory/sync/file_change_scanner.py,sha256=4whJej6t9sxwUp1ox93efJ0bBHSnAr6S
74
74
  basic_memory/sync/sync_service.py,sha256=nAOX4N90lbpRJeq5tRR_7PYptIoWwhXMUljE7yrneF4,7087
75
75
  basic_memory/sync/utils.py,sha256=wz1Fe7Mb_M5N9vYRQnDKGODiMGcj5MEK16KVJ3eoQ9g,1191
76
76
  basic_memory/sync/watch_service.py,sha256=CtKBrP1imI3ZSEgJl7Ffi-JZ_oDGKrhiyGgs41h5QYI,7563
77
- basic_memory-0.4.0.dist-info/METADATA,sha256=l3T2eBVksZjQjczYOgl6M4WQrt5t4NKOJjzvTuoBrEM,10809
78
- basic_memory-0.4.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
79
- basic_memory-0.4.0.dist-info/entry_points.txt,sha256=IDQa_VmVTzmvMrpnjhEfM0S3F--XsVGEj3MpdJfuo-Q,59
80
- basic_memory-0.4.0.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
81
- basic_memory-0.4.0.dist-info/RECORD,,
77
+ basic_memory-0.4.1.dist-info/METADATA,sha256=y13i0kzJZW19UFRHvatQcxkOwHkAqaLT0x0HmunnFwM,10791
78
+ basic_memory-0.4.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
79
+ basic_memory-0.4.1.dist-info/entry_points.txt,sha256=IDQa_VmVTzmvMrpnjhEfM0S3F--XsVGEj3MpdJfuo-Q,59
80
+ basic_memory-0.4.1.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
81
+ basic_memory-0.4.1.dist-info/RECORD,,