@mplp/integration-llm-http 1.0.0 → 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/client.d.ts +4 -8
- package/dist/client.js +0 -11
- package/dist/index.d.ts +4 -8
- package/dist/index.js +7 -11
- package/dist/types.d.ts +4 -8
- package/dist/types.js +0 -11
- package/package.json +30 -7
- package/src/client.ts +7 -12
- package/src/index.ts +7 -12
- package/src/types.ts +7 -12
- package/tests/llm-http.client.test.ts +12 -12
- package/tsconfig.json +11 -11
package/CHANGELOG.md
ADDED
package/README.md
ADDED
package/dist/client.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
|
import type { LlmHttpClientConfig, LlmGenerationRequest, LlmGenerationResult, LlmClient } from "./types";
|
|
13
9
|
export type FetchLike = (input: string, init?: RequestInit) => Promise<Response>;
|
package/dist/client.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
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
3
|
exports.HttpLlmClient = void 0;
|
|
15
4
|
class HttpLlmClient {
|
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 "./types";
|
|
13
9
|
export * from "./client";
|
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,5 +14,12 @@ 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("./types"), exports);
|
|
29
25
|
__exportStar(require("./client"), exports);
|
package/dist/types.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 interface LlmHttpClientConfig {
|
|
13
9
|
baseUrl: string;
|
package/dist/types.js
CHANGED
|
@@ -1,13 +1,2 @@
|
|
|
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
|
Object.defineProperty(exports, "__esModule", { value: true });
|
package/package.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
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/integration-llm-http",
|
|
4
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
5
4
|
"description": "HTTP-based LLM integration for MPLP",
|
|
6
5
|
"main": "dist/index.js",
|
|
7
6
|
"types": "dist/index.d.ts",
|
|
8
7
|
"dependencies": {
|
|
9
|
-
"@mplp/core": "1.0.
|
|
8
|
+
"@mplp/core": "^1.0.2"
|
|
10
9
|
},
|
|
11
10
|
"devDependencies": {
|
|
12
11
|
"typescript": "^5.0.0",
|
|
@@ -17,11 +16,35 @@
|
|
|
17
16
|
"access": "public"
|
|
18
17
|
},
|
|
19
18
|
"mplp": {
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
19
|
+
"protocolVersion": "1.0.0",
|
|
20
|
+
"frozen": true,
|
|
21
|
+
"governance": "MPGC",
|
|
22
|
+
"layer": "L4"
|
|
24
23
|
},
|
|
24
|
+
"author": "邦士(北京)网络科技有限公司",
|
|
25
|
+
"copyright": "© 2025 邦士(北京)网络科技有限公司",
|
|
26
|
+
"license": "Apache-2.0",
|
|
27
|
+
"homepage": "https://github.com/coregentis/MPLP-Protocol",
|
|
28
|
+
"bugs": {
|
|
29
|
+
"url": "https://github.com/coregentis/MPLP-Protocol/issues"
|
|
30
|
+
},
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "https://github.com/coregentis/MPLP-Protocol.git",
|
|
34
|
+
"directory": "packages/llm-http"
|
|
35
|
+
},
|
|
36
|
+
"keywords": [
|
|
37
|
+
"MPLP",
|
|
38
|
+
"multi-agent",
|
|
39
|
+
"protocol"
|
|
40
|
+
],
|
|
41
|
+
"exports": {
|
|
42
|
+
".": {
|
|
43
|
+
"import": "./dist/index.js",
|
|
44
|
+
"types": "./dist/index.d.ts"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"sideEffects": false,
|
|
25
48
|
"scripts": {
|
|
26
49
|
"build": "tsc -p tsconfig.json",
|
|
27
50
|
"test": "vitest run"
|
package/src/client.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
|
import type {
|
|
14
9
|
LlmHttpClientConfig,
|
|
15
10
|
LlmGenerationRequest,
|
package/src/index.ts
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
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 "./types";
|
|
14
9
|
export * from "./client";
|
package/src/types.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 interface LlmHttpClientConfig {
|
|
14
9
|
baseUrl: string;
|
|
15
10
|
defaultHeaders?: Record<string, string>;
|
|
@@ -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, vi } from "vitest";
|
|
14
14
|
import { HttpLlmClient, type FetchLike } from "../src/client";
|
|
15
15
|
|
package/tsconfig.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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
|
-
"extends": "../../../tsconfig.base.json",
|
|
4
|
-
"compilerOptions": {
|
|
5
|
-
"outDir": "dist",
|
|
6
|
-
"rootDir": "src"
|
|
7
|
-
},
|
|
8
|
-
"include": [
|
|
9
|
-
"src"
|
|
10
|
-
]
|
|
11
|
-
}
|
|
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
|
+
"extends": "../../../tsconfig.base.json",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"outDir": "dist",
|
|
6
|
+
"rootDir": "src"
|
|
7
|
+
},
|
|
8
|
+
"include": [
|
|
9
|
+
"src"
|
|
10
|
+
]
|
|
11
|
+
}
|