mason-context 0.17.1 → 0.17.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/CHANGELOG.md +7 -0
- package/dist/mason-auto.js +70 -5
- package/dist/mason-auto.js.map +1 -1
- package/dist/mason-mcp.js +8 -3
- package/dist/mason-mcp.js.map +1 -1
- package/dist/mason.js +97 -17
- package/dist/mason.js.map +1 -1
- package/package.json +1 -1
package/dist/mason-mcp.js
CHANGED
|
@@ -3614,7 +3614,7 @@ var init_evidence = __esm({
|
|
|
3614
3614
|
init_storage();
|
|
3615
3615
|
init_advisory_review();
|
|
3616
3616
|
exec7 = promisify9(execFile9);
|
|
3617
|
-
engineVersion = true ? "0.17.
|
|
3617
|
+
engineVersion = true ? "0.17.2" : "development";
|
|
3618
3618
|
hash = (value) => createHash3("sha256").update(JSON.stringify(value)).digest("hex");
|
|
3619
3619
|
content = readAuditInput;
|
|
3620
3620
|
cacheSchema = z8.object({ version: z8.literal(1), entries: z8.record(z8.object({ key: z8.string(), result: checkResultSchema })), digest: z8.string() });
|
|
@@ -3706,7 +3706,7 @@ var init_launcher = __esm({
|
|
|
3706
3706
|
"use strict";
|
|
3707
3707
|
init_evidence();
|
|
3708
3708
|
init_model();
|
|
3709
|
-
executingVersion = () => true ? "0.17.
|
|
3709
|
+
executingVersion = () => true ? "0.17.2" : "development";
|
|
3710
3710
|
mcpCommand = (host) => globalCommand(["--setup-host", host, "mcp"]);
|
|
3711
3711
|
hookCommand = (host) => `mason --setup-host ${host} auto`;
|
|
3712
3712
|
}
|
|
@@ -6382,6 +6382,7 @@ async function selectHost(root, explicit) {
|
|
|
6382
6382
|
throw new Error("Choose the assistant for setup with --host codex or --host claude.");
|
|
6383
6383
|
}
|
|
6384
6384
|
async function setupProject(dir, options = {}) {
|
|
6385
|
+
options.progress?.step("Checking project configuration");
|
|
6385
6386
|
const ws = await workspace(dir);
|
|
6386
6387
|
const host = await selectHost(ws.root, options.host);
|
|
6387
6388
|
return withLock(ws.root, ".mason/reports/setup-lock", async () => {
|
|
@@ -6410,11 +6411,14 @@ async function setupProject(dir, options = {}) {
|
|
|
6410
6411
|
const revision = !changed && previous ? previous.revision : randomUUID6();
|
|
6411
6412
|
const setup = existing ?? { version: 2, hosts: {} };
|
|
6412
6413
|
setup.hosts[host] = { configuredVersion: installed.version, revision, fingerprint, mcpFingerprint, instructions: instructions.map((e) => e.path) };
|
|
6414
|
+
options.progress?.step("Auditing documentation and preserving original findings");
|
|
6413
6415
|
const initial = await automate(ws.root, { event: "turn_start" });
|
|
6416
|
+
options.progress?.step("Reviewing project context and committed changes");
|
|
6414
6417
|
const findings = await inspectOnboarding(ws.root, options.base, options.evidence);
|
|
6415
6418
|
const receiptPath = ws.directory + "/setup-" + host + ".json";
|
|
6416
6419
|
const initialReportPath = previousReceipt?.initialReportPath ?? initial.report.reportPath;
|
|
6417
6420
|
const initialBaselinePaths = previousReceipt?.initialBaselinePaths ?? initial.report.baselinePaths;
|
|
6421
|
+
options.progress?.step(`Configuring ${host === "codex" ? "Codex" : "Claude Code"} integration`);
|
|
6418
6422
|
await writeStoreJson(ws.root, receiptPath, {
|
|
6419
6423
|
version: 1,
|
|
6420
6424
|
host,
|
|
@@ -6429,6 +6433,7 @@ async function setupProject(dir, options = {}) {
|
|
|
6429
6433
|
for (const edit of edits) if (await applyEdit(ws.root, edit)) changedFiles.push(edit.path);
|
|
6430
6434
|
if (await applyEdit(ws.root, { path: SETUP_PATH, before: setupBefore, after: JSON.stringify(setup, null, 2) + "\n" })) changedFiles.push(SETUP_PATH);
|
|
6431
6435
|
if (await applyEdit(ws.root, await completedHookOwnership(ws.root, hooks[0].path, configuredHook)) && !changedFiles.includes(ownership.path)) changedFiles.push(ownership.path);
|
|
6436
|
+
options.progress?.step("Checking configuration and retained findings");
|
|
6432
6437
|
const checked = await automate(ws.root, { event: "turn_start" });
|
|
6433
6438
|
const configured = await inspectHostConfig(ws.root, host, void 0);
|
|
6434
6439
|
await writeStoreJson(ws.root, receiptPath, {
|
|
@@ -9221,7 +9226,7 @@ function createMcpServer() {
|
|
|
9221
9226
|
const server = new McpServer(
|
|
9222
9227
|
{
|
|
9223
9228
|
name: "mason",
|
|
9224
|
-
version: "0.17.
|
|
9229
|
+
version: "0.17.2"
|
|
9225
9230
|
},
|
|
9226
9231
|
{
|
|
9227
9232
|
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; 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, failed verification needs 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.'
|