rrce-workflow 0.2.55 → 0.2.56
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/index.js +28 -18
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2091,7 +2091,7 @@ function registerToolHandlers(server) {
|
|
|
2091
2091
|
},
|
|
2092
2092
|
{
|
|
2093
2093
|
name: "list_projects",
|
|
2094
|
-
description: "List all projects exposed via MCP",
|
|
2094
|
+
description: "List all projects exposed via MCP. Use these names for project-specific tools.",
|
|
2095
2095
|
inputSchema: { type: "object", properties: {} }
|
|
2096
2096
|
},
|
|
2097
2097
|
{
|
|
@@ -2105,12 +2105,12 @@ function registerToolHandlers(server) {
|
|
|
2105
2105
|
},
|
|
2106
2106
|
{
|
|
2107
2107
|
name: "list_agents",
|
|
2108
|
-
description: "List available
|
|
2108
|
+
description: "List available agents (e.g. init, plan) and their arguments. Use this to discover which agent to call.",
|
|
2109
2109
|
inputSchema: { type: "object", properties: {} }
|
|
2110
2110
|
},
|
|
2111
2111
|
{
|
|
2112
2112
|
name: "get_agent_prompt",
|
|
2113
|
-
description:
|
|
2113
|
+
description: 'Get the system prompt for a specific agent. Accepts agent Name (e.g. "RRCE Init") or ID (e.g. "init").',
|
|
2114
2114
|
inputSchema: {
|
|
2115
2115
|
type: "object",
|
|
2116
2116
|
properties: {
|
|
@@ -2147,17 +2147,20 @@ function registerToolHandlers(server) {
|
|
|
2147
2147
|
}
|
|
2148
2148
|
case "list_projects": {
|
|
2149
2149
|
const projects = getExposedProjects();
|
|
2150
|
+
const list = projects.map((p) => ({ name: p.name, source: p.source, path: p.path }));
|
|
2150
2151
|
return {
|
|
2151
2152
|
content: [{
|
|
2152
2153
|
type: "text",
|
|
2153
|
-
text: JSON.stringify(
|
|
2154
|
+
text: JSON.stringify(list, null, 2) + "\n\nTip: Use these project names for tools like `get_project_context` or `index_knowledge`."
|
|
2154
2155
|
}]
|
|
2155
2156
|
};
|
|
2156
2157
|
}
|
|
2157
2158
|
case "get_project_context": {
|
|
2158
2159
|
const context = getProjectContext(args.project);
|
|
2159
2160
|
if (!context) {
|
|
2160
|
-
const
|
|
2161
|
+
const projects = getExposedProjects().map((p) => p.name).join(", ");
|
|
2162
|
+
const msg = `No project context found for "${args.project}".
|
|
2163
|
+
Available projects: ${projects}`;
|
|
2161
2164
|
logger.warn(msg);
|
|
2162
2165
|
return { content: [{ type: "text", text: msg }], isError: true };
|
|
2163
2166
|
}
|
|
@@ -2170,9 +2173,10 @@ function registerToolHandlers(server) {
|
|
|
2170
2173
|
type: "text",
|
|
2171
2174
|
text: JSON.stringify(prompts.map((p) => ({
|
|
2172
2175
|
name: p.name,
|
|
2176
|
+
id: p.id,
|
|
2173
2177
|
description: p.description,
|
|
2174
2178
|
arguments: p.arguments
|
|
2175
|
-
})), null, 2)
|
|
2179
|
+
})), null, 2) + "\n\nTip: Retrieve the prompt for an agent using `get_agent_prompt` with its name or ID."
|
|
2176
2180
|
}]
|
|
2177
2181
|
};
|
|
2178
2182
|
}
|
|
@@ -2181,7 +2185,8 @@ function registerToolHandlers(server) {
|
|
|
2181
2185
|
const agentName = params.agent;
|
|
2182
2186
|
const promptDef = getPromptDef(agentName);
|
|
2183
2187
|
if (!promptDef) {
|
|
2184
|
-
|
|
2188
|
+
const available = getAllPrompts().map((p) => `${p.name} (id: ${p.id})`).join(", ");
|
|
2189
|
+
throw new Error(`Agent not found: ${agentName}. Available agents: ${available}`);
|
|
2185
2190
|
}
|
|
2186
2191
|
const renderArgs = params.args || {};
|
|
2187
2192
|
const stringArgs = {};
|
|
@@ -3693,7 +3698,10 @@ async function runSetupFlow(workspacePath, workspaceName, existingProjects) {
|
|
|
3693
3698
|
}
|
|
3694
3699
|
const tools = await promptTools();
|
|
3695
3700
|
const exposeToMCP = await promptMCPExposure();
|
|
3696
|
-
|
|
3701
|
+
let linkedProjects = [];
|
|
3702
|
+
if (storageMode !== "global") {
|
|
3703
|
+
linkedProjects = await promptLinkedProjects(existingProjects);
|
|
3704
|
+
}
|
|
3697
3705
|
const addToGitignore = await promptGitignore();
|
|
3698
3706
|
const enableRAG = await promptRAG();
|
|
3699
3707
|
const confirmed = await promptConfirmation();
|
|
@@ -3998,16 +4006,18 @@ ${dataPaths.map((p) => ` \u2022 ${p}`).join("\n")}`,
|
|
|
3998
4006
|
copyDirToAllStoragePaths(path17.join(agentCoreDir, "templates"), "templates", [dataPath]);
|
|
3999
4007
|
}
|
|
4000
4008
|
const configFilePath = getConfigPath(workspacePath);
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4009
|
+
if (fs18.existsSync(configFilePath)) {
|
|
4010
|
+
const configContent = fs18.readFileSync(configFilePath, "utf-8");
|
|
4011
|
+
if (configContent.includes("copilot: true")) {
|
|
4012
|
+
const copilotPath = getAgentPromptPath(workspacePath, "copilot");
|
|
4013
|
+
ensureDir(copilotPath);
|
|
4014
|
+
copyPromptsToDir(prompts, copilotPath, ".agent.md");
|
|
4015
|
+
}
|
|
4016
|
+
if (configContent.includes("antigravity: true")) {
|
|
4017
|
+
const antigravityPath = getAgentPromptPath(workspacePath, "antigravity");
|
|
4018
|
+
ensureDir(antigravityPath);
|
|
4019
|
+
copyPromptsToDir(prompts, antigravityPath, ".md");
|
|
4020
|
+
}
|
|
4011
4021
|
}
|
|
4012
4022
|
s.stop("Update complete");
|
|
4013
4023
|
const summary = [
|