@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.
@@ -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
@@ -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
@@ -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.103",
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",