@hasna/configs 0.2.5 → 0.2.6

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/mcp/index.js CHANGED
@@ -1005,7 +1005,14 @@ var TOOL_DOCS = {
1005
1005
  search_tools: "Search tool descriptions. Params: query. Returns matching tool names and descriptions.",
1006
1006
  describe_tools: "Get full descriptions for tools. Params: names? (array). Returns tool docs."
1007
1007
  };
1008
- var LEAN_TOOLS = [
1008
+ var PROFILES = {
1009
+ minimal: ["get_status", "get_config", "sync_known"],
1010
+ standard: ["list_configs", "get_config", "create_config", "update_config", "apply_config", "sync_known", "get_status", "list_profiles", "apply_profile", "search_tools", "describe_tools"],
1011
+ full: []
1012
+ };
1013
+ var activeProfile = process.env["CONFIGS_PROFILE"] || "full";
1014
+ var profileFilter = PROFILES[activeProfile];
1015
+ var ALL_LEAN_TOOLS = [
1009
1016
  { name: "list_configs", inputSchema: { type: "object", properties: { category: { type: "string" }, agent: { type: "string" }, kind: { type: "string" }, search: { type: "string" } } } },
1010
1017
  { name: "get_config", inputSchema: { type: "object", properties: { id_or_slug: { type: "string" } }, required: ["id_or_slug"] } },
1011
1018
  { name: "create_config", inputSchema: { type: "object", properties: { name: { type: "string" }, content: { type: "string" }, category: { type: "string" }, agent: { type: "string" }, target_path: { type: "string" }, kind: { type: "string" }, format: { type: "string" }, tags: { type: "array", items: { type: "string" } }, description: { type: "string" }, is_template: { type: "boolean" } }, required: ["name", "content", "category"] } },
@@ -1027,6 +1034,7 @@ function err(msg) {
1027
1034
  return { content: [{ type: "text", text: JSON.stringify({ error: msg }) }], isError: true };
1028
1035
  }
1029
1036
  var server = new Server({ name: "configs", version: "0.1.0" }, { capabilities: { tools: {} } });
1037
+ var LEAN_TOOLS = profileFilter && profileFilter.length > 0 ? ALL_LEAN_TOOLS.filter((t) => profileFilter.includes(t.name)) : ALL_LEAN_TOOLS;
1030
1038
  server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: LEAN_TOOLS }));
1031
1039
  server.setRequestHandler(CallToolRequestSchema, async (req) => {
1032
1040
  const { name, arguments: args = {} } = req.params;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/configs",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "AI coding agent configuration manager — store, version, apply, and share all your AI coding configs. CLI + MCP + REST API + Dashboard.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",