GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs: complete v5 package targeting migration guidance by mikolalysenko · Pull Request #1296 · SocketDev/socket-patch

Conversation

@mikolalysenko

@mikolalysenko Mikola Lysenko (mikolalysenko) commented Oct 9, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

The runtime targeting fix is already on main via #1034, but the v5 migration guide does not explain the intentional change from fuzzy selection. This completes the remaining documentation for #1280 and aligns the usage guide and CLI contract with the merged behavior.

  • Explain exact package matching, all installed versions (including nested copies), full-name precedence, and actionable ambiguity refusals.
  • Document names, versioned/versionless PURLs, UUIDs and the root shortcut, advisory IDs, rollback paths, and --ecosystems filtering.
  • Describe no_match, no_packages, and out-of-scope UUID not_found results; correct the ambiguity JSON example to error.code and the undo-command syntax to include names.

Validation:

  • CLI integration/parsing suites: in_process_get, in_process_target_ambiguity, in_process_get_uuid_fallback, cli_parse_get, cli_parse_remove, cli_parse_rollback (125 passed).
  • Core utils::target unit tests (11 passed).
  • CLI UUID-shortcut, exact-name, remove-by-name/versionless-PURL, and rollback-classification unit tests (18 passed).
  • git diff --check; 33 relative documentation links and the new targeting anchors verified.

Fixes #1280.


Note

Low Risk
Documentation-only changes; no runtime or API behavior is modified in this PR.

Overview
Documents v5 package targeting behavior that already shipped in #1034, closing the gap for #1280 across the CLI contract, migration guide, and usage docs.

CLI_CONTRACT.md expands target grammar: full-name precedence over last-segment matches, unified ambiguous_target JSON (error.code), get outcomes (no_match / no_packages / ecosystem-scoped not_found for UUIDs), and when rollback treats slash-containing tokens as package vs path (with explicit path/glob escape hatches).

docs/migrating-to-v5.md adds a Package targeting section with a target-type table, exact-name vs fuzzy migration notes, ambiguity and --ecosystems filtering, rollback path rules, and example commands.

docs/usage.md points readers at the migration anchor, notes near-name suggestions and ecosystem scoping for get, and updates remove / rollback syntax tables to include NAME and version-spanning removal semantics.

Reviewed by Cursor Bugbot for commit 4f6746b. Configure here.


Generated by Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@mikolalysenko
docs: complete v5 package targeting migration guidance
4f6746b
Tanmay182003
Tanmay Singla (Tanmay182003) approved these changes Oct 9, 2026
View reviewed changes
@mikolalysenko Mikola Lysenko (mikolalysenko) added the Ready for review Agent-verified: mergeable, CI green, Bugbot clean — awaiting human review label Oct 9, 2026
@mikolalysenko

Mikola Lysenko (mikolalysenko) commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator Author

Ready for review (burn-down agent).

  • Head: 4f6746b0
  • CI: every check green except main-wide failures that also fail on main at a8e9397: e2e (ubuntu-latest, e2e_safety_pnpm) and hosted-e2e (withdrawn free [email protected] patch, Merge queue blocked: production no longer publishes free [email protected] patch #1293; fixes in Repin live [email protected] suites to republished patch 642d7f02 (#1293) #1301/Follow the republished minimist canary patch #1302), plus the ci-ok roll-up.
  • Bugbot: reviewed this head, no findings; no open review threads.
  • No CHANGELOG.md changes.
  • Docs-only (migration guide, usage guide, CLI contract).

Generated by Claude Code

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mikolalysenko
Merge branch 'main' into fix/issue-1280-exact-targets
ddc1e24
@mikolalysenko
Mikola Lysenko (mikolalysenko) enabled auto-merge October 9, 2026 18:23
@mikolalysenko
Mikola Lysenko (mikolalysenko) disabled auto-merge October 9, 2026 19:55
@mikolalysenko
Merge remote-tracking branch 'origin/main' into HEAD
b981664
# Conflicts:
#	crates/socket-patch-cli/CLI_CONTRACT.md
#	docs/migrating-to-v5.md
@mikolalysenko
Mikola Lysenko (mikolalysenko) enabled auto-merge October 9, 2026 23:17
@mikolalysenko
Mikola Lysenko (mikolalysenko) added this pull request to the merge queue Oct 9, 2026
Merged via the queue into main with commit f864148 Oct 9, 2026
53 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@mikolalysenko
Mikola Lysenko (mikolalysenko) deleted the fix/issue-1280-exact-targets branch October 9, 2026 23:33
Mikola Lysenko (mikolalysenko) added a commit that referenced this pull request Oct 9, 2026
@mikolalysenko @claude
Merge origin/main into agent/v5-pypi-pep440-lockonly
f574348
Picks up #1296 (v5 migration docs); no conflicts.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Tanmay182003 Tanmay Singla (Tanmay182003) Tanmay182003 approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

Ready for review Agent-verified: mergeable, CI green, Bugbot clean — awaiting human review

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

v5: make get package targeting exact and consistent before freezing the CLI

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@mikolalysenko @Tanmay182003
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.