@mrrlin-dev/mcp 0.4.279 → 0.4.280

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 +154 -5
  2. package/package.json +1 -1
package/dist/bin.cjs CHANGED
@@ -101741,7 +101741,13 @@ var mcpToolNames = {
101741
101741
  /** code-landing-and-dependents: land a done local run on the project's default branch (retry/backfill). */
101742
101742
  applyLocalRun: "apply_local_run",
101743
101743
  /** Compact-context retrieval: rehydrate a mrrlin:// handle into the canonical full record. */
101744
- retrieveContext: "retrieve_context"
101744
+ retrieveContext: "retrieve_context",
101745
+ setTaskRecurrence: "set_task_recurrence",
101746
+ getTaskRecurrence: "get_task_recurrence",
101747
+ deleteTaskRecurrence: "delete_task_recurrence",
101748
+ pauseTaskRecurrence: "pause_task_recurrence",
101749
+ resumeTaskRecurrence: "resume_task_recurrence",
101750
+ listTaskRecurrences: "list_task_recurrences"
101745
101751
  };
101746
101752
 
101747
101753
  // src/context-compact/policy.ts
@@ -102508,6 +102514,12 @@ var retrieveContextInputSchema = external_exports.object({
102508
102514
  "Reserved. v1 always returns the full record regardless; future versions will use this to scope rehydration."
102509
102515
  )
102510
102516
  });
