@mrrlin-dev/mcp 0.4.278 → 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.
- package/dist/bin.cjs +276 -5
- package/package.json +1 -1
package/dist/bin.cjs
CHANGED
|
@@ -17405,6 +17405,12 @@ var init_operationIds = __esm({
|
|
|
17405
17405
|
getTask: "getTask",
|
|
17406
17406
|
archiveTask: "archiveTask",
|
|
17407
17407
|
unarchiveTask: "unarchiveTask",
|
|
17408
|
+
setTaskRecurrence: "setTaskRecurrence",
|
|
17409
|
+
getTaskRecurrence: "getTaskRecurrence",
|
|
17410
|
+
deleteTaskRecurrence: "deleteTaskRecurrence",
|
|
17411
|
+
pauseTaskRecurrence: "pauseTaskRecurrence",
|
|
17412
|
+
resumeTaskRecurrence: "resumeTaskRecurrence",
|
|
17413
|
+
listTaskRecurrences: "listTaskRecurrences",
|
|
17408
17414
|
takeOverTask: "takeOverTask",
|
|
17409
17415
|
closeTaskAsWontDo: "closeTaskAsWontDo",
|
|
17410
17416
|
getWikiPage: "getWikiPage",
|
|
@@ -18614,6 +18620,85 @@ var init_appsumo = __esm({
|
|
|
18614
18620
|
}
|
|
18615
18621
|
});
|
|
18616
18622
|
|
|
18623
|
+
// ../../packages/schemas/dist/recurrence.js
|
|
18624
|
+
function isValidTimeZone(timeZone) {
|
|
18625
|
+
if (typeof timeZone !== "string" || timeZone.length === 0) {
|
|
18626
|
+
return false;
|
|
18627
|
+
}
|
|
18628
|
+
try {
|
|
18629
|
+
new Intl.DateTimeFormat("en-US", { timeZone });
|
|
18630
|
+
return true;
|
|
18631
|
+
} catch {
|
|
18632
|
+
return false;
|
|
18633
|
+
}
|
|
18634
|
+
}
|
|
18635
|
+
var HH_MM, mrrlinRecurrenceTimeSchema, mrrlinRecurrenceScheduleSchema, mrrlinTaskRecurrenceStatusSchema, mrrlinTaskRecurrencePauseReasonSchema, mrrlinTaskRecurrenceRunOutcomeSchema, mrrlinTaskRecurrenceRunSchema, mrrlinTaskRecurrenceSchema, mrrlinSetTaskRecurrenceRequestSchema;
|
|
18636
|
+
var init_recurrence = __esm({
|
|
18637
|
+
"../../packages/schemas/dist/recurrence.js"() {
|
|
18638
|
+
"use strict";
|
|
18639
|
+
init_zod();
|
|
18640
|
+
HH_MM = /^([01]\d|2[0-3]):[0-5]\d$/;
|
|
18641
|
+
mrrlinRecurrenceTimeSchema = external_exports.string().regex(HH_MM, "time must be HH:MM (24h)");
|
|
18642
|
+
mrrlinRecurrenceScheduleSchema = external_exports.discriminatedUnion("kind", [
|
|
18643
|
+
external_exports.object({
|
|
18644
|
+
kind: external_exports.literal("daily"),
|
|
18645
|
+
time: mrrlinRecurrenceTimeSchema
|
|
18646
|
+
}),
|
|
18647
|
+
external_exports.object({
|
|
18648
|
+
kind: external_exports.literal("weekly"),
|
|
18649
|
+
// ISO weekdays: 1 = Monday ... 7 = Sunday. Non-empty, unique, sorted ascending.
|
|
18650
|
+
weekdays: external_exports.array(external_exports.number().int().min(1).max(7)).min(1).refine((days) => days.every((day, index) => index === 0 || day > (days[index - 1] ?? 0)), {
|
|
18651
|
+
message: "weekdays must be unique and sorted ascending"
|
|
18652
|
+
}),
|
|
18653
|
+
time: mrrlinRecurrenceTimeSchema
|
|
18654
|
+
}),
|
|
18655
|
+
external_exports.object({
|
|
18656
|
+
kind: external_exports.literal("interval"),
|
|
18657
|
+
everyHours: external_exports.number().int().min(1).max(168)
|
|
18658
|
+
})
|
|
18659
|
+
]);
|
|
18660
|
+
mrrlinTaskRecurrenceStatusSchema = external_exports.enum(["awaiting_spec", "active", "paused"]);
|
|
18661
|
+
mrrlinTaskRecurrencePauseReasonSchema = external_exports.enum([
|
|
18662
|
+
"operator",
|
|
18663
|
+
"spec_changed",
|
|
18664
|
+
"source_archived",
|
|
18665
|
+
"fire_failed"
|
|
18666
|
+
]);
|
|
18667
|
+
mrrlinTaskRecurrenceRunOutcomeSchema = external_exports.enum([
|
|
18668
|
+
"created",
|
|
18669
|
+
"skipped_open_instance",
|
|
18670
|
+
"paused_spec_changed",
|
|
18671
|
+
"paused_source_archived"
|
|
18672
|
+
]);
|
|
18673
|
+
mrrlinTaskRecurrenceRunSchema = external_exports.object({
|
|
18674
|
+
scheduledFor: external_exports.string().datetime({ offset: true }),
|
|
18675
|
+
outcome: mrrlinTaskRecurrenceRunOutcomeSchema,
|
|
18676
|
+
instanceTaskId: external_exports.string().nullable(),
|
|
18677
|
+
createdAt: external_exports.string().datetime({ offset: true })
|
|
18678
|
+
});
|
|
18679
|
+
mrrlinTaskRecurrenceSchema = external_exports.object({
|
|
18680
|
+
id: external_exports.string().min(1),
|
|
18681
|
+
projectSlug: external_exports.string().min(1),
|
|
18682
|
+
sourceTaskId: external_exports.string().min(1),
|
|
18683
|
+
title: external_exports.string().min(1).max(200),
|
|
18684
|
+
schedule: mrrlinRecurrenceScheduleSchema,
|
|
18685
|
+
timezone: external_exports.string().min(1),
|
|
18686
|
+
nextRunAt: external_exports.string().datetime({ offset: true }).nullable(),
|
|
18687
|
+
status: mrrlinTaskRecurrenceStatusSchema,
|
|
18688
|
+
pauseReason: mrrlinTaskRecurrencePauseReasonSchema.nullable(),
|
|
18689
|
+
approvedSpecContentHash: external_exports.string().nullable(),
|
|
18690
|
+
createdAt: external_exports.string().datetime({ offset: true }),
|
|
18691
|
+
updatedAt: external_exports.string().datetime({ offset: true }),
|
|
18692
|
+
runs: external_exports.array(mrrlinTaskRecurrenceRunSchema).optional(),
|
|
18693
|
+
openInstanceTaskId: external_exports.string().nullable().optional()
|
|
18694
|
+
});
|
|
18695
|
+
mrrlinSetTaskRecurrenceRequestSchema = external_exports.object({
|
|
18696
|
+
schedule: mrrlinRecurrenceScheduleSchema,
|
|
18697
|
+
timezone: external_exports.string().min(1).refine((tz) => isValidTimeZone(tz), { message: "unknown IANA timezone" })
|
|
18698
|
+
});
|
|
18699
|
+
}
|
|
18700
|
+
});
|
|
18701
|
+
|
|
18617
18702
|
// ../../packages/schemas/dist/integration-route-defaults.js
|
|
18618
18703
|
function getDefaultCapabilityRouteForServer(serverId) {
|
|
18619
18704
|
const normalizedId = (SERVER_ALIASES[serverId.toLowerCase()] ?? serverId).toLowerCase();
|
|
@@ -20139,6 +20224,7 @@ var init_dist = __esm({
|
|
|
20139
20224
|
init_intent();
|
|
20140
20225
|
init_plans();
|
|
20141
20226
|
init_appsumo();
|
|
20227
|
+
init_recurrence();
|
|
20142
20228
|
init_integration_route_defaults();
|
|
20143
20229
|
init_settlement();
|
|
20144
20230
|
init_receipt_canonical();
|
|
@@ -20579,6 +20665,9 @@ var init_dist = __esm({
|
|
|
20579
20665
|
resolvedIntent: external_exports.string().min(1).max(4e3).nullable().optional(),
|
|
20580
20666
|
intentProvenance: mrrlinIntentProvenanceSchema.nullable().optional(),
|
|
20581
20667
|
planId: mrrlinPlanIdSchema.nullable(),
|
|
20668
|
+
// recurring-tasks (design.md D6): set on a recurrence's source task and on every instance it
|
|
20669
|
+
// created. Output-optional so existing task fixtures need no churn.
|
|
20670
|
+
recurrenceId: external_exports.string().nullable().optional(),
|
|
20582
20671
|
specApproved: mrrlinSpecApprovedSchema.optional(),
|
|
20583
20672
|
specWikiPageId: mrrlinWikiPageIdSchema.nullable(),
|
|
20584
20673
|
// Slice 3: episode bookkeeping alongside the async_jobs-derived countEpisodeAttempts --
|
|
@@ -78296,6 +78385,39 @@ function createMrrlinClient(config2) {
|
|
|
78296
78385
|
});
|
|
78297
78386
|
return taskResponseSchema.parse(body).data;
|
|
78298
78387
|
},
|
|
78388
|
+
async setTaskRecurrence(projectSlug, taskId, input) {
|
|
78389
|
+
const body = await request(`${projectPath(projectSlug)}/tasks/${encodeURIComponent(taskId)}/recurrence`, {
|
|
78390
|
+
method: "PUT",
|
|
78391
|
+
headers: { "content-type": "application/json" },
|
|
78392
|
+
body: JSON.stringify(input)
|
|
78393
|
+
});
|
|
78394
|
+
return mrrlinTaskRecurrenceSchema.parse(body.data);
|
|
78395
|
+
},
|
|
78396
|
+
async getTaskRecurrence(projectSlug, taskId) {
|
|
78397
|
+
const body = await request(`${projectPath(projectSlug)}/tasks/${encodeURIComponent(taskId)}/recurrence`);
|
|
78398
|
+
return mrrlinTaskRecurrenceSchema.parse(body.data);
|
|
78399
|
+
},
|
|
78400
|
+
async deleteTaskRecurrence(projectSlug, taskId) {
|
|
78401
|
+
await requestText(`${projectPath(projectSlug)}/tasks/${encodeURIComponent(taskId)}/recurrence`, {
|
|
78402
|
+
method: "DELETE"
|
|
78403
|
+
});
|
|
78404
|
+
},
|
|
78405
|
+
async pauseTaskRecurrence(projectSlug, taskId) {
|
|
78406
|
+
const body = await request(`${projectPath(projectSlug)}/tasks/${encodeURIComponent(taskId)}/recurrence/pause`, {
|
|
78407
|
+
method: "POST"
|
|
78408
|
+
});
|
|
78409
|
+
return mrrlinTaskRecurrenceSchema.parse(body.data);
|
|
78410
|
+
},
|
|
78411
|
+
async resumeTaskRecurrence(projectSlug, taskId) {
|
|
78412
|
+
const body = await request(`${projectPath(projectSlug)}/tasks/${encodeURIComponent(taskId)}/recurrence/resume`, {
|
|
78413
|
+
method: "POST"
|
|
78414
|
+
});
|
|
78415
|
+
return mrrlinTaskRecurrenceSchema.parse(body.data);
|
|
78416
|
+
},
|
|
78417
|
+
async listTaskRecurrences(projectSlug) {
|
|
78418
|
+
const body = await request(`${projectPath(projectSlug)}/recurrences`);
|
|
78419
|
+
return mrrlinTaskRecurrenceSchema.array().parse(body.data);
|
|
78420
|
+
},
|
|
78299
78421
|
async takeOverTask(projectSlug, taskId, assignee) {
|
|
78300
78422
|
const body = await request(`${projectPath(projectSlug)}/tasks/${encodeURIComponent(taskId)}/take-over`, {
|
|
78301
78423
|
method: "POST",
|
|
@@ -101619,7 +101741,13 @@ var mcpToolNames = {
|
|
|
101619
101741
|
/** code-landing-and-dependents: land a done local run on the project's default branch (retry/backfill). */
|
|
101620
101742
|
applyLocalRun: "apply_local_run",
|
|
101621
101743
|
/** Compact-context retrieval: rehydrate a mrrlin:// handle into the canonical full record. */
|
|
101622
|
-
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"
|
|
101623
101751
|
};
|
|
101624
101752
|
|
|
101625
101753
|
// src/context-compact/policy.ts
|
|
@@ -102386,6 +102514,12 @@ var retrieveContextInputSchema = external_exports.object({
|
|
|
102386
102514
|
"Reserved. v1 always returns the full record regardless; future versions will use this to scope rehydration."
|
|
102387
102515
|
)
|
|
102388
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;
|
|
102389
102523
|
var mcpToolInputSchemas = {
|
|
102390
102524
|
[mcpToolNames.appendExecutionArtifact]: appendExecutionArtifactInputSchema,
|
|
102391
102525
|
[mcpToolNames.archivePlan]: archivePlanInputSchema,
|
|
@@ -102455,7 +102589,13 @@ var mcpToolInputSchemas = {
|
|
|
102455
102589
|
[mcpToolNames.initLocalRepo]: initLocalRepoInputSchema,
|
|
102456
102590
|
[mcpToolNames.setProjectCodeHost]: setProjectCodeHostInputSchema,
|
|
102457
102591
|
[mcpToolNames.applyLocalRun]: applyLocalRunInputSchema,
|
|
102458
|
-
[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
|
|
102459
102599
|
};
|
|
102460
102600
|
var mcpToolOperationIds = {
|
|
102461
102601
|
[mcpToolNames.appendExecutionArtifact]: openApiOperationIds.appendExecutionArtifact,
|
|
@@ -102516,7 +102656,13 @@ var mcpToolOperationIds = {
|
|
|
102516
102656
|
[mcpToolNames.reclaimExecutionRunLease]: openApiOperationIds.reclaimExecutionRunLease,
|
|
102517
102657
|
[mcpToolNames.restartExecutionRun]: openApiOperationIds.restartExecutionRun,
|
|
102518
102658
|
[mcpToolNames.stopExecutionRun]: openApiOperationIds.stopExecutionRun,
|
|
102519
|
-
[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
|
|
102520
102666
|
};
|
|
102521
102667
|
var mcpToolDescriptions = {
|
|
102522
102668
|
[mcpToolNames.archivePlan]: "Archive a plan/epic and clear task plan links.",
|
|
@@ -102587,7 +102733,13 @@ var mcpToolDescriptions = {
|
|
|
102587
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.",
|
|
102588
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.",
|
|
102589
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.",
|
|
102590
|
-
[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."
|
|
102591
102743
|
};
|
|
102592
102744
|
var ARTIFACT_EXTENSION_TYPES = {
|
|
102593
102745
|
".md": "text/markdown",
|
|
@@ -103899,6 +104051,66 @@ function createMrrlinTools(options) {
|
|
|
103899
104051
|
await checkTenantBoundary(parsed.projectSlug, "context handle");
|
|
103900
104052
|
return await dispatchHandle(c, parsed);
|
|
103901
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
|
+
}
|
|
103902
104114
|
)
|
|
103903
104115
|
};
|
|
103904
104116
|
}
|
|
@@ -107633,7 +107845,7 @@ Do NOT derail the current task - if the operator has an in-flight question, answ
|
|
|
107633
107845
|
}
|
|
107634
107846
|
|
|
107635
107847
|
// src/_generated/version.ts
|
|
107636
|
-
var PKG_VERSION = "0.4.
|
|
107848
|
+
var PKG_VERSION = "0.4.280";
|
|
107637
107849
|
|
|
107638
107850
|
// src/bridge-allowed-origins.ts
|
|
107639
107851
|
var DEFAULT_DIRECTOR_BRIDGE_ALLOWED_ORIGINS = [
|
|
@@ -126631,6 +126843,11 @@ function buildThreadStartParams(msg, config2, desiredModel) {
|
|
|
126631
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)').",
|
|
126632
126844
|
"Never output raw technical URL fragments like '\u043D\u0430 /tasks' or 'on /tasks', and never use developer database",
|
|
126633
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.",
|
|
126634
126851
|
"",
|
|
126635
126852
|
"Set resolvedIntent to the accepted task intent in your own concise words only after the outcome",
|
|
126636
126853
|
"is resolved enough to create the task. Use it to capture the actionable understanding that came",
|
|
@@ -131387,6 +131604,20 @@ var toolRegistry = {
|
|
|
131387
131604
|
rationale: "Rehydrates a compact mrrlin:// context handle into a full record.",
|
|
131388
131605
|
compensation: null
|
|
131389
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
|
+
},
|
|
131390
131621
|
// Reversible mutations (8 tools)
|
|
131391
131622
|
[mcpToolNames.createPlan]: {
|
|
131392
131623
|
name: mcpToolNames.createPlan,
|
|
@@ -131571,6 +131802,34 @@ var toolRegistry = {
|
|
|
131571
131802
|
rationale: "Transitions a task specification to ready status, enabling downstream execution.",
|
|
131572
131803
|
compensation: null
|
|
131573
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
|
+
},
|
|
131574
131833
|
[mcpToolNames.runSpecConsensus]: {
|
|
131575
131834
|
name: mcpToolNames.runSpecConsensus,
|
|
131576
131835
|
operationClass: "irreversible_mutation",
|
|
@@ -131891,6 +132150,18 @@ function jsonSchemaProperty(schema2) {
|
|
|
131891
132150
|
return { type: "object" };
|
|
131892
132151
|
}
|
|
131893
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
|
+
}
|
|
131894
132165
|
if (unwrapped instanceof external_exports.ZodArray) {
|
|
131895
132166
|
const element = unwrapped.element;
|
|
131896
132167
|
const unwrappedElement = unwrapZodSchema(element);
|