@kwonye/mcpx 0.1.103 → 0.1.105
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/{chunk-wq4zd3t7.js → chunk-01s7rhx3.js} +4 -2
- package/dist/{chunk-cqenqnxk.js → chunk-4y0t0tfj.js} +8 -2
- package/dist/{chunk-z1k63fa3.js → chunk-56whm3hm.js} +329 -34
- package/dist/{chunk-31brdz5s.js → chunk-6mxr34tc.js} +2 -2
- package/dist/{chunk-b58zsdp4.js → chunk-am903qjk.js} +11 -5
- package/dist/{chunk-s9v1epnk.js → chunk-btbww96n.js} +7 -5
- package/dist/{chunk-02r7k4ax.js → chunk-d2v9rxy0.js} +5 -5
- package/dist/{chunk-cz8cdmw1.js → chunk-fw8dyt89.js} +1 -1
- package/dist/{chunk-0xhdyt4z.js → chunk-h158rkts.js} +4 -4
- package/dist/{chunk-941dqsx2.js → chunk-t4hqf6yh.js} +244 -9
- package/dist/{chunk-z34m83m4.js → chunk-y9a1rx7j.js} +2 -2
- package/dist/cli.js +146 -32
- package/dist/core/index.d.ts +5 -3
- package/dist/core/index.js +37 -9
- package/dist/core/paths.d.ts +2 -0
- package/dist/core/plugin-manager.d.ts +4 -1
- package/dist/core/share.d.ts +71 -0
- package/dist/core/skills.d.ts +7 -0
- package/dist/core/telemetry.d.ts +1 -1
- package/dist/types.d.ts +10 -0
- package/package.json +2 -1
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const environmentSchema: z.ZodObject<{
|
|
3
|
+
version: z.ZodLiteral<1>;
|
|
4
|
+
generatedBy: z.ZodString;
|
|
5
|
+
servers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6
|
+
transport: z.ZodLiteral<"http">;
|
|
7
|
+
url: z.ZodURL;
|
|
8
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
10
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11
|
+
transport: z.ZodLiteral<"stdio">;
|
|
12
|
+
command: z.ZodString;
|
|
13
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
14
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
15
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
16
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
17
|
+
}, z.core.$strip>], "transport">>>;
|
|
18
|
+
skills: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
19
|
+
id: z.ZodString;
|
|
20
|
+
kind: z.ZodEnum<{
|
|
21
|
+
skill: "skill";
|
|
22
|
+
plugin: "plugin";
|
|
23
|
+
}>;
|
|
24
|
+
path: z.ZodString;
|
|
25
|
+
source: z.ZodOptional<z.ZodString>;
|
|
26
|
+
}, z.core.$strip>>>;
|
|
27
|
+
plugins: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
28
|
+
id: z.ZodString;
|
|
29
|
+
kind: z.ZodEnum<{
|
|
30
|
+
skill: "skill";
|
|
31
|
+
plugin: "plugin";
|
|
32
|
+
}>;
|
|
33
|
+
path: z.ZodString;
|
|
34
|
+
source: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>>>;
|
|
36
|
+
clients: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
37
|
+
inputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
38
|
+
name: z.ZodString;
|
|
39
|
+
description: z.ZodOptional<z.ZodString>;
|
|
40
|
+
}, z.core.$strip>>>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
declare const lockSchema: z.ZodObject<{
|
|
43
|
+
version: z.ZodLiteral<1>;
|
|
44
|
+
mcpxCompatibility: z.ZodString;
|
|
45
|
+
manifestSha256: z.ZodString;
|
|
46
|
+
packages: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
47
|
+
sha256: z.ZodString;
|
|
48
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
49
|
+
}, z.core.$strip>>>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
export type ShareEnvironment = z.infer<typeof environmentSchema>;
|
|
52
|
+
export type ShareLock = z.infer<typeof lockSchema>;
|
|
53
|
+
export declare function exportEnvironment(destination: string, options?: {
|
|
54
|
+
skills?: string[];
|
|
55
|
+
plugins?: string[];
|
|
56
|
+
}): {
|
|
57
|
+
environment: ShareEnvironment;
|
|
58
|
+
lock: ShareLock;
|
|
59
|
+
};
|
|
60
|
+
export declare function importEnvironment(sourceDirectory: string, options?: {
|
|
61
|
+
locked?: boolean;
|
|
62
|
+
dryRun?: boolean;
|
|
63
|
+
inputs?: Record<string, string>;
|
|
64
|
+
}): Promise<{
|
|
65
|
+
importedSkills: string[];
|
|
66
|
+
importedPlugins: string[];
|
|
67
|
+
importedServers: string[];
|
|
68
|
+
missingInputs: string[];
|
|
69
|
+
}>;
|
|
70
|
+
export {};
|
|
71
|
+
//# sourceMappingURL=share.d.ts.map
|
package/dist/core/skills.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import type { Skill } from "../types.js";
|
|
2
|
+
export declare function validateSkillPackage(root: string): void;
|
|
2
3
|
export declare function listSkills(): Skill[];
|
|
3
4
|
export declare function getSkill(id: string): Skill | null;
|
|
4
5
|
export declare function saveSkill(id: string, content: string): void;
|
|
5
6
|
export declare function deleteSkill(id: string): void;
|
|
7
|
+
export declare function customizeSkill(id: string, targetId?: string): Skill;
|
|
8
|
+
export declare function installSkillFromSource(source: string, skillName?: string): Promise<Skill>;
|
|
9
|
+
export declare function pinSkill(id: string): void;
|
|
10
|
+
export declare function unpinSkill(id: string): void;
|
|
11
|
+
export declare function updateSkill(id: string): Promise<Skill>;
|
|
12
|
+
export declare function rollbackSkill(id: string): Skill;
|
|
6
13
|
//# sourceMappingURL=skills.d.ts.map
|
package/dist/core/telemetry.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ declare const launchModeSchema: z.ZodEnum<{
|
|
|
17
17
|
status: "status";
|
|
18
18
|
clients: "clients";
|
|
19
19
|
project: "project";
|
|
20
|
+
skill: "skill";
|
|
20
21
|
proxy: "proxy";
|
|
21
22
|
auth: "auth";
|
|
22
23
|
plugin: "plugin";
|
|
@@ -30,7 +31,6 @@ declare const launchModeSchema: z.ZodEnum<{
|
|
|
30
31
|
sync: "sync";
|
|
31
32
|
doctor: "doctor";
|
|
32
33
|
secret: "secret";
|
|
33
|
-
skill: "skill";
|
|
34
34
|
"plugin-host": "plugin-host";
|
|
35
35
|
update: "update";
|
|
36
36
|
telemetry: "telemetry";
|
package/dist/types.d.ts
CHANGED
|
@@ -119,6 +119,10 @@ export interface SyncResult {
|
|
|
119
119
|
export interface Skill {
|
|
120
120
|
id: string;
|
|
121
121
|
content: string;
|
|
122
|
+
/** Canonical directory containing SKILL.md and optional resources. */
|
|
123
|
+
root?: string;
|
|
124
|
+
source?: "authored" | "installed";
|
|
125
|
+
readOnly?: boolean;
|
|
122
126
|
}
|
|
123
127
|
export interface PluginSyncInput {
|
|
124
128
|
pluginId: string;
|
|
@@ -319,6 +323,12 @@ export interface ManagedPlugin {
|
|
|
319
323
|
sourceFingerprint: string;
|
|
320
324
|
};
|
|
321
325
|
updateError?: string;
|
|
326
|
+
pinned?: boolean;
|
|
327
|
+
previous?: {
|
|
328
|
+
version: string;
|
|
329
|
+
resolvedSha: string;
|
|
330
|
+
root: string;
|
|
331
|
+
};
|
|
322
332
|
projectOverrides?: Record<string, {
|
|
323
333
|
enabled?: boolean;
|
|
324
334
|
components?: Partial<Record<PluginComponent, boolean>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kwonye/mcpx",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.105",
|
|
4
4
|
"description": "HTTP-first MCP gateway and cross-client installer",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"author": "Will Kwon",
|
|
26
26
|
"type": "module",
|
|
27
|
+
"packageManager": "bun@1.4.0",
|
|
27
28
|
"main": "index.js",
|
|
28
29
|
"exports": {
|
|
29
30
|
".": "./dist/cli.js",
|