Repository navigation
Studio split + rename: @linuxdevil/lousho SDK, @linuxdevil/studio app, launcher, CI, bridge compat, docs, eject - #1155
Merged
Merged
Conversation
LinuxDevil
force-pushed
the
fb-w12-collector-lifecycle
branch
from
November 14, 2026 10:24
bd7b204 to
f36cb8a
Compare
LinuxDevil
force-pushed
the
fb-w13a-studio-package
branch
from
November 14, 2026 11:35
acd8261 to
c9b0f01
Compare
…udio W13a: the SDK package moves from the unscoped 'lousho' name to the scoped @linuxdevil/lousho so npm publishes land under the owner's scope. Every import specifier, package reference, template, generated registry item, deploy virtual-specifier matcher, dual-package test layout and CLI message follows the new name; scripts/publish-github-packages.mjs drops its now-obsolete alias rewrite since npm and GitHub Packages names coincide. Studio becomes independently publishable: apps/agent-forge is @linuxdevil/studio with a 'lousho-studio' bin, files/engines/license/ repository/publishConfig metadata, and CJS tsup bundles (dist-server). server/cli.ts parses --workspace/--port/--host/--help/--version, validates them (exit 2 on bad input) and boots Studio with cwd as the launch workspace; sdkRoot.ts resolves the SDK in both monorepo and installed node_modules layouts; scripts/pin-sdk-range.mjs rewrites the file:../.. dependency to a ^<version> range at prepack and restores it at postpack. Runtime deps (@ai-sdk/*, ai, yaml, zod@3) move out of devDependencies so the packed server runs standalone; zod stays v3 to match Studio's schema style (the SDK peer accepts ^3.25.76 || ^4.0.0). README/LICENSE added for the package. Verified: SDK build + typecheck, Studio client/server typecheck, lint + lint:imports (new no-sdk-source rule uses the registered plugin id), SDK suite (7421 tests), Studio client suite (1238, one perf-wall-clock flake that passes in isolation), Studio server suite (1253), create-lousho unit + template e2e, api:check, docs:ratchet, registry checks, npm pack (9-file tarball with pinned semver dep, package.json restored), CLI smoke (--help/--version/port 0/health/ SIGTERM). Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
LinuxDevil
force-pushed
the
fb-w13a-studio-package
branch
from
November 14, 2026 11:41
c9b0f01 to
cdd477f
Compare
…3a-studio-package
…all budget Merged main added exports the reports had not picked up, and the SDK tarball grew past the 26 MiB pack-smoke ceiling (27.86 MB measured). Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
… dep, rename merged lousho imports
# Conflicts: # .fallowrc.json # apps/agent-forge/package.json # apps/agent-forge/server/__tests__/deployRunner.test.ts # apps/agent-forge/server/index.ts # apps/agent-forge/server/lifecycle/publish.ts # apps/agent-forge/server/serve/serveRoutes.ts
…h realm, user-agent, dual package names
…cher The @linuxdevil/lousho package no longer contains apps/agent-forge: files drops the Studio entries, prepublishOnly is just the SDK build, prepack-check loses its Agent-Forge warning, and pack-smoke no longer builds Studio, requires its paths, or allows anything under apps/. Re-measured budgets: 1016 entries / 15,289,389 B unpacked / 4,393,121 B packed (~10% headroom); MAX_ENTRIES stays at 1040 since the count still fits. size-budget.json regenerated (bundleBytes also dropped ~30% vs the stale S16b budget - drift, not this change). src/cli/studio.ts is rewritten around findStudio(): the SDK checkout's apps/agent-forge (package name @linuxdevil/studio) keeps the dev/prod contributor modes - prod now spawns dist-server/cli.cjs with --workspace/--port/--host and lets the Studio CLI mint its own token - while an installed @linuxdevil/studio is found via createRequire from cwd, then the SDK package root, then npm's global root, and launched the same way. --prod/--dev against an installed target is a usage error (exit 2); no target prints 'Studio is a separate install: npx @linuxdevil/studio' and exits 1. spawn is injectable for tests. Verified: tsc, lint, test:coverage (7427), build, pack-smoke (all checks incl. strict-libs zod3/zod4), size-check, fallow (no new findings), npm pack --dry-run shows zero apps/ paths, live 'lousho studio --help' and the missing-Studio exit-1 path. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
scripts/pack-smoke-studio.ts packs the SDK and @linuxdevil/studio, checks the Studio tarball (required/forbidden paths, budgets, pinned semver SDK dep, package.json restored by prepack/postpack), dry-run publishes it, installs both tarballs into a fresh project, and proves `lousho-studio` and the `lousho studio` launcher serve the UI. smokeKit gains shared dryRunPublish/freePort; pack-smoke.ts uses them. ci.yml moves all Studio checks out of the check/forge jobs into a dedicated studio job that ends with pack-smoke:studio --skip-build. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…ocumented deep seams Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
- host banners and test fixtures now name @linuxdevil/lousho (the @lousho/build-ai-agent strings predated the W13a rename; the legacy name stays supported in workspaceSdk discovery only). - specTypes stops re-exporting SecretRef so shared/wireTypes stays the single Studio-side export (fallow duplicate-exports); the three canvas consumers and types.test.ts import it from wireTypes, the same source the other fields already use. - pack-smoke and pack-smoke-studio share packTarball/smokeDirs/ smokeSetup/checkTarballContents/cleanSmokeDir/reportSmoke via smokeKit (fallow clone groups); mustRun goes private now that smokeSetup wraps it. - drop unused dagre devDependency (elkjs replaced it in C17). Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
… collector docs/agent-forge.md is retitled Lousho Studio and reorganized: install and start (npx @linuxdevil/studio / lousho-studio / lousho studio launcher), workspaces and the ~/.lousho storage split, the three kinds of agent, per-workspace SDK selection with each host banner verbatim, the collector lifecycle, reporting deployed agents via LOUSHO_OBSERVE_*, and independent updates. installation/cli/observability/upgrading/README/CHANGELOG updated; llms.txt regenerated. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
POST /agents/:id/eject renders the spec with specToAgentDir and writes the
files under agents/<id>/ in the request's workspace (workspaceOf seam),
atomically and under withAgentLock. 409 LOUSHO_EJECT_EXISTS carries the
existing file list; { overwrite: true } replaces. Generated paths are
re-validated before touching disk (absolute, drive-letter, NUL, '..'
segments all 400) and each resolved target must stay inside the eject
directory.
The Code tab toolbar gains "Eject to project" behind a primary
ConfirmDialog; on 409 it shows the server message plus an "Overwrite
existing files" checkbox that resends with overwrite: true. ConfirmDialog
gains a children slot for that checkbox. The shared readSpecOr404 lookup
is extracted to workspace/specLookup (also used by the portability route)
and the evals harness's collector thunk is adapted to CollectorSource.
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This was referenced Nov 14, 2026
- smokeKit: add missing node:os import (smokeDirs uses os.tmpdir) - .fallowrc.json: restore comma dropped in entry-list merge - CodeTab.test: partial-mock runtimeClient so RuntimeApiError stays real and ejectAgent exists for vi.spyOn Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
- pack-smoke-studio: retune tarball budgets to the consolidated build (12 entries, 9.3 MB unpacked, 2.6 MB packed + ~15% headroom) - cli.ts: compare realpaths for the main-module guard - npm's POSIX bin is a symlink, so argv[1] (.bin/lousho-studio) never matched import.meta.url and `lousho-studio --help` exited 0 silently - template.e2e: fix codemod-mangled node_modules path (@linuxdevil/@linuxdevil/lousho -> @linuxdevil/lousho) - CodeTab: extract EjectToProject component - the eject flow pushed the tab over fallow's cognitive-complexity threshold Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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
Consolidated merge of the full Forge Builder/Studio wave stack (formerly #1155 → #1160). One CI run covers everything:
lousho→@linuxdevil/lousho; Studio published as separate@linuxdevil/studiopackage (own package.json, binlousho-studio, tsup server bundle, pin-sdk-range for publish).apps/agent-forge;lousho studiobecomes a launcher that finds an installed@linuxdevil/studio(local → SDK-adjacent → global) or printsStudio is a separate install: npx @linuxdevil/studio.scripts/pack-smoke-studio.ts+ dedicatedstudioCI job (typecheck, lint:imports, client+server tests, build:studio, pack both tarballs, install in a fresh project, verifylousho-studioandlousho studioserve the UI).bridge.compat.test.ts+vitest.compat.config.ts+bridge-compat-minCI job running the same suite against the minimum supported SDK;HostSelectioncarriesprotocol/specVersions; SecretRef dedupe; pack-smoke helper sharing.docs/agent-forge.mdretitled Lousho Studio: install/start, workspaces + storage split, three agent kinds, SDK selection banners, collector lifecycle, deployed agents viaLOUSHO_OBSERVE_*, updating;cli.md/installation.md/observability.md/upgrading.md/README/CHANGELOG updated; llms.txt regenerated.POST /agents/:id/eject+ Code tab "Eject to project": writes the agent directory (specToAgentDir) into the workspace with overwrite confirmation.Test plan
Supersedes #1156, #1157, #1158, #1159, #1160 (their commits are included here).
Generated with Devin