@unbrained/pm-cli 2026.8.24 → 2026.8.26
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/.claude-plugin/marketplace.json +2 -2
- package/CHANGELOG.md +46 -0
- package/dist/cli-bundle/bundle-manifest.json +149 -149
- package/dist/cli-bundle/chunks/chunk-E2GCFJSU.js +35 -0
- package/dist/cli-bundle/chunks/{chunk-TEQDR5KI.js → chunk-ES25LX3D.js} +62 -62
- package/dist/cli-bundle/chunks/{chunk-I5Q7QSZX.js → chunk-FRDWWB6R.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-X7WWQDYQ.js → chunk-ICQ3RVIY.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-YOLLRCLY.js → chunk-IV64RJVE.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-L22NP5MA.js → chunk-KBFP3E4E.js} +86 -86
- package/dist/cli-bundle/chunks/{chunk-AGUL3HUT.js → chunk-MVYLQ67M.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-DJNJBWAQ.js → chunk-S4U76VZF.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-IW72J5FW.js → chunk-UKBCRPA2.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-WRHJ3MB6.js +8 -0
- package/dist/cli-bundle/chunks/{chunk-ZAVCS2GH.js → chunk-ZNRLJ54C.js} +60 -60
- package/dist/cli-bundle/chunks/{register-list-query-37A4P6O4.js → register-list-query-EMCPMICY.js} +2 -2
- package/dist/cli-bundle/chunks/{register-mutation-TBJDHYIT.js → register-mutation-OJ67ABCB.js} +3 -3
- package/dist/cli-bundle/chunks/{register-operations-WRZNEBUM.js → register-operations-H2GLP7LT.js} +2 -2
- package/dist/cli-bundle/chunks/{register-setup-H4PDLACD.js → register-setup-GLZAHLVI.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-IMWTYKII.js → chunk-4K2II4TV.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-4XNH2HM7.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-GJR6YEMR.js → chunk-57XY346D.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-4WP7LNE3.js → chunk-66VGB23P.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-72T6JGAE.js +50 -0
- package/dist/cli-bundle/focused-chunks/{chunk-BFA6KKCI.js → chunk-7I23XGWO.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-6Z24ZMU3.js → chunk-7YCDTCBC.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-O4ZXNJMT.js → chunk-A644DUFQ.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-FXDLT6FL.js +16 -0
- package/dist/cli-bundle/focused-chunks/{chunk-RASVBJX5.js → chunk-IBHXMFE7.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-LMKG3DFE.js +5 -0
- package/dist/cli-bundle/focused-chunks/{chunk-6MUTDXMP.js → chunk-LV5N3LK5.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-CWCN5RLO.js → chunk-MMXUPDDJ.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-WZLSSGEU.js → chunk-OHIHZ7HS.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-P2E6LDAE.js +19 -0
- package/dist/cli-bundle/focused-chunks/{chunk-IZNRRCU3.js → chunk-TMJDFHVD.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-QBP5FSBX.js → chunk-UYBA57GY.js} +4 -4
- package/dist/cli-bundle/focused-chunks/{chunk-MNPECIRL.js → chunk-YO3ZF3FI.js} +2 -2
- package/dist/cli-bundle/main.js +2 -2
- package/dist/cli-bundle/sdk-authoring.js +1 -1
- package/dist/cli-bundle/sdk-contracts.js +2 -2
- package/dist/cli-bundle/sdk-core.js +41 -41
- package/dist/cli-bundle/sdk-governance.js +1 -1
- package/dist/cli-bundle/sdk-graph.js +1 -1
- package/dist/cli-bundle/sdk-merge.js +32 -33
- package/dist/cli-bundle/sdk-query.js +1 -1
- package/dist/cli-bundle/sdk-runtime.js +1 -1
- package/dist/cli-bundle/sdk-testing.js +1 -1
- package/dist/cli-bundle/sdk.js +7 -6
- package/dist/core/diagnostics/remediation.js +17 -2
- package/dist/core/extensions/manifest-schema.d.ts +20 -0
- package/dist/core/extensions/manifest-schema.js +28 -10
- package/dist/mcp/http-server.d.ts +60 -0
- package/dist/mcp/http-server.js +451 -0
- package/dist/mcp/legacy-adapter.d.ts +50 -0
- package/dist/mcp/legacy-adapter.js +64 -0
- package/dist/mcp/server.d.ts +42 -9
- package/dist/mcp/server.js +457 -58
- package/dist/sdk/agent/refusal-closure-census.d.ts +6 -2
- package/dist/sdk/agent/refusal-closure-census.js +16 -8
- package/dist/sdk/cli-contracts/runtime-contracts.d.ts +10 -0
- package/dist/sdk/cli-contracts/runtime-contracts.js +20 -3
- package/dist/sdk/compose.d.ts +4 -1
- package/dist/sdk/compose.js +23 -36
- package/dist/sdk/extension/author-manifest.d.ts +22 -0
- package/dist/sdk/extension/author-manifest.js +93 -0
- package/dist/sdk/extension.js +6 -3
- package/dist/sdk/generated/generated-error-code-catalog-part-1.js +67 -28
- package/dist/sdk/generated/generated-error-code-catalog-part-2.js +30 -3
- package/dist/sdk/governance/health.js +103 -11
- package/dist/sdk/governance/validate.js +15 -9
- package/dist/sdk/history-repair.d.ts +24 -0
- package/dist/sdk/history-repair.js +145 -4
- package/dist/sdk/index.d.ts +6 -0
- package/dist/sdk/index.js +8 -2
- package/dist/sdk/mcp/authorization.d.ts +134 -0
- package/dist/sdk/mcp/authorization.js +405 -0
- package/dist/sdk/mcp/interactions.d.ts +118 -0
- package/dist/sdk/mcp/interactions.js +337 -0
- package/dist/sdk/mcp/protocol.d.ts +142 -0
- package/dist/sdk/mcp/protocol.js +174 -0
- package/dist/sdk/mcp/subscriptions.d.ts +65 -0
- package/dist/sdk/mcp/subscriptions.js +212 -0
- package/dist/sdk/mcp/tasks.d.ts +107 -0
- package/dist/sdk/mcp/tasks.js +431 -0
- package/dist/sdk/mcp/transport.d.ts +30 -0
- package/dist/sdk/mcp/transport.js +261 -0
- package/dist/sdk/merge/driver.js +25 -4
- package/dist/sdk/merge/receipt-file-boundary.d.ts +21 -0
- package/dist/sdk/merge/receipt-file-boundary.js +47 -0
- package/dist/sdk/merge/receipts.d.ts +40 -1
- package/dist/sdk/merge/receipts.js +343 -36
- package/dist/sdk/merge/reconcile.js +117 -47
- package/dist/sdk/read-output/continuation.d.ts +15 -2
- package/dist/sdk/read-output/continuation.js +86 -6
- package/dist/sdk/read-output-contracts.d.ts +4 -1
- package/dist/sdk/read-output-contracts.js +9 -6
- package/dist/sdk/runtime-primitives.d.ts +1 -1
- package/dist/sdk/runtime-primitives.js +3 -3
- package/dist/sdk/test/execution.d.ts +6 -0
- package/dist/sdk/test/execution.js +32 -3
- package/docs/AGENT_PROVENANCE_ADR.md +6 -4
- package/docs/AGENT_RUNTIME_PRIMITIVES.md +6 -5
- package/docs/CLAUDE_CODE_PLUGIN.md +12 -5
- package/docs/DIAGNOSTIC_OUTPUT_CONTRACTS.md +8 -0
- package/docs/EXTENSIONS.md +3 -4
- package/docs/MCP_2026_07_28.md +138 -0
- package/docs/MCP_2026_07_28_CONFORMANCE.md +30 -0
- package/docs/MCP_REMOTE_TRANSPORT_SECURITY.md +180 -0
- package/docs/MERGE_SAFETY.md +34 -5
- package/docs/OUTPUT_PROJECTION_CONTRACTS.md +13 -1
- package/docs/README.md +4 -0
- package/docs/READ_OUTPUT_CONTRACTS.md +25 -2
- package/docs/RELEASING.md +3 -2
- package/docs/SDK.md +22 -1
- package/docs/SDK_AGENT_SESSION_CONTEXT.md +18 -13
- package/docs/SDK_MCP_INTERACTIONS.md +227 -0
- package/docs/TESTING.md +4 -0
- package/docs/generated/REFUSAL_CLOSURE_CENSUS.md +13 -8
- package/marketplace.json +2 -2
- package/package.json +7 -5
- package/packages/pm-beads/package.json +1 -1
- package/packages/pm-calendar/package.json +1 -1
- package/packages/pm-command-kit/package.json +1 -1
- package/packages/pm-digital-twin/package.json +1 -1
- package/packages/pm-governance-audit/package.json +1 -1
- package/packages/pm-guide-shell/package.json +1 -1
- package/packages/pm-kanban/package.json +1 -1
- package/packages/pm-lifecycle-hooks/package.json +1 -1
- package/packages/pm-linked-test-adapters/package.json +1 -1
- package/packages/pm-search-advanced/package.json +1 -1
- package/packages/pm-templates/package.json +1 -1
- package/packages/pm-todos/package.json +1 -1
- package/packages/pm-vcs/package.json +1 -1
- package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
- package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
- package/scripts/finalize-build.mjs +1 -0
- package/sdk/public-surface.json +762 -15
- package/dist/cli-bundle/chunks/chunk-MKE6MD2K.js +0 -36
- package/dist/cli-bundle/chunks/chunk-NXBFO63A.js +0 -8
- package/dist/cli-bundle/focused-chunks/chunk-FCTT4CZU.js +0 -5
- package/dist/cli-bundle/focused-chunks/chunk-Q63PSLO4.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-QV5UP27O.js +0 -51
- package/dist/cli-bundle/focused-chunks/chunk-RPRLENVA.js +0 -16
- package/dist/cli-bundle/focused-chunks/chunk-TOFVXBWA.js +0 -19
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module mcp/legacy-adapter
|
|
3
|
+
*
|
|
4
|
+
* Isolates the bounded MCP 2025-06-18 stdio compatibility surface from the
|
|
5
|
+
* canonical stateless dispatcher. No modern transport imports policy from it.
|
|
6
|
+
*/
|
|
7
|
+
import { type AgentClientInfo } from "../sdk/runtime-primitives.js";
|
|
8
|
+
import { type PmMcpImplementation, type PmMcpServerCapabilities } from "../sdk/mcp/protocol.js";
|
|
9
|
+
/** Minimal request shape consumed by the compatibility adapter. */
|
|
10
|
+
export interface LegacyMcpRequest {
|
|
11
|
+
/** Legacy method name. */
|
|
12
|
+
method?: string;
|
|
13
|
+
/** Legacy method parameters. */
|
|
14
|
+
params?: Record<string, unknown>;
|
|
15
|
+
}
|
|
16
|
+
/** Host callbacks keep this adapter separate from canonical SDK policy. */
|
|
17
|
+
export interface LegacyMcpAdapterOptions {
|
|
18
|
+
/** Immutable server identity. */
|
|
19
|
+
serverInfo: PmMcpImplementation;
|
|
20
|
+
/** Compatibility-era capabilities. */
|
|
21
|
+
capabilities: PmMcpServerCapabilities;
|
|
22
|
+
/** Model-facing usage instructions. */
|
|
23
|
+
instructions: string;
|
|
24
|
+
/** Parse bounded historical client identity. */
|
|
25
|
+
parseClientInfo: (value: unknown) => AgentClientInfo | undefined;
|
|
26
|
+
/** Resolve legacy tool definitions. */
|
|
27
|
+
listTools: (params: Record<string, unknown> | undefined) => Promise<Record<string, unknown>>;
|
|
28
|
+
/** Execute one legacy tool call. */
|
|
29
|
+
callTool: (params: Record<string, unknown> | undefined, clientInfo: AgentClientInfo | undefined) => Promise<Record<string, unknown>>;
|
|
30
|
+
/** List legacy resources. */
|
|
31
|
+
listResources: () => Record<string, unknown>;
|
|
32
|
+
/** Read one legacy resource. */
|
|
33
|
+
readResource: (params: Record<string, unknown> | undefined) => Promise<Record<string, unknown>>;
|
|
34
|
+
/** List legacy prompts. */
|
|
35
|
+
listPrompts: () => Record<string, unknown>;
|
|
36
|
+
/** Render one legacy prompt. */
|
|
37
|
+
getPrompt: (params: Record<string, unknown> | undefined) => Record<string, unknown>;
|
|
38
|
+
}
|
|
39
|
+
/** Explicit compatibility adapter with no cross-process or modern-session role. */
|
|
40
|
+
export declare class LegacyMcpAdapter {
|
|
41
|
+
#private;
|
|
42
|
+
/** Create one process-local legacy stdio adapter. */
|
|
43
|
+
constructor(options: LegacyMcpAdapterOptions);
|
|
44
|
+
/** Read the bounded identity most recently supplied to legacy initialize. */
|
|
45
|
+
getClientInfo(): AgentClientInfo | undefined;
|
|
46
|
+
/** Validate and answer the historical initialize handshake. */
|
|
47
|
+
initialize(params: Record<string, unknown> | undefined): Record<string, unknown>;
|
|
48
|
+
/** Dispatch one unversioned request through the finite legacy method set. */
|
|
49
|
+
dispatch(request: LegacyMcpRequest): Promise<Record<string, unknown>>;
|
|
50
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module mcp/legacy-adapter
|
|
3
|
+
*
|
|
4
|
+
* Isolates the bounded MCP 2025-06-18 stdio compatibility surface from the
|
|
5
|
+
* canonical stateless dispatcher. No modern transport imports policy from it.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6a1d9bca-7dac-5537-9930-a12d8049c8b8")}catch(e){}}();
|
|
9
|
+
import { PmCliError } from "../sdk/runtime-primitives.js";
|
|
10
|
+
import { PM_MCP_ERROR_CODES, PM_MCP_LEGACY_PROTOCOL_VERSIONS, PM_MCP_PROTOCOL_VERSION, PmMcpProtocolError, } from "../sdk/mcp/protocol.js";
|
|
11
|
+
/** Explicit compatibility adapter with no cross-process or modern-session role. */
|
|
12
|
+
export class LegacyMcpAdapter {
|
|
13
|
+
#options;
|
|
14
|
+
#clientInfo;
|
|
15
|
+
/** Create one process-local legacy stdio adapter. */
|
|
16
|
+
constructor(options) {
|
|
17
|
+
this.#options = options;
|
|
18
|
+
}
|
|
19
|
+
/** Read the bounded identity most recently supplied to legacy initialize. */
|
|
20
|
+
getClientInfo() {
|
|
21
|
+
return this.#clientInfo ? structuredClone(this.#clientInfo) : undefined;
|
|
22
|
+
}
|
|
23
|
+
/** Validate and answer the historical initialize handshake. */
|
|
24
|
+
initialize(params) {
|
|
25
|
+
const requestedVersion = params?.protocolVersion;
|
|
26
|
+
if (typeof requestedVersion === "string" &&
|
|
27
|
+
!PM_MCP_LEGACY_PROTOCOL_VERSIONS.includes(requestedVersion)) {
|
|
28
|
+
throw new PmMcpProtocolError("Unsupported legacy MCP protocol version", PM_MCP_ERROR_CODES.unsupportedProtocolVersion, {
|
|
29
|
+
supported: [...PM_MCP_LEGACY_PROTOCOL_VERSIONS],
|
|
30
|
+
requested: requestedVersion,
|
|
31
|
+
modern: PM_MCP_PROTOCOL_VERSION,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
this.#clientInfo = this.#options.parseClientInfo(params?.clientInfo);
|
|
35
|
+
return {
|
|
36
|
+
protocolVersion: PM_MCP_LEGACY_PROTOCOL_VERSIONS[0],
|
|
37
|
+
capabilities: structuredClone(this.#options.capabilities),
|
|
38
|
+
serverInfo: { ...this.#options.serverInfo },
|
|
39
|
+
instructions: this.#options.instructions,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
/** Dispatch one unversioned request through the finite legacy method set. */
|
|
43
|
+
async dispatch(request) {
|
|
44
|
+
if (request.method === "ping")
|
|
45
|
+
return {};
|
|
46
|
+
if (request.method === "tools/list")
|
|
47
|
+
return this.#options.listTools(request.params);
|
|
48
|
+
if (request.method === "tools/call") {
|
|
49
|
+
return this.#options.callTool(request.params, this.#clientInfo);
|
|
50
|
+
}
|
|
51
|
+
if (request.method === "resources/list")
|
|
52
|
+
return this.#options.listResources();
|
|
53
|
+
if (request.method === "resources/read") {
|
|
54
|
+
return this.#options.readResource(request.params);
|
|
55
|
+
}
|
|
56
|
+
if (request.method === "prompts/list")
|
|
57
|
+
return this.#options.listPrompts();
|
|
58
|
+
if (request.method === "prompts/get")
|
|
59
|
+
return this.#options.getPrompt(request.params);
|
|
60
|
+
throw new PmCliError(`Unsupported MCP method: ${request.method ?? "(missing)"}`, 64);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=legacy-adapter.js.map
|
|
64
|
+
//# debugId=6a1d9bca-7dac-5537-9930-a12d8049c8b8
|
package/dist/mcp/server.d.ts
CHANGED
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { type AgentClientInfo } from "../sdk/runtime-primitives.js";
|
|
2
3
|
import { readRequiredString, type PmActionInput } from "../sdk/runtime.js";
|
|
3
|
-
|
|
4
|
+
import { PmMcpProtocolError, resolveMcpRequestContext, type PmMcpRequestContext } from "../sdk/mcp/protocol.js";
|
|
5
|
+
import { PmMcpInputRequiredError } from "../sdk/mcp/interactions.js";
|
|
6
|
+
import { type PmMcpSubscriptionId, type PmMcpSubscriptionSink } from "../sdk/mcp/subscriptions.js";
|
|
7
|
+
/** JSON-RPC request shape accepted by pm MCP transport adapters. */
|
|
8
|
+
export interface JsonRpcRequest {
|
|
9
|
+
/** JSON-RPC revision marker when supplied by the transport. */
|
|
4
10
|
jsonrpc?: string;
|
|
11
|
+
/** Correlation identifier omitted only for notifications. */
|
|
5
12
|
id?: string | number | null;
|
|
13
|
+
/** Protocol operation selected by the caller. */
|
|
6
14
|
method?: string;
|
|
15
|
+
/** Operation inputs including request-local MCP metadata. */
|
|
7
16
|
params?: Record<string, unknown>;
|
|
8
17
|
}
|
|
9
18
|
declare function runMcpAction(args: PmActionInput): Promise<unknown>;
|
|
19
|
+
type PmMcpTransportSubscriptionKey = PmMcpSubscriptionId | symbol;
|
|
10
20
|
declare function nearestDeclaredKey(unexpected: string, declared: string[]): string | undefined;
|
|
11
21
|
declare function detectUnexpectedTopLevelKeys(toolName: string, args: Record<string, unknown>, toolDeclaredKeys?: Map<string, string[]>): string[];
|
|
12
22
|
declare function collectMutationGuardWarnings(toolName: string, action: string | undefined, args: Record<string, unknown>): Promise<string[]>;
|
|
@@ -15,6 +25,26 @@ declare function resultContent(result: unknown, warnings?: string[], tokenAccoun
|
|
|
15
25
|
declare function errorContent(error: unknown): Record<string, unknown>;
|
|
16
26
|
/** Retain at most 32 own, valid provenance values without cloning unbounded input. */
|
|
17
27
|
declare function boundMcpClientProvenance(value: unknown): Record<string, string>;
|
|
28
|
+
declare function emitMcpChangeNotifications(action: string | undefined): Promise<void>;
|
|
29
|
+
/** Open one modern subscription through a concrete transport-owned sink. */
|
|
30
|
+
export declare function openMcpSubscription(input: {
|
|
31
|
+
request: JsonRpcRequest;
|
|
32
|
+
key?: PmMcpTransportSubscriptionKey;
|
|
33
|
+
sink: PmMcpSubscriptionSink;
|
|
34
|
+
}): Promise<void>;
|
|
35
|
+
/** Gracefully close one active subscription by its request identifier. */
|
|
36
|
+
export declare function closeMcpSubscription(id: PmMcpSubscriptionId, key?: PmMcpTransportSubscriptionKey): Record<string, unknown> | undefined;
|
|
37
|
+
declare function closeStdioMcpSubscriptions(): Array<{
|
|
38
|
+
id: PmMcpSubscriptionId;
|
|
39
|
+
result: Record<string, unknown>;
|
|
40
|
+
}>;
|
|
41
|
+
/** Resolve the current workspace-enriched tool schema for HTTP header checks. */
|
|
42
|
+
export declare function resolveMcpToolSchemaForRequest(request: JsonRpcRequest): Promise<unknown>;
|
|
43
|
+
/** Preserve MCP tool-result error semantics for non-protocol adapter failures. */
|
|
44
|
+
export declare function buildMcpToolCallErrorResult(request: JsonRpcRequest, error: unknown): Record<string, unknown> | undefined;
|
|
45
|
+
declare function mcpTaskPrincipal(requestContext: PmMcpRequestContext): string;
|
|
46
|
+
declare function shouldCreateMcpTask(params: Record<string, unknown> | undefined, requestContext: PmMcpRequestContext): boolean;
|
|
47
|
+
declare function settleMcpTaskExecution(taskId: string, execution: Promise<void>): Promise<void>;
|
|
18
48
|
/** Dispatch one MCP request under supported process-level reproducibility settings. */
|
|
19
49
|
export declare function handleRequest(request: JsonRpcRequest): Promise<Record<string, unknown> | undefined>;
|
|
20
50
|
declare function writeError(id: JsonRpcRequest["id"], error: unknown): void;
|
|
@@ -27,24 +57,27 @@ export declare function isInvokedAsMcpMainModule(argvPath: string | undefined, m
|
|
|
27
57
|
/** Public contract for test only, shared by SDK and presentation-layer consumers. */
|
|
28
58
|
export declare const _testOnly: {
|
|
29
59
|
boundMcpClientProvenance: typeof boundMcpClientProvenance;
|
|
60
|
+
createMcpInputRequiredError: (input: ConstructorParameters<typeof PmMcpInputRequiredError>[0]) => PmMcpInputRequiredError;
|
|
61
|
+
createMcpProtocolError: (message: string, code: number, data?: Record<string, unknown> | undefined) => PmMcpProtocolError;
|
|
30
62
|
readonly closeManyOptionsFromFlat: typeof import("../sdk/runtime-input.js").closeManyOptionsFromFlat;
|
|
31
63
|
detectUnexpectedOptionKeys: typeof detectUnexpectedOptionKeys;
|
|
32
64
|
detectUnexpectedTopLevelKeys: typeof detectUnexpectedTopLevelKeys;
|
|
33
65
|
collectMutationGuardWarnings: typeof collectMutationGuardWarnings;
|
|
66
|
+
closeStdioMcpSubscriptions: typeof closeStdioMcpSubscriptions;
|
|
34
67
|
errorContent: typeof errorContent;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
model?: string;
|
|
39
|
-
session?: string;
|
|
40
|
-
provenance?: Readonly<Record<string, string | undefined>>;
|
|
41
|
-
episode?: import("../sdk/runtime-primitives.js").AgentEpisodeIdentity;
|
|
42
|
-
} | undefined;
|
|
68
|
+
emitMcpChangeNotifications: typeof emitMcpChangeNotifications;
|
|
69
|
+
expireMcpSubscriptionRecord: (id: PmMcpSubscriptionId, key?: PmMcpTransportSubscriptionKey) => Record<string, unknown> | undefined;
|
|
70
|
+
getMcpClientInfo: () => AgentClientInfo | undefined;
|
|
43
71
|
readonly extensionOptionsFromArgs: typeof import("../sdk/runtime-input.js").extensionOptionsFromArgs;
|
|
44
72
|
readonly globalOptions: typeof import("../sdk/runtime-input.js").actionGlobalOptions;
|
|
45
73
|
readonly mutationListOptions: typeof import("../sdk/runtime-input.js").mutationListOptions;
|
|
46
74
|
nearestDeclaredKey: typeof nearestDeclaredKey;
|
|
75
|
+
mcpTaskPrincipal: typeof mcpTaskPrincipal;
|
|
47
76
|
resultContent: typeof resultContent;
|
|
77
|
+
resolveMcpRequestContext: typeof resolveMcpRequestContext;
|
|
78
|
+
shouldCreateMcpTask: typeof shouldCreateMcpTask;
|
|
79
|
+
settleMcpTaskExecution: typeof settleMcpTaskExecution;
|
|
80
|
+
subscriptionCount: () => number;
|
|
48
81
|
readonly normalizeActionName: typeof import("../sdk/runtime-input.js").normalizeActionName;
|
|
49
82
|
readonly normalizeCommandPath: typeof import("../sdk/runtime-input.js").normalizeCommandPath;
|
|
50
83
|
readonly normalizeMcpOptionsArrays: typeof import("../sdk/runtime-input.js").normalizeMcpOptionsArrays;
|