@appium/mcp-documentation 1.0.0 → 1.0.1
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/CHANGELOG.md +22 -0
- package/dist/paths.d.ts +1 -0
- package/dist/paths.d.ts.map +1 -1
- package/dist/paths.js +7 -15
- package/dist/paths.js.map +1 -1
- package/dist/tests/__mocks__/@appium/support.d.ts +2 -0
- package/dist/tests/__mocks__/@appium/support.d.ts.map +1 -1
- package/dist/tests/__mocks__/@appium/support.js +14 -0
- package/dist/tests/__mocks__/@appium/support.js.map +1 -1
- package/package.json +2 -1
- package/src/resources/submodules.zip +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
## [1.0.1](https://github.com/appium/appium-mcp-documentation/compare/v1.0.0...v1.0.1) (2026-06-07)
|
|
2
|
+
|
|
3
|
+
### Miscellaneous Chores
|
|
4
|
+
|
|
5
|
+
* update changelog, and fix version mismatch ([3ebb7b2](https://github.com/appium/appium-mcp-documentation/commit/3ebb7b250086aa64291fa56d4c1afbdb3f6ef442))
|
|
6
|
+
|
|
7
|
+
## 1.0.0 (2026-06-07)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* initial commit ([36ea8ba](https://github.com/appium/appium-mcp-documentation/commit/36ea8bade7abed269656e967115ff8ece3390b20))
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* path to module ([#4](https://github.com/appium/appium-mcp-documentation/issues/4)) ([8381860](https://github.com/appium/appium-mcp-documentation/commit/8381860af786461dedb80f0883fcea061fde2992))
|
|
16
|
+
* release module ([52e5855](https://github.com/appium/appium-mcp-documentation/commit/52e5855e5a87686c46b6d7bdbf5f3faa7ebb2d03))
|
|
17
|
+
* update deps ([4e2a6b0](https://github.com/appium/appium-mcp-documentation/commit/4e2a6b0a47562f08e71ef12ded5990b989c29eb2))
|
|
18
|
+
|
|
19
|
+
### Miscellaneous Chores
|
|
20
|
+
|
|
21
|
+
* add missing deps ([7520d25](https://github.com/appium/appium-mcp-documentation/commit/7520d253bf555329a9a183b8d091b9ed9f118f84))
|
|
22
|
+
* preparing releases ([#1](https://github.com/appium/appium-mcp-documentation/issues/1)) ([df4307b](https://github.com/appium/appium-mcp-documentation/commit/df4307be1f369becb92019be372b51d30e3bea67))
|
package/dist/paths.d.ts
CHANGED
package/dist/paths.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../src/paths.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../src/paths.ts"],"names":[],"mappings":"AAQA,wBAAgB,aAAa,IAAI,MAAM,CAGtC;AAED,wBAAgB,0BAA0B,CAAC,GAAG,QAAQ,EAAE,MAAM,EAAE,GAAG,MAAM,CAExE"}
|
package/dist/paths.js
CHANGED
|
@@ -1,22 +1,14 @@
|
|
|
1
|
-
import fs from 'node:fs';
|
|
2
1
|
import path from 'node:path';
|
|
3
2
|
import { fileURLToPath } from 'node:url';
|
|
3
|
+
import { fs } from '@appium/support';
|
|
4
4
|
const __filename = fileURLToPath(import.meta.url);
|
|
5
5
|
const __dirname = path.dirname(__filename);
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
let moduleRoot;
|
|
7
|
+
export function getModuleRoot() {
|
|
8
|
+
moduleRoot ??= fs.findRoot(__dirname);
|
|
9
|
+
return moduleRoot;
|
|
8
10
|
}
|
|
9
|
-
function
|
|
10
|
-
|
|
11
|
-
return process.env.APPIUM_MCP_RESOURCES_PATH;
|
|
12
|
-
}
|
|
13
|
-
const candidates = [
|
|
14
|
-
path.resolve(process.cwd(), 'src/resources'),
|
|
15
|
-
path.resolve(process.cwd(), 'dist/resources'),
|
|
16
|
-
path.resolve(__dirname, 'resources'),
|
|
17
|
-
path.resolve(__dirname, '../resources'),
|
|
18
|
-
];
|
|
19
|
-
const existing = candidates.find((candidate) => fs.existsSync(candidate));
|
|
20
|
-
return existing ?? candidates[0];
|
|
11
|
+
export function resolveAppiumResourcesPath(...segments) {
|
|
12
|
+
return path.join(getModuleRoot(), 'src', 'resources', ...segments);
|
|
21
13
|
}
|
|
22
14
|
//# sourceMappingURL=paths.js.map
|
package/dist/paths.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../src/paths.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../src/paths.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAErC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;AAC3C,IAAI,UAA8B,CAAC;AAEnC,MAAM,UAAU,aAAa;IAC3B,UAAU,KAAK,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IACtC,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,GAAG,QAAkB;IAC9D,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,QAAQ,CAAC,CAAC;AACrE,CAAC"}
|
|
@@ -8,6 +8,7 @@ export declare const logger: {
|
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
export declare const fs: {
|
|
11
|
+
findRoot: (dir: string) => string;
|
|
11
12
|
hasAccess: (p: string) => Promise<boolean>;
|
|
12
13
|
exists: (p: string) => Promise<boolean>;
|
|
13
14
|
readdir: (p: string) => Promise<string[]>;
|
|
@@ -53,6 +54,7 @@ declare const _default: {
|
|
|
53
54
|
};
|
|
54
55
|
};
|
|
55
56
|
fs: {
|
|
57
|
+
findRoot: (dir: string) => string;
|
|
56
58
|
hasAccess: (p: string) => Promise<boolean>;
|
|
57
59
|
exists: (p: string) => Promise<boolean>;
|
|
58
60
|
readdir: (p: string) => Promise<string[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"support.d.ts","sourceRoot":"","sources":["../../../../src/tests/__mocks__/@appium/support.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"support.d.ts","sourceRoot":"","sources":["../../../../src/tests/__mocks__/@appium/support.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM;uBACE,MAAM;;;;;;;CAO1B,CAAC;AAEF,eAAO,MAAM,EAAE;oBACG,MAAM;mBAaD,MAAM;gBAQT,MAAM;iBACX,MAAM;cACT,MAAM;kBACF,MAAM,aAAa,cAAc;mBAEhC,MAAM,QAAQ,MAAM,GAAG,MAAM,aAAa,cAAc;gBAE3D,MAAM;mBACH,MAAM,MAAM,MAAM;eACtB,MAAM,SAAS;QAAE,SAAS,CAAC,EAAE,OAAO,CAAA;KAAE;gBAErC,MAAM;eACD,MAAM,MAAM,MAAM;CAGpC,CAAC;AAEF,eAAO,MAAM,SAAS;;CAIrB,CAAC;AAEF,eAAO,MAAM,IAAI;6BACU,MAAM;;;;CAIhC,CAAC;AAEF,eAAO,MAAM,GAAG;;CAEf,CAAC;AAEF,eAAO,MAAM,KAAK;;CAEjB,CAAC;AAEF,eAAO,MAAM,GAAG;;;;CAIf,CAAC;;;2BAzEmB,MAAM;;;;;;;;;wBAUT,MAAM;uBAaD,MAAM;oBAQT,MAAM;qBACX,MAAM;kBACT,MAAM;sBACF,MAAM,aAAa,cAAc;uBAEhC,MAAM,QAAQ,MAAM,GAAG,MAAM,aAAa,cAAc;oBAE3D,MAAM;uBACH,MAAM,MAAM,MAAM;mBACtB,MAAM,SAAS;YAAE,SAAS,CAAC,EAAE,OAAO,CAAA;SAAE;oBAErC,MAAM;mBACD,MAAM,MAAM,MAAM;;;;;;iCAYV,MAAM;;;;;;;;;;;;;;;;;AAoBjC,wBAQE"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { constants, existsSync, promises as fsPromises } from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
2
3
|
const noop = () => { };
|
|
3
4
|
export const logger = {
|
|
4
5
|
getLogger: (_name) => ({
|
|
@@ -10,6 +11,19 @@ export const logger = {
|
|
|
10
11
|
}),
|
|
11
12
|
};
|
|
12
13
|
export const fs = {
|
|
14
|
+
findRoot: (dir) => {
|
|
15
|
+
let current = path.resolve(dir);
|
|
16
|
+
while (true) {
|
|
17
|
+
if (existsSync(path.join(current, 'package.json'))) {
|
|
18
|
+
return current;
|
|
19
|
+
}
|
|
20
|
+
const parent = path.dirname(current);
|
|
21
|
+
if (parent === current) {
|
|
22
|
+
throw new Error(`Could not find package root from ${dir}`);
|
|
23
|
+
}
|
|
24
|
+
current = parent;
|
|
25
|
+
}
|
|
26
|
+
},
|
|
13
27
|
hasAccess: async (p) => {
|
|
14
28
|
try {
|
|
15
29
|
await fsPromises.access(p, constants.R_OK);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"support.js","sourceRoot":"","sources":["../../../../src/tests/__mocks__/@appium/support.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,IAAI,UAAU,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"support.js","sourceRoot":"","sources":["../../../../src/tests/__mocks__/@appium/support.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,IAAI,UAAU,EAAE,MAAM,SAAS,CAAC;AACxE,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,MAAM,IAAI,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;AAEtB,MAAM,CAAC,MAAM,MA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MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,cAAc,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC;CACjC,CAAC;AAEF,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,YAAY,EAAE,KAAK,IAAI,EAAE,GAAE,CAAC;IAC5B,WAAW,EAAE,KAAK,IAAI,EAAE,GAAE,CAAC;IAC3B,SAAS,EAAE,KAAK,IAAI,EAAE,GAAE,CAAC;CAC1B,CAAC;AAEF,eAAe;IACb,MAAM;IACN,EAAE;IACF,SAAS;IACT,IAAI;IACJ,GAAG;IACH,KAAK;IACL,GAAG;CACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appium/mcp-documentation",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Appium MCP documentation query tools and indexed documentation assets",
|
|
6
6
|
"repository": {
|
|
@@ -74,6 +74,7 @@
|
|
|
74
74
|
"@jest/globals": "^30.2.0",
|
|
75
75
|
"@types/jest": "^30.0.0",
|
|
76
76
|
"@types/node": "^25.0.9",
|
|
77
|
+
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
77
78
|
"fastmcp": "^4.0.0",
|
|
78
79
|
"jest": "^30.2.0",
|
|
79
80
|
"prettier": "^3.5.3",
|
|
Binary file
|