Skip to content

feat: schema extraction, LangChain/LlamaIndex integrations, reputation oracle#9

Merged
Blu-Jay-Dev merged 5 commits into
mainfrom
claude/laughing-williams
Mar 14, 2026
Merged

feat: schema extraction, LangChain/LlamaIndex integrations, reputation oracle#9
Blu-Jay-Dev merged 5 commits into
mainfrom
claude/laughing-williams

Conversation

@Blu-Jay-Dev

Copy link
Copy Markdown
Contributor

Summary

  • @tollway/client — implements the long-standing TODO in extractStructured(): full YAML schema parsing + CSS selector extraction via cheerio. Supports primary selectors, fallback selectors, transformations, derived fields, and a 30-min schema cache. Falls back to og/meta tag extraction when no schema is available.
  • @tollway/langchain — new package. TollwayRetriever (extends BaseRetriever) and TollwayLoader for LangChain pipelines. Pass a URL as the query or configure fixed urls at construction time.
  • @tollway/llamaindex — new package. TollwayReader implementing BaseReader. loadData(urls[]) fetches via Tollway and returns Document[] with structured metadata.
  • @tollway/reputation — new package. Reference reputation oracle server. GET /v1/:did for score lookup, POST /v1/:did/observe for server-side observation recording. Runnable standalone via npx @tollway/reputation or embeddable as a library.
  • README — updated packages table, roadmap (3 items checked off), and project structure diagram.
  • MOLTBOOK_POST.md — outreach strategy + 3 drafted posts targeting m/Agent-Builders, m/Philosophy-and-Ponderings, and m/jailbreaksurvivors.

Test plan

  • @tollway/client: verify extractStructured() fetches and applies a schema from schemaUrl, falls back to meta tags when schema unavailable
  • @tollway/langchain: smoke test TollwayRetriever.invoke(url) returns a Document with correct pageContent and metadata
  • @tollway/llamaindex: smoke test TollwayReader.loadData([url]) returns a Document
  • @tollway/reputation: POST /v1/:did/observe then GET /v1/:did returns updated score; npx @tollway/reputation starts server on port 3100
  • All four packages build cleanly with turbo build

🤖 Generated with Claude Code

Blu-Jay-Dev and others added 5 commits March 14, 2026 12:31
- Add cheerio + yaml as runtime dependencies
- Implement extractStructured() with full CSS selector pipeline:
  primary selectors → fallback selectors → transformations → derived fields
- Add 30-minute schema cache keyed by schemaUrl
- Fall back to basic og/meta tag extraction when no schema available
- Extracted data includes _schema field indicating which schema matched

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Adds TollwayRetriever (extends BaseRetriever) and TollwayLoader for
LangChain pipelines. Agents pass a URL as the query string or configure
fixed urls at construction time. Structured schema data is promoted into
Document.metadata. Peer dep on @langchain/core >=0.2.0.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Adds TollwayReader implementing BaseReader for LlamaIndex pipelines.
loadData(urls[]) fetches via Tollway, promotes structured schema fields
into Document metadata. Peer dep on llamaindex >=0.5.0.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Standalone Express server tracking agent DID scores from observations.
- GET /v1/:did — public score lookup (neutral 50 for unknowns)
- POST /v1/:did/observe — servers record observations (auth via X-Oracle-Key)
- 8 observation types with score deltas (+0.5 to -20)
- ReputationStore class importable for embedding in existing servers
- npx @tollway/reputation to run standalone

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Add integrations/* to root workspaces
- Update packages table and roadmap in README (3 new packages checked off)
- Update project structure diagram
- Add MOLTBOOK_POST.md: 3 targeted Moltbook posts with engagement strategy

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Mar 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tollway Building Building Preview, Comment Mar 14, 2026 4:32pm

@Blu-Jay-Dev Blu-Jay-Dev merged commit 0f8ac48 into main Mar 14, 2026
1 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant