hacky-vscode 0.0.0-stage → 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,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Hacky contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,13 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
1
+ # hacky-vscode
2
+
3
+ Installs the Hacky extension into VS Code: the sidebar, board and map for your team's AI coding agents.
4
+
5
+ ```
6
+ npx -y hacky-vscode
7
+ ```
8
+
9
+ Then quit and reopen VS Code, open the Hacky icon in the activity bar, and sign in. Use `--editor=cursor` or `--editor=code-insiders` for those editors. It needs the editor's command line tool (`code`) on your PATH; VS Code's Command Palette has "Shell Command: Install 'code' command in PATH".
10
+
11
+ To update, run `npx -y hacky-vscode@latest` again.
12
+
13
+ Part of [Hacky](https://github.com/Puhita/Hacky). The agent tools come from [`hacky-mcp-server`](https://www.npmjs.com/package/hacky-mcp-server), which the extension sets up for you.
package/bin.js ADDED
@@ -0,0 +1,50 @@
1
+ #!/usr/bin/env node
2
+ // Installs the bundled Hacky extension into VS Code (or Cursor / VS Code Insiders).
3
+ import { spawnSync } from "node:child_process";
4
+ import { existsSync } from "node:fs";
5
+ import { dirname, join } from "node:path";
6
+ import { fileURLToPath } from "node:url";
7
+
8
+ const vsix = join(dirname(fileURLToPath(import.meta.url)), "hacky.vsix");
9
+ const EDITORS = ["code", "cursor", "code-insiders"];
10
+ // On Windows the editor commands are .cmd files, which need a shell to start.
11
+ const shell = process.platform === "win32";
12
+
13
+ const quote = (text) => (shell ? `"${text}"` : text);
14
+ const run = (editor, args) => spawnSync(editor, args.map(quote), { shell, encoding: "utf8" });
15
+ const available = (editor) => run(editor, ["--version"]).status === 0;
16
+
17
+ const wanted = process.argv[2]?.startsWith("--editor=") ? process.argv[2].slice("--editor=".length) : null;
18
+ if (process.argv.includes("--help") || process.argv.includes("-h")) {
19
+ console.log("Usage: npx -y hacky-vscode [--editor=code|cursor|code-insiders]");
20
+ process.exit(0);
21
+ }
22
+ if (wanted && !EDITORS.includes(wanted)) {
23
+ console.error(`Unknown editor "${wanted}". Use one of: ${EDITORS.join(", ")}.`);
24
+ process.exit(1);
25
+ }
26
+ if (!existsSync(vsix)) {
27
+ console.error("This package is missing its extension file. Reinstall it with: npx -y hacky-vscode@latest");
28
+ process.exit(1);
29
+ }
30
+
31
+ const editor = (wanted ? [wanted] : EDITORS).find(available);
32
+ if (!editor) {
33
+ console.error(
34
+ [
35
+ `Could not find ${wanted ?? "VS Code"}'s command line tool.`,
36
+ "In VS Code, open the Command Palette and run: Shell Command: Install 'code' command in PATH.",
37
+ `Or install the file by hand: Extensions view, "..." menu, Install from VSIX, then choose:`,
38
+ ` ${vsix}`,
39
+ ].join("\n"),
40
+ );
41
+ process.exit(1);
42
+ }
43
+
44
+ const result = run(editor, ["--install-extension", vsix, "--force"]);
45
+ if (result.status !== 0) {
46
+ console.error(result.stderr || result.stdout || "The install failed.");
47
+ process.exit(result.status ?? 1);
48
+ }
49
+ console.log(`Hacky is installed in ${editor}.`);
50
+ console.log("Quit and reopen the editor, then open the Hacky icon in the activity bar to sign in.");
package/hacky.vsix ADDED
Binary file
package/package.json CHANGED
@@ -1,6 +1,27 @@
1
- {
2
- "name": "hacky-vscode",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
1
+ {
2
+ "name": "hacky-vscode",
3
+ "version": "0.1.0",
4
+ "description": "Installs the Hacky extension (sidebar, board and map for your team's AI coding agents) into VS Code.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "bin": {
8
+ "hacky-vscode": "bin.js"
9
+ },
10
+ "files": [
11
+ "bin.js",
12
+ "hacky.vsix"
13
+ ],
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/Puhita/Hacky.git",
17
+ "directory": "packages/installer"
18
+ },
19
+ "homepage": "https://github.com/Puhita/Hacky#readme",
20
+ "keywords": ["hacky", "vscode", "claude code", "mcp", "installer"],
21
+ "engines": {
22
+ "node": ">=20"
23
+ },
24
+ "scripts": {
25
+ "prepack": "node prepack.mjs"
26
+ }
27
+ }