x07-package
Original:🇺🇸 English
Translated
Manage X07 project dependencies and lockfiles for reproducible builds (lock, publish). Designed for autonomous agents.
2installs
Sourcex07lang/x07-website
Added on
NPX Install
npx skill4agent add x07lang/x07-website x07-packageTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →x07-package
This skill documents the single canonical workflow for dependency management in X07 using the built-in package manager ().
x07 pkg ...When to use
Use this skill when:
- adding/updating dependencies,
- generating/verifying lockfiles,
- publishing a package to an index/registry.
Canonical commands
-
Create a publishable package repo (for):
x07 pkg publishx07 init --package
-
Add a dependency entry toand sync the lockfile:
x07.jsonx07 pkg add <name>@<version> --sync
-
Generate or update a project lockfile:
x07 pkg lock --project x07.json
-
Non-mutating whole-project validation (no emit):
x07 check --project x07.json
-
Reverse-lookup which package provides a module:
x07 pkg provides <module-id>
-
List available versions of a package:
x07 pkg versions <name>x07 pkg versions <name> --refresh
-
Verify a lockfile is up to date (CI mode):
x07 pkg lock --project x07.json --check- If you intentionally accept risk in CI: add and/or
--allow-yanked--allow-advisories
-
Pack a package directory deterministically:
x07 pkg pack --package <dir> --out <out.x07pkg>
-
Login (store credentials for an index):
- Interactive:
x07 pkg login --index <url> - Non-interactive:
printf '%s' "$X07_TOKEN" | x07 pkg login --index <url> --token-stdin
- Interactive:
-
Publish:
x07 pkg publish --package <dir> --index <url>
Notes
- Official registry index URL:
sparse+https://registry.x07.io/index/ - Publishing to the official registry requires non-empty and
descriptionindocs.x07-package.json - The lockfile path is controlled by (
x07.json) and defaults tolockfile.x07.lock.json - When fetching is required, defaults to the official registry index; override with
x07 pkg lock.--index <url> - Sparse index reads (including ) may be cached; use
x07 pkg versionsafter publishing to force a cache-busting fetch (HTTP/HTTPS indexes only).--refresh - Canonical project manifests use .
x07.project@0.3.0is accepted for legacy manifests, butx07.project@0.2.0requiresproject.patch.@0.3.0 - In mode, when the index can be consulted, lock validation also fails on yanked dependencies and active advisories unless explicitly allowed.
--check - Use in
project.patchto override transitive dependency versions (for example, moving off yanked/advised versions).x07.json - Patch paths under are treated as vendored deps (fetchable) during
.x07/deps/...hydration; patch paths elsewhere are local-only and must exist on disk.x07 pkg lock - Official packages may declare required helper packages via . When present,
meta.requires_packagesmay add and fetch these transitive deps (and updatex07 pkg lock).x07.json - If dependencies are already present on disk, can run without
x07 pkg lockusing--index.--offline