@anytio/pspm 0.15.0 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/index.js +14 -4
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,13 @@ All notable changes to the PSPM CLI will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.15.1] - 2026-05-28
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- **Publishing a `@user` skill no longer collides with a same-named GitHub-indexed skill.** GitHub-indexed skills are stored under the indexer's admin user, so for that account a `@user` publish could match an indexed `@github` skill of the same name and inherit its calendar version (`YYYY.M.D`) — making every `0.x` publish fail with "must be greater than existing version 2026.x.x". The publish/lookup query is now scoped to the `@user` namespace.
|
|
13
|
+
- **Clearer publish errors.** Version-bump and duplicate-version failures now print a single accurate message with the offending version and what to do next, instead of mislabelling an HTTP 400 as `E403 / 403 Forbidden`.
|
|
14
|
+
|
|
8
15
|
## [0.15.0] - 2026-05-28
|
|
9
16
|
|
|
10
17
|
### Changed
|
package/dist/index.js
CHANGED
|
@@ -1694,11 +1694,21 @@ function handleUploadError(response, version) {
|
|
|
1694
1694
|
status: response.status,
|
|
1695
1695
|
data: response.data
|
|
1696
1696
|
}, "Publish failed");
|
|
1697
|
-
if (errorMessage.includes("must be greater than")
|
|
1698
|
-
|
|
1699
|
-
console.error(`
|
|
1697
|
+
if (errorMessage.includes("must be greater than")) {
|
|
1698
|
+
const existing = errorMessage.match(/existing version ([\w.+-]+)/)?.[1];
|
|
1699
|
+
console.error(`Error: cannot publish ${version} — a higher version exists.`);
|
|
1700
|
+
if (existing) console.error(` The latest published version is ${existing}. Publish a version greater than ${existing}.`);
|
|
1701
|
+
else console.error(" Bump to a greater version and try again.");
|
|
1702
|
+
process.exit(1);
|
|
1703
|
+
}
|
|
1704
|
+
if (errorMessage.includes("already exists")) {
|
|
1705
|
+
console.error(`Error: version ${version} has already been published.`);
|
|
1706
|
+
console.error(" Published versions are immutable — bump the version in pspm.json and try again.");
|
|
1707
|
+
process.exit(1);
|
|
1700
1708
|
}
|
|
1701
|
-
|
|
1709
|
+
console.error(`Error: publish failed (HTTP ${response.status}).`);
|
|
1710
|
+
console.error(` ${errorMessage}`);
|
|
1711
|
+
process.exit(1);
|
|
1702
1712
|
}
|
|
1703
1713
|
function printPublishResult(result, options, packageJson) {
|
|
1704
1714
|
const visibility = result.skill.visibility;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anytio/pspm",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"description": "CLI for PSPM - Package manager for AI agent skills",
|
|
5
5
|
"author": "anyt.io",
|
|
6
6
|
"license": "Artistic-2.0",
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
"tsx": "^4.21.0",
|
|
54
54
|
"typescript": "^6.0.3",
|
|
55
55
|
"vitest": "^4.1.5",
|
|
56
|
-
"@anytio/
|
|
57
|
-
"@anytio/typescript-config": "0.0.0",
|
|
56
|
+
"@anytio/skill-registry": "0.0.1",
|
|
58
57
|
"@anytio/skill-types": "0.0.1",
|
|
59
|
-
"@anytio/
|
|
58
|
+
"@anytio/typescript-config": "0.0.0",
|
|
59
|
+
"@anytio/errors": "0.0.0"
|
|
60
60
|
},
|
|
61
61
|
"engines": {
|
|
62
62
|
"node": ">=20.0.0"
|