Repository navigation
build(cli): run on stable Effect 4.1.3 - #109
Merged
Merged
Conversation
Pin effect, @effect/platform-bun, and @effect/vitest to 4.1.3 in the CLI, the browser smoke script, and the docs example, and drop the direct @effect/platform-node-shared pin that @effect/platform-bun now pins itself. Port the CLI to the 4.1 APIs, give each command its own directory with a definition and a handler, drop the argv workaround for `--` operands that 4.1 routes natively, and keep the built-in global flags without 4.1's interactive --wizard. Move the workspace to Vitest 5, which @effect/vitest 4.1 requires. packages/uniku (its benchmarks use the bench() API Vitest 5 removed) and the Cloudflare e2e workspace (@cloudflare/vitest-pool-workers requires Vitest 4) use a vitest4 catalog. Fixes #107
Rebuild the skill around composio's Effect v4 skill: a version matrix in versions.json, references for the effect/cli surface and command layout, core patterns, and the upgrade workflow, and an example checker that also fails when versions.json and the CLI pins disagree. Drop the references written for the 4.0 betas, and update AGENTS.md and the testing and TypeScript skills for Effect 4.1 and the Vitest split.
Contributor
|
Preview removed because the pull request was closed. |
commit: |
Contributor
Benchmark ResultsGeneration
Validation
Cold Start (Node)
Comparison vs Main
❌ Performance regression detected!
Bundle Impact
*Excludes external dependencies (e.g., @noble/hashes) Generated by workflow run 42986632490 |
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
@uniku/clinow runs on stable Effect 4.1.3 instead of4.0.0-beta.93. A global npm install no longer depends on the direct@effect/platform-node-sharedpin that #106 added to stop theERR_MODULE_NOT_FOUNDstartup crash:@effect/[email protected]pins it exactly, and a packednpm i -gresolves a single[email protected].Fixes #107
What changes for CLI users
Output,
--jsonshapes, and exit codes matchmainfor valid invocations; I compared about 30 invocations against a build ofmain. Effect 4.1's parser is stricter, and the changeset lists each difference:mainuniku uuid -n 2 -n 3,uniku uuid extra,uniku uuid -vuniku tsid --node -1-1, exit 1INVALID_NODE, exit 1uniku --log-level bogus uuiduniku --completionspowershell,pwshKeeping the old leniency would mean working around the framework's parser, so this PR documents the stricter behavior instead. Say so if you would rather preserve it.
Design decisions
src/commands/<name>/as a.cmd.tsdefinition plus a.handler.ts;generatesubcommands live ingenerate/<id>/. The layout mirrors the composio CLI, so both CLIs follow the same conventions.--wizard. 4.1 enables an interactive--wizardglobal flag by default.src/cli-config.tskeeps the 4.0 built-in set (help, version, completions, log level).--operands. 4.1 routes operands after--to the selected subcommand, so the encode/decode workaround insrc/runtime/args.tsis gone.--jsondetection for error output and the update notice now ignores operands, souniku validate -- --jsonvalidates the literal ID--json.-1as a flag value.--countnow rejects negative values, souniku uuid -n -1still exits 1 instead of printing nothing.@effect/vitest4.1 requires Vitest 5, now the workspace default.packages/uniku(its benchmarks use thebench()API Vitest 5 removed) and the Cloudflare e2e (@cloudflare/vitest-pool-workersstill requires Vitest 4) use avitest4catalog..agents/skills/effect-v4is rebuilt from composio's Effect v4 skill, with the 4.0-beta references removed. Its example checker now also fails whenversions.jsonand the CLI pins disagree.Validation
pnpm lint:ci,pnpm typecheck,pnpm test(uniku 547, CLI 261),pnpm test:e2e(Cloudflare, 63),pnpm examples:checkunikubrowser smoke and benchmarks on thevitest4catalognpm i -gofuniku+@uniku/cli, thenuniku --helpanduniku uuidbun-darwin-arm64andbun-linux-x64