@modootoday/pmcp 0.16.0 → 0.17.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.
@@ -1,4 +1,4 @@
1
- import { E as Embedder } from './server-DAcT89iv.js';
1
+ import { E as Embedder } from './server-VWSY3Shw.js';
2
2
  import { E as EncoderOptions } from './encoder-DGRy9skC.js';
3
3
 
4
4
  /**
@@ -546,6 +546,7 @@ var Connection = class {
546
546
  constructor(records3) {
547
547
  this.records = records3;
548
548
  }
549
+ records;
549
550
  tmux(args, options = {}) {
550
551
  return command(
551
552
  "tmux",
@@ -692,6 +693,8 @@ var LaunchJournal = class {
692
693
  this.id = id2;
693
694
  runtimeUnit(id2);
694
695
  }
696
+ records;
697
+ id;
695
698
  path(kind) {
696
699
  if (!["intent", "proof", "grant", "committed", "aborted"].includes(kind))
697
700
  throw new Error("invalid_launch_artifact");
@@ -453,6 +453,7 @@ var Connection = class {
453
453
  constructor(records2) {
454
454
  this.records = records2;
455
455
  }
456
+ records;
456
457
  tmux(args, options = {}) {
457
458
  return command(
458
459
  "tmux",
@@ -705,6 +706,8 @@ var LaunchJournal = class {
705
706
  this.id = id2;
706
707
  runtimeUnit(id2);
707
708
  }
709
+ records;
710
+ id;
708
711
  path(kind) {
709
712
  if (!["intent", "proof", "grant", "committed", "aborted"].includes(kind))
710
713
  throw new Error("invalid_launch_artifact");
@@ -1791,6 +1794,7 @@ var Backend = class {
1791
1794
  this.runDirectory = recordStore.directory;
1792
1795
  this.metadataPath = recordStore.metadataPath;
1793
1796
  }
1797
+ recordStore;
1794
1798
  connection;
1795
1799
  owner;
1796
1800
  socket;
package/dist/http.d.ts CHANGED
@@ -1,6 +1,7 @@
1
- import { S as SkillServerOptions, E as Embedder, a as SkillEntry } from './server-DAcT89iv.js';
2
- import { L as LoadEmbedderOptions } from './embed-CVCEz2FH.js';
3
- export { l as loadEmbedder } from './embed-CVCEz2FH.js';
1
+ import { S as SkillServerOptions, E as Embedder, a as SkillEntry } from './server-VWSY3Shw.js';
2
+ export { C as CatalogOptions, R as Runtime, r as readCatalog, v as verifiedRuntimesOf } from './server-VWSY3Shw.js';
3
+ import { L as LoadEmbedderOptions } from './embed-DRROSD3F.js';
4
+ export { l as loadEmbedder } from './embed-DRROSD3F.js';
4
5
  import { M as MailboxService } from './service-qpCsOXkQ.js';
5
6
  export { D as DEFAULT_MODEL_ID } from './encoder-DGRy9skC.js';
6
7
  import 'zod';
@@ -80,4 +81,4 @@ interface SkillHttpHandler {
80
81
  }
81
82
  declare function createSkillHttpHandler(options: SkillHttpOptions): SkillHttpHandler;
82
83
 
83
- export { DEFAULT_MAX_REQUEST_BYTES, DEFAULT_TIERS, Embedder, type RateLimitOptions, type SkillCaller, type SkillHttpHandler, type SkillHttpOptions, type SkillHttpSemanticOptions, createSkillHttpHandler, visibleTo };
84
+ export { DEFAULT_MAX_REQUEST_BYTES, DEFAULT_TIERS, Embedder, type RateLimitOptions, type SkillCaller, SkillEntry, type SkillHttpHandler, type SkillHttpOptions, type SkillHttpSemanticOptions, createSkillHttpHandler, visibleTo };
package/dist/http.js CHANGED
@@ -694,7 +694,7 @@ function withoutBody({
694
694
 
695
695
  // src/intent.ts
696
696
  function normaliseIntent(intent) {
697
- return intent.toLowerCase().replaceAll(/[^\p{L}\p{N}\s]/gu, " ").split(/\s+/u).filter(Boolean).join(" ");
697
+ return intent.normalize("NFC").toLowerCase().replaceAll(/[^\p{L}\p{N}\s]/gu, " ").split(/\s+/u).filter(Boolean).join(" ");
698
698
  }
699
699
 
700
700
  // src/embed.ts
@@ -2294,7 +2294,7 @@ function registerMailboxTools(server, service) {
2294
2294
 
2295
2295
  // src/mcp.ts
2296
2296
  var SERVER_NAME = "pmcp";
2297
- var SERVER_VERSION = "0.16.0";
2297
+ var SERVER_VERSION = "0.17.0";
2298
2298
  function registerSkillTools(server, tools) {
2299
2299
  registerCatalogTool(server, tools);
2300
2300
  registerFindTool(server, tools);
@@ -2426,6 +2426,8 @@ export {
2426
2426
  DEFAULT_TIERS,
2427
2427
  createSkillHttpHandler,
2428
2428
  loadEmbedder,
2429
+ readCatalog,
2430
+ verifiedRuntimesOf,
2429
2431
  visibleTo
2430
2432
  };
2431
2433
  //# sourceMappingURL=http.js.map
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { I as IntentCache, R as Ranking, S as SkillServerOptions, E as Embedder, C as CatalogOptions, a as SkillEntry, M as MetadataValue, b as SkillTools } from './server-DAcT89iv.js';
2
- export { A as ASSET_KINDS, c as AssetKind, B as BundleFile, d as CATALOG_PAGE_MAX, e as CATALOG_PAGE_SIZE, f as COMPATIBILITY_MAX, g as CallResponse, h as CatalogItem, i as CatalogResponse, j as Classified, D as DEFAULT_FIND_LIMIT, k as DESCRIBE_FILE_LIMIT, l as DESCRIPTION_MAX, F as FileKind, m as FindOptions, n as FindResult, o as IntentCacheStats, K as KindFilter, p as MAX_SKILL_DEPTH, q as Match, r as MetadataLeaf, N as NAME_MAX, s as READ_BUDGET_BYTES, t as RUNTIMES, u as ReadResult, v as Runtime, w as SKIPPED_DIRS, x as SkillBundle, y as SkillFile, z as SkillFileContent, G as SkillFileListing, H as SkillFilters, J as bundleResponseSchema, L as bundleSkill, O as catalogResponseSchema, P as classify, Q as cosine, T as createSkillTools, U as describeResponseSchema, V as detectRuntime, W as displayPath, X as find, Y as findResultSchema, Z as isUtf8Text, _ as kindOf, $ as lexicalScore, a0 as listSkillFiles, a1 as mimeOf, a2 as normaliseIntent, a3 as parseSkillFrontmatter, a4 as readBody, a5 as readCatalog, a6 as readFrontmatter, a7 as readSkillFile, a8 as runtimeOfClient, a9 as specProblems, aa as verifiedRuntimesOf, ab as withoutBody } from './server-DAcT89iv.js';
3
- import { L as LoadEmbedderOptions } from './embed-CVCEz2FH.js';
4
- export { E as EntryVectorStore, e as encodeEntries, l as loadEmbedder, o as openEntryVectors } from './embed-CVCEz2FH.js';
1
+ import { I as IntentCache, b as Ranking, S as SkillServerOptions, E as Embedder, C as CatalogOptions, a as SkillEntry, M as MetadataValue, c as SkillTools } from './server-VWSY3Shw.js';
2
+ export { A as ASSET_KINDS, d as AssetKind, B as BundleFile, e as CATALOG_PAGE_MAX, f as CATALOG_PAGE_SIZE, g as COMPATIBILITY_MAX, h as CallResponse, i as CatalogItem, j as CatalogResponse, k as Classified, D as DEFAULT_FIND_LIMIT, l as DESCRIBE_FILE_LIMIT, m as DESCRIPTION_MAX, F as FileKind, n as FindOptions, o as FindResult, p as IntentCacheStats, K as KindFilter, q as MAX_SKILL_DEPTH, s as Match, t as MetadataLeaf, N as NAME_MAX, u as READ_BUDGET_BYTES, w as RUNTIMES, x as ReadResult, R as Runtime, y as SKIPPED_DIRS, z as SkillBundle, G as SkillFile, H as SkillFileContent, J as SkillFileListing, L as SkillFilters, O as bundleResponseSchema, P as bundleSkill, Q as catalogResponseSchema, T as classify, U as cosine, V as createSkillTools, W as describeResponseSchema, X as detectRuntime, Y as displayPath, Z as find, _ as findResultSchema, $ as isUtf8Text, a0 as kindOf, a1 as lexicalScore, a2 as listSkillFiles, a3 as mimeOf, a4 as normaliseIntent, a5 as parseSkillFrontmatter, a6 as readBody, r as readCatalog, a7 as readFrontmatter, a8 as readSkillFile, a9 as runtimeOfClient, aa as specProblems, v as verifiedRuntimesOf, ab as withoutBody } from './server-VWSY3Shw.js';
3
+ import { L as LoadEmbedderOptions } from './embed-DRROSD3F.js';
4
+ export { E as EntryVectorStore, e as encodeEntries, l as loadEmbedder, o as openEntryVectors } from './embed-DRROSD3F.js';
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-BkSpjUG6.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-BkSpjUG6.js';
@@ -101,7 +101,7 @@ type Output = {
101
101
  * per-asset settings that do not belong in the cross-tool sources under .agents/.
102
102
  */
103
103
 
104
- declare const TOOLS: readonly ["claude", "codex", "gemini", "grok", "antigravity"];
104
+ declare const TOOLS: readonly ["claude", "codex", "gemini", "grok", "antigravity", "opencode"];
105
105
  type Tool = (typeof TOOLS)[number];
106
106
  type Invocation = "any" | "user";
107
107
  interface PackageRulesSpec {
@@ -275,7 +275,7 @@ declare function resolveSkillFileUri(uri: string, entries: readonly SkillEntry[]
275
275
 
276
276
  /** Reported to the host on connect. */
277
277
  declare const SERVER_NAME = "pmcp";
278
- declare const SERVER_VERSION = "0.16.0";
278
+ declare const SERVER_VERSION = "0.17.0";
279
279
  /**
280
280
  * Registers the skill_* tools on a server.
281
281
  *