@skild/core 0.4.5 → 0.4.7

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/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@ declare class SkildError extends Error {
5
5
  constructor(code: SkildErrorCode, message: string, details?: Record<string, unknown>);
6
6
  }
7
7
 
8
- declare const PLATFORMS: readonly ["claude", "codex", "copilot", "antigravity"];
8
+ declare const PLATFORMS: readonly ["claude", "codex", "copilot", "antigravity", "opencode"];
9
9
  type Platform = (typeof PLATFORMS)[number];
10
10
  type InstallScope = 'global' | 'project';
11
11
  type SourceType = 'local' | 'github-url' | 'degit-shorthand' | 'registry';
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ var SkildError = class extends Error {
10
10
  };
11
11
 
12
12
  // src/types.ts
13
- var PLATFORMS = ["claude", "codex", "copilot", "antigravity"];
13
+ var PLATFORMS = ["claude", "codex", "copilot", "antigravity", "opencode"];
14
14
 
15
15
  // src/storage.ts
16
16
  import fs2 from "fs";
@@ -45,6 +45,8 @@ function getSkillsDir(platform, scope) {
45
45
  return path.join(base, ".github", "skills");
46
46
  case "antigravity":
47
47
  return scope === "project" ? path.join(getProjectDir(), ".agent", "skills") : path.join(getHomeDir(), ".gemini", "antigravity", "skills");
48
+ case "opencode":
49
+ return scope === "project" ? path.join(getProjectDir(), ".opencode", "skill") : path.join(getHomeDir(), ".config", "opencode", "skill");
48
50
  }
49
51
  }
50
52
  function getProjectSkildDir() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skild/core",
3
- "version": "0.4.5",
3
+ "version": "0.4.7",
4
4
  "description": "Skild core library (headless) for installing, validating, and managing Agent Skills locally.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",