@impulselab/directory 1.0.1 → 1.0.3
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/README.md +10 -14
- package/index.js +2 -3
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -7,12 +7,8 @@ An NPX command by Impulse Lab (`https://impulselab.ai`) that downloads prompts f
|
|
|
7
7
|
### Direct usage with npx
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npx @impulselab/directory <user-slug>/<command-slug> [--target <target>]
|
|
11
|
-
npx @impulselab/directory stack <stack-id> [--target <target>]
|
|
12
|
-
|
|
13
|
-
# Legacy command name also works
|
|
14
|
-
npx impulse-directory <user-slug>/<command-slug> [--target <target>]
|
|
15
|
-
npx impulse-directory stack <stack-id> [--target <target>]
|
|
10
|
+
npx @impulselab/directory directory <user-slug>/<command-slug> [--target <target>]
|
|
11
|
+
npx @impulselab/directory directory stack <stack-id> [--target <target>]
|
|
16
12
|
```
|
|
17
13
|
|
|
18
14
|
`--target` selects the installation target. When omitted the command defaults to `claude-slash`.
|
|
@@ -34,25 +30,25 @@ When using the `stack` command, all prompts in the stack are installed for the c
|
|
|
34
30
|
|
|
35
31
|
```bash
|
|
36
32
|
# Download a Claude slash command from impulse.directory
|
|
37
|
-
npx @impulselab/directory john/my-awesome-command
|
|
33
|
+
npx @impulselab/directory directory john/my-awesome-command
|
|
38
34
|
|
|
39
35
|
# Install as a Claude sub agent
|
|
40
|
-
npx @impulselab/directory john/my-awesome-command --target claude-sub-agent
|
|
36
|
+
npx @impulselab/directory directory john/my-awesome-command --target claude-sub-agent
|
|
41
37
|
|
|
42
38
|
# Install as a Cursor command (inside a Cursor project)
|
|
43
|
-
npx @impulselab/directory john/my-awesome-command --target cursor-command
|
|
39
|
+
npx @impulselab/directory directory john/my-awesome-command --target cursor-command
|
|
44
40
|
|
|
45
41
|
# Install as a Cursor rule (inside a Cursor project)
|
|
46
|
-
npx @impulselab/directory john/my-awesome-command --target cursor-rule
|
|
42
|
+
npx @impulselab/directory directory john/my-awesome-command --target cursor-rule
|
|
47
43
|
|
|
48
44
|
# Install an Impulse stack (tool-specific stack ID)
|
|
49
|
-
npx @impulselab/directory stack 01JH0000000ABCDEF --target claude-slash
|
|
45
|
+
npx @impulselab/directory directory stack 01JH0000000ABCDEF --target claude-slash
|
|
50
46
|
|
|
51
47
|
# Use a custom URL (local development)
|
|
52
|
-
IMPULSE_BASE_URL=localhost:3000 npx @impulselab/directory dev-user/dev-command
|
|
48
|
+
IMPULSE_BASE_URL=localhost:3000 npx @impulselab/directory directory dev-user/dev-command
|
|
53
49
|
|
|
54
50
|
# Use another server
|
|
55
|
-
IMPULSE_BASE_URL=my-custom-domain.com npx @impulselab/directory author/custom-command
|
|
51
|
+
IMPULSE_BASE_URL=my-custom-domain.com npx @impulselab/directory directory author/custom-command
|
|
56
52
|
```
|
|
57
53
|
|
|
58
54
|
## 📁 Command Placement Logic
|
|
@@ -144,7 +140,7 @@ npx/impulse-claude/
|
|
|
144
140
|
To see download details:
|
|
145
141
|
```bash
|
|
146
142
|
# The command automatically displays the download path and destination folder
|
|
147
|
-
npx
|
|
143
|
+
npx @impulselab/directory directory debug-user/debug-command
|
|
148
144
|
```
|
|
149
145
|
|
|
150
146
|
## 🏷️ Branding
|
package/index.js
CHANGED
|
@@ -84,8 +84,7 @@ const TARGET_CONFIG = {
|
|
|
84
84
|
const KNOWN_TARGETS = Object.keys(TARGET_CONFIG);
|
|
85
85
|
|
|
86
86
|
function showHelp() {
|
|
87
|
-
const primaryUsageCmd = `npx ${PACKAGE.scopeName}`;
|
|
88
|
-
const legacyUsageCmd = `npx ${PACKAGE.commandName}`;
|
|
87
|
+
const primaryUsageCmd = `npx ${PACKAGE.scopeName} ${PACKAGE.aliasName}`;
|
|
89
88
|
console.log(`
|
|
90
89
|
Impulse Directory Command Installer
|
|
91
90
|
Made by ${PACKAGE.brand} (${PACKAGE.websiteUrl})
|
|
@@ -93,7 +92,7 @@ Made by ${PACKAGE.brand} (${PACKAGE.websiteUrl})
|
|
|
93
92
|
Usage:
|
|
94
93
|
${primaryUsageCmd} <user-slug>/<command-slug> [--target <target>]
|
|
95
94
|
${primaryUsageCmd} stack <stack-id>
|
|
96
|
-
|
|
95
|
+
|
|
97
96
|
|
|
98
97
|
Description:
|
|
99
98
|
Downloads a command from Impulse Directory and installs it in the right tool folder.
|
package/package.json
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@impulselab/directory",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Download and install Claude commands from Impulse Directory",
|
|
5
5
|
"main": "index.js",
|
|
6
|
-
"bin":
|
|
6
|
+
"bin": {
|
|
7
|
+
"directory": "./index.js"
|
|
8
|
+
},
|
|
7
9
|
"keywords": [
|
|
8
10
|
"claude",
|
|
9
11
|
"commands",
|
|
10
12
|
"impulse",
|
|
11
13
|
"npx"
|
|
12
14
|
],
|
|
13
|
-
"author": "Impulse Lab <
|
|
15
|
+
"author": "Impulse Lab <team@impulselab.ai> (https://impulselab.ai)",
|
|
14
16
|
"homepage": "https://impulselab.ai",
|
|
15
17
|
"repository": {
|
|
16
18
|
"type": "git",
|