@adcp/client 2.1.0 → 2.3.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/lib/agents/index.generated.d.ts +21 -1
- package/dist/lib/agents/index.generated.d.ts.map +1 -1
- package/dist/lib/agents/index.generated.js +28 -0
- package/dist/lib/agents/index.generated.js.map +1 -1
- package/dist/lib/protocols/a2a.js +2 -2
- package/dist/lib/protocols/a2a.js.map +1 -1
- package/dist/lib/types/core.generated.js +2 -2
- package/dist/lib/types/index.d.ts +1 -0
- package/dist/lib/types/index.d.ts.map +1 -1
- package/dist/lib/types/index.js +2 -0
- package/dist/lib/types/index.js.map +1 -1
- package/dist/lib/types/schemas.generated.d.ts +1891 -0
- package/dist/lib/types/schemas.generated.d.ts.map +1 -0
- package/dist/lib/types/schemas.generated.js +790 -0
- package/dist/lib/types/schemas.generated.js.map +1 -0
- package/dist/lib/types/tools.generated.d.ts +380 -0
- package/dist/lib/types/tools.generated.d.ts.map +1 -1
- package/dist/lib/types/tools.generated.js.map +1 -1
- package/dist/lib/version.d.ts +5 -5
- package/dist/lib/version.js +5 -5
- package/package.json +8 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.generated.js","sourceRoot":"","sources":["../../../src/lib/types/tools.generated.ts"],"names":[],"mappings":";AAAA,oCAAoC;AACpC,uCAAuC;;
|
|
1
|
+
{"version":3,"file":"tools.generated.js","sourceRoot":"","sources":["../../../src/lib/types/tools.generated.ts"],"names":[],"mappings":";AAAA,oCAAoC;AACpC,uCAAuC;;AAk4GvC;;GAEG"}
|
package/dist/lib/version.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* AdCP client library version
|
|
3
3
|
*/
|
|
4
|
-
export declare const LIBRARY_VERSION = "2.0
|
|
4
|
+
export declare const LIBRARY_VERSION = "2.3.0";
|
|
5
5
|
/**
|
|
6
6
|
* AdCP specification version this library is compatible with
|
|
7
7
|
*/
|
|
8
|
-
export declare const ADCP_VERSION = "2.
|
|
8
|
+
export declare const ADCP_VERSION = "2.2.0";
|
|
9
9
|
/**
|
|
10
10
|
* Full version information
|
|
11
11
|
*/
|
|
12
12
|
export declare const VERSION_INFO: {
|
|
13
|
-
readonly library: "2.0
|
|
14
|
-
readonly adcp: "2.
|
|
13
|
+
readonly library: "2.3.0";
|
|
14
|
+
readonly adcp: "2.2.0";
|
|
15
15
|
readonly compatible: true;
|
|
16
|
-
readonly generatedAt: "2025-10-
|
|
16
|
+
readonly generatedAt: "2025-10-20T16:04:55.114Z";
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
19
|
* Check if this library version is compatible with a given AdCP version
|
package/dist/lib/version.js
CHANGED
|
@@ -7,19 +7,19 @@ exports.isCompatibleWith = isCompatibleWith;
|
|
|
7
7
|
/**
|
|
8
8
|
* AdCP client library version
|
|
9
9
|
*/
|
|
10
|
-
exports.LIBRARY_VERSION = '2.0
|
|
10
|
+
exports.LIBRARY_VERSION = '2.3.0';
|
|
11
11
|
/**
|
|
12
12
|
* AdCP specification version this library is compatible with
|
|
13
13
|
*/
|
|
14
|
-
exports.ADCP_VERSION = '2.
|
|
14
|
+
exports.ADCP_VERSION = '2.2.0';
|
|
15
15
|
/**
|
|
16
16
|
* Full version information
|
|
17
17
|
*/
|
|
18
18
|
exports.VERSION_INFO = {
|
|
19
|
-
library: '2.0
|
|
20
|
-
adcp: '2.
|
|
19
|
+
library: '2.3.0',
|
|
20
|
+
adcp: '2.2.0',
|
|
21
21
|
compatible: true,
|
|
22
|
-
generatedAt: '2025-10-
|
|
22
|
+
generatedAt: '2025-10-20T16:04:55.114Z'
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
25
25
|
* Check if this library version is compatible with a given AdCP version
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adcp/client",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "AdCP client library with protocol support for MCP and A2A, includes testing framework",
|
|
5
5
|
"main": "dist/lib/index.js",
|
|
6
6
|
"types": "dist/lib/index.d.ts",
|
|
@@ -43,12 +43,13 @@
|
|
|
43
43
|
"test:server-config": "node --test test/server-config.test.js",
|
|
44
44
|
"sync-schemas": "tsx scripts/sync-schemas.ts",
|
|
45
45
|
"generate-types": "tsx scripts/generate-types.ts",
|
|
46
|
+
"generate-zod-schemas": "tsx scripts/generate-zod-from-ts.ts",
|
|
46
47
|
"sync-version": "tsx scripts/sync-version.ts",
|
|
47
48
|
"validate-schemas": "tsx scripts/validate-schemas.ts",
|
|
48
49
|
"lint": "echo 'Linting not yet configured'",
|
|
49
50
|
"typecheck": "tsc --noEmit",
|
|
50
51
|
"clean": "rm -rf dist/",
|
|
51
|
-
"prepublishOnly": "npm run clean && (test -f src/lib/types/tools.generated.ts || npm run sync-schemas) && (test -f src/lib/types/tools.generated.ts || npm run generate-types) && npm run build:lib && node --test test/lib/adcp-client.test.js test/lib/validation.test.js",
|
|
52
|
+
"prepublishOnly": "npm run clean && (test -f src/lib/types/tools.generated.ts || npm run sync-schemas) && (test -f src/lib/types/tools.generated.ts || npm run generate-types) && npm run build:lib && node --test test/lib/adcp-client.test.js test/lib/validation.test.js test/lib/zod-schemas.test.js",
|
|
52
53
|
"docs": "typedoc",
|
|
53
54
|
"docs:watch": "typedoc --watch",
|
|
54
55
|
"docs:serve": "cd docs && make serve",
|
|
@@ -57,7 +58,7 @@
|
|
|
57
58
|
"docs:install": "cd docs && make install",
|
|
58
59
|
"ci:validate": "node scripts/ci-validate.js",
|
|
59
60
|
"ci:quick": "npm run typecheck && npm run build:lib && npm test",
|
|
60
|
-
"ci:schema-check": "npm run sync-schemas && npm run generate-types && git diff --exit-code src/lib/types/ src/lib/agents/",
|
|
61
|
+
"ci:schema-check": "npm run sync-schemas && npm run generate-types && git diff --exit-code src/lib/types/ src/lib/agents/ || (echo '⚠️ Generated files are out of sync. Run: npm run sync-schemas && npm run generate-types' && exit 1)",
|
|
61
62
|
"ci:pre-push": "npm run ci:schema-check && npm run ci:quick",
|
|
62
63
|
"hooks:install": "node scripts/install-hooks.js",
|
|
63
64
|
"hooks:uninstall": "rm -f .git/hooks/pre-push"
|
|
@@ -110,14 +111,16 @@
|
|
|
110
111
|
"fastify": "^4.24.3",
|
|
111
112
|
"json-schema-to-ts": "^3.1.1",
|
|
112
113
|
"json-schema-to-typescript": "^13.1.0",
|
|
114
|
+
"json-schema-to-zod": "^2.6.1",
|
|
113
115
|
"markdown-it": "^14.1.0",
|
|
114
116
|
"node-fetch": "^3.3.2",
|
|
115
117
|
"pino-pretty": "^13.1.1",
|
|
118
|
+
"ts-to-zod": "^5.0.1",
|
|
116
119
|
"tsx": "^4.6.0",
|
|
117
120
|
"typedoc": "^0.28.13",
|
|
118
121
|
"typedoc-plugin-markdown": "^4.9.0",
|
|
119
122
|
"typescript": "^5.3.0",
|
|
120
|
-
"zod": "^
|
|
123
|
+
"zod": "^4.1.12"
|
|
121
124
|
},
|
|
122
125
|
"engines": {
|
|
123
126
|
"node": ">=18.0.0"
|
|
@@ -125,5 +128,5 @@
|
|
|
125
128
|
"overrides": {
|
|
126
129
|
"@types/glob": "^8.1.0"
|
|
127
130
|
},
|
|
128
|
-
"adcp_version": "2.
|
|
131
|
+
"adcp_version": "2.2.0"
|
|
129
132
|
}
|