@mplp/sdk-ts 1.0.1 → 1.0.2
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/CHANGELOG.md +5 -0
- package/README.md +11 -0
- package/dist/builders/confirm-builder.d.ts +4 -8
- package/dist/builders/confirm-builder.js +6 -10
- package/dist/builders/context-builder.d.ts +4 -8
- package/dist/builders/context-builder.js +6 -10
- package/dist/builders/plan-builder.d.ts +4 -8
- package/dist/builders/plan-builder.js +6 -10
- package/dist/builders/trace-builder.d.ts +4 -8
- package/dist/builders/trace-builder.js +6 -10
- package/dist/client/runtime-client.d.ts +4 -8
- package/dist/client/runtime-client.js +6 -10
- package/dist/index.d.ts +4 -8
- package/dist/index.js +7 -11
- package/package.json +37 -8
- package/src/builders/confirm-builder.ts +7 -12
- package/src/builders/context-builder.ts +7 -12
- package/src/builders/plan-builder.ts +7 -12
- package/src/builders/trace-builder.ts +7 -12
- package/src/client/runtime-client.ts +7 -12
- package/src/index.ts +7 -12
- package/tests/builders.test.ts +12 -12
- package/tests/client-single-agent.test.ts +12 -12
- package/tsconfig.json +23 -23
package/CHANGELOG.md
ADDED
package/README.md
ADDED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* Status: FROZEN (no breaking changes permitted)
|
|
5
|
-
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
2
|
+
* © 2025 邦士(北京)网络科技有限公司
|
|
3
|
+
* Licensed under the Apache License, Version 2.0.
|
|
6
4
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5
|
+
* This file is part of the MPLP reference implementation.
|
|
6
|
+
* It is NOT part of the frozen protocol specification.
|
|
11
7
|
*/
|
|
12
8
|
import { Confirm, Plan } from "@mplp/core";
|
|
13
9
|
export interface CreateConfirmOptions {
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createConfirm = createConfirm;
|
|
2
4
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* Status: FROZEN (no breaking changes permitted)
|
|
6
|
-
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
7
|
-
*
|
|
8
|
-
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
5
|
+
* © 2025 邦士(北京)网络科技有限公司
|
|
6
|
+
* Licensed under the Apache License, Version 2.0.
|
|
9
7
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
8
|
+
* This file is part of the MPLP reference implementation.
|
|
9
|
+
* It is NOT part of the frozen protocol specification.
|
|
12
10
|
*/
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.createConfirm = createConfirm;
|
|
15
11
|
const core_1 = require("@mplp/core");
|
|
16
12
|
const uuid_1 = require("uuid");
|
|
17
13
|
function createConfirm(plan, options) {
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* Status: FROZEN (no breaking changes permitted)
|
|
5
|
-
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
2
|
+
* © 2025 邦士(北京)网络科技有限公司
|
|
3
|
+
* Licensed under the Apache License, Version 2.0.
|
|
6
4
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5
|
+
* This file is part of the MPLP reference implementation.
|
|
6
|
+
* It is NOT part of the frozen protocol specification.
|
|
11
7
|
*/
|
|
12
8
|
import { Context } from "@mplp/core";
|
|
13
9
|
export interface CreateContextOptions {
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createContext = createContext;
|
|
2
4
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* Status: FROZEN (no breaking changes permitted)
|
|
6
|
-
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
7
|
-
*
|
|
8
|
-
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
5
|
+
* © 2025 邦士(北京)网络科技有限公司
|
|
6
|
+
* Licensed under the Apache License, Version 2.0.
|
|
9
7
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
8
|
+
* This file is part of the MPLP reference implementation.
|
|
9
|
+
* It is NOT part of the frozen protocol specification.
|
|
12
10
|
*/
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.createContext = createContext;
|
|
15
11
|
const core_1 = require("@mplp/core");
|
|
16
12
|
const uuid_1 = require("uuid");
|
|
17
13
|
function createContext(options) {
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* Status: FROZEN (no breaking changes permitted)
|
|
5
|
-
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
2
|
+
* © 2025 邦士(北京)网络科技有限公司
|
|
3
|
+
* Licensed under the Apache License, Version 2.0.
|
|
6
4
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5
|
+
* This file is part of the MPLP reference implementation.
|
|
6
|
+
* It is NOT part of the frozen protocol specification.
|
|
11
7
|
*/
|
|
12
8
|
import { Plan, Context } from "@mplp/core";
|
|
13
9
|
export interface CreatePlanOptions {
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createPlan = createPlan;
|
|
2
4
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* Status: FROZEN (no breaking changes permitted)
|
|
6
|
-
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
7
|
-
*
|
|
8
|
-
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
5
|
+
* © 2025 邦士(北京)网络科技有限公司
|
|
6
|
+
* Licensed under the Apache License, Version 2.0.
|
|
9
7
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
8
|
+
* This file is part of the MPLP reference implementation.
|
|
9
|
+
* It is NOT part of the frozen protocol specification.
|
|
12
10
|
*/
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.createPlan = createPlan;
|
|
15
11
|
const core_1 = require("@mplp/core");
|
|
16
12
|
const uuid_1 = require("uuid");
|
|
17
13
|
function createPlan(context, options) {
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* Status: FROZEN (no breaking changes permitted)
|
|
5
|
-
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
2
|
+
* © 2025 邦士(北京)网络科技有限公司
|
|
3
|
+
* Licensed under the Apache License, Version 2.0.
|
|
6
4
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5
|
+
* This file is part of the MPLP reference implementation.
|
|
6
|
+
* It is NOT part of the frozen protocol specification.
|
|
11
7
|
*/
|
|
12
8
|
import { Trace, Context, Plan } from "@mplp/core";
|
|
13
9
|
export interface AppendTraceOptions {
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.appendTrace = appendTrace;
|
|
2
4
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* Status: FROZEN (no breaking changes permitted)
|
|
6
|
-
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
7
|
-
*
|
|
8
|
-
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
5
|
+
* © 2025 邦士(北京)网络科技有限公司
|
|
6
|
+
* Licensed under the Apache License, Version 2.0.
|
|
9
7
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
8
|
+
* This file is part of the MPLP reference implementation.
|
|
9
|
+
* It is NOT part of the frozen protocol specification.
|
|
12
10
|
*/
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.appendTrace = appendTrace;
|
|
15
11
|
const core_1 = require("@mplp/core");
|
|
16
12
|
const uuid_1 = require("uuid");
|
|
17
13
|
function appendTrace(context, plan, options) {
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* Status: FROZEN (no breaking changes permitted)
|
|
5
|
-
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
2
|
+
* © 2025 邦士(北京)网络科技有限公司
|
|
3
|
+
* Licensed under the Apache License, Version 2.0.
|
|
6
4
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5
|
+
* This file is part of the MPLP reference implementation.
|
|
6
|
+
* It is NOT part of the frozen protocol specification.
|
|
11
7
|
*/
|
|
12
8
|
import { RuntimeResult, RuntimeModuleRegistry, ValueStateLayer, ActionExecutionLayer } from "@mplp/runtime-minimal";
|
|
13
9
|
import { CreateContextOptions } from "../builders/context-builder";
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MplpRuntimeClient = void 0;
|
|
2
4
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* Status: FROZEN (no breaking changes permitted)
|
|
6
|
-
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
7
|
-
*
|
|
8
|
-
* © 2025 邦士(北京)网络科技有限公司. All rights reserved.
|
|
5
|
+
* © 2025 邦士(北京)网络科技有限公司
|
|
6
|
+
* Licensed under the Apache License, Version 2.0.
|
|
9
7
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
8
|
+
* This file is part of the MPLP reference implementation.
|
|
9
|
+
* It is NOT part of the frozen protocol specification.
|
|
12
10
|
*/
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.MplpRuntimeClient = void 0;
|
|
15
11
|
const runtime_minimal_1 = require("@mplp/runtime-minimal");
|
|
16
12
|
const coordination_1 = require("@mplp/coordination");
|
|
17
13
|
const context_builder_1 = require("../builders/context-builder");
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* Status: FROZEN (no breaking changes permitted)
|
|
5
|
-
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
2
|
+
* © 2025 邦士(北京)网络科技有限公司
|
|
3
|
+
* Licensed under the Apache License, Version 2.0.
|
|
6
4
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5
|
+
* This file is part of the MPLP reference implementation.
|
|
6
|
+
* It is NOT part of the frozen protocol specification.
|
|
11
7
|
*/
|
|
12
8
|
export * from "@mplp/core";
|
|
13
9
|
export * from "./builders/context-builder";
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
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
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
3
|
if (k2 === undefined) k2 = k;
|
|
15
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -25,6 +14,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
25
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
26
15
|
};
|
|
27
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/**
|
|
18
|
+
* © 2025 邦士(北京)网络科技有限公司
|
|
19
|
+
* Licensed under the Apache License, Version 2.0.
|
|
20
|
+
*
|
|
21
|
+
* This file is part of the MPLP reference implementation.
|
|
22
|
+
* It is NOT part of the frozen protocol specification.
|
|
23
|
+
*/
|
|
28
24
|
__exportStar(require("@mplp/core"), exports);
|
|
29
25
|
__exportStar(require("./builders/context-builder"), exports);
|
|
30
26
|
__exportStar(require("./builders/plan-builder"), exports);
|
package/package.json
CHANGED
|
@@ -1,23 +1,52 @@
|
|
|
1
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
2
|
"name": "@mplp/sdk-ts",
|
|
4
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
5
4
|
"description": "MPLP TypeScript SDK for developers",
|
|
6
5
|
"main": "dist/index.js",
|
|
7
6
|
"types": "dist/index.d.ts",
|
|
8
7
|
"dependencies": {
|
|
9
|
-
"
|
|
10
|
-
"@mplp/
|
|
11
|
-
"@mplp/
|
|
12
|
-
"@mplp/runtime-minimal": "1.0.
|
|
13
|
-
"@mplp/
|
|
14
|
-
"
|
|
8
|
+
"@mplp/core": "^1.0.2",
|
|
9
|
+
"@mplp/schema": "^1.0.2",
|
|
10
|
+
"@mplp/modules": "^1.0.2",
|
|
11
|
+
"@mplp/runtime-minimal": "^1.0.2",
|
|
12
|
+
"@mplp/coordination": "^1.0.2",
|
|
13
|
+
"uuid": "^9.0.1"
|
|
15
14
|
},
|
|
16
15
|
"devDependencies": {
|
|
17
16
|
"typescript": "^5.0.0",
|
|
18
17
|
"vitest": "^1.0.0",
|
|
19
18
|
"@types/uuid": "^9.0.0"
|
|
20
19
|
},
|
|
20
|
+
"author": "邦士(北京)网络科技有限公司",
|
|
21
|
+
"copyright": "© 2025 邦士(北京)网络科技有限公司",
|
|
22
|
+
"license": "Apache-2.0",
|
|
23
|
+
"mplp": {
|
|
24
|
+
"protocolVersion": "1.0.0",
|
|
25
|
+
"frozen": true,
|
|
26
|
+
"governance": "MPGC",
|
|
27
|
+
"layer": "Tools"
|
|
28
|
+
},
|
|
29
|
+
"homepage": "https://github.com/coregentis/MPLP-Protocol",
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/coregentis/MPLP-Protocol/issues"
|
|
32
|
+
},
|
|
33
|
+
"repository": {
|
|
34
|
+
"type": "git",
|
|
35
|
+
"url": "https://github.com/coregentis/MPLP-Protocol.git",
|
|
36
|
+
"directory": "packages/sdk-ts"
|
|
37
|
+
},
|
|
38
|
+
"keywords": [
|
|
39
|
+
"MPLP",
|
|
40
|
+
"multi-agent",
|
|
41
|
+
"protocol"
|
|
42
|
+
],
|
|
43
|
+
"exports": {
|
|
44
|
+
".": {
|
|
45
|
+
"import": "./dist/index.js",
|
|
46
|
+
"types": "./dist/index.d.ts"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"sideEffects": false,
|
|
21
50
|
"scripts": {
|
|
22
51
|
"build": "tsc",
|
|
23
52
|
"test": "vitest run"
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
*/
|
|
12
|
-
|
|
1
|
+
/**
|
|
2
|
+
* © 2025 邦士(北京)网络科技有限公司
|
|
3
|
+
* Licensed under the Apache License, Version 2.0.
|
|
4
|
+
*
|
|
5
|
+
* This file is part of the MPLP reference implementation.
|
|
6
|
+
* It is NOT part of the frozen protocol specification.
|
|
7
|
+
*/
|
|
13
8
|
import { Confirm, Plan, validateConfirm } from "@mplp/core";
|
|
14
9
|
import { v4 as uuidv4 } from "uuid";
|
|
15
10
|
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
*/
|
|
12
|
-
|
|
1
|
+
/**
|
|
2
|
+
* © 2025 邦士(北京)网络科技有限公司
|
|
3
|
+
* Licensed under the Apache License, Version 2.0.
|
|
4
|
+
*
|
|
5
|
+
* This file is part of the MPLP reference implementation.
|
|
6
|
+
* It is NOT part of the frozen protocol specification.
|
|
7
|
+
*/
|
|
13
8
|
import { Context, validateContext } from "@mplp/core";
|
|
14
9
|
import { v4 as uuidv4 } from "uuid";
|
|
15
10
|
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
*/
|
|
12
|
-
|
|
1
|
+
/**
|
|
2
|
+
* © 2025 邦士(北京)网络科技有限公司
|
|
3
|
+
* Licensed under the Apache License, Version 2.0.
|
|
4
|
+
*
|
|
5
|
+
* This file is part of the MPLP reference implementation.
|
|
6
|
+
* It is NOT part of the frozen protocol specification.
|
|
7
|
+
*/
|
|
13
8
|
import { Plan, Context, validatePlan } from "@mplp/core";
|
|
14
9
|
import { v4 as uuidv4 } from "uuid";
|
|
15
10
|
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
*/
|
|
12
|
-
|
|
1
|
+
/**
|
|
2
|
+
* © 2025 邦士(北京)网络科技有限公司
|
|
3
|
+
* Licensed under the Apache License, Version 2.0.
|
|
4
|
+
*
|
|
5
|
+
* This file is part of the MPLP reference implementation.
|
|
6
|
+
* It is NOT part of the frozen protocol specification.
|
|
7
|
+
*/
|
|
13
8
|
import { Trace, Context, Plan, validateTrace } from "@mplp/core";
|
|
14
9
|
import { v4 as uuidv4 } from "uuid";
|
|
15
10
|
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
*/
|
|
12
|
-
|
|
1
|
+
/**
|
|
2
|
+
* © 2025 邦士(北京)网络科技有限公司
|
|
3
|
+
* Licensed under the Apache License, Version 2.0.
|
|
4
|
+
*
|
|
5
|
+
* This file is part of the MPLP reference implementation.
|
|
6
|
+
* It is NOT part of the frozen protocol specification.
|
|
7
|
+
*/
|
|
13
8
|
import {
|
|
14
9
|
RuntimeContext,
|
|
15
10
|
runSingleAgentFlow,
|
package/src/index.ts
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
*/
|
|
12
|
-
|
|
1
|
+
/**
|
|
2
|
+
* © 2025 邦士(北京)网络科技有限公司
|
|
3
|
+
* Licensed under the Apache License, Version 2.0.
|
|
4
|
+
*
|
|
5
|
+
* This file is part of the MPLP reference implementation.
|
|
6
|
+
* It is NOT part of the frozen protocol specification.
|
|
7
|
+
*/
|
|
13
8
|
export * from "@mplp/core";
|
|
14
9
|
export * from "./builders/context-builder";
|
|
15
10
|
export * from "./builders/plan-builder";
|
package/tests/builders.test.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
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
|
-
|
|
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
13
|
import { describe, it, expect } from 'vitest';
|
|
14
14
|
import { createContext } from '../src/builders/context-builder';
|
|
15
15
|
import { createPlan } from '../src/builders/plan-builder';
|
|
@@ -1,15 +1,15 @@
|
|
|
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
|
-
|
|
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
13
|
import { describe, it, expect } from 'vitest';
|
|
14
14
|
import { MplpRuntimeClient } from '../src/client/runtime-client';
|
|
15
15
|
import { SingleAgentFlowOutput } from '@mplp/coordination';
|
package/tsconfig.json
CHANGED
|
@@ -1,23 +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
|
-
"compilerOptions": {
|
|
4
|
-
"target": "ES2020",
|
|
5
|
-
"module": "commonjs",
|
|
6
|
-
"lib": [
|
|
7
|
-
"ES2020"
|
|
8
|
-
],
|
|
9
|
-
"strict": true,
|
|
10
|
-
"esModuleInterop": true,
|
|
11
|
-
"skipLibCheck": true,
|
|
12
|
-
"forceConsistentCasingInFileNames": true,
|
|
13
|
-
"resolveJsonModule": true,
|
|
14
|
-
"declaration": true,
|
|
15
|
-
"moduleResolution": "node",
|
|
16
|
-
"downlevelIteration": true,
|
|
17
|
-
"outDir": "dist",
|
|
18
|
-
"rootDir": "src"
|
|
19
|
-
},
|
|
20
|
-
"include": [
|
|
21
|
-
"src"
|
|
22
|
-
]
|
|
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
|
+
"compilerOptions": {
|
|
4
|
+
"target": "ES2020",
|
|
5
|
+
"module": "commonjs",
|
|
6
|
+
"lib": [
|
|
7
|
+
"ES2020"
|
|
8
|
+
],
|
|
9
|
+
"strict": true,
|
|
10
|
+
"esModuleInterop": true,
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
"forceConsistentCasingInFileNames": true,
|
|
13
|
+
"resolveJsonModule": true,
|
|
14
|
+
"declaration": true,
|
|
15
|
+
"moduleResolution": "node",
|
|
16
|
+
"downlevelIteration": true,
|
|
17
|
+
"outDir": "dist",
|
|
18
|
+
"rootDir": "src"
|
|
19
|
+
},
|
|
20
|
+
"include": [
|
|
21
|
+
"src"
|
|
22
|
+
]
|
|
23
|
+
}
|