Commit graph

912 commits

Author SHA1 Message Date
Snider
bcbbc0da80 refactor: extract cmd/ to cli repo, core/go is now pure framework
- cmd/gocmd → cli/cmd/gocmd (Go dev commands)
- cmd/core-app deleted (Wails artifact, source in core/ide)
- cmd/bugseti deleted (no source, own repo)

core/go now has 3 direct deps: go-io, go-log, testify.
No CLI, TUI, cobra, or bubbletea dependencies remain.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-06 13:58:29 +00:00
Snider
e920397741 refactor: extract remaining pkg/ packages to standalone modules
- pkg/session → go-session
- pkg/ws → go-ws
- pkg/webview → go-webview
- pkg/workspace → go-io/workspace
- pkg/lab → lthn/lem/pkg/lab
- pkg/build deleted (empty dirs)
- lem-chat moved to lthn/LEM
- internal/core-ide + cmd/core-ide deleted (Wails artifacts, source in core/ide)
- internal/cmd deleted (Wails updater artifacts)
- Taskfile.yaml deleted (stale Wails duplicate)

pkg/ now contains only framework + log (stays).

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-06 13:48:00 +00:00
Snider
ef5c83c04e refactor: delete pkg/io, slim pkg/log to go-io/go-log re-exports
- Delete pkg/io/ entirely (all consumers now use go-io)
- Delete pkg/log/{errors.go,log.go} duplicates (now in go-log)
- Rewrite pkg/log/log.go as thin re-export layer over go-log
- Keep pkg/log/{service.go,rotation.go} (framework/go-io deps)
- Swap internal pkg/ imports to go-io/go-log across ~30 files

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-06 12:23:52 +00:00
Snider
ddc8582d7f refactor: remove pkg/help, use core/go-help module
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-06 09:11:54 +00:00
Snider
84397a2e10 refactor: remove pkg/i18n, use core/go-i18n module
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-06 09:09:02 +00:00
Snider
2958527774 refactor: extract pkg/coredeno to core/ts
Deno/TypeScript runtime bridge now lives in its own repo
at forge.lthn.ai/core/ts, completing the trifecta:
core/go, core/php, core/ts.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-06 09:04:38 +00:00
Snider
5da58d6c07 docs: remove internal homelab docs from public repo
These contain internal IPs, service topology, and homelab
architecture that shouldn't be in a public repo.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-03 13:57:53 +00:00
Snider
752f98d8bc docs: remove DNS records from plans dir (not a Charon task)
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-03 13:44:22 +00:00
Snider
e000e31567 docs: migrate homelab docs from *.lthn.lan to *.lthn.sh
- Rewrite handover doc for lthn.sh with real TLS cert, proper DNS
- Add UniFi gateway DNS record reference (16 A records, no wildcards)
- Update OpenBrain usage guide to lthn.sh URLs
- Split services: *.lthn.sh (lab) vs *.infra.lthn.sh (admin tools)
- GoGetSSL wildcard cert covers lthn.sh + *.lthn.sh + *.infra.lthn.sh

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-03 13:43:39 +00:00
Snider
7fe48a6268 docs: update .lan service URLs to *.lthn.lan subdomain convention
All homelab services now use the *.lthn.lan naming convention
(ollama.lthn.lan, qdrant.lthn.lan, eaas.lthn.lan) per updated
/etc/hosts configuration.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-03 13:19:57 +00:00
Snider
bb9844c638 fix: correct clone URL in lthn.lan handover doc
Repo is lthn/hostuk, not host-uk/host.uk.com.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 12:36:23 +00:00
Snider
2a14fda69c docs: add OpenBrain usage guide for all agents
Covers seeding, querying, storing, MCP tools, maintenance,
and direct Qdrant API access. Written for agent onboarding.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 11:47:09 +00:00
Snider
3e65b13f3f docs: add lthn.lan homelab setup handover for Charon
Covers Docker/FrankenPHP deployment, Traefik integration,
MariaDB/Redis setup, OpenBrain config, and satellite service plan.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 11:36:57 +00:00
Snider
88d393fd3b chore: bump forge.lthn.ai dep versions to latest tags
Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-26 05:34:23 +00:00
Claude
d48f613ddf
docs: archive 3 remaining completed plans
Move lem-chat-design, go-forge-design, and go-forge-plan to
docs/plans/completed/. The other completed plans were already
archived by a prior session.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-24 19:44:23 +00:00
bb00bd4add Merge pull request 'feat: LEM Chat TypeScript web components' (#18) from feat/lem-chat-components into main 2026-02-24 18:25:23 +00:00
Claude
e6cd676278
feat: add lem-chat TypeScript web components
Standalone chat UI built with vanilla Web Components (Custom Elements +
Shadow DOM) that connects to the MLX inference server's SSE streaming
endpoint. Zero framework dependencies, single JS bundle output.

Components:
- <lem-chat>: Container with SSE client, config via attributes
- <lem-messages>: Scrollable message list with auto-scroll
- <lem-message>: Single message bubble with streaming + <think> tag support
- <lem-input>: Textarea with Enter to send, Shift+Enter for newline

Build: esbuild src/lem-chat.ts → dist/lem-chat.js (15KB ESM)
Replaces the monolithic chat.js in core/go-ml.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 18:23:59 +00:00
c8b32cc1a1 Merge pull request 'chore: Go 1.26 modernization' (#17) from chore/go-1.26-modernization into main 2026-02-24 18:01:41 +00:00
Claude
2b09a26507
chore: use slices.Contains for linear search
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 15:54:39 +00:00
Claude
eb186027a0
chore: use range-over-integer (Go 1.22+)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 15:53:09 +00:00
Claude
d60e87dac8
chore: use min()/max() builtins (Go 1.21+)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 15:52:06 +00:00
Claude
ff530d9898
chore: sort.Slice → slices.SortFunc
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 15:45:48 +00:00
Claude
13ed6d3f76
chore: use %w for error wrapping
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 15:39:19 +00:00
Claude
d570c87efc
chore: fmt.Errorf(static) → errors.New
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 15:38:38 +00:00
Claude
09c25b9975
chore: replace interface{} with any (Go 1.18+ alias)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 15:38:00 +00:00
Claude
674e3c3c9a
docs: archive cli-sdk-expansion plan, remove duplicate job-runner
Move completed cli-sdk-expansion plan to docs/plans/completed/ with
summary. Remove duplicate core-ide-job-runner plans (canonical copy
lives in core/cli).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 13:51:21 +00:00
Snider
3587d0ce27 test: add coverage for lab, session, sigil, repos, plugin packages
Brings 5 packages from low/zero coverage to solid test suites:
- pkg/lab: 0% → 100% (Store pub/sub, Config env loading)
- pkg/session: 0% → 89.9% (transcript parser, HTML renderer, search, video)
- pkg/io/sigil: 43.8% → 98.5% (XOR/ShuffleMask obfuscators, ChaCha20-Poly1305)
- pkg/repos: 18.9% → 81.9% (registry, topo sort, directory scan, org detection)
- pkg/plugin: 54.8% → 67.1% (installer error paths, Remove, registry Load/Save)

Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-24 13:29:15 +00:00
Snider
5a92bd652b chore: bump forge.lthn.ai dep versions to latest tags
Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-23 06:49:46 +00:00
Snider
85493ae779 chore: add Go repo norms (badges, contributing, lint, taskfile, editorconfig)
Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-23 06:45:52 +00:00
Snider
e959a9aaaf chore: refresh go.sum after upstream tag updates
Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-23 06:35:19 +00:00
Snider
3f162db925 docs: archive Q/K Bone Orientation plan as completed
7 tasks across 4 repos (go-inference, go-mlx, go-ml, LEM).
+917 lines, all tests passing, pushed to forge.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-23 00:39:09 +00:00
Snider
12ff432d6b docs: archive completed plans with summaries
Move completed plan documents to docs/plans/completed/ with
concise completion summaries alongside the originals.

Archived: MCP integration, Go API design/plan, CLI meta-package design.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 23:46:13 +00:00
Claude
b5032bea32
chore: refresh go.sum after upstream tag updates
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 23:36:25 +00:00
Snider
97a561c809 feat(qa): restore docblock check via go-devops import
Now that go-devops imports core/cli (not core/go/pkg/cli),
the circular dependency is resolved. Restore the docblock
coverage check using qa.CheckDocblockCoverage().

Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-22 23:31:46 +00:00
Snider
9323eeb1fa chore: remove tracked ELF binary, add to .gitignore
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 23:10:27 +00:00
Snider
57ad74d4e2 refactor: delete pkg/cli, migrate imports to core/cli
pkg/cli now lives in forge.lthn.ai/core/cli as its own module.
All cmd/gocmd imports updated. qa docblock check stubbed pending
go-devops circular dependency resolution.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 23:08:03 +00:00
Claude
1734acaae0
chore: migrate Snider deps from github.com to forge.lthn.ai
Update Borg dependency path from github.com/Snider/Borg to
forge.lthn.ai/Snider/Borg across go.mod and imports.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 21:40:25 +00:00
Snider
aca479de75 chore: bump go directive to 1.26.0
Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-22 20:33:48 +00:00
Snider
7f2470b135 chore: pin forge deps to v0.0.1 tags for Go 1.26 compat
Go 1.26 rejects non-semver version strings (like 'main') in go.mod.
Tags v0.0.1 now exist on all forge repos — workspace still overrides
for local development.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-22 20:15:06 +00:00
Snider
dcd705ff46 chore: use workspace-resolved versions, drop replace directives
Forge module versions now use main branch resolution via ~/Code/go.work
workspace. Removes local replace directives — the central go.work handles
all cross-repo resolution during development.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-22 19:49:36 +00:00
Snider
138927baa5 docs: update plans to reflect WithCommands lifecycle pattern
- Rewrite cli-meta-package-design to document current state:
  WithCommands(), completed migrations, no init()/blank imports
- Add completion status note to MCP integration plan
- Update pkg-batch2-analysis RegisterCommands → WithCommands

Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-21 22:13:22 +00:00
Snider
2a90ae65b7 refactor(cli): register commands through Core framework lifecycle
Replace the RegisterCommands/attachRegisteredCommands side-channel with
WithCommands(), which wraps command registration functions as framework
services. Commands now participate in the Core lifecycle via OnStartup,
receiving the root cobra.Command through Core.App.

Main() accepts variadic framework.Option so binaries pass their commands
explicitly — no init(), no blank imports, no global state.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-21 22:06:40 +00:00
Snider
8e7fb0e5a3 feat: absorb Go tooling commands from CLI
cmd/gocmd/ provides: fmt, test, fuzz, qa, cov, tools wrappers.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-21 21:45:52 +00:00
Snider
d091fa6202 chore: resolve go-crypt from forge, remove local replace
Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-21 19:11:03 +00:00
Snider
58ca902320 feat(cli): add Viewport for scrollable content (logs, diffs, docs)
Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-21 18:13:37 +00:00
Snider
a0660e5802 feat(cli): add TextInput with placeholder, masking, validation
Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-21 18:13:07 +00:00
Snider
fcdccdbe87 feat(cli): add InteractiveList with keyboard navigation and terminal fallback
Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-21 18:12:37 +00:00
Snider
c2418a2737 feat(cli): stub Form, FilePicker, Tabs with simple fallbacks
Interfaces defined for future charmbracelet/huh upgrade.
Current implementations use sequential prompts.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-21 18:10:33 +00:00
Snider
175ad1e361 feat(cli): add ProgressBar with Increment, Set, SetMessage, Done
Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-21 18:10:01 +00:00
Snider
50afecea6d feat(cli): add Spinner with async handle (Update, Done, Fail)
Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-21 18:09:40 +00:00