dsh-hiss-plugins 0.0.0-stage → 1.1.0
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/LICENSE +21 -0
- package/README.md +347 -2
- package/cordis.patch.yml +39 -0
- package/lib/client.js +380 -0
- package/lib/codegraph/index.js +62 -0
- package/lib/colgrep/index.js +196 -0
- package/lib/gitbash/gitbash-executor.js +150 -0
- package/lib/gitbash/index.js +49 -0
- package/lib/gitbash/resolve.js +98 -0
- package/lib/index.js +13 -0
- package/lib/ponytail/index.js +125 -0
- package/lib/ponytail/mode.js +113 -0
- package/lib/project-mcp/config.js +158 -0
- package/lib/project-mcp/index.js +85 -0
- package/lib/superpowers/index.js +59 -0
- package/locale/en.json +24 -0
- package/locale/zh.json +24 -0
- package/package.json +85 -5
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { access, readFile } from "node:fs/promises";
|
|
2
|
+
import { dirname, join, resolve } from "node:path";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Whether a path exists, without caring why it does not.
|
|
6
|
+
* @param {string} path - absolute path to test.
|
|
7
|
+
* @returns {Promise<boolean>} true when the path is readable.
|
|
8
|
+
*/
|
|
9
|
+
async function exists(path) {
|
|
10
|
+
try {
|
|
11
|
+
await access(path);
|
|
12
|
+
return true;
|
|
13
|
+
} catch {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Locate the `.mcp.json` governing a session directory: the file in `cwd`
|
|
20
|
+
* itself, else the nearest ancestor's. The walk stops at the first directory
|
|
21
|
+
* holding `.git` — the project root — so a session inside a repository never
|
|
22
|
+
* inherits a parent repository's servers. A path with no `.git` anywhere walks
|
|
23
|
+
* to the filesystem root.
|
|
24
|
+
*
|
|
25
|
+
* @param {string} cwd - the session's absolute working directory.
|
|
26
|
+
* @returns {Promise<string | undefined>} absolute config path, or undefined.
|
|
27
|
+
*/
|
|
28
|
+
export async function findConfigPath(cwd) {
|
|
29
|
+
let current = resolve(cwd);
|
|
30
|
+
for (;;) {
|
|
31
|
+
const candidate = join(current, ".mcp.json");
|
|
32
|
+
if (await exists(candidate)) return candidate;
|
|
33
|
+
if (await exists(join(current, ".git"))) return undefined;
|
|
34
|
+
const parent = dirname(current);
|
|
35
|
+
if (parent === current) return undefined;
|
|
36
|
+
current = parent;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** `${VAR}` with an optional `:-default`, as Claude Code writes them. */
|
|
41
|
+
const VARIABLE = /\$\{([A-Za-z_][A-Za-z0-9_]*)(?::-([^}]*))?\}/g;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Interpolate `${VAR}` / `${VAR:-default}` in a string. An unset variable with
|
|
45
|
+
* no default becomes the empty string, matching shell defaults closely enough
|
|
46
|
+
* that a missing token fails visibly at the server rather than silently
|
|
47
|
+
* launching with a literal `${TOKEN}`.
|
|
48
|
+
*
|
|
49
|
+
* @param {string} value - raw string from the config file.
|
|
50
|
+
* @returns {string} the interpolated string.
|
|
51
|
+
*/
|
|
52
|
+
export function expand(value) {
|
|
53
|
+
return value.replace(VARIABLE, (_match, name, fallback) => process.env[name] ?? fallback ?? "");
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** Expand every string in a nested value; non-strings pass through. */
|
|
57
|
+
function expandDeep(value) {
|
|
58
|
+
if (typeof value === "string") return expand(value);
|
|
59
|
+
if (Array.isArray(value)) return value.map(expandDeep);
|
|
60
|
+
if (value !== null && typeof value === "object") {
|
|
61
|
+
return Object.fromEntries(Object.entries(value).map(([key, entry]) => [key, expandDeep(entry)]));
|
|
62
|
+
}
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/** True for a plain object, so arrays and null are rejected as records. */
|
|
67
|
+
function isRecord(value) {
|
|
68
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** Every value a string, or undefined when the record is absent. */
|
|
72
|
+
function stringRecord(value, field, serverName) {
|
|
73
|
+
if (value === undefined) return undefined;
|
|
74
|
+
if (!isRecord(value)) throw new Error(`"${serverName}": ${field} must be an object`);
|
|
75
|
+
for (const [key, entry] of Object.entries(value)) {
|
|
76
|
+
if (typeof entry !== "string") throw new Error(`"${serverName}": ${field}.${key} must be a string`);
|
|
77
|
+
}
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Turn one `mcpServers` entry into the config the host MCP client accepts.
|
|
83
|
+
* Throws for anything the client could not use, so the caller can report the
|
|
84
|
+
* server by name and carry on with its siblings.
|
|
85
|
+
*
|
|
86
|
+
* @param {string} serverName - the entry's key, which becomes the tool namespace.
|
|
87
|
+
* @param {unknown} entry - the raw entry value.
|
|
88
|
+
* @param {string} projectDir - directory holding `.mcp.json`, the stdio default cwd.
|
|
89
|
+
* @returns {Record<string, unknown>} an unvalidated `dsh-mcp-client` config.
|
|
90
|
+
*/
|
|
91
|
+
function toSpec(serverName, entry, projectDir) {
|
|
92
|
+
if (!isRecord(entry)) throw new Error(`"${serverName}": entry must be an object`);
|
|
93
|
+
const type = entry.type ?? "stdio";
|
|
94
|
+
if (type === "http") {
|
|
95
|
+
if (typeof entry.url !== "string" || entry.url === "") throw new Error(`"${serverName}": url must be a non-empty string`);
|
|
96
|
+
const headers = stringRecord(entry.headers, "headers", serverName);
|
|
97
|
+
return {
|
|
98
|
+
transport: "streamable-http",
|
|
99
|
+
serverName,
|
|
100
|
+
url: entry.url,
|
|
101
|
+
...(headers === undefined ? {} : { headers }),
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
if (type !== "stdio") throw new Error(`"${serverName}": unsupported transport "${String(type)}"`);
|
|
105
|
+
if (typeof entry.command !== "string" || entry.command === "") {
|
|
106
|
+
throw new Error(`"${serverName}": command must be a non-empty string`);
|
|
107
|
+
}
|
|
108
|
+
const args = entry.args ?? [];
|
|
109
|
+
if (!Array.isArray(args) || args.some((arg) => typeof arg !== "string")) {
|
|
110
|
+
throw new Error(`"${serverName}": args must be an array of strings`);
|
|
111
|
+
}
|
|
112
|
+
const env = stringRecord(entry.env, "env", serverName);
|
|
113
|
+
if (entry.cwd !== undefined && typeof entry.cwd !== "string") throw new Error(`"${serverName}": cwd must be a string`);
|
|
114
|
+
return {
|
|
115
|
+
transport: "stdio",
|
|
116
|
+
serverName,
|
|
117
|
+
command: entry.command,
|
|
118
|
+
args,
|
|
119
|
+
...(env === undefined ? {} : { env }),
|
|
120
|
+
cwd: resolve(projectDir, entry.cwd ?? "."),
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Read one `.mcp.json` and describe every server in it. The file is untrusted
|
|
126
|
+
* project content, so a malformed entry is reported by name rather than
|
|
127
|
+
* dropped: a silently missing tool is indistinguishable from a broken one.
|
|
128
|
+
*
|
|
129
|
+
* @param {string} configPath - absolute path to the `.mcp.json`.
|
|
130
|
+
* @param {string} cwd - the session directory the config was found for.
|
|
131
|
+
* @returns {Promise<{ servers: { serverName: string, spec: Record<string, unknown> }[], skipped: { serverName: string, reason: string }[] }>}
|
|
132
|
+
* the servers to mount, and the entries that could not be used.
|
|
133
|
+
* @throws when the file is unreadable, is not JSON, or has a malformed `mcpServers`.
|
|
134
|
+
*/
|
|
135
|
+
export async function loadServers(configPath, cwd) {
|
|
136
|
+
const raw = await readFile(configPath, "utf8");
|
|
137
|
+
let parsed;
|
|
138
|
+
try {
|
|
139
|
+
parsed = JSON.parse(raw);
|
|
140
|
+
} catch (error) {
|
|
141
|
+
throw new Error(`${configPath} is not valid JSON: ${error instanceof Error ? error.message : String(error)}`);
|
|
142
|
+
}
|
|
143
|
+
if (!isRecord(parsed)) throw new Error(`${configPath} must contain a JSON object`);
|
|
144
|
+
const declared = parsed.mcpServers;
|
|
145
|
+
if (declared === undefined) return { servers: [], skipped: [] };
|
|
146
|
+
if (!isRecord(declared)) throw new Error(`${configPath}: mcpServers must be an object`);
|
|
147
|
+
const projectDir = dirname(resolve(configPath));
|
|
148
|
+
const servers = [];
|
|
149
|
+
const skipped = [];
|
|
150
|
+
for (const [serverName, entry] of Object.entries(declared)) {
|
|
151
|
+
try {
|
|
152
|
+
servers.push({ serverName, spec: toSpec(serverName, expandDeep(entry), projectDir) });
|
|
153
|
+
} catch (error) {
|
|
154
|
+
skipped.push({ serverName, reason: error instanceof Error ? error.message : String(error) });
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
return { servers, skipped };
|
|
158
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import * as McpClient from "@deepseek-ai/dsh-mcp-client";
|
|
2
|
+
import { findConfigPath, loadServers } from "./config.js";
|
|
3
|
+
|
|
4
|
+
export const name = "project-mcp";
|
|
5
|
+
export const inject = ["agents"];
|
|
6
|
+
|
|
7
|
+
/** Readable text for anything a rejected promise or a schema can throw. */
|
|
8
|
+
function message(error) {
|
|
9
|
+
return error instanceof Error ? error.message : String(error);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Mount every server declared by the session project's `.mcp.json` into one
|
|
14
|
+
* agent's own scope. `agent.ctx` is the agent's scoped context, so the mount
|
|
15
|
+
* lives and dies with the agent: two sessions in different projects never
|
|
16
|
+
* collide on a server name, and a subagent created under this agent inherits
|
|
17
|
+
* the same tools without mounting anything itself.
|
|
18
|
+
*
|
|
19
|
+
* Every failure is reported and skipped. `.mcp.json` is untrusted project
|
|
20
|
+
* content, and a bad entry must cost its own server at most — never the
|
|
21
|
+
* session, which is why nothing here rejects.
|
|
22
|
+
*
|
|
23
|
+
* @param {import("@deepseek-ai/cordis").Context} ctx - host context, for logging.
|
|
24
|
+
* @param {{ session?: { header?: { cwd?: string } }, ctx?: unknown }} agent - the live agent.
|
|
25
|
+
* @returns {Promise<number>} how many servers were mounted.
|
|
26
|
+
*/
|
|
27
|
+
export async function mountProjectMcp(ctx, agent) {
|
|
28
|
+
const cwd = agent?.session?.header?.cwd;
|
|
29
|
+
if (typeof cwd !== "string" || cwd === "") return 0;
|
|
30
|
+
const configPath = await findConfigPath(cwd);
|
|
31
|
+
if (configPath === undefined) return 0;
|
|
32
|
+
|
|
33
|
+
let loaded;
|
|
34
|
+
try {
|
|
35
|
+
loaded = await loadServers(configPath, cwd);
|
|
36
|
+
} catch (error) {
|
|
37
|
+
ctx.logger.warn(`project-mcp: ${message(error)}`);
|
|
38
|
+
return 0;
|
|
39
|
+
}
|
|
40
|
+
for (const { serverName, reason } of loaded.skipped) {
|
|
41
|
+
ctx.logger.warn(`project-mcp: ${configPath}: "${serverName}" was skipped: ${reason}`);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
let mounted = 0;
|
|
45
|
+
for (const { serverName, spec } of loaded.servers) {
|
|
46
|
+
let config;
|
|
47
|
+
try {
|
|
48
|
+
// The bridge's own schema is the gate: it decides what a server may
|
|
49
|
+
// ask the host process to do, and it rejects a name that would make
|
|
50
|
+
// an unusable tool namespace.
|
|
51
|
+
config = McpClient.Config(spec);
|
|
52
|
+
} catch (error) {
|
|
53
|
+
ctx.logger.warn(`project-mcp: ${configPath}: "${serverName}" is not a usable MCP server: ${message(error)}`);
|
|
54
|
+
continue;
|
|
55
|
+
}
|
|
56
|
+
try {
|
|
57
|
+
await agent.ctx.plugin(McpClient, config);
|
|
58
|
+
mounted += 1;
|
|
59
|
+
} catch (error) {
|
|
60
|
+
ctx.logger.warn(`project-mcp: ${configPath}: "${serverName}" failed to start: ${message(error)}`);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return mounted;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Mount the project's servers for every agent whose session directory declares
|
|
68
|
+
* them. The registration is awaited by the agent registry before creation
|
|
69
|
+
* completes, so a session's first turn already sees its MCP tools.
|
|
70
|
+
*
|
|
71
|
+
* @param {import("@deepseek-ai/cordis").Context} ctx - the host context.
|
|
72
|
+
*/
|
|
73
|
+
export function apply(ctx) {
|
|
74
|
+
const wire = async (agent) => {
|
|
75
|
+
try {
|
|
76
|
+
const mounted = await mountProjectMcp(ctx, agent);
|
|
77
|
+
if (mounted > 0) ctx.logger.info(`project-mcp: mounted ${mounted} server(s) for ${agent.id}`);
|
|
78
|
+
} catch (error) {
|
|
79
|
+
ctx.logger.warn(`project-mcp: mounting failed for ${String(agent?.id)}: ${message(error)}`);
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
ctx.on("agent/created", ({ agent }) => wire(agent));
|
|
83
|
+
// A reload mid-session must reach agents that are already live.
|
|
84
|
+
for (const agent of ctx.agents.list()) void wire(agent);
|
|
85
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The superpowers adoption layer: one always-on system-prompt section.
|
|
3
|
+
*
|
|
4
|
+
* This restores the half of the deleted `@hilariouhiss/dsh-superpowers` plugin that
|
|
5
|
+
* DSH cannot supply natively. The skills themselves are ordinary skills discovered
|
|
6
|
+
* from a scanned root (`~/.agents/skills` by default), so this row vendors nothing
|
|
7
|
+
* and registers no skill provider. What is missing without it is the *mandate*:
|
|
8
|
+
* upstream delivers "check for an applicable skill before you answer" through a
|
|
9
|
+
* SessionStart hook, and a harness that does not read plugin hook files — DSH does
|
|
10
|
+
* not — has no other way to keep that instruction in front of the model.
|
|
11
|
+
*
|
|
12
|
+
* The section re-assembles every turn, so the mandate survives compaction, while
|
|
13
|
+
* the full instructions stay in the `using-superpowers` skill and load on demand.
|
|
14
|
+
*
|
|
15
|
+
* @module dsh-hiss-plugins/superpowers
|
|
16
|
+
*/
|
|
17
|
+
export const name = "superpowers";
|
|
18
|
+
export const inject = ["systemPrompt"];
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The prior plugin's mandate, verbatim, plus the two facts that changed when the
|
|
22
|
+
* skills moved out of the plugin: DSH addresses skills by their bare name, and the
|
|
23
|
+
* section has to stay honest when the collection is not installed after all.
|
|
24
|
+
*/
|
|
25
|
+
const MANDATE = [
|
|
26
|
+
"Before ANY response or action, check whether a superpowers skill applies and, if so, invoke it with the `skill` tool first.",
|
|
27
|
+
"Process skills (brainstorming, systematic-debugging) come before implementation skills.",
|
|
28
|
+
"Load the current SKILL.md via the `skill` tool; never follow a skill from memory alone.",
|
|
29
|
+
].join(" ");
|
|
30
|
+
|
|
31
|
+
/** The complete section text. Exported so the text itself is testable. */
|
|
32
|
+
export const BOOTSTRAP = [
|
|
33
|
+
"<EXTREMELY_IMPORTANT>",
|
|
34
|
+
"You have superpowers.",
|
|
35
|
+
"",
|
|
36
|
+
MANDATE,
|
|
37
|
+
"",
|
|
38
|
+
"Superpowers skills are ordinary DSH skills: address them by their bare kebab-case name (`brainstorming`, `writing-plans`, `test-driven-development`, `verification-before-completion`), not the upstream `superpowers:<name>` form.",
|
|
39
|
+
"If the skill catalog lists no superpowers skills, ignore this section — the collection is not installed.",
|
|
40
|
+
"For the full instructions, load the `using-superpowers` skill with the `skill` tool.",
|
|
41
|
+
"</EXTREMELY_IMPORTANT>",
|
|
42
|
+
].join("\n");
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Register the global adoption section.
|
|
46
|
+
*
|
|
47
|
+
* `order: 5` places it after the deployment persona prefix (order 0) and before
|
|
48
|
+
* every policy and tool section (`PLAN_POLICY` is 500): an instruction to check for
|
|
49
|
+
* a skill before doing anything else is only useful ahead of the rest.
|
|
50
|
+
*
|
|
51
|
+
* @param {import("@deepseek-ai/cordis").Context} ctx - host context carrying `systemPrompt`.
|
|
52
|
+
*/
|
|
53
|
+
export function apply(ctx) {
|
|
54
|
+
ctx.systemPrompt.section({
|
|
55
|
+
name: "superpowers:adoption",
|
|
56
|
+
order: 5,
|
|
57
|
+
text: BOOTSTRAP,
|
|
58
|
+
});
|
|
59
|
+
}
|
package/locale/en.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "dsh-hiss-plugins",
|
|
4
|
+
"description": "One DeepSeek Harness bundle carrying six switchable plugins — colgrep, codegraph, project-mcp, git-bash, superpowers and ponytail — managed from a tab in the Plugins page."
|
|
5
|
+
},
|
|
6
|
+
"loading": "Reading plugins…",
|
|
7
|
+
"error": "Plugins are unavailable: {error}",
|
|
8
|
+
"retry": "Retry",
|
|
9
|
+
"empty": "This bundle declares no plugin rows.",
|
|
10
|
+
"enabledTag": "Enabled",
|
|
11
|
+
"disabledTag": "Disabled",
|
|
12
|
+
"toggleAria": "Toggle {name}",
|
|
13
|
+
"toggleFailed": "Switching {name} failed: {error}",
|
|
14
|
+
"restartRequired": "The change to {name} takes effect after DSH restarts.",
|
|
15
|
+
"reasonManagementRequired": "DSH manages this plugin itself, so it cannot be switched from this page.",
|
|
16
|
+
"reasonUnaddressable": "This plugin's row cannot be addressed in the profile; edit cordis.patch.yml by hand.",
|
|
17
|
+
"reasonUnknown": "This plugin cannot be switched from this page ({code}).",
|
|
18
|
+
"featureColgrepDescription": "semantic code search tool",
|
|
19
|
+
"featureCodegraphDescription": "CodeGraph MCP tools",
|
|
20
|
+
"featureProjectMcpDescription": "mounts the project's .mcp.json per session",
|
|
21
|
+
"featureGitbashDescription": "Git Bash shell on Windows",
|
|
22
|
+
"featureSuperpowersDescription": "always-on superpowers skill mandate",
|
|
23
|
+
"featurePonytailDescription": "ponytail adoption hint and /ponytail level switching"
|
|
24
|
+
}
|
package/locale/zh.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "dsh-hiss-plugins",
|
|
4
|
+
"description": "一个 DeepSeek Harness 组合包,携带 colgrep、codegraph、project-mcp、git-bash、superpowers、ponytail 六个可独立开关的插件,并在插件页提供管理标签。"
|
|
5
|
+
},
|
|
6
|
+
"loading": "正在读取插件…",
|
|
7
|
+
"error": "暂时无法读取插件:{error}",
|
|
8
|
+
"retry": "重试",
|
|
9
|
+
"empty": "本包没有声明任何插件行。",
|
|
10
|
+
"enabledTag": "已启用",
|
|
11
|
+
"disabledTag": "已停用",
|
|
12
|
+
"toggleAria": "切换 {name}",
|
|
13
|
+
"toggleFailed": "切换 {name} 失败:{error}",
|
|
14
|
+
"restartRequired": "{name} 的改动将在重启 DSH 后生效。",
|
|
15
|
+
"reasonManagementRequired": "该插件由 DSH 自身管理,无法在这个页面切换。",
|
|
16
|
+
"reasonUnaddressable": "无法在 profile 中定位该插件的行,请手动修改 cordis.patch.yml。",
|
|
17
|
+
"reasonUnknown": "该插件无法在这个页面切换({code})。",
|
|
18
|
+
"featureColgrepDescription": "语义代码检索工具",
|
|
19
|
+
"featureCodegraphDescription": "代码图 MCP 工具",
|
|
20
|
+
"featureProjectMcpDescription": "按会话挂载项目 .mcp.json",
|
|
21
|
+
"featureGitbashDescription": "Windows 上的 Git Bash shell",
|
|
22
|
+
"featureSuperpowersDescription": "superpowers 技能常驻引导(任何回复前先检查并加载技能)",
|
|
23
|
+
"featurePonytailDescription": "ponytail 采纳提示与 /ponytail 等级切换"
|
|
24
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,86 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"name": "dsh-hiss-plugins",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "dsh-hiss-plugins — one DeepSeek Harness bundle carrying six independently switchable plugins (colgrep, codegraph, project-mcp, git-bash, superpowers, ponytail) plus a management tab in the Plugins page.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"dsh",
|
|
7
|
+
"deepseek-harness",
|
|
8
|
+
"dsh-plugin",
|
|
9
|
+
"colgrep",
|
|
10
|
+
"codegraph",
|
|
11
|
+
"mcp",
|
|
12
|
+
"git-bash",
|
|
13
|
+
"semantic-search",
|
|
14
|
+
"superpowers",
|
|
15
|
+
"ponytail"
|
|
16
|
+
],
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"author": {
|
|
19
|
+
"name": "dsh-hiss-plugins contributors"
|
|
20
|
+
},
|
|
21
|
+
"homepage": "https://github.com/hilariouhiss/dsh-hiss-plugins/tree/main/dsh-hiss-plugins",
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/hilariouhiss/dsh-hiss-plugins.git",
|
|
25
|
+
"directory": "dsh-hiss-plugins"
|
|
26
|
+
},
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"registry": "https://registry.npmjs.org"
|
|
29
|
+
},
|
|
30
|
+
"type": "module",
|
|
31
|
+
"main": "./lib/index.js",
|
|
32
|
+
"exports": {
|
|
33
|
+
".": "./lib/index.js",
|
|
34
|
+
"./colgrep": "./lib/colgrep/index.js",
|
|
35
|
+
"./codegraph": "./lib/codegraph/index.js",
|
|
36
|
+
"./project-mcp": "./lib/project-mcp/index.js",
|
|
37
|
+
"./gitbash": "./lib/gitbash/index.js",
|
|
38
|
+
"./superpowers": "./lib/superpowers/index.js",
|
|
39
|
+
"./ponytail": "./lib/ponytail/index.js",
|
|
40
|
+
"./client": "./lib/client.js",
|
|
41
|
+
"./locale/*.json": "./locale/*.json",
|
|
42
|
+
"./package.json": "./package.json"
|
|
43
|
+
},
|
|
44
|
+
"files": [
|
|
45
|
+
"lib/",
|
|
46
|
+
"locale/",
|
|
47
|
+
"cordis.patch.yml",
|
|
48
|
+
"README.md",
|
|
49
|
+
"LICENSE"
|
|
50
|
+
],
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"@deepseek-ai/dsh-bash-sandbox": "^0.2.1-alpha.4",
|
|
53
|
+
"@deepseek-ai/dsh-llm": "^0.2.1-alpha.4",
|
|
54
|
+
"@deepseek-ai/dsh-mcp-client": "^0.2.1-alpha.4",
|
|
55
|
+
"@deepseek-ai/dsh-skill": "^0.2.1-alpha.4",
|
|
56
|
+
"@deepseek-ai/dsh-tool-bash": "^0.2.1-alpha.4",
|
|
57
|
+
"@deepseek-ai/dsh-tools": "^0.2.1-alpha.4"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@deepseek-ai/dsh-bash-sandbox": "0.2.1-alpha.4",
|
|
61
|
+
"@deepseek-ai/dsh-llm": "0.2.1-alpha.4",
|
|
62
|
+
"@deepseek-ai/dsh-mcp-client": "0.2.1-alpha.4",
|
|
63
|
+
"@deepseek-ai/dsh-skill": "0.2.1-alpha.4",
|
|
64
|
+
"@deepseek-ai/dsh-tool-bash": "0.2.1-alpha.4",
|
|
65
|
+
"@deepseek-ai/dsh-tools": "0.2.1-alpha.4"
|
|
66
|
+
},
|
|
67
|
+
"dsh": {
|
|
68
|
+
"bundle": {
|
|
69
|
+
"patch": "./cordis.patch.yml"
|
|
70
|
+
},
|
|
71
|
+
"client": {
|
|
72
|
+
"platform": "web",
|
|
73
|
+
"inject": [
|
|
74
|
+
"@deepseek-ai/dsh-api-remotes",
|
|
75
|
+
"@deepseek-ai/dsh-client-modules"
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"scripts": {
|
|
80
|
+
"test": "node --test",
|
|
81
|
+
"prepublishOnly": "npm test"
|
|
82
|
+
},
|
|
83
|
+
"engines": {
|
|
84
|
+
"node": ">=20"
|
|
85
|
+
}
|
|
86
|
+
}
|