testchimp-runner-core 0.0.34 → 0.0.36
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/execution-service.d.ts +1 -4
- package/dist/execution-service.d.ts.map +1 -1
- package/dist/execution-service.js +155 -468
- package/dist/execution-service.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/dist/orchestrator/decision-parser.d.ts +18 -0
- package/dist/orchestrator/decision-parser.d.ts.map +1 -0
- package/dist/orchestrator/decision-parser.js +127 -0
- package/dist/orchestrator/decision-parser.js.map +1 -0
- package/dist/orchestrator/index.d.ts +4 -2
- package/dist/orchestrator/index.d.ts.map +1 -1
- package/dist/orchestrator/index.js +14 -2
- package/dist/orchestrator/index.js.map +1 -1
- package/dist/orchestrator/orchestrator-agent.d.ts +17 -14
- package/dist/orchestrator/orchestrator-agent.d.ts.map +1 -1
- package/dist/orchestrator/orchestrator-agent.js +534 -204
- package/dist/orchestrator/orchestrator-agent.js.map +1 -1
- package/dist/orchestrator/orchestrator-prompts.d.ts +14 -2
- package/dist/orchestrator/orchestrator-prompts.d.ts.map +1 -1
- package/dist/orchestrator/orchestrator-prompts.js +529 -247
- package/dist/orchestrator/orchestrator-prompts.js.map +1 -1
- package/dist/orchestrator/page-som-handler.d.ts +106 -0
- package/dist/orchestrator/page-som-handler.d.ts.map +1 -0
- package/dist/orchestrator/page-som-handler.js +1353 -0
- package/dist/orchestrator/page-som-handler.js.map +1 -0
- package/dist/orchestrator/som-types.d.ts +149 -0
- package/dist/orchestrator/som-types.d.ts.map +1 -0
- package/dist/orchestrator/som-types.js +87 -0
- package/dist/orchestrator/som-types.js.map +1 -0
- package/dist/orchestrator/tool-registry.d.ts +2 -0
- package/dist/orchestrator/tool-registry.d.ts.map +1 -1
- package/dist/orchestrator/tool-registry.js.map +1 -1
- package/dist/orchestrator/tools/index.d.ts +4 -1
- package/dist/orchestrator/tools/index.d.ts.map +1 -1
- package/dist/orchestrator/tools/index.js +7 -2
- package/dist/orchestrator/tools/index.js.map +1 -1
- package/dist/orchestrator/tools/refresh-som-markers.d.ts +12 -0
- package/dist/orchestrator/tools/refresh-som-markers.d.ts.map +1 -0
- package/dist/orchestrator/tools/refresh-som-markers.js +64 -0
- package/dist/orchestrator/tools/refresh-som-markers.js.map +1 -0
- package/dist/orchestrator/tools/view-previous-screenshot.d.ts +15 -0
- package/dist/orchestrator/tools/view-previous-screenshot.d.ts.map +1 -0
- package/dist/orchestrator/tools/view-previous-screenshot.js +92 -0
- package/dist/orchestrator/tools/view-previous-screenshot.js.map +1 -0
- package/dist/orchestrator/types.d.ts +23 -1
- package/dist/orchestrator/types.d.ts.map +1 -1
- package/dist/orchestrator/types.js +11 -1
- package/dist/orchestrator/types.js.map +1 -1
- package/dist/scenario-service.d.ts +5 -0
- package/dist/scenario-service.d.ts.map +1 -1
- package/dist/scenario-service.js +17 -0
- package/dist/scenario-service.js.map +1 -1
- package/dist/scenario-worker-class.d.ts +4 -0
- package/dist/scenario-worker-class.d.ts.map +1 -1
- package/dist/scenario-worker-class.js +18 -3
- package/dist/scenario-worker-class.js.map +1 -1
- package/dist/testing/agent-tester.d.ts +35 -0
- package/dist/testing/agent-tester.d.ts.map +1 -0
- package/dist/testing/agent-tester.js +84 -0
- package/dist/testing/agent-tester.js.map +1 -0
- package/dist/testing/ref-translator-tester.d.ts +44 -0
- package/dist/testing/ref-translator-tester.d.ts.map +1 -0
- package/dist/testing/ref-translator-tester.js +104 -0
- package/dist/testing/ref-translator-tester.js.map +1 -0
- package/dist/utils/hierarchical-selector.d.ts +47 -0
- package/dist/utils/hierarchical-selector.d.ts.map +1 -0
- package/dist/utils/hierarchical-selector.js +212 -0
- package/dist/utils/hierarchical-selector.js.map +1 -0
- package/dist/utils/page-info-retry.d.ts +14 -0
- package/dist/utils/page-info-retry.d.ts.map +1 -0
- package/dist/utils/page-info-retry.js +60 -0
- package/dist/utils/page-info-retry.js.map +1 -0
- package/dist/utils/page-info-utils.d.ts +1 -0
- package/dist/utils/page-info-utils.d.ts.map +1 -1
- package/dist/utils/page-info-utils.js +46 -18
- package/dist/utils/page-info-utils.js.map +1 -1
- package/dist/utils/ref-attacher.d.ts +21 -0
- package/dist/utils/ref-attacher.d.ts.map +1 -0
- package/dist/utils/ref-attacher.js +149 -0
- package/dist/utils/ref-attacher.js.map +1 -0
- package/dist/utils/ref-translator.d.ts +49 -0
- package/dist/utils/ref-translator.d.ts.map +1 -0
- package/dist/utils/ref-translator.js +276 -0
- package/dist/utils/ref-translator.js.map +1 -0
- package/package.json +6 -1
- package/RELEASE_0.0.26.md +0 -165
- package/RELEASE_0.0.27.md +0 -236
- package/RELEASE_0.0.28.md +0 -286
- package/plandocs/BEFORE_AFTER_VERIFICATION.md +0 -148
- package/plandocs/COORDINATE_MODE_DIAGNOSIS.md +0 -144
- package/plandocs/CREDIT_CALLBACK_ARCHITECTURE.md +0 -253
- package/plandocs/HUMAN_LIKE_IMPROVEMENTS.md +0 -642
- package/plandocs/IMPLEMENTATION_STATUS.md +0 -108
- package/plandocs/INTEGRATION_COMPLETE.md +0 -322
- package/plandocs/MULTI_AGENT_ARCHITECTURE_REVIEW.md +0 -844
- package/plandocs/ORCHESTRATOR_MVP_SUMMARY.md +0 -539
- package/plandocs/PHASE1_ABSTRACTION_COMPLETE.md +0 -241
- package/plandocs/PHASE1_FINAL_STATUS.md +0 -210
- package/plandocs/PHASE_1_COMPLETE.md +0 -165
- package/plandocs/PHASE_1_SUMMARY.md +0 -184
- package/plandocs/PLANNING_SESSION_SUMMARY.md +0 -372
- package/plandocs/PROMPT_OPTIMIZATION_ANALYSIS.md +0 -120
- package/plandocs/PROMPT_SANITY_CHECK.md +0 -120
- package/plandocs/SCRIPT_CLEANUP_FEATURE.md +0 -201
- package/plandocs/SCRIPT_GENERATION_ARCHITECTURE.md +0 -364
- package/plandocs/SELECTOR_IMPROVEMENTS.md +0 -139
- package/plandocs/SESSION_SUMMARY_v0.0.33.md +0 -151
- package/plandocs/TROUBLESHOOTING_SESSION.md +0 -72
- package/plandocs/VISION_DIAGNOSTICS_IMPROVEMENTS.md +0 -336
- package/plandocs/VISUAL_AGENT_EVOLUTION_PLAN.md +0 -396
- package/plandocs/WHATS_NEW_v0.0.33.md +0 -183
- package/src/auth-config.ts +0 -84
- package/src/credit-usage-service.ts +0 -188
- package/src/env-loader.ts +0 -103
- package/src/execution-service.ts +0 -1413
- package/src/file-handler.ts +0 -104
- package/src/index.ts +0 -422
- package/src/llm-facade.ts +0 -821
- package/src/llm-provider.ts +0 -53
- package/src/model-constants.ts +0 -35
- package/src/orchestrator/index.ts +0 -34
- package/src/orchestrator/orchestrator-agent.ts +0 -862
- package/src/orchestrator/orchestrator-agent.ts.backup +0 -1386
- package/src/orchestrator/orchestrator-prompts.ts +0 -474
- package/src/orchestrator/tool-registry.ts +0 -182
- package/src/orchestrator/tools/check-page-ready.ts +0 -75
- package/src/orchestrator/tools/extract-data.ts +0 -92
- package/src/orchestrator/tools/index.ts +0 -12
- package/src/orchestrator/tools/inspect-page.ts +0 -42
- package/src/orchestrator/tools/recall-history.ts +0 -72
- package/src/orchestrator/tools/take-screenshot.ts +0 -128
- package/src/orchestrator/tools/verify-action-result.ts +0 -159
- package/src/orchestrator/types.ts +0 -248
- package/src/playwright-mcp-service.ts +0 -224
- package/src/progress-reporter.ts +0 -144
- package/src/prompts.ts +0 -842
- package/src/providers/backend-proxy-llm-provider.ts +0 -91
- package/src/providers/local-llm-provider.ts +0 -38
- package/src/scenario-service.ts +0 -232
- package/src/scenario-worker-class.ts +0 -1089
- package/src/script-utils.ts +0 -203
- package/src/types.ts +0 -239
- package/src/utils/browser-utils.ts +0 -348
- package/src/utils/coordinate-converter.ts +0 -162
- package/src/utils/page-info-utils.ts +0 -250
- package/testchimp-runner-core-0.0.33.tgz +0 -0
- package/tsconfig.json +0 -19
package/src/llm-provider.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* LLM Provider Interface
|
|
3
|
-
* Abstraction for LLM calls - allows different implementations (backend proxy, local, etc.)
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Labeled image for multi-image LLM requests
|
|
8
|
-
* Used for before/after comparisons or multi-screenshot analysis
|
|
9
|
-
*/
|
|
10
|
-
export interface LabeledImage {
|
|
11
|
-
label: string; // e.g., "Before", "After", "Screenshot 1"
|
|
12
|
-
dataUrl: string; // Base64 data URL (data:image/png;base64,...)
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* LLM request - camelCase for TypeScript
|
|
17
|
-
*/
|
|
18
|
-
export interface LLMRequest {
|
|
19
|
-
model?: string;
|
|
20
|
-
systemPrompt?: string;
|
|
21
|
-
userPrompt?: string;
|
|
22
|
-
imageUrl?: string; // For vision models (data URL) - backward compatible, single image
|
|
23
|
-
images?: LabeledImage[]; // For multi-image requests (e.g., before/after comparison)
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* LLM response
|
|
28
|
-
*/
|
|
29
|
-
export interface LLMResponse {
|
|
30
|
-
answer: string;
|
|
31
|
-
usage?: {
|
|
32
|
-
inputTokens: number;
|
|
33
|
-
outputTokens: number;
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Abstract LLM provider interface
|
|
39
|
-
* Implementations can call backend proxy, local LLM, or any other service
|
|
40
|
-
*/
|
|
41
|
-
export interface LLMProvider {
|
|
42
|
-
/**
|
|
43
|
-
* Call LLM with given request
|
|
44
|
-
* Implementations handle authentication, API calls, retries, etc.
|
|
45
|
-
*/
|
|
46
|
-
callLLM(request: LLMRequest): Promise<LLMResponse>;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Optional: Set logger for LLM provider to log its activities
|
|
50
|
-
*/
|
|
51
|
-
setLogger?(logger: (message: string, level?: 'log' | 'error' | 'warn') => void): void;
|
|
52
|
-
}
|
|
53
|
-
|
package/src/model-constants.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Model constants for LLM interactions
|
|
3
|
-
*
|
|
4
|
-
* Centralized model configuration to make it easy to update models across the codebase.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Default model for complex reasoning tasks:
|
|
9
|
-
* - Command generation (Playwright selectors)
|
|
10
|
-
* - Goal completion checks (critical decisions)
|
|
11
|
-
* - Repair suggestions (complex logic)
|
|
12
|
-
* - Agent orchestration (decision-making)
|
|
13
|
-
*/
|
|
14
|
-
export const DEFAULT_MODEL = 'gpt-5-mini';
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Simpler model for structured/guided tasks:
|
|
18
|
-
* - Scenario breakdown (structured splitting)
|
|
19
|
-
* - Screenshot need assessment (yes/no decision)
|
|
20
|
-
* - Repair confidence assessment (comparison task)
|
|
21
|
-
* - Test name generation (text formatting)
|
|
22
|
-
* - Hashtag generation (semantic tags)
|
|
23
|
-
* - Script parsing (extract steps)
|
|
24
|
-
* - Final script merging (text concatenation)
|
|
25
|
-
*/
|
|
26
|
-
export const DEFAULT_SIMPLER_MODEL = 'gpt-4o-mini';
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Vision-capable model for visual diagnostics:
|
|
30
|
-
* - Screenshot analysis
|
|
31
|
-
* - Visual element identification
|
|
32
|
-
* - UI blocker detection
|
|
33
|
-
*/
|
|
34
|
-
export const VISION_MODEL = 'gpt-5-mini';
|
|
35
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Orchestrator Module Exports
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
// Core orchestrator
|
|
6
|
-
export { OrchestratorAgent } from './orchestrator-agent';
|
|
7
|
-
|
|
8
|
-
// Tool system
|
|
9
|
-
export { ToolRegistry, Tool, ToolParameter, ToolExecutionContext } from './tool-registry';
|
|
10
|
-
|
|
11
|
-
// 6 information-gathering tools (state changes via Playwright commands)
|
|
12
|
-
export {
|
|
13
|
-
TakeScreenshotTool,
|
|
14
|
-
RecallHistoryTool,
|
|
15
|
-
InspectPageTool,
|
|
16
|
-
CheckPageReadyTool,
|
|
17
|
-
ExtractDataTool,
|
|
18
|
-
VerifyActionResultTool
|
|
19
|
-
} from './tools';
|
|
20
|
-
|
|
21
|
-
// Types
|
|
22
|
-
export {
|
|
23
|
-
AgentConfig,
|
|
24
|
-
AgentContext,
|
|
25
|
-
AgentDecision,
|
|
26
|
-
JourneyMemory,
|
|
27
|
-
MemoryStep,
|
|
28
|
-
OrchestratorStepResult,
|
|
29
|
-
SelfReflection,
|
|
30
|
-
ToolCall,
|
|
31
|
-
ToolResult,
|
|
32
|
-
DEFAULT_AGENT_CONFIG
|
|
33
|
-
} from './types';
|
|
34
|
-
|