dsh-windows-parallel-mcp 0.2.0 → 0.3.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/CHANGELOG.de.md +374 -0
- package/CHANGELOG.es.md +374 -0
- package/CHANGELOG.fr.md +374 -0
- package/CHANGELOG.it.md +374 -0
- package/CHANGELOG.ja.md +374 -0
- package/CHANGELOG.ko.md +374 -0
- package/CHANGELOG.md +30 -3
- package/CHANGELOG.pt.md +374 -0
- package/CHANGELOG.ru.md +374 -0
- package/CHANGELOG.zh.md +374 -0
- package/INSTALL.de.md +126 -0
- package/INSTALL.es.md +126 -0
- package/INSTALL.fr.md +126 -0
- package/INSTALL.it.md +126 -0
- package/INSTALL.ja.md +126 -0
- package/INSTALL.ko.md +126 -0
- package/INSTALL.md +49 -11
- package/INSTALL.pt.md +126 -0
- package/INSTALL.ru.md +126 -0
- package/INSTALL.zh.md +126 -0
- package/README.de.md +275 -0
- package/README.es.md +275 -0
- package/README.fr.md +275 -0
- package/README.it.md +275 -0
- package/README.ja.md +275 -0
- package/README.ko.md +275 -0
- package/README.md +1 -0
- package/README.pt.md +275 -0
- package/README.ru.md +275 -0
- package/README.zh.md +275 -0
- package/package.json +32 -3
- package/types/index.d.ts +68 -0
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// Type declarations for dsh-windows-parallel-mcp (public API surface).
|
|
2
|
+
// Mirrors lib/index.js + lib/host-tools.js + src/schema/tools.json (v0.2.0).
|
|
3
|
+
|
|
4
|
+
export type WpmAction = 'windows' | 'click' | 'type' | 'focus' | 'status';
|
|
5
|
+
|
|
6
|
+
export type RefusalCode =
|
|
7
|
+
| 'no_hwnd' | 'paused' | 'elevated_target' | 'unreachable'
|
|
8
|
+
| 'uia_tree_empty' | 'uia_probe_failed' | 'terminal_no_door' | 'needs_facts'
|
|
9
|
+
| 'takeover_unavailable' | 'keyinject_unavailable' | 'action_failed'
|
|
10
|
+
| 'restore_failed' | 'takeover_aborted';
|
|
11
|
+
|
|
12
|
+
export type KeyInputMode = 'none' | 'inject';
|
|
13
|
+
|
|
14
|
+
export interface WpmWindow {
|
|
15
|
+
hwnd: string; title: string; class: string; pid: number;
|
|
16
|
+
rect: { left: number; top: number; right: number; bottom: number };
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface WpmArgs {
|
|
20
|
+
action: WpmAction;
|
|
21
|
+
hwnd?: string;
|
|
22
|
+
x?: number;
|
|
23
|
+
y?: number;
|
|
24
|
+
text?: string;
|
|
25
|
+
elementName?: string;
|
|
26
|
+
replace?: boolean;
|
|
27
|
+
settleMs?: number;
|
|
28
|
+
takeover?: boolean;
|
|
29
|
+
takeoverMaxMs?: number;
|
|
30
|
+
keyInput?: KeyInputMode;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface WpmResult {
|
|
34
|
+
text?: string;
|
|
35
|
+
refusal?: RefusalCode;
|
|
36
|
+
channel?: string;
|
|
37
|
+
tier?: string;
|
|
38
|
+
effect?: string;
|
|
39
|
+
proof?: 'pass' | 'fail' | 'inconclusive';
|
|
40
|
+
focusTaken?: boolean;
|
|
41
|
+
takeover?: 'on' | 'off';
|
|
42
|
+
cursorMoved?: boolean;
|
|
43
|
+
cursorRestored?: boolean;
|
|
44
|
+
takeoverMs?: number;
|
|
45
|
+
abortChord?: string;
|
|
46
|
+
keysInjected?: boolean;
|
|
47
|
+
injectedChars?: number;
|
|
48
|
+
[key: string]: unknown;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface WpmExec { signal?: AbortSignal; [key: string]: unknown; }
|
|
52
|
+
|
|
53
|
+
export interface WpmTool { execute(args: WpmArgs, exec?: WpmExec): Promise<WpmResult>; }
|
|
54
|
+
|
|
55
|
+
export const name: 'windows-parallel';
|
|
56
|
+
export const inject: readonly ['tools'];
|
|
57
|
+
export const Config: unknown;
|
|
58
|
+
export const configSource: string;
|
|
59
|
+
export const toolHelperSource: string;
|
|
60
|
+
export function apply(ctx: Record<string, unknown>, config?: Record<string, unknown>): void;
|
|
61
|
+
|
|
62
|
+
export const TOOL_NAME: 'wpm';
|
|
63
|
+
export const ACTIONS: readonly WpmAction[];
|
|
64
|
+
export const PARAMETERS: Record<string, { type: string; enum?: readonly string[]; required?: boolean; description: string }>;
|
|
65
|
+
export function parametersToJsonSchema(spec?: Record<string, unknown>): Record<string, unknown>;
|
|
66
|
+
export function validateArguments(schema: Record<string, unknown>, args: WpmArgs): boolean | string;
|
|
67
|
+
export function localDefineTool(options: Record<string, unknown>): WpmTool;
|
|
68
|
+
export function resolveDefineTool(): Promise<{ defineTool: (o: Record<string, unknown>) => WpmTool; source: string }>;
|