@stage-labs/metro 0.1.0-beta.158 → 0.1.0-beta.159
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stage-labs/metro",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.159",
|
|
4
4
|
"description": "The metro command line. Sign in once per machine, then hand your MCP connector list to Claude Code without the credentials touching disk, argv or shell history.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "metro",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.159",
|
|
4
4
|
"description": "Metro for Claude Code, installed by the metro daemon on this machine: every connector the agent holds as its own MCP server relayed through the daemon, the orchestrator-only guard on the main thread, and the standing rules loaded at each session start. No vendor credential ever sits in a config file.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Bonustrack",
|
|
@@ -45,14 +45,16 @@ function entryOf(name: string, path: string): ClaudeSkill {
|
|
|
45
45
|
|
|
46
46
|
export const userSkillsRoot = (dir: string): string => join(dir, 'skills');
|
|
47
47
|
|
|
48
|
+
const isFolder = (path: string): boolean => statSync(path, { throwIfNoEntry: false })?.isDirectory() === true;
|
|
49
|
+
|
|
48
50
|
export function listClaudeSkills(dir = claudeDir()): ClaudeSkill[] {
|
|
49
51
|
const root = userSkillsRoot(dir);
|
|
50
52
|
if (!existsSync(root)) return [];
|
|
51
53
|
const out: ClaudeSkill[] = [];
|
|
52
|
-
for (const
|
|
53
|
-
if (!
|
|
54
|
-
const path = join(root,
|
|
55
|
-
if (existsSync(path)) out.push(entryOf(
|
|
54
|
+
for (const name of readdirSync(root)) {
|
|
55
|
+
if (!SKILL_NAME_RE.test(name) || !isFolder(join(root, name))) continue;
|
|
56
|
+
const path = join(root, name, FILE);
|
|
57
|
+
if (existsSync(path)) out.push(entryOf(name, path));
|
|
56
58
|
}
|
|
57
59
|
return out.sort((a, b) => (b.updatedAt ?? '').localeCompare(a.updatedAt ?? '') || a.name.localeCompare(b.name));
|
|
58
60
|
}
|
package/runtime/runtime.json
CHANGED