@hasna/configs 0.2.20 → 0.2.21

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
@@ -1100,6 +1100,7 @@ var TOOL_DOCS = {
1100
1100
  render_template: "Render a template config with variable substitution. Params: id_or_slug, vars? (object of KEY:VALUE), use_env? (fill from env vars). Returns rendered content.",
1101
1101
  scan_secrets: "Scan configs for unredacted secrets. Params: id_or_slug? (omit for all known), fix? (true to redact in-place). Returns findings.",
1102
1102
  sync_known: "Sync all known config files from disk into DB. Params: agent?, category?. Replaces sync_directory for standard use.",
1103
+ sync_project: "Sync project-scoped configs (CLAUDE.md, .mcp.json, AGENTS.md, rules/*.md) from a project dir. Params: project_dir (default: cwd).",
1103
1104
  search_tools: "Search tool descriptions. Params: query. Returns matching tool names and descriptions.",
1104
1105
  describe_tools: "Get full descriptions for tools. Params: names? (array). Returns tool docs."
1105
1106
  };
@@ -1122,6 +1123,7 @@ var ALL_LEAN_TOOLS = [
1122
1123
  { name: "get_snapshot", inputSchema: { type: "object", properties: { config_id_or_slug: { type: "string" }, version: { type: "number" } }, required: ["config_id_or_slug"] } },
1123
1124
  { name: "get_status", inputSchema: { type: "object", properties: {} } },
1124
1125
  { name: "sync_known", inputSchema: { type: "object", properties: { agent: { type: "string" }, category: { type: "string" } } } },
1126
+ { name: "sync_project", inputSchema: { type: "object", properties: { project_dir: { type: "string" } } } },
1125
1127
  { name: "render_template", inputSchema: { type: "object", properties: { id_or_slug: { type: "string" }, vars: { type: "object" }, use_env: { type: "boolean" } }, required: ["id_or_slug"] } },
1126
1128
  { name: "scan_secrets", inputSchema: { type: "object", properties: { id_or_slug: { type: "string" }, fix: { type: "boolean" } } } },
1127
1129
  { name: "search_tools", inputSchema: { type: "object", properties: { query: { type: "string" } }, required: ["query"] } },
@@ -1251,6 +1253,12 @@ server.setRequestHandler(CallToolRequestSchema, async (req) => {
1251
1253
  });
1252
1254
  return ok(result);
1253
1255
  }
1256
+ case "sync_project": {
1257
+ const { syncProject: syncProject2 } = await Promise.resolve().then(() => (init_sync(), exports_sync));
1258
+ const dir = args["project_dir"] || process.cwd();
1259
+ const result = await syncProject2({ projectDir: dir });
1260
+ return ok(result);
1261
+ }
1254
1262
  case "render_template": {
1255
1263
  const { renderTemplate: renderTemplate2 } = await Promise.resolve().then(() => (init_template(), exports_template));
1256
1264
  const config = getConfig(args["id_or_slug"]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/configs",
3
- "version": "0.2.20",
3
+ "version": "0.2.21",
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",