@modootoday/pmcp 0.10.0 → 0.11.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/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export { E as EntryVectorStore, e as encodeEntries, l as loadEmbedder, o as open
5
5
  export { D as DEFAULT_MODEL_ID, a as EmbeddingModel, b as EncoderDtype, E as EncoderOptions, c as EncoderSpec, R as ResolvedEncoder, e as embeddingModels, d as encoderSpec, r as resolveEncoder } from './encoder-DGRy9skC.js';
6
6
  import { P as ProjectConfig } from './config-CJ43_oBS.js';
7
7
  export { C as CONFIG_FILE, a as CatalogSection, b as ConfigError, E as EmbeddingSection, f as findConfig, r as readConfig } from './config-CJ43_oBS.js';
8
+ import { S as ShellHookSpec } from './hook-spec-PRSnYGLV.js';
8
9
  import { McpServer } from '@modelcontextprotocol/server';
9
10
  import { M as MailboxService } from './service-qpCsOXkQ.js';
10
11
  import 'zod';
@@ -92,6 +93,7 @@ type Output = {
92
93
  readonly file: string;
93
94
  readonly key: readonly string[];
94
95
  readonly value: unknown;
96
+ readonly managed?: readonly unknown[];
95
97
  }
96
98
  /** A marked block inside a text file other content shares. path = file#pmcp */
97
99
  | {
@@ -119,13 +121,26 @@ interface PackageRulesSpec {
119
121
  }
120
122
  interface McpServerSpec {
121
123
  readonly mailbox?: boolean;
122
- readonly command: string;
124
+ readonly command?: string;
125
+ readonly url?: string;
123
126
  readonly args: readonly string[];
124
127
  readonly env: Readonly<Record<string, string>>;
128
+ readonly envVars?: readonly string[];
129
+ readonly envFrom?: Readonly<Record<string, {
130
+ readonly file: string;
131
+ readonly pointer: string;
132
+ }>>;
133
+ readonly cwd?: string;
134
+ readonly headers?: Readonly<Record<string, string>>;
135
+ readonly headerEnv?: Readonly<Record<string, string>>;
136
+ readonly bearerTokenEnvVar?: string;
137
+ readonly native?: Partial<Record<Tool, Readonly<Record<string, number>>>>;
138
+ readonly targets?: readonly Tool[];
125
139
  /** Tools the server should expose where a host can narrow them. */
126
140
  readonly tools?: readonly string[];
127
141
  }
128
142
  interface ProjectSpec {
143
+ readonly hooks?: readonly ShellHookSpec[];
129
144
  readonly root: string;
130
145
  readonly tools: ReadonlySet<Tool>;
131
146
  readonly skills: Readonly<Record<string, {
@@ -152,6 +167,7 @@ declare function plan(spec: ProjectSpec, owned?: ReadonlyMap<string, string>): O
152
167
 
153
168
  declare const LOCK_FILE = "pmcp.lock";
154
169
  interface ProjectResult {
170
+ readonly backup?: string;
155
171
  /** 0 done or clean, 2 check found problems, 3 refused to overwrite. */
156
172
  readonly code: 0 | 2 | 3;
157
173
  readonly problems: readonly string[];
@@ -175,7 +191,7 @@ interface RunResult {
175
191
  readonly status: number | null;
176
192
  readonly stdout: string;
177
193
  }
178
- type Runner = (command: string, args: readonly string[], cwd: string) => RunResult;
194
+ type Runner = (command: string, args: readonly string[], cwd: string, env?: Readonly<Record<string, string | undefined>>) => RunResult;
179
195
  type Status = "ok" | "fail" | "skip";
180
196
  interface Finding$1 {
181
197
  readonly tool: Tool | "project";
@@ -184,6 +200,7 @@ interface Finding$1 {
184
200
  readonly detail?: string;
185
201
  }
186
202
  interface DoctorOptions {
203
+ readonly env?: Readonly<Record<string, string | undefined>>;
187
204
  readonly run: Runner;
188
205
  readonly home: string;
189
206
  readonly only?: ReadonlySet<Tool>;
@@ -265,7 +282,7 @@ declare function resolveSkillFileUri(uri: string, entries: readonly SkillEntry[]
265
282
 
266
283
  /** Reported to the host on connect. */
267
284
  declare const SERVER_NAME = "pmcp";
268
- declare const SERVER_VERSION = "0.10.0";
285
+ declare const SERVER_VERSION = "0.11.0";
269
286
  /**
270
287
  * Registers the skill_* tools on a server.
271
288
  *