Compare commits

...
Sign in to create a new pull request.

2 commits

3 changed files with 250 additions and 252 deletions

View file

@ -1,4 +1,3 @@
export namespace BashArity {
export function prefix(tokens: string[]) { export function prefix(tokens: string[]) {
for (let len = tokens.length; len > 0; len--) { for (let len = tokens.length; len > 0; len--) {
const prefix = tokens.slice(0, len).join(" ") const prefix = tokens.slice(0, len).join(" ")
@ -160,4 +159,4 @@ This dictionary is used to identify the "human-understandable command" from an i
"yarn dlx": 3, // yarn dlx create-react-app "yarn dlx": 3, // yarn dlx create-react-app
"yarn run": 3, // yarn run dev "yarn run": 3, // yarn run dev
} }
} export * as BashArity from "./arity"

View file

@ -6,7 +6,6 @@ import { AppFileSystem } from "@opencode-ai/shared/filesystem"
import { Global } from "../global" import { Global } from "../global"
import { Log } from "../util" import { Log } from "../util"
export namespace Discovery {
const skillConcurrency = 4 const skillConcurrency = 4
const fileConcurrency = 8 const fileConcurrency = 8
@ -113,4 +112,4 @@ export namespace Discovery {
Layer.provide(AppFileSystem.defaultLayer), Layer.provide(AppFileSystem.defaultLayer),
Layer.provide(NodePath.layer), Layer.provide(NodePath.layer),
) )
} export * as Discovery from "./discovery"

View file

@ -15,7 +15,7 @@ import { Config } from "../config"
import { ConfigMarkdown } from "../config" import { ConfigMarkdown } from "../config"
import { Glob } from "@opencode-ai/shared/util/glob" import { Glob } from "@opencode-ai/shared/util/glob"
import { Log } from "../util" import { Log } from "../util"
import { Discovery } from "./discovery" import * as Discovery from "./discovery"
const log = Log.create({ service: "skill" }) const log = Log.create({ service: "skill" })
const EXTERNAL_DIRS = [".claude", ".agents"] const EXTERNAL_DIRS = [".claude", ".agents"]