@anytio/pspm 0.0.5 → 0.1.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/LICENSE ADDED
@@ -0,0 +1,149 @@
1
+ # PolyForm Shield License 1.0.0
2
+
3
+ <https://polyformproject.org/licenses/shield/1.0.0>
4
+
5
+ Required Notice: Copyright AnyTransformer Inc. (https://pspm.dev)
6
+
7
+ ## Acceptance
8
+
9
+ In order to get any license under these terms, you must agree
10
+ to them as both strict obligations and conditions to all
11
+ your licenses.
12
+
13
+ ## Copyright License
14
+
15
+ The licensor grants you a copyright license for the
16
+ software to do everything you might do with the software
17
+ that would otherwise infringe the licensor's copyright
18
+ in it for any permitted purpose. However, you may
19
+ only distribute the software according to [Distribution
20
+ License](#distribution-license) and make changes or new works
21
+ based on the software according to [Changes and New Works
22
+ License](#changes-and-new-works-license).
23
+
24
+ ## Distribution License
25
+
26
+ The licensor grants you an additional copyright license
27
+ to distribute copies of the software. Your license
28
+ to distribute covers distributing the software with
29
+ changes and new works permitted by [Changes and New Works
30
+ License](#changes-and-new-works-license).
31
+
32
+ ## Notices
33
+
34
+ You must ensure that anyone who gets a copy of any part of
35
+ the software from you also gets a copy of these terms or the
36
+ URL for them above, as well as copies of any plain-text lines
37
+ beginning with `Required Notice:` that the licensor provided
38
+ with the software. For example:
39
+
40
+ > Required Notice: Copyright Yonder, Inc. (https://yonder.io)
41
+
42
+ ## Changes and New Works License
43
+
44
+ The licensor grants you an additional copyright license to
45
+ make changes and new works based on the software for any
46
+ permitted purpose.
47
+
48
+ ## Patent License
49
+
50
+ The licensor grants you a patent license for the software that
51
+ covers patent claims the licensor can license, or becomes able
52
+ to license, that you would infringe by using the software.
53
+
54
+ ## Noncompete
55
+
56
+ Any purpose is a permitted purpose, except for providing any
57
+ product that competes with the software or any product the
58
+ licensor or any of its affiliates provides using the software.
59
+
60
+ ## Competition
61
+
62
+ Goods and services compete even when they provide functionality
63
+ through different kinds of interfaces or for different technical
64
+ platforms. Applications can compete with services, libraries
65
+ with plugins, frameworks with development tools, and so on,
66
+ even if they're written in different programming languages
67
+ or for different computer architectures. Goods and services
68
+ compete even when provided free of charge. If you market a
69
+ product as a practical substitute for the software or another
70
+ product, it definitely competes.
71
+
72
+ ## New Products
73
+
74
+ If you are using the software to provide a product that does
75
+ not compete, you may continue doing so even if the licensor or
76
+ any of its affiliates later provides a competing product.
77
+
78
+ ## Discontinued Products
79
+
80
+ You may begin using the software to provide a product that
81
+ competes with one the licensor or any of its affiliates has
82
+ stopped providing, unless the licensor or any of its affiliates
83
+ began providing that product again within one year of your
84
+ starting to compete.
85
+
86
+ ## Sales of Business
87
+
88
+ If the licensor or any of its affiliates sells a line of
89
+ business developing the software or using the software
90
+ to provide a product, the buyer can also enforce
91
+ [Noncompete](#noncompete) for that product.
92
+
93
+ ## No Other Rights
94
+
95
+ These terms do not allow you to sublicense or transfer any of
96
+ your licenses to anyone else, or prevent the licensor from
97
+ granting licenses to anyone else. These terms do not imply
98
+ any other licenses.
99
+
100
+ ## Patent Defense
101
+
102
+ If you make any written claim that the software infringes or
103
+ contributes to infringement of any patent, your patent license
104
+ for the software granted under these terms ends immediately. If
105
+ your company makes such a claim, your patent license ends
106
+ immediately for work on behalf of your company.
107
+
108
+ ## Violations
109
+
110
+ The first time you are notified in writing that you have
111
+ violated any of these terms, or done anything with the software
112
+ not covered by your licenses, your licenses can nonetheless
113
+ continue if you come into full compliance with these terms,
114
+ and take practical steps to correct past violations, within
115
+ 32 days of receiving notice. Otherwise, all your licenses
116
+ end immediately.
117
+
118
+ ## No Liability
119
+
120
+ ***As far as the law allows, the software comes as is, without
121
+ any warranty or condition, and the licensor will not be liable
122
+ to you for any damages arising out of these terms or the use
123
+ or nature of the software, under any kind of legal claim.***
124
+
125
+ ## Definitions
126
+
127
+ The **licensor** is the entity offering these terms, and the
128
+ **software** is the software the licensor makes available under
129
+ these terms, including any portion of it.
130
+
131
+ **you** refers to the individual or entity agreeing to these
132
+ terms.
133
+
134
+ **your company** is any legal entity, sole proprietorship,
135
+ or other kind of organization that you work for, plus all
136
+ organizations that have control over, are under the control of,
137
+ or are under common control with that organization. **control**
138
+ means ownership of substantially all the assets of an entity,
139
+ or the power to direct its management and policies by vote,
140
+ contract, or otherwise. Control can be direct or indirect.
141
+
142
+ **your licenses** are all the licenses granted to you for the
143
+ software under these terms.
144
+
145
+ **use** means anything you do with the software requiring one
146
+ of your licenses.
147
+
148
+ **trademark** means trademarks, service marks, and similar
149
+ rights.
package/README.md CHANGED
@@ -26,14 +26,17 @@ npx @anytio/pspm <command>
26
26
  # Login with your API key
27
27
  pspm login --api-key <your-api-key>
28
28
 
29
- # Add a skill to your project
29
+ # Add a skill from the registry
30
30
  pspm add @user/username/skill-name
31
31
 
32
+ # Add a skill from GitHub
33
+ pspm add github:owner/repo/path@main
34
+
32
35
  # List installed skills
33
36
  pspm list
34
37
 
35
38
  # Install all skills from lockfile
36
- pspm install
39
+ pspm install --agent claude-code,cursor
37
40
  ```
38
41
 
39
42
  ## Commands
@@ -53,22 +56,48 @@ pspm add <specifier> # Add and install a skill
53
56
  pspm remove <name> # Remove an installed skill (alias: rm)
54
57
  pspm list # List installed skills (alias: ls)
55
58
  pspm install # Install all skills from lockfile (alias: i)
59
+ pspm link # Recreate agent symlinks without reinstalling
56
60
  pspm update # Update skills to latest compatible versions
57
61
  ```
58
62
 
59
- **Specifier formats:**
63
+ **Registry specifier formats:**
60
64
  - `@user/username/skillname` - Latest version
61
65
  - `@user/username/skillname@2.0.0` - Specific version
62
66
  - `@user/username/skillname@^2.0.0` - Semver range
63
67
 
68
+ **GitHub specifier formats:**
69
+ - `github:owner/repo` - Entire repository (default branch)
70
+ - `github:owner/repo@main` - Entire repository (specific branch/tag)
71
+ - `github:owner/repo/path/to/skill` - Subdirectory within repo
72
+ - `github:owner/repo/path/to/skill@v1.0.0` - Subdirectory with tag
73
+
74
+ **Agent symlink options:**
75
+ ```bash
76
+ pspm add <specifier> --agent claude-code,cursor # Link to multiple agents
77
+ pspm install --agent none # Skip symlink creation
78
+ pspm link --agent codex # Recreate symlinks for specific agent
79
+ ```
80
+
81
+ Default agent is `claude-code` (creates symlinks in `.claude/skills/`).
82
+
64
83
  ### Publishing
65
84
 
66
85
  ```bash
67
86
  pspm publish # Publish current directory as a skill
68
87
  pspm publish --bump patch # Auto-bump version (major, minor, patch)
88
+ pspm publish --access public # Publish and make public in one step
69
89
  pspm unpublish <spec> --force # Remove a published skill version
70
90
  ```
71
91
 
92
+ ### Visibility
93
+
94
+ ```bash
95
+ pspm access --public # Make current package public
96
+ pspm access <spec> --public # Make specific package public
97
+ ```
98
+
99
+ **Note:** Making a package public is irreversible (like npm). Public packages cannot be made private again.
100
+
72
101
  **Publish Output:**
73
102
 
74
103
  When publishing, PSPM displays detailed package information similar to npm:
@@ -112,6 +141,13 @@ PSPM uses a simple npm-like INI configuration format.
112
141
  registry = https://pspm.dev
113
142
  authToken = sk_...
114
143
  username = myuser
144
+
145
+ ; Multi-registry: Scope mappings
146
+ @myorg:registry = https://corp.pspm.io
147
+
148
+ ; Multi-registry: Per-registry tokens
149
+ //pspm.dev:authToken = sk_public_token
150
+ //corp.pspm.io:authToken = sk_corp_token
115
151
  ```
116
152
 
117
153
  ### Project Config (`.pspmrc`)
@@ -123,18 +159,27 @@ Project-specific configuration (optional):
123
159
  registry = https://custom-registry.example.com
124
160
  ```
125
161
 
126
- ### Lockfile (`skill-lock.json`)
162
+ ### Lockfile (`pspm-lock.json`)
127
163
 
128
164
  ```json
129
165
  {
130
- "lockfileVersion": 1,
166
+ "lockfileVersion": 3,
131
167
  "registryUrl": "https://pspm.dev",
132
- "skills": {
168
+ "packages": {
133
169
  "@user/username/skillname": {
134
170
  "version": "1.0.0",
135
- "resolved": "https://pspm.dev/api/skills/@user/username/skillname/1.0.0/download",
171
+ "resolved": "https://pspm.dev/...",
136
172
  "integrity": "sha256-..."
137
173
  }
174
+ },
175
+ "githubPackages": {
176
+ "github:owner/repo/path": {
177
+ "version": "abc1234",
178
+ "resolved": "https://github.com/owner/repo",
179
+ "integrity": "sha256-...",
180
+ "gitCommit": "abc1234567890...",
181
+ "gitRef": "main"
182
+ }
138
183
  }
139
184
  }
140
185
  ```
@@ -155,6 +200,7 @@ Configuration is resolved in priority order:
155
200
  | `PSPM_REGISTRY_URL` | Override registry URL |
156
201
  | `PSPM_API_KEY` | Override API key |
157
202
  | `PSPM_DEBUG` | Enable debug logging |
203
+ | `GITHUB_TOKEN` | GitHub token for private repos and higher rate limits |
158
204
 
159
205
  ## Error Handling
160
206
 
@@ -184,12 +230,25 @@ Error: Not logged in. Run 'pspm login --api-key <key>' first, or set PSPM_API_KE
184
230
  ```
185
231
  project/
186
232
  ├── .pspmrc # Project config (optional)
187
- ├── skill-lock.json # Lockfile
188
- └── .skills/ # Installed skills
189
- └── username/
190
- └── skillname/
191
- ├── SKILL.md
192
- └── ...
233
+ ├── pspm.json # Manifest with dependencies
234
+ ├── pspm-lock.json # Lockfile
235
+ ├── .pspm/
236
+ │ ├── skills/ # Installed skills
237
+ │ │ ├── username/ # Registry skills
238
+ │ │ │ └── skillname/
239
+ │ │ │ └── SKILL.md
240
+ │ │ └── _github/ # GitHub skills
241
+ │ │ └── owner/
242
+ │ │ └── repo/
243
+ │ │ └── path/
244
+ │ │ └── SKILL.md
245
+ │ └── cache/ # Tarball cache
246
+ ├── .claude/
247
+ │ └── skills/ # Symlinks for claude-code agent
248
+ │ ├── skillname -> ../../.pspm/skills/username/skillname
249
+ │ └── repo -> ../../.pspm/skills/_github/owner/repo
250
+ └── .cursor/
251
+ └── skills/ # Symlinks for cursor agent (if configured)
193
252
 
194
253
  ~/
195
254
  └── .pspmrc # User config