@projectctx/agent 0.1.0-alpha.0 → 0.1.0-alpha.1
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/cli.js +0 -0
- package/dist/mcp.js +1 -1
- package/package.json +12 -12
package/dist/cli.js
CHANGED
|
File without changes
|
package/dist/mcp.js
CHANGED
|
@@ -58,7 +58,7 @@ export function createMcpServer(logger) {
|
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
logger?.debug("registering MCP tool: preview_code_memory");
|
|
61
|
-
server.tool("preview_code_memory", "Compile codebase scan context and an agent-written code brief into a ProjectCtx memory preview. No durable memory writes are applied.", previewCodeMemorySchema.shape, async (input) => {
|
|
61
|
+
server.tool("preview_code_memory", "Compile codebase scan context and an agent-written code brief into a ProjectCtx memory preview. No durable memory writes are applied. Write each repo brief self-contained: describe the repo on its own terms; do not define it by contrast to sibling records. To group repos, reuse an existing Project rather than forking a parallel one — the compiler reuses an exact-name match and returns warnings that surface similar-named existing projects. Read the returned warnings before you apply. To reuse a surfaced project, pass its externalId as projectExternalId when it has one, or reuse it by its exact title/alias when it does not — projectExternalId accepts only an externalId, never a record id. The flow self-provisions its own code ontology: the Repos and Projects collections and the builds relationship type are reused if they already exist, otherwise created on the fly, and are POPULATED in the same pass (repo + project records, builds links) — so scanning into a brand-new empty workspace needs no seeding. Separately, if the repo context clearly describes an entity type no existing collection covers (e.g. Services, People, Datasets), you may propose it in the optional collections[] input; those emergent collections are created/reconciled by name (exact-name reuse, fuzzy warning) but are NOT populated by code-memory yet — they are created empty. Prefer an existing collection; do not propose one just because a topic is mentioned in passing.", previewCodeMemorySchema.shape, async (input) => {
|
|
62
62
|
try {
|
|
63
63
|
return jsonText(await runPreviewCodeMemory(previewCodeMemorySchema.parse(input), logger));
|
|
64
64
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@projectctx/agent",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -20,17 +20,9 @@
|
|
|
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
|
-
},
|
|
31
23
|
"dependencies": {
|
|
32
|
-
"@projectctx/contracts": "0.1.0-alpha.
|
|
33
|
-
"@projectctx/indexer": "0.1.0-alpha.
|
|
24
|
+
"@projectctx/contracts": "0.1.0-alpha.1",
|
|
25
|
+
"@projectctx/indexer": "0.1.0-alpha.1",
|
|
34
26
|
"@modelcontextprotocol/sdk": "^1.13.1",
|
|
35
27
|
"@napi-rs/keyring": "^1.3.0",
|
|
36
28
|
"zod": "^3.25.67"
|
|
@@ -41,5 +33,13 @@
|
|
|
41
33
|
"tsx": "^4.19.4",
|
|
42
34
|
"typescript": "^5.8.3",
|
|
43
35
|
"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
|
+
}
|