@curless/sinocare-demo 0.62.1 → 0.62.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/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// src/index.ts
|
|
4
4
|
import { createHash } from "crypto";
|
|
5
5
|
import { readFileSync, renameSync, rmSync, writeFileSync } from "fs";
|
|
6
|
+
import { createRequire } from "module";
|
|
6
7
|
import { homedir } from "os";
|
|
7
8
|
import { join } from "path";
|
|
8
9
|
|
|
@@ -884,8 +885,9 @@ var INSTRUCTIONS = buildInstructions({
|
|
|
884
885
|
"Call the buy_sinocare_product_* tools directly only when the card is unavailable or the user explicitly asked for a specific rail in a plain-text flow."
|
|
885
886
|
]
|
|
886
887
|
});
|
|
888
|
+
var VERSION = createRequire(import.meta.url)("../package.json").version;
|
|
887
889
|
var server = new Server(
|
|
888
|
-
{ name: "sinocare", version:
|
|
890
|
+
{ name: "sinocare", version: VERSION },
|
|
889
891
|
{ capabilities: { tools: {}, resources: {} }, instructions: INSTRUCTIONS }
|
|
890
892
|
);
|
|
891
893
|
server.setRequestHandler(ListToolsRequestSchema, async () => ({
|