|
@@ -1,6 +1,5 @@
|
|
|
import { LayerNode } from "@opencode-ai/core/effect/layer-node"
|
|
import { LayerNode } from "@opencode-ai/core/effect/layer-node"
|
|
|
import path from "path"
|
|
import path from "path"
|
|
|
-import { pathToFileURL } from "url"
|
|
|
|
|
import { Effect, Layer, Context, Schema } from "effect"
|
|
import { Effect, Layer, Context, Schema } from "effect"
|
|
|
import { NamedError } from "@opencode-ai/core/util/error"
|
|
import { NamedError } from "@opencode-ai/core/util/error"
|
|
|
import type { Agent } from "@/agent/agent"
|
|
import type { Agent } from "@/agent/agent"
|
|
@@ -17,6 +16,7 @@ import { RuntimeFlags } from "@/effect/runtime-flags"
|
|
|
import { Glob } from "@opencode-ai/core/util/glob"
|
|
import { Glob } from "@opencode-ai/core/util/glob"
|
|
|
import { Discovery } from "./discovery"
|
|
import { Discovery } from "./discovery"
|
|
|
import { isRecord } from "@/util/record"
|
|
import { isRecord } from "@/util/record"
|
|
|
|
|
+import { escapeHtml } from "@/util/html"
|
|
|
|
|
|
|
|
const CLAUDE_EXTERNAL_DIR = ".claude"
|
|
const CLAUDE_EXTERNAL_DIR = ".claude"
|
|
|
const AGENTS_EXTERNAL_DIR = ".agents"
|
|
const AGENTS_EXTERNAL_DIR = ".agents"
|
|
@@ -339,7 +339,7 @@ export function fmt(list: Info[], opts: { verbose: boolean }) {
|
|
|
" <skill>",
|
|
" <skill>",
|
|
|
` <name>${skill.name}</name>`,
|
|
` <name>${skill.name}</name>`,
|
|
|
` <description>${skill.description}</description>`,
|
|
` <description>${skill.description}</description>`,
|
|
|
- ` <location>${pathToFileURL(skill.location).href}</location>`,
|
|
|
|
|
|
|
+ ` <location>${escapeHtml(skill.location)}</location>`,
|
|
|
" </skill>",
|
|
" </skill>",
|
|
|
]),
|
|
]),
|
|
|
"</available_skills>",
|
|
"</available_skills>",
|