@parall/cli 1.20.0 → 1.20.2
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../src/commands/mcp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmBpC,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../src/commands/mcp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmBpC,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,QA8bnD"}
|
package/dist/commands/mcp.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
2
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
3
3
|
import * as z from 'zod/v4';
|
|
4
|
-
import { resolveCredentials } from '../lib/client.js';
|
|
4
|
+
import { resolveCredentials, resolveRuntimeContext } from '../lib/client.js';
|
|
5
5
|
import { getWikiBlob, getWikiChangesetDiff, getWikiOutline, queryWiki, getWikiSection, getWikiTree, getWikiWorkspaceDiff, getWikiWorkspaceStatus, listWikis, proposeWikiChangeset, searchWiki, } from '../lib/wiki.js';
|
|
6
6
|
export function registerMcpCommands(program) {
|
|
7
7
|
program
|
|
@@ -419,13 +419,14 @@ export function registerMcpCommands(program) {
|
|
|
419
419
|
}).passthrough(),
|
|
420
420
|
},
|
|
421
421
|
}, async ({ wiki, title, message, changeset_id: changesetId, source_chat_id: sourceChatId, source_message_id: sourceMessageId, source_run_id: sourceRunId }) => {
|
|
422
|
+
const runtime = resolveRuntimeContext();
|
|
422
423
|
const result = await proposeWikiChangeset(ctx, wiki, {
|
|
423
424
|
title,
|
|
424
425
|
message,
|
|
425
426
|
changesetId,
|
|
426
|
-
sourceChatId,
|
|
427
|
-
sourceMessageId,
|
|
428
|
-
sourceRunId,
|
|
427
|
+
sourceChatId: sourceChatId ?? runtime.chatId,
|
|
428
|
+
sourceMessageId: sourceMessageId ?? runtime.triggerMessageId,
|
|
429
|
+
sourceRunId: sourceRunId ?? runtime.sessionId,
|
|
429
430
|
});
|
|
430
431
|
return {
|
|
431
432
|
content: [{ type: 'text', text: JSON.stringify(result, null, 2) }],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parall/cli",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.2",
|
|
4
4
|
"description": "CLI client for Parall — universal agent & human access to Parall API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@modelcontextprotocol/sdk": "1.27.1",
|
|
31
31
|
"commander": "^13.0.0",
|
|
32
32
|
"zod": "^4.3.6",
|
|
33
|
-
"@parall/sdk": "1.20.
|
|
33
|
+
"@parall/sdk": "1.20.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^22.0.0",
|