mason-context 0.20.1 → 0.20.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.
package/dist/mason-mcp.js CHANGED
@@ -3272,8 +3272,15 @@ function completionSummary(findings, reportPath) {
3272
3272
  `Mason: ${findings.length} new or worsened finding(s) since the retained baseline.`,
3273
3273
  ...findings.slice(0, MAX_COMPLETION_FINDINGS).map((f) => {
3274
3274
  const source = f.current ?? f.original;
3275
- const detail = source.evidence.kind === "decision-anchor" ? `Changes to ${source.evidence.changedFiles.join(", ")} may affect decision "${source.evidence.title}". Inspect the diff if relevant; acceptance is not required.` : source.message;
3276
- return `[${f.status === "unresolved" ? "issue" : "advisory"}] ${safe(source.anchor.doc)}: ${safe(detail)}`;
3275
+ if (source.evidence.kind === "decision-anchor") {
3276
+ const evidence = source.evidence;
3277
+ return [
3278
+ `[advisory] Decision "${safe(evidence.title)}" may no longer hold: ${evidence.changedFiles.length} anchored file(s) changed.`,
3279
+ `Inspect the decision and diff with review_decision(action: "prepare", id: ${JSON.stringify(evidence.decisionId)}); acceptance is not required.`,
3280
+ `Changed files: ${safe(evidence.changedFiles.join(", "))}`
3281
+ ].join("\n");
3282
+ }
3283
+ return `[${f.status === "unresolved" ? "issue" : "advisory"}] ${safe(source.anchor.doc)}: ${safe(source.message)}`;
3277
3284
  }),
3278
3285
  ...findings.length > MAX_COMPLETION_FINDINGS ? [`${findings.length - MAX_COMPLETION_FINDINGS} more in the report; pending later feedback.`] : [],
3279
3286
  `Evidence: ${reportPath}. Explicit audit: mason_automation(action: "check").`,
@@ -4135,7 +4142,7 @@ var init_evidence = __esm({
4135
4142
  init_dead_command();
4136
4143
  init_storage();
4137
4144
  init_advisory_review();
4138
- engineVersion = true ? "0.20.1" : "development";
4145
+ engineVersion = true ? "0.20.2" : "development";
4139
4146
  hash = (value) => createHash3("sha256").update(JSON.stringify(value)).digest("hex");
4140
4147
  content = readAuditInput;
4141
4148
  cacheSchema = z9.object({ version: z9.literal(1), entries: z9.record(z9.object({ key: z9.string(), result: checkResultSchema })), digest: z9.string() });
@@ -4261,7 +4268,7 @@ var init_launcher = __esm({
4261
4268
  "use strict";
4262
4269
  init_evidence();
4263
4270
  init_model();
4264
- executingVersion = () => true ? "0.20.1" : "development";
4271
+ executingVersion = () => true ? "0.20.2" : "development";
4265
4272
  mcpCommand = (host) => globalCommand(["--setup-host", host, "mcp"]);
4266
4273
  hookCommand = (host) => `mason --setup-host ${host} auto`;
4267
4274
  }
@@ -10190,7 +10197,7 @@ function createMcpServer() {
10190
10197
  const server = new McpServer(
10191
10198
  {
10192
10199
  name: "mason",
10193
- version: "0.20.1"
10200
+ version: "0.20.2"
10194
10201
  },
10195
10202
  {
10196
10203
  instructions: (setupNotice ? setupNotice + "\n\n" : "") + 'Mason retrieves recorded decisions, file impact, and optional feature/flow maps. Use get_context with the task and known files, and get_impact before editing. Save learned rationale and constraints with save_decision as soon as evidence supports them, without waiting for implementation or merge; review and commit the local records through the project workflow. These tools work without initialization or a concept map. Consult trust and diagnostics: changed or unknown freshness needs source inspection, stale or unknown map verification needs a fresh review, recorded failed verdicts need correction, and proposals are suggestions and legacy records are unreviewed. Accepted decisions are recorded team constraints, still subject to freshness checks. Use review_decision to prepare code evidence and record only authorized acceptance, reaffirmation, or retirement. Never invent a reviewer or treat these recorded identities as authenticated approval. mason_init returns documentation audit and committed-diff review findings with a quickstart guide. Use mode: "map" only when a full architecture map is requested. A missing map is not a setup failure; use decisions and source evidence. get_snapshot provides architecture navigation when a map is available. The mason-audit and mason-review CLIs also work without setup.'