@ever-works/claude-code-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.
@@ -0,0 +1,77 @@
1
+ import { IPlugin, IPipelinePlugin, IFormSchemaProvider, ICodeEditPlugin, PluginCategory, JsonSchema, PluginContext, PluginHealthCheck, AiModel, ConnectionValidationResult, PluginManifest, FormFieldDefinition, FormFieldGroup, ValidationResult, PipelineStepDefinition, WorkReference, GenerationRequest, ExistingItems, PipelineExecutionOptions, PipelineProgressCallback, PipelineResult, PipelineState, CodeEditRequest, CodeEditOptions, CodeEditResult } from '@ever-works/plugin';
2
+
3
+ /**
4
+ * Step IDs for the Claude Code pipeline.
5
+ * All steps run sequentially (non-parallelizable).
6
+ */
7
+ type ClaudeCodeStepId = 'setup-claude-code' | 'prepare-context' | 'generate-items' | 'collect-results' | 'capture-screenshots' | 'cleanup';
8
+ /**
9
+ * All step IDs as an array for iteration
10
+ */
11
+ declare const CLAUDE_CODE_STEP_IDS: readonly ClaudeCodeStepId[];
12
+ /**
13
+ * Type guard for ClaudeCodeStepId
14
+ */
15
+ declare function isClaudeCodeStepId(value: string): value is ClaudeCodeStepId;
16
+
17
+ /**
18
+ * Claude Code Generator Plugin
19
+ *
20
+ * Full pipeline plugin that delegates the entire generation to Claude Code.
21
+ * Runs a single Claude Code session that handles web search,
22
+ * content creation, and file generation autonomously.
23
+ */
24
+ declare class ClaudeCodePlugin implements IPlugin, IPipelinePlugin, IFormSchemaProvider, ICodeEditPlugin {
25
+ readonly id = "claude-code";
26
+ readonly name = "Claude Code Generator";
27
+ readonly providerName = "Claude Code";
28
+ readonly version = "1.0.0";
29
+ readonly category: PluginCategory;
30
+ readonly capabilities: readonly ["pipeline", "form-schema-provider", "code-edit"];
31
+ readonly configurationMode: "user-required";
32
+ readonly handledConfigFields: readonly ["*"];
33
+ readonly settingsSchema: JsonSchema;
34
+ private context;
35
+ private state;
36
+ private abortController;
37
+ private killProcess;
38
+ onLoad(context: PluginContext): Promise<void>;
39
+ onUnload(): Promise<void>;
40
+ healthCheck(): Promise<PluginHealthCheck>;
41
+ listModels(): Promise<readonly AiModel[]>;
42
+ private getRealSecret;
43
+ isAvailable(settings?: Record<string, unknown>): Promise<boolean>;
44
+ validateConnection(settings: Record<string, unknown>): Promise<ConnectionValidationResult>;
45
+ getManifest(): PluginManifest;
46
+ private validateApiKey;
47
+ private validateCliAuth;
48
+ getFormFields(): FormFieldDefinition[];
49
+ getFormGroups(): FormFieldGroup[];
50
+ validateFormInput(values: Record<string, unknown>): ValidationResult;
51
+ getDefaultValues(): Record<string, unknown>;
52
+ getStepDefinitions(): readonly PipelineStepDefinition[];
53
+ execute(work: WorkReference, request: GenerationRequest, existing: ExistingItems, options?: PipelineExecutionOptions, onProgress?: PipelineProgressCallback): Promise<PipelineResult>;
54
+ cancel(): Promise<void>;
55
+ getState(): PipelineState<ClaudeCodeStepId> | null;
56
+ private runScreenshotCapture;
57
+ private createClaudeCodeStreamHandlers;
58
+ private buildClaudeCodeLogFromStdout;
59
+ private extractClaudeContentText;
60
+ private extractString;
61
+ private truncateLogMessage;
62
+ private startStep;
63
+ private completeStep;
64
+ private failStep;
65
+ private skipStep;
66
+ private emitClaudeCodeLog;
67
+ private getStepName;
68
+ private getRunningStepId;
69
+ private extractErrorDetail;
70
+ private setState;
71
+ private handleError;
72
+ private handleCancel;
73
+ executeCodeEdit(request: CodeEditRequest, options?: CodeEditOptions): Promise<CodeEditResult>;
74
+ cancelCodeEdit(): Promise<void>;
75
+ }
76
+
77
+ export { CLAUDE_CODE_STEP_IDS, ClaudeCodePlugin, type ClaudeCodeStepId, ClaudeCodePlugin as default, isClaudeCodeStepId };
@@ -0,0 +1,77 @@
1
+ import { IPlugin, IPipelinePlugin, IFormSchemaProvider, ICodeEditPlugin, PluginCategory, JsonSchema, PluginContext, PluginHealthCheck, AiModel, ConnectionValidationResult, PluginManifest, FormFieldDefinition, FormFieldGroup, ValidationResult, PipelineStepDefinition, WorkReference, GenerationRequest, ExistingItems, PipelineExecutionOptions, PipelineProgressCallback, PipelineResult, PipelineState, CodeEditRequest, CodeEditOptions, CodeEditResult } from '@ever-works/plugin';
2
+
3
+ /**
4
+ * Step IDs for the Claude Code pipeline.
5
+ * All steps run sequentially (non-parallelizable).
6
+ */
7
+ type ClaudeCodeStepId = 'setup-claude-code' | 'prepare-context' | 'generate-items' | 'collect-results' | 'capture-screenshots' | 'cleanup';
8
+ /**
9
+ * All step IDs as an array for iteration
10
+ */
11
+ declare const CLAUDE_CODE_STEP_IDS: readonly ClaudeCodeStepId[];
12
+ /**
13
+ * Type guard for ClaudeCodeStepId
14
+ */
15
+ declare function isClaudeCodeStepId(value: string): value is ClaudeCodeStepId;
16
+
17
+ /**
18
+ * Claude Code Generator Plugin
19
+ *
20
+ * Full pipeline plugin that delegates the entire generation to Claude Code.
21
+ * Runs a single Claude Code session that handles web search,
22
+ * content creation, and file generation autonomously.
23
+ */
24
+ declare class ClaudeCodePlugin implements IPlugin, IPipelinePlugin, IFormSchemaProvider, ICodeEditPlugin {
25
+ readonly id = "claude-code";
26
+ readonly name = "Claude Code Generator";
27
+ readonly providerName = "Claude Code";
28
+ readonly version = "1.0.0";
29
+ readonly category: PluginCategory;
30
+ readonly capabilities: readonly ["pipeline", "form-schema-provider", "code-edit"];
31
+ readonly configurationMode: "user-required";
32
+ readonly handledConfigFields: readonly ["*"];
33
+ readonly settingsSchema: JsonSchema;
34
+ private context;
35
+ private state;
36
+ private abortController;
37
+ private killProcess;
38
+ onLoad(context: PluginContext): Promise<void>;
39
+ onUnload(): Promise<void>;
40
+ healthCheck(): Promise<PluginHealthCheck>;
41
+ listModels(): Promise<readonly AiModel[]>;
42
+ private getRealSecret;
43
+ isAvailable(settings?: Record<string, unknown>): Promise<boolean>;
44
+ validateConnection(settings: Record<string, unknown>): Promise<ConnectionValidationResult>;
45
+ getManifest(): PluginManifest;
46
+ private validateApiKey;
47
+ private validateCliAuth;
48
+ getFormFields(): FormFieldDefinition[];
49
+ getFormGroups(): FormFieldGroup[];
50
+ validateFormInput(values: Record<string, unknown>): ValidationResult;
51
+ getDefaultValues(): Record<string, unknown>;
52
+ getStepDefinitions(): readonly PipelineStepDefinition[];
53
+ execute(work: WorkReference, request: GenerationRequest, existing: ExistingItems, options?: PipelineExecutionOptions, onProgress?: PipelineProgressCallback): Promise<PipelineResult>;
54
+ cancel(): Promise<void>;
55
+ getState(): PipelineState<ClaudeCodeStepId> | null;
56
+ private runScreenshotCapture;
57
+ private createClaudeCodeStreamHandlers;
58
+ private buildClaudeCodeLogFromStdout;
59
+ private extractClaudeContentText;
60
+ private extractString;
61
+ private truncateLogMessage;
62
+ private startStep;
63
+ private completeStep;
64
+ private failStep;
65
+ private skipStep;
66
+ private emitClaudeCodeLog;
67
+ private getStepName;
68
+ private getRunningStepId;
69
+ private extractErrorDetail;
70
+ private setState;
71
+ private handleError;
72
+ private handleCancel;
73
+ executeCodeEdit(request: CodeEditRequest, options?: CodeEditOptions): Promise<CodeEditResult>;
74
+ cancelCodeEdit(): Promise<void>;
75
+ }
76
+
77
+ export { CLAUDE_CODE_STEP_IDS, ClaudeCodePlugin, type ClaudeCodeStepId, ClaudeCodePlugin as default, isClaudeCodeStepId };