@modootoday/pmcp 0.12.0 → 0.13.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/README.md +2 -0
- package/dist/cli.js +8519 -6900
- package/dist/{embed-BBhv3y5x.d.ts → embed-BW6AWD1e.d.ts} +1 -1
- package/dist/harness-worker.js +32 -1
- package/dist/http.d.ts +3 -3
- package/dist/http.js +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +1 -1
- package/dist/stdio.d.ts +1 -1
- package/dist/stdio.js +1 -1
- package/dist/tui-worker.d.ts +2 -0
- package/dist/tui-worker.js +5973 -0
- package/docs/terminal-harness.md +2 -2
- package/docs/terminal-workspace.md +116 -0
- package/package.json +1 -1
- package/dist/{server-CwWcRjqz.d.ts → server-9w4R1caM.d.ts} +4 -4
package/dist/harness-worker.js
CHANGED
|
@@ -2588,7 +2588,8 @@ var observations = /* @__PURE__ */ new Set([
|
|
|
2588
2588
|
"session:watch",
|
|
2589
2589
|
"delivery:list",
|
|
2590
2590
|
"delivery:inspect",
|
|
2591
|
-
"recovery:inspect"
|
|
2591
|
+
"recovery:inspect",
|
|
2592
|
+
"attach:inspect"
|
|
2592
2593
|
]);
|
|
2593
2594
|
function isReadOnly(operation) {
|
|
2594
2595
|
if (operation.family === "attach" && operation.action === "open")
|
|
@@ -2604,6 +2605,31 @@ function detachClients(context, sessionId) {
|
|
|
2604
2605
|
return { sessionId, clientsDetached: true, runtimeStopRequested: false };
|
|
2605
2606
|
}
|
|
2606
2607
|
|
|
2608
|
+
// src/harness/adapters/tmux/clients.ts
|
|
2609
|
+
function attachedClients(backend, sessionId) {
|
|
2610
|
+
const session = backend.inspect(sessionId);
|
|
2611
|
+
if (!session.alive) throw new Error("session_unavailable");
|
|
2612
|
+
const output = backend.tmux([
|
|
2613
|
+
"list-clients",
|
|
2614
|
+
"-F",
|
|
2615
|
+
"#{session_id}|#{client_pid}|#{client_readonly}|#{client_tty}"
|
|
2616
|
+
]).trim();
|
|
2617
|
+
if (!output) return [];
|
|
2618
|
+
return output.split("\n").flatMap((line) => {
|
|
2619
|
+
const [id2, pid, readOnly, tty] = line.split("|");
|
|
2620
|
+
if (id2 !== session.tmuxSessionId) return [];
|
|
2621
|
+
if (!/^\d+$/.test(pid ?? "") || !tty || !["0", "1"].includes(readOnly ?? ""))
|
|
2622
|
+
throw new Error("attachment_observation_unknown");
|
|
2623
|
+
return [{ pid: Number(pid), tty, readOnly: readOnly === "1" }];
|
|
2624
|
+
});
|
|
2625
|
+
}
|
|
2626
|
+
|
|
2627
|
+
// src/harness/observation/attachments.ts
|
|
2628
|
+
function inspectAttachments(context, sessionId) {
|
|
2629
|
+
context.store.session(sessionId);
|
|
2630
|
+
return { sessionId, clients: attachedClients(context.backend, sessionId) };
|
|
2631
|
+
}
|
|
2632
|
+
|
|
2607
2633
|
// src/harness/application/dispatch.ts
|
|
2608
2634
|
async function runOperation(operation) {
|
|
2609
2635
|
const context = openGroup(text(operation.groupFile, "group_file"));
|
|
@@ -2648,6 +2674,11 @@ async function runOperation(operation) {
|
|
|
2648
2674
|
);
|
|
2649
2675
|
}
|
|
2650
2676
|
if (family === "attach") {
|
|
2677
|
+
if (action === "inspect")
|
|
2678
|
+
return inspectAttachments(
|
|
2679
|
+
context,
|
|
2680
|
+
text(operation.sessionId, "session_id")
|
|
2681
|
+
);
|
|
2651
2682
|
if (action === "detach")
|
|
2652
2683
|
return detachClients(context, text(operation.sessionId, "session_id"));
|
|
2653
2684
|
return attachment(
|
package/dist/http.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as SkillServerOptions, E as Embedder, a as SkillEntry } from './server-
|
|
2
|
-
import { L as LoadEmbedderOptions } from './embed-
|
|
3
|
-
export { l as loadEmbedder } from './embed-
|
|
1
|
+
import { S as SkillServerOptions, E as Embedder, a as SkillEntry } from './server-9w4R1caM.js';
|
|
2
|
+
import { L as LoadEmbedderOptions } from './embed-BW6AWD1e.js';
|
|
3
|
+
export { l as loadEmbedder } from './embed-BW6AWD1e.js';
|
|
4
4
|
import { M as MailboxService } from './service-qpCsOXkQ.js';
|
|
5
5
|
export { D as DEFAULT_MODEL_ID } from './encoder-DGRy9skC.js';
|
|
6
6
|
import 'zod';
|
package/dist/http.js
CHANGED
|
@@ -2190,7 +2190,7 @@ function registerMailboxTools(server, service) {
|
|
|
2190
2190
|
|
|
2191
2191
|
// src/mcp.ts
|
|
2192
2192
|
var SERVER_NAME = "pmcp";
|
|
2193
|
-
var SERVER_VERSION = "0.
|
|
2193
|
+
var SERVER_VERSION = "0.13.0";
|
|
2194
2194
|
function registerSkillTools(server, tools) {
|
|
2195
2195
|
registerCatalogTool(server, tools);
|
|
2196
2196
|
registerFindTool(server, tools);
|
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-
|
|
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-
|
|
3
|
-
import { L as LoadEmbedderOptions } from './embed-
|
|
4
|
-
export { E as EntryVectorStore, e as encodeEntries, l as loadEmbedder, o as openEntryVectors } from './embed-
|
|
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-9w4R1caM.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-9w4R1caM.js';
|
|
3
|
+
import { L as LoadEmbedderOptions } from './embed-BW6AWD1e.js';
|
|
4
|
+
export { E as EntryVectorStore, e as encodeEntries, l as loadEmbedder, o as openEntryVectors } from './embed-BW6AWD1e.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-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';
|
|
@@ -282,7 +282,7 @@ declare function resolveSkillFileUri(uri: string, entries: readonly SkillEntry[]
|
|
|
282
282
|
|
|
283
283
|
/** Reported to the host on connect. */
|
|
284
284
|
declare const SERVER_NAME = "pmcp";
|
|
285
|
-
declare const SERVER_VERSION = "0.
|
|
285
|
+
declare const SERVER_VERSION = "0.13.0";
|
|
286
286
|
/**
|
|
287
287
|
* Registers the skill_* tools on a server.
|
|
288
288
|
*
|
package/dist/index.js
CHANGED
|
@@ -4497,7 +4497,7 @@ function registerMailboxTools(server, service) {
|
|
|
4497
4497
|
|
|
4498
4498
|
// src/mcp.ts
|
|
4499
4499
|
var SERVER_NAME = "pmcp";
|
|
4500
|
-
var SERVER_VERSION = "0.
|
|
4500
|
+
var SERVER_VERSION = "0.13.0";
|
|
4501
4501
|
function registerSkillTools(server, tools) {
|
|
4502
4502
|
registerCatalogTool(server, tools);
|
|
4503
4503
|
registerFindTool(server, tools);
|
package/dist/stdio.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { serveStdio } from '@modelcontextprotocol/server/stdio';
|
|
3
|
-
import { S as SkillServerOptions, C as CatalogOptions } from './server-
|
|
3
|
+
import { S as SkillServerOptions, C as CatalogOptions } from './server-9w4R1caM.js';
|
|
4
4
|
import { M as MailboxService } from './service-qpCsOXkQ.js';
|
|
5
5
|
import { M as MailboxAttachmentOptions } from './attachment-tU5FZrgZ.js';
|
|
6
6
|
import 'zod';
|
package/dist/stdio.js
CHANGED
|
@@ -1837,7 +1837,7 @@ function registerMailboxTools(server, service) {
|
|
|
1837
1837
|
|
|
1838
1838
|
// src/mcp.ts
|
|
1839
1839
|
var SERVER_NAME = "pmcp";
|
|
1840
|
-
var SERVER_VERSION = "0.
|
|
1840
|
+
var SERVER_VERSION = "0.13.0";
|
|
1841
1841
|
function registerSkillTools(server, tools) {
|
|
1842
1842
|
registerCatalogTool(server, tools);
|
|
1843
1843
|
registerFindTool(server, tools);
|