Repository navigation
refactor(modules): prefix library-only modules with lib- - #1194
Draft
phorcys420 wants to merge 2 commits into
Draft
phorcys420 wants to merge 2 commits into
phorcys420 wants to merge 2 commits into
Conversation
Rename coder-utils, agentapi and vscode-desktop-core to lib-coder-utils, lib-agentapi and lib-vscode-desktop-core. These modules are tagged [internal, library] and are only meant to be consumed by other modules. Consumer modules keep their existing registry source addresses and pinned versions; they move to the lib-* addresses in a follow-up once the new release tags are published.
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
Renames the three modules that exist only to be consumed by other modules so they're clearly identifiable as libraries:
coder/coder-utilscoder/lib-coder-utilscoder/agentapicoder/lib-agentapicoder/vscode-desktop-corecoder/lib-vscode-desktop-coreThese are the only modules tagged
[internal, library]and the only registry modules consumed by other modules'sourceblocks (a full scan found no other module used exclusively by modules).Changes
git mveach module directory to itslib-name (no content changes beyond the items below).lib-*registry address and its testdescribenames.../lib-agentapi/test-util) in the 13 modules that import them.registry.coder.com/modules/coder/...links in consumer READMEs.AGENTS.md/coder-modulesskill: point at the new path and document thelib-prefix convention.Intentionally not changed
sourceaddresses and pinned versions (37 modules). Thelib-*addresses don't exist until release tags are pushed, and consumers pin older versions (e.g.coder-utils0.0.1,agentapi2.0.0) that won't exist under the new names. Migrating them is a follow-up.moduleblock labels (e.g.module "vscode-desktop-core"), to avoid changing resource addresses in existing workspaces.Before merging
coder-utils/agentapi/vscode-desktop-coreaddresses once their directories are gone from the repo. Consumers and external users still depend on them.release/coder/lib-coder-utils/v0.0.2,release/coder/lib-agentapi/v2.4.1,release/coder/lib-vscode-desktop-core/v1.2.1.Follow-up
Point consumers at
lib-*with currently published versions and bump each consumer's version.Validation
terraform test: lib-coder-utils (17), lib-agentapi (3), lib-vscode-desktop-core (3) pass.bun test: the three libraries plus every module whose import changed (goose, aider, claude-code, agent-firewall, auggie, codex, cursor-cli, opencode, sourcegraph-amp, pi, copilot) pass.bun run fmtclean.Generated with Xum using Claude