@mrrlin-dev/mcp 0.4.270 → 0.4.274

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 +188 -26
  2. package/package.json +1 -1
package/dist/bin.cjs CHANGED
@@ -20010,7 +20010,7 @@ function resolveProjectClientScope(project) {
20010
20010
  scopeDescription
20011
20011
  };
20012
20012
  }
20013
- var mrrlinTaskStatusSchema, mrrlinTaskCreateStatusSchema, mrrlinTerminalTaskStatuses, mrrlinTaskTypeSchema, mrrlinTaskImpactSchema, mrrlinAutonomyLevelSchema, mrrlinTaskEventAutonomyLevelSchema, mrrlinAutoDeploySchema, mrrlinTaskDomainsSchema, mrrlinDeclaredOutcomeShapeSchema, mrrlinDeclaredOutcomeSchema, MRRLIN_PROJECT_CODE_HOSTS, mrrlinProjectCodeHostSchema, GIT_SHA_PATTERN, SHA256_HEX_PATTERN, MRRLIN_LOCAL_DELIVERY_REF_PATTERN, mrrlinLocalDeliveryRefSchema, mrrlinLocalBuildStepSchema, mrrlinLocalBuildEvidenceSchema, mrrlinReceiptSchema, LOCAL_BUILD_RECEIPT_PAYLOAD_KEY, mrrlinSpecApprovedSchema, mrrlinTaskSourceSchema, mrrlinPlanStatusSchema, mrrlinTaskEventTypeSchema, mrrlinTaskEventCreateKindSchema, githubRepositorySelectionSchema, mrrlinTaskIdSchema, mrrlinPlanIdSchema, mrrlinWikiPageIdSchema, blockerTaskIdSchema, blockerTaskIdsSchema, blockerStatusResponseSchema, draftLinkPageIdSchema, draftLinkResponseSchema, draftConstitutionResponseSchema, linkedTaskPageIdSchema, linkedTaskResponseSchema, mrrlinWikiPagePathSchema, PROJECT_CONSTITUTION_PAGE, mrrlinExecutionRunIdSchema, mrrlinExecutionArtifactIdSchema, mrrlinProjectSlugSchema, mrrlinProjectEmojiSchema, terminalTaskStatusSet, mrrlinTaskTagSchema, mrrlinTaskTagsSchema, mrrlinExecutionRunStatusSchema, mrrlinRunBlockingReasonCodeSchema, KNOWN_RUN_BLOCKING_REASON_CODES, mrrlinRunBlockingReasonCodeReadSchema, mrrlinExecutionArtifactKindSchema, mrrlinNonCodeOutcomeSchema, mrrlinIntentProvenanceRefSchema, mrrlinIntentProvenanceSchema, mrrlinDeployAttemptPayloadSchema, mrrlinVerificationPayloadSchema, producedUrlSafeString, mrrlinProducedUrlPayloadSchema, mrrlinDeliverablePayloadSchema, SUPPORTED_EXECUTION_POLICY_BY_DOMAIN, SUPPORTED_EXECUTION_DOMAINS, taxonomyCategorySchema, taxonomySubcategorySchema, mrrlinTaskAssigneeSchema, mrrlinStopReasonSchema, mrrlinMixedCodeApprovalSnapshotSchema, mrrlinMixedCodeApprovalSchema, mrrlinTaskAcceptanceDecisionSchema, mrrlinTaskOperatorAcceptanceSchema, mrrlinTaskAcceptanceCreateSchema, mrrlinTaskSchema, mrrlinTaskSummarySchema, mrrlinPlanSchema, mrrlinTaxonomyEntrySchema, mrrlinTaskDependencySchema, mrrlinTaskEventSchema, mrrlinWikiPageSchema, mrrlinWikiPageSummarySchema, mrrlinMarkSpecReadyRequestSchema, mrrlinTakeOverTaskRequestSchema, mrrlinCloseTaskAsWontDoRequestSchema, mrrlinGithubBindingSchema, mrrlinGithubInstallationSchema, mrrlinGithubPullRequestSchema, mrrlinGithubPullRequestCheckStateSchema, mrrlinGithubPullRequestCheckSourceSchema, mrrlinGithubPullRequestObservedSchema, mrrlinGithubWorkflowSchema, mrrlinGithubRepositorySchema, mrrlinGithubWorkflowDispatchSchema, mrrlinProjectSummarySchema, mrrlinProjectOperatorInputSchema, mrrlinProjectUpsertSchema, mrrlinProjectRenameSchema, ONBOARDING_KICKOFF_TRANSITIONS, mrrlinOnboardingKickoffTransitionSchema, mrrlinOnboardingKickoffTransitionResponseSchema, mrrlinProjectMemberSchema, mrrlinProjectMemberAddSchema, mrrlinProjectMemberRemoveSchema, mrrlinProjectSnapshotSchema, mrrlinTaskCreateShapeSchema, mrrlinTaskCreateSchema, mrrlinTaskCreateWithoutIdSchema, mrrlinDeployEnvSchema, mrrlinTaskDeployTargetInputSchema, deployTopologyResponseSchema, mrrlinDeployTopologyWriteSchema, githubTargetRefSchema, taskDeployTargetResponseSchema, mrrlinTaskJournalAppendSchema, mrrlinTaskUpdateSchema, mrrlinTaskListFiltersSchema, mrrlinTaskListViewSchema, apiErrorSchema, apiViolationSchema, apiViolationsErrorSchema, mrrlinPlanCreateSchema, mrrlinPlanUpdateSchema, mrrlinTaxonomyCreateSchema, mrrlinTaxonomyRenameSchema, mrrlinTaxonomyDeleteSchema, mrrlinTaskEventCreateSchema, mrrlinTaskDependencyCreateSchema, mrrlinWikiPageCreateSchema, mrrlinWikiPageUpdateSchema, mrrlinWikiPageViewSchema, mrrlinWikiPageListFiltersSchema, mrrlinWikiPageSearchQuerySchema, mrrlinWikiPageSearchResultSchema, wikiKnowledgeChunkSchema, wikiKnowledgeSearchInputSchema, wikiKnowledgeSearchResultSchema, wikiKnowledgeIndexSchema, wikiKnowledgeSearchResponseSchema, githubInstallCallbackQuerySchema, githubInstallCallbackResponseSchema, githubInstallationListResponseSchema, githubInstallationIdParamSchema, githubInstallationRepositoriesResponseSchema, githubBindProjectRepoRequestSchema, githubBindProjectRepoResponseSchema, githubCreatePullRequestRequestSchema, githubCreatePullRequestResponseSchema, githubPullRequestNumberParamSchema, githubWorkflowIdParamSchema, githubWorkflowDispatchRequestSchema, githubWorkflowDispatchResponseSchema, githubWorkflowListResponseSchema, githubPullRequestResponseSchema, githubWorkflowRunQuerySchema, githubWorkflowRunResponseSchema, githubLatestDeploymentQuerySchema, githubLatestDeploymentResponseSchema, githubMintPushTokenRequestSchema, githubMintPushTokenResponseSchema, githubReleasePushTokenRequestSchema, githubReleasePushTokenResponseSchema, projectSnapshotResponseSchema, projectSummaryResponseSchema, projectListItemSchema, projectSummaryListResponseSchema, accountEntitlementSchema, accountEntitlementResponseSchema, taskResponseSchema, taskListResponseSchema, taskSummaryListResponseSchema, planResponseSchema, planListResponseSchema, taxonomyListResponseSchema, projectMemberListResponseSchema, taskDependencyResponseSchema, taskDependencyListResponseSchema, taskEventResponseSchema, taskEventListResponseSchema, wikiPageResponseSchema, wikiPageListResponseSchema, wikiPageSummaryListResponseSchema, wikiPageSearchResponseSchema, markSpecReadyResponseSchema, wikiPageSpecReadyCasResponseSchema, mrrlinRunPrerequisiteSchema, mrrlinExecutionRunSchema, compactExecutionTouchResponseSchema, compactAsyncTouchResponseSchema, mrrlinTaskStateSchema, mrrlinTaskStateUpsertSchema, mrrlinTaskStateReportSchema, taskStateResponseSchema, retireThreadResponseSchema, mrrlinExecutionRunCreateSchema, mrrlinExecutionRunUpdateSchema, mrrlinExecutionRunRequeueSchema, mrrlinHandoffClassSchema, mrrlinResumeTaskStateSchema, mrrlinResumeSpecPayloadSchema, mrrlinResumeCycleSchema, mrrlinResolveHandoffSchema, resolveHandoffResponseSchema, createExecutionRunHandoffSchema, mrrlinRestartExecutionRunSchema, mrrlinExecutionRunTouchSchema, mrrlinSettleExecutionRunOutcomeSchema, mrrlinExecutionArtifactSchema, mrrlinExecutionArtifactCreateSchema, executionArtifactListFiltersSchema, executionRunResponseSchema, executionRunClaimResponseSchema, executionRunListResponseSchema, executionArtifactResponseSchema, executionArtifactListResponseSchema, issueAgentCredentialRequestSchema, agentCredentialResponseSchema, agentCredentialSummarySchema, agentCredentialListResponseSchema, exchangeAgentTokenRequestSchema, exchangeAgentTokenResponseSchema, setupCodeProviderSchema, setupCodeSourceSchema, createSetupCodeRequestSchema, setupCodeCreatedSchema, setupCodeStatusSchema, redeemSetupCodeRequestSchema, redeemSetupCodeResponseSchema, MRRLIN_ARTIFACT_FILE_MAX_BYTES, mrrlinArtifactFileMimeTypes, mrrlinArtifactFileClassSchema, mrrlinArtifactFileStatusSchema, mrrlinArtifactFileVisibilitySchema, mrrlinArtifactFileSchema, mrrlinArtifactFileCreateSchema, mrrlinArtifactFileUploadTargetSchema, mrrlinArtifactFilePublicSchema, artifactFileResponseSchema, artifactFileCreateResponseSchema, artifactFileListResponseSchema, MRRLIN_ARTIFACT_INLINE_MAX_BYTES, mrrlinArtifactFileExcerptSchema, mrrlinArtifactFileExcerptsResponseSchema, artifactFileExpiredResponseSchema, executionRunIdParamSchema, executionRunListFiltersSchema, mrrlinAutoSpecApprovalSchema, mrrlinProjectSchedulerPolicySchema, mrrlinProjectSchedulerPolicyUpsertSchema, projectSchedulerPolicyResponseSchema, mrrlinSchedulerPendingReasonSchema, mrrlinAutonomousStepSchema, mrrlinAutonomousStepReasonSchema, mrrlinAutonomousStepVerdictSchema, mrrlinSchedulerPendingTaskSchema, mrrlinSchedulerParkedReasonSchema, mrrlinSchedulerParkedTaskSchema, mrrlinInFlightSchedulerEntrySchema, mrrlinIneligibleTaskSchema, schedulerPendingTasksResponseSchema, wakeDirectorRequestSchema, wakeDirectorResponseSchema, mrrlinInboxItemKindSchema, mrrlinInboxItemStatusSchema, mrrlinInboxItemIdSchema, ROLLBACK_RECONCILIATION_INBOX_PREFIX, DEPLOY_APPROVAL_INBOX_PREFIX, DEPLOY_GRACE_INBOX_PREFIX, CAPABILITY_INVOCATION_IN_FLIGHT_MS, mrrlinInboxItemActionPayloadSchema, mrrlinInboxQuestionOptionSchema, mrrlinInboxQuestionOptionsSchema, REVIEW_AGAIN_ANSWER, EDIT_SPEC_ANSWER, PROCEED_ANYWAY_ANSWER, mrrlinInboxItemSchema, mrrlinInboxItemCreateSchema, mrrlinInboxItemDecideSchema, mrrlinInboxItemSummarySchema, mrrlinInboxItemViewSchema, mrrlinInboxItemListFiltersSchema, mrrlinIntentVerdictSchema, inboxItemReadResponseSchema, inboxMarkAllReadResponseSchema, mrrlinInboxItemsMarkReadRequestSchema, inboxItemsMarkReadResponseSchema, inboxItemResponseSchema, inboxItemListResponseSchema, inboxItemSummaryListResponseSchema, capabilityServerIdSchema, capabilityNameSchema, capabilityOperationNameSchema, capabilityToolNameSchema, CapabilityReversibilitySchema, CapabilityGateVerdictSchema, capabilityToolClassSourceSchema, capabilityUseOutcomeSchema, CapabilityGrantSchema, CapabilityRouteSchema, CAPABILITY_OPERATIONS, CapabilityToolClassSchema, CapabilityUseSchema, CapabilityPolicySchema, CapabilityPermitStatusSchema, CapabilityPermitSchema, CapabilityInvocationStatusSchema, CapabilityInvocationSchema, issueCapabilityPermitRequestSchema, issueCapabilityPermitResponseSchema, redeemCapabilityPermitRequestSchema, redeemCapabilityPermitResponseSchema, finalizeCapabilityInvocationRequestSchema, finalizeCapabilityInvocationResponseSchema, capabilityGrantCreateSchema, capabilityRouteUpsertSchema, capabilityToolClassOverrideSchema, capabilityGrantResponseSchema, capabilityGrantListResponseSchema, capabilityRouteResponseSchema, capabilityRouteListResponseSchema, capabilityToolClassResponseSchema, capabilityUseListResponseSchema, capabilityUseResponseSchema, capabilityUseCreateSchema, deliveryResolutionResponseSchema, resolvedAccountSchema, resolveAccountResponseSchema, linkAccountIdentityRequestSchema, accountSummaryResponseSchema, compactSchedulerPath, compactSchedulerMaxBytes, schedulerCount, schedulerTotals, schedulerGroup, schedulerIdentity, schedulerJobHint, schedulerDate, compactSchedulerResponseSchema;
20013
+ var mrrlinTaskStatusSchema, mrrlinTaskCreateStatusSchema, mrrlinTerminalTaskStatuses, mrrlinTaskTypeSchema, mrrlinTaskImpactSchema, mrrlinAutonomyLevelSchema, mrrlinTaskEventAutonomyLevelSchema, mrrlinAutoDeploySchema, mrrlinTaskDomainsSchema, mrrlinDeclaredOutcomeShapeSchema, mrrlinDeclaredOutcomeSchema, MRRLIN_PROJECT_CODE_HOSTS, mrrlinProjectCodeHostSchema, GIT_SHA_PATTERN, SHA256_HEX_PATTERN, MRRLIN_LOCAL_DELIVERY_REF_PATTERN, mrrlinLocalDeliveryRefSchema, mrrlinLocalBuildStepSchema, mrrlinLocalBuildEvidenceSchema, mrrlinReceiptSchema, LOCAL_BUILD_RECEIPT_PAYLOAD_KEY, mrrlinSpecApprovedSchema, mrrlinTaskSourceSchema, mrrlinPlanStatusSchema, mrrlinTaskEventTypeSchema, mrrlinTaskEventCreateKindSchema, githubRepositorySelectionSchema, mrrlinTaskIdSchema, mrrlinPlanIdSchema, mrrlinWikiPageIdSchema, blockerTaskIdSchema, blockerTaskIdsSchema, blockerStatusResponseSchema, draftLinkPageIdSchema, draftLinkResponseSchema, draftConstitutionResponseSchema, linkedTaskPageIdSchema, linkedTaskResponseSchema, mrrlinWikiPagePathSchema, PROJECT_CONSTITUTION_PAGE, mrrlinExecutionRunIdSchema, mrrlinExecutionArtifactIdSchema, mrrlinProjectSlugSchema, mrrlinProjectEmojiSchema, terminalTaskStatusSet, mrrlinTaskTagSchema, mrrlinTaskTagsSchema, mrrlinExecutionRunStatusSchema, mrrlinRunBlockingReasonCodeSchema, KNOWN_RUN_BLOCKING_REASON_CODES, mrrlinRunBlockingReasonCodeReadSchema, mrrlinExecutionArtifactKindSchema, mrrlinNonCodeOutcomeSchema, mrrlinIntentProvenanceRefSchema, mrrlinIntentProvenanceSchema, mrrlinDeployAttemptPayloadSchema, mrrlinVerificationPayloadSchema, producedUrlSafeString, mrrlinProducedUrlPayloadSchema, mrrlinDeliverablePayloadSchema, SUPPORTED_EXECUTION_POLICY_BY_DOMAIN, SUPPORTED_EXECUTION_DOMAINS, taxonomyCategorySchema, taxonomySubcategorySchema, mrrlinTaskAssigneeSchema, mrrlinStopReasonSchema, mrrlinMixedCodeApprovalSnapshotSchema, mrrlinMixedCodeApprovalSchema, mrrlinTaskAcceptanceDecisionSchema, mrrlinTaskOperatorAcceptanceSchema, mrrlinTaskAcceptanceCreateSchema, mrrlinTaskSchema, mrrlinTaskSummarySchema, mrrlinPlanSchema, mrrlinTaxonomyEntrySchema, mrrlinTaskDependencySchema, mrrlinTaskEventSchema, mrrlinWikiPageSchema, mrrlinWikiPageSummarySchema, mrrlinMarkSpecReadyRequestSchema, mrrlinTakeOverTaskRequestSchema, mrrlinCloseTaskAsWontDoRequestSchema, mrrlinGithubBindingSchema, mrrlinGithubInstallationSchema, mrrlinGithubPullRequestSchema, mrrlinGithubPullRequestCheckStateSchema, mrrlinGithubPullRequestCheckSourceSchema, mrrlinGithubPullRequestObservedSchema, mrrlinGithubWorkflowSchema, mrrlinGithubRepositorySchema, mrrlinGithubWorkflowDispatchSchema, mrrlinProjectSummarySchema, mrrlinProjectOperatorInputSchema, mrrlinProjectUpsertSchema, mrrlinProjectRenameSchema, ONBOARDING_KICKOFF_TRANSITIONS, mrrlinOnboardingKickoffTransitionSchema, mrrlinOnboardingKickoffTransitionResponseSchema, mrrlinProjectMemberSchema, mrrlinProjectMemberAddSchema, mrrlinProjectMemberRemoveSchema, mrrlinProjectSnapshotSchema, mrrlinTaskCreateShapeSchema, mrrlinTaskCreateSchema, mrrlinTaskCreateWithoutIdSchema, mrrlinDeployEnvSchema, mrrlinTaskDeployTargetInputSchema, deployTopologyResponseSchema, mrrlinDeployTopologyWriteSchema, githubTargetRefSchema, taskDeployTargetResponseSchema, mrrlinTaskJournalAppendSchema, mrrlinTaskUpdateSchema, mrrlinTaskListFiltersSchema, mrrlinTaskListViewSchema, apiErrorSchema, apiViolationSchema, apiViolationsErrorSchema, mrrlinPlanCreateSchema, mrrlinPlanUpdateSchema, mrrlinTaxonomyCreateSchema, mrrlinTaxonomyRenameSchema, mrrlinTaxonomyDeleteSchema, mrrlinTaskEventCreateSchema, mrrlinTaskDependencyCreateSchema, mrrlinWikiPageCreateSchema, mrrlinWikiPageUpdateSchema, mrrlinWikiPageViewSchema, mrrlinWikiPageListFiltersSchema, mrrlinWikiPageSearchQuerySchema, mrrlinWikiPageSearchResultSchema, wikiKnowledgeChunkSchema, wikiKnowledgeSearchInputSchema, wikiKnowledgeSearchResultSchema, wikiKnowledgeIndexSchema, wikiKnowledgeSearchResponseSchema, githubInstallCallbackQuerySchema, githubInstallCallbackResponseSchema, githubInstallationListResponseSchema, githubInstallationIdParamSchema, githubInstallationRepositoriesResponseSchema, githubBindProjectRepoRequestSchema, githubBindProjectRepoResponseSchema, githubCreatePullRequestRequestSchema, githubCreatePullRequestResponseSchema, githubPullRequestNumberParamSchema, githubWorkflowIdParamSchema, githubWorkflowDispatchRequestSchema, githubWorkflowDispatchResponseSchema, githubWorkflowListResponseSchema, githubPullRequestResponseSchema, githubWorkflowRunQuerySchema, githubWorkflowRunResponseSchema, githubLatestDeploymentQuerySchema, githubLatestDeploymentResponseSchema, githubMintPushTokenRequestSchema, githubMintPushTokenResponseSchema, githubReleasePushTokenRequestSchema, githubReleasePushTokenResponseSchema, projectSnapshotResponseSchema, projectSummaryResponseSchema, projectListItemSchema, projectSummaryListResponseSchema, accountEntitlementSchema, accountEntitlementResponseSchema, taskResponseSchema, taskListResponseSchema, taskSummaryListResponseSchema, planResponseSchema, planListResponseSchema, taxonomyListResponseSchema, projectMemberListResponseSchema, taskDependencyResponseSchema, taskDependencyListResponseSchema, taskEventResponseSchema, taskEventListResponseSchema, wikiPageResponseSchema, wikiPageListResponseSchema, wikiPageSummaryListResponseSchema, wikiPageSearchResponseSchema, markSpecReadyResponseSchema, wikiPageSpecReadyCasResponseSchema, mrrlinRunPrerequisiteSchema, mrrlinExecutionRunSchema, compactExecutionTouchResponseSchema, compactAsyncTouchResponseSchema, mrrlinTaskStateSchema, mrrlinTaskStateUpsertSchema, mrrlinTaskStateReportSchema, taskStateResponseSchema, retireThreadResponseSchema, mrrlinExecutionRunCreateSchema, mrrlinExecutionRunUpdateSchema, mrrlinExecutionRunRequeueSchema, mrrlinHandoffClassSchema, mrrlinResumeTaskStateSchema, mrrlinResumeSpecPayloadSchema, mrrlinResumeCycleSchema, mrrlinResolveHandoffSchema, resolveHandoffResponseSchema, createExecutionRunHandoffSchema, mrrlinRestartExecutionRunSchema, mrrlinExecutionRunTouchSchema, mrrlinSettleExecutionRunOutcomeSchema, mrrlinExecutionArtifactSchema, mrrlinExecutionArtifactCreateSchema, executionArtifactListFiltersSchema, executionRunResponseSchema, executionRunClaimResponseSchema, executionRunListResponseSchema, executionArtifactResponseSchema, executionArtifactListResponseSchema, issueAgentCredentialRequestSchema, agentCredentialResponseSchema, agentCredentialSummarySchema, agentCredentialListResponseSchema, exchangeAgentTokenRequestSchema, exchangeAgentTokenResponseSchema, setupCodeProviderSchema, setupCodeSourceSchema, createSetupCodeRequestSchema, setupCodeCreatedSchema, setupCodeStatusSchema, redeemSetupCodeRequestSchema, redeemSetupCodeResponseSchema, MRRLIN_ARTIFACT_FILE_MAX_BYTES, mrrlinArtifactFileMimeTypes, mrrlinArtifactFileClassSchema, mrrlinArtifactFileStatusSchema, mrrlinArtifactFileVisibilitySchema, mrrlinArtifactFileSchema, mrrlinArtifactFileCreateSchema, mrrlinArtifactFileUploadTargetSchema, mrrlinArtifactFilePublicSchema, artifactFileResponseSchema, artifactFileCreateResponseSchema, artifactFileListResponseSchema, MRRLIN_ARTIFACT_INLINE_MAX_BYTES, mrrlinArtifactFileExcerptSchema, mrrlinArtifactFileExcerptsResponseSchema, artifactFileExpiredResponseSchema, executionRunIdParamSchema, executionRunListFiltersSchema, mrrlinAutoSpecApprovalSchema, mrrlinProjectSchedulerPolicySchema, mrrlinProjectSchedulerPolicyUpsertSchema, projectSchedulerPolicyResponseSchema, mrrlinSchedulerPendingReasonSchema, mrrlinAutonomousStepSchema, mrrlinAutonomousStepReasonSchema, mrrlinAutonomousStepVerdictSchema, mrrlinSchedulerPendingTaskSchema, mrrlinSchedulerParkedReasonSchema, mrrlinSchedulerParkedTaskSchema, mrrlinInFlightSchedulerEntrySchema, mrrlinIneligibleTaskSchema, schedulerPendingTasksResponseSchema, wakeDirectorRequestSchema, wakeDirectorResponseSchema, mrrlinInboxItemKindSchema, mrrlinInboxItemStatusSchema, mrrlinInboxItemIdSchema, ROLLBACK_RECONCILIATION_INBOX_PREFIX, MRRLIN_HELPER_CAPABILITIES_HEADER, MRRLIN_HELPER_CAPABILITY_LAND_AFTER_ACCEPT, MRRLIN_HELPER_CAPABILITIES, DEPLOY_APPROVAL_INBOX_PREFIX, DEPLOY_GRACE_INBOX_PREFIX, CAPABILITY_INVOCATION_IN_FLIGHT_MS, mrrlinInboxItemActionPayloadSchema, mrrlinInboxQuestionOptionSchema, mrrlinInboxQuestionOptionsSchema, REVIEW_AGAIN_ANSWER, EDIT_SPEC_ANSWER, PROCEED_ANYWAY_ANSWER, mrrlinInboxItemSchema, mrrlinInboxItemCreateSchema, mrrlinInboxItemDecideSchema, mrrlinInboxItemSummarySchema, mrrlinInboxItemViewSchema, mrrlinInboxItemListFiltersSchema, mrrlinIntentVerdictSchema, inboxItemReadResponseSchema, inboxMarkAllReadResponseSchema, mrrlinInboxItemsMarkReadRequestSchema, inboxItemsMarkReadResponseSchema, inboxItemResponseSchema, inboxItemListResponseSchema, inboxItemSummaryListResponseSchema, capabilityServerIdSchema, capabilityNameSchema, capabilityOperationNameSchema, capabilityToolNameSchema, CapabilityReversibilitySchema, CapabilityGateVerdictSchema, capabilityToolClassSourceSchema, capabilityUseOutcomeSchema, CapabilityGrantSchema, CapabilityRouteSchema, CAPABILITY_OPERATIONS, CapabilityToolClassSchema, CapabilityUseSchema, CapabilityPolicySchema, CapabilityPermitStatusSchema, CapabilityPermitSchema, CapabilityInvocationStatusSchema, CapabilityInvocationSchema, issueCapabilityPermitRequestSchema, issueCapabilityPermitResponseSchema, redeemCapabilityPermitRequestSchema, redeemCapabilityPermitResponseSchema, finalizeCapabilityInvocationRequestSchema, finalizeCapabilityInvocationResponseSchema, capabilityGrantCreateSchema, capabilityRouteUpsertSchema, capabilityToolClassOverrideSchema, capabilityGrantResponseSchema, capabilityGrantListResponseSchema, capabilityRouteResponseSchema, capabilityRouteListResponseSchema, capabilityToolClassResponseSchema, capabilityUseListResponseSchema, capabilityUseResponseSchema, capabilityUseCreateSchema, deliveryResolutionResponseSchema, resolvedAccountSchema, resolveAccountResponseSchema, linkAccountIdentityRequestSchema, accountSummaryResponseSchema, compactSchedulerPath, compactSchedulerMaxBytes, schedulerCount, schedulerTotals, schedulerGroup, schedulerIdentity, schedulerJobHint, schedulerDate, compactSchedulerResponseSchema;
20014
20014
  var init_dist = __esm({
20015
20015
  "../../packages/schemas/dist/index.js"() {
20016
20016
  "use strict";
@@ -20282,6 +20282,10 @@ var init_dist = __esm({
20282
20282
  "workspace_boundary_unresolvable",
20283
20283
  // PUB-011: public proof collected but closure signing is unavailable
20284
20284
  "receipt_signing_unavailable",
20285
+ // Dogfood v4 R3-1: a human_review code run on a local checkout waits, still pending, for a helper
20286
+ // that lands code only after the operator's Accept. An older helper landed it on the default branch
20287
+ // the moment the run finished, so the claim route refuses it and records this on the run instead.
20288
+ "helper_update_required",
20285
20289
  "unknown"
20286
20290
  ]);
20287
20291
  KNOWN_RUN_BLOCKING_REASON_CODES = new Set(mrrlinRunBlockingReasonCodeSchema.options);
@@ -21883,6 +21887,9 @@ var init_dist = __esm({
21883
21887
  mrrlinInboxItemStatusSchema = external_exports.enum(["pending", "approved", "rejected", "acknowledged"]);
21884
21888
  mrrlinInboxItemIdSchema = external_exports.string().regex(/^II-[A-Za-z0-9._-]+$/);
21885
21889
  ROLLBACK_RECONCILIATION_INBOX_PREFIX = "II-ROLLBACK-RECONCILE-";
21890
+ MRRLIN_HELPER_CAPABILITIES_HEADER = "x-mrrlin-helper-capabilities";
21891
+ MRRLIN_HELPER_CAPABILITY_LAND_AFTER_ACCEPT = "land-after-accept";
21892
+ MRRLIN_HELPER_CAPABILITIES = [MRRLIN_HELPER_CAPABILITY_LAND_AFTER_ACCEPT];
21886
21893
  DEPLOY_APPROVAL_INBOX_PREFIX = "II-deploy-approve-";
21887
21894
  DEPLOY_GRACE_INBOX_PREFIX = "II-grace-cancel-";
21888
21895
  CAPABILITY_INVOCATION_IN_FLIGHT_MS = 5 * 6e4;
@@ -78596,7 +78603,15 @@ function createMrrlinClient(config2) {
78596
78603
  },
78597
78604
  async claimExecutionRun(projectSlug, runId, options) {
78598
78605
  try {
78599
- const body = await request(`${projectPath(projectSlug)}/execution-runs/${encodeURIComponent(runId)}/claim`, options?.progressLease ? { method: "POST", headers: { "x-mrrlin-lease-mode": "progress" } } : { method: "POST" });
78606
+ const body = await request(`${projectPath(projectSlug)}/execution-runs/${encodeURIComponent(runId)}/claim`, {
78607
+ method: "POST",
78608
+ headers: {
78609
+ // Dogfood v4 R3-1: say what this helper can do, so the API never hands a human_review code run
78610
+ // on a local checkout to a helper that would land it before the operator's Accept.
78611
+ [MRRLIN_HELPER_CAPABILITIES_HEADER]: MRRLIN_HELPER_CAPABILITIES.join(","),
78612
+ ...options?.progressLease ? { "x-mrrlin-lease-mode": "progress" } : {}
78613
+ }
78614
+ });
78600
78615
  return executionRunClaimResponseSchema.parse(body).data;
78601
78616
  } catch (error51) {
78602
78617
  if (error51 instanceof MrrlinApiError && error51.status === 409)
@@ -100244,7 +100259,9 @@ function localLandingNote(outcome, ctx) {
100244
100259
  const { taskId, title, defaultBranch: d, detail } = ctx;
100245
100260
  const prefix = `${taskId} (${title})`;
100246
100261
  const bodies = {
100247
- applied: `${prefix} \u2014 Applied and merged to ${d}. Restart your dev server if running to pick up changes.`,
100262
+ // Dogfood R2-18: this is what a non-technical owner reads when their task finishes. No git words
100263
+ // and no dev-server advice: most projects have none, and a running one reloads on its own.
100264
+ applied: `${prefix} \u2014 Done. The changes are saved in your project folder.`,
100248
100265
  already_applied: `${prefix} \u2014 Already applied to ${d}. No changes needed.`,
100249
100266
  uncommitted_changes: `${prefix} \u2014 Can't apply: you have uncommitted changes in your project folder. Commit or stash them, then ask the Director to apply ${taskId} again.`,
100250
100267
  would_overwrite_files: `${prefix} \u2014 Can't apply: local files (${detail}) would be overwritten. Move them aside, then ask the Director to apply ${taskId} again.`,
@@ -100276,7 +100293,8 @@ async function fileLocalLandingNote(client, projectSlug, outcome, ctx) {
100276
100293
  error: error51 instanceof Error ? error51.message : String(error51)
100277
100294
  })
100278
100295
  );
100279
- await client.createInboxItem(projectSlug, { id: note.id, kind: "info", taskId: ctx.taskId, body: note.body }).catch(logFailure("inbox_note"));
100296
+ const kind = outcome === "applied" ? "completed" : "info";
100297
+ await client.createInboxItem(projectSlug, { id: note.id, kind, taskId: ctx.taskId, body: note.body }).catch(logFailure("inbox_note"));
100280
100298
  await client.appendExecutionArtifact(projectSlug, ctx.runId, {
100281
100299
  id: `EA-${import_node_crypto21.default.randomUUID()}`,
100282
100300
  kind: "checkpoint",
@@ -101625,6 +101643,24 @@ var runSpecConsensusInputSchema = external_exports.object({
101625
101643
  'Opt-in reviewer personas to add on top of the fixed four (plan-reviewer, architect, security-analyst, scope-analyst). "researcher" \u2014 for specs that reference external libraries, frameworks, or APIs; validates dependency/version/behavior claims. "debugger" \u2014 for root-cause/investigation specs; stress-tests hypotheses, evidence, and repro steps. Both are OFF by default.'
101626
101644
  )
101627
101645
  });
101646
+ var TERMINAL_TASK_STATUSES = new Set(mrrlinTerminalTaskStatuses);
101647
+ async function refuseSpecReviewOfNonSpec(client, projectSlug, pageId) {
101648
+ const page = await client.getWikiPage(projectSlug, pageId);
101649
+ if (page.folder !== "Specs") {
101650
+ throw new McpToolCodedError(
101651
+ "SPEC_REVIEW_NOT_A_SPEC",
101652
+ `${pageId} is in the ${page.folder} folder, not Specs, so it is not a spec and was not reviewed. If this is the spec you meant, move it into the Specs folder; otherwise check the page id.`
101653
+ );
101654
+ }
101655
+ if (!page.taskId) return;
101656
+ const task = await client.getTask(projectSlug, page.taskId).catch(() => null);
101657
+ if (task && TERMINAL_TASK_STATUSES.has(task.status)) {
101658
+ throw new McpToolCodedError(
101659
+ "SPEC_REVIEW_TASK_CLOSED",
101660
+ `${pageId} is the spec of ${task.id}, which is closed, so it was not reviewed. Check the page id; to change finished work, propose a new task.`
101661
+ );
101662
+ }
101663
+ }
101628
101664
  var runCodeReviewerGateInputSchema = external_exports.object({
101629
101665
  projectSlug: external_exports.string().min(1),
101630
101666
  baseRef: external_exports.string().min(1),
@@ -101863,7 +101899,7 @@ var mcpToolDescriptions = {
101863
101899
  [mcpToolNames.createTaxonomyEntry]: "Create an allowed category/subcategory pair.",
101864
101900
  [mcpToolNames.renameTaxonomyEntry]: "Rename a category/subcategory pair; cascades to every task that uses it.",
101865
101901
  [mcpToolNames.deleteTaxonomyEntry]: "Delete a category/subcategory pair (rejected while tasks still use it).",
101866
- [mcpToolNames.listProjectMembers]: "List a project's teammates (the owner is derived from github.operator, not a member row).",
101902
+ [mcpToolNames.listProjectMembers]: "List a project's teammates. The owner is not a row here (derived from github.operator) but is always a member: an empty list means the owner works alone, never that the project has no members.",
101867
101903
  [mcpToolNames.addProjectMember]: "Add a teammate to a project by email (owner-only).",
101868
101904
  [mcpToolNames.removeProjectMember]: "Remove a teammate from a project by email (owner-only); returns the updated list.",
101869
101905
  [mcpToolNames.appendTaskJournal]: "Append a progress entry to the task journal. Generate one operationId UUID per logical entry and reuse it for retries; the same UUID with different text is rejected.",
@@ -102737,6 +102773,7 @@ function createMrrlinTools(options) {
102737
102773
  "Unable to enqueue spec consensus.",
102738
102774
  async (c, { projectSlug, pageId, extraHeads }) => {
102739
102775
  await checkTenantBoundary(projectSlug, "spec consensus");
102776
+ await refuseSpecReviewOfNonSpec(c, projectSlug, pageId);
102740
102777
  const result = await enqueueAsyncTool(c, consensusDescriptor, { projectSlug, pageId, extraHeads });
102741
102778
  if (result.status === "queued") pingAsyncWorkerDispatch(projectSlug, result.jobId);
102742
102779
  return result;
@@ -106970,7 +107007,7 @@ Do NOT derail the current task - if the operator has an in-flight question, answ
106970
107007
  }
106971
107008
 
106972
107009
  // src/_generated/version.ts
106973
- var PKG_VERSION = "0.4.270";
107010
+ var PKG_VERSION = "0.4.274";
106974
107011
 
106975
107012
  // src/bridge-allowed-origins.ts
106976
107013
  var DEFAULT_DIRECTOR_BRIDGE_ALLOWED_ORIGINS = [
@@ -115528,7 +115565,15 @@ function buildDeliverableAuthorPrompt(task, specMarkdown, project, journalMarkdo
115528
115565
  `- negative_result: the work was actually attempted and valid evidence shows the requested positive result did not materialize.`,
115529
115566
  ``,
115530
115567
  `The markdown body must justify the declared outcome and satisfy every applicable item in the spec's`,
115531
- `"## Acceptance criteria" checklist. Do not add commentary before the opening delimiter.`
115568
+ `"## Acceptance criteria" checklist. Do not add commentary before the opening delimiter.`,
115569
+ // Dogfood v4 R2-1: GT-1's deliverable told the operator to "tap Approve on the task page", a button
115570
+ // that did not exist. Name the review exactly as the task page offers it.
115571
+ ...task.autonomyLevel === "human_review" ? [
115572
+ ``,
115573
+ `This task needs the operator's sign-off: when it finishes, it waits on its task page, where the operator`,
115574
+ `chooses Accept or Request changes. If you mention that review, name exactly those two actions; never`,
115575
+ `invent other buttons, links or steps.`
115576
+ ] : []
115532
115577
  ].join("\n");
115533
115578
  }
115534
115579
  async function writeDeliverablePage(client, projectSlug, task, markdown) {
@@ -116434,6 +116479,26 @@ async function deliverLocalRun(deps, input) {
116434
116479
  return;
116435
116480
  }
116436
116481
  const landingClient = deps.activeLease?.landingClient ?? deps.client;
116482
+ const settledTask = await landingClient.getTask(projectSlug, task.id).catch(() => null);
116483
+ if (settledTask?.status !== "closed_done") {
116484
+ console.warn(JSON.stringify({
116485
+ event: "landing_held_for_operator",
116486
+ projectSlug,
116487
+ runId,
116488
+ taskId: task.id,
116489
+ taskStatus: settledTask?.status ?? null
116490
+ }));
116491
+ if (settledTask?.status === "awaiting_verification") {
116492
+ await landingClient.createInboxItem(projectSlug, {
116493
+ id: `II-local-review-${runId}`,
116494
+ kind: "info",
116495
+ taskId: task.id,
116496
+ body: `${task.id} (${task.title}) \u2014 the change is built and checked on branch mrrlin/run-${runId}. It lands on ${input.defaultBranch} only after you accept it: open the task and choose Accept or Request changes.`
116497
+ }).catch(() => {
116498
+ });
116499
+ }
116500
+ return;
116501
+ }
116437
116502
  const locksDir = deps.locksDir ?? "/tmp/mrrlin-locks";
116438
116503
  const headSha = verifiedSettlement ? verifiedSettlement.git.head_oid : outcome.evidence.headSha;
116439
116504
  const expectedOldSha = verifiedSettlement ? verifiedSettlement.git.base_oid : input.integration ? input.integration.defaultTipSha : void 0;
@@ -125187,6 +125252,14 @@ function toDeclinedProposalContext(proposals) {
125187
125252
  };
125188
125253
  });
125189
125254
  }
125255
+ function resolveOperatorTimeZone() {
125256
+ try {
125257
+ const zone = Intl.DateTimeFormat().resolvedOptions().timeZone;
125258
+ return typeof zone === "string" && zone.trim() ? zone.trim() : null;
125259
+ } catch {
125260
+ return null;
125261
+ }
125262
+ }
125190
125263
  var COMPACT_REQUEST_HISTORY_MAX_ITEMS = 500;
125191
125264
  function isValidChatHistoryMessage(value) {
125192
125265
  if (!value || typeof value !== "object") return false;
@@ -125374,11 +125447,13 @@ function buildThreadStartParams(msg, config2, desiredModel) {
125374
125447
  "- QUESTION LIFECYCLE: every question you asked must end in exactly one state \u2014 answered by the operator, assumed (you state the default you took), or blocker (you state what it blocks). The open-question list in the turn context is authoritative: resolve each item explicitly and never drop one silently.",
125375
125448
  "Core guards:",
125376
125449
  "- Never claim a deliverable, file, test result, or running execution exists unless a tool actually produced it. Never claim autopilot is running unless an execution run is active; for a human_review task say it waits in To Do for your approval.",
125450
+ // Dogfood R2-10: GT-2's journal said all 24 spec checks ran and passed; the Director said it had not run them.
125451
+ "- Report a task's checks from its record (get_task journalMarkdown, run artifacts): if they say checks ran, report that and the result; never call them not run because you did not run them in this chat.",
125377
125452
  "- Mention a GT- or WK- id only if a tool returned it in this conversation (server-authoritative receipts).",
125378
125453
  "- Reply in the operator's language for the whole turn (questions, task scopes, summaries).",
125379
125454
  "- Keep chat short and human. No code blocks, DDL, terminal output, local filesystem paths, internal job/inbox UUIDs or alert markers in chat \u2014 put long content into a wiki page and link it.",
125380
125455
  "- Spec pages in folder Specs must contain `## Acceptance criteria` followed by `- [ ]` items.",
125381
- "- AGNOSTIC DELIVERY MANDATE: Mrrlin is an Agnostic Delivery Platform decoupled from mandatory GitHub. Delivery is routed strictly by artifact kind: (1) document -> wiki; (2) page -> publish (web pages, landing pages, interactive HTML previews); (3) file_set -> artifacts (file uploads, bundles, build zips); (4) message -> send (outbound webhooks, Slack, notifications); (5) code_change -> repo_host (no host: local repo; register_local_checkout w/o repo; init_local_repo after a yes; a done local run lands on main by itself, apply_local_run retries, get_execution_run's localLanding says if it landed; NEVER edit or commit code yourself, only a code run does). NEVER stall or refuse non-code tasks by demanding a Git repository. Non-code tasks deliver directly via page (Publish) or document (Wiki). A page goes live only via a publish route, and a new project has none until the operator adds a publisher on the Integrations page: never promise or give a live link until publishing has produced one.",
125456
+ "- AGNOSTIC DELIVERY MANDATE: Mrrlin is an Agnostic Delivery Platform decoupled from mandatory GitHub. Delivery is routed strictly by artifact kind: (1) document -> wiki; (2) page -> publish (web pages, landing pages, interactive HTML previews); (3) file_set -> artifacts (file uploads, bundles, build zips); (4) message -> send (outbound webhooks, Slack, notifications); (5) code_change -> repo_host (no host: local repo; register_local_checkout w/o repo; init_local_repo after a yes; a done local run lands on main (human_review: after Accept), apply_local_run retries, get_execution_run's localLanding says if it landed; NEVER edit or commit code yourself, only a code run does). NEVER stall or refuse non-code tasks by demanding a Git repository. Non-code tasks deliver directly via page (Publish) or document (Wiki). A page goes live only via a publish route, and a new project has none until the operator adds a publisher on the Integrations page: never promise or give a live link until publishing has produced one.",
125382
125457
  // Dogfood N28: a free-text "update the bridge" got an improvised install and a promised restart.
125383
125458
  "- BRIDGE UPDATE: to update the Mrrlin bridge run `npm install -g @mrrlin-dev/mcp@latest && mrrlin-mcp configure bridge && mrrlin-mcp restart-service`, then say in plain words what it reported. You run inside that bridge, so it cannot restart during your reply: never say it restarted, never promise a time, never run `pm2 restart` yourself.",
125384
125459
  "- 3-TIER COMMERCIAL SCOPE GOVERNANCE: Treat tasks by domain governance tier. (1) Tier 1 Core Tech Delivery (backend, frontend, SRE, databases): decompose autonomously into repository code changes (when a repo is bound) or code artifacts. (2) Tier 2 Planning & Content (landing pages, SEO, marketing): create actionable drafts; when details such as a phone number, brand name or copy are missing, do not loop on questions \u2014 create the task, record `## Placeholders: [NEED_INPUT: <item>]` in the Wiki spec, and set `autonomyLevel: 'human_review'`. (3) Tier 3 Guardrailed Advisory (high risk: privacy/GDPR, security/SOC 2, billing, production database migrations, infrastructure): always set `autonomyLevel: 'human_review'`, put the domain's standard safety controls into the spec, and state that irreversible actions need human sign-off.",
@@ -125786,19 +125861,17 @@ function buildThreadStartParams(msg, config2, desiredModel) {
125786
125861
  " or they explicitly ask to set up the project), OR when a request clearly needs missing",
125787
125862
  " project context \u2014 in which case OFFER to onboard once. Do NOT turn every turn on an",
125788
125863
  " un-onboarded project into an interrogation.",
125789
- "- Gather context by asking a focused set of high-value questions: what the project/product",
125790
- " is; primary goal/outcome; domain or URL; target audience; key constraints; how success is",
125791
- " measured; current state. Ask ~5-7 \u2014 gather, don't interrogate.",
125864
+ // Dogfood R2-15: setup ran one question per turn (~6 round-trips) while the goal sat unplanned.
125865
+ "- Ask every setup question still needed in ONE message, numbered, each with a default the operator",
125866
+ ' can accept with "ok" \u2014 never one per turn. Skip what their messages or project state already answer.',
125867
+ " Setup never blocks stated work: if they said what they want, start on it in the same turn.",
125868
+ ' "None yet", "local only" or "skip" is a complete answer: record it, never list it as open again.',
125792
125869
  `- Write the answers into a wiki page at path \`${PROJECT_CONSTITUTION_PAGE.path}\` (folder`,
125793
125870
  ` \`${PROJECT_CONSTITUTION_PAGE.folder}\`, title \`${PROJECT_CONSTITUTION_PAGE.title}\`) via`,
125794
125871
  " `create_wiki_page` if it does not exist yet, else `update_wiki_page` \u2014 never create a",
125795
- " duplicate. Seed it once you have a meaningful answer or two, then keep extending it.",
125796
- "- These onboarding questions are ordinary TASKLESS `question` inbox items: follow the",
125797
- " clarifying-question contract above \u2014 when answered, write it into the constitution page AND",
125798
- ' close the item with `decide_inbox_item` `verdict="acknowledged"` + `answer`; `reject` (with',
125799
- " a reason) any that become moot. Never leave stale pending onboarding questions.",
125800
- "- v1 captures the domain as prose in the constitution page (no structured domain field, no",
125801
- " web research) \u2014 just record what the operator tells you."
125872
+ " duplicate. It is project memory, not a spec: never list it among the specs.",
125873
+ "- An empty `list_project_members` means the owner works alone: the owner is always a member.",
125874
+ " If an onboarding question was banked in the Inbox, close it with `decide_inbox_item` once answered."
125802
125875
  ].join("\n");
125803
125876
  return {
125804
125877
  // No project checkout for this turn → run in a dedicated EMPTY scratch dir, never the bridge's own
@@ -125952,8 +126025,23 @@ function reportAutopilotLimitPause2(client, reason, resetAt) {
125952
126025
  void client.pauseAutopilotForLimit({ source: "provider_limit", reason, resetAt }).catch(() => {
125953
126026
  });
125954
126027
  }
125955
- async function runOrphanWorktreeSweep(client, opts) {
125956
- if (f74ColdWorkPossibleOnHost()) return;
126028
+ async function runOrphanWorktreeSweep(client, opts, seams = {}) {
126029
+ if (!(seams.f74Possible ?? f74ColdWorkPossibleOnHost)()) {
126030
+ await (seams.reap ?? reapOrphanWorktrees)(client, opts).catch((error51) => {
126031
+ process.stderr.write(
126032
+ `[mrrlin-mcp director-bridge] orphan worktree sweep failed: ${error51 instanceof Error ? error51.message : String(error51)}
126033
+ `
126034
+ );
126035
+ });
126036
+ }
126037
+ await (seams.recover ?? recoverPendingSettlementJournals)(client, opts).catch((error51) => {
126038
+ process.stderr.write(
126039
+ `[mrrlin-mcp director-bridge] settlement recovery failed: ${error51 instanceof Error ? error51.message : String(error51)}
126040
+ `
126041
+ );
126042
+ });
126043
+ }
126044
+ async function reapOrphanWorktrees(client, opts) {
125957
126045
  const cutoff = Date.now() - worktreeRetentionMs();
125958
126046
  const isReapable = (worktreePath) => {
125959
126047
  try {
@@ -126002,9 +126090,8 @@ async function runOrphanWorktreeSweep(client, opts) {
126002
126090
  );
126003
126091
  }
126004
126092
  }
126005
- await recoverPendingSettlementJournals(client, opts);
126006
126093
  }
126007
- async function recoverSingleLanding(client, checkoutPath, projectSlug, runId, receipt, locksDir, journal, stateDir) {
126094
+ async function recoverSingleLanding(client, checkoutPath, projectSlug, runId, receipt, locksDir, journal, stateDir, onLanded) {
126008
126095
  if (!receipt || !client.getJwks) return false;
126009
126096
  const targetKeyId = receipt.signingKeyId ?? receipt.signing_key_id;
126010
126097
  const jwks = await client.getJwks().catch(() => null);
@@ -126061,6 +126148,13 @@ async function recoverSingleLanding(client, checkoutPath, projectSlug, runId, re
126061
126148
  checkoutDigest: git3.checkout_digest
126062
126149
  });
126063
126150
  }
126151
+ await onLanded?.({
126152
+ applied: applyRes.applied,
126153
+ defaultBranch,
126154
+ previousSha: git3.base_oid,
126155
+ headSha: git3.head_oid,
126156
+ checkoutRealPath
126157
+ });
126064
126158
  if (journal && stateDir) {
126065
126159
  updateSettlementJournalSync(stateDir, journal, { phase: "complete" });
126066
126160
  }
@@ -126069,8 +126163,63 @@ async function recoverSingleLanding(client, checkoutPath, projectSlug, runId, re
126069
126163
  });
126070
126164
  return success2;
126071
126165
  }
126166
+ async function authorizedLandingTask(client, projectSlug, runId, receiptId) {
126167
+ try {
126168
+ const run5 = await client.getExecutionRun(projectSlug, runId);
126169
+ const task = await client.getTask(projectSlug, run5.taskId);
126170
+ return task.status === "closed_done" && (task.terminalReceiptId == null || task.terminalReceiptId === receiptId) ? task : null;
126171
+ } catch {
126172
+ return null;
126173
+ }
126174
+ }
126175
+ function recordRecoveredLanding(client, projectSlug, runId, task) {
126176
+ return async (landing) => {
126177
+ const outcome = landing.applied ? "applied" : "already_applied";
126178
+ const ctx = {
126179
+ runId,
126180
+ taskId: task.id,
126181
+ title: task.title,
126182
+ defaultBranch: landing.defaultBranch,
126183
+ previousSha: landing.applied ? landing.previousSha : null,
126184
+ headSha: landing.headSha,
126185
+ detail: ""
126186
+ };
126187
+ const note = localLandingNote(outcome, ctx);
126188
+ await client.createInboxItem(projectSlug, {
126189
+ id: note.id,
126190
+ kind: landing.applied ? "completed" : "info",
126191
+ taskId: task.id,
126192
+ body: note.body
126193
+ });
126194
+ const artifactId = `EA-local-apply-${runId}-${landing.applied ? "applied" : "already-applied"}`;
126195
+ const existing = await client.listExecutionArtifacts(projectSlug, runId);
126196
+ if (!existing.some((artifact) => artifact.id === artifactId)) await client.appendExecutionArtifact(projectSlug, runId, {
126197
+ id: artifactId,
126198
+ kind: "checkpoint",
126199
+ payload: {
126200
+ event: "local_apply",
126201
+ defaultBranch: landing.defaultBranch,
126202
+ applied: landing.applied,
126203
+ reason: landing.applied ? null : outcome,
126204
+ previousSha: ctx.previousSha,
126205
+ headSha: landing.headSha
126206
+ }
126207
+ });
126208
+ if (landing.applied) {
126209
+ await noteTasksLandedAlongside({ client }, {
126210
+ projectSlug,
126211
+ checkout: landing.checkoutRealPath,
126212
+ defaultBranch: landing.defaultBranch,
126213
+ previousSha: landing.previousSha,
126214
+ newSha: landing.headSha,
126215
+ landedRunId: runId,
126216
+ landedTaskId: task.id
126217
+ }).catch(() => []);
126218
+ }
126219
+ };
126220
+ }
126072
126221
  async function recoverPendingSettlementJournals(client, opts) {
126073
- const stateDir = resolveStateDir(process.env);
126222
+ const stateDir = opts.stateDir ?? resolveStateDir(process.env);
126074
126223
  const pendingJournals = listPendingSettlementJournalsSync(stateDir);
126075
126224
  const locksDir = import_node_path56.default.join(stateDir, "locks");
126076
126225
  for (const journal of pendingJournals) {
@@ -126084,6 +126233,8 @@ async function recoverPendingSettlementJournals(client, opts) {
126084
126233
  }
126085
126234
  }
126086
126235
  if (!journal.receipt) continue;
126236
+ const task = await authorizedLandingTask(client, journal.projectSlug, journal.runId, journal.receipt.receiptId);
126237
+ if (!task) continue;
126087
126238
  try {
126088
126239
  await recoverSingleLanding(
126089
126240
  client,
@@ -126093,7 +126244,8 @@ async function recoverPendingSettlementJournals(client, opts) {
126093
126244
  journal.receipt,
126094
126245
  locksDir,
126095
126246
  journal,
126096
- stateDir
126247
+ stateDir,
126248
+ recordRecoveredLanding(client, journal.projectSlug, journal.runId, task)
126097
126249
  );
126098
126250
  } catch {
126099
126251
  }
@@ -126115,6 +126267,8 @@ async function recoverPendingSettlementJournals(client, opts) {
126115
126267
  if (!lookup || !("data" in lookup) || !("receipt" in lookup.data)) continue;
126116
126268
  const settlement = lookup.data;
126117
126269
  const journal = journals.find((j) => j.receipt?.receiptId === settlement.receipt.receiptId);
126270
+ const task = await authorizedLandingTask(client, project.slug, landing.runId, settlement.receipt.receiptId);
126271
+ if (!task) continue;
126118
126272
  try {
126119
126273
  await recoverSingleLanding(
126120
126274
  client,
@@ -126124,7 +126278,8 @@ async function recoverPendingSettlementJournals(client, opts) {
126124
126278
  settlement.receipt,
126125
126279
  locksDir,
126126
126280
  journal,
126127
- stateDir
126281
+ stateDir,
126282
+ recordRecoveredLanding(client, project.slug, landing.runId, task)
126128
126283
  );
126129
126284
  } catch {
126130
126285
  }
@@ -127241,6 +127396,7 @@ function createBridgeMessageHandler(deps) {
127241
127396
  answeredQuestions,
127242
127397
  declinedProposals,
127243
127398
  openQuestions: presentedLedger.shown.length ? presentedLedger.shown : void 0,
127399
+ operatorTimeZone: resolveOperatorTimeZone() ?? void 0,
127244
127400
  clarifications: msg.context?.clarifications ?? (presentedLedger.shown.some((i) => i.id) ? presentedLedger.shown.map(({ id, round, ordinal, question, status, answer, actor }) => ({
127245
127401
  id,
127246
127402
  round,
@@ -129321,7 +129477,13 @@ function renderContextPrefix(context) {
129321
129477
  }
129322
129478
  if (openQuestions && !context?.clarifications?.length) {
129323
129479
  parts.push(
129324
- "[OPEN QUESTIONS] `openQuestions` lists questions you asked earlier in this chat. For each one, state in this reply whether it is answered (by the operator), assumed (say the default you took) or a blocker (say what it blocks). Do not ask it again unless the answer would change the architecture or the deliverable."
129480
+ '[OPEN QUESTIONS] `openQuestions` lists questions you asked earlier in this chat. For each one with status `open` or `reasked`, state in this reply whether it is answered (by the operator), assumed (say the default you took) or a blocker (say what it blocks). Any reply that settles it counts as an answer, including "none yet", "not now", "local only" or "skip" -- say it is answered. Do not mention items with any other status again: they are closed. Do not ask a question again unless the answer would change the architecture or the deliverable.'
129481
+ );
129482
+ }
129483
+ const operatorTimeZone = context?.operatorTimeZone?.trim();
129484
+ if (operatorTimeZone) {
129485
+ parts.push(
129486
+ `[LOCAL TIME] The operator's time zone is ${operatorTimeZone}. Tool timestamps are UTC: convert any clock time to this zone before you state it, or say how long ago it was. Never quote a raw UTC clock time.`
129325
129487
  );
129326
129488
  }
129327
129489
  return parts.join("\n\n");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrrlin-dev/mcp",
3
- "version": "0.4.270",
3
+ "version": "0.4.274",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mrrlin-mcp": "dist/bin.cjs"