@mplp/runtime-minimal 1.0.0
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/LICENSE.txt +201 -0
- package/dist/ael/index.d.ts +41 -0
- package/dist/ael/index.js +30 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +33 -0
- package/dist/orchestrator/error-recovery.d.ts +12 -0
- package/dist/orchestrator/error-recovery.js +18 -0
- package/dist/orchestrator/index.d.ts +15 -0
- package/dist/orchestrator/index.js +32 -0
- package/dist/orchestrator/multi-agent.d.ts +12 -0
- package/dist/orchestrator/multi-agent.js +18 -0
- package/dist/orchestrator/risk-confirmation.d.ts +12 -0
- package/dist/orchestrator/risk-confirmation.js +18 -0
- package/dist/orchestrator/single-agent.d.ts +25 -0
- package/dist/orchestrator/single-agent.js +116 -0
- package/dist/registry/modules-registry.d.ts +25 -0
- package/dist/registry/modules-registry.js +40 -0
- package/dist/types/runtime-context.d.ts +28 -0
- package/dist/types/runtime-context.js +13 -0
- package/dist/types/runtime-result.d.ts +22 -0
- package/dist/types/runtime-result.js +13 -0
- package/dist/vsl/index.d.ts +32 -0
- package/dist/vsl/index.js +39 -0
- package/package.json +23 -0
- package/src/ael/index.d.ts +42 -0
- package/src/ael/index.js +31 -0
- package/src/ael/index.ts +47 -0
- package/src/index.d.ts +18 -0
- package/src/index.js +34 -0
- package/src/index.ts +18 -0
- package/src/orchestrator/error-recovery.d.ts +13 -0
- package/src/orchestrator/error-recovery.js +19 -0
- package/src/orchestrator/error-recovery.ts +16 -0
- package/src/orchestrator/index.d.ts +16 -0
- package/src/orchestrator/index.js +33 -0
- package/src/orchestrator/index.ts +17 -0
- package/src/orchestrator/multi-agent.d.ts +13 -0
- package/src/orchestrator/multi-agent.js +19 -0
- package/src/orchestrator/multi-agent.ts +16 -0
- package/src/orchestrator/risk-confirmation.d.ts +13 -0
- package/src/orchestrator/risk-confirmation.js +19 -0
- package/src/orchestrator/risk-confirmation.ts +16 -0
- package/src/orchestrator/single-agent.d.ts +26 -0
- package/src/orchestrator/single-agent.js +117 -0
- package/src/orchestrator/single-agent.ts +139 -0
- package/src/registry/modules-registry.d.ts +26 -0
- package/src/registry/modules-registry.js +41 -0
- package/src/registry/modules-registry.ts +67 -0
- package/src/types/runtime-context.d.ts +29 -0
- package/src/types/runtime-context.js +14 -0
- package/src/types/runtime-context.ts +32 -0
- package/src/types/runtime-result.d.ts +23 -0
- package/src/types/runtime-result.js +14 -0
- package/src/types/runtime-result.ts +25 -0
- package/src/vsl/index.d.ts +33 -0
- package/src/vsl/index.js +40 -0
- package/src/vsl/index.ts +48 -0
- package/tests/single-agent.runtime.test.ts +131 -0
- package/tsconfig.json +23 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* MPLP Protocol v1.0.0 — Frozen Specification
|
|
4
|
+
* Freeze Date: 2025-12-03
|
|
5
|
+
* Status: FROZEN (no breaking changes permitted)
|
|
6
|
+
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
7
|
+
*
|
|
8
|
+
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
9
|
+
*
|
|
10
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.getModuleHandler = getModuleHandler;
|
|
15
|
+
function getModuleHandler(registry, moduleName) {
|
|
16
|
+
switch (moduleName) {
|
|
17
|
+
case "context":
|
|
18
|
+
return registry.context;
|
|
19
|
+
case "plan":
|
|
20
|
+
return registry.plan;
|
|
21
|
+
case "confirm":
|
|
22
|
+
return registry.confirm;
|
|
23
|
+
case "trace":
|
|
24
|
+
return registry.trace;
|
|
25
|
+
case "role":
|
|
26
|
+
return registry.role;
|
|
27
|
+
case "extension":
|
|
28
|
+
return registry.extension;
|
|
29
|
+
case "dialog":
|
|
30
|
+
return registry.dialog;
|
|
31
|
+
case "collab":
|
|
32
|
+
return registry.collab;
|
|
33
|
+
case "core":
|
|
34
|
+
return registry.core;
|
|
35
|
+
case "network":
|
|
36
|
+
return registry.network;
|
|
37
|
+
default:
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MPLP Protocol v1.0.0 — Frozen Specification
|
|
3
|
+
* Freeze Date: 2025-12-03
|
|
4
|
+
* Status: FROZEN (no breaking changes permitted)
|
|
5
|
+
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
6
|
+
*
|
|
7
|
+
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*/
|
|
12
|
+
import type { CoordinationContext } from "@mplp/coordination";
|
|
13
|
+
import type { MplpEvent } from "@mplp/coordination";
|
|
14
|
+
export interface RuntimeIds {
|
|
15
|
+
runId: string;
|
|
16
|
+
projectId?: string;
|
|
17
|
+
correlationId?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface RuntimeOptions {
|
|
20
|
+
maxRetries?: number;
|
|
21
|
+
snapshotEveryStep?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface RuntimeContext {
|
|
24
|
+
ids: RuntimeIds;
|
|
25
|
+
coordination: CoordinationContext;
|
|
26
|
+
events: MplpEvent[];
|
|
27
|
+
options?: RuntimeOptions;
|
|
28
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* MPLP Protocol v1.0.0 — Frozen Specification
|
|
4
|
+
* Freeze Date: 2025-12-03
|
|
5
|
+
* Status: FROZEN (no breaking changes permitted)
|
|
6
|
+
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
7
|
+
*
|
|
8
|
+
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
9
|
+
*
|
|
10
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MPLP Protocol v1.0.0 — Frozen Specification
|
|
3
|
+
* Freeze Date: 2025-12-03
|
|
4
|
+
* Status: FROZEN (no breaking changes permitted)
|
|
5
|
+
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
6
|
+
*
|
|
7
|
+
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*/
|
|
12
|
+
import type { RuntimeContext } from "./runtime-context";
|
|
13
|
+
export interface RuntimeErrorInfo {
|
|
14
|
+
code: string;
|
|
15
|
+
message: string;
|
|
16
|
+
}
|
|
17
|
+
export interface RuntimeResult<TOutput = unknown> {
|
|
18
|
+
success: boolean;
|
|
19
|
+
output?: TOutput;
|
|
20
|
+
context: RuntimeContext;
|
|
21
|
+
error?: RuntimeErrorInfo;
|
|
22
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* MPLP Protocol v1.0.0 — Frozen Specification
|
|
4
|
+
* Freeze Date: 2025-12-03
|
|
5
|
+
* Status: FROZEN (no breaking changes permitted)
|
|
6
|
+
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
7
|
+
*
|
|
8
|
+
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
9
|
+
*
|
|
10
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MPLP Protocol v1.0.0 — Frozen Specification
|
|
3
|
+
* Freeze Date: 2025-12-03
|
|
4
|
+
* Status: FROZEN (no breaking changes permitted)
|
|
5
|
+
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
6
|
+
*
|
|
7
|
+
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*/
|
|
12
|
+
import type { RuntimeContext } from "../types/runtime-context";
|
|
13
|
+
import type { MplpEvent } from "@mplp/coordination";
|
|
14
|
+
export interface ValueStateLayer {
|
|
15
|
+
saveSnapshot(runId: string, context: RuntimeContext): Promise<void>;
|
|
16
|
+
loadSnapshot(runId: string): Promise<RuntimeContext | null>;
|
|
17
|
+
appendEvents(runId: string, events: MplpEvent[]): Promise<void>;
|
|
18
|
+
getEvents(runId: string): Promise<MplpEvent[]>;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* InMemoryVSL
|
|
22
|
+
*
|
|
23
|
+
* Simple in-memory implementation for reference and tests.
|
|
24
|
+
*/
|
|
25
|
+
export declare class InMemoryVSL implements ValueStateLayer {
|
|
26
|
+
private snapshots;
|
|
27
|
+
private events;
|
|
28
|
+
saveSnapshot(runId: string, context: RuntimeContext): Promise<void>;
|
|
29
|
+
loadSnapshot(runId: string): Promise<RuntimeContext | null>;
|
|
30
|
+
appendEvents(runId: string, newEvents: MplpEvent[]): Promise<void>;
|
|
31
|
+
getEvents(runId: string): Promise<MplpEvent[]>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* MPLP Protocol v1.0.0 — Frozen Specification
|
|
4
|
+
* Freeze Date: 2025-12-03
|
|
5
|
+
* Status: FROZEN (no breaking changes permitted)
|
|
6
|
+
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
7
|
+
*
|
|
8
|
+
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
9
|
+
*
|
|
10
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.InMemoryVSL = void 0;
|
|
15
|
+
/**
|
|
16
|
+
* InMemoryVSL
|
|
17
|
+
*
|
|
18
|
+
* Simple in-memory implementation for reference and tests.
|
|
19
|
+
*/
|
|
20
|
+
class InMemoryVSL {
|
|
21
|
+
constructor() {
|
|
22
|
+
this.snapshots = new Map();
|
|
23
|
+
this.events = new Map();
|
|
24
|
+
}
|
|
25
|
+
async saveSnapshot(runId, context) {
|
|
26
|
+
this.snapshots.set(runId, { ...context });
|
|
27
|
+
}
|
|
28
|
+
async loadSnapshot(runId) {
|
|
29
|
+
return this.snapshots.get(runId) ?? null;
|
|
30
|
+
}
|
|
31
|
+
async appendEvents(runId, newEvents) {
|
|
32
|
+
const existing = this.events.get(runId) ?? [];
|
|
33
|
+
this.events.set(runId, existing.concat(newEvents));
|
|
34
|
+
}
|
|
35
|
+
async getEvents(runId) {
|
|
36
|
+
return this.events.get(runId) ?? [];
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.InMemoryVSL = InMemoryVSL;
|
package/package.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "MPLP Protocol v1.0.0 — Frozen Specification\nFreeze Date: 2025-12-03\nStatus: FROZEN (no breaking changes permitted)\nGovernance: MPLP Protocol Governance Committee (MPGC)\nCopyright: © 2025 邦士(北京)网络科技有限公司\nLicense: Apache-2.0\nAny normative change requires a new protocol version.",
|
|
3
|
+
"name": "@mplp/runtime-minimal",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"description": "Vendor-neutral reference runtime (L3) for MPLP Protocol v1.0",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"@mplp/core": "1.0.0",
|
|
11
|
+
"@mplp/coordination": "1.0.0",
|
|
12
|
+
"@mplp/modules": "1.0.0"
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"typescript": "^5.0.0",
|
|
16
|
+
"vitest": "^1.0.0",
|
|
17
|
+
"@types/node": "^20.0.0"
|
|
18
|
+
},
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "tsc -p tsconfig.json",
|
|
21
|
+
"test": "vitest run"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MPLP Protocol v1.0.0 — Frozen Specification
|
|
3
|
+
* Freeze Date: 2025-12-03
|
|
4
|
+
* Status: FROZEN (no breaking changes permitted)
|
|
5
|
+
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
6
|
+
*
|
|
7
|
+
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import type { RuntimeContext } from "../types/runtime-context";
|
|
14
|
+
import type { MplpEvent } from "@mplp/coordination";
|
|
15
|
+
export interface ActionExecutionLayer {
|
|
16
|
+
executeAction(params: {
|
|
17
|
+
module: string;
|
|
18
|
+
stepId?: string;
|
|
19
|
+
input: unknown;
|
|
20
|
+
context: RuntimeContext;
|
|
21
|
+
}): Promise<{
|
|
22
|
+
output: unknown;
|
|
23
|
+
events?: MplpEvent[];
|
|
24
|
+
}>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* InMemoryAEL
|
|
28
|
+
*
|
|
29
|
+
* Reference implementation used for tests and examples.
|
|
30
|
+
* It does NOT call any real external systems.
|
|
31
|
+
*/
|
|
32
|
+
export declare class InMemoryAEL implements ActionExecutionLayer {
|
|
33
|
+
executeAction(params: {
|
|
34
|
+
module: string;
|
|
35
|
+
stepId?: string;
|
|
36
|
+
input: unknown;
|
|
37
|
+
context: RuntimeContext;
|
|
38
|
+
}): Promise<{
|
|
39
|
+
output: unknown;
|
|
40
|
+
events?: MplpEvent[];
|
|
41
|
+
}>;
|
|
42
|
+
}
|
package/src/ael/index.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MPLP Protocol v1.0.0 — Frozen Specification
|
|
3
|
+
* Freeze Date: 2025-12-03
|
|
4
|
+
* Status: FROZEN (no breaking changes permitted)
|
|
5
|
+
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
6
|
+
*
|
|
7
|
+
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
"use strict";
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.InMemoryAEL = void 0;
|
|
16
|
+
/**
|
|
17
|
+
* InMemoryAEL
|
|
18
|
+
*
|
|
19
|
+
* Reference implementation used for tests and examples.
|
|
20
|
+
* It does NOT call any real external systems.
|
|
21
|
+
*/
|
|
22
|
+
class InMemoryAEL {
|
|
23
|
+
async executeAction(params) {
|
|
24
|
+
// For now, simply echo the input as output.
|
|
25
|
+
return {
|
|
26
|
+
output: params.input,
|
|
27
|
+
events: []
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.InMemoryAEL = InMemoryAEL;
|
package/src/ael/index.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MPLP Protocol v1.0.0 — Frozen Specification
|
|
3
|
+
* Freeze Date: 2025-12-03
|
|
4
|
+
* Status: FROZEN (no breaking changes permitted)
|
|
5
|
+
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
6
|
+
*
|
|
7
|
+
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import type { RuntimeContext } from "../types/runtime-context";
|
|
14
|
+
import type { MplpEvent } from "@mplp/coordination";
|
|
15
|
+
|
|
16
|
+
export interface ActionExecutionLayer {
|
|
17
|
+
executeAction(params: {
|
|
18
|
+
module: string;
|
|
19
|
+
stepId?: string;
|
|
20
|
+
input: unknown;
|
|
21
|
+
context: RuntimeContext;
|
|
22
|
+
}): Promise<{
|
|
23
|
+
output: unknown;
|
|
24
|
+
events?: MplpEvent[];
|
|
25
|
+
}>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* InMemoryAEL
|
|
30
|
+
*
|
|
31
|
+
* Reference implementation used for tests and examples.
|
|
32
|
+
* It does NOT call any real external systems.
|
|
33
|
+
*/
|
|
34
|
+
export class InMemoryAEL implements ActionExecutionLayer {
|
|
35
|
+
async executeAction(params: {
|
|
36
|
+
module: string;
|
|
37
|
+
stepId?: string;
|
|
38
|
+
input: unknown;
|
|
39
|
+
context: RuntimeContext;
|
|
40
|
+
}): Promise<{ output: unknown; events?: MplpEvent[] }> {
|
|
41
|
+
// For now, simply echo the input as output.
|
|
42
|
+
return {
|
|
43
|
+
output: params.input,
|
|
44
|
+
events: []
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
}
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MPLP Protocol v1.0.0 — Frozen Specification
|
|
3
|
+
* Freeze Date: 2025-12-03
|
|
4
|
+
* Status: FROZEN (no breaking changes permitted)
|
|
5
|
+
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
6
|
+
*
|
|
7
|
+
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
export * from "./types/runtime-context";
|
|
14
|
+
export * from "./types/runtime-result";
|
|
15
|
+
export * from "./ael";
|
|
16
|
+
export * from "./vsl";
|
|
17
|
+
export * from "./registry/modules-registry";
|
|
18
|
+
export * from "./orchestrator";
|
package/src/index.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MPLP Protocol v1.0.0 — Frozen Specification
|
|
3
|
+
* Freeze Date: 2025-12-03
|
|
4
|
+
* Status: FROZEN (no breaking changes permitted)
|
|
5
|
+
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
6
|
+
*
|
|
7
|
+
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
"use strict";
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
17
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
18
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
19
|
+
}
|
|
20
|
+
Object.defineProperty(o, k2, desc);
|
|
21
|
+
}) : (function(o, m, k, k2) {
|
|
22
|
+
if (k2 === undefined) k2 = k;
|
|
23
|
+
o[k2] = m[k];
|
|
24
|
+
}));
|
|
25
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
__exportStar(require("./types/runtime-context"), exports);
|
|
30
|
+
__exportStar(require("./types/runtime-result"), exports);
|
|
31
|
+
__exportStar(require("./ael"), exports);
|
|
32
|
+
__exportStar(require("./vsl"), exports);
|
|
33
|
+
__exportStar(require("./registry/modules-registry"), exports);
|
|
34
|
+
__exportStar(require("./orchestrator"), exports);
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MPLP Protocol v1.0.0 — Frozen Specification
|
|
3
|
+
* Freeze Date: 2025-12-03
|
|
4
|
+
* Status: FROZEN (no breaking changes permitted)
|
|
5
|
+
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
6
|
+
*
|
|
7
|
+
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
export * from "./types/runtime-context";
|
|
14
|
+
export * from "./types/runtime-result";
|
|
15
|
+
export * from "./ael";
|
|
16
|
+
export * from "./vsl";
|
|
17
|
+
export * from "./registry/modules-registry";
|
|
18
|
+
export * from "./orchestrator";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MPLP Protocol v1.0.0 — Frozen Specification
|
|
3
|
+
* Freeze Date: 2025-12-03
|
|
4
|
+
* Status: FROZEN (no breaking changes permitted)
|
|
5
|
+
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
6
|
+
*
|
|
7
|
+
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
export declare function runErrorRecoveryFlow(): Promise<void>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MPLP Protocol v1.0.0 — Frozen Specification
|
|
3
|
+
* Freeze Date: 2025-12-03
|
|
4
|
+
* Status: FROZEN (no breaking changes permitted)
|
|
5
|
+
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
6
|
+
*
|
|
7
|
+
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
"use strict";
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.runErrorRecoveryFlow = runErrorRecoveryFlow;
|
|
16
|
+
// TODO: Implement Error Recovery Orchestrator
|
|
17
|
+
async function runErrorRecoveryFlow() {
|
|
18
|
+
throw new Error("Not implemented");
|
|
19
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MPLP Protocol v1.0.0 — Frozen Specification
|
|
3
|
+
* Freeze Date: 2025-12-03
|
|
4
|
+
* Status: FROZEN (no breaking changes permitted)
|
|
5
|
+
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
6
|
+
*
|
|
7
|
+
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
// TODO: Implement Error Recovery Orchestrator
|
|
14
|
+
export async function runErrorRecoveryFlow() {
|
|
15
|
+
throw new Error("Not implemented");
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MPLP Protocol v1.0.0 — Frozen Specification
|
|
3
|
+
* Freeze Date: 2025-12-03
|
|
4
|
+
* Status: FROZEN (no breaking changes permitted)
|
|
5
|
+
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
6
|
+
*
|
|
7
|
+
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
export * from "./single-agent";
|
|
14
|
+
export * from "./multi-agent";
|
|
15
|
+
export * from "./risk-confirmation";
|
|
16
|
+
export * from "./error-recovery";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MPLP Protocol v1.0.0 — Frozen Specification
|
|
3
|
+
* Freeze Date: 2025-12-03
|
|
4
|
+
* Status: FROZEN (no breaking changes permitted)
|
|
5
|
+
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
6
|
+
*
|
|
7
|
+
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
"use strict";
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
17
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
18
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
19
|
+
}
|
|
20
|
+
Object.defineProperty(o, k2, desc);
|
|
21
|
+
}) : (function(o, m, k, k2) {
|
|
22
|
+
if (k2 === undefined) k2 = k;
|
|
23
|
+
o[k2] = m[k];
|
|
24
|
+
}));
|
|
25
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
__exportStar(require("./single-agent"), exports);
|
|
30
|
+
// export skeletons for future extension:
|
|
31
|
+
__exportStar(require("./multi-agent"), exports);
|
|
32
|
+
__exportStar(require("./risk-confirmation"), exports);
|
|
33
|
+
__exportStar(require("./error-recovery"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MPLP Protocol v1.0.0 — Frozen Specification
|
|
3
|
+
* Freeze Date: 2025-12-03
|
|
4
|
+
* Status: FROZEN (no breaking changes permitted)
|
|
5
|
+
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
6
|
+
*
|
|
7
|
+
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
export * from "./single-agent";
|
|
14
|
+
// export skeletons for future extension:
|
|
15
|
+
export * from "./multi-agent";
|
|
16
|
+
export * from "./risk-confirmation";
|
|
17
|
+
export * from "./error-recovery";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MPLP Protocol v1.0.0 — Frozen Specification
|
|
3
|
+
* Freeze Date: 2025-12-03
|
|
4
|
+
* Status: FROZEN (no breaking changes permitted)
|
|
5
|
+
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
6
|
+
*
|
|
7
|
+
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
export declare function runMultiAgentFlow(): Promise<void>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MPLP Protocol v1.0.0 — Frozen Specification
|
|
3
|
+
* Freeze Date: 2025-12-03
|
|
4
|
+
* Status: FROZEN (no breaking changes permitted)
|
|
5
|
+
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
6
|
+
*
|
|
7
|
+
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
"use strict";
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.runMultiAgentFlow = runMultiAgentFlow;
|
|
16
|
+
// TODO: Implement Multi-Agent Orchestrator
|
|
17
|
+
async function runMultiAgentFlow() {
|
|
18
|
+
throw new Error("Not implemented");
|
|
19
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MPLP Protocol v1.0.0 — Frozen Specification
|
|
3
|
+
* Freeze Date: 2025-12-03
|
|
4
|
+
* Status: FROZEN (no breaking changes permitted)
|
|
5
|
+
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
6
|
+
*
|
|
7
|
+
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
// TODO: Implement Multi-Agent Orchestrator
|
|
14
|
+
export async function runMultiAgentFlow() {
|
|
15
|
+
throw new Error("Not implemented");
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MPLP Protocol v1.0.0 — Frozen Specification
|
|
3
|
+
* Freeze Date: 2025-12-03
|
|
4
|
+
* Status: FROZEN (no breaking changes permitted)
|
|
5
|
+
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
6
|
+
*
|
|
7
|
+
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
export declare function runRiskConfirmationFlow(): Promise<void>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MPLP Protocol v1.0.0 — Frozen Specification
|
|
3
|
+
* Freeze Date: 2025-12-03
|
|
4
|
+
* Status: FROZEN (no breaking changes permitted)
|
|
5
|
+
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
6
|
+
*
|
|
7
|
+
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
"use strict";
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.runRiskConfirmationFlow = runRiskConfirmationFlow;
|
|
16
|
+
// TODO: Implement Risk Confirmation Orchestrator
|
|
17
|
+
async function runRiskConfirmationFlow() {
|
|
18
|
+
throw new Error("Not implemented");
|
|
19
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MPLP Protocol v1.0.0 — Frozen Specification
|
|
3
|
+
* Freeze Date: 2025-12-03
|
|
4
|
+
* Status: FROZEN (no breaking changes permitted)
|
|
5
|
+
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
6
|
+
*
|
|
7
|
+
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
// TODO: Implement Risk Confirmation Orchestrator
|
|
14
|
+
export async function runRiskConfirmationFlow() {
|
|
15
|
+
throw new Error("Not implemented");
|
|
16
|
+
}
|