@mrrlin-dev/mcp 0.4.279 → 0.4.281

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 +161 -7
  2. package/package.json +1 -1
package/dist/bin.cjs CHANGED
@@ -19357,7 +19357,7 @@ function detectSecretExposureInEndpoint(endpoint, secretValues) {
19357
19357
  }
19358
19358
  return null;
19359
19359
  }
19360
- var IntegrationCatalogSourceSchema, IntegrationCatalogPackageSchema, IntegrationCatalogInputSchema, IntegrationCatalogEntrySchema, IntegrationCatalogQuerySchema, IntegrationCatalogResponseSchema, ConnectionTransportSchema, ConnectionOriginSchema, ConnectionRecordSchema, vercelSelectionId, VercelPublisherSelectionSchema, ConfigureVercelPublisherRequestSchema, VercelPublisherTargetRecordSchema, VercelPublisherTargetListSchema, PublishRouteSnapshotSchema, ChooseVercelPublishRouteRequestSchema, GenericPublishChoiceSchema, ChooseGenericPublishRouteRequestSchema, CommitVercelBindingRequestSchema, IntegrationConnectionBindingSchema, IntegrationConnectionBindingListSchema, IntegrationSetupActionSchema, IntegrationSetupTicketRequestSchema, IntegrationSetupTicketRecordSchema, IntegrationSetupTicketIssuedSchema, UpsertConnectionBindingRequestSchema, IntegrationSetupTicketRedeemSchema, RegisterBridgeInstallationRequestSchema, BridgeInstallationRecordSchema, IntegrationReadinessStateSchema, IntegrationReadinessSchema;
19360
+ var IntegrationCatalogSourceSchema, IntegrationCatalogPackageSchema, IntegrationCatalogInputSchema, IntegrationCatalogEntrySchema, IntegrationCatalogQuerySchema, IntegrationCatalogResponseSchema, ConnectionTransportSchema, ConnectionOriginSchema, ConnectionRecordSchema, vercelSelectionId, VercelPublisherSelectionSchema, ConfigureVercelPublisherRequestSchema, VercelPublisherTargetRecordSchema, VercelPublisherTargetListSchema, PublishRouteSnapshotSchema, ChooseVercelPublishRouteRequestSchema, GenericPublishChoiceSchema, ChooseGenericPublishRouteRequestSchema, CommitVercelBindingRequestSchema, IntegrationConnectionBindingSchema, IntegrationConnectionBindingListSchema, VercelBindingCommitResponseSchema, IntegrationSetupActionSchema, IntegrationSetupTicketRequestSchema, IntegrationSetupTicketRecordSchema, IntegrationSetupTicketIssuedSchema, UpsertConnectionBindingRequestSchema, IntegrationSetupTicketRedeemSchema, RegisterBridgeInstallationRequestSchema, BridgeInstallationRecordSchema, IntegrationReadinessStateSchema, IntegrationReadinessSchema;
19361
19361
  var init_integration_connections = __esm({
19362
19362
  "../../packages/schemas/dist/integration-connections.js"() {
19363
19363
  "use strict";
@@ -19507,6 +19507,11 @@ var init_integration_connections = __esm({
19507
19507
  updatedAt: external_exports.string().datetime()
19508
19508
  });
19509
19509
  IntegrationConnectionBindingListSchema = external_exports.array(IntegrationConnectionBindingSchema);
19510
+ VercelBindingCommitResponseSchema = IntegrationConnectionBindingSchema.extend({
19511
+ serverId: external_exports.literal("vercel"),
19512
+ bindingRevision: external_exports.number().int().min(1),
19513
+ bindingIncarnation: external_exports.string().uuid()
19514
+ });
19510
19515
  IntegrationSetupActionSchema = external_exports.enum([
19511
19516
  "configure",
19512
19517
  "import",
@@ -79840,7 +79845,7 @@ function createMrrlinClient(config2) {
79840
79845
  headers: { "content-type": "application/json" },
79841
79846
  body: JSON.stringify(input)
79842
79847
  });
79843
- return IntegrationConnectionBindingSchema.parse(body);
79848
+ return VercelBindingCommitResponseSchema.parse(body);
79844
79849
  },
79845
79850
  async allowVercelAccess(projectSlug) {
79846
79851
  const body = await request(`${projectPath(projectSlug)}/vercel-access`, { method: "POST" });
@@ -101741,7 +101746,13 @@ var mcpToolNames = {
101741
101746
  /** code-landing-and-dependents: land a done local run on the project's default branch (retry/backfill). */
101742
101747
  applyLocalRun: "apply_local_run",
101743
101748
  /** Compact-context retrieval: rehydrate a mrrlin:// handle into the canonical full record. */
101744
- retrieveContext: "retrieve_context"
101749
+ retrieveContext: "retrieve_context",
101750
+ setTaskRecurrence: "set_task_recurrence",
101751
+ getTaskRecurrence: "get_task_recurrence",
101752
+ deleteTaskRecurrence: "delete_task_recurrence",
101753
+ pauseTaskRecurrence: "pause_task_recurrence",
101754
+ resumeTaskRecurrence: "resume_task_recurrence",
101755
+ listTaskRecurrences: "list_task_recurrences"
101745
101756
  };
101746
101757
 
101747
101758
  // src/context-compact/policy.ts
@@ -102508,6 +102519,12 @@ var retrieveContextInputSchema = external_exports.object({
102508
102519
  "Reserved. v1 always returns the full record regardless; future versions will use this to scope rehydration."
102509
102520
  )
102510
102521
  });
102522
+ var setTaskRecurrenceInputSchema = taskScopedSchema.merge(mrrlinSetTaskRecurrenceRequestSchema);
102523
+ var getTaskRecurrenceInputSchema = taskScopedSchema;
102524
+ var deleteTaskRecurrenceInputSchema = taskScopedSchema;
102525
+ var pauseTaskRecurrenceInputSchema = taskScopedSchema;
102526
+ var resumeTaskRecurrenceInputSchema = taskScopedSchema;
102527
+ var listTaskRecurrencesInputSchema = projectScopedSchema;
102511
102528
  var mcpToolInputSchemas = {
102512
102529
  [mcpToolNames.appendExecutionArtifact]: appendExecutionArtifactInputSchema,
102513
102530
  [mcpToolNames.archivePlan]: archivePlanInputSchema,
@@ -102577,7 +102594,13 @@ var mcpToolInputSchemas = {
102577
102594
  [mcpToolNames.initLocalRepo]: initLocalRepoInputSchema,
102578
102595
  [mcpToolNames.setProjectCodeHost]: setProjectCodeHostInputSchema,
102579
102596
  [mcpToolNames.applyLocalRun]: applyLocalRunInputSchema,
102580
- [mcpToolNames.retrieveContext]: retrieveContextInputSchema
102597
+ [mcpToolNames.retrieveContext]: retrieveContextInputSchema,
102598
+ [mcpToolNames.setTaskRecurrence]: setTaskRecurrenceInputSchema,
102599
+ [mcpToolNames.getTaskRecurrence]: getTaskRecurrenceInputSchema,
102600
+ [mcpToolNames.deleteTaskRecurrence]: deleteTaskRecurrenceInputSchema,
102601
+ [mcpToolNames.pauseTaskRecurrence]: pauseTaskRecurrenceInputSchema,
102602
+ [mcpToolNames.resumeTaskRecurrence]: resumeTaskRecurrenceInputSchema,
102603
+ [mcpToolNames.listTaskRecurrences]: listTaskRecurrencesInputSchema
102581
102604
  };
102582
102605
  var mcpToolOperationIds = {
102583
102606
  [mcpToolNames.appendExecutionArtifact]: openApiOperationIds.appendExecutionArtifact,
@@ -102638,7 +102661,13 @@ var mcpToolOperationIds = {
102638
102661
  [mcpToolNames.reclaimExecutionRunLease]: openApiOperationIds.reclaimExecutionRunLease,
102639
102662
  [mcpToolNames.restartExecutionRun]: openApiOperationIds.restartExecutionRun,
102640
102663
  [mcpToolNames.stopExecutionRun]: openApiOperationIds.stopExecutionRun,
102641
- [mcpToolNames.resolveHandoff]: openApiOperationIds.resolveHandoff
102664
+ [mcpToolNames.resolveHandoff]: openApiOperationIds.resolveHandoff,
102665
+ [mcpToolNames.setTaskRecurrence]: openApiOperationIds.setTaskRecurrence,
102666
+ [mcpToolNames.getTaskRecurrence]: openApiOperationIds.getTaskRecurrence,
102667
+ [mcpToolNames.deleteTaskRecurrence]: openApiOperationIds.deleteTaskRecurrence,
102668
+ [mcpToolNames.pauseTaskRecurrence]: openApiOperationIds.pauseTaskRecurrence,
102669
+ [mcpToolNames.resumeTaskRecurrence]: openApiOperationIds.resumeTaskRecurrence,
102670
+ [mcpToolNames.listTaskRecurrences]: openApiOperationIds.listTaskRecurrences
102642
102671
  };
102643
102672
  var mcpToolDescriptions = {
102644
102673
  [mcpToolNames.archivePlan]: "Archive a plan/epic and clear task plan links.",
@@ -102709,7 +102738,13 @@ var mcpToolDescriptions = {
102709
102738
  [mcpToolNames.initLocalRepo]: "For a project with no GitHub whose folder is not a git repository yet: run `git init` and one initial commit in the operator's own folder, then register it. Call ONLY after asking the operator in chat, in plain words, and getting an explicit yes; pass operatorConsent: true (the JSON boolean, not a string). Refuses a folder already inside a git repository, the home folder or any folder containing it, a filesystem root, a system folder, or a credentials/settings folder such as ~/.ssh, ~/.aws, ~/.gnupg or ~/.config. Adds a default .gitignore (node_modules, build output, .env files) only when the folder has none.",
102710
102739
  [mcpToolNames.setProjectCodeHost]: "Record where this project's code lives, after the operator answered the code-host question: local (keep it on this computer), github or gitlab (they want to push there; connect it next). Does not move any code.",
102711
102740
  [mcpToolNames.applyLocalRun]: "Land a finished local run's commits on the project's main branch again: retries a landing that could not happen when the task closed (folder had unsaved changes, main moved, files in the way) and backfills runs closed before auto-landing existed. Only for a run that is done on a task that is closed_done and delivered locally (deliveryRef). Merges the newest main into the run branch and re-runs the build/tests before fast-forwarding; a conflict or a red build is reported, never forced.",
102712
- [mcpToolNames.retrieveContext]: "Rehydrate a mrrlin:// handle emitted by the compact-context layer into the full canonical Mrrlin record (task/wiki page/project snapshot/execution run/artifacts). Use whenever you need the full source \u2014 irreversible decisions (closing tasks, dispatching deploys, writing specs) MUST call this first; never act on a compact envelope alone. Returns `{ kind, data }`. Invalid or unsupported handle \u2192 structured `HANDLE_INVALID` error."
102741
+ [mcpToolNames.retrieveContext]: "Rehydrate a mrrlin:// handle emitted by the compact-context layer into the full canonical Mrrlin record (task/wiki page/project snapshot/execution run/artifacts). Use whenever you need the full source \u2014 irreversible decisions (closing tasks, dispatching deploys, writing specs) MUST call this first; never act on a compact envelope alone. Returns `{ kind, data }`. Invalid or unsupported handle \u2192 structured `HANDLE_INVALID` error.",
102742
+ [mcpToolNames.setTaskRecurrence]: "Make a task recurring (one recurrence per task). schedule is a preset: {kind:'daily', time:'HH:MM'}, {kind:'weekly', weekdays:[1..7 ISO, Mon=1], time:'HH:MM'} or {kind:'interval', everyHours:1..168}; timezone is IANA (e.g. Europe/Kyiv); weekdays must be unique and ascending. Each period creates a new pre-approved instance task once the source spec is approved. taskId is the source or any instance task.",
102743
+ [mcpToolNames.getTaskRecurrence]: "Get recurrence schedule and recent runs for a task; taskId is the source or any instance task.",
102744
+ [mcpToolNames.deleteTaskRecurrence]: "Delete recurrence schedule for a task; taskId is the source or any instance task.",
102745
+ [mcpToolNames.pauseTaskRecurrence]: "Pause recurrence schedule for a task; taskId is the source or any instance task.",
102746
+ [mcpToolNames.resumeTaskRecurrence]: "Resume a paused recurrence. This APPROVES the source task's current spec version for unattended runs, so call it only when the operator explicitly approved that version or asked to resume. taskId is the source or any instance task.",
102747
+ [mcpToolNames.listTaskRecurrences]: "List task recurrences in the project."
102713
102748
  };
102714
102749
  var ARTIFACT_EXTENSION_TYPES = {
102715
102750
  ".md": "text/markdown",
@@ -104021,6 +104056,66 @@ function createMrrlinTools(options) {
104021
104056
  await checkTenantBoundary(parsed.projectSlug, "context handle");
104022
104057
  return await dispatchHandle(c, parsed);
104023
104058
  }
104059
+ ),
104060
+ [mcpToolNames.setTaskRecurrence]: makeTool(
104061
+ client,
104062
+ mcpToolNames.setTaskRecurrence,
104063
+ "TASK_RECURRENCE_SET_FAILED",
104064
+ "Unable to set task recurrence.",
104065
+ async (c, { projectSlug, taskId, ...input }) => {
104066
+ await checkTenantBoundary(projectSlug, "task recurrence");
104067
+ return await c.setTaskRecurrence(projectSlug, taskId, input);
104068
+ }
104069
+ ),
104070
+ [mcpToolNames.getTaskRecurrence]: makeTool(
104071
+ client,
104072
+ mcpToolNames.getTaskRecurrence,
104073
+ "TASK_RECURRENCE_READ_FAILED",
104074
+ "Unable to read task recurrence.",
104075
+ async (c, { projectSlug, taskId }) => {
104076
+ await checkTenantBoundary(projectSlug, "task recurrence");
104077
+ return await c.getTaskRecurrence(projectSlug, taskId);
104078
+ }
104079
+ ),
104080
+ [mcpToolNames.deleteTaskRecurrence]: makeTool(
104081
+ client,
104082
+ mcpToolNames.deleteTaskRecurrence,
104083
+ "TASK_RECURRENCE_DELETE_FAILED",
104084
+ "Unable to delete task recurrence.",
104085
+ async (c, { projectSlug, taskId }) => {
104086
+ await checkTenantBoundary(projectSlug, "task recurrence");
104087
+ return await c.deleteTaskRecurrence(projectSlug, taskId);
104088
+ }
104089
+ ),
104090
+ [mcpToolNames.pauseTaskRecurrence]: makeTool(
104091
+ client,
104092
+ mcpToolNames.pauseTaskRecurrence,
104093
+ "TASK_RECURRENCE_PAUSE_FAILED",
104094
+ "Unable to pause task recurrence.",
104095
+ async (c, { projectSlug, taskId }) => {
104096
+ await checkTenantBoundary(projectSlug, "task recurrence");
104097
+ return await c.pauseTaskRecurrence(projectSlug, taskId);
104098
+ }
104099
+ ),
104100
+ [mcpToolNames.resumeTaskRecurrence]: makeTool(
104101
+ client,
104102
+ mcpToolNames.resumeTaskRecurrence,
104103
+ "TASK_RECURRENCE_RESUME_FAILED",
104104
+ "Unable to resume task recurrence.",
104105
+ async (c, { projectSlug, taskId }) => {
104106
+ await checkTenantBoundary(projectSlug, "task recurrence");
104107
+ return await c.resumeTaskRecurrence(projectSlug, taskId);
104108
+ }
104109
+ ),
104110
+ [mcpToolNames.listTaskRecurrences]: makeTool(
104111
+ client,
104112
+ mcpToolNames.listTaskRecurrences,
104113
+ "TASK_RECURRENCE_LIST_FAILED",
104114
+ "Unable to list task recurrences.",
104115
+ async (c, { projectSlug }) => {
104116
+ await checkTenantBoundary(projectSlug, "task recurrence");
104117
+ return await c.listTaskRecurrences(projectSlug);
104118
+ }
104024
104119
  )
104025
104120
  };
104026
104121
  }
@@ -107755,7 +107850,7 @@ Do NOT derail the current task - if the operator has an in-flight question, answ
107755
107850
  }
107756
107851
 
107757
107852
  // src/_generated/version.ts
107758
- var PKG_VERSION = "0.4.279";
107853
+ var PKG_VERSION = "0.4.281";
107759
107854
 
107760
107855
  // src/bridge-allowed-origins.ts
107761
107856
  var DEFAULT_DIRECTOR_BRIDGE_ALLOWED_ORIGINS = [
@@ -126753,6 +126848,11 @@ function buildThreadStartParams(msg, config2, desiredModel) {
126753
126848
  "to the Tasks page (e.g. 'on the [Tasks page](/tasks)', '[Tasks board](/tasks)', or in Ukrainian '\u043D\u0430 [\u0441\u0442\u043E\u0440\u0456\u043D\u0446\u0456 \u0437\u0430\u0434\u0430\u0447](/tasks)').",
126754
126849
  "Never output raw technical URL fragments like '\u043D\u0430 /tasks' or 'on /tasks', and never use developer database",
126755
126850
  "jargon like 'materialized tasks' or '\u043C\u0430\u0442\u0435\u0440\u0456\u0430\u043B\u0456\u0437\u0443\u0432\u0430\u0432 \u0437\u0430\u0434\u0430\u0447\u0456' \u2014 say 'created' / '\u0441\u0442\u0432\u043E\u0440\u0438\u0432' or 'added' / '\u0434\u043E\u0434\u0430\u0432' instead.",
126851
+ 'When the operator asks for work to repeat (\xAB\u0449\u043E\u043F\u043E\u043D\u0435\u0434\u0456\u043B\u043A\u0430\xBB, \xAB\u0449\u043E\u0434\u043D\u044F \u043E 9\xBB, "every weekday"), propose',
126852
+ "the task as usual and state the schedule in the proposal; if the time of day or the operator's",
126853
+ "timezone is not known from the conversation, ask once \u2014 never assume UTC. Once it is confirmed and",
126854
+ "you see its task id, call `set_task_recurrence` on it with the matching schedule and that timezone;",
126855
+ "tell them this task is the first run and later runs start automatically once its spec is approved.",
126756
126856
  "",
126757
126857
  "Set resolvedIntent to the accepted task intent in your own concise words only after the outcome",
126758
126858
  "is resolved enough to create the task. Use it to capture the actionable understanding that came",
@@ -131509,6 +131609,20 @@ var toolRegistry = {
131509
131609
  rationale: "Rehydrates a compact mrrlin:// context handle into a full record.",
131510
131610
  compensation: null
131511
131611
  },
131612
+ [mcpToolNames.getTaskRecurrence]: {
131613
+ name: mcpToolNames.getTaskRecurrence,
131614
+ operationClass: "read",
131615
+ annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
131616
+ rationale: "Reads recurrence configuration and recent run history for a task (taskId is the source or any instance task).",
131617
+ compensation: null
131618
+ },
131619
+ [mcpToolNames.listTaskRecurrences]: {
131620
+ name: mcpToolNames.listTaskRecurrences,
131621
+ operationClass: "read",
131622
+ annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
131623
+ rationale: "Lists task recurrences and open instances in the project.",
131624
+ compensation: null
131625
+ },
131512
131626
  // Reversible mutations (8 tools)
131513
131627
  [mcpToolNames.createPlan]: {
131514
131628
  name: mcpToolNames.createPlan,
@@ -131693,6 +131807,34 @@ var toolRegistry = {
131693
131807
  rationale: "Transitions a task specification to ready status, enabling downstream execution.",
131694
131808
  compensation: null
131695
131809
  },
131810
+ [mcpToolNames.setTaskRecurrence]: {
131811
+ name: mcpToolNames.setTaskRecurrence,
131812
+ operationClass: "irreversible_mutation",
131813
+ annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: true },
131814
+ rationale: "Creates or replaces a task's recurrence schedule (a preset plus an IANA timezone); taskId is the source or any instance task. Replacing overwrites the previous schedule.",
131815
+ compensation: null
131816
+ },
131817
+ [mcpToolNames.deleteTaskRecurrence]: {
131818
+ name: mcpToolNames.deleteTaskRecurrence,
131819
+ operationClass: "irreversible_mutation",
131820
+ annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: true },
131821
+ rationale: "Deletes recurrence schedule for a task; taskId is the source or any instance task.",
131822
+ compensation: null
131823
+ },
131824
+ [mcpToolNames.pauseTaskRecurrence]: {
131825
+ name: mcpToolNames.pauseTaskRecurrence,
131826
+ operationClass: "irreversible_mutation",
131827
+ annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
131828
+ rationale: "Pauses recurrence schedule for a task; taskId is the source or any instance task.",
131829
+ compensation: null
131830
+ },
131831
+ [mcpToolNames.resumeTaskRecurrence]: {
131832
+ name: mcpToolNames.resumeTaskRecurrence,
131833
+ operationClass: "irreversible_mutation",
131834
+ annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: true },
131835
+ rationale: "Resumes paused recurrence and re-approves spec; taskId is the source or any instance task.",
131836
+ compensation: null
131837
+ },
131696
131838
  [mcpToolNames.runSpecConsensus]: {
131697
131839
  name: mcpToolNames.runSpecConsensus,
131698
131840
  operationClass: "irreversible_mutation",
@@ -132013,6 +132155,18 @@ function jsonSchemaProperty(schema2) {
132013
132155
  return { type: "object" };
132014
132156
  }
132015
132157
  }
132158
+ if (unwrapped instanceof external_exports.ZodUnion) {
132159
+ const variants = unwrapped.options.map((option) => unwrapZodSchema(option));
132160
+ if (variants.length > 0 && variants.every((variant) => variant instanceof external_exports.ZodObject)) {
132161
+ try {
132162
+ const unionSchema = external_exports.toJSONSchema(unwrapped, { io: "input", unrepresentable: "any" });
132163
+ delete unionSchema.$schema;
132164
+ return { ...unionSchema, type: "object" };
132165
+ } catch {
132166
+ return { type: "object" };
132167
+ }
132168
+ }
132169
+ }
132016
132170
  if (unwrapped instanceof external_exports.ZodArray) {
132017
132171
  const element = unwrapped.element;
132018
132172
  const unwrappedElement = unwrapZodSchema(element);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrrlin-dev/mcp",
3
- "version": "0.4.279",
3
+ "version": "0.4.281",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mrrlin-mcp": "dist/bin.cjs"