Repository navigation
Merge seedeer, embedeer, and chattydeer into deer monorepo - #1
Merged
Merged
Conversation
Agent-Logs-Url: https://github.com/jsilvanus/embedeer/sessions/7c2a3414-e46d-43eb-9ba1-1e635c469f9a Co-authored-by: jsilvanus <22452468+jsilvanus@users.noreply.github.com>
Agent-Logs-Url: https://github.com/jsilvanus/embedeer/sessions/7c2a3414-e46d-43eb-9ba1-1e635c469f9a Co-authored-by: jsilvanus <22452468+jsilvanus@users.noreply.github.com>
Agent-Logs-Url: https://github.com/jsilvanus/embedeer/sessions/4d031fab-4fdc-4d5c-8bbe-8bb1e585a8b4 Co-authored-by: jsilvanus <22452468+jsilvanus@users.noreply.github.com>
Agent-Logs-Url: https://github.com/jsilvanus/embedeer/sessions/4d031fab-4fdc-4d5c-8bbe-8bb1e585a8b4 Co-authored-by: jsilvanus <22452468+jsilvanus@users.noreply.github.com>
Add parallel batched embedding tool with isolated child processes, thread mode, auth, quantization, and full CLI
Agent-Logs-Url: https://github.com/jsilvanus/embedeer/sessions/898517f6-b6e8-43fa-98b5-5a16e9745dc5 Co-authored-by: jsilvanus <22452468+jsilvanus@users.noreply.github.com>
Agent-Logs-Url: https://github.com/jsilvanus/embedeer/sessions/898517f6-b6e8-43fa-98b5-5a16e9745dc5 Co-authored-by: jsilvanus <22452468+jsilvanus@users.noreply.github.com>
…b checks Agent-Logs-Url: https://github.com/jsilvanus/embedeer/sessions/7227830d-3d7c-4707-be90-545f53b4bc77 Co-authored-by: jsilvanus <22452468+jsilvanus@users.noreply.github.com>
Agent-Logs-Url: https://github.com/jsilvanus/embedeer/sessions/7227830d-3d7c-4707-be90-545f53b4bc77 Co-authored-by: jsilvanus <22452468+jsilvanus@users.noreply.github.com>
…r Toolkit guide) Agent-Logs-Url: https://github.com/jsilvanus/embedeer/sessions/e005d328-62aa-468f-90b9-8982c069d6ff Co-authored-by: jsilvanus <22452468+jsilvanus@users.noreply.github.com>
…vanus on all packages Agent-Logs-Url: https://github.com/jsilvanus/embedeer/sessions/aba1be69-ab33-480c-9457-d0579962b5a4 Co-authored-by: jsilvanus <22452468+jsilvanus@users.noreply.github.com>
…ishing; show npx --device auto/gpu in READMEs Agent-Logs-Url: https://github.com/jsilvanus/embedeer/sessions/c6cb957d-1635-42ac-9914-88507015c38b Co-authored-by: jsilvanus <22452468+jsilvanus@users.noreply.github.com>
…ve I/O docs Agent-Logs-Url: https://github.com/jsilvanus/embedeer/sessions/be63b249-589e-433f-bf10-b78ef1668bc1 Co-authored-by: jsilvanus <22452468+jsilvanus@users.noreply.github.com>
…treaming output Agent-Logs-Url: https://github.com/jsilvanus/embedeer/sessions/b3d9aa41-2047-43a4-be9a-96e4015529eb Co-authored-by: jsilvanus <22452468+jsilvanus@users.noreply.github.com>
…sions Agent-Logs-Url: https://github.com/jsilvanus/embedeer/sessions/2e60c137-0653-4608-ba14-5926c7456201 Co-authored-by: jsilvanus <22452468+jsilvanus@users.noreply.github.com>
Agent-Logs-Url: https://github.com/jsilvanus/embedeer/sessions/6286b261-52f2-4560-ad02-795169949161 Co-authored-by: jsilvanus <22452468+jsilvanus@users.noreply.github.com>
Restructure embedeer as a single-package repo with `@jsilvanus/embedeer` and inline GPU provider detection
- Introduced `bench/compare.js` for comparing embedeer with Ollama. - Added `bench/ollama-bench.js` for benchmarking Ollama embedding endpoints. - Updated `texts-100.txt` with sample texts for benchmarking. - Enhanced CLI options to include `--prefix` and `--timer` for better control over embedding tasks. - Changed default model name in multiple files to `nomic-embed-text`. - Added logging for model loading and initialization in worker scripts.
- Introduced a new script `validate-embeddings.js` for validating embeddings generated by the Embedder model against those from the Ollama API. - The script reads input texts from a file, computes cosine similarities between the two sets of embeddings, and outputs statistical metrics. - Includes error handling for dimension mismatches and API response validation.
Set up automated versioning and npm publishing via Changesets
Version Packages
Version Packages
Version Packages
Establishes seedeer as a sibling to embedeer/chattydeer: a directly importable vision toolkit (no HTTP in the consuming product) covering four pillars — image embeddings (joint CLIP-class + vision-only DINOv2-class), captioning, pluggable-backend VQA, and a real-time detect/track/zone-trigger pipeline for production-assistant use cases. Docs (docs/ARCHITECTURE.md, docs/ROADMAP.md, docs/features/*.md) capture the design principles and phased build order. The package itself is a scaffold: public API shapes are exported and tested, but every call throws NotImplementedError pointing at its roadmap phase until the corresponding model integration lands.
test/**/*.test.js relies on bash globstar, which isn't enabled in the non-interactive shell npm runs scripts under in CI — the literal string was passed through and node --test couldn't resolve it. All test files are directly under test/, so a single-level glob is sufficient and portable.
…nbrii Plan and scaffold seedeer: a vision toolkit for embedeer/chattydeer
* Implement Phase 1: image embeddings (JointEmbedder, VisualEmbedder) Adds a generic, reusable worker-pool (process/thread local modes, socket/grpc remote-client modes) and provider-loader, modeled on embedeer's architecture. JointEmbedder (CLIP-class) and VisualEmbedder (DINOv2-class) now run real @huggingface/transformers inference through it instead of throwing NotImplementedError. socket-model-server.js and grpc-model-server.js are now real network-exposed wrappers around the same pool. Verified end-to-end with live model downloads (text/image CLIP similarity ranks correctly, DINOv2 embeddings are unit-normalized) and with process/thread/socket/grpc plumbing tests using a fixture engine. * Implement Phase 2: Captioning Captioner now wraps a transformers.js image-to-text pipeline behind the shared WorkerPool, mirroring JointEmbedder's batching/mode/device pattern. Verified against Xenova/vit-gpt2-image-captioning (the documented default model) via live single- and multi-image tests. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016t8Pm82L7wuCEYQFofyKZM * Implement Phase 3: Visual Question Answering VqaAssistant dispatches to LocalVqaBackend (SmolVLM-256M-Instruct via AutoModelForVision2Seq + chat template, run through the shared WorkerPool) or RemoteVqaBackend (OpenAI-compatible vision chat completions over fetch). Both backends satisfy the same ask(image, question) interface. Verified the local backend live against the cats fixture, and the remote backend against a mocked fetch covering the happy path, unreachable-endpoint, and non-2xx-response cases. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016t8Pm82L7wuCEYQFofyKZM * Implement Phase 4: Detect + Track + Zone-trigger Detector wraps a transformers.js object-detection pipeline (Xenova/ yolos-tiny by default) behind the shared WorkerPool, filtered to a configurable class label (default 'person'). Tracker is a pure-JS IOU-matching tracker assigning persistent IDs across frames, with a missed-frame grace period before dropping a track. ZoneTrigger evaluates tracked box centers against rect/polygon zones and emits enter/exit events on state transition. TrackingSession ties the three together into the session-shaped pushFrame()/EventEmitter API the feature spec calls for. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016t8Pm82L7wuCEYQFofyKZM * Implement Phase 5: Hardening Add per-pillar benchmark scripts (bench/*.bench.js, npm run bench), mirroring embedeer's bench/ directory. Add a regression test proving WorkerPool round-robins load across multiple socket servers, which surfaced a real bug: initialize() wasn't idempotent under concurrent callers, so parallel run() calls issued before the first connection settled could each open their own duplicate worker/connection set, leaking sockets and hanging server shutdown. Fixed by memoizing the in-flight initialization promise. This completes all phases in docs/ROADMAP.md. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016t8Pm82L7wuCEYQFofyKZM --------- Co-authored-by: Claude <noreply@anthropic.com>
Extract the chunk() helper duplicated across the embedders and Captioner into src/shared/chunk.js. In WorkerPool, collapse the redundant #ready/#initPromise bookkeeping into a single field, and fix a race where destroy() could run concurrently with an in-flight initialize(), either resurrecting a destroyed pool or leaking the workers/connections it was creating. Also hoist a redundant Array.isArray check out of caption-engine's per-image loop. Claude-Session: https://claude.ai/code/session_016t8Pm82L7wuCEYQFofyKZM Co-authored-by: Claude <noreply@anthropic.com>
…l, README, CLAUDE.md, LICENSE, .gitignore)
… chattydeer's embedeer dep to workspace:*
…es, with TS overrides for chattydeer
…move copilot-setup-steps.yml to root
…ard seedeer onto the shared release flow; add root release.yml
…eqeq lint error in embedeer bench script
Records the seedeer/embedeer/chattydeer -> deer consolidation as a minor version bump across all three packages.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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
seedeer,embedeer, andchattydeerinto this repo aspackages/seedeer,packages/embedeer,packages/chattydeer, with full original git history preserved (author, message, date) viagit filter-repo --to-subdirectory-filter+git merge --allow-unrelated-histories. SHAs changed (expected — tree hashes shifted), nothing else did.chattydeer's dependency on@jsilvanus/embedeernow resolves viaworkspace:*instead of a pinned npm version.ci.yml) and release (release.yml) workflows to the repo root, replacing the five per-package workflow files..changeset/to a single root directory;seedeeris newly onboarded onto the shared Changesets release flow (it had none before).pnpm-workspace.yaml, rootpackage.json, rooteslint.config.cjs(flat config, TS-aware for chattydeer), rootREADME.md, rootCLAUDE.md,LICENSE(MIT, carried over from seedeer — the only one of the three packages that had one).Verification already done
git log --followspot-checks confirm original authors/dates/messages survived in all three packages.pnpm install && pnpm run build && pnpm test && pnpm run lintall green.chattydeerresolves@jsilvanus/embedeervia a workspace symlink, confirmed on disk.Open items (not resolved by this PR — flagging for follow-up)
@jsilvanus/embedeerand@jsilvanus/chattydeerare currently bound to their old standalone repos' workflows on npmjs.com. This needs to be repointed tojsilvanus/deer'srelease.ymlbefore the nextchangeset publishwill authenticate.[20.x, 22.x](previously: seedeer 18.x/20.x, embedeer 20.x/22.x/24.x, chattydeer 24.x-only). Worth confirming this is an acceptable consolidated range.seedeer/embedeer/chattydeerrepos are left active/unarchived for now, per explicit instruction — out of scope here.Merging this will trigger
release.yml, which is expected to open a "Version Packages" PR (consuming the included changeset) — it will not attempt to publish since the OIDC binding (item 1) isn't fixed yet.Generated by Claude Code