ai-slash-commands 2026.1.5 → 2026.1.6

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.
@@ -0,0 +1,10 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(node scripts/cli.mjs:*)",
5
+ "Bash(git add:*)",
6
+ "Bash(git rm:*)",
7
+ "Bash(git commit:*)"
8
+ ]
9
+ }
10
+ }
@@ -11,11 +11,11 @@
11
11
  "internalConsoleOptions": "neverOpen"
12
12
  },
13
13
  {
14
- "name": "npm: install",
14
+ "name": "npm: install-configs",
15
15
  "type": "node",
16
16
  "request": "launch",
17
17
  "runtimeExecutable": "npm",
18
- "runtimeArgs": ["run", "install"],
18
+ "runtimeArgs": ["run", "install-configs"],
19
19
  "console": "integratedTerminal",
20
20
  "internalConsoleOptions": "neverOpen"
21
21
  },
package/README.md CHANGED
@@ -33,7 +33,7 @@ npm run gen
33
33
 
34
34
  3) Установи в домашние папки:
35
35
  ```bash
36
- npm run install
36
+ npm run install-configs
37
37
  ```
38
38
 
39
39
  ## NPX
@@ -70,7 +70,7 @@ npm run link:windsurf
70
70
  - `dist/windsurf/workflows/*.md`
71
71
  - `dist/codex/prompts/*.md`
72
72
 
73
- - `npm run install` - копирует из `dist/**` в:
73
+ - `npm run install-configs` - копирует из `dist/**` в:
74
74
  - `~/.claude/commands`
75
75
  - `~/.cursor/commands`
76
76
  - `~/.windsurf/workflows` (хранилище, дальше линк)
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "ai-slash-commands",
3
- "version": "2026.1.5",
3
+ "version": "2026.1.6",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "ai-slash-commands": "scripts/cli.mjs"
7
7
  },
8
8
  "scripts": {
9
9
  "gen": "node scripts/gen.mjs",
10
- "install": "node scripts/install.mjs",
10
+ "install-configs": "node scripts/install-configs.mjs",
11
11
  "uninstall": "node scripts/uninstall.mjs",
12
12
  "link:windsurf": "node scripts/link-windsurf.mjs"
13
13
  }
package/prompts/README.md CHANGED
@@ -4,18 +4,18 @@ This directory contains AI slash command prompts.
4
4
 
5
5
  ## Available Commands
6
6
 
7
- ### `/audit-packages`
8
-
9
- # audit-packages - update packages
10
-
11
- *Source: [audit-packages.md](audit-packages.md)*
12
-
13
7
  ### `/commit`
14
8
 
15
9
  # commit - make a commit
16
10
 
17
11
  *Source: [commit.md](commit.md)*
18
12
 
13
+ ### `/dependencies`
14
+
15
+ # dependencies - update packages
16
+
17
+ *Source: [dependencies.md](dependencies.md)*
18
+
19
19
  ### `/feat`
20
20
 
21
21
  # feat - add a new feature
@@ -30,7 +30,13 @@ This directory contains AI slash command prompts.
30
30
 
31
31
  ### `/refactoring`
32
32
 
33
- Review the codebase, find files with many lines or a lot of duplicate code, suggest 2-3 refactoring tasks to improve the code.
33
+ # refactoring - refactor the code
34
34
 
35
35
  *Source: [refactoring.md](refactoring.md)*
36
36
 
37
+ ### `/run-and-check`
38
+
39
+ # run-and-check - run and check the code
40
+
41
+ *Source: [run-and-check.md](run-and-check.md)*
42
+
@@ -1,4 +1,4 @@
1
- # audit-packages - update packages
1
+ # dependencies - update packages
2
2
 
3
3
  Check package versions for known vulnerabilities. Update vulnerable packages.
4
4
 
@@ -0,0 +1,3 @@
1
+ # run-and-check - run and check the code
2
+
3
+ Run the code and check the results.
package/scripts/cli.mjs CHANGED
@@ -3,7 +3,7 @@ import fs from "node:fs/promises";
3
3
  import path from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
5
  import { generate } from "./gen.mjs";
6
- import { install } from "./install.mjs";
6
+ import { install } from "./install-configs.mjs";
7
7
 
8
8
  const __filename = fileURLToPath(import.meta.url);
9
9
  const __dirname = path.dirname(__filename);
@@ -65,9 +65,7 @@ function parseArgs() {
65
65
  return { targets };
66
66
  }
67
67
 
68
- async function main() {
69
- const { targets } = parseArgs();
70
-
68
+ export async function install({ targets }) {
71
69
  for (const t of targets) {
72
70
  if (!SRC[t] || !DEST[t]) {
73
71
  console.error(`Unknown target: ${t}. Allowed: ${Object.keys(SRC).join(", ")}`);
@@ -81,6 +79,11 @@ async function main() {
81
79
  }
82
80
  }
83
81
 
82
+ async function main() {
83
+ const { targets } = parseArgs();
84
+ await install({ targets });
85
+ }
86
+
84
87
  main().catch((err) => {
85
88
  console.error(err);
86
89
  process.exit(1);