102517
+ var setTaskRecurrenceInputSchema = taskScopedSchema.merge(mrrlinSetTaskRecurrenceRequestSchema);
102518
+ var getTaskRecurrenceInputSchema = taskScopedSchema;
102519
+ var deleteTaskRecurrenceInputSchema = taskScopedSchema;
102520
+ var pauseTaskRecurrenceInputSchema = taskScopedSchema;
102521
+ var resumeTaskRecurrenceInputSchema = taskScopedSchema;
102522
+ var listTaskRecurrencesInputSchema = projectScopedSchema;
102511
102523
  var mcpToolInputSchemas = {
102512
102524
  [mcpToolNames.appendExecutionArtifact]: appendExecutionArtifactInputSchema,
102513
102525
  [mcpToolNames.archivePlan]: archivePlanInputSchema,
@@ -102577,7 +102589,13 @@ var mcpToolInputSchemas = {
102577
102589
  [mcpToolNames.initLocalRepo]: initLocalRepoInputSchema,
102578
102590
  [mcpToolNames.setProjectCodeHost]: setProjectCodeHostInputSchema,
102579
102591
  [mcpToolNames.applyLocalRun]: applyLocalRunInputSchema,
102580
- [mcpToolNames.retrieveContext]: retrieveContextInputSchema
102592
+ [mcpToolNames.retrieveContext]: retrieveContextInputSchema,
102593
+ [mcpToolNames.setTaskRecurrence]: setTaskRecurrenceInputSchema,
102594
+ [mcpToolNames.getTaskRecurrence]: getTaskRecurrenceInputSchema,
102595
+ [mcpToolNames.deleteTaskRecurrence]: deleteTaskRecurrenceInputSchema,
102596
+ [mcpToolNames.pauseTaskRecurrence]: pauseTaskRecurrenceInputSchema,
102597
+ [mcpToolNames.resumeTaskRecurrence]: resumeTaskRecurrenceInputSchema,
102598
+ [mcpToolNames.listTaskRecurrences]: listTaskRecurrencesInputSchema
102581
102599
  };
102582
102600
  var mcpToolOperationIds = {
102583
102601
  [mcpToolNames.appendExecutionArtifact]: openApiOperationIds.appendExecutionArtifact,
@@ -102638,7 +102656,13 @@ var mcpToolOperationIds = {
102638
102656
  [mcpToolNames.reclaimExecutionRunLease]: openApiOperationIds.reclaimExecutionRunLease,
102639
102657
  [mcpToolNames.restartExecutionRun]: openApiOperationIds.restartExecutionRun,
102640
102658
  [mcpToolNames.stopExecutionRun]: openApiOperationIds.stopExecutionRun,
102641
- [mcpToolNames.resolveHandoff]: openApiOperationIds.resolveHandoff
102659
+ [mcpToolNames.resolveHandoff]: openApiOperationIds.resolveHandoff,
102660
+ [mcpToolNames.setTaskRecurrence]: openApiOperationIds.setTaskRecurrence,
102661
+ [mcpToolNames.getTaskRecurrence]: openApiOperationIds.getTaskRecurrence,
102662
+ [mcpToolNames.deleteTaskRecurrence]: openApiOperationIds.deleteTaskRecurrence,
102663
+ [mcpToolNames.pauseTaskRecurrence]: openApiOperationIds.pauseTaskRecurrence,
102664
+ [mcpToolNames.resumeTaskRecurrence]: openApiOperationIds.resumeTaskRecurrence,
102665
+ [mcpToolNames.listTaskRecurrences]: openApiOperationIds.listTaskRecurrences
102642
102666
  };
102643
102667
  var mcpToolDescriptions = {
102644
102668
  [mcpToolNames.archivePlan]: "Archive a plan/epic and clear task plan links.",
@@ -102709,7 +102733,13 @@ var mcpToolDescriptions = {
102709
102733
  [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
102734
  [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
102735
  [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."
102736
+ [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.",
102737
+ [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.",
102738
+ [mcpToolNames.getTaskRecurrence]: "Get recurrence schedule and recent runs for a task; taskId is the source or any instance task.",
102739
+ [mcpToolNames.deleteTaskRecurrence]: "Delete recurrence schedule for a task; taskId is the source or any instance task.",
102740
+ [mcpToolNames.pauseTaskRecurrence]: "Pause recurrence schedule for a task; taskId is the source or any instance task.",
102741
+ [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.",
102742
+ [mcpToolNames.listTaskRecurrences]: "List task recurrences in the project."
102713
102743
  };
102714
102744
  var ARTIFACT_EXTENSION_TYPES = {
102715
102745
  ".md": "text/markdown",
@@ -104021,6 +104051,66 @@ function createMrrlinTools(options) {
104021
104051
  await checkTenantBoundary(parsed.projectSlug, "context handle");
104022
104052
  return await dispatchHandle(c, parsed);
104023
104053
  }
104054
+ ),
104055
+ [mcpToolNames.setTaskRecurrence]: makeTool(
104056
+ client,
104057
+ mcpToolNames.setTaskRecurrence,
104058
+ "TASK_RECURRENCE_SET_FAILED",
104059
+ "Unable to set task recurrence.",
104060
+ async (c, { projectSlug, taskId, ...input }) => {
104061
+ await checkTenantBoundary(projectSlug, "task recurrence");
104062
+ return await c.setTaskRecurrence(projectSlug, taskId, input);
104063
+ }
104064
+ ),
104065
+ [mcpToolNames.getTaskRecurrence]: makeTool(
104066
+ client,
104067
+ mcpToolNames.getTaskRecurrence,
104068
+ "TASK_RECURRENCE_READ_FAILED",
104069
+ "Unable to read task recurrence.",
104070
+ async (c, { projectSlug, taskId }) => {
104071
+ await checkTenantBoundary(projectSlug, "task recurrence");
104072
+ return await c.getTaskRecurrence(projectSlug, taskId);
104073
+ }
104074
+ ),
104075
+ [mcpToolNames.deleteTaskRecurrence]: makeTool(
104076
+ client,
104077
+ mcpToolNames.deleteTaskRecurrence,
104078
+ "TASK_RECURRENCE_DELETE_FAILED",
104079
+ "Unable to delete task recurrence.",
104080
+ async (c, { projectSlug, taskId }) => {
104081
+ await checkTenantBoundary(projectSlug, "task recurrence");
104082
+ return await c.deleteTaskRecurrence(projectSlug, taskId);
104083
+ }
104084
+ ),
104085
+ [mcpToolNames.pauseTaskRecurrence]: makeTool(
104086
+ client,
104087
+ mcpToolNames.pauseTaskRecurrence,
104088
+ "TASK_RECURRENCE_PAUSE_FAILED",
104089
+ "Unable to pause task recurrence.",
104090
+ async (c, { projectSlug, taskId }) => {
104091
+ await checkTenantBoundary(projectSlug, "task recurrence");
104092
+ return await c.pauseTaskRecurrence(projectSlug, taskId);
104093
+ }
104094
+ ),
104095
+ [mcpToolNames.resumeTaskRecurrence]: makeTool(
104096
+ client,
104097
+ mcpToolNames.resumeTaskRecurrence,
104098
+ "TASK_RECURRENCE_RESUME_FAILED",
104099
+ "Unable to resume task recurrence.",
104100
+ async (c, { projectSlug, taskId }) => {
104101
+ await checkTenantBoundary(projectSlug, "task recurrence");
104102
+ return await c.resumeTaskRecurrence(projectSlug, taskId);
104103
+ }
104104
+ ),
104105
+ [mcpToolNames.listTaskRecurrences]: makeTool(
104106
+ client,
104107
+ mcpToolNames.listTaskRecurrences,
104108
+ "TASK_RECURRENCE_LIST_FAILED",
104109
+ "Unable to list task recurrences.",
104110
+ async (c, { projectSlug }) => {
104111
+ await checkTenantBoundary(projectSlug, "task recurrence");
104112
+ return await c.listTaskRecurrences(projectSlug);
104113
+ }
104024
104114
  )
104025
104115
  };
104026
104116
  }
@@ -107755,7 +107845,7 @@ Do NOT derail the current task - if the operator has an in-flight question, answ
107755
107845
  }
107756
107846
 
107757
107847
  // src/_generated/version.ts
107758
- var PKG_VERSION = "0.4.279";
107848
+ var PKG_VERSION = "0.4.280";
107759
107849
 
107760
107850
  // src/bridge-allowed-origins.ts
107761
107851
  var DEFAULT_DIRECTOR_BRIDGE_ALLOWED_ORIGINS = [
@@ -126753,6 +126843,11 @@ function buildThreadStartParams(msg, config2, desiredModel) {
126753
126843
  "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
126844
  "Never output raw technical URL fragments like '\u043D\u0430 /tasks' or 'on /tasks', and never use developer database",
126755
126845
  "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.",
126846
+ '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',
126847
+ "the task as usual and state the schedule in the proposal; if the time of day or the operator's",
126848
+ "timezone is not known from the conversation, ask once \u2014 never assume UTC. Once it is confirmed and",
126849
+ "you see its task id, call `set_task_recurrence` on it with the matching schedule and that timezone;",
126850
+ "tell them this task is the first run and later runs start automatically once its spec is approved.",
126756
126851
  "",
126757
126852
  "Set resolvedIntent to the accepted task intent in your own concise words only after the outcome",
126758
126853
  "is resolved enough to create the task. Use it to capture the actionable understanding that came",
@@ -131509,6 +131604,20 @@ var toolRegistry = {
131509
131604
  rationale: "Rehydrates a compact mrrlin:// context handle into a full record.",
131510
131605
  compensation: null
131511
131606
  },
131607
+ [mcpToolNames.getTaskRecurrence]: {
131608
+ name: mcpToolNames.getTaskRecurrence,
131609
+ operationClass: "read",
131610
+ annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
131611
+ rationale: "Reads recurrence configuration and recent run history for a task (taskId is the source or any instance task).",
131612
+ compensation: null
131613
+ },
131614
+ [mcpToolNames.listTaskRecurrences]: {
131615
+ name: mcpToolNames.listTaskRecurrences,
131616
+ operationClass: "read",
131617
+ annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
131618
+ rationale: "Lists task recurrences and open instances in the project.",
131619
+ compensation: null
131620
+ },
131512
131621
  // Reversible mutations (8 tools)
131513
131622
  [mcpToolNames.createPlan]: {
131514
131623
  name: mcpToolNames.createPlan,
@@ -131693,6 +131802,34 @@ var toolRegistry = {
131693
131802
  rationale: "Transitions a task specification to ready status, enabling downstream execution.",
131694
131803
  compensation: null
131695
131804
  },
131805
+ [mcpToolNames.setTaskRecurrence]: {
131806
+ name: mcpToolNames.setTaskRecurrence,
131807
+ operationClass: "irreversible_mutation",
131808
+ annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: true },
131809
+ 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.",
131810
+ compensation: null
131811
+ },
131812
+ [mcpToolNames.deleteTaskRecurrence]: {
131813
+ name: mcpToolNames.deleteTaskRecurrence,
131814
+ operationClass: "irreversible_mutation",
131815
+ annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: true },
131816
+ rationale: "Deletes recurrence schedule for a task; taskId is the source or any instance task.",
131817
+ compensation: null
131818
+ },
131819
+ [mcpToolNames.pauseTaskRecurrence]: {
131820
+ name: mcpToolNames.pauseTaskRecurrence,
131821
+ operationClass: "irreversible_mutation",
131822
+ annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
131823
+ rationale: "Pauses recurrence schedule for a task; taskId is the source or any instance task.",
131824
+ compensation: null
131825
+ },
131826
+ [mcpToolNames.resumeTaskRecurrence]: {
131827
+ name: mcpToolNames.resumeTaskRecurrence,
131828
+ operationClass: "irreversible_mutation",
131829
+ annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: true },
131830
+ rationale: "Resumes paused recurrence and re-approves spec; taskId is the source or any instance task.",
131831
+ compensation: null
131832
+ },
131696
131833
  [mcpToolNames.runSpecConsensus]: {
131697
131834
  name: mcpToolNames.runSpecConsensus,
131698
131835
  operationClass: "irreversible_mutation",
@@ -132013,6 +132150,18 @@ function jsonSchemaProperty(schema2) {
132013
132150
  return { type: "object" };
132014
132151
  }
132015
132152
  }
132153
+ if (unwrapped instanceof external_exports.ZodUnion) {
132154
+ const variants = unwrapped.options.map((option) => unwrapZodSchema(option));
132155
+ if (variants.length > 0 && variants.every((variant) => variant instanceof external_exports.ZodObject)) {
132156
+ try {
132157
+ const unionSchema = external_exports.toJSONSchema(unwrapped, { io: "input", unrepresentable: "any" });
132158
+ delete unionSchema.$schema;
132159
+ return { ...unionSchema, type: "object" };
132160
+ } catch {
132161
+ return { type: "object" };
132162
+ }
132163
+ }
132164
+ }
132016
132165
  if (unwrapped instanceof external_exports.ZodArray) {
132017
132166
  const element = unwrapped.element;
132018
132167
  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.280",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mrrlin-mcp": "dist/bin.cjs"