Repository navigation
refactor(engine/ts): absorb the CoreDeno sidecar from ts-bk as engine/ts/deno - #52
Conversation
…/ts/deno
Finishes moving ts into render. engine/ts wrapped the sidecar but still
imported it from ts-bk as dappco.re/go/ts. Everything now lives here:
- go/engine/ts/deno/*.go: the Go sidecar host (Sidecar, DenoClient,
lifecycle, permissions, locales, signed manifests), renamed from package
ts to package deno
- go/engine/ts/deno/runtime, src, deps.ts, deno.json, deno.lock: the Deno side
of the sidecar and the TypeScript SDK built on it, with their layout kept so
the relative imports still resolve (src → ../runtime, ../deps.ts)
- go/engine/ts/deno/proto: coredeno.proto with go_package moved to
dappco.re/go/render/engine/ts/deno/proto, regenerated with protoc 35.1 /
protoc-gen-go v1.36.11. core_sidecar.proto source sits beside it because the
runtime loads ../proto/*.proto at run time (its Go code is generated in api)
- docs/coredeno: the RFC and docs
- go.mod: dappco.re/go/ts dropped; go-scm, grpc, protobuf and testify become
direct requirements
engine/ts registers the service with core.WithName("ts", …). Discovery names
a service after its package, which would now be "deno", but CoreTS is "ts"
wherever its code lives. engine/ts looks it up as "ts".
The integration test (-tags integration) now finds runtime/main.ts. In ts-bk
the runtime was at the repo root, not beside the package, so the test had
never found it. It now boots a real Deno sidecar and fails on an upstream bug:
go-scm's marketplace Installer.Installed errors when modules/ is missing,
where it should report no modules installed. That's being fixed in go-scm.
Gates (GOWORK=off): go build, go vet and go test ./... -count=1 pass.
Co-Authored-By: Virgil <virgil@lethean.io>
|
Important Review skippedToo many files! This PR contains 111 files, which is 11 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.
|
Finishes moving
tsinto render.engine/tswrapped the sidecar but still imported it fromts-bk(dappco.re/go/ts). Now everything is here, undergo/engine/ts/deno/:runtime/, the TS SDKsrc/, anddeno.json/deno.lock/deps.tsproto/:coredeno.protoregenerated with its newgo_package, plus thecore_sidecar.protosource the runtime loads at run timedocs/coredeno/: RFC and docsgo.mod:dappco.re/go/tsdroppedengine/tsnames the service explicitly (core.WithName(\"ts\", …)), so CoreTS stays\"ts\"rather than being discovered as\"deno\".The integration test can now find its runtime for the first time. It surfaces an upstream go-scm bug:
Installer.Installederrors whenmodules/is missing. That fix goes into go-scm.Gates (
GOWORK=off): build, vet andgo test ./...pass.🤖 Generated with Claude Code
Co-Authored-By: Virgil virgil@lethean.io