Skip to content

Merge seedeer, embedeer, and chattydeer into deer monorepo - #1

Merged
jsilvanus merged 177 commits into
mainfrom
claude/deer-monorepo-migration-plan-p0hnh1
Jun 25, 2026
Merged

jsilvanus merged 177 commits into
mainfrom
claude/deer-monorepo-migration-plan-p0hnh1

Conversation

@jsilvanus

Copy link
Copy Markdown
Owner

Summary

  • Merges seedeer, embedeer, and chattydeer into this repo as packages/seedeer, packages/embedeer, packages/chattydeer, with full original git history preserved (author, message, date) via git filter-repo --to-subdirectory-filter + git merge --allow-unrelated-histories. SHAs changed (expected — tree hashes shifted), nothing else did.
  • Converts the whole repo to a single pnpm workspace. chattydeer's dependency on @jsilvanus/embedeer now resolves via workspace:* instead of a pinned npm version.
  • Consolidates CI (ci.yml) and release (release.yml) workflows to the repo root, replacing the five per-package workflow files.
  • Consolidates .changeset/ to a single root directory; seedeer is newly onboarded onto the shared Changesets release flow (it had none before).
  • Adds root scaffolding: pnpm-workspace.yaml, root package.json, root eslint.config.cjs (flat config, TS-aware for chattydeer), root README.md, root CLAUDE.md, LICENSE (MIT, carried over from seedeer — the only one of the three packages that had one).
  • Adds a minor Changeset covering all three packages, documenting the migration itself for their changelogs.

Verification already done

  • Commit count: 176 (1 deer + 6 seedeer + 117 embedeer + 44 chattydeer + 3 merges + 5 scaffolding commits).
  • git log --follow spot-checks confirm original authors/dates/messages survived in all three packages.
  • All package test suites pass: seedeer 22/22, embedeer 145/145, chattydeer 126/126.
  • Root pnpm install && pnpm run build && pnpm test && pnpm run lint all green.
  • chattydeer resolves @jsilvanus/embedeer via a workspace symlink, confirmed on disk.

Open items (not resolved by this PR — flagging for follow-up)

  1. npm OIDC trusted-publisher rebinding required: @jsilvanus/embedeer and @jsilvanus/chattydeer are currently bound to their old standalone repos' workflows on npmjs.com. This needs to be repointed to jsilvanus/deer's release.yml before the next changeset publish will authenticate.
  2. CI Node matrix changed to [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.
  3. The original seedeer/embedeer/chattydeer repos 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

jsilvanus and others added 30 commits April 7, 2026 13:01
Add parallel batched embedding tool with isolated child processes, thread mode, auth, quantization, and full CLI
…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>
…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>
…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>
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.
claude and others added 27 commits June 12, 2026 19:43
Set up automated versioning and npm publishing via Changesets
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>
…ard seedeer onto the shared release flow; add root release.yml
Records the seedeer/embedeer/chattydeer -> deer consolidation as a
minor version bump across all three packages.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@jsilvanus
jsilvanus merged commit 18b6530 into main Jun 25, 2026
2 checks passed
@jsilvanus
jsilvanus deleted the claude/deer-monorepo-migration-plan-p0hnh1 branch June 26, 2026 12:09
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.

3 participants