nomoreide 0.1.95 → 0.1.97
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/cli/profile.js +12 -8
- package/dist/cli/profile.js.map +1 -1
- package/dist/core/agent-env/claude-reader.js +12 -4
- package/dist/core/agent-env/claude-reader.js.map +1 -1
- package/dist/core/agent-env/codex-reader.js +5 -4
- package/dist/core/agent-env/codex-reader.js.map +1 -1
- package/dist/core/agent-env/managed-plugins.d.ts +5 -0
- package/dist/core/agent-env/managed-plugins.js +43 -11
- package/dist/core/agent-env/managed-plugins.js.map +1 -1
- package/dist/core/agent-env-plugin-uninstall.js +36 -19
- package/dist/core/agent-env-plugin-uninstall.js.map +1 -1
- package/dist/core/agent-profiles/apply.d.ts +6 -1
- package/dist/core/agent-profiles/apply.js +37 -1
- package/dist/core/agent-profiles/apply.js.map +1 -1
- package/dist/core/agent-profiles/index.d.ts +3 -2
- package/dist/core/agent-profiles/index.js +3 -2
- package/dist/core/agent-profiles/index.js.map +1 -1
- package/dist/core/agent-profiles/plugin-apply.d.ts +16 -0
- package/dist/core/agent-profiles/plugin-apply.js +383 -0
- package/dist/core/agent-profiles/plugin-apply.js.map +1 -0
- package/dist/core/agent-profiles/plugin-bundle.d.ts +6 -0
- package/dist/core/agent-profiles/plugin-bundle.js +32 -0
- package/dist/core/agent-profiles/plugin-bundle.js.map +1 -0
- package/dist/core/agent-profiles/registry-transfer.js +6 -1
- package/dist/core/agent-profiles/registry-transfer.js.map +1 -1
- package/dist/core/agent-profiles/store.d.ts +3 -1
- package/dist/core/agent-profiles/store.js +92 -5
- package/dist/core/agent-profiles/store.js.map +1 -1
- package/dist/core/agent-profiles/transfer.d.ts +1 -0
- package/dist/core/agent-profiles/transfer.js +183 -5
- package/dist/core/agent-profiles/transfer.js.map +1 -1
- package/dist/core/agent-profiles/types.d.ts +105 -3
- package/dist/core/agent-profiles/types.js +15 -1
- package/dist/core/agent-profiles/types.js.map +1 -1
- package/dist/core/agent-sessions.d.ts +1 -1
- package/dist/core/agent-sessions.js +5 -0
- package/dist/core/agent-sessions.js.map +1 -1
- package/dist/core/agent-transcripts.d.ts +6 -4
- package/dist/core/agent-transcripts.js +20 -12
- package/dist/core/agent-transcripts.js.map +1 -1
- package/dist/core/config-store.d.ts +1 -0
- package/dist/core/config-store.js +24 -1
- package/dist/core/config-store.js.map +1 -1
- package/dist/core/docker-stats.d.ts +2 -0
- package/dist/core/docker-stats.js +24 -0
- package/dist/core/docker-stats.js.map +1 -1
- package/dist/core/git-worktrees.d.ts +34 -0
- package/dist/core/git-worktrees.js +132 -0
- package/dist/core/git-worktrees.js.map +1 -0
- package/dist/core/metrics-store.d.ts +11 -1
- package/dist/core/metrics-store.js +63 -5
- package/dist/core/metrics-store.js.map +1 -1
- package/dist/core/one-time-skills.d.ts +27 -0
- package/dist/core/one-time-skills.js +185 -0
- package/dist/core/one-time-skills.js.map +1 -0
- package/dist/core/system-processes.d.ts +29 -0
- package/dist/core/system-processes.js +119 -0
- package/dist/core/system-processes.js.map +1 -0
- package/dist/core/types.d.ts +3 -0
- package/dist/mcp/tools/agent-profiles.js +42 -10
- package/dist/mcp/tools/agent-profiles.js.map +1 -1
- package/dist/mcp/tools/git.d.ts +1 -1
- package/dist/mcp/tools/git.js +45 -0
- package/dist/mcp/tools/git.js.map +1 -1
- package/dist/mcp/tools/index.d.ts +1 -1
- package/dist/web/client/assets/{code-editor-Bx0wTXnf.js → code-editor-Bv3tCQrj.js} +1 -1
- package/dist/web/client/assets/index-BeJHDwLO.css +1 -0
- package/dist/web/client/assets/index-zb3rhV5y.js +308 -0
- package/dist/web/client/assets/system-process-table-q3WxburN.js +1 -0
- package/dist/web/client/index.html +2 -2
- package/dist/web/dashboard.js +11 -2
- package/dist/web/dashboard.js.map +1 -1
- package/dist/web/routes/agent-profile-routes.js +2 -1
- package/dist/web/routes/agent-profile-routes.js.map +1 -1
- package/dist/web/routes/git-routes.js +127 -4
- package/dist/web/routes/git-routes.js.map +1 -1
- package/dist/web/routes/index.js +2 -0
- package/dist/web/routes/index.js.map +1 -1
- package/dist/web/routes/metrics-routes.js +30 -4
- package/dist/web/routes/metrics-routes.js.map +1 -1
- package/dist/web/routes/skills-routes.d.ts +2 -0
- package/dist/web/routes/skills-routes.js +49 -0
- package/dist/web/routes/skills-routes.js.map +1 -0
- package/dist/web/routes/terminal-routes.js +33 -5
- package/dist/web/routes/terminal-routes.js.map +1 -1
- package/package.json +2 -1
- package/dist/web/client/assets/index-4ajqnD37.css +0 -1
- package/dist/web/client/assets/index-CpWMLRYx.js +0 -242
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { execFile } from "node:child_process";
|
|
2
|
+
import { promisify } from "node:util";
|
|
3
|
+
const execFileAsync = promisify(execFile);
|
|
4
|
+
export function parseSystemProcesses(raw) {
|
|
5
|
+
return raw
|
|
6
|
+
.trim()
|
|
7
|
+
.split(/\n/)
|
|
8
|
+
.map((line) => {
|
|
9
|
+
const match = line
|
|
10
|
+
.trim()
|
|
11
|
+
.match(/^(\d+)\s+(\S+)\s+(\d+)\s+(\d+)\s+(\S+)\s+(\d+)\s+(.+)$/);
|
|
12
|
+
if (!match)
|
|
13
|
+
return undefined;
|
|
14
|
+
return {
|
|
15
|
+
uid: Number(match[1]),
|
|
16
|
+
user: match[2],
|
|
17
|
+
pid: Number(match[3]),
|
|
18
|
+
ppid: Number(match[4]),
|
|
19
|
+
cpuPercent: Number(match[5]),
|
|
20
|
+
rssMb: Number(match[6]) / 1024,
|
|
21
|
+
command: match[7],
|
|
22
|
+
canTerminate: false,
|
|
23
|
+
};
|
|
24
|
+
})
|
|
25
|
+
.filter((row) => Boolean(row));
|
|
26
|
+
}
|
|
27
|
+
export async function readSystemProcesses() {
|
|
28
|
+
const { stdout } = await execFileAsync("ps", [
|
|
29
|
+
"-ax",
|
|
30
|
+
"-o",
|
|
31
|
+
"uid=,user=,pid=,ppid=,%cpu=,rss=,command=",
|
|
32
|
+
]);
|
|
33
|
+
return parseSystemProcesses(stdout);
|
|
34
|
+
}
|
|
35
|
+
export function classifySystemProcesses(rows, managedRoots, options = {}) {
|
|
36
|
+
const currentPid = options.currentPid ?? process.pid;
|
|
37
|
+
const currentUid = options.currentUid ?? process.getuid?.();
|
|
38
|
+
const appTree = appTreePids(rows, currentPid);
|
|
39
|
+
const managed = managedServices(rows, managedRoots);
|
|
40
|
+
return rows.map((row) => {
|
|
41
|
+
const managedService = managed.get(row.pid);
|
|
42
|
+
const protection = managedService
|
|
43
|
+
? "managed"
|
|
44
|
+
: row.pid <= 1
|
|
45
|
+
? "system"
|
|
46
|
+
: appTree.has(row.pid)
|
|
47
|
+
? "this-app"
|
|
48
|
+
: currentUid === undefined || row.uid !== currentUid
|
|
49
|
+
? "permission"
|
|
50
|
+
: undefined;
|
|
51
|
+
return {
|
|
52
|
+
...row,
|
|
53
|
+
managedService,
|
|
54
|
+
canTerminate: protection === undefined,
|
|
55
|
+
protection,
|
|
56
|
+
};
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
export async function terminateSystemProcess(pid, expectedCommand, managedRoots, options = {}) {
|
|
60
|
+
if (!Number.isSafeInteger(pid) || pid <= 1) {
|
|
61
|
+
throw new Error("Invalid process id.");
|
|
62
|
+
}
|
|
63
|
+
const rows = await (options.read ?? readSystemProcesses)();
|
|
64
|
+
const target = classifySystemProcesses(rows, managedRoots, options).find((row) => row.pid === pid);
|
|
65
|
+
if (!target)
|
|
66
|
+
throw new Error(`Process ${pid} is no longer running.`);
|
|
67
|
+
if (target.command !== expectedCommand) {
|
|
68
|
+
throw new Error(`Process ${pid} changed before it could be terminated.`);
|
|
69
|
+
}
|
|
70
|
+
if (!target.canTerminate) {
|
|
71
|
+
throw new Error(`Process ${pid} is protected (${target.protection}).`);
|
|
72
|
+
}
|
|
73
|
+
(options.signal ?? ((targetPid) => process.kill(targetPid, "SIGTERM")))(pid);
|
|
74
|
+
}
|
|
75
|
+
function appTreePids(rows, pid) {
|
|
76
|
+
const byPid = new Map(rows.map((row) => [row.pid, row]));
|
|
77
|
+
const related = new Set([pid]);
|
|
78
|
+
let parent = byPid.get(pid)?.ppid;
|
|
79
|
+
while (parent && parent > 0 && !related.has(parent)) {
|
|
80
|
+
related.add(parent);
|
|
81
|
+
parent = byPid.get(parent)?.ppid;
|
|
82
|
+
}
|
|
83
|
+
const children = new Map();
|
|
84
|
+
for (const row of rows) {
|
|
85
|
+
const siblings = children.get(row.ppid) ?? [];
|
|
86
|
+
siblings.push(row.pid);
|
|
87
|
+
children.set(row.ppid, siblings);
|
|
88
|
+
}
|
|
89
|
+
const stack = [...(children.get(pid) ?? [])];
|
|
90
|
+
while (stack.length > 0) {
|
|
91
|
+
const child = stack.pop();
|
|
92
|
+
if (child === undefined || related.has(child))
|
|
93
|
+
continue;
|
|
94
|
+
related.add(child);
|
|
95
|
+
stack.push(...(children.get(child) ?? []));
|
|
96
|
+
}
|
|
97
|
+
return related;
|
|
98
|
+
}
|
|
99
|
+
function managedServices(rows, roots) {
|
|
100
|
+
const children = new Map();
|
|
101
|
+
for (const row of rows) {
|
|
102
|
+
const siblings = children.get(row.ppid) ?? [];
|
|
103
|
+
siblings.push(row.pid);
|
|
104
|
+
children.set(row.ppid, siblings);
|
|
105
|
+
}
|
|
106
|
+
const result = new Map();
|
|
107
|
+
for (const root of roots) {
|
|
108
|
+
const stack = [root.pid];
|
|
109
|
+
while (stack.length > 0) {
|
|
110
|
+
const pid = stack.pop();
|
|
111
|
+
if (pid === undefined || result.has(pid))
|
|
112
|
+
continue;
|
|
113
|
+
result.set(pid, root.service);
|
|
114
|
+
stack.push(...(children.get(pid) ?? []));
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return result;
|
|
118
|
+
}
|
|
119
|
+
//# sourceMappingURL=system-processes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system-processes.js","sourceRoot":"","sources":["../../src/core/system-processes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QA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,CAAC,CAAC;QACvB,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IACnC,CAAC;IACD,MAAM,MAAM,GAAG,IAAI,GAAG,EAAkB,CAAC;IACzC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,KAAK,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACzB,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACxB,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC;YACxB,IAAI,GAAG,KAAK,SAAS,IAAI,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC;gBAAE,SAAS;YACnD,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;YAC9B,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;QAC3C,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/dist/core/types.d.ts
CHANGED
|
@@ -34,7 +34,10 @@ export interface BundleDefinition {
|
|
|
34
34
|
}
|
|
35
35
|
export interface GitRepositoryDefinition {
|
|
36
36
|
name: string;
|
|
37
|
+
/** Primary worktree used to identify and configure this logical project. */
|
|
37
38
|
path: string;
|
|
39
|
+
/** Worktree currently used by Git, agents, shells, and GitHub workflows. */
|
|
40
|
+
activeWorktreePath?: string;
|
|
38
41
|
}
|
|
39
42
|
export type DatabaseEngine = "postgres" | "mysql" | "sqlite";
|
|
40
43
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { applyProfile, copySkillBetweenProfiles, createProfile, deleteProfile, exportProfile, getProfile, importProfile, listProfiles, previewProfileApply, profileMcpSchema, snapshotProfileFromAgent, updateProfile, } from "../../core/agent-profiles/index.js";
|
|
2
|
+
import { applyProfile, copyPluginBetweenProfiles, copySkillBetweenProfiles, createProfile, deleteProfile, exportProfile, getProfile, importProfile, listProfiles, previewProfileApply, pluginIdentity, profileMcpSchema, profilePluginSchema, snapshotProfileFromAgent, updateProfile, } from "../../core/agent-profiles/index.js";
|
|
3
3
|
import { stringify } from "./context.js";
|
|
4
4
|
export const AGENT_PROFILE_TOOL_NAMES = [
|
|
5
5
|
"nomoreide_profiles_list",
|
|
@@ -28,13 +28,13 @@ const cwdField = z
|
|
|
28
28
|
export function registerAgentProfileTools(server, _ctx) {
|
|
29
29
|
server.addTool({
|
|
30
30
|
name: "nomoreide_profiles_list",
|
|
31
|
-
description: "List saved agent profiles (named bundles of MCP servers
|
|
31
|
+
description: "List saved agent profiles (named bundles of MCP servers, skills, and plugins).",
|
|
32
32
|
parameters: z.object({}),
|
|
33
33
|
execute: async () => stringify(await listProfiles()),
|
|
34
34
|
});
|
|
35
35
|
server.addTool({
|
|
36
36
|
name: "nomoreide_profiles_get",
|
|
37
|
-
description: "Get a profile's full config: MCP servers
|
|
37
|
+
description: "Get a profile's full config: MCP servers, bundled skills, and plugins.",
|
|
38
38
|
parameters: z.object({ name: nameField }),
|
|
39
39
|
execute: async ({ name }) => stringify(await getProfile(name)),
|
|
40
40
|
});
|
|
@@ -46,12 +46,13 @@ export function registerAgentProfileTools(server, _ctx) {
|
|
|
46
46
|
});
|
|
47
47
|
server.addTool({
|
|
48
48
|
name: "nomoreide_profiles_update",
|
|
49
|
-
description: "Update a profile's description, MCP map, or
|
|
49
|
+
description: "Update a profile's description, MCP map, skill list, or plugin list (name is immutable).",
|
|
50
50
|
parameters: z.object({
|
|
51
51
|
name: nameField,
|
|
52
52
|
description: z.string().optional(),
|
|
53
53
|
mcps: z.record(profileMcpSchema).optional(),
|
|
54
54
|
skills: z.array(z.object({ name: z.string().min(1) })).optional(),
|
|
55
|
+
plugins: z.array(profilePluginSchema).optional(),
|
|
55
56
|
}),
|
|
56
57
|
execute: async ({ name, ...patch }) => stringify(await updateProfile(name, patch)),
|
|
57
58
|
});
|
|
@@ -66,7 +67,7 @@ export function registerAgentProfileTools(server, _ctx) {
|
|
|
66
67
|
});
|
|
67
68
|
server.addTool({
|
|
68
69
|
name: "nomoreide_profiles_snapshot",
|
|
69
|
-
description: "Snapshot an agent's live MCPs
|
|
70
|
+
description: "Snapshot an agent's live MCPs, user skills, and installed plugins into a new profile.",
|
|
70
71
|
parameters: z.object({
|
|
71
72
|
agent: agentSchema,
|
|
72
73
|
name: nameField,
|
|
@@ -77,13 +78,14 @@ export function registerAgentProfileTools(server, _ctx) {
|
|
|
77
78
|
});
|
|
78
79
|
server.addTool({
|
|
79
80
|
name: "nomoreide_profiles_apply",
|
|
80
|
-
description: "Apply a profile's MCPs and
|
|
81
|
+
description: "Apply a profile's MCPs, skills, and plugins to an agent. Set dryRun=true for a conflict preview.",
|
|
81
82
|
parameters: z.object({
|
|
82
83
|
name: nameField,
|
|
83
84
|
agent: agentSchema,
|
|
84
85
|
dryRun: z.boolean().default(false),
|
|
85
86
|
skipMcps: z.array(z.string()).optional().describe("MCP keys to leave untouched."),
|
|
86
87
|
skipSkills: z.array(z.string()).optional().describe("Skill names to leave untouched."),
|
|
88
|
+
skipPlugins: z.array(z.string()).optional().describe("Plugin names to leave untouched."),
|
|
87
89
|
cwd: cwdField,
|
|
88
90
|
}),
|
|
89
91
|
execute: async (input) => {
|
|
@@ -95,7 +97,11 @@ export function registerAgentProfileTools(server, _ctx) {
|
|
|
95
97
|
cwd,
|
|
96
98
|
name: input.name,
|
|
97
99
|
agent: input.agent,
|
|
98
|
-
skip: {
|
|
100
|
+
skip: {
|
|
101
|
+
mcps: input.skipMcps,
|
|
102
|
+
skills: input.skipSkills,
|
|
103
|
+
plugins: input.skipPlugins,
|
|
104
|
+
},
|
|
99
105
|
}));
|
|
100
106
|
},
|
|
101
107
|
});
|
|
@@ -126,12 +132,16 @@ export function registerAgentProfileTools(server, _ctx) {
|
|
|
126
132
|
});
|
|
127
133
|
server.addTool({
|
|
128
134
|
name: "nomoreide_profiles_copy_items",
|
|
129
|
-
description: "Copy selected MCPs and/or
|
|
135
|
+
description: "Copy selected MCPs, skills, and/or plugins from one profile into another.",
|
|
130
136
|
parameters: z.object({
|
|
131
137
|
from: z.string().min(1),
|
|
132
138
|
to: z.string().min(1),
|
|
133
139
|
mcps: z.array(z.string()).optional().describe("MCP keys to copy."),
|
|
134
140
|
skills: z.array(z.string()).optional().describe("Skill names to copy."),
|
|
141
|
+
plugins: z
|
|
142
|
+
.array(z.string())
|
|
143
|
+
.optional()
|
|
144
|
+
.describe("Canonical plugin IDs to copy; an unambiguous plugin name is also accepted."),
|
|
135
145
|
}),
|
|
136
146
|
execute: async (input) => {
|
|
137
147
|
const source = await getProfile(input.from);
|
|
@@ -157,8 +167,30 @@ export function registerAgentProfileTools(server, _ctx) {
|
|
|
157
167
|
}
|
|
158
168
|
copiedSkills.push(skillName);
|
|
159
169
|
}
|
|
160
|
-
|
|
161
|
-
|
|
170
|
+
const plugins = [...target.plugins];
|
|
171
|
+
const copiedPlugins = [];
|
|
172
|
+
for (const pluginSelector of input.plugins ?? []) {
|
|
173
|
+
const pluginById = source.plugins.find((entry) => pluginIdentity(entry) === pluginSelector);
|
|
174
|
+
const pluginsByName = source.plugins.filter((entry) => entry.name === pluginSelector);
|
|
175
|
+
if (!pluginById && pluginsByName.length > 1) {
|
|
176
|
+
throw new Error(`Plugin name "${pluginSelector}" is ambiguous in profile "${input.from}". Use one of: ${pluginsByName.map(pluginIdentity).join(", ")}.`);
|
|
177
|
+
}
|
|
178
|
+
const plugin = pluginById ?? pluginsByName[0];
|
|
179
|
+
if (!plugin) {
|
|
180
|
+
throw new Error(`Plugin "${pluginSelector}" not found in profile "${input.from}".`);
|
|
181
|
+
}
|
|
182
|
+
await copyPluginBetweenProfiles(input.from, input.to, plugin.bundleKey);
|
|
183
|
+
const existing = plugins.findIndex((entry) => entry.name === plugin.name &&
|
|
184
|
+
entry.sourceAgent === plugin.sourceAgent &&
|
|
185
|
+
entry.source === plugin.source);
|
|
186
|
+
if (existing >= 0)
|
|
187
|
+
plugins[existing] = plugin;
|
|
188
|
+
else
|
|
189
|
+
plugins.push(plugin);
|
|
190
|
+
copiedPlugins.push(pluginIdentity(plugin));
|
|
191
|
+
}
|
|
192
|
+
await updateProfile(input.to, { mcps, skills, plugins });
|
|
193
|
+
return stringify({ ok: true, copiedMcps, copiedSkills, copiedPlugins });
|
|
162
194
|
},
|
|
163
195
|
});
|
|
164
196
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-profiles.js","sourceRoot":"","sources":["../../../src/mcp/tools/agent-profiles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,YAAY,EACZ,wBAAwB,EACxB,aAAa,EACb,aAAa,EACb,aAAa,EACb,UAAU,EACV,aAAa,EACb,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,wBAAwB,EACxB,aAAa,GACd,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAoB,MAAM,cAAc,CAAC;AAE3D,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,yBAAyB;IACzB,wBAAwB;IACxB,2BAA2B;IAC3B,2BAA2B;IAC3B,2BAA2B;IAC3B,6BAA6B;IAC7B,0BAA0B;IAC1B,2BAA2B;IAC3B,2BAA2B;IAC3B,+BAA+B;CACvB,CAAC;AAEX,MAAM,WAAW,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC;AAC/D,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;AAC9D,MAAM,QAAQ,GAAG,CAAC;KACf,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,QAAQ,EAA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AAa,EAAE,CAAC,CAAC;QAC1E,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
|
package/dist/mcp/tools/git.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { FastMCP } from "fastmcp";
|
|
2
2
|
import { type ToolContext } from "./context.js";
|
|
3
|
-
export declare const GIT_TOOL_NAMES: readonly ["nomoreide_git_status", "nomoreide_git_branches", "nomoreide_git_switch_branch", "nomoreide_git_create_branch", "nomoreide_git_fetch", "nomoreide_git_diff", "nomoreide_git_staged_diff", "nomoreide_git_log", "nomoreide_git_stage", "nomoreide_git_unstage", "nomoreide_git_commit", "nomoreide_git_push", "nomoreide_git_clone", "nomoreide_git_register_repository", "nomoreide_git_select_repository"];
|
|
3
|
+
export declare const GIT_TOOL_NAMES: readonly ["nomoreide_git_status", "nomoreide_git_branches", "nomoreide_git_switch_branch", "nomoreide_git_create_branch", "nomoreide_git_fetch", "nomoreide_git_diff", "nomoreide_git_staged_diff", "nomoreide_git_log", "nomoreide_git_stage", "nomoreide_git_unstage", "nomoreide_git_commit", "nomoreide_git_push", "nomoreide_git_clone", "nomoreide_git_register_repository", "nomoreide_git_select_repository", "nomoreide_git_worktrees", "nomoreide_git_create_worktree", "nomoreide_git_select_worktree", "nomoreide_git_prune_worktrees"];
|
|
4
4
|
export declare function registerGitTools(server: FastMCP, ctx: ToolContext): void;
|
package/dist/mcp/tools/git.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { cloneRepository } from "../../core/repo-onboard.js";
|
|
3
|
+
import { GitWorktreeManager } from "../../core/git-worktrees.js";
|
|
3
4
|
import { git, gitActions, stringify } from "./context.js";
|
|
4
5
|
export const GIT_TOOL_NAMES = [
|
|
5
6
|
"nomoreide_git_status",
|
|
@@ -17,6 +18,10 @@ export const GIT_TOOL_NAMES = [
|
|
|
17
18
|
"nomoreide_git_clone",
|
|
18
19
|
"nomoreide_git_register_repository",
|
|
19
20
|
"nomoreide_git_select_repository",
|
|
21
|
+
"nomoreide_git_worktrees",
|
|
22
|
+
"nomoreide_git_create_worktree",
|
|
23
|
+
"nomoreide_git_select_worktree",
|
|
24
|
+
"nomoreide_git_prune_worktrees",
|
|
20
25
|
];
|
|
21
26
|
const gitCwdSchema = z.object({
|
|
22
27
|
cwd: z.string().min(1).optional().describe("Git repository directory."),
|
|
@@ -141,5 +146,45 @@ export function registerGitTools(server, ctx) {
|
|
|
141
146
|
}),
|
|
142
147
|
execute: async ({ name }) => stringify(await configStore.selectGitRepository(name)),
|
|
143
148
|
});
|
|
149
|
+
server.addTool({
|
|
150
|
+
name: "nomoreide_git_worktrees",
|
|
151
|
+
description: "List the primary and linked worktrees for a Git repository, including branch, dirty, locked, and stale state.",
|
|
152
|
+
parameters: gitCwdSchema,
|
|
153
|
+
execute: async ({ cwd }) => stringify(await new GitWorktreeManager(cwd ?? process.cwd()).list()),
|
|
154
|
+
});
|
|
155
|
+
server.addTool({
|
|
156
|
+
name: "nomoreide_git_create_worktree",
|
|
157
|
+
description: "Create an isolated managed worktree for a new or existing branch. Write op — creates a fresh directory without changing the current worktree.",
|
|
158
|
+
parameters: gitCwdSchema.extend({
|
|
159
|
+
branch: z.string().min(1).describe("New or existing local branch name."),
|
|
160
|
+
createBranch: z.boolean().default(true),
|
|
161
|
+
baseRef: z.string().min(1).optional().describe("Start point for a new branch."),
|
|
162
|
+
projectName: z.string().min(1).optional().describe("Managed folder group name."),
|
|
163
|
+
}),
|
|
164
|
+
execute: async ({ cwd, branch, createBranch, baseRef, projectName }) => stringify(await new GitWorktreeManager(cwd ?? process.cwd()).create({
|
|
165
|
+
branch,
|
|
166
|
+
createBranch,
|
|
167
|
+
baseRef,
|
|
168
|
+
projectName,
|
|
169
|
+
})),
|
|
170
|
+
});
|
|
171
|
+
server.addTool({
|
|
172
|
+
name: "nomoreide_git_select_worktree",
|
|
173
|
+
description: "Select one registered project's worktree for Git review, new terminals, agents, snapshots, and GitHub workflows.",
|
|
174
|
+
parameters: z.object({
|
|
175
|
+
repository: z.string().min(1).describe("Registered NoMoreIDE project name."),
|
|
176
|
+
path: z.string().min(1).describe("Path returned by nomoreide_git_worktrees."),
|
|
177
|
+
}),
|
|
178
|
+
execute: async ({ repository, path }) => stringify(await configStore.selectGitWorktree(repository, path)),
|
|
179
|
+
});
|
|
180
|
+
server.addTool({
|
|
181
|
+
name: "nomoreide_git_prune_worktrees",
|
|
182
|
+
description: "Prune stale Git worktree administrative records. Does not delete a live worktree directory or branch.",
|
|
183
|
+
parameters: gitCwdSchema,
|
|
184
|
+
execute: async ({ cwd }) => {
|
|
185
|
+
await new GitWorktreeManager(cwd ?? process.cwd()).prune();
|
|
186
|
+
return stringify({ pruned: true });
|
|
187
|
+
},
|
|
188
|
+
});
|
|
144
189
|
}
|
|
145
190
|
//# sourceMappingURL=git.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git.js","sourceRoot":"","sources":["../../../src/mcp/tools/git.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,SAAS,EAAoB,MAAM,cAAc,CAAC;AAE5E,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,sBAAsB;IACtB,wBAAwB;IACxB,6BAA6B;IAC7B,6BAA6B;IAC7B,qBAAqB;IACrB,oBAAoB;IACpB,2BAA2B;IAC3B,mBAAmB;IACnB,qBAAqB;IACrB,uBAAuB;IACvB,sBAAsB;IACtB,oBAAoB;IACpB,qBAAqB;IACrB,mCAAmC;IACnC,iCAAiC;
|
|
1
|
+
{"version":3,"file":"git.js","sourceRoot":"","sources":["../../../src/mcp/tools/git.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4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AY,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,CACrE,SAAS,CACP,MAAM,IAAI,kBAAkB,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC;YACxD,MAAM;YACN,YAAY;YACZ,OAAO;YACP,WAAW;SACZ,CAAC,CACH;KACJ,CAAC,CAAC;IAEH,MAAM,CAAC,OAAO,CAAC;QACb,IAAI,EAAE,+BAA+B;QACrC,WAAW,EACT,kHAAkH;QACpH,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC;YACnB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,oCAAoC,CAAC;YAC5E,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,2CAA2C,CAAC;SAC9E,CAAC;QACF,OAAO,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,EAAE,CACtC,SAAS,CAAC,MAAM,WAAW,CAAC,iBAAiB,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;KACnE,CAAC,CAAC;IAEH,MAAM,CAAC,OAAO,CAAC;QACb,IAAI,EAAE,+BAA+B;QACrC,WAAW,EACT,uGAAuG;QACzG,UAAU,EAAE,YAAY;QACxB,OAAO,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;YACzB,MAAM,IAAI,kBAAkB,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC;YAC3D,OAAO,SAAS,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;QACrC,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -10,7 +10,7 @@ import { type ToolContext } from "./context.js";
|
|
|
10
10
|
* a new domain module and register it below. This aggregator never grows a
|
|
11
11
|
* per-tool branch.
|
|
12
12
|
*/
|
|
13
|
-
export declare const NOMOREIDE_TOOL_NAMES: readonly ["nomoreide_list_services", "nomoreide_register_service", "nomoreide_start_service", "nomoreide_stop_service", "nomoreide_restart_service", "nomoreide_read_logs", "nomoreide_register_bundle", "nomoreide_start_bundle", "nomoreide_stop_bundle", "nomoreide_status", "nomoreide_service_context", "nomoreide_service_health", "nomoreide_timeline", "nomoreide_onboard_repo", "nomoreide_git_status", "nomoreide_git_branches", "nomoreide_git_switch_branch", "nomoreide_git_create_branch", "nomoreide_git_fetch", "nomoreide_git_diff", "nomoreide_git_staged_diff", "nomoreide_git_log", "nomoreide_git_stage", "nomoreide_git_unstage", "nomoreide_git_commit", "nomoreide_git_push", "nomoreide_git_clone", "nomoreide_git_register_repository", "nomoreide_git_select_repository", "nomoreide_snapshots_list", "nomoreide_snapshot_create", "nomoreide_github_set_token", "nomoreide_github_list_prs", "nomoreide_github_get_pr", "nomoreide_github_get_pr_diff", "nomoreide_github_create_pr", "nomoreide_github_merge_pr", "nomoreide_github_list_issues", "nomoreide_github_get_issue", "nomoreide_github_list_issue_comments", "nomoreide_github_add_issue_comment", "nomoreide_github_create_issue", "nomoreide_github_get_commit_ci", "nomoreide_github_list_workflow_runs", "nomoreide_list_errors", "nomoreide_error_prompt", "nomoreide_list_databases", "nomoreide_db_tables", "nomoreide_db_sample", "nomoreide_db_query", "nomoreide_docs", "nomoreide_open_ui", "nomoreide_close_ui", "nomoreide_agents_status", "nomoreide_agents_read_configs", "nomoreide_agents_doctor", "nomoreide_agents_add_mcp", "nomoreide_agents_remove_mcp", "nomoreide_agents_move_mcp_scope", "nomoreide_agents_move_skill_scope", "nomoreide_agents_snapshot_agent", "nomoreide_profiles_list", "nomoreide_profiles_get", "nomoreide_profiles_create", "nomoreide_profiles_update", "nomoreide_profiles_delete", "nomoreide_profiles_snapshot", "nomoreide_profiles_apply", "nomoreide_profiles_export", "nomoreide_profiles_import", "nomoreide_profiles_copy_items", "nomoreide_profiles_publish", "nomoreide_profiles_install_from_registry", "nomoreide_profiles_register_github"];
|
|
13
|
+
export declare const NOMOREIDE_TOOL_NAMES: readonly ["nomoreide_list_services", "nomoreide_register_service", "nomoreide_start_service", "nomoreide_stop_service", "nomoreide_restart_service", "nomoreide_read_logs", "nomoreide_register_bundle", "nomoreide_start_bundle", "nomoreide_stop_bundle", "nomoreide_status", "nomoreide_service_context", "nomoreide_service_health", "nomoreide_timeline", "nomoreide_onboard_repo", "nomoreide_git_status", "nomoreide_git_branches", "nomoreide_git_switch_branch", "nomoreide_git_create_branch", "nomoreide_git_fetch", "nomoreide_git_diff", "nomoreide_git_staged_diff", "nomoreide_git_log", "nomoreide_git_stage", "nomoreide_git_unstage", "nomoreide_git_commit", "nomoreide_git_push", "nomoreide_git_clone", "nomoreide_git_register_repository", "nomoreide_git_select_repository", "nomoreide_git_worktrees", "nomoreide_git_create_worktree", "nomoreide_git_select_worktree", "nomoreide_git_prune_worktrees", "nomoreide_snapshots_list", "nomoreide_snapshot_create", "nomoreide_github_set_token", "nomoreide_github_list_prs", "nomoreide_github_get_pr", "nomoreide_github_get_pr_diff", "nomoreide_github_create_pr", "nomoreide_github_merge_pr", "nomoreide_github_list_issues", "nomoreide_github_get_issue", "nomoreide_github_list_issue_comments", "nomoreide_github_add_issue_comment", "nomoreide_github_create_issue", "nomoreide_github_get_commit_ci", "nomoreide_github_list_workflow_runs", "nomoreide_list_errors", "nomoreide_error_prompt", "nomoreide_list_databases", "nomoreide_db_tables", "nomoreide_db_sample", "nomoreide_db_query", "nomoreide_docs", "nomoreide_open_ui", "nomoreide_close_ui", "nomoreide_agents_status", "nomoreide_agents_read_configs", "nomoreide_agents_doctor", "nomoreide_agents_add_mcp", "nomoreide_agents_remove_mcp", "nomoreide_agents_move_mcp_scope", "nomoreide_agents_move_skill_scope", "nomoreide_agents_snapshot_agent", "nomoreide_profiles_list", "nomoreide_profiles_get", "nomoreide_profiles_create", "nomoreide_profiles_update", "nomoreide_profiles_delete", "nomoreide_profiles_snapshot", "nomoreide_profiles_apply", "nomoreide_profiles_export", "nomoreide_profiles_import", "nomoreide_profiles_copy_items", "nomoreide_profiles_publish", "nomoreide_profiles_install_from_registry", "nomoreide_profiles_register_github"];
|
|
14
14
|
interface RegisterNoMoreIdeToolsOptions extends ToolContext {
|
|
15
15
|
server: FastMCP;
|
|
16
16
|
toolCallStore?: ToolCallStore;
|