@sveltejs/opencode 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/index.ts +4 -2
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -13,7 +13,9 @@ export const svelte_plugin: Plugin = async (ctx) => {
13
13
  input.mcp ??= {};
14
14
  input.instructions ??= [];
15
15
  // @ts-expect-error -- types are wrong in the opencode package...will fix there and remove this
16
- input.skills ??= [];
16
+ input.skills ??= {};
17
+ // @ts-expect-error -- types are wrong in the opencode package...will fix there and remove this
18
+ input.skills.paths ??= [];
17
19
  // by default we use svelte as the name for the svelte MCP server
18
20
  let svelte_mcp_name = 'svelte';
19
21
  // we loop over every mcp server to see if any of them is already the svelte MCP server
@@ -40,7 +42,7 @@ export const svelte_plugin: Plugin = async (ctx) => {
40
42
  if (mcp_config.skills?.enabled !== false) {
41
43
  const skills_dir = join(current_dir, 'skills');
42
44
  // @ts-expect-error -- skills is a new opencode feature
43
- input.skills.push(skills_dir);
45
+ input.skills.paths.push(skills_dir);
44
46
  }
45
47
 
46
48
  // if the user doesn't have the MCP server already we add one based on config
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/opencode",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/sveltejs/mcp#readme",