@ksm0709/context 0.0.25 → 0.0.26
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/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp.js +27 -21
- package/dist/omx/index.mjs +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
package/dist/index.js
CHANGED
package/dist/mcp.js
CHANGED
|
@@ -32789,7 +32789,7 @@ Snippet: ${r.snippet}`).join(`
|
|
|
32789
32789
|
textToAppend = `
|
|
32790
32790
|
` + textToAppend;
|
|
32791
32791
|
}
|
|
32792
|
-
} catch
|
|
32792
|
+
} catch {}
|
|
32793
32793
|
if (!textToAppend.endsWith(`
|
|
32794
32794
|
`)) {
|
|
32795
32795
|
textToAppend += `
|
|
@@ -32982,7 +32982,7 @@ ${tags.map((t) => ` - ${t}`).join(`
|
|
|
32982
32982
|
textToAppend = `
|
|
32983
32983
|
` + textToAppend;
|
|
32984
32984
|
}
|
|
32985
|
-
} catch
|
|
32985
|
+
} catch {}
|
|
32986
32986
|
if (!textToAppend.endsWith(`
|
|
32987
32987
|
`)) {
|
|
32988
32988
|
textToAppend += `
|
|
@@ -33015,37 +33015,43 @@ ${tags.map((t) => ` - ${t}`).join(`
|
|
|
33015
33015
|
server.registerTool("submit_turn_complete", {
|
|
33016
33016
|
description: "Mark the current turn as complete after verifying all required steps",
|
|
33017
33017
|
inputSchema: {
|
|
33018
|
-
|
|
33019
|
-
|
|
33020
|
-
|
|
33021
|
-
|
|
33022
|
-
|
|
33018
|
+
daily_note_update_proof: exports_external.string().min(5).optional().describe("Provide the file path of the updated daily note, or explicitly write 'skipped' if no update was needed."),
|
|
33019
|
+
knowledge_note_proof: exports_external.string().min(5).optional().describe("Provide the file path of the created knowledge note, or explicitly write 'skipped' if no note was created."),
|
|
33020
|
+
quality_check_output: exports_external.string().min(20).describe("Provide the last 5 lines of the `mise run lint && mise run test` execution output to prove quality checks passed."),
|
|
33021
|
+
checkpoint_commit_hashes: exports_external.string().min(7).describe("Provide the output of `git log -1 --oneline` or an explanation if the task was too small for checkpoints."),
|
|
33022
|
+
scope_review_notes: exports_external.string().min(10).describe("Provide a brief sentence confirming the scope check and that the work did not exceed the intended boundaries.")
|
|
33023
33023
|
}
|
|
33024
33024
|
}, async ({
|
|
33025
|
-
|
|
33026
|
-
|
|
33027
|
-
|
|
33028
|
-
|
|
33029
|
-
|
|
33025
|
+
daily_note_update_proof,
|
|
33026
|
+
knowledge_note_proof,
|
|
33027
|
+
quality_check_output,
|
|
33028
|
+
checkpoint_commit_hashes,
|
|
33029
|
+
scope_review_notes
|
|
33030
33030
|
}) => {
|
|
33031
33031
|
const missingSteps = [];
|
|
33032
33032
|
const warnings = [];
|
|
33033
|
-
if (
|
|
33033
|
+
if (!daily_note_update_proof || daily_note_update_proof.toLowerCase() === "skipped") {
|
|
33034
33034
|
warnings.push("Warning: Daily note was skipped. This is allowed, but ensure no important context is lost.");
|
|
33035
|
-
if (
|
|
33035
|
+
} else if (daily_note_update_proof.length < 5) {
|
|
33036
|
+
missingSteps.push("daily_note_update_proof (too short)");
|
|
33037
|
+
}
|
|
33038
|
+
if (!knowledge_note_proof || knowledge_note_proof.toLowerCase() === "skipped") {
|
|
33036
33039
|
warnings.push("Warning: Knowledge note was skipped. This is allowed, but ensure no important context is lost.");
|
|
33037
|
-
if (
|
|
33038
|
-
missingSteps.push("
|
|
33039
|
-
|
|
33040
|
-
|
|
33041
|
-
|
|
33042
|
-
|
|
33040
|
+
} else if (knowledge_note_proof.length < 5) {
|
|
33041
|
+
missingSteps.push("knowledge_note_proof (too short)");
|
|
33042
|
+
}
|
|
33043
|
+
if (!quality_check_output || quality_check_output.length < 20)
|
|
33044
|
+
missingSteps.push("quality_check_output");
|
|
33045
|
+
if (!checkpoint_commit_hashes || checkpoint_commit_hashes.length < 7)
|
|
33046
|
+
missingSteps.push("checkpoint_commit_hashes");
|
|
33047
|
+
if (!scope_review_notes || scope_review_notes.length < 10)
|
|
33048
|
+
missingSteps.push("scope_review_notes");
|
|
33043
33049
|
if (missingSteps.length > 0) {
|
|
33044
33050
|
return {
|
|
33045
33051
|
content: [
|
|
33046
33052
|
{
|
|
33047
33053
|
type: "text",
|
|
33048
|
-
text: `Error: The following required steps were not completed: ${missingSteps.join(", ")}. You must
|
|
33054
|
+
text: `Error: The following required steps were not completed or provided insufficient proof: ${missingSteps.join(", ")}. You must provide valid proof for all steps before finishing the turn.`
|
|
33049
33055
|
}
|
|
33050
33056
|
],
|
|
33051
33057
|
isError: true
|
package/dist/omx/index.mjs
CHANGED