@bosonprotocol/agentic-commerce 1.0.0-alpha.81 → 1.0.0-alpha.83
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.
|
@@ -26,10 +26,8 @@ function getConfigIdsFromEnv() {
|
|
|
26
26
|
const configIdsEnv = process.env.CONFIG_IDS;
|
|
27
27
|
// Use default config IDs in test environment or when CONFIG_IDS is not set
|
|
28
28
|
if (!configIdsEnv) {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
throw new Error("CONFIG_IDS environment variable is required");
|
|
29
|
+
console.warn("CONFIG_IDS not set in environment variables. Using default config IDs.");
|
|
30
|
+
return DEFAULT_CONFIG_IDS;
|
|
33
31
|
}
|
|
34
32
|
const configIds = configIdsEnv.split(",").map((id) => id.trim());
|
|
35
33
|
// Validate each config ID using bosonprotocol core-sdk
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configValidation.js","sourceRoot":"","sources":["../../../src/common/mcp-server/configValidation.ts"],"names":[],"mappings":";;;AAAA,kDAA8D;AAE9D,6BAAwB;AAExB,0CAA0C;AAC1C,MAAM,kBAAkB,GAAG;IACzB,eAAe;IACf,iBAAiB;IACjB,iBAAiB;IACjB,oBAAoB;IACpB,oBAAoB;IACpB,kBAAkB;IAClB,iBAAiB;IACjB,iBAAiB;IACjB,oBAAoB;IACpB,oBAAoB;IACpB,kBAAkB;IAClB,kBAAkB;IAClB,oBAAoB;IACpB,mBAAmB;IACnB,iBAAiB;IACjB,gBAAgB;CACa,CAAC;AAEhC,SAAS,mBAAmB;IAC1B,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC;IAE5C,2EAA2E;IAC3E,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,
|
|
1
|
+
{"version":3,"file":"configValidation.js","sourceRoot":"","sources":["../../../src/common/mcp-server/configValidation.ts"],"names":[],"mappings":";;;AAAA,kDAA8D;AAE9D,6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AAC7B,CAAC,CAAC;AALW,QAAA,qBAAqB,yBAKhC;AAEW,QAAA,kBAAkB,GAAG,IAAA,6BAAqB,GAAE,CAAC;AAE7C,QAAA,iBAAiB,GAAa,KAAK,CAAC,IAAI,CACnD,IAAI,GAAG,CACL,0BAAkB;KACf,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;IAChB,MAAM,MAAM,GAAG,IAAA,8BAAqB,EAAC,QAAQ,CAAC,CAAC;IAC/C,OAAO,MAAM,CAAC,OAAO,CAAC;AACxB,CAAC,CAAC;KACD,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,KAAK,IAAI,CAAC,CACzC,CACF,CAAC;AAEF,wCAAwC;AAC3B,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CACjD,CAAC,KAAK,EAAE,EAAE,CAAC,IAAA,6BAAqB,GAAE,CAAC,QAAQ,CAAC,KAAiB,CAAC,EAC9D,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACV,OAAO,EAAE,sBAAsB,KAAK,2BAA2B,IAAA,6BAAqB,GAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;CACpG,CAAC,CACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bosonprotocol/agentic-commerce",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.83",
|
|
4
4
|
"description": "Agentic commerce tools for Boson and Fermion protocols",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
|
-
"postinstall": "npm run setup-dot-env",
|
|
26
25
|
"clean": "rimraf dist",
|
|
27
26
|
"build": "rimraf dist && tsc --project tsconfig.build.json",
|
|
28
27
|
"watch": "rimraf dist && tsc --project tsconfig.build.json --watch",
|
|
@@ -47,7 +46,6 @@
|
|
|
47
46
|
"ci": "echo 'Type checking:' && npm run typecheck && echo 'Linting:' && npm run lint:ci && echo 'Tests:' && npm run test && echo 'Build:' && npm run build",
|
|
48
47
|
"update-badges": "node scripts/update-badges.ts",
|
|
49
48
|
"setup-mcp-server": "node scripts/setupMcpServer.ts",
|
|
50
|
-
"setup-dot-env": "node scripts/setupDotEnv.ts",
|
|
51
49
|
"e2e:boson:test": "jest -c ./e2e/boson/jest.config.js",
|
|
52
50
|
"e2e:boson:test:only": "jest -c ./e2e/boson/jest.config.js --runInBand",
|
|
53
51
|
"e2e:boson:services": "run-script-os",
|
|
@@ -126,8 +124,7 @@
|
|
|
126
124
|
},
|
|
127
125
|
"files": [
|
|
128
126
|
"dist/**/*",
|
|
129
|
-
"README.md"
|
|
130
|
-
"scripts/setupDotEnv.ts"
|
|
127
|
+
"README.md"
|
|
131
128
|
],
|
|
132
129
|
"volta": {
|
|
133
130
|
"node": "23.11.1"
|
package/scripts/setupDotEnv.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import fs from "fs";
|
|
2
|
-
import path from "path";
|
|
3
|
-
|
|
4
|
-
const envPath = path.resolve(process.cwd(), ".env");
|
|
5
|
-
const envExamplePath = path.resolve(process.cwd(), ".env.example");
|
|
6
|
-
const envFileExists = fs.existsSync(envPath);
|
|
7
|
-
const envExampleFileExists = fs.existsSync(envExamplePath);
|
|
8
|
-
if (!envFileExists && envExampleFileExists) {
|
|
9
|
-
fs.copyFileSync(envExamplePath, envPath);
|
|
10
|
-
console.log("✅ Created .env file from .env.example");
|
|
11
|
-
} else if (envFileExists) {
|
|
12
|
-
console.log("✅ .env file already exists");
|
|
13
|
-
} else if (!envExampleFileExists) {
|
|
14
|
-
console.warn(
|
|
15
|
-
"⚠️ .env.example file not found. Please create a .env file manually.",
|
|
16
|
-
);
|
|
17
|
-
}
|