@modootoday/pmcp 0.14.0 → 0.14.1

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.
@@ -612,7 +612,7 @@
612
612
  },
613
613
  {
614
614
  "name": "pmcp",
615
- "version": "0.14.0",
615
+ "version": "0.14.1",
616
616
  "description": "Find package skills and use native runtime project configuration.",
617
617
  "source": { "source": "local", "path": "./plugins/pmcp" },
618
618
  "policy": { "installation": "AVAILABLE", "authentication": "ON_USE" },
@@ -445,7 +445,7 @@
445
445
  },
446
446
  {
447
447
  "name": "pmcp",
448
- "version": "0.14.0",
448
+ "version": "0.14.1",
449
449
  "description": "Find package skills and use native runtime project configuration.",
450
450
  "source": "./plugins/pmcp"
451
451
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcp",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "description": "Find package skills and use native runtime project configuration.",
5
5
  "author": { "name": "modootoday" },
6
6
  "license": "Elastic-2.0",
package/dist/cli.js CHANGED
@@ -11,19 +11,19 @@ var __export = (target2, all) => {
11
11
 
12
12
  // src/storage/sqlite.ts
13
13
  async function openSqlite(path, options2 = {}) {
14
- if (!process.versions.bun) {
15
- const name2 = "node:sqlite";
16
- const { DatabaseSync } = await import(name2);
17
- return { db: new DatabaseSync(path, options2), provider: name2 };
14
+ const provider = process.versions.bun ? "bun:sqlite" : "node:sqlite";
15
+ const sqlite = await import(provider);
16
+ if (provider === "node:sqlite") {
17
+ const { DatabaseSync } = sqlite;
18
+ return { db: new DatabaseSync(path, options2), provider };
18
19
  }
19
- const name = "bun:sqlite";
20
- const { Database } = await import(name);
20
+ const { Database } = sqlite;
21
21
  const native2 = new Database(path, {
22
22
  create: !options2.readOnly,
23
23
  readonly: options2.readOnly
24
24
  });
25
25
  return {
26
- provider: name,
26
+ provider,
27
27
  db: {
28
28
  exec: (sql) => native2.run(sql),
29
29
  prepare: (sql) => native2.query(sql),
@@ -9163,7 +9163,7 @@ function registerMailboxTools(server, service) {
9163
9163
 
9164
9164
  // src/mcp.ts
9165
9165
  var SERVER_NAME = "pmcp";
9166
- var SERVER_VERSION = "0.14.0";
9166
+ var SERVER_VERSION = "0.14.1";
9167
9167
  function registerSkillTools(server, tools) {
9168
9168
  registerCatalogTool(server, tools);
9169
9169
  registerFindTool(server, tools);
@@ -15032,7 +15032,7 @@ function dispatch(argv, options2 = {}) {
15032
15032
  }
15033
15033
  return run(command2, rest, { ui, env, cwd });
15034
15034
  }
15035
- var VERSION = "0.14.0";
15035
+ var VERSION = "0.14.1";
15036
15036
  async function run(command2, argv, context) {
15037
15037
  try {
15038
15038
  return await command2.run({
package/dist/http.js CHANGED
@@ -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.14.0";
2297
+ var SERVER_VERSION = "0.14.1";
2298
2298
  function registerSkillTools(server, tools) {
2299
2299
  registerCatalogTool(server, tools);
2300
2300
  registerFindTool(server, tools);
package/dist/index.d.ts CHANGED
@@ -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.14.0";
278
+ declare const SERVER_VERSION = "0.14.1";
279
279
  /**
280
280
  * Registers the skill_* tools on a server.
281
281
  *
package/dist/index.js CHANGED
@@ -5,19 +5,19 @@ function normaliseIntent(intent) {
5
5
 
6
6
  // src/storage/sqlite.ts
7
7
  async function openSqlite(path, options = {}) {
8
- if (!process.versions.bun) {
9
- const name2 = "node:sqlite";
10
- const { DatabaseSync } = await import(name2);
11
- return { db: new DatabaseSync(path, options), provider: name2 };
8
+ const provider = process.versions.bun ? "bun:sqlite" : "node:sqlite";
9
+ const sqlite = await import(provider);
10
+ if (provider === "node:sqlite") {
11
+ const { DatabaseSync } = sqlite;
12
+ return { db: new DatabaseSync(path, options), provider };
12
13
  }
13
- const name = "bun:sqlite";
14
- const { Database } = await import(name);
14
+ const { Database } = sqlite;
15
15
  const native2 = new Database(path, {
16
16
  create: !options.readOnly,
17
17
  readonly: options.readOnly
18
18
  });
19
19
  return {
20
- provider: name,
20
+ provider,
21
21
  db: {
22
22
  exec: (sql) => native2.run(sql),
23
23
  prepare: (sql) => native2.query(sql),
@@ -4617,7 +4617,7 @@ function registerMailboxTools(server, service) {
4617
4617
 
4618
4618
  // src/mcp.ts
4619
4619
  var SERVER_NAME = "pmcp";
4620
- var SERVER_VERSION = "0.14.0";
4620
+ var SERVER_VERSION = "0.14.1";
4621
4621
  function registerSkillTools(server, tools) {
4622
4622
  registerCatalogTool(server, tools);
4623
4623
  registerFindTool(server, tools);
@@ -247,19 +247,19 @@ import { setTimeout as delay } from "timers/promises";
247
247
 
248
248
  // src/storage/sqlite.ts
249
249
  async function openSqlite(path, options = {}) {
250
- if (!process.versions.bun) {
251
- const name2 = "node:sqlite";
252
- const { DatabaseSync } = await import(name2);
253
- return { db: new DatabaseSync(path, options), provider: name2 };
250
+ const provider = process.versions.bun ? "bun:sqlite" : "node:sqlite";
251
+ const sqlite = await import(provider);
252
+ if (provider === "node:sqlite") {
253
+ const { DatabaseSync } = sqlite;
254
+ return { db: new DatabaseSync(path, options), provider };
254
255
  }
255
- const name = "bun:sqlite";
256
- const { Database } = await import(name);
256
+ const { Database } = sqlite;
257
257
  const native = new Database(path, {
258
258
  create: !options.readOnly,
259
259
  readonly: options.readOnly
260
260
  });
261
261
  return {
262
- provider: name,
262
+ provider,
263
263
  db: {
264
264
  exec: (sql) => native.run(sql),
265
265
  prepare: (sql) => native.query(sql),
package/dist/stdio.js CHANGED
@@ -1941,7 +1941,7 @@ function registerMailboxTools(server, service) {
1941
1941
 
1942
1942
  // src/mcp.ts
1943
1943
  var SERVER_NAME = "pmcp";
1944
- var SERVER_VERSION = "0.14.0";
1944
+ var SERVER_VERSION = "0.14.1";
1945
1945
  function registerSkillTools(server, tools) {
1946
1946
  registerCatalogTool(server, tools);
1947
1947
  registerFindTool(server, tools);
@@ -2238,19 +2238,19 @@ import { setTimeout as delay } from "timers/promises";
2238
2238
 
2239
2239
  // src/storage/sqlite.ts
2240
2240
  async function openSqlite(path, options = {}) {
2241
- if (!process.versions.bun) {
2242
- const name2 = "node:sqlite";
2243
- const { DatabaseSync } = await import(name2);
2244
- return { db: new DatabaseSync(path, options), provider: name2 };
2241
+ const provider = process.versions.bun ? "bun:sqlite" : "node:sqlite";
2242
+ const sqlite = await import(provider);
2243
+ if (provider === "node:sqlite") {
2244
+ const { DatabaseSync } = sqlite;
2245
+ return { db: new DatabaseSync(path, options), provider };
2245
2246
  }
2246
- const name = "bun:sqlite";
2247
- const { Database } = await import(name);
2247
+ const { Database } = sqlite;
2248
2248
  const native = new Database(path, {
2249
2249
  create: !options.readOnly,
2250
2250
  readonly: options.readOnly
2251
2251
  });
2252
2252
  return {
2253
- provider: name,
2253
+ provider,
2254
2254
  db: {
2255
2255
  exec: (sql) => native.run(sql),
2256
2256
  prepare: (sql) => native.query(sql),
@@ -4521,19 +4521,19 @@ import { setTimeout as delay } from "timers/promises";
4521
4521
 
4522
4522
  // src/storage/sqlite.ts
4523
4523
  async function openSqlite(path, options = {}) {
4524
- if (!process.versions.bun) {
4525
- const name2 = "node:sqlite";
4526
- const { DatabaseSync } = await import(name2);
4527
- return { db: new DatabaseSync(path, options), provider: name2 };
4524
+ const provider = process.versions.bun ? "bun:sqlite" : "node:sqlite";
4525
+ const sqlite = await import(provider);
4526
+ if (provider === "node:sqlite") {
4527
+ const { DatabaseSync } = sqlite;
4528
+ return { db: new DatabaseSync(path, options), provider };
4528
4529
  }
4529
- const name = "bun:sqlite";
4530
- const { Database } = await import(name);
4530
+ const { Database } = sqlite;
4531
4531
  const native = new Database(path, {
4532
4532
  create: !options.readOnly,
4533
4533
  readonly: options.readOnly
4534
4534
  });
4535
4535
  return {
4536
- provider: name,
4536
+ provider,
4537
4537
  db: {
4538
4538
  exec: (sql) => native.run(sql),
4539
4539
  prepare: (sql) => native.query(sql),
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcp",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "mcpServers": {
5
5
  "pmcp": {
6
6
  "type": "stdio",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modootoday/pmcp",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "license": "Elastic-2.0",
5
5
  "author": "modootoday",
6
6
  "description": "Use the skills your packages already ship, and keep your AI tools' project configuration in one place.",
package/plugin.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "pmcp",
4
- "version": "0.14.0",
4
+ "version": "0.14.1",
5
5
  "description": "Find package skills and use native runtime project configuration.",
6
6
  "author": { "name": "modootoday" },
7
7
  "license": "Elastic-2.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcp",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "description": "Find package skills and use native runtime project configuration.",
5
5
  "author": { "name": "modootoday" },
6
6
  "license": "Elastic-2.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcp",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "mcpServers": {
5
5
  "pmcp": {
6
6
  "type": "stdio",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "pmcp",
4
- "version": "0.14.0",
4
+ "version": "0.14.1",
5
5
  "description": "Find package skills and use native runtime project configuration.",
6
6
  "author": { "name": "modootoday" },
7
7
  "license": "Elastic-2.0",