feat: sync OpenClaw support and headless mode from tokscale#47
Merged
Conversation
Add OpenClaw AI tool parser, headless scanning infrastructure, and scanner robustness improvements synced from upstream tokscale. - Add OpenClaw session parser (sessions.json index → JSONL files) - Add headless roots scanning (VIBETRACKING_HEADLESS_DIR env var) - Add usage*.csv pattern with archive/backup filtering - Add sessions.json exact match pattern for OpenClaw - Use .extend() for multi-path scanner aggregation - Add openclaw to all source lists, types, colors, and DB constraints - Add shared parsing utilities (utils.rs) - Add serial_test for environment-dependent tests Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
sessions.jsonindex → JSONL session files from~/.openclaw/,~/.clawdbot/,~/.moltbot/,~/.moldbot/VIBETRACKING_HEADLESS_DIRenv var, default paths under~/.config/vibetracking/headless/and~/Library/Application Support/vibetracking/headless/)usage*.csvpattern with archive/backup filtering,sessions.jsonexact match,.extend()for multi-path aggregationopenclawto all source types, tool colors, labels, import normalization, and database constraintsFiles changed
New files
packages/core/src/sessions/openclaw.rs— OpenClaw session parser (257 lines, 4 tests)packages/core/src/sessions/utils.rs— Shared parsing utilitiessupabase/migrations/009_add_openclaw_tool.sql— DB constraint updateCore edits
packages/core/src/scanner.rs— OpenClaw + headless scanning, archive filtering,.extend()fixpackages/core/src/lib.rs— OpenClaw parsing blocks, headless agent tagging,usage*.csvpatternpackages/core/src/sessions/mod.rs— New module declarationspackages/core/Cargo.toml—serial_testdev dependencyCLI + Frontend
packages/cli/src/native.ts—openclawCountfieldpackages/cli/src/graph-types.ts—"openclaw"in SourceTypesrc/lib/graph-types.ts—"openclaw"in SourceTypesrc/components/ui/charts/constants.ts— OpenClaw color + labelsrc/app/api/import/route.ts— OpenClaw in normalizeToolNameTest plan
cargo test --features noop)napi build --platform --release)bun run src/cli.ts --help/--version)🤖 Generated with Claude Code