@remnux/mcp-server 0.1.4 → 0.1.8
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 +30 -29
- package/dist/cli.js +10 -8
- package/dist/cli.js.map +1 -1
- package/dist/errors/error-mapper.d.ts +1 -1
- package/dist/errors/error-mapper.d.ts.map +1 -1
- package/dist/errors/error-mapper.js +5 -2
- package/dist/errors/error-mapper.js.map +1 -1
- package/dist/file-upload.d.ts +1 -1
- package/dist/file-upload.d.ts.map +1 -1
- package/dist/file-upload.js +9 -5
- package/dist/file-upload.js.map +1 -1
- package/dist/handlers/analyze-file.js +2 -2
- package/dist/handlers/analyze-file.js.map +1 -1
- package/dist/handlers/get-file-info.js +3 -3
- package/dist/handlers/get-file-info.js.map +1 -1
- package/dist/handlers/run-tool.d.ts.map +1 -1
- package/dist/handlers/run-tool.js +3 -2
- package/dist/handlers/run-tool.js.map +1 -1
- package/dist/handlers/suggest-tools.js +2 -2
- package/dist/handlers/suggest-tools.js.map +1 -1
- package/dist/handlers/upload-file.d.ts.map +1 -1
- package/dist/handlers/upload-file.js +2 -2
- package/dist/handlers/upload-file.js.map +1 -1
- package/dist/handlers/upload-from-host.d.ts.map +1 -1
- package/dist/handlers/upload-from-host.js +2 -2
- package/dist/handlers/upload-from-host.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +24 -7
- package/dist/index.js.map +1 -1
- package/dist/schemas/tools.js +4 -4
- package/dist/schemas/tools.js.map +1 -1
- package/package.json +1 -1
- package/dist/handlers/upload-sample.d.ts +0 -10
- package/dist/handlers/upload-sample.d.ts.map +0 -1
- package/dist/handlers/upload-sample.js +0 -26
- package/dist/handlers/upload-sample.js.map +0 -1
- package/dist/workflows/engine.d.ts +0 -27
- package/dist/workflows/engine.d.ts.map +0 -1
- package/dist/workflows/engine.js +0 -224
- package/dist/workflows/engine.js.map +0 -1
- package/dist/workflows/loader.d.ts +0 -33
- package/dist/workflows/loader.d.ts.map +0 -1
- package/dist/workflows/loader.js +0 -130
- package/dist/workflows/loader.js.map +0 -1
- package/dist/workflows/types.d.ts +0 -109
- package/dist/workflows/types.d.ts.map +0 -1
- package/dist/workflows/types.js +0 -5
- package/dist/workflows/types.js.map +0 -1
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Workflow definition types for declarative analysis workflows.
|
|
3
|
-
*/
|
|
4
|
-
import type { DepthTier } from "../file-type-mappings.js";
|
|
5
|
-
/** What to do when a step fails. */
|
|
6
|
-
export type OnError = "continue" | "abort" | "retry";
|
|
7
|
-
/** A condition expression evaluated against previous step results. */
|
|
8
|
-
export interface StepCondition {
|
|
9
|
-
/** Simple expression: "depth in ['standard', 'deep']" or "pdfid.js_count > 0" */
|
|
10
|
-
expr: string;
|
|
11
|
-
}
|
|
12
|
-
/** A single step in a workflow. */
|
|
13
|
-
export interface WorkflowStep {
|
|
14
|
-
/** Step identifier (unique within workflow) */
|
|
15
|
-
name: string;
|
|
16
|
-
/** Tool name (must exist in tool registry or file-type-mappings) */
|
|
17
|
-
tool: string;
|
|
18
|
-
/** Arguments passed to the tool (supports {input_file} and {step_name.field} interpolation) */
|
|
19
|
-
args?: string[];
|
|
20
|
-
/** Condition that must be true for this step to run */
|
|
21
|
-
condition?: string;
|
|
22
|
-
/** Error handling behavior (default: "continue") */
|
|
23
|
-
on_error?: OnError;
|
|
24
|
-
/** Per-step timeout in seconds (overrides tool default) */
|
|
25
|
-
timeout?: number;
|
|
26
|
-
/** Minimum depth tier for this step (default: "standard") */
|
|
27
|
-
depth?: DepthTier;
|
|
28
|
-
/** Max retry attempts when on_error is "retry" (default: 2) */
|
|
29
|
-
retries?: number;
|
|
30
|
-
/** Delay between retries in seconds (default: 1) */
|
|
31
|
-
retry_delay?: number;
|
|
32
|
-
}
|
|
33
|
-
/** Workflow trigger — when this workflow should be selected. */
|
|
34
|
-
export interface WorkflowTrigger {
|
|
35
|
-
/** MIME types or file extensions that trigger this workflow */
|
|
36
|
-
file_types: string[];
|
|
37
|
-
/** Category names from file-type-mappings (e.g., "PE", "PDF") */
|
|
38
|
-
categories?: string[];
|
|
39
|
-
}
|
|
40
|
-
/** Workflow parameter definition. */
|
|
41
|
-
export interface WorkflowParameter {
|
|
42
|
-
type: "enum" | "boolean" | "string" | "number";
|
|
43
|
-
values?: string[];
|
|
44
|
-
default?: unknown;
|
|
45
|
-
description?: string;
|
|
46
|
-
}
|
|
47
|
-
/** Output section definition. */
|
|
48
|
-
export interface OutputSection {
|
|
49
|
-
name: string;
|
|
50
|
-
fields?: string[];
|
|
51
|
-
source?: string;
|
|
52
|
-
}
|
|
53
|
-
/** Complete workflow definition (maps to YAML structure). */
|
|
54
|
-
export interface WorkflowDefinition {
|
|
55
|
-
/** Workflow identifier */
|
|
56
|
-
name: string;
|
|
57
|
-
/** Human-readable description */
|
|
58
|
-
description: string;
|
|
59
|
-
/** Semantic version */
|
|
60
|
-
version: string;
|
|
61
|
-
/** Author / contributor */
|
|
62
|
-
author?: string;
|
|
63
|
-
/** When to select this workflow */
|
|
64
|
-
triggers: WorkflowTrigger;
|
|
65
|
-
/** Configurable parameters */
|
|
66
|
-
parameters?: Record<string, WorkflowParameter>;
|
|
67
|
-
/** Ordered list of analysis steps */
|
|
68
|
-
steps: WorkflowStep[];
|
|
69
|
-
/** Output format specification */
|
|
70
|
-
output?: {
|
|
71
|
-
format: "json" | "text";
|
|
72
|
-
sections?: OutputSection[];
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
/** Result of executing a single workflow step. */
|
|
76
|
-
export interface StepResult {
|
|
77
|
-
/** Step name */
|
|
78
|
-
name: string;
|
|
79
|
-
/** Tool that was run */
|
|
80
|
-
tool: string;
|
|
81
|
-
/** Whether the step succeeded */
|
|
82
|
-
success: boolean;
|
|
83
|
-
/** Raw output from the tool */
|
|
84
|
-
output?: string;
|
|
85
|
-
/** Exit code from the tool */
|
|
86
|
-
exitCode?: number;
|
|
87
|
-
/** Error message if failed */
|
|
88
|
-
error?: string;
|
|
89
|
-
/** Full command string that was executed */
|
|
90
|
-
command?: string;
|
|
91
|
-
/** Whether the step was skipped (condition not met) */
|
|
92
|
-
skipped?: boolean;
|
|
93
|
-
/** Number of retries that were attempted */
|
|
94
|
-
retries?: number;
|
|
95
|
-
/** Elapsed time in ms */
|
|
96
|
-
elapsed_ms: number;
|
|
97
|
-
}
|
|
98
|
-
/** Result of executing a complete workflow. */
|
|
99
|
-
export interface WorkflowResult {
|
|
100
|
-
/** Workflow name */
|
|
101
|
-
workflow: string;
|
|
102
|
-
/** Overall success (all non-skipped steps succeeded or continued) */
|
|
103
|
-
success: boolean;
|
|
104
|
-
/** Results for each step */
|
|
105
|
-
steps: StepResult[];
|
|
106
|
-
/** Total elapsed time in ms */
|
|
107
|
-
elapsed_ms: number;
|
|
108
|
-
}
|
|
109
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/workflows/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAE1D,oCAAoC;AACpC,MAAM,MAAM,OAAO,GAAG,UAAU,GAAG,OAAO,GAAG,OAAO,CAAC;AAErD,sEAAsE;AACtE,MAAM,WAAW,aAAa;IAC5B,iFAAiF;IACjF,IAAI,EAAE,MAAM,CAAC;CACd;AAED,mCAAmC;AACnC,MAAM,WAAW,YAAY;IAC3B,+CAA+C;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,oEAAoE;IACpE,IAAI,EAAE,MAAM,CAAC;IACb,+FAA+F;IAC/F,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,MA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AC;KAC5B,CAAC;CACH;AAED,kDAAkD;AAClD,MAAM,WAAW,UAAU;IACzB,gBAAgB;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,wBAAwB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,+BAA+B;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uDAAuD;IACvD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,4CAA4C;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,yBAAyB;IACzB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,+CAA+C;AAC/C,MAAM,WAAW,cAAc;IAC7B,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,qEAAqE;IACrE,OAAO,EAAE,OAAO,CAAC;IACjB,4BAA4B;IAC5B,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,+BAA+B;IAC/B,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
package/dist/workflows/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/workflows/types.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|