feat: integrate OpenViking native flow and setup auto-bootstrap#132
Open
mczabca-boop wants to merge 3 commits intoTinyAGI:mainfrom
Open
feat: integrate OpenViking native flow and setup auto-bootstrap#132mczabca-boop wants to merge 3 commits intoTinyAGI:mainfrom
mczabca-boop wants to merge 3 commits intoTinyAGI:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR upgrades TinyClaw’s OpenViking integration from legacy markdown-first retrieval to OpenViking’s native architecture (Session + Search + Memory), while preserving a safe compatibility fallback path.
What changed
Native Session write path (primary)
(channel, senderId, agentId) -> openviking_session_id.POST /api/v1/sessionsPOST /api/v1/sessions/{id}/messages(role=user|assistant)POST /api/v1/sessions/{id}/commiton reset/session-end.TINYCLAW_OPENVIKING_COMMIT_TIMEOUT_MS, default15000ms).Native Search prefetch path (primary)
POST /api/v1/search/search(optionally withsession_id).memory/resource/skill) and injects concise structured context.find-uris + read + markdown turn parsingretained as fallback only.Fallback and rollback safety
Stability and observability
TINYCLAW_OPENVIKING_SESSION_NATIVETINYCLAW_OPENVIKING_SEARCH_NATIVETINYCLAW_OPENVIKING_PREFETCHTINYCLAW_OPENVIKING_AUTOSYNCSetup/start UX integration
tinyclaw setupnow supports optional OpenViking enablement.~/.openviking/ov.conf.tinyclaw startcan auto-start OpenViking server and export required runtime env vars for seamless use.Files touched
src/queue-processor.tssrc/lib/openviking-prefetch.tssrc/lib/openviking-session-map.ts(new)src/tools/openviking-tool.tslib/templates/agent-tools/openviking/openviking-tool.jslib/setup-wizard.shlib/common.shlib/daemon.shREADME.mdValidation performed
npm run build:mainnpm run test:prefetch-parsersession-create -> session-message(user/assistant) -> session-commit -> searchmemory/resource/skill)Notes / known constraints