@martinloop/mcp 0.7.1 → 0.8.1
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/package-version.d.ts +1 -1
- package/dist/package-version.js +1 -1
- package/dist/vendor/adapters/claude-cli.d.ts +16 -1
- package/dist/vendor/adapters/claude-cli.js +286 -71
- package/dist/vendor/adapters/cli-bridge.d.ts +12 -3
- package/dist/vendor/adapters/cli-bridge.js +129 -149
- package/dist/vendor/adapters/codex-capabilities.d.ts +4 -1
- package/dist/vendor/adapters/codex-capabilities.js +36 -4
- package/dist/vendor/adapters/codex-cli.d.ts +10 -3
- package/dist/vendor/adapters/codex-cli.js +21 -24
- package/dist/vendor/adapters/codex-host.js +150 -132
- package/dist/vendor/adapters/index.d.ts +3 -2
- package/dist/vendor/adapters/index.js +3 -2
- package/dist/vendor/adapters/openai-compatible.js +88 -6
- package/dist/vendor/adapters/process-supervisor.d.ts +60 -0
- package/dist/vendor/adapters/process-supervisor.js +541 -0
- package/dist/vendor/adapters/verifier-only.d.ts +10 -1
- package/dist/vendor/adapters/verifier-only.js +43 -1
- package/dist/vendor/contracts/external-outcome.d.ts +102 -0
- package/dist/vendor/contracts/external-outcome.js +226 -0
- package/dist/vendor/contracts/index.d.ts +12 -1
- package/dist/vendor/contracts/index.js +2 -0
- package/dist/vendor/contracts/swarm-hosted.d.ts +204 -0
- package/dist/vendor/contracts/swarm-hosted.js +629 -0
- package/dist/vendor/contracts/swarm.d.ts +449 -0
- package/dist/vendor/contracts/swarm.js +550 -0
- package/dist/vendor/core/external-outcome.d.ts +34 -0
- package/dist/vendor/core/external-outcome.js +515 -0
- package/dist/vendor/core/grounding.js +1 -1
- package/dist/vendor/core/index.d.ts +52 -1
- package/dist/vendor/core/index.js +55 -3
- package/dist/vendor/core/leash.d.ts +1 -0
- package/dist/vendor/core/leash.js +13 -0
- package/dist/vendor/core/persistence/integrity.d.ts +4 -0
- package/dist/vendor/core/persistence/integrity.js +19 -6
- package/dist/vendor/core/persistence/swarm-integrity.d.ts +63 -0
- package/dist/vendor/core/persistence/swarm-integrity.js +309 -0
- package/dist/vendor/core/policy.d.ts +3 -0
- package/dist/vendor/core/policy.js +13 -0
- package/dist/vendor/core/swarm/candidates.d.ts +78 -0
- package/dist/vendor/core/swarm/candidates.js +810 -0
- package/dist/vendor/core/swarm/evidence-projection.d.ts +87 -0
- package/dist/vendor/core/swarm/evidence-projection.js +128 -0
- package/dist/vendor/core/swarm/evidence.d.ts +40 -0
- package/dist/vendor/core/swarm/evidence.js +575 -0
- package/dist/vendor/core/swarm/hosted-export.d.ts +48 -0
- package/dist/vendor/core/swarm/hosted-export.js +362 -0
- package/dist/vendor/core/swarm/hosted-projection.d.ts +5 -0
- package/dist/vendor/core/swarm/hosted-projection.js +258 -0
- package/dist/vendor/core/swarm/index.d.ts +110 -0
- package/dist/vendor/core/swarm/index.js +1060 -0
- package/dist/vendor/core/swarm/integration.d.ts +76 -0
- package/dist/vendor/core/swarm/integration.js +615 -0
- package/dist/vendor/core/swarm/lifecycle.d.ts +72 -0
- package/dist/vendor/core/swarm/lifecycle.js +252 -0
- package/dist/vendor/core/swarm/live-runtime.d.ts +78 -0
- package/dist/vendor/core/swarm/live-runtime.js +1482 -0
- package/dist/vendor/core/swarm/live-store.d.ts +99 -0
- package/dist/vendor/core/swarm/live-store.js +860 -0
- package/dist/vendor/core/swarm/operational-reader.d.ts +17 -0
- package/dist/vendor/core/swarm/operational-reader.js +96 -0
- package/dist/vendor/core/swarm/operations.d.ts +29 -0
- package/dist/vendor/core/swarm/operations.js +128 -0
- package/dist/vendor/core/swarm/parent-receipt.d.ts +13 -0
- package/dist/vendor/core/swarm/parent-receipt.js +489 -0
- package/dist/vendor/core/swarm/receipt-projection.d.ts +26 -0
- package/dist/vendor/core/swarm/receipt-projection.js +120 -0
- package/dist/vendor/core/swarm/scheduler.d.ts +92 -0
- package/dist/vendor/core/swarm/scheduler.js +555 -0
- package/dist/vendor/core/swarm/verification.d.ts +70 -0
- package/dist/vendor/core/swarm/verification.js +295 -0
- package/dist/vendor/core/swarm/workspaces.d.ts +77 -0
- package/dist/vendor/core/swarm/workspaces.js +488 -0
- package/dist/vendor/core/verified-handoff.d.ts +4 -0
- package/dist/vendor/core/verified-handoff.js +4 -0
- package/package.json +1 -1
- package/server.json +2 -2
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import type { SwarmCleanupRecord, ReceiptIntegritySummary, SwarmDeterministicDemoReceiptEvidence, SwarmEvent, SwarmGlobalVerification, SwarmOutcome, SwarmRunRecord } from "../../contracts/index.js";
|
|
2
|
+
import { type SwarmIntegrationEvidenceStore } from "./integration.js";
|
|
3
|
+
import { type SwarmGlobalVerificationEvidenceStore, type SwarmVerifierExecutor } from "./verification.js";
|
|
4
|
+
import { type SwarmWorkspaceManager } from "./workspaces.js";
|
|
5
|
+
export { createParentDependencyWaiverRegistry, createSwarmBudgetLedger, extendSwarmBudgetLease, issueParentDependencyWaiver, releaseSwarmBudgetLease, reserveSwarmBudgetLease, selectNextSwarmBatch, settleSwarmBudgetLease, tasksHaveScopeCollision, validateSwarmTaskGraph } from "./scheduler.js";
|
|
6
|
+
export type { DependencyWaiverIssuanceResult, IssuedDependencyWaiverCapability, ParentDependencyWaiverRegistry, SwarmBatchResult, SwarmBudgetProtectedUsage, SwarmBudgetTransitionResult, SwarmGraphValidationResult, SwarmSchedulerError } from "./scheduler.js";
|
|
7
|
+
export type ParentSwarmInvariantState = "passed" | "failed" | "unknown";
|
|
8
|
+
export interface ParentSwarmOutcomeDecision {
|
|
9
|
+
outcome: SwarmOutcome;
|
|
10
|
+
blockingInvariants: string[];
|
|
11
|
+
event?: SwarmEvent;
|
|
12
|
+
}
|
|
13
|
+
export interface ParentSwarmOutcomeAssessment {
|
|
14
|
+
disposition: "ready" | "stopped" | "needs_review";
|
|
15
|
+
eligibleForParentVerification: boolean;
|
|
16
|
+
blockingInvariants: string[];
|
|
17
|
+
}
|
|
18
|
+
export interface DeterministicDemoVerifierExecutionFacts {
|
|
19
|
+
verifierId: string;
|
|
20
|
+
swarmId: string;
|
|
21
|
+
workspaceId: string;
|
|
22
|
+
parentPolicyVersion: string;
|
|
23
|
+
commands: string[];
|
|
24
|
+
launched: boolean;
|
|
25
|
+
completed: boolean;
|
|
26
|
+
crashed: boolean;
|
|
27
|
+
timedOut: boolean;
|
|
28
|
+
exitCode: number | null;
|
|
29
|
+
evaluatedAt: string;
|
|
30
|
+
}
|
|
31
|
+
export interface CompleteDeterministicDemoSwarmRunInput {
|
|
32
|
+
record: SwarmRunRecord;
|
|
33
|
+
verifier: DeterministicDemoVerifierExecutionFacts;
|
|
34
|
+
receiptEvidence: SwarmDeterministicDemoReceiptEvidence[];
|
|
35
|
+
}
|
|
36
|
+
export interface CompleteDeterministicDemoSwarmRunResult extends ParentSwarmOutcomeDecision {
|
|
37
|
+
record: SwarmRunRecord;
|
|
38
|
+
receiptEvidence: SwarmDeterministicDemoReceiptEvidence[];
|
|
39
|
+
}
|
|
40
|
+
export interface ParentSwarmPipelineEvidenceStore extends SwarmIntegrationEvidenceStore, SwarmGlobalVerificationEvidenceStore {
|
|
41
|
+
loadPersistedChildCompletion(childRunId: string): Promise<PersistedSwarmChildCompletionEvidence | undefined>;
|
|
42
|
+
persistWorkspaceFailureEvidence(evidence: SwarmPipelineWorkspaceFailureEvidence): Promise<void>;
|
|
43
|
+
persistCleanupEvidence(cleanup: SwarmCleanupRecord): Promise<void>;
|
|
44
|
+
}
|
|
45
|
+
export interface SwarmPipelineWorkspaceFailureEvidence {
|
|
46
|
+
readonly failureId: string;
|
|
47
|
+
readonly swarmId: string;
|
|
48
|
+
readonly workspaceId: string;
|
|
49
|
+
readonly workspaceKind: "integration" | "verifier";
|
|
50
|
+
readonly phase: "integration" | "verification";
|
|
51
|
+
readonly errorCode: string;
|
|
52
|
+
readonly recordedAt: string;
|
|
53
|
+
}
|
|
54
|
+
export interface PersistedSwarmChildCompletionEvidence {
|
|
55
|
+
readonly swarmId: string;
|
|
56
|
+
readonly childRunId: string;
|
|
57
|
+
readonly agentId: string;
|
|
58
|
+
readonly attemptId: string;
|
|
59
|
+
readonly taskIds: readonly string[];
|
|
60
|
+
readonly workspaceId?: string;
|
|
61
|
+
readonly processCloseState: "closed";
|
|
62
|
+
readonly leaseState: "settled" | "overspent" | "released";
|
|
63
|
+
readonly receipt: {
|
|
64
|
+
readonly receiptId: string;
|
|
65
|
+
readonly swarmId: string;
|
|
66
|
+
readonly childRunId: string;
|
|
67
|
+
readonly agentId: string;
|
|
68
|
+
readonly attemptId: string;
|
|
69
|
+
readonly taskIds: readonly string[];
|
|
70
|
+
readonly integrity: ReceiptIntegritySummary;
|
|
71
|
+
readonly bindingSha256: string;
|
|
72
|
+
};
|
|
73
|
+
readonly evidencePersisted: true;
|
|
74
|
+
readonly workspaceCleanupState: "completed" | "not_required";
|
|
75
|
+
readonly cleanup?: SwarmCleanupRecord;
|
|
76
|
+
}
|
|
77
|
+
export interface RunParentSwarmPipelineInput {
|
|
78
|
+
readonly record: SwarmRunRecord;
|
|
79
|
+
readonly candidateIds: readonly string[];
|
|
80
|
+
readonly workspaceManager: SwarmWorkspaceManager;
|
|
81
|
+
readonly evidenceStore: ParentSwarmPipelineEvidenceStore;
|
|
82
|
+
readonly integrationWorkspaceId: string;
|
|
83
|
+
readonly verifierWorkspaceId: string;
|
|
84
|
+
readonly verifierExecutor: SwarmVerifierExecutor;
|
|
85
|
+
readonly signal: AbortSignal;
|
|
86
|
+
readonly now?: () => string;
|
|
87
|
+
readonly createId?: (prefix: string) => string;
|
|
88
|
+
}
|
|
89
|
+
export interface RunParentSwarmPipelineResult {
|
|
90
|
+
readonly record: SwarmRunRecord;
|
|
91
|
+
readonly outcome: SwarmOutcome;
|
|
92
|
+
readonly disposition: ParentSwarmOutcomeAssessment["disposition"];
|
|
93
|
+
readonly blockingInvariants: readonly string[];
|
|
94
|
+
readonly integration: {
|
|
95
|
+
readonly completed: boolean;
|
|
96
|
+
readonly finalTreeHash: string;
|
|
97
|
+
readonly admittedCandidateIds: readonly string[];
|
|
98
|
+
};
|
|
99
|
+
readonly verification?: SwarmGlobalVerification;
|
|
100
|
+
readonly cleanup: readonly SwarmCleanupRecord[];
|
|
101
|
+
}
|
|
102
|
+
/** Internal authority check for operational persistence; not re-exported from Core root. */
|
|
103
|
+
export declare function isAuthorizedParentSwarmPipelineResult(result: RunParentSwarmPipelineResult): boolean;
|
|
104
|
+
/**
|
|
105
|
+
* The only public live Phase 3 completion boundary. It derives integration,
|
|
106
|
+
* verifier, receipt, budget, conflict, and cleanup truth from concrete runtime
|
|
107
|
+
* evidence; callers cannot supply invariant booleans or a desired outcome.
|
|
108
|
+
*/
|
|
109
|
+
export declare function runParentSwarmPipeline(input: RunParentSwarmPipelineInput): Promise<RunParentSwarmPipelineResult>;
|
|
110
|
+
export declare function completeDeterministicDemoSwarmRun(input: CompleteDeterministicDemoSwarmRunInput): CompleteDeterministicDemoSwarmRunResult;
|