@compass-labs/api-sdk 1.0.28 → 1.0.30-rc0
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 +34 -22
- package/bin/mcp-server.js.map +14 -11
- 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/mcp-server.js.map +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/server.js.map +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/mcp-server.js.map +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/server.js.map +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/src/lib/url.ts
CHANGED
|
@@ -10,7 +10,7 @@ export function pathToFunc(
|
|
|
10
10
|
pathPattern: string,
|
|
11
11
|
options?: { charEncoding?: "percent" | "none" },
|
|
12
12
|
): (params?: Params) => string {
|
|
13
|
-
const paramRE = /\{([a-zA-Z0-9_]
|
|
13
|
+
const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
|
|
14
14
|
|
|
15
15
|
return function buildURLPath(params: Record<string, unknown> = {}): string {
|
|
16
16
|
return pathPattern.replace(paramRE, function (_, placeholder) {
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -14,11 +14,7 @@ export const tool$tokenTokenPrice: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "token-token-price",
|
|
15
15
|
description: `Token Price
|
|
16
16
|
|
|
17
|
-
Retrieves the price of a token in USD
|
|
18
|
-
|
|
19
|
-
Chainlink is a decentralized oracle that aggregates price data from off-chain
|
|
20
|
-
sources. This ensures the price is tamper-resistant but the price might be stale
|
|
21
|
-
with the update frequency of the oracle.`,
|
|
17
|
+
Retrieves the price of a token in USD.`,
|
|
22
18
|
args,
|
|
23
19
|
tool: async (client, args, ctx) => {
|
|
24
20
|
const [result, apiCall] = await tokenTokenPrice(
|
package/src/sdk/token.ts
CHANGED
|
@@ -15,11 +15,7 @@ export class Token extends ClientSDK {
|
|
|
15
15
|
* Token Price
|
|
16
16
|
*
|
|
17
17
|
* @remarks
|
|
18
|
-
* Retrieves the price of a token in USD
|
|
19
|
-
*
|
|
20
|
-
* Chainlink is a decentralized oracle that aggregates price data from off-chain
|
|
21
|
-
* sources. This ensures the price is tamper-resistant but the price might be stale
|
|
22
|
-
* with the update frequency of the oracle.
|
|
18
|
+
* Retrieves the price of a token in USD.
|
|
23
19
|
*/
|
|
24
20
|
async tokenPrice(
|
|
25
21
|
request: operations.V1TokenPriceRequest,
|