@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 CHANGED
@@ -27,7 +27,7 @@ function resolveContextDir(projectDir) {
27
27
  // package.json
28
28
  var package_default = {
29
29
  name: "@ksm0709/context",
30
- version: "0.0.25",
30
+ version: "0.0.26",
31
31
  author: {
32
32
  name: "TaehoKang",
33
33
  email: "ksm07091@gmail.com"
package/dist/index.js CHANGED
@@ -25,7 +25,7 @@ import { join as join2 } from "path";
25
25
  // package.json
26
26
  var package_default = {
27
27
  name: "@ksm0709/context",
28
- version: "0.0.25",
28
+ version: "0.0.26",
29
29
  author: {
30
30
  name: "TaehoKang",
31
31
  email: "ksm07091@gmail.com"
package/dist/mcp.js CHANGED
@@ -32789,7 +32789,7 @@ Snippet: ${r.snippet}`).join(`
32789
32789
  textToAppend = `
32790
32790
  ` + textToAppend;
32791
32791
  }
32792
- } catch (err) {}
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 (err) {}
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
- daily_note_updated: exports_external.boolean().optional().default(false).describe("\uB370\uC77C\uB9AC \uB178\uD2B8\uC5D0 \uC911\uC694\uD55C \uCEE8\uD14D\uC2A4\uD2B8\uB97C \uAE30\uB85D\uD558\uC5EC \uB2E4\uC74C \uC138\uC158\uC774\uB098 \uC5D0\uC774\uC804\uD2B8 \uD300\uC774 \uCC38\uACE0\uD560 \uC218 \uC788\uB3C4\uB85D \uD558\uC138\uC694. \uAE30\uC874 \uB0B4\uC6A9 \uC218\uC815\uC740 \uBD88\uAC00\uD558\uBA70, \uC0C8\uB85C\uC6B4 \uBA54\uBAA8\uB97C \uCD94\uAC00 \uD558\uB294\uAC83\uB9CC \uAC00\uB2A5\uD569\uB2C8\uB2E4. \uCC38\uACE0 \uAC00\uC774\uB4DC: .context/guides/daily-note-guide.md \uD30C\uC77C\uC744 \uC77D\uACE0 \uC9C0\uCE68\uC744 \uB530\uB974\uC138\uC694. \uC2E4\uC81C\uB85C \uB3C4\uAD6C\uB97C \uC0AC\uC6A9\uD574 \uB178\uD2B8\uB97C \uC791\uC131\uD588\uAC70\uB098 \uAC80\uC99D\uC744 \uC218\uD589\uD55C \uACBD\uC6B0\uC5D0\uB9CC true\uB85C \uC124\uC815\uD558\uC138\uC694. \uAC70\uC9D3\uC73C\uB85C true\uB97C \uC785\uB825\uD558\uC9C0 \uB9C8\uC138\uC694. (Set to true ONLY if you actually performed this action. Do not fake it.)"),
33019
- knowledge_note_created: exports_external.boolean().optional().default(false).describe("\uC791\uC5C5\uAE30\uC5B5(\uB370\uC77C\uB9AC\uB178\uD2B8, \uC138\uC158 \uCEE8\uD14D\uC2A4\uD2B8)\uBCF4\uB2E4 \uC624\uB798 \uAE30\uC5B5\uB418\uC5B4\uC57C \uD558\uB294 \uC911\uC694\uD55C \uACB0\uC815, \uD328\uD134, \uC2E4\uC218, \uBC1C\uACAC\uC740 \uC9C0\uC2DD \uB178\uD2B8\uB85C \uAE30\uB85D\uD558\uC5EC \uD504\uB85C\uC81D\uD2B8\uC758 \uC9D1\uB2E8 \uC9C0\uC2DD\uC73C\uB85C \uB0A8\uAE30\uC138\uC694. \uCC38\uACE0 \uAC00\uC774\uB4DC: .context/guides/note-guide.md \uD30C\uC77C\uC744 \uC77D\uACE0 \uC9C0\uCE68\uC744 \uB530\uB974\uC138\uC694. \uC2E4\uC81C\uB85C \uB3C4\uAD6C\uB97C \uC0AC\uC6A9\uD574 \uB178\uD2B8\uB97C \uC791\uC131\uD588\uAC70\uB098 \uAC80\uC99D\uC744 \uC218\uD589\uD55C \uACBD\uC6B0\uC5D0\uB9CC true\uB85C \uC124\uC815\uD558\uC138\uC694. \uAC70\uC9D3\uC73C\uB85C true\uB97C \uC785\uB825\uD558\uC9C0 \uB9C8\uC138\uC694. (Set to true ONLY if you actually performed this action. Do not fake it.)"),
33020
- quality_check_passed: exports_external.boolean().describe("\uC791\uC5C5 \uC644\uB8CC \uC804\uC5D0 \uBC18\uB4DC\uC2DC \uC218\uD589\uD558\uC138\uC694. \uCF54\uB4DC \uB9B0\uD2B8, \uD3EC\uB9F7\uD130, \uD14C\uC2A4\uD2B8, \uBE4C\uB4DC, \uCF54\uB4DC\uB9AC\uBDF0\uB97C \uC2E4\uD589\uD558\uC5EC \uC791\uC5C5 \uACB0\uACFC\uBB3C\uC774 \uD504\uB85C\uC81D\uD2B8\uC758 \uD488\uC9C8 \uAE30\uC900\uC744 \uCDA9\uC871\uD558\uB294\uC9C0 \uD655\uC778\uD558\uC138\uC694. \uCC38\uACE0 \uAC00\uC774\uB4DC: .context/guides/quality-check.md \uD30C\uC77C\uC744 \uC77D\uACE0 \uC9C0\uCE68\uC744 \uB530\uB974\uC138\uC694. \uC2E4\uC81C\uB85C \uB3C4\uAD6C\uB97C \uC0AC\uC6A9\uD574 \uB178\uD2B8\uB97C \uC791\uC131\uD588\uAC70\uB098 \uAC80\uC99D\uC744 \uC218\uD589\uD55C \uACBD\uC6B0\uC5D0\uB9CC true\uB85C \uC124\uC815\uD558\uC138\uC694. \uAC70\uC9D3\uC73C\uB85C true\uB97C \uC785\uB825\uD558\uC9C0 \uB9C8\uC138\uC694. (Set to true ONLY if you actually performed this action. Do not fake it.)"),
33021
- checkpoints_committed: exports_external.boolean().describe("\uC791\uC5C5\uC774 \uAE38\uC5B4\uC9C8 \uACBD\uC6B0, \uC911\uC694\uD55C \uB2E8\uACC4\uB9C8\uB2E4 \uCCB4\uD06C\uD3EC\uC778\uD2B8 \uCEE4\uBC0B\uC744 \uD558\uC5EC \uC791\uC5C5 \uB0B4\uC6A9\uC744 \uC548\uC804\uD558\uAC8C \uC800\uC7A5\uD558\uACE0, \uD544\uC694 \uC2DC \uC774\uC804 \uC0C1\uD0DC\uB85C \uB3CC\uC544\uAC08 \uC218 \uC788\uB3C4\uB85D \uD558\uC138\uC694. \uCC38\uACE0 \uAC00\uC774\uB4DC: .context/guides/commit-guide.md \uD30C\uC77C\uC744 \uC77D\uACE0 \uC9C0\uCE68\uC744 \uB530\uB974\uC138\uC694. \uC2E4\uC81C\uB85C \uB3C4\uAD6C\uB97C \uC0AC\uC6A9\uD574 \uB178\uD2B8\uB97C \uC791\uC131\uD588\uAC70\uB098 \uAC80\uC99D\uC744 \uC218\uD589\uD55C \uACBD\uC6B0\uC5D0\uB9CC true\uB85C \uC124\uC815\uD558\uC138\uC694. \uAC70\uC9D3\uC73C\uB85C true\uB97C \uC785\uB825\uD558\uC9C0 \uB9C8\uC138\uC694. (Set to true ONLY if you actually performed this action. Do not fake it.)"),
33022
- scope_reviewed: exports_external.boolean().describe("\uC0AC\uC6A9\uC790\uAC00 \uC758\uB3C4\uD55C \uC791\uC5C5 \uBC94\uC704\uB97C \uBC97\uC5B4\uB098\uC9C0 \uC54A\uC558\uB294\uC9C0, \uC791\uC5C5\uC774 \uB108\uBB34 \uD06C\uAC70\uB098 \uBCF5\uC7A1\uD574\uC9C0\uC9C0\uB294 \uC54A\uC558\uB294\uC9C0 \uAC80\uD1A0\uD558\uC138\uC694. \uCC38\uACE0 \uAC00\uC774\uB4DC: .context/guides/scope-review.md \uD30C\uC77C\uC744 \uC77D\uACE0 \uC9C0\uCE68\uC744 \uB530\uB974\uC138\uC694. \uC2E4\uC81C\uB85C \uB3C4\uAD6C\uB97C \uC0AC\uC6A9\uD574 \uB178\uD2B8\uB97C \uC791\uC131\uD588\uAC70\uB098 \uAC80\uC99D\uC744 \uC218\uD589\uD55C \uACBD\uC6B0\uC5D0\uB9CC true\uB85C \uC124\uC815\uD558\uC138\uC694. \uAC70\uC9D3\uC73C\uB85C true\uB97C \uC785\uB825\uD558\uC9C0 \uB9C8\uC138\uC694. (Set to true ONLY if you actually performed this action. Do not fake it.)")
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
- daily_note_updated = false,
33026
- knowledge_note_created = false,
33027
- quality_check_passed,
33028
- checkpoints_committed,
33029
- scope_reviewed
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 (daily_note_updated === false)
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 (knowledge_note_created === false)
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 (!quality_check_passed)
33038
- missingSteps.push("quality_check_passed");
33039
- if (!checkpoints_committed)
33040
- missingSteps.push("checkpoints_committed");
33041
- if (!scope_reviewed)
33042
- missingSteps.push("scope_reviewed");
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 complete all steps before finishing the turn.`
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
@@ -95,7 +95,7 @@ import { join as join3 } from "node:path";
95
95
  // package.json
96
96
  var package_default = {
97
97
  name: "@ksm0709/context",
98
- version: "0.0.25",
98
+ version: "0.0.26",
99
99
  author: {
100
100
  name: "TaehoKang",
101
101
  email: "ksm07091@gmail.com"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ksm0709/context",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "author": {
5
5
  "name": "TaehoKang",
6
6
  "email": "ksm07091@gmail.com"