@ever-works/hermes-agent-plugin 1.0.0 → 1.0.5
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/dist/index.cjs +4096 -0
- package/dist/index.d.cts +52 -0
- package/dist/index.d.ts +52 -0
- package/dist/index.js +4057 -0
- package/package.json +79 -69
- package/LICENSE +0 -661
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { IPlugin, IPipelinePlugin, IFormSchemaProvider, PluginCategory, JsonSchema, PluginContext, PluginHealthCheck, PluginManifest, ValidationResult, ConnectionValidationResult, FormFieldDefinition, FormFieldGroup, PipelineStepDefinition, WorkReference, GenerationRequest, ExistingItems, PipelineExecutionOptions, PipelineProgressCallback, PipelineResult, PipelineState } from '@ever-works/plugin';
|
|
2
|
+
|
|
3
|
+
type HermesAgentStepId = 'setup-hermes' | 'prepare-context' | 'generate-items' | 'collect-results' | 'capture-screenshots' | 'cleanup';
|
|
4
|
+
declare const HERMES_AGENT_STEP_IDS: readonly HermesAgentStepId[];
|
|
5
|
+
declare function isHermesAgentStepId(value: string): value is HermesAgentStepId;
|
|
6
|
+
|
|
7
|
+
declare class HermesAgentPlugin implements IPlugin, IPipelinePlugin, IFormSchemaProvider {
|
|
8
|
+
readonly id = "hermes-agent";
|
|
9
|
+
readonly name = "Hermes Agent";
|
|
10
|
+
readonly version = "1.0.0";
|
|
11
|
+
readonly category: PluginCategory;
|
|
12
|
+
readonly capabilities: readonly ["pipeline", "form-schema-provider"];
|
|
13
|
+
readonly configurationMode: "user-required";
|
|
14
|
+
readonly handledConfigFields: readonly ["*"];
|
|
15
|
+
readonly settingsSchema: JsonSchema;
|
|
16
|
+
private context;
|
|
17
|
+
private state;
|
|
18
|
+
private abortController;
|
|
19
|
+
private killProcess;
|
|
20
|
+
onLoad(context: PluginContext): Promise<void>;
|
|
21
|
+
onUnload(): Promise<void>;
|
|
22
|
+
healthCheck(): Promise<PluginHealthCheck>;
|
|
23
|
+
getManifest(): PluginManifest;
|
|
24
|
+
validateSettings(settings: Record<string, unknown>): ValidationResult;
|
|
25
|
+
validateConnection(settings: Record<string, unknown>): Promise<ConnectionValidationResult>;
|
|
26
|
+
getFormFields(): FormFieldDefinition[];
|
|
27
|
+
getFormGroups(): FormFieldGroup[];
|
|
28
|
+
validateFormInput(values: Record<string, unknown>): ValidationResult;
|
|
29
|
+
getDefaultValues(): Record<string, unknown>;
|
|
30
|
+
getStepDefinitions(): readonly PipelineStepDefinition<HermesAgentStepId>[];
|
|
31
|
+
execute(work: WorkReference, request: GenerationRequest, existing: ExistingItems, options?: PipelineExecutionOptions, onProgress?: PipelineProgressCallback): Promise<PipelineResult>;
|
|
32
|
+
cancel(): Promise<void>;
|
|
33
|
+
getState(): PipelineState<HermesAgentStepId> | null;
|
|
34
|
+
private runSetupStep;
|
|
35
|
+
private runPrepareContextStep;
|
|
36
|
+
private runGenerationStep;
|
|
37
|
+
private runCollectResultsStep;
|
|
38
|
+
private runScreenshotCapture;
|
|
39
|
+
private runCleanupStep;
|
|
40
|
+
private handleError;
|
|
41
|
+
private handleCancel;
|
|
42
|
+
private buildCombinedPrompt;
|
|
43
|
+
private emitLine;
|
|
44
|
+
private startStep;
|
|
45
|
+
private completeStep;
|
|
46
|
+
private failStep;
|
|
47
|
+
private skipStep;
|
|
48
|
+
private getRunningStepId;
|
|
49
|
+
private truncateLogMessage;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export { HERMES_AGENT_STEP_IDS, HermesAgentPlugin, type HermesAgentStepId, HermesAgentPlugin as default, isHermesAgentStepId };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { IPlugin, IPipelinePlugin, IFormSchemaProvider, PluginCategory, JsonSchema, PluginContext, PluginHealthCheck, PluginManifest, ValidationResult, ConnectionValidationResult, FormFieldDefinition, FormFieldGroup, PipelineStepDefinition, WorkReference, GenerationRequest, ExistingItems, PipelineExecutionOptions, PipelineProgressCallback, PipelineResult, PipelineState } from '@ever-works/plugin';
|
|
2
|
+
|
|
3
|
+
type HermesAgentStepId = 'setup-hermes' | 'prepare-context' | 'generate-items' | 'collect-results' | 'capture-screenshots' | 'cleanup';
|
|
4
|
+
declare const HERMES_AGENT_STEP_IDS: readonly HermesAgentStepId[];
|
|
5
|
+
declare function isHermesAgentStepId(value: string): value is HermesAgentStepId;
|
|
6
|
+
|
|
7
|
+
declare class HermesAgentPlugin implements IPlugin, IPipelinePlugin, IFormSchemaProvider {
|
|
8
|
+
readonly id = "hermes-agent";
|
|
9
|
+
readonly name = "Hermes Agent";
|
|
10
|
+
readonly version = "1.0.0";
|
|
11
|
+
readonly category: PluginCategory;
|
|
12
|
+
readonly capabilities: readonly ["pipeline", "form-schema-provider"];
|
|
13
|
+
readonly configurationMode: "user-required";
|
|
14
|
+
readonly handledConfigFields: readonly ["*"];
|
|
15
|
+
readonly settingsSchema: JsonSchema;
|
|
16
|
+
private context;
|
|
17
|
+
private state;
|
|
18
|
+
private abortController;
|
|
19
|
+
private killProcess;
|
|
20
|
+
onLoad(context: PluginContext): Promise<void>;
|
|
21
|
+
onUnload(): Promise<void>;
|
|
22
|
+
healthCheck(): Promise<PluginHealthCheck>;
|
|
23
|
+
getManifest(): PluginManifest;
|
|
24
|
+
validateSettings(settings: Record<string, unknown>): ValidationResult;
|
|
25
|
+
validateConnection(settings: Record<string, unknown>): Promise<ConnectionValidationResult>;
|
|
26
|
+
getFormFields(): FormFieldDefinition[];
|
|
27
|
+
getFormGroups(): FormFieldGroup[];
|
|
28
|
+
validateFormInput(values: Record<string, unknown>): ValidationResult;
|
|
29
|
+
getDefaultValues(): Record<string, unknown>;
|
|
30
|
+
getStepDefinitions(): readonly PipelineStepDefinition<HermesAgentStepId>[];
|
|
31
|
+
execute(work: WorkReference, request: GenerationRequest, existing: ExistingItems, options?: PipelineExecutionOptions, onProgress?: PipelineProgressCallback): Promise<PipelineResult>;
|
|
32
|
+
cancel(): Promise<void>;
|
|
33
|
+
getState(): PipelineState<HermesAgentStepId> | null;
|
|
34
|
+
private runSetupStep;
|
|
35
|
+
private runPrepareContextStep;
|
|
36
|
+
private runGenerationStep;
|
|
37
|
+
private runCollectResultsStep;
|
|
38
|
+
private runScreenshotCapture;
|
|
39
|
+
private runCleanupStep;
|
|
40
|
+
private handleError;
|
|
41
|
+
private handleCancel;
|
|
42
|
+
private buildCombinedPrompt;
|
|
43
|
+
private emitLine;
|
|
44
|
+
private startStep;
|
|
45
|
+
private completeStep;
|
|
46
|
+
private failStep;
|
|
47
|
+
private skipStep;
|
|
48
|
+
private getRunningStepId;
|
|
49
|
+
private truncateLogMessage;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export { HERMES_AGENT_STEP_IDS, HermesAgentPlugin, type HermesAgentStepId, HermesAgentPlugin as default, isHermesAgentStepId };
|