@mrrlin-dev/mcp 0.4.273 → 0.4.275
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 +141 -17
- 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`,
|
|
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)
|
|
@@ -106992,7 +107007,7 @@ Do NOT derail the current task - if the operator has an in-flight question, answ
|
|
|
106992
107007
|
}
|
|
106993
107008
|
|
|
106994
107009
|
// src/_generated/version.ts
|
|
106995
|
-
var PKG_VERSION = "0.4.
|
|
107010
|
+
var PKG_VERSION = "0.4.275";
|
|
106996
107011
|
|
|
106997
107012
|
// src/bridge-allowed-origins.ts
|
|
106998
107013
|
var DEFAULT_DIRECTOR_BRIDGE_ALLOWED_ORIGINS = [
|
|
@@ -126010,8 +126025,23 @@ function reportAutopilotLimitPause2(client, reason, resetAt) {
|
|
|
126010
126025
|
void client.pauseAutopilotForLimit({ source: "provider_limit", reason, resetAt }).catch(() => {
|
|
126011
126026
|
});
|
|
126012
126027
|
}
|
|
126013
|
-
async function runOrphanWorktreeSweep(client, opts) {
|
|
126014
|
-
if (f74ColdWorkPossibleOnHost())
|
|
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) {
|
|
126015
126045
|
const cutoff = Date.now() - worktreeRetentionMs();
|
|
126016
126046
|
const isReapable = (worktreePath) => {
|
|
126017
126047
|
try {
|
|
@@ -126060,9 +126090,8 @@ async function runOrphanWorktreeSweep(client, opts) {
|
|
|
126060
126090
|
);
|
|
126061
126091
|
}
|
|
126062
126092
|
}
|
|
126063
|
-
await recoverPendingSettlementJournals(client, opts);
|
|
126064
126093
|
}
|
|
126065
|
-
async function recoverSingleLanding(client, checkoutPath, projectSlug, runId, receipt, locksDir, journal, stateDir) {
|
|
126094
|
+
async function recoverSingleLanding(client, checkoutPath, projectSlug, runId, receipt, locksDir, journal, stateDir, onLanded) {
|
|
126066
126095
|
if (!receipt || !client.getJwks) return false;
|
|
126067
126096
|
const targetKeyId = receipt.signingKeyId ?? receipt.signing_key_id;
|
|
126068
126097
|
const jwks = await client.getJwks().catch(() => null);
|
|
@@ -126119,6 +126148,13 @@ async function recoverSingleLanding(client, checkoutPath, projectSlug, runId, re
|
|
|
126119
126148
|
checkoutDigest: git3.checkout_digest
|
|
126120
126149
|
});
|
|
126121
126150
|
}
|
|
126151
|
+
await onLanded?.({
|
|
126152
|
+
applied: applyRes.applied,
|
|
126153
|
+
defaultBranch,
|
|
126154
|
+
previousSha: git3.base_oid,
|
|
126155
|
+
headSha: git3.head_oid,
|
|
126156
|
+
checkoutRealPath
|
|
126157
|
+
});
|
|
126122
126158
|
if (journal && stateDir) {
|
|
126123
126159
|
updateSettlementJournalSync(stateDir, journal, { phase: "complete" });
|
|
126124
126160
|
}
|
|
@@ -126127,17 +126163,63 @@ async function recoverSingleLanding(client, checkoutPath, projectSlug, runId, re
|
|
|
126127
126163
|
});
|
|
126128
126164
|
return success2;
|
|
126129
126165
|
}
|
|
126130
|
-
async function
|
|
126166
|
+
async function authorizedLandingTask(client, projectSlug, runId, receiptId) {
|
|
126131
126167
|
try {
|
|
126132
126168
|
const run5 = await client.getExecutionRun(projectSlug, runId);
|
|
126133
126169
|
const task = await client.getTask(projectSlug, run5.taskId);
|
|
126134
|
-
return task.status === "closed_done" && (task.terminalReceiptId == null || task.terminalReceiptId === receiptId);
|
|
126170
|
+
return task.status === "closed_done" && (task.terminalReceiptId == null || task.terminalReceiptId === receiptId) ? task : null;
|
|
126135
126171
|
} catch {
|
|
126136
|
-
return
|
|
126172
|
+
return null;
|
|
126137
126173
|
}
|
|
126138
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
|
+
}
|
|
126139
126221
|
async function recoverPendingSettlementJournals(client, opts) {
|
|
126140
|
-
const stateDir = resolveStateDir(process.env);
|
|
126222
|
+
const stateDir = opts.stateDir ?? resolveStateDir(process.env);
|
|
126141
126223
|
const pendingJournals = listPendingSettlementJournalsSync(stateDir);
|
|
126142
126224
|
const locksDir = import_node_path56.default.join(stateDir, "locks");
|
|
126143
126225
|
for (const journal of pendingJournals) {
|
|
@@ -126151,7 +126233,8 @@ async function recoverPendingSettlementJournals(client, opts) {
|
|
|
126151
126233
|
}
|
|
126152
126234
|
}
|
|
126153
126235
|
if (!journal.receipt) continue;
|
|
126154
|
-
|
|
126236
|
+
const task = await authorizedLandingTask(client, journal.projectSlug, journal.runId, journal.receipt.receiptId);
|
|
126237
|
+
if (!task) continue;
|
|
126155
126238
|
try {
|
|
126156
126239
|
await recoverSingleLanding(
|
|
126157
126240
|
client,
|
|
@@ -126161,7 +126244,8 @@ async function recoverPendingSettlementJournals(client, opts) {
|
|
|
126161
126244
|
journal.receipt,
|
|
126162
126245
|
locksDir,
|
|
126163
126246
|
journal,
|
|
126164
|
-
stateDir
|
|
126247
|
+
stateDir,
|
|
126248
|
+
recordRecoveredLanding(client, journal.projectSlug, journal.runId, task)
|
|
126165
126249
|
);
|
|
126166
126250
|
} catch {
|
|
126167
126251
|
}
|
|
@@ -126183,7 +126267,8 @@ async function recoverPendingSettlementJournals(client, opts) {
|
|
|
126183
126267
|
if (!lookup || !("data" in lookup) || !("receipt" in lookup.data)) continue;
|
|
126184
126268
|
const settlement = lookup.data;
|
|
126185
126269
|
const journal = journals.find((j) => j.receipt?.receiptId === settlement.receipt.receiptId);
|
|
126186
|
-
|
|
126270
|
+
const task = await authorizedLandingTask(client, project.slug, landing.runId, settlement.receipt.receiptId);
|
|
126271
|
+
if (!task) continue;
|
|
126187
126272
|
try {
|
|
126188
126273
|
await recoverSingleLanding(
|
|
126189
126274
|
client,
|
|
@@ -126193,7 +126278,8 @@ async function recoverPendingSettlementJournals(client, opts) {
|
|
|
126193
126278
|
settlement.receipt,
|
|
126194
126279
|
locksDir,
|
|
126195
126280
|
journal,
|
|
126196
|
-
stateDir
|
|
126281
|
+
stateDir,
|
|
126282
|
+
recordRecoveredLanding(client, project.slug, landing.runId, task)
|
|
126197
126283
|
);
|
|
126198
126284
|
} catch {
|
|
126199
126285
|
}
|
|
@@ -132225,6 +132311,22 @@ Missing required flag(s): ${missing.join(
|
|
|
132225
132311
|
}
|
|
132226
132312
|
|
|
132227
132313
|
// src/restart-service.ts
|
|
132314
|
+
function parsePsLine(line) {
|
|
132315
|
+
const match2 = /^\s*(\d+)\s+(.*)$/.exec(line);
|
|
132316
|
+
if (!match2) return null;
|
|
132317
|
+
return { ppid: Number(match2[1]), isBridge: (match2[2] ?? "").trim().split(/\s+/).includes("director-bridge") };
|
|
132318
|
+
}
|
|
132319
|
+
function findBridgeAncestor(startPid, readPs, maxHops = 16) {
|
|
132320
|
+
let pid = startPid;
|
|
132321
|
+
for (let hop = 0; hop < maxHops && Number.isInteger(pid) && pid > 1; hop += 1) {
|
|
132322
|
+
const line = readPs(pid);
|
|
132323
|
+
const parsed = line === null ? null : parsePsLine(line);
|
|
132324
|
+
if (!parsed) return null;
|
|
132325
|
+
if (parsed.isBridge) return pid;
|
|
132326
|
+
pid = parsed.ppid;
|
|
132327
|
+
}
|
|
132328
|
+
return null;
|
|
132329
|
+
}
|
|
132228
132330
|
var PREFIX2 = "[mrrlin-mcp restart-service]";
|
|
132229
132331
|
function isOnlineBridge(entry) {
|
|
132230
132332
|
if (!entry || typeof entry !== "object") return false;
|
|
@@ -132243,7 +132345,16 @@ function runRestartService(deps) {
|
|
|
132243
132345
|
const done = (exitCode, outcome) => ({ exitCode, outcome });
|
|
132244
132346
|
print(`${PREFIX2} installed version on disk: ${installedVersion}`);
|
|
132245
132347
|
const jlist = deps.runPm2Jlist();
|
|
132348
|
+
const askAncestor = (why) => {
|
|
132349
|
+
if (deps.platform === "win32" || !deps.findAncestorBridge) return null;
|
|
132350
|
+
const pid = deps.findAncestorBridge();
|
|
132351
|
+
if (pid === null || !Number.isInteger(pid) || pid <= 1) return null;
|
|
132352
|
+
print(`${PREFIX2} ${why}, but this command runs inside the bridge (pid ${pid}), so that one is asked directly.`);
|
|
132353
|
+
return signalBridges(deps, [{ pid }], false, manual);
|
|
132354
|
+
};
|
|
132246
132355
|
if (jlist.status !== 0) {
|
|
132356
|
+
const viaAncestor = askAncestor("pm2's process list could not be read from here");
|
|
132357
|
+
if (viaAncestor) return viaAncestor;
|
|
132247
132358
|
if (jlist.errorCode === "ENOENT") {
|
|
132248
132359
|
print(`${PREFIX2} pm2 is not installed here, so the bridge was NOT asked to reload. If you run the bridge some other way, restart it there.`);
|
|
132249
132360
|
return done(1, "no_pm2");
|
|
@@ -132261,6 +132372,8 @@ function runRestartService(deps) {
|
|
|
132261
132372
|
}
|
|
132262
132373
|
const bridges = entries.filter(isOnlineBridge).filter((e) => typeof e.pid === "number" && Number.isInteger(e.pid) && e.pid > 0);
|
|
132263
132374
|
if (bridges.length === 0) {
|
|
132375
|
+
const viaAncestor = askAncestor("pm2 listed no running mrrlin-bridge from here");
|
|
132376
|
+
if (viaAncestor) return viaAncestor;
|
|
132264
132377
|
print(`${PREFIX2} no running mrrlin-bridge found under pm2. Start it with: mrrlin-mcp install-service`);
|
|
132265
132378
|
return done(1, "no_bridge");
|
|
132266
132379
|
}
|
|
@@ -132280,6 +132393,11 @@ function runRestartService(deps) {
|
|
|
132280
132393
|
);
|
|
132281
132394
|
if (sameCopy.length === 0) return done(1, "different_install");
|
|
132282
132395
|
}
|
|
132396
|
+
return signalBridges(deps, sameCopy, elsewhere.length > 0, manual);
|
|
132397
|
+
}
|
|
132398
|
+
function signalBridges(deps, sameCopy, someElsewhere, manual) {
|
|
132399
|
+
const { print, installedVersion } = deps;
|
|
132400
|
+
const done = (exitCode, outcome) => ({ exitCode, outcome });
|
|
132283
132401
|
if (deps.platform === "win32") {
|
|
132284
132402
|
print(
|
|
132285
132403
|
`${PREFIX2} Windows cannot send the reload signal, so the bridge was NOT asked to reload. The running bridge (pid ${sameCopy.map((b) => b.pid).join(", ")}) is still the old version and may not notice the new one by itself. To switch to the new version, ${manual}.`
|
|
@@ -132305,7 +132423,7 @@ function runRestartService(deps) {
|
|
|
132305
132423
|
`${PREFIX2} asked the running bridge (pid ${signalled.join(", ")}) to reload onto ${installedVersion}. It has NOT restarted yet. If the copy on disk differs from the one it is running, it first lets any reply or task that is running finish, then restarts by itself; if it already runs this version, nothing changes. Anything said in the meantime is still handled by the running version.`
|
|
132306
132424
|
);
|
|
132307
132425
|
if (failed.length > 0) print(`${PREFIX2} could not signal: ${failed.join("; ")}`);
|
|
132308
|
-
if (
|
|
132426
|
+
if (someElsewhere || failed.length > 0) return done(0, "partial");
|
|
132309
132427
|
return done(0, "signalled");
|
|
132310
132428
|
}
|
|
132311
132429
|
|
|
@@ -132939,7 +133057,13 @@ async function main() {
|
|
|
132939
133057
|
}
|
|
132940
133058
|
},
|
|
132941
133059
|
print: (line) => process.stdout.write(`${line}
|
|
132942
|
-
`)
|
|
133060
|
+
`),
|
|
133061
|
+
// When pm2's list shows no bridge (an agent shell that cannot reach pm2), the bridge this command
|
|
133062
|
+
// runs inside is found by walking up its parents with `ps`.
|
|
133063
|
+
findAncestorBridge: () => findBridgeAncestor(process.ppid, (pid) => {
|
|
133064
|
+
const r = spawnSyncCommand("ps", ["-o", "ppid=,args=", "-p", String(pid)], { encoding: "utf8", timeout: 3e3 });
|
|
133065
|
+
return r.status === 0 && typeof r.stdout === "string" && r.stdout.trim() ? r.stdout.trim().split("\n")[0] ?? null : null;
|
|
133066
|
+
})
|
|
132943
133067
|
}).exitCode;
|
|
132944
133068
|
return;
|
|
132945
133069
|
}
|