@decocms/parity 0.34.0 → 0.34.1

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.
Files changed (2) hide show
  1. package/dist/cli.js +11 -7
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -76262,8 +76262,9 @@ var STUDIO_LOGIN_HINT = "run `bunx decocms auth login` once (or set PARITY_STUDI
76262
76262
  function studioConfigFromEnv(env = process.env, deps = {}) {
76263
76263
  const url = env.PARITY_STUDIO_URL;
76264
76264
  const token = env.PARITY_STUDIO_TOKEN;
76265
+ const project = env.PARITY_STUDIO_PROJECT || undefined;
76265
76266
  if (url && token)
76266
- return { url: mcpEndpoint(url), token };
76267
+ return { url: mcpEndpoint(url), token, project };
76267
76268
  const host = url ? new URL(mcpEndpoint(url)).host : "studio.decocms.com";
76268
76269
  const home = env.DECOCMS_HOME || join44(env.HOME || homedir4(), "deco");
76269
76270
  const file = join44(home, `session.${host}.json`);
@@ -76280,7 +76281,7 @@ function studioConfigFromEnv(env = process.env, deps = {}) {
76280
76281
  }
76281
76282
  const origin = session.target?.replace(/\/+$/, "") || `https://${host}`;
76282
76283
  const endpoint = url ? mcpEndpoint(url) : env.PARITY_STUDIO_ORG ? `${origin}/api/${env.PARITY_STUDIO_ORG}/mcp/self` : `${origin}/mcp/self`;
76283
- return { url: endpoint, token: session.accessToken };
76284
+ return { url: endpoint, token: session.accessToken, project };
76284
76285
  }
76285
76286
  function readSessionFile(file) {
76286
76287
  try {
@@ -76372,7 +76373,8 @@ async function syncBoardToStudio(board, cfg, opts = {}, call = callTool2) {
76372
76373
  title,
76373
76374
  description,
76374
76375
  status,
76375
- ...opts.repo ? { repo: opts.repo } : {}
76376
+ ...opts.repo ? { repo: opts.repo } : {},
76377
+ ...cfg.project ? { virtualMcpId: cfg.project } : {}
76376
76378
  });
76377
76379
  result.created += 1;
76378
76380
  return created.item?.id;
@@ -76459,8 +76461,8 @@ async function taskPrs(cfg, taskId, call = callTool2) {
76459
76461
  return res.prs ?? [];
76460
76462
  }
76461
76463
  async function automatedColumns(cfg, call = callTool2) {
76462
- const res = await call(cfg, "TASK_BOARD_AUTOMATION_LIST", {});
76463
- return (res.automations ?? []).map((a) => a.columnKey).filter((k) => Boolean(k));
76464
+ const res = await call(cfg, "AUTOMATION_LIST", cfg.project ? { virtual_mcp_id: cfg.project } : {});
76465
+ return (res.automations ?? []).filter((a) => a.active !== false).flatMap((a) => a.board_triggers ?? []).filter((t) => t.type === "board_column_transition").map((t) => t.column_key);
76464
76466
  }
76465
76467
  async function moveTask(cfg, taskId, status, call = callTool2) {
76466
76468
  await call(cfg, "TASK_BOARD_ITEM_UPDATE", { id: taskId, status });
@@ -80694,7 +80696,8 @@ async function fileSweepCards(issues, run, cfg, opts = {}) {
80694
80696
 
80695
80697
  ${body}` : body,
80696
80698
  status: "triage",
80697
- ...opts.repo ? { repo: opts.repo } : {}
80699
+ ...opts.repo ? { repo: opts.repo } : {},
80700
+ ...cfg.project ? { virtualMcpId: cfg.project } : {}
80698
80701
  });
80699
80702
  if (e.action === "regression")
80700
80703
  result.regressions += 1;
@@ -80719,7 +80722,8 @@ ${body}` : body,
80719
80722
  title: sTitle,
80720
80723
  description: sBody,
80721
80724
  status: "triage",
80722
- ...opts.repo ? { repo: opts.repo } : {}
80725
+ ...opts.repo ? { repo: opts.repo } : {},
80726
+ ...cfg.project ? { virtualMcpId: cfg.project } : {}
80723
80727
  });
80724
80728
  result.summaryRef = created.item ? refOf(created.item) : undefined;
80725
80729
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decocms/parity",
3
- "version": "0.34.0",
3
+ "version": "0.34.1",
4
4
  "description": "E2E parity validator for site migrations. Compares prod vs cand and reports UI, functional, SEO, visual, and Web Vitals deltas with an LLM-ranked HTML report.",
5
5
  "type": "module",
6
6
  "license": "MIT",