Commit Graph
9 Commits
Author SHA1 Message Date
Qin Haojie e648b2679c feat(ovpack): add v2 manifest and backup restore (#1927)
* feat(ovpack): add v2 manifest and conflict policy

Add a portable OVPack manifest for scalar metadata and make imports validate scope, derived files, and conflicts before writing.

* fix(ovpack): remove import vectorize option

Make OVPack imports always rebuild vectors in the target environment, keep legacy packages compatible, and reject unsupported manifest versions before writing.

* fix(ovpack): remove force import alias

Use on_conflict as the single OVPack import conflict policy and reject removed force inputs.

* fix(ovpack): regenerate runtime vector metadata

Keep type portable but stop exporting or applying created_at, updated_at, and active_count from OVPack manifests.

* fix(ovpack): validate manifest contents

* fix(ovpack): require manifests for imports

* fix(ovpack): close manifest validation gaps

* fix(ovpack): defer parent creation until validation passes

* fix(ovpack): remove export size guard

* fix(ovpack): support session and scope-root restores

* docs(ovpack): document full backup migration

* feat(ovpack): add backup restore workflow

* fix(ovpack): validate import scope compatibility
2026-05-11 11:09:35 +08:00
Qin Haojie 14b83736f8 fix(model): map upstream provider errors (#1732)
Return structured errors for model provider failures so auth, quota, and service errors are not collapsed into generic 500 responses.
2026-04-27 12:05:51 +08:00
euyua9 3d385136cb fix(server): map AGFS URI errors (#1671) 2026-04-23 21:33:09 +08:00
MaojiaShengandopenviking ce998873f9 lisence: change the main lisence to AGPL-3.0 (#1085)
* lisence: change the main lisence from Apache-2.0 to AGPL-v3

* lisence: change the main lisence from Apache-2.0 to AGPL-v3

* lisence: change the main lisence from Apache-2.0 to AGPL-v3

---------

Co-authored-by: openviking <openviking@example.com>
2026-03-30 14:37:42 +08:00
6d26e7a4fa refactor(openclaw-plugin): Unified session APIs and refactored the OpenClaw context pipeline for more consistent behavior, better maintainability, and stronger test coverage. (#1040)
* feat(openclaw-plugin): unify context assembly and compaction workflows

Co-authored-by: wlff123 <wulf234@163.com>
Co-authored-by: Eurekaxun <eurekaxun@163.com>
Co-authored-by: lin-qiang123 <1667704220@qq.com>
Co-authored-by: jcp0578 <jcp0578@gmail.com>

* feat(openviking-server): unify session context and commit APIs

Authored-by: Qin Haojie <qinhaojie.exe@bytedance.com>

* set default value of DEFAULT_EMIT_STANDARD_DIAGNOSTICS to false

---------

Co-authored-by: Eurekaxun <eurekaxun@163.com>
Co-authored-by: lin-qiang123 <1667704220@qq.com>
Co-authored-by: jcp0578 <jcp0578@gmail.com>
Co-authored-by: qin-ctx <qinhaojie.exe@bytedance.com>
2026-03-28 10:41:03 +08:00
yepperandqin-ctx 2e1619c352 Feature/add resource increment (#659)
* feat(semantic): add embedding task tracker and incremental update support

Implement embedding task tracker to monitor completion of vectorization tasks
Add support for incremental updates with file change status tracking
Optimize vectorization by reducing file reads with pre-computed status
Introduce VectorizeTask structure for better task management
Update semantic DAG executor to handle both full and incremental updates

* fix(semantic_processor): correct directory sync order and rename abstract to overview

Update the directory synchronization process to properly handle vector data files before directory deletion. Also rename 'abstract' parameter to 'overview' for clarity in the embedding utils.

* feat(embedding): add tracker decrement for failed enqueues

refactor(semantic_processor): simplify sync diff implementation

fix(summarizer): improve temp_uris empty check

test(embedding): add tests for tracker decrement cases

style(embedding_tracker): remove dataclass decorator

* fix(semantic_processor): change log level from warning to error for sync failures
refactor(tests): update vectorize methods to include semantic_msg_id parameter
test: add dummy tracker for embedding task tests
chore: remove obsolete test files

* fix: context overview

---------

Co-authored-by: qin-ctx <qinhaojie.exe@bytedance.com>
2026-03-16 21:59:16 +08:00
Qin Haojie 20b5dabed8 Revert "feat(resource): implement incremental update with COW pattern (#535)" (#584)
This reverts commit ebd573ccc4.
2026-03-13 23:26:19 +08:00
yepper ebd573ccc4 feat(resource): implement incremental update with COW pattern (#535)
* feat(resource): implement incremental update with COW pattern

Add support for incremental updates using copy-on-write pattern. Key changes include:
- Add ResourceLockManager for managing concurrent updates
- Introduce EmbeddingTaskTracker to track embedding task completion
- Modify TreeBuilder to support temp URIs and skip conflict resolution
- Update SemanticDagExecutor to handle incremental updates
- Extend memory extractor/compressor to work with temp URIs
- Add exists() method to VikingFS for URI existence checks
- Update Context to include temp_uri field

* refactor(resource_lock): clean up imports and improve code formatting

style: fix code formatting and whitespace issues across multiple files

feat(viking_fs): add copy_directory method for recursive directory copying

refactor(session): simplify temp URI creation and cleanup logic

style(memory_extractor): improve code formatting and line wrapping

refactor(semantic_processor): clean up imports and improve sync diff logic

style(compressor): fix code formatting and line wrapping

refactor(embedding_tracker): clean up code and improve logging

style(session): fix code formatting and whitespace issues

refactor(resource_lock): improve error handling and code organization

* refactor(storage): remove resource lock and improve semantic processing

- Remove ResourceLockManager and related lock handling code
- Simplify semantic processor by removing path locking mechanism
- Improve error handling and logging in sync operations
- Add new test files for storage components
- Clean up unused imports and update dependencies

* style(tests): clean up unused imports in test files

Remove unused imports across multiple test files to improve code cleanliness and reduce potential confusion. This includes removing unused mock objects, context classes, and constants that are not referenced in the tests.

* style: reformat code for better readability and consistency

Refactor long lines and adjust formatting to improve code readability. Changes include:
- Breaking long lines to adhere to line length limits
- Reformatting dictionary and list literals for consistency
- Adjusting indentation in multi-line statements
2026-03-12 22:42:56 +08:00
MaojiaSheng db7319f4a2 refactor: to accelerate cli launch speed, refactor openviking_cli dir (#150)
* fix: remove await asyncio and call agfs directly

* feat: mv cli out of openviking

* refactor: mv cli out of openviking

* refactor: mv cli out of openviking
2026-02-12 22:12:50 +08:00