sweepi 0.0.7 → 0.0.9

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 CHANGED
@@ -28,6 +28,7 @@ This creates `~/.sweepi`, writes `~/.sweepi/eslint.config.mjs`, and installs:
28
28
 
29
29
  - `eslint@^9`
30
30
  - `eslint-plugin-sweepit@latest`
31
+ - Sweepi skill via `npx skills add jjenzz/sweepi`
31
32
 
32
33
  ## How lint runs
33
34
 
@@ -88,6 +88,14 @@ async function initializeToolchain(options = {}) {
88
88
  } else {
89
89
  onStatus?.(`Reusing existing Sweepi toolchain in ${toolchainDirectory}`);
90
90
  }
91
+ onStatus?.("Installing Sweepi LLM skill...");
92
+ const runSkillInstallCommand = options.runSkillInstallCommand ?? runInstallCommandWithNpm;
93
+ await runSkillInstallCommand(
94
+ "npx",
95
+ ["skills", "add", "jjenzz/sweepi", "--skill", "sweepi", "--yes"],
96
+ toolchainDirectory
97
+ );
98
+ onStatus?.("Installed Sweepi LLM skill");
91
99
  return {
92
100
  toolchainDirectory,
93
101
  installedDependencies: installRequired
package/dist/cli.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  initializeToolchain,
4
4
  runSweepi
5
- } from "./chunk-BWQN4NL3.js";
5
+ } from "./chunk-YVJTSHM6.js";
6
6
 
7
7
  // src/cli.ts
8
8
  async function run() {
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  interface InitializeToolchainOptions {
2
2
  homeDirectory?: string;
3
3
  runInstallCommand?: (command: string, args: string[], cwd: string) => Promise<void>;
4
+ runSkillInstallCommand?: (command: string, args: string[], cwd: string) => Promise<void>;
4
5
  onStatus?: (message: string) => void;
5
6
  forceReset?: boolean;
6
7
  }
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  initializeToolchain,
3
3
  runSweepi
4
- } from "./chunk-BWQN4NL3.js";
4
+ } from "./chunk-YVJTSHM6.js";
5
5
  export {
6
6
  initializeToolchain,
7
7
  runSweepi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sweepi",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "Run Sweepit lint rules without modifying project dependencies.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -33,5 +33,5 @@
33
33
  "typescript": "^5.9.2",
34
34
  "vitest": "^2.1.3"
35
35
  },
36
- "gitHead": "1d3f7a500a44c4caff15c44b5b0cd63df3e2f87a"
36
+ "gitHead": "b4d594138cbc4104c971696bcf5763c0063dc594"
37
37
  }