@mrrlin-dev/mcp 0.4.213 → 0.4.214

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/bin.cjs +27 -6
  2. package/package.json +1 -1
package/dist/bin.cjs CHANGED
@@ -64313,6 +64313,7 @@ var openApiOperationIds = {
64313
64313
  listProjects: "listProjects",
64314
64314
  listTaskDependencies: "listTaskDependencies",
64315
64315
  listTasks: "listTasks",
64316
+ getDraftConstitutionV1: "getDraftConstitutionV1",
64316
64317
  getDraftLinkV1: "getDraftLinkV1",
64317
64318
  getTaskBlockerStatusV1: "getTaskBlockerStatusV1",
64318
64319
  listTaskEvents: "listTaskEvents",
@@ -66523,6 +66524,10 @@ var draftLinkResponseSchema = external_exports.discriminatedUnion("kind", [
66523
66524
  }).strict(),
66524
66525
  external_exports.object({ contract: external_exports.literal("draft-link-v1"), kind: external_exports.literal("missing") }).strict()
66525
66526
  ]);
66527
+ var draftConstitutionResponseSchema = external_exports.discriminatedUnion("kind", [
66528
+ external_exports.object({ contract: external_exports.literal("draft-constitution-v1"), kind: external_exports.literal("missing") }).strict(),
66529
+ external_exports.object({ contract: external_exports.literal("draft-constitution-v1"), kind: external_exports.literal("found"), markdownBody: external_exports.string() }).strict()
66530
+ ]);
66526
66531
  var linkedTaskPageIdSchema = mrrlinWikiPageIdSchema.max(128);
66527
66532
  var linkedTaskResponseSchema = external_exports.object({
66528
66533
  contract: external_exports.literal("spec-linked-task-v1"),
@@ -69428,6 +69433,10 @@ function createMrrlinClient(config2) {
69428
69433
  const body = await requestBoundedJson(path40, 52, options?.signal);
69429
69434
  return blockerStatusResponseSchema.parse(body).active;
69430
69435
  },
69436
+ async getDraftConstitutionV1(projectSlug, options) {
69437
+ const path40 = `${projectPath(projectSlug)}/draft-constitution/v1`;
69438
+ return draftConstitutionResponseSchema.parse(await requestBoundedJson(path40, 256 * 1024, options?.signal));
69439
+ },
69431
69440
  async getDraftLinkV1(projectSlug, taskId, options) {
69432
69441
  const path40 = `${projectPath(projectSlug)}/tasks/${encodeURIComponent(taskId)}/draft-link/v1`;
69433
69442
  return draftLinkResponseSchema.parse(await requestBoundedJson(path40, 256, options?.signal));
@@ -89832,11 +89841,23 @@ async function runDraftSpec(ctx, input, deps) {
89832
89841
  };
89833
89842
  }
89834
89843
  let constitution = null;
89835
- try {
89836
- const memoryPages = await client.listWikiPages(projectSlug, { folder: PROJECT_CONSTITUTION_PAGE.folder });
89837
- constitution = memoryPages.find((page) => page.path === PROJECT_CONSTITUTION_PAGE.path)?.markdownBody ?? null;
89838
- } catch {
89839
- constitution = null;
89844
+ const boundedConstitution = process.env.MRRLIN_MCP_DRAFT_CONSTITUTION_BOUNDED?.trim() === "1";
89845
+ if (boundedConstitution) {
89846
+ try {
89847
+ const result = await client.getDraftConstitutionV1(projectSlug, { signal: ctx.signal });
89848
+ ctx.signal?.throwIfAborted();
89849
+ if (result.kind === "found") constitution = result.markdownBody;
89850
+ } catch (error51) {
89851
+ ctx.signal?.throwIfAborted();
89852
+ return { kind: "retry", failureReason: "provider_unavailable", error: `constitution lookup failed for ${projectSlug}: ${errMessage3(error51)}` };
89853
+ }
89854
+ } else {
89855
+ try {
89856
+ const memoryPages = await client.listWikiPages(projectSlug, { folder: PROJECT_CONSTITUTION_PAGE.folder });
89857
+ constitution = memoryPages.find((page) => page.path === PROJECT_CONSTITUTION_PAGE.path)?.markdownBody ?? null;
89858
+ } catch {
89859
+ constitution = null;
89860
+ }
89840
89861
  }
89841
89862
  const deployPromptContext = autoDeploy !== "off" && topology ? topology.entries.length > 0 ? { kind: "closed_menu", entries: topology.entries } : { kind: "derive", snapshot: topology.snapshot ?? [] } : null;
89842
89863
  const prompt = buildDraftSpecPrompt(task, constitution, deployPromptContext);
@@ -99565,7 +99586,7 @@ Do NOT derail the current task - if the operator has an in-flight question, answ
99565
99586
  }
99566
99587
 
99567
99588
  // src/_generated/version.ts
99568
- var PKG_VERSION = "0.4.213";
99589
+ var PKG_VERSION = "0.4.214";
99569
99590
 
99570
99591
  // src/bridge-allowed-origins.ts
99571
99592
  var DEFAULT_DIRECTOR_BRIDGE_ALLOWED_ORIGINS = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrrlin-dev/mcp",
3
- "version": "0.4.213",
3
+ "version": "0.4.214",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mrrlin-mcp": "dist/bin.cjs"