@edgegap/mcp 0.11.0 → 0.12.0
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 +65 -3
- package/dist/auth.js +16 -6
- package/dist/callreport.js +157 -0
- package/dist/client.js +9 -0
- package/dist/hosted.js +4 -1
- package/dist/http.js +1 -1
- package/dist/skills.generated.js +64 -25
- package/dist/skills.js +12 -1
- package/dist/tools.js +511 -84
- package/dist/version.js +1 -1
- package/package.json +4 -3
package/dist/skills.js
CHANGED
|
@@ -49,7 +49,18 @@ export function mimeType(path) {
|
|
|
49
49
|
return 'text/css';
|
|
50
50
|
return 'text/plain';
|
|
51
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Files bundled for completeness but of no use to an agent: Unity .meta
|
|
54
|
+
* files hold asset GUIDs. They stay in the bundle, because a project that
|
|
55
|
+
* copies the templates needs them next to their assets (and
|
|
56
|
+
* edgegap_update_skills rewrites hand-copied skills from the bundle), but they
|
|
57
|
+
* are never listed: an agent shown one tends to read it, and one session read
|
|
58
|
+
* EdgegapSettings.cs.meta 14 times. Still readable by exact path.
|
|
59
|
+
*/
|
|
60
|
+
export function isListable(path) {
|
|
61
|
+
return !path.endsWith('.meta');
|
|
62
|
+
}
|
|
52
63
|
/** The skill's other files, so an agent knows what it can fetch next. */
|
|
53
64
|
export function fileIndex(skill) {
|
|
54
|
-
return skill.files.filter((f) => f.path !== 'SKILL.md').map((f) => f.path);
|
|
65
|
+
return skill.files.filter((f) => f.path !== 'SKILL.md' && isListable(f.path)).map((f) => f.path);
|
|
55
66
|
}
|