@mplp/compliance 1.0.1 → 1.0.3
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 +61 -0
- package/dist/index.d.ts +12 -7
- package/dist/index.js +10 -14
- package/package.json +29 -9
- package/src/index.ts +7 -12
- package/tsconfig.json +23 -23
package/CHANGELOG.md
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# @mplp/compliance
|
|
2
|
+
|
|
3
|
+
**Protocol:** MPLP v1.0.0 (Frozen)
|
|
4
|
+
**License:** Apache-2.0
|
|
5
|
+
|
|
6
|
+
The **@mplp/compliance** package provides **Protocol compliance checking utilities** for the
|
|
7
|
+
**Multi-Agent Lifecycle Protocol (MPLP)** — the Agent OS–level lifecycle specification for AI agent systems.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Scope & Guarantees (Important)
|
|
12
|
+
|
|
13
|
+
### ✅ What this package provides
|
|
14
|
+
|
|
15
|
+
* **Protocol-compliant interfaces** aligned with MPLP v1.0.0
|
|
16
|
+
* **Strict version alignment** with the frozen MPLP protocol specification
|
|
17
|
+
* **Type-safe integration surface** for higher-level runtimes and tools
|
|
18
|
+
|
|
19
|
+
### ❌ What this package does NOT provide
|
|
20
|
+
|
|
21
|
+
* ❌ Full execution runtime (LLM orchestration, tool execution)
|
|
22
|
+
* ❌ Golden Flow execution engines (Flow-01 ~ Flow-05)
|
|
23
|
+
* ❌ Observability pipelines or distributed tracing backends
|
|
24
|
+
* ❌ Production agent orchestration
|
|
25
|
+
|
|
26
|
+
> These capabilities belong to **reference runtimes and products built *on top of* MPLP**,
|
|
27
|
+
> not to the protocol SDK itself.
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Installation
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
npm install @mplp/compliance
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Protocol Documentation (Authoritative)
|
|
40
|
+
|
|
41
|
+
* **Homepage:** [https://mplp.io](https://mplp.io)
|
|
42
|
+
* **Specification & Docs:** [https://docs.mplp.io](https://docs.mplp.io)
|
|
43
|
+
* **Source Repository:** [https://github.com/Coregentis/MPLP-Protocol](https://github.com/Coregentis/MPLP-Protocol)
|
|
44
|
+
* **Issues:** [https://github.com/Coregentis/MPLP-Protocol/issues](https://github.com/Coregentis/MPLP-Protocol/issues)
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## Versioning & Compatibility
|
|
49
|
+
|
|
50
|
+
* **Protocol version:** MPLP v1.0.0 (Frozen)
|
|
51
|
+
* **SDK compatibility:** Guaranteed for v1.0.0 only
|
|
52
|
+
* Breaking changes require a new protocol version.
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## License
|
|
57
|
+
|
|
58
|
+
Apache License, Version 2.0
|
|
59
|
+
|
|
60
|
+
© 2025 **Bangshi Beijing Network Technology Limited Company**
|
|
61
|
+
Coregentis AI
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
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
|
-
*
|
|
5
|
+
* This file is part of the MPLP reference implementation.
|
|
6
|
+
* It is NOT part of the frozen protocol specification.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* MPLP v1.0 Compliance & Validation
|
|
8
10
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
+
* This package provides compliance testing and validation for MPLP implementations:
|
|
12
|
+
* - Golden Flow tests (Flow-01 through Flow-05)
|
|
13
|
+
* - Invariant checks
|
|
14
|
+
* - PSG validation
|
|
15
|
+
* - Schema compliance utilities
|
|
11
16
|
*/
|
|
12
17
|
export interface ComplianceReport {
|
|
13
18
|
passed: boolean;
|
package/dist/index.js
CHANGED
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* Status: FROZEN (no breaking changes permitted)
|
|
6
|
-
* Governance: MPLP Protocol Governance Committee (MPGC)
|
|
3
|
+
* © 2025 邦士(北京)网络科技有限公司
|
|
4
|
+
* Licensed under the Apache License, Version 2.0.
|
|
7
5
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
* This file is part of the MPLP reference implementation.
|
|
7
|
+
* It is NOT part of the frozen protocol specification.
|
|
12
8
|
*/
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.GOLDEN_FLOWS = void 0;
|
|
15
|
-
exports.runGoldenFlow01 = runGoldenFlow01;
|
|
16
|
-
exports.validatePSG = validatePSG;
|
|
17
|
-
exports.validateSchema = validateSchema;
|
|
18
|
-
exports.checkInvariants = checkInvariants;
|
|
19
9
|
/**
|
|
20
10
|
* MPLP v1.0 Compliance & Validation
|
|
21
11
|
*
|
|
@@ -25,6 +15,12 @@ exports.checkInvariants = checkInvariants;
|
|
|
25
15
|
* - PSG validation
|
|
26
16
|
* - Schema compliance utilities
|
|
27
17
|
*/
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.GOLDEN_FLOWS = void 0;
|
|
20
|
+
exports.runGoldenFlow01 = runGoldenFlow01;
|
|
21
|
+
exports.validatePSG = validatePSG;
|
|
22
|
+
exports.validateSchema = validateSchema;
|
|
23
|
+
exports.checkInvariants = checkInvariants;
|
|
28
24
|
const schema_1 = require("@mplp/schema");
|
|
29
25
|
/**
|
|
30
26
|
* Run Golden Flow 01: Single-Agent Basic
|
package/package.json
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
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/compliance",
|
|
4
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
5
4
|
"description": "MPLP v1.0 Compliance & Validation - Golden Flow tests and invariant checks",
|
|
6
5
|
"license": "Apache-2.0",
|
|
7
6
|
"repository": {
|
|
8
7
|
"type": "git",
|
|
9
|
-
"url": "https://github.com/Coregentis/MPLP-Protocol.git"
|
|
10
|
-
"directory": "packages/compliance"
|
|
8
|
+
"url": "https://github.com/Coregentis/MPLP-Protocol.git"
|
|
11
9
|
},
|
|
12
10
|
"keywords": [
|
|
13
11
|
"mplp",
|
|
14
12
|
"compliance",
|
|
15
13
|
"validation",
|
|
16
14
|
"testing",
|
|
17
|
-
"golden-flows"
|
|
15
|
+
"golden-flows",
|
|
16
|
+
"multi-agent",
|
|
17
|
+
"protocol",
|
|
18
|
+
"lifecycle",
|
|
19
|
+
"agent-os"
|
|
18
20
|
],
|
|
19
21
|
"publishConfig": {
|
|
20
22
|
"access": "public"
|
|
@@ -22,16 +24,34 @@
|
|
|
22
24
|
"main": "dist/index.js",
|
|
23
25
|
"types": "dist/index.d.ts",
|
|
24
26
|
"dependencies": {
|
|
25
|
-
"@mplp/
|
|
26
|
-
"@mplp/
|
|
27
|
-
"@mplp/
|
|
28
|
-
"@mplp/coordination": "1.0.
|
|
27
|
+
"@mplp/core": "^1.0.2",
|
|
28
|
+
"@mplp/schema": "^1.0.2",
|
|
29
|
+
"@mplp/modules": "^1.0.2",
|
|
30
|
+
"@mplp/coordination": "^1.0.2"
|
|
29
31
|
},
|
|
30
32
|
"devDependencies": {
|
|
31
33
|
"typescript": "^5.0.0",
|
|
32
34
|
"ts-node": "^10.9.1",
|
|
33
35
|
"@types/node": "^20.0.0"
|
|
34
36
|
},
|
|
37
|
+
"author": "Coregentis AI",
|
|
38
|
+
"copyright": "© 2025 邦士(北京)网络科技有限公司",
|
|
39
|
+
"mplp": {
|
|
40
|
+
"protocolVersion": "1.0.0",
|
|
41
|
+
"frozen": true,
|
|
42
|
+
"governance": "MPGC"
|
|
43
|
+
},
|
|
44
|
+
"homepage": "https://mplp.io",
|
|
45
|
+
"bugs": {
|
|
46
|
+
"url": "https://github.com/Coregentis/MPLP-Protocol/issues"
|
|
47
|
+
},
|
|
48
|
+
"exports": {
|
|
49
|
+
".": {
|
|
50
|
+
"import": "./dist/index.js",
|
|
51
|
+
"types": "./dist/index.d.ts"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"sideEffects": false,
|
|
35
55
|
"scripts": {
|
|
36
56
|
"build": "tsc -p tsconfig.json",
|
|
37
57
|
"test": "npx ts-node ../../tests/golden/harness/ts/golden-runner.ts"
|
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
|
/**
|
|
14
9
|
* MPLP v1.0 Compliance & Validation
|
|
15
10
|
*
|
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
|
+
}
|