Skip to content

Implement shared credentials and prepared Markdown search - #1

Merged
Igloczek merged 16 commits into
mainfrom
cez/32300cb2
Sep 5, 2026
Merged

Igloczek merged 16 commits into
mainfrom
cez/32300cb2

Conversation

@Igloczek

@Igloczek Igloczek commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

Adds a Bun-based repository-local Markdown memory CLI: init, prepare, search, status, and gc.

Configure one shared OpenRouter key outside Git and reuse it across repositories/worktrees. Preparation incrementally embeds Markdown and atomically publishes validated snapshots. Search embeds only the query and reads prepared data without scanning or changing Markdown. GC preserves published references. All Markdown uses one heading/paragraph/code-block pipeline, with no local hard input-length limit, fixed overlap or truncation of oversized blocks.

Bun and code quality:

  • Bun.CryptoHasher preserves SHA-256 cache identities; global crypto supplies UUIDs. Init writes through Bun using an exclusively created descriptor, and CLI/benchmark scripts use Bun file I/O and subprocess APIs.
  • OS filesystem operations remain for metadata, directories, exclusive/no-follow descriptor flags, validated synchronous reads and atomic rename; path/OS helpers remain where Bun has no replacement.
  • Project imports use @/, mapped to the repository root. This includes generated test programs with an explicit trusted tsconfig. Oxlint rejects relative imports/re-exports/dynamic literals and require imports; only require('@/dist/lock.node') is allowed because Bun requires it for embedded Node-API addons.
  • Pinned oxlint 1.81.0 and oxfmt 0.66.0 enforce lint and formatting locally and in CI. Run bun run lint, bun run format, or bun run format:check. sh scripts/check.sh runs all checks, including strict types for scripts.

Validation at 1bd75cd:

  • 43 tests / 307 assertions, strict types, oxlint and oxfmt pass, including SHA-256 compatibility and actual linter rejection regressions.
  • Standalone build, hidden terminal setup/reset/cancellation, controlled CLI prepare/reuse/search/failure preservation/status/GC and clean Debian five-command execution pass.
  • Focused compiled CLI benchmark: 10,000 chunks / 3,072 dimensions, three samples, maximum584ms. Earlier full baseline covered100 warm+20 eviction-requested samples per dimension. Remote query latency excluded; measurements are runner-specific.
  • All three independent review lanes PASS after verification; the generated-test import convention gap was fixed and rechecked.
  • Both final-head CI runs passed: lint/format/tests/types/build, controlled CLI, terminal/clean-container checks and downloadable artifact packaging.
  • Previous live OpenRouter acceptance passed for document embedding, unchanged preparation and semantic/exact ranking. Transport/model/ranking are unchanged by this refactor, so no extra paid calls were made.

Maintained docs: README.md for operation, docs/decisions.md for lasting choices, docs/verification.md for reproduction, and AGENTS.md for project rules. Run logs/review reports stay outside tracked files. Existing skills were not modified.

Supported standalone target: Linux x86_64; other ports remain unverified future work. Download iglo.mem-linux-x64.tar.gz from a successful Check and build Linux executable run (14-day artifact retention). No merge or tagged release requested.

@Igloczek Igloczek changed the title Start CLI foundations and record credential security blocker Implement shared credentials and prepared Markdown search Sep 5, 2026
@Igloczek
Igloczek marked this pull request as ready for review September 5, 2026 11:50
@Igloczek
Igloczek merged commit 86ddd4d into main Sep 5, 2026
2 checks passed
@Igloczek
Igloczek deleted the cez/32300cb2 branch September 5, 2026 14:05
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