basic-memory 0.13.0b2__py3-none-any.whl → 0.13.0b3__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/alembic/versions/cc7172b46608_update_search_index_schema.py +0 -1
- basic_memory/api/routers/knowledge_router.py +1 -1
- basic_memory/api/routers/project_router.py +6 -2
- basic_memory/config.py +1 -1
- basic_memory/mcp/server.py +1 -2
- basic_memory/mcp/tools/move_note.py +1 -1
- basic_memory/services/project_service.py +2 -1
- basic_memory/services/search_service.py +1 -1
- basic_memory/sync/sync_service.py +4 -2
- {basic_memory-0.13.0b2.dist-info → basic_memory-0.13.0b3.dist-info}/METADATA +1 -1
- {basic_memory-0.13.0b2.dist-info → basic_memory-0.13.0b3.dist-info}/RECORD +14 -14
- {basic_memory-0.13.0b2.dist-info → basic_memory-0.13.0b3.dist-info}/WHEEL +0 -0
- {basic_memory-0.13.0b2.dist-info → basic_memory-0.13.0b3.dist-info}/entry_points.txt +0 -0
- {basic_memory-0.13.0b2.dist-info → basic_memory-0.13.0b3.dist-info}/licenses/LICENSE +0 -0
|
@@ -145,7 +145,9 @@ async def remove_project(
|
|
|
145
145
|
try:
|
|
146
146
|
old_project = await project_service.get_project(name)
|
|
147
147
|
if not old_project: # pragma: no cover
|
|
148
|
-
raise HTTPException(
|
|
148
|
+
raise HTTPException(
|
|
149
|
+
status_code=404, detail=f"Project: '{name}' does not exist"
|
|
150
|
+
) # pragma: no cover
|
|
149
151
|
|
|
150
152
|
await project_service.remove_project(name)
|
|
151
153
|
|
|
@@ -186,7 +188,9 @@ async def set_default_project(
|
|
|
186
188
|
# get the new project
|
|
187
189
|
new_default_project = await project_service.get_project(name)
|
|
188
190
|
if not new_default_project: # pragma: no cover
|
|
189
|
-
raise HTTPException(
|
|
191
|
+
raise HTTPException(
|
|
192
|
+
status_code=404, detail=f"Project: '{name}' does not exist"
|
|
193
|
+
) # pragma: no cover
|
|
190
194
|
|
|
191
195
|
await project_service.set_default_project(name)
|
|
192
196
|
|
basic_memory/config.py
CHANGED
|
@@ -179,7 +179,7 @@ class ConfigManager:
|
|
|
179
179
|
|
|
180
180
|
def save_config(self, config: BasicMemoryConfig) -> None:
|
|
181
181
|
"""Save configuration to file."""
|
|
182
|
-
try:
|
|
182
|
+
try:
|
|
183
183
|
self.config_file.write_text(json.dumps(config.model_dump(), indent=2))
|
|
184
184
|
except Exception as e: # pragma: no cover
|
|
185
185
|
logger.error(f"Failed to save config: {e}")
|
basic_memory/mcp/server.py
CHANGED
|
@@ -31,7 +31,7 @@ async def move_note(
|
|
|
31
31
|
|
|
32
32
|
Examples:
|
|
33
33
|
- Move to new folder: move_note("My Note", "work/notes/my-note.md")
|
|
34
|
-
- Move by permalink: move_note("my-note-permalink", "archive/old-notes/my-note.md")
|
|
34
|
+
- Move by permalink: move_note("my-note-permalink", "archive/old-notes/my-note.md")
|
|
35
35
|
- Specify project: move_note("My Note", "archive/my-note.md", project="work-project")
|
|
36
36
|
|
|
37
37
|
Note: This operation moves notes within the specified project only. Moving notes
|
|
@@ -22,6 +22,7 @@ from basic_memory.config import WATCH_STATUS_JSON
|
|
|
22
22
|
from basic_memory.utils import generate_permalink
|
|
23
23
|
from basic_memory.config import config_manager
|
|
24
24
|
|
|
25
|
+
|
|
25
26
|
class ProjectService:
|
|
26
27
|
"""Service for managing Basic Memory projects."""
|
|
27
28
|
|
|
@@ -545,4 +546,4 @@ class ProjectService:
|
|
|
545
546
|
database_size=db_size_readable,
|
|
546
547
|
watch_status=watch_status,
|
|
547
548
|
timestamp=datetime.now(),
|
|
548
|
-
)
|
|
549
|
+
)
|
|
@@ -379,7 +379,9 @@ class SyncService:
|
|
|
379
379
|
updates = {"file_path": new_path}
|
|
380
380
|
|
|
381
381
|
# If configured, also update permalink to match new path
|
|
382
|
-
if self.app_config.update_permalinks_on_move and self.file_service.is_markdown(
|
|
382
|
+
if self.app_config.update_permalinks_on_move and self.file_service.is_markdown(
|
|
383
|
+
new_path
|
|
384
|
+
):
|
|
383
385
|
# generate new permalink value
|
|
384
386
|
new_permalink = await self.entity_service.resolve_permalink(new_path)
|
|
385
387
|
|
|
@@ -505,4 +507,4 @@ class SyncService:
|
|
|
505
507
|
f"duration_ms={duration_ms}"
|
|
506
508
|
)
|
|
507
509
|
|
|
508
|
-
return result
|
|
510
|
+
return result
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: basic-memory
|
|
3
|
-
Version: 0.13.
|
|
3
|
+
Version: 0.13.0b3
|
|
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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
basic_memory/__init__.py,sha256=4JBLRdCwrUwNtv3qPAFmcDiktOIhvAF8hgT-Ku5RL1U,342
|
|
2
|
-
basic_memory/config.py,sha256=
|
|
2
|
+
basic_memory/config.py,sha256=lNpbn-b1k9nunQ-htciYQHC8XatRIhc_m6SN2Pbvp-E,11101
|
|
3
3
|
basic_memory/db.py,sha256=X4-uyEZdJXVLfFDTpcNZxWzawRZXhDdKoEFWAGgE4Lk,6193
|
|
4
4
|
basic_memory/deps.py,sha256=zXOhqXCoSVIa1iIcO8U6uUiofJn5eT4ycwJkH9I2kX4,12102
|
|
5
5
|
basic_memory/file_utils.py,sha256=eaxTKLLEbTIy_Mb_Iv_Dmt4IXAJSrZGVi-Knrpyci3E,6700
|
|
@@ -12,17 +12,17 @@ basic_memory/alembic/versions/3dae7c7b1564_initial_schema.py,sha256=lTbWlAnd1es7
|
|
|
12
12
|
basic_memory/alembic/versions/502b60eaa905_remove_required_from_entity_permalink.py,sha256=k6xYTmYPM9Ros-7CA7BwZBKYwoK_gmVdC-2n8FAjdoE,1840
|
|
13
13
|
basic_memory/alembic/versions/5fe1ab1ccebe_add_projects_table.py,sha256=2CCY9ayjzbraYMcinqSsJi9Sc0nu2e-ehkUJus-sz34,4379
|
|
14
14
|
basic_memory/alembic/versions/b3c3938bacdb_relation_to_name_unique_index.py,sha256=RsGymQzfRXV1LSNKiyi0lMilTxW1NgwS9jR67ye2apI,1428
|
|
15
|
-
basic_memory/alembic/versions/cc7172b46608_update_search_index_schema.py,sha256=
|
|
15
|
+
basic_memory/alembic/versions/cc7172b46608_update_search_index_schema.py,sha256=kDavR9Qqx9wSu5P3qd4SZq_waIsDG1UMTg2SmDoktMU,3679
|
|
16
16
|
basic_memory/api/__init__.py,sha256=wCpj-21j1D0KzKl9Ql6unLBVFY0K1uGp_FeSZRKtqpk,72
|
|
17
17
|
basic_memory/api/app.py,sha256=ucV1epIVQ210JFdZIs6aZ_UWK8TG78p_NhGf6WOrFk0,2809
|
|
18
18
|
basic_memory/api/template_loader.py,sha256=exbTeXyJRgyLFmSjNeroxjT7X2DWFm2X5qUVa3drbYM,8607
|
|
19
19
|
basic_memory/api/routers/__init__.py,sha256=REO5CKQ96o5vtGWACcsIxIpWybIUSeKXc83RWbWc8BQ,398
|
|
20
20
|
basic_memory/api/routers/directory_router.py,sha256=rBQHvuwffUOk0iKvcEs2QlWclgvr8ur24f_pH3-sVRQ,2054
|
|
21
21
|
basic_memory/api/routers/importer_router.py,sha256=xFUCorkPWo8AF0ya0UrcLmXNf8CjPZdAqddQIH8PO-o,4513
|
|
22
|
-
basic_memory/api/routers/knowledge_router.py,sha256=
|
|
22
|
+
basic_memory/api/routers/knowledge_router.py,sha256=sdRGWqBmAjELkJ7ZXyZB6qTU1CVH4EXpKOyDDVGV4yU,9133
|
|
23
23
|
basic_memory/api/routers/management_router.py,sha256=INT5PzUXhfBH2546CTZKqZnRuECYIA4Ypfgdf6JNyu0,2686
|
|
24
24
|
basic_memory/api/routers/memory_router.py,sha256=M344_tHIFzgi-i5PqltaPHdZaut_bMejqktmzLKto0c,2995
|
|
25
|
-
basic_memory/api/routers/project_router.py,sha256=
|
|
25
|
+
basic_memory/api/routers/project_router.py,sha256=TMREu8qVnTvx1y9crdx6UsfY8OtaXfpG4KhgJ9O1Gs0,8246
|
|
26
26
|
basic_memory/api/routers/prompt_router.py,sha256=LzZAerGtDLPdyTKjThQciVGPUkjbIc3dmdJHX-ievSo,9913
|
|
27
27
|
basic_memory/api/routers/resource_router.py,sha256=WEJEqEaY_yTKj5-U-rW4kXQKUcJflykgwI6_g_R41ck,8058
|
|
28
28
|
basic_memory/api/routers/search_router.py,sha256=GD62jlCQTiL_VNsdibi-b1f6H40KCWo9SX2Cl7YH4QU,1226
|
|
@@ -60,7 +60,7 @@ basic_memory/mcp/async_client.py,sha256=Eo345wANiBRSM4u3j_Vd6Ax4YtMg7qbWd9PIoFfj
|
|
|
60
60
|
basic_memory/mcp/auth_provider.py,sha256=CTydkEBvxh_fg_Z0hxKjTT8nHJoFhxrwp5hTQuToiIU,9977
|
|
61
61
|
basic_memory/mcp/external_auth_provider.py,sha256=Z1GDbr6P4C-flZVHMWkIqAu30kcfeHv2iSp0EYbFuxo,11483
|
|
62
62
|
basic_memory/mcp/project_session.py,sha256=OP1X10iG4wIWHgfkwC2q7Inl6b68zrioqkD1-Ju_S6w,3462
|
|
63
|
-
basic_memory/mcp/server.py,sha256=
|
|
63
|
+
basic_memory/mcp/server.py,sha256=2J6uWnpsGFnrlp8G6XlUknhjpD72vFI8nP5OLPw3H28,3665
|
|
64
64
|
basic_memory/mcp/supabase_auth_provider.py,sha256=MLHfSHjdx2Q5jr_Ljx0qZBaOwp7CkPdk_ybR_LQ7Mvw,16472
|
|
65
65
|
basic_memory/mcp/prompts/__init__.py,sha256=-Bl9Dgj2TD9PULjzggPqXuvPEjWCRy7S9Yg03h2-U7A,615
|
|
66
66
|
basic_memory/mcp/prompts/ai_assistant_guide.py,sha256=8TI5xObiRVcwv6w9by1xQHlX0whvyE7-LGsiqDMRTFg,821
|
|
@@ -76,7 +76,7 @@ basic_memory/mcp/tools/canvas.py,sha256=KFbwRAWtr31wLjRgeYyvIDLYRGs1Qs_hHhY_WWuD
|
|
|
76
76
|
basic_memory/mcp/tools/delete_note.py,sha256=mDX7JxmzMzXyRaY0-fKyLiGf2czM51Kxz2ACX-dyrNU,1270
|
|
77
77
|
basic_memory/mcp/tools/edit_note.py,sha256=VG1pbB50cm70FTevspAkfDxCj-gs_YbdtPqhHS2i_xA,13025
|
|
78
78
|
basic_memory/mcp/tools/list_directory.py,sha256=-FxDsCru5YD02M4qkQDAurEJWyRaC7YI4YR6zg0atR8,5236
|
|
79
|
-
basic_memory/mcp/tools/move_note.py,sha256=
|
|
79
|
+
basic_memory/mcp/tools/move_note.py,sha256=oZ83EtKmi5bs8usN2ydc-l_PG1hIXmt86QK4-cSZs6M,2885
|
|
80
80
|
basic_memory/mcp/tools/project_management.py,sha256=wMmiGy_n7VGhwKmRpoBMU-z-2NYJouNdvBmujTGkV3w,10952
|
|
81
81
|
basic_memory/mcp/tools/read_content.py,sha256=4FTw13B8UjVVhR78NJB9HKeJb_nA6-BGT1WdGtekN5Q,8596
|
|
82
82
|
basic_memory/mcp/tools/read_note.py,sha256=Q2z_9dEoR3lq4v_NKyMyZAW-SP4LUgi1b6kWrYEanQ4,6944
|
|
@@ -116,17 +116,17 @@ basic_memory/services/exceptions.py,sha256=oVjQr50XQqnFq1-MNKBilI2ShtHDxypavyDk1
|
|
|
116
116
|
basic_memory/services/file_service.py,sha256=jCrmnEkTQ4t9HF7L_M6BL7tdDqjjzty9hpTo9AzwhvM,10059
|
|
117
117
|
basic_memory/services/initialization.py,sha256=1sPz0dAsFVJOaiWBG6FgxKmwLNrMtBrmX4I4qVTI0aY,7786
|
|
118
118
|
basic_memory/services/link_resolver.py,sha256=8KgozYS8reQaihzDMS8_0tDKo-BdqHjhECIM39I_wis,4078
|
|
119
|
-
basic_memory/services/project_service.py,sha256=
|
|
120
|
-
basic_memory/services/search_service.py,sha256=
|
|
119
|
+
basic_memory/services/project_service.py,sha256=7P3fCmS5YOmD64vN_WKpJJ_V52ca600uBnlqf264_2Y,20520
|
|
120
|
+
basic_memory/services/search_service.py,sha256=c5Ky0ufz7YPFgHhVzNRQ4OecF_JUrt7nALzpMjobW4M,12782
|
|
121
121
|
basic_memory/services/service.py,sha256=V-d_8gOV07zGIQDpL-Ksqs3ZN9l3qf3HZOK1f_YNTag,336
|
|
122
122
|
basic_memory/sync/__init__.py,sha256=CVHguYH457h2u2xoM8KvOilJC71XJlZ-qUh8lHcjYj4,156
|
|
123
123
|
basic_memory/sync/background_sync.py,sha256=4CEx8oP6-qD33uCeowhpzhA8wivmWxaCmSBP37h3Fs8,714
|
|
124
|
-
basic_memory/sync/sync_service.py,sha256=
|
|
124
|
+
basic_memory/sync/sync_service.py,sha256=7ccn4_YWcmC9VSEgm6diosRAibn4LxBS3lWb8vcTaoQ,19833
|
|
125
125
|
basic_memory/sync/watch_service.py,sha256=JAumrHUjV1lF9NtEK32jgg0myWBfLXotNXxONeIV9SM,15316
|
|
126
126
|
basic_memory/templates/prompts/continue_conversation.hbs,sha256=begMFHOPN3aCm5sHz5PlKMLOfZ8hlpFxFJ-hgy0T9K4,3075
|
|
127
127
|
basic_memory/templates/prompts/search.hbs,sha256=H1cCIsHKp4VC1GrH2KeUB8pGe5vXFPqb2VPotypmeCA,3098
|
|
128
|
-
basic_memory-0.13.
|
|
129
|
-
basic_memory-0.13.
|
|
130
|
-
basic_memory-0.13.
|
|
131
|
-
basic_memory-0.13.
|
|
132
|
-
basic_memory-0.13.
|
|
128
|
+
basic_memory-0.13.0b3.dist-info/METADATA,sha256=9PsyggvtWB9fpo9h4RfUOfy4g4JVqrRYbeOjGWiIwz0,15468
|
|
129
|
+
basic_memory-0.13.0b3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
130
|
+
basic_memory-0.13.0b3.dist-info/entry_points.txt,sha256=wvE2mRF6-Pg4weIYcfQ-86NOLZD4WJg7F7TIsRVFLb8,90
|
|
131
|
+
basic_memory-0.13.0b3.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
|
132
|
+
basic_memory-0.13.0b3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|