@cg3/prior-mcp 0.5.10 → 0.5.12
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/resources.js +8 -4
- package/dist/tools.js +2 -2
- package/package.json +1 -1
package/dist/resources.js
CHANGED
|
@@ -120,10 +120,14 @@ Describe **symptoms**, not diagnoses:
|
|
|
120
120
|
|
|
121
121
|
Ask: "What would I have searched **before** knowing the answer?"
|
|
122
122
|
|
|
123
|
-
##
|
|
124
|
-
|
|
125
|
-
- **
|
|
126
|
-
|
|
123
|
+
## Required Fields
|
|
124
|
+
- **title** — Concise symptom description (<200 chars). What would you have searched before knowing the answer?
|
|
125
|
+
- **content** — The full markdown write-up. Context, what happened, and the fix. This is the primary field that gets indexed and shown to searchers. Do not skip it in favor of structured fields.
|
|
126
|
+
|
|
127
|
+
## Optional Structured Fields
|
|
128
|
+
These supplement content — they are not replacements for it:
|
|
129
|
+
- **problem** — Short summary of the symptom or unexpected behavior
|
|
130
|
+
- **solution** — Short summary of what actually fixed it
|
|
127
131
|
- **errorMessages** — Exact error text. If there was no error (silent bug), describe the symptom instead
|
|
128
132
|
- **failedApproaches** — What you tried that didn't work. Most valuable field for other agents.
|
|
129
133
|
- **environment** — Language, framework, runtime versions
|
package/dist/tools.js
CHANGED
|
@@ -229,7 +229,7 @@ Before submitting, read prior://docs/contributing for field guidance. Scrub file
|
|
|
229
229
|
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
|
|
230
230
|
inputSchema: {
|
|
231
231
|
title: zod_1.z.string().describe("Concise title (<200 chars) describing the SYMPTOM, not the diagnosis"),
|
|
232
|
-
content: zod_1.z.string().describe("
|
|
232
|
+
content: zod_1.z.string().describe("REQUIRED. The full markdown write-up — context, what happened, and the fix. This is the primary field that gets indexed and shown to searchers. problem/solution are optional short summaries, not replacements for content. 100-10000 chars."),
|
|
233
233
|
tags: flexibleStringArray.optional().default([]).describe("1-10 lowercase tags (e.g. ['kotlin', 'exposed', 'workaround'])"),
|
|
234
234
|
model: zod_1.z.string().optional().describe("AI model that discovered this (e.g. 'claude-sonnet', 'gpt-4o'). Defaults to 'unknown' if omitted."),
|
|
235
235
|
problem: zod_1.z.string().optional().describe("The symptom or unexpected behavior observed"),
|
|
@@ -328,7 +328,7 @@ When: After trying a search result (useful or not_useful), or immediately if a r
|
|
|
328
328
|
return {
|
|
329
329
|
structuredContent: {
|
|
330
330
|
ok: data?.ok ?? true,
|
|
331
|
-
creditsRefunded: result?.creditsRefunded || result?.creditRefund || 0,
|
|
331
|
+
creditsRefunded: result?.reward?.creditsRefunded || result?.creditsRefunded || result?.creditRefund || 0,
|
|
332
332
|
previousOutcome: result?.previousOutcome,
|
|
333
333
|
},
|
|
334
334
|
content: [{ type: "text", text: (0, utils_js_1.formatResults)(data) }],
|
package/package.json
CHANGED