@compass-labs/api-sdk 1.0.29 → 1.0.30
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/README.md +2 -5
- package/bin/mcp-server.js +9 -12
- package/bin/mcp-server.js.map +9 -9
- package/dist/commonjs/funcs/tokenTokenPrice.d.ts +1 -5
- package/dist/commonjs/funcs/tokenTokenPrice.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenTokenPrice.js +1 -5
- package/dist/commonjs/funcs/tokenTokenPrice.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/url.js +1 -1
- package/dist/commonjs/lib/url.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools/tokenTokenPrice.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/tokenTokenPrice.js +1 -5
- package/dist/commonjs/mcp-server/tools/tokenTokenPrice.js.map +1 -1
- package/dist/commonjs/models/errors/index.d.ts +1 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +1 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/sdk/token.d.ts +1 -5
- package/dist/commonjs/sdk/token.d.ts.map +1 -1
- package/dist/commonjs/sdk/token.js +1 -5
- package/dist/commonjs/sdk/token.js.map +1 -1
- package/dist/esm/funcs/tokenTokenPrice.d.ts +1 -5
- package/dist/esm/funcs/tokenTokenPrice.d.ts.map +1 -1
- package/dist/esm/funcs/tokenTokenPrice.js +1 -5
- package/dist/esm/funcs/tokenTokenPrice.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/url.js +1 -1
- package/dist/esm/lib/url.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools/tokenTokenPrice.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/tokenTokenPrice.js +1 -5
- package/dist/esm/mcp-server/tools/tokenTokenPrice.js.map +1 -1
- package/dist/esm/models/errors/index.d.ts +1 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +1 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/sdk/token.d.ts +1 -5
- package/dist/esm/sdk/token.d.ts.map +1 -1
- package/dist/esm/sdk/token.js +1 -5
- package/dist/esm/sdk/token.js.map +1 -1
- package/docs/sdks/token/README.md +1 -5
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/tokenTokenPrice.ts +1 -5
- package/src/lib/config.ts +3 -3
- package/src/lib/url.ts +1 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/tokenTokenPrice.ts +1 -5
- package/src/models/errors/index.ts +1 -0
- package/src/sdk/token.ts +1 -5
package/README.md
CHANGED
|
@@ -55,10 +55,7 @@ bun add @compass-labs/api-sdk
|
|
|
55
55
|
### Yarn
|
|
56
56
|
|
|
57
57
|
```bash
|
|
58
|
-
yarn add @compass-labs/api-sdk
|
|
59
|
-
|
|
60
|
-
# Note that Yarn does not install peer dependencies automatically. You will need
|
|
61
|
-
# to install zod as shown above.
|
|
58
|
+
yarn add @compass-labs/api-sdk
|
|
62
59
|
```
|
|
63
60
|
|
|
64
61
|
> [!NOTE]
|
|
@@ -634,7 +631,7 @@ httpClient.addHook("requestError", (error, request) => {
|
|
|
634
631
|
console.groupEnd();
|
|
635
632
|
});
|
|
636
633
|
|
|
637
|
-
const sdk = new CompassApiSDK({ httpClient });
|
|
634
|
+
const sdk = new CompassApiSDK({ httpClient: httpClient });
|
|
638
635
|
```
|
|
639
636
|
<!-- End Custom HTTP Client [http-client] -->
|
|
640
637
|
|
package/bin/mcp-server.js
CHANGED
|
@@ -34367,7 +34367,7 @@ var init_base64 = __esm(() => {
|
|
|
34367
34367
|
|
|
34368
34368
|
// src/lib/url.ts
|
|
34369
34369
|
function pathToFunc(pathPattern, options) {
|
|
34370
|
-
const paramRE = /\{([a-zA-Z0-9_]
|
|
34370
|
+
const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
|
|
34371
34371
|
return function buildURLPath(params = {}) {
|
|
34372
34372
|
return pathPattern.replace(paramRE, function(_2, placeholder) {
|
|
34373
34373
|
if (!hasOwn.call(params, placeholder)) {
|
|
@@ -34409,9 +34409,9 @@ var init_config = __esm(() => {
|
|
|
34409
34409
|
SDK_METADATA = {
|
|
34410
34410
|
language: "typescript",
|
|
34411
34411
|
openapiDocVersion: "0.0.1",
|
|
34412
|
-
sdkVersion: "1.0.
|
|
34413
|
-
genVersion: "2.
|
|
34414
|
-
userAgent: "speakeasy-sdk/typescript 1.0.
|
|
34412
|
+
sdkVersion: "1.0.30",
|
|
34413
|
+
genVersion: "2.716.16",
|
|
34414
|
+
userAgent: "speakeasy-sdk/typescript 1.0.30 2.716.16 0.0.1 @compass-labs/api-sdk"
|
|
34415
34415
|
};
|
|
34416
34416
|
});
|
|
34417
34417
|
|
|
@@ -44002,6 +44002,7 @@ var init_httpvalidationerror = __esm(() => {
|
|
|
44002
44002
|
// src/models/errors/index.ts
|
|
44003
44003
|
var init_errors2 = __esm(() => {
|
|
44004
44004
|
init_apierror();
|
|
44005
|
+
init_compassapisdkerror();
|
|
44005
44006
|
init_httpclienterrors();
|
|
44006
44007
|
init_httpvalidationerror();
|
|
44007
44008
|
init_responsevalidationerror();
|
|
@@ -51833,11 +51834,7 @@ var init_tokenTokenPrice2 = __esm(() => {
|
|
|
51833
51834
|
name: "token-token-price",
|
|
51834
51835
|
description: `Token Price
|
|
51835
51836
|
|
|
51836
|
-
Retrieves the price of a token in USD
|
|
51837
|
-
|
|
51838
|
-
Chainlink is a decentralized oracle that aggregates price data from off-chain
|
|
51839
|
-
sources. This ensures the price is tamper-resistant but the price might be stale
|
|
51840
|
-
with the update frequency of the oracle.`,
|
|
51837
|
+
Retrieves the price of a token in USD.`,
|
|
51841
51838
|
args: args56,
|
|
51842
51839
|
tool: async (client, args57, ctx) => {
|
|
51843
51840
|
const [result, apiCall] = await tokenTokenPrice(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -54217,7 +54214,7 @@ it to be traded on DeFi protocols.`,
|
|
|
54217
54214
|
function createMCPServer(deps) {
|
|
54218
54215
|
const server = new McpServer({
|
|
54219
54216
|
name: "CompassApiSDK",
|
|
54220
|
-
version: "1.0.
|
|
54217
|
+
version: "1.0.30"
|
|
54221
54218
|
});
|
|
54222
54219
|
const client = new CompassApiSDKCore({
|
|
54223
54220
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -55587,7 +55584,7 @@ var routes = ln({
|
|
|
55587
55584
|
var app = _e(routes, {
|
|
55588
55585
|
name: "mcp",
|
|
55589
55586
|
versionInfo: {
|
|
55590
|
-
currentVersion: "1.0.
|
|
55587
|
+
currentVersion: "1.0.30"
|
|
55591
55588
|
}
|
|
55592
55589
|
});
|
|
55593
55590
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -55595,5 +55592,5 @@ export {
|
|
|
55595
55592
|
app
|
|
55596
55593
|
};
|
|
55597
55594
|
|
|
55598
|
-
//# debugId=
|
|
55595
|
+
//# debugId=7A7465E039F69B8064756E2164756E21
|
|
55599
55596
|
//# sourceMappingURL=mcp-server.js.map
|