@vovy-ai/go 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 Vovy
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.
@@ -0,0 +1 @@
1
+ #!/usr/bin/env node
package/dist/index.js ADDED
@@ -0,0 +1,266 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/index.ts
4
+ import { parseArgs } from "util";
5
+ import { ADAPTERS as ADAPTERS2 } from "@vovy-ai/host-detect";
6
+
7
+ // src/commands/doctor.ts
8
+ import { getAllSkills as getAllSkills2 } from "@vovy-ai/skills";
9
+
10
+ // src/commands/install.ts
11
+ import {
12
+ writeMcpConfig,
13
+ writeSkillFile
14
+ } from "@vovy-ai/host-detect";
15
+ import { getAllSkills } from "@vovy-ai/skills";
16
+
17
+ // src/targets.ts
18
+ import { ADAPTERS, getAdapter } from "@vovy-ai/host-detect";
19
+ function resolveTargets(env, hosts) {
20
+ if (hosts?.length) return hosts.map(getAdapter);
21
+ return ADAPTERS.filter((adapter) => adapter.detect(env));
22
+ }
23
+
24
+ // src/commands/install.ts
25
+ var VOVY_MCP_ENTRY = { id: "vovy", command: "npx", args: ["-y", "@vovy-ai/mcp-server"] };
26
+ function runInstall(opts) {
27
+ const scope = opts.scope ?? "user";
28
+ const targets = resolveTargets(opts.env, opts.hosts);
29
+ const skills = getAllSkills();
30
+ return targets.map((adapter) => {
31
+ const skillResults = skills.map((skill) => ({
32
+ skillId: skill.id,
33
+ ...writeSkillFile({
34
+ adapter,
35
+ env: opts.env,
36
+ scope,
37
+ skillId: skill.id,
38
+ content: skill.raw,
39
+ dryRun: opts.dryRun
40
+ })
41
+ }));
42
+ const mcpResult = writeMcpConfig({
43
+ adapter,
44
+ env: opts.env,
45
+ scope,
46
+ entry: VOVY_MCP_ENTRY,
47
+ dryRun: opts.dryRun
48
+ });
49
+ return { adapter, skillResults, mcpResult };
50
+ });
51
+ }
52
+
53
+ // src/commands/doctor.ts
54
+ function runDoctor(env, hosts, scope) {
55
+ const dryRunResults = runInstall({ env, hosts, scope, dryRun: true });
56
+ const totalSkillCount = getAllSkills2().length;
57
+ return dryRunResults.map(({ adapter, skillResults, mcpResult }) => {
58
+ const entries = skillResults.map((r) => ({
59
+ skillId: r.skillId,
60
+ path: r.path,
61
+ status: r.action === "unchanged" ? "ok" : r.action === "created" ? "missing" : "stale"
62
+ }));
63
+ const mcp = mcpResult ? {
64
+ path: mcpResult.path,
65
+ status: mcpResult.action === "unchanged" ? "ok" : "stale"
66
+ } : null;
67
+ return {
68
+ adapter,
69
+ entries,
70
+ mcp,
71
+ healthy: entries.length === totalSkillCount && entries.every((e) => e.status === "ok") && (mcp === null || mcp.status === "ok")
72
+ };
73
+ });
74
+ }
75
+
76
+ // src/commands/uninstall.ts
77
+ import { existsSync, readFileSync, rmSync, writeFileSync } from "fs";
78
+ import {
79
+ removeCodexMcpEntry,
80
+ removeJsonMcpEntry
81
+ } from "@vovy-ai/host-detect";
82
+ import { SKILL_MANIFEST } from "@vovy-ai/skills";
83
+ var VOVY_ID = "vovy";
84
+ function runUninstall(opts) {
85
+ const scope = opts.scope ?? "user";
86
+ const targets = resolveTargets(opts.env, opts.hosts);
87
+ const dryRun = opts.dryRun ?? false;
88
+ return targets.map((adapter) => {
89
+ const removedSkillPaths = [];
90
+ for (const skill of SKILL_MANIFEST) {
91
+ const path = adapter.skillFilePath(opts.env, scope, skill.id);
92
+ if (existsSync(path)) {
93
+ removedSkillPaths.push(path);
94
+ if (!dryRun) rmSync(path, { force: true });
95
+ }
96
+ }
97
+ let removedMcpEntry = null;
98
+ const mcpPath = adapter.mcpConfigPath(opts.env, scope);
99
+ if (mcpPath && existsSync(mcpPath)) {
100
+ const existing = readFileSync(mcpPath, "utf8");
101
+ const next = adapter.id === "codex" ? removeCodexMcpEntry(existing, VOVY_ID) : removeJsonMcpEntry(existing, VOVY_ID);
102
+ if (next !== null) {
103
+ removedMcpEntry = mcpPath;
104
+ if (!dryRun) writeFileSync(mcpPath, next, "utf8");
105
+ }
106
+ }
107
+ return { adapter, removedSkillPaths, removedMcpEntry };
108
+ });
109
+ }
110
+
111
+ // src/env.ts
112
+ import { homedir } from "os";
113
+ function realEnv() {
114
+ return { home: homedir(), cwd: process.cwd(), platform: process.platform };
115
+ }
116
+
117
+ // src/index.ts
118
+ var HELP = `Vovy \u2014 free, forever, drop-in skills for vibe coding safely. Run via \`npx @vovy-ai/go\` (or \`vovy\` if installed globally).
119
+
120
+ Usage:
121
+ npx @vovy-ai/go install [options] Write Vovy's skills into detected (or specified) host tools
122
+ npx @vovy-ai/go doctor [options] Check whether Vovy is correctly installed, without changing anything
123
+ npx @vovy-ai/go uninstall [options] Remove everything Vovy's installer wrote
124
+
125
+ Options:
126
+ --host <ids> Comma-separated host ids to target instead of auto-detecting.
127
+ Known hosts: ${ADAPTERS2.map((a) => a.id).join(", ")}
128
+ --scope <scope> "user" (default, applies everywhere) or "project" (this directory only)
129
+ --dry-run Show what would change without writing anything
130
+ --help Show this message
131
+
132
+ Vovy never runs its own AI model and never calls a Vovy-hosted server \u2014 it only writes
133
+ markdown skill files that your existing AI coding tool reads for free with the model you
134
+ already pay for. No account, no API key, no cost, ever.`;
135
+ function parseCommonFlags(argv) {
136
+ const { values } = parseArgs({
137
+ args: argv,
138
+ options: {
139
+ host: { type: "string" },
140
+ scope: { type: "string" },
141
+ "dry-run": { type: "boolean", default: false },
142
+ help: { type: "boolean", default: false }
143
+ },
144
+ allowPositionals: true
145
+ });
146
+ const scope = values.scope;
147
+ if (scope && scope !== "user" && scope !== "project") {
148
+ throw new Error(`Invalid --scope "${scope}" \u2014 expected "user" or "project".`);
149
+ }
150
+ return {
151
+ hosts: values.host ? values.host.split(",").map((h) => h.trim()) : void 0,
152
+ scope,
153
+ dryRun: Boolean(values["dry-run"]),
154
+ help: Boolean(values.help)
155
+ };
156
+ }
157
+ function actionSymbol(action) {
158
+ if (action === "unchanged") return "=";
159
+ if (action === "created") return "+";
160
+ return "~";
161
+ }
162
+ function cmdInstall(argv) {
163
+ const flags = parseCommonFlags(argv);
164
+ if (flags.help) return console.log(HELP);
165
+ const env = realEnv();
166
+ const reports = runInstall({ env, hosts: flags.hosts, scope: flags.scope, dryRun: flags.dryRun });
167
+ if (reports.length === 0) {
168
+ console.log(
169
+ `No supported host tools detected on this machine.
170
+ Use --host <${ADAPTERS2.map((a) => a.id).join("|")}> to install anyway.`
171
+ );
172
+ return;
173
+ }
174
+ const prefix = flags.dryRun ? "[dry-run] " : "";
175
+ for (const { adapter, skillResults, mcpResult } of reports) {
176
+ console.log(`
177
+ ${adapter.label}:`);
178
+ for (const r of skillResults) {
179
+ console.log(` ${prefix}${actionSymbol(r.action)} ${r.skillId} -> ${r.path} (${r.action})`);
180
+ }
181
+ if (mcpResult) {
182
+ console.log(
183
+ ` ${prefix}${actionSymbol(mcpResult.action)} mcp server -> ${mcpResult.path} (${mcpResult.action})`
184
+ );
185
+ }
186
+ }
187
+ console.log(
188
+ flags.dryRun ? "\nDry run only \u2014 nothing was written. Re-run without --dry-run to apply." : "\nDone. Vovy's skills are now available in your tool(s) above."
189
+ );
190
+ }
191
+ function cmdDoctor(argv) {
192
+ const flags = parseCommonFlags(argv);
193
+ if (flags.help) return console.log(HELP);
194
+ const env = realEnv();
195
+ const reports = runDoctor(env, flags.hosts, flags.scope);
196
+ if (reports.length === 0) {
197
+ console.log("No supported host tools detected on this machine \u2014 nothing to check.");
198
+ return;
199
+ }
200
+ let allHealthy = true;
201
+ for (const { adapter, entries, mcp, healthy } of reports) {
202
+ allHealthy &&= healthy;
203
+ console.log(`
204
+ ${adapter.label}: ${healthy ? "OK" : "needs `npx @vovy-ai/go install`"}`);
205
+ for (const e of entries) {
206
+ console.log(` [${e.status === "ok" ? "x" : " "}] ${e.skillId} (${e.status})`);
207
+ }
208
+ if (mcp) {
209
+ console.log(` [${mcp.status === "ok" ? "x" : " "}] mcp server (${mcp.status})`);
210
+ }
211
+ }
212
+ process.exitCode = allHealthy ? 0 : 1;
213
+ }
214
+ function cmdUninstall(argv) {
215
+ const flags = parseCommonFlags(argv);
216
+ if (flags.help) return console.log(HELP);
217
+ const env = realEnv();
218
+ const reports = runUninstall({
219
+ env,
220
+ hosts: flags.hosts,
221
+ scope: flags.scope,
222
+ dryRun: flags.dryRun
223
+ });
224
+ if (reports.length === 0) {
225
+ console.log("No supported host tools detected on this machine \u2014 nothing to remove.");
226
+ return;
227
+ }
228
+ const prefix = flags.dryRun ? "[dry-run] " : "";
229
+ for (const { adapter, removedSkillPaths, removedMcpEntry } of reports) {
230
+ console.log(`
231
+ ${adapter.label}:`);
232
+ if (removedSkillPaths.length === 0 && !removedMcpEntry) {
233
+ console.log(" nothing to remove");
234
+ continue;
235
+ }
236
+ for (const p of removedSkillPaths) console.log(` ${prefix}- removed ${p}`);
237
+ if (removedMcpEntry) console.log(` ${prefix}- removed vovy entry from ${removedMcpEntry}`);
238
+ }
239
+ console.log(flags.dryRun ? "\nDry run only \u2014 nothing was removed." : "\nDone.");
240
+ }
241
+ async function main() {
242
+ const [command, ...rest] = process.argv.slice(2);
243
+ switch (command) {
244
+ case "install":
245
+ return cmdInstall(rest);
246
+ case "doctor":
247
+ return cmdDoctor(rest);
248
+ case "uninstall":
249
+ return cmdUninstall(rest);
250
+ case "--help":
251
+ case "-h":
252
+ case void 0:
253
+ return console.log(HELP);
254
+ default:
255
+ console.error(`Unknown command "${command}".
256
+ `);
257
+ console.log(HELP);
258
+ process.exitCode = 1;
259
+ }
260
+ }
261
+ if (import.meta.url === `file://${process.argv[1]}`) {
262
+ main().catch((error) => {
263
+ console.error(`vovy: ${error instanceof Error ? error.message : String(error)}`);
264
+ process.exitCode = 1;
265
+ });
266
+ }
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@vovy-ai/go",
3
+ "version": "0.1.0",
4
+ "description": "Free, forever, drop-in MCP server + skill pack that teaches non-technical founders to vibe code safely. npx @vovy-ai/go install",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "bin": {
8
+ "vovy": "./dist/index.js"
9
+ },
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "dependencies": {
14
+ "@vovy-ai/host-detect": "0.1.0",
15
+ "@vovy-ai/skills": "0.1.0"
16
+ },
17
+ "devDependencies": {
18
+ "tsup": "^8.3.5",
19
+ "typescript": "^5.7.2",
20
+ "vitest": "^2.1.8"
21
+ },
22
+ "scripts": {
23
+ "build": "tsup src/index.ts --format esm --dts --clean",
24
+ "dev": "tsup src/index.ts --format esm --dts --watch",
25
+ "typecheck": "tsc --noEmit",
26
+ "test": "vitest run"
27
+ }
28
+ }