Skip to content

[codex] add local-first source auto-refresh#1

Merged
0dust merged 1 commit into
mainfrom
codex/local-first-auto-refresh
Jun 17, 2026
Merged

[codex] add local-first source auto-refresh#1
0dust merged 1 commit into
mainfrom
codex/local-first-auto-refresh

Conversation

@0dust

@0dust 0dust commented Jun 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add local registered website sources with okfy add, sources, check, update, remove, OKFY_HOME, source.json, and state.json.
  • Add age-based freshness, safe temp-bundle refresh/replacement, bundle hashing, duration parsing, lock/throttle handling, and failure preservation.
  • Add source-name MCP serving with gated --auto-refresh, stale-while-refresh/blocking modes, reloadable search, and bundle_summary freshness metadata.
  • Update agent-first README/MCP docs and add the PRD plus unit/integration coverage.

Notes

  • okfy update <name> is now the explicit refresh-now command; there is no update --force flag.
  • serve <source> --mcp reports source freshness metadata without network refresh; --auto-refresh enables refresh behavior.
  • The regenerated dist/chunk-* file is the expected tsup shared chunk replacement.

Validation

  • pnpm lint
  • pnpm typecheck
  • pnpm test (10 files, 63 tests)
  • pnpm build
  • pnpm demo
  • npm pack --dry-run
  • Manual local HTTP fixture flow: add, sources, check, update, and serve stripe --mcp --auto-refresh with JSON-RPC-only stdout and fresh/valid bundle_summary.

@0dust 0dust force-pushed the codex/local-first-auto-refresh branch from daecdb2 to f629ab9 Compare June 16, 2026 18:09
@0dust 0dust marked this pull request as ready for review June 17, 2026 19:14
@0dust 0dust merged commit 70ef134 into main Jun 17, 2026
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