@anytio/pspm 0.0.7 → 0.1.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/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
@@ -49,18 +52,41 @@ pspm whoami # Show current user info
49
52
  ### Skill Management
50
53
 
51
54
  ```bash
52
- pspm add <specifier> # Add and install a skill
55
+ pspm add <specifiers...> # Add and install one or more skills
53
56
  pspm remove <name> # Remove an installed skill (alias: rm)
54
57
  pspm list # List installed skills (alias: ls)
55
- pspm install # Install all skills from lockfile (alias: i)
58
+ pspm install [specifiers...] # Install from lockfile, or add specific packages (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
+ **Multiple package support (like npm):**
64
+ ```bash
65
+ pspm add @user/alice/skill1 @user/bob/skill2 # Add multiple packages
66
+ pspm install @user/alice/skill1 github:org/repo # Install specific packages
67
+ pspm install # Install all from lockfile
68
+ ```
69
+
70
+ **Registry specifier formats:**
60
71
  - `@user/username/skillname` - Latest version
61
72
  - `@user/username/skillname@2.0.0` - Specific version
62
73
  - `@user/username/skillname@^2.0.0` - Semver range
63
74
 
75
+ **GitHub specifier formats:**
76
+ - `github:owner/repo` - Entire repository (default branch)
77
+ - `github:owner/repo@main` - Entire repository (specific branch/tag)
78
+ - `github:owner/repo/path/to/skill` - Subdirectory within repo
79
+ - `github:owner/repo/path/to/skill@v1.0.0` - Subdirectory with tag
80
+
81
+ **Agent symlink options:**
82
+ ```bash
83
+ pspm add <specifier> --agent claude-code,cursor # Link to multiple agents
84
+ pspm install --agent none # Skip symlink creation
85
+ pspm link --agent codex # Recreate symlinks for specific agent
86
+ ```
87
+
88
+ Default is all agents (`claude-code`, `codex`, `cursor`, `gemini`, `kiro`, `opencode`). Use `--agent claude-code` to install for a single agent.
89
+
64
90
  ### Publishing
65
91
 
66
92
  ```bash
@@ -144,14 +170,23 @@ registry = https://custom-registry.example.com
144
170
 
145
171
  ```json
146
172
  {
147
- "lockfileVersion": 1,
173
+ "lockfileVersion": 3,
148
174
  "registryUrl": "https://pspm.dev",
149
- "skills": {
175
+ "packages": {
150
176
  "@user/username/skillname": {
151
177
  "version": "1.0.0",
152
- "resolved": "https://pspm.dev/api/skills/@user/username/skillname/1.0.0/download",
178
+ "resolved": "https://pspm.dev/...",
153
179
  "integrity": "sha256-..."
154
180
  }
181
+ },
182
+ "githubPackages": {
183
+ "github:owner/repo/path": {
184
+ "version": "abc1234",
185
+ "resolved": "https://github.com/owner/repo",
186
+ "integrity": "sha256-...",
187
+ "gitCommit": "abc1234567890...",
188
+ "gitRef": "main"
189
+ }
155
190
  }
156
191
  }
157
192
  ```
@@ -172,6 +207,7 @@ Configuration is resolved in priority order:
172
207
  | `PSPM_REGISTRY_URL` | Override registry URL |
173
208
  | `PSPM_API_KEY` | Override API key |
174
209
  | `PSPM_DEBUG` | Enable debug logging |
210
+ | `GITHUB_TOKEN` | GitHub token for private repos and higher rate limits |
175
211
 
176
212
  ## Error Handling
177
213
 
@@ -201,14 +237,25 @@ Error: Not logged in. Run 'pspm login --api-key <key>' first, or set PSPM_API_KE
201
237
  ```
202
238
  project/
203
239
  ├── .pspmrc # Project config (optional)
240
+ ├── pspm.json # Manifest with dependencies
204
241
  ├── pspm-lock.json # Lockfile
205
- └── .pspm/
206
- ├── skills/ # Installed skills
207
- └── username/
208
- └── skillname/
209
- ├── SKILL.md
210
- └── ...
211
- └── cache/ # Tarball cache
242
+ ├── .pspm/
243
+ ├── skills/ # Installed skills
244
+ │ ├── username/ # Registry skills
245
+ │ │ └── skillname/
246
+ │ │ └── SKILL.md
247
+ └── _github/ # GitHub skills
248
+ │ │ └── owner/
249
+ │ │ └── repo/
250
+ │ │ └── path/
251
+ │ │ └── SKILL.md
252
+ │ └── cache/ # Tarball cache
253
+ ├── .claude/
254
+ │ └── skills/ # Symlinks for claude-code agent
255
+ │ ├── skillname -> ../../.pspm/skills/username/skillname
256
+ │ └── repo -> ../../.pspm/skills/_github/owner/repo
257
+ └── .cursor/
258
+ └── skills/ # Symlinks for cursor agent (if configured)
212
259
 
213
260
  ~/
214
261
  └── .pspmrc # User config