@primeuicom/mcp 0.1.0 → 0.1.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/service.js
CHANGED
|
File without changes
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
import { readFile } from "node:fs/promises";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
3
4
|
// TEMPORARY: phase 1 fixture data lives in this module until API integration is ready.
|
|
4
|
-
const PHASE1_FIXTURE_ARCHIVE_PATH = "../../
|
|
5
|
+
const PHASE1_FIXTURE_ARCHIVE_PATH = fileURLToPath(new URL("../../fixtures/2026-02-17-LIOMDP.zip", import.meta.url));
|
|
5
6
|
const PHASE1_PROJECT_DESCRIPTION = "Temporary phase 1 project description.";
|
|
6
7
|
const FIXTURE_PROJECT_INFO = {
|
|
7
8
|
projectId: "primeui-phase1-project",
|
|
@@ -36,7 +37,9 @@ export class FixtureProjectDataProvider {
|
|
|
36
37
|
fixtureArchivePath;
|
|
37
38
|
constructor(options) {
|
|
38
39
|
this.projectRoot = options.projectRoot;
|
|
39
|
-
this.fixtureArchivePath = options.fixtureArchivePath
|
|
40
|
+
this.fixtureArchivePath = options.fixtureArchivePath
|
|
41
|
+
? this.resolvePath(options.fixtureArchivePath)
|
|
42
|
+
: PHASE1_FIXTURE_ARCHIVE_PATH;
|
|
40
43
|
}
|
|
41
44
|
async getProjectInfo() {
|
|
42
45
|
return {
|
|
@@ -55,13 +58,12 @@ export class FixtureProjectDataProvider {
|
|
|
55
58
|
if (!selected) {
|
|
56
59
|
throw new Error(`Export not found: ${exportId}`);
|
|
57
60
|
}
|
|
58
|
-
const archivePath = this.resolvePath(this.fixtureArchivePath);
|
|
59
61
|
try {
|
|
60
|
-
await readFile(
|
|
61
|
-
return
|
|
62
|
+
await readFile(this.fixtureArchivePath);
|
|
63
|
+
return this.fixtureArchivePath;
|
|
62
64
|
}
|
|
63
65
|
catch {
|
|
64
|
-
throw new Error(`Fixture archive not found at "${
|
|
66
|
+
throw new Error(`Fixture archive not found at "${this.fixtureArchivePath}". Update PHASE1_FIXTURE_ARCHIVE_PATH in fixture-provider.ts.`);
|
|
65
67
|
}
|
|
66
68
|
}
|
|
67
69
|
resolvePath(rawPath) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fixture-provider.js","sourceRoot":"","sources":["../../src/sources/fixture-provider.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAA;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"fixture-provider.js","sourceRoot":"","sources":["../../src/sources/fixture-provider.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAA;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAUxC,uFAAuF;AACvF,MAAM,2BAA2B,GAAG,aAAa,CAAC,IAAI,GAAG,CAAC,sCAAsC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;AACnH,MAAM,0BAA0B,GAAG,wCAAwC,CAAA;AAE3E,MAAM,oBAAoB,GAAuB;IAC/C,SAAS,EAAE,wBAAwB;IACnC,WAAW,EAAE,yBAAyB;IACtC,QAAQ,EAAE;QACR,KAAK,EAAE,SAAS;KACjB;IACD,KAAK,EAAE;QACL;YACE,EAAE,EAAE,WAAW;YACf,KAAK,EAAE,MAAM;YACb,IAAI,EAAE,GAAG;YACT,QAAQ,EAAE,SAAS;SACpB;QACD;YACE,EAAE,EAAE,cAAc;YAClB,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,UAAU;YAChB,QAAQ,EAAE,SAAS;SACpB;KACF;CACF,CAAA;AAED,MAAM,eAAe,GAAoB;IACvC;QACE,EAAE,EAAE,0BAA0B;QAC9B,MAAM,EAAE,WAAW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ACD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAA;IAChD,CAAC;CACF"}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primeuicom/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/service.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"primeui-mcp": "dist/service.js"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
|
-
"dist"
|
|
10
|
+
"dist",
|
|
11
|
+
"fixtures"
|
|
11
12
|
],
|
|
12
13
|
"scripts": {
|
|
13
14
|
"clean": "rm -rf dist",
|
|
14
|
-
"build": "pnpm run clean && tsc -p tsconfig.json",
|
|
15
|
+
"build": "pnpm run clean && tsc -p tsconfig.json && chmod 755 dist/service.js",
|
|
15
16
|
"typecheck": "tsc --noEmit",
|
|
16
17
|
"dev": "tsx src/service.ts",
|
|
17
18
|
"test": "vitest run",
|