@anytio/pspm 0.6.0 → 0.7.0

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 CHANGED
@@ -5,6 +5,12 @@ 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.7.0] - 2026-02-25
9
+
10
+ ### Changed
11
+
12
+ - **BREAKING: `--access` is now required for `pspm publish`** — You must explicitly specify `--access public` or `--access private` when publishing. Previously, omitting `--access` would default to public (free users) or private (pro users). This prevents accidental public publishes.
13
+
8
14
  ## [0.6.0] - 2026-02-17
9
15
 
10
16
  ### Changed
package/README.md CHANGED
@@ -125,13 +125,15 @@ pspm version patch --dry-run # Preview changes without writing
125
125
  ### Publishing
126
126
 
127
127
  ```bash
128
- pspm publish # Publish current directory as a skill
129
- pspm publish --bump patch # Auto-bump version (major, minor, patch)
130
- pspm publish --access public # Publish and make public in one step
131
- pspm unpublish <spec> --force # Remove a published skill version
132
- pspm deprecate <spec> [msg] # Mark a version as deprecated
128
+ pspm publish --access private # Publish as private (requires Pro)
129
+ pspm publish --access public # Publish as public (irreversible)
130
+ pspm publish --access private --bump patch # Bump version and publish
131
+ pspm unpublish <spec> --force # Remove a published skill version
132
+ pspm deprecate <spec> [msg] # Mark a version as deprecated
133
133
  ```
134
134
 
135
+ **`--access` is required.** You must specify `--access public` or `--access private` every time you publish. Private skills require a Pro subscription.
136
+
135
137
  **Publish preview:** Before uploading, `pspm publish` shows a preview of included files, package size, and requires confirmation. Max package size is **10MB**.
136
138
 
137
139
 
@@ -310,3 +312,5 @@ pspm install --frozen-lockfile
310
312
  ## License
311
313
 
312
314
  This project is licensed under [The Artistic License 2.0](LICENSE), the same license used by npm.
315
+
316
+ <!-- @doc-sync: 17484e41aef17ad72e470bb5511876ce0bdfcbb4 | 2026-02-20 15:00 -->
package/dist/index.js CHANGED
@@ -4381,11 +4381,19 @@ program.command("version <bump>").description("Bump package version (major, mino
4381
4381
  dryRun: options.dryRun
4382
4382
  });
4383
4383
  });
4384
- program.command("publish").description("Publish current directory as a skill").option("--bump <level>", "Bump version (major, minor, patch)").option("--tag <tag>", "Tag for the release").option("--access <level>", "Set package visibility (public or private)").action(async (options) => {
4384
+ program.command("publish").description("Publish current directory as a skill").option("--bump <level>", "Bump version (major, minor, patch)").option("--tag <tag>", "Tag for the release").requiredOption(
4385
+ "--access <level>",
4386
+ "Set package visibility (public or private)"
4387
+ ).action(async (options) => {
4388
+ const access3 = options.access;
4389
+ if (access3 !== "public" && access3 !== "private") {
4390
+ console.error('Error: --access must be "public" or "private"');
4391
+ process.exit(1);
4392
+ }
4385
4393
  await publishCommand({
4386
4394
  bump: options.bump,
4387
4395
  tag: options.tag,
4388
- access: options.access
4396
+ access: access3
4389
4397
  });
4390
4398
  });
4391
4399
  program.command("unpublish <specifier>").description(