@projectctx/agent 0.1.0-alpha.1 → 0.1.0-alpha.2

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.
Files changed (3) hide show
  1. package/dist/cli.js +0 -0
  2. package/dist/mcp.js +2 -1
  3. package/package.json +12 -12
package/dist/cli.js CHANGED
File without changes
package/dist/mcp.js CHANGED
@@ -29,9 +29,10 @@ export function createMcpServer(logger) {
29
29
  logger?.debug("creating MCP server");
30
30
  const server = new McpServer({ name: "projectctx-agent", version: "0.1.0-alpha.0" });
31
31
  logger?.debug("registering MCP tool: scan_workspace");
32
- server.tool("scan_workspace", "Scan a local workspace with the ProjectCtx scanner and return structured JSON. Read-only: no memory writes or cloud calls.", {
32
+ server.tool("scan_workspace", "Scan a local workspace with the ProjectCtx scanner and return structured JSON. Read-only: no memory writes or cloud calls. The result includes auditTargets[]: EVERY content-bearing folder — git repos AND plain folders (docs, notes, research, campaigns) — each with facts and a suggestedReadPlan. Coverage mandate: do not silently skip any audit target, and never infer meaning from folder or file names — meaning comes from reading the actual file contents. If your host can spawn subagents, fan out MULTIPLE IN PARALLEL, roughly one focused subagent per audit target; when targets number in the dozens or more, cluster related targets per subagent rather than skipping any. If the host cannot spawn subagents, make sequential focused passes over each target. Each subagent must open and read its target's suggestedReadPlan files, then read further into the real source/docs/notes until it genuinely understands the target (read real code in repos, not just the README), and report anything meaningful it finds. Subagents return memory candidates — never writes — e.g. Project, Person, Decision, Research Thread, Campaign, Experiment, Service, Dataset, Open Question, Source (open-ended; capture other meaningful things too), each with title, type, why it matters, source file path(s), confidence, suggested collection, and suggested relationships. Then dedupe candidates against existing memory (get_workspace_schema + search_memory/query_records): exact match → reuse/update; similar → warn and ask the user; propose a new collection only if genuinely needed. Ask the user before writing anything; use the preview/apply flow only.", {
33
33
  rootPath: z.string().optional(),
34
34
  maxRepos: z.number().int().positive().optional(),
35
+ maxTargets: z.number().int().positive().optional(),
35
36
  maxFilesPerRepo: z.number().int().positive().optional(),
36
37
  maxExcerptBytes: z.number().int().positive().optional(),
37
38
  maxDepth: z.number().int().positive().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectctx/agent",
3
- "version": "0.1.0-alpha.1",
3
+ "version": "0.1.0-alpha.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -20,9 +20,17 @@
20
20
  "default": "./dist/index.js"
21
21
  }
22
22
  },
23
+ "scripts": {
24
+ "build": "tsc -p tsconfig.json",
25
+ "typecheck": "tsc -p tsconfig.json --noEmit",
26
+ "test": "vitest run",
27
+ "dev": "tsx src/cli.ts",
28
+ "alpha:smoke": "tsx scripts/alpha-smoke.ts",
29
+ "pack:verify": "node scripts/verify-package.mjs"
30
+ },
23
31
  "dependencies": {
24
- "@projectctx/contracts": "0.1.0-alpha.1",
25
- "@projectctx/indexer": "0.1.0-alpha.1",
32
+ "@projectctx/contracts": "0.1.0-alpha.2",
33
+ "@projectctx/indexer": "0.1.0-alpha.2",
26
34
  "@modelcontextprotocol/sdk": "^1.13.1",
27
35
  "@napi-rs/keyring": "^1.3.0",
28
36
  "zod": "^3.25.67"
@@ -33,13 +41,5 @@
33
41
  "tsx": "^4.19.4",
34
42
  "typescript": "^5.8.3",
35
43
  "vitest": "^3.2.3"
36
- },
37
- "scripts": {
38
- "build": "tsc -p tsconfig.json",
39
- "typecheck": "tsc -p tsconfig.json --noEmit",
40
- "test": "vitest run",
41
- "dev": "tsx src/cli.ts",
42
- "alpha:smoke": "tsx scripts/alpha-smoke.ts",
43
- "pack:verify": "node scripts/verify-package.mjs"
44
44
  }
45
- }
45
+ }