@hasna/project 0.1.6 → 0.1.7
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 +8 -1
- package/package.json +1 -1
package/dist/mcp/index.js
CHANGED
|
@@ -47379,6 +47379,11 @@ ${summary}` }] };
|
|
|
47379
47379
|
});
|
|
47380
47380
|
}
|
|
47381
47381
|
|
|
47382
|
+
// src/lib/status.ts
|
|
47383
|
+
function touchLastOpened(projectId) {
|
|
47384
|
+
getDatabase().run("UPDATE projects SET last_opened_at = ? WHERE id = ?", [new Date().toISOString(), projectId]);
|
|
47385
|
+
}
|
|
47386
|
+
|
|
47382
47387
|
// src/lib/generate.ts
|
|
47383
47388
|
import { writeFileSync as writeFileSync6, existsSync as existsSync8, readFileSync as readFileSync6 } from "fs";
|
|
47384
47389
|
import { join as join9 } from "path";
|
|
@@ -47598,9 +47603,10 @@ server.tool("projects_create", "Register a new project. Returns the project with
|
|
|
47598
47603
|
});
|
|
47599
47604
|
server.tool("projects_list", "List all registered projects", {
|
|
47600
47605
|
status: exports_external.enum(["active", "archived"]).optional().describe("Filter by status"),
|
|
47606
|
+
tags: exports_external.array(exports_external.string()).optional().describe("Filter by tags (AND \u2014 all tags must match)"),
|
|
47601
47607
|
limit: exports_external.number().optional().describe("Max results (default 50)")
|
|
47602
47608
|
}, async (input) => {
|
|
47603
|
-
const projects = listProjects({ status: input.status, limit: input.limit ?? 50 });
|
|
47609
|
+
const projects = listProjects({ status: input.status, tags: input.tags, limit: input.limit ?? 50 });
|
|
47604
47610
|
return {
|
|
47605
47611
|
content: [{ type: "text", text: JSON.stringify(projects, null, 2) }]
|
|
47606
47612
|
};
|
|
@@ -47686,6 +47692,7 @@ server.tool("projects_open", "Get the local path of a project so an AI agent can
|
|
|
47686
47692
|
isError: true
|
|
47687
47693
|
};
|
|
47688
47694
|
}
|
|
47695
|
+
touchLastOpened(project.id);
|
|
47689
47696
|
return {
|
|
47690
47697
|
content: [
|
|
47691
47698
|
{
|
package/package.json
CHANGED