phernandez
2abf626c46
fix: resolve unused variable lint warnings in tests
...
- Remove unused variables in test mock functions
- Clean up test code per ruff linting rules
2025-06-09 15:15:05 -05:00
phernandez
7108a7baf1
fix: resolve sync race conditions and search errors
...
- Add IntegrityError handling in entity_service.create_entity_from_markdown for file_path/permalink constraint violations
- Add IntegrityError handling in sync_service.sync_regular_file for concurrent sync race conditions
- Fix FTS "unknown special query" error when searching for wildcard "*" patterns
- Add comprehensive test coverage for race condition edge cases and error handling
- Gracefully handle concurrent sync processes with fallback to update operations
Fixes sync errors from beta testing including:
- "UNIQUE constraint failed: entity.file_path"
- "UNIQUE constraint failed: entity.permalink"
- "unknown special query" FTS errors
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-06-08 15:20:27 -05:00
phernandez
c5c70cb0f4
improve validation for memory:// urls, add examples to build_context
...
Signed-off-by: phernandez <paul@basicmachines.co >
2025-06-04 00:16:33 -05:00
phernandez
ac08a8d024
fix: update FastMCP initialization for API changes
...
- Remove deprecated auth_server_provider parameter
- Use auth parameter correctly with OAuthProvider instead of AuthSettings
- Fixes type error after dependency updates
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-06-03 09:08:17 -05:00
Paul Hernandez
634486107b
feat: v0.13.0 pre ( #122 )
...
Signed-off-by: phernandez <paul@basicmachines.co >
Co-authored-by: Claude <noreply@anthropic.com >
2025-06-03 01:00:40 -05:00
bm-claudeai
020957cd76
feat: Multi-project support, OAuth authentication, and major improvements ( #119 )
...
Signed-off-by: phernandez <paul@basicmachines.co >
Co-authored-by: phernandez <paul@basicmachines.co >
Co-authored-by: Claude <noreply@anthropic.com >
2025-05-25 10:07:34 -05:00
Paul Hernandez
78a3412bcf
fix: run migrations and sync when starting mcp ( #88 )
2025-04-07 17:45:26 -05:00
Paul Hernandez
617e60bda4
feat: permalink enhancements ( #82 )
...
- Avoiding "useless permalink values" for files without metadata
- Enable permalinks to be updated on move via config setting
2025-04-06 14:54:59 -05:00
Paul Hernandez
e6496df595
feat: Beta work ( #17 )
...
feat: Add multiple projects support
feat: enhanced read_note for when initial result is not found
fix: merge frontmatter when updating note
fix: handle directory removed on sync watch
2025-03-05 18:46:04 -06:00
Paul Hernandez
37a01b806d
feat: Incremental sync on watch ( #13 )
...
- incremental sync on watch
- sync non-markdown files in knowledge base
- experimental `read_resource` tool for reading non-markdown files in raw form (pdf, image)
2025-02-24 22:13:15 -06:00
phernandez
28513c8b8d
lint code
2025-02-12 22:39:22 -06:00
Paul Hernandez
5b4f0eafcc
Pre release fixups ( #5 )
...
* configure logging
* set mcp output logging also
* fix type check errors
* fix type check
* rename Permalink schema type
* fix type errors
* add typechecks to ci workflow
* pytest coverage setup
* add tests for status cli
* sync tests coverage
* watch_service test coverage
* tests for tool_utils.py
* clean up imports
* file_utils coverage
* markdown plugins coverage
* 99% test coverage
* more test coverage, remove ObservationCategory
* more tool coverage
* fix type-check
* format, upgrade deps
---------
Co-authored-by: phernandez <phernandez@basicmachines.co >
2025-02-12 08:23:10 -06:00
phernandez
aad2c750bc
fix sync test
2025-02-07 16:12:25 -06:00
phernandez
ffbd091ad3
add db check at startup
2025-02-07 16:03:31 -06:00
phernandez
5e501b5440
fix sync
2025-02-05 23:05:15 -06:00
phernandez
135bec181d
fix: fix permalink uniqueness violations on create/update/sync
2025-02-04 16:43:18 -06:00
phernandez
d2536f7345
remove dup test code
2025-01-31 14:24:13 -06:00
phernandez
9983271e94
Refactor created/modified handling in markdown entities.
...
Replace frontmatter properties with top-level attributes for `created` and `modified` to simplify handling and ensure consistent attribute usage. Added a utility function for schema-to-markdown conversion and updated related tests and code to reflect these changes.
2025-01-31 13:59:06 -06:00
phernandez
0a80734564
remove EntitySyncService
2025-01-30 16:41:19 -05:00
phernandez
c2aa947be9
remove observation, relation services
2025-01-27 17:01:34 -06:00
phernandez
9f35f8b8d2
fix unresolved links on sync
2025-01-22 22:37:34 -06:00
phernandez
23922f2915
set permalink in frontmatter, re-index file_path on move during sync
2025-01-22 17:59:46 -06:00
phernandez
bd1d91081e
use dates from frontmatter on sync
2025-01-22 17:03:21 -06:00
phernandez
220914879b
delete relations/observations from search_index on delete entity during sync
2025-01-22 15:30:57 -06:00
phernandez
32606d771d
fix tests for context and permalinks
2025-01-18 23:54:28 -06:00
phernandez
d65fca0a3c
fixes for sync
2025-01-18 20:04:45 -06:00
phernandez
ef13b3b30a
refactor sync to use link_resolver
2025-01-13 22:31:32 -06:00
phernandez
aa8c0a7a36
rework entity_sync
2025-01-13 20:15:06 -06:00
phernandez
c5d21276de
change entity.path_id to entity.permalink
2025-01-12 16:47:21 -06:00
phernandez
90a301d4ce
rename entity.name to entity.title
2025-01-12 13:48:16 -06:00
phernandez
ba733196f1
remove knowledge_dir
2025-01-11 13:04:13 -06:00
phernandez
ea74d84c9b
fix tests
2025-01-11 01:01:13 -06:00
phernandez
eb2b0a46fc
fix tests
2025-01-11 00:40:46 -06:00
phernandez
1c6836d83f
fix tests
2025-01-07 20:29:59 -06:00
phernandez
c261b821f9
fix all tests
2025-01-07 18:19:41 -06:00
phernandez
c320f64b53
get tests working
2025-01-06 21:08:19 -06:00
phernandez
e35dbab156
add search to sync flow
2025-01-04 21:19:42 -06:00