x07-package
Manage X07 project dependencies and lockfiles for reproducible builds (lock, publish). Designed for autonomous agents.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
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 publish):-
x07 init --package
-
-
Add a dependency entry to
x07.jsonand sync the lockfile:-
x07 pkg add <name>@<version> --sync
-
-
Generate or update a project lockfile:
-
x07 pkg lock --project x07.json
-
-
Reverse-lookup which package provides a module:
-
x07 pkg provides <module-id>
-
-
Verify a lockfile is up to date (CI mode):
-
x07 pkg lock --project x07.json --check
-
-
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
descriptionanddocsinx07-package.json. - The lockfile path is controlled by
x07.json(lockfile) and defaults tox07.lock.json. - When fetching is required,
x07 pkg lockdefaults to the official registry index; override with--index <url>. - Official packages may declare required helper packages via
meta.requires_packages. When present,x07 pkg lockwill add and fetch these transitive deps automatically (and updatex07.json). - If dependencies are already present on disk,
x07 pkg lockcan run without--indexusing--offline.
See also: https://x07lang.org/docs/packages/publishing-by-example/
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-26
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!