opencode-skills-antigravity 0.0.5 → 0.0.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.
- package/README.md +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ const AntigravityAutoUpdater = async (_ctx) => {
|
|
|
9
9
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
10
10
|
const bundledSkillsPath = path.join(__dirname, "..", "bundled-skills");
|
|
11
11
|
// Resolve target path in OpenCode's config directory
|
|
12
|
-
const skillsPath = path.join(os.homedir(), ".config", "opencode", "
|
|
12
|
+
const skillsPath = path.join(os.homedir(), ".config", "opencode", "skills");
|
|
13
13
|
// Create destination directory and copy files
|
|
14
14
|
fs.mkdirSync(skillsPath, { recursive: true });
|
|
15
15
|
fs.cpSync(bundledSkillsPath, skillsPath, { recursive: true, force: true });
|
|
@@ -20,7 +20,7 @@ const AntigravityAutoUpdater = async (_ctx) => {
|
|
|
20
20
|
const { exec } = await import("child_process");
|
|
21
21
|
const util = await import("util");
|
|
22
22
|
const execAsync = util.promisify(exec);
|
|
23
|
-
const fallbackPath = path.join(os.homedir(), ".config", "opencode", "
|
|
23
|
+
const fallbackPath = path.join(os.homedir(), ".config", "opencode", "skills");
|
|
24
24
|
await execAsync(`npx --yes antigravity-awesome-skills --path "${fallbackPath}"`);
|
|
25
25
|
}
|
|
26
26
|
catch (e) {
|
package/package.json
CHANGED