Skip to content

Commit 697a5ef

Browse files
author
x-access-token
committed
feat: Add license headers to all source files
- Added Koda Non-Commercial License with Attribution header to all JavaScript files - Updated HTML files with license comments - Ensures compliance with license requirements for publishing - All 94 files now include proper attribution to Trent Pierce
1 parent 336930a commit 697a5ef

98 files changed

Lines changed: 699 additions & 788 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

animationDetector.js

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,11 @@
11
/**
2-
* ============================================================================
3-
* ANIMATION DETECTOR - Animation and Transition Detection
4-
* ============================================================================
5-
*
6-
* Detects and analyzes animations, transitions, and loading states in web
7-
* pages. Provides frame rate analysis, loading indicator detection, and
8-
* animation completion prediction for improved action timing.
9-
*
10-
* FEATURES:
11-
* - Animation detection (CSS and JavaScript-based)
12-
* - Loading indicator detection (spinners, progress bars)
13-
* - Transition duration estimation
14-
* - Frame rate analysis for smooth animations
15-
* - Animation completion prediction
16-
* - Loading state tracking
17-
* - Animation pattern recognition
18-
*
19-
* USAGE:
20-
* const detector = new AnimationDetector();
21-
* const analysis = await detector.analyzeAnimations({
22-
* dom, screenshot, previousScreenshot
23-
* });
24-
* const isLoading = detector.isPageLoading();
25-
*
26-
* ============================================================================
2+
* Koda - Intelligent Browser Automation Library
3+
* This project uses Koda by Trent Pierce
4+
* https://github.com/TrentPierce/Koda
5+
* Licensed under the Koda Non-Commercial License
6+
*
7+
* Copyright (c) 2026 Trent Pierce. All rights reserved.
8+
* See LICENSE file for full terms.
279
*/
2810

2911
const EventEmitter = require('events');

apiUnification.js

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,11 @@
11
/**
2-
* ============================================================================
3-
* API UNIFICATION - Unified High-Level Interface
4-
* ============================================================================
5-
*
6-
* Provides a simplified, unified API interface that abstracts all 12 components
7-
* into easy-to-use high-level methods. Supports configuration presets, custom
8-
* pipelines, backward compatibility, and API versioning.
9-
*
10-
* FEATURES:
11-
* - Unified interface for all 12 components
12-
* - High-level methods for common use cases
13-
* - Configuration presets (fast, balanced, thorough, production)
14-
* - Custom analysis pipeline builder
15-
* - Backward compatibility with existing code
16-
* - API versioning (v1, v2)
17-
* - Automatic optimization based on requirements
18-
* - Simplified error handling
19-
*
20-
* USAGE:
21-
* const api = new KodaAPI();
22-
* const result = await api.analyze(pageData, { preset: 'production' });
23-
*
24-
* ============================================================================
2+
* Koda - Intelligent Browser Automation Library
3+
* This project uses Koda by Trent Pierce
4+
* https://github.com/TrentPierce/Koda
5+
* Licensed under the Koda Non-Commercial License
6+
*
7+
* Copyright (c) 2026 Trent Pierce. All rights reserved.
8+
* See LICENSE file for full terms.
259
*/
2610

2711
const EventEmitter = require('events');

auth.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/**
2+
* Koda - Intelligent Browser Automation Library
3+
* This project uses Koda by Trent Pierce
4+
* https://github.com/TrentPierce/Koda
5+
* Licensed under the Koda Non-Commercial License
6+
*
7+
* Copyright (c) 2026 Trent Pierce. All rights reserved.
8+
* See LICENSE file for full terms.
9+
*/
10+
111
// Handle optional dependency
212
let keytar;
313
try {

beliefNetwork.js

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,11 @@
11
/**
2-
* ============================================================================
3-
* BAYESIAN BELIEF NETWORK - Probabilistic Evidence Integration
4-
* ============================================================================
5-
*
6-
* Implements a Bayesian Belief Network for integrating evidence from multiple
7-
* analysis sources to make probabilistic decisions about actions. Uses belief
8-
* propagation to combine evidence and calculate posterior probabilities.
9-
*
10-
* FEATURES:
11-
* - Bayesian probability calculations
12-
* - Belief propagation for multi-source evidence
13-
* - Prior probability management for action types
14-
* - Likelihood calculation for different evidence sources
15-
* - Conditional dependency modeling
16-
* - Uncertainty quantification and confidence intervals
17-
* - Evidence strength weighting
18-
* - Posterior probability computation
19-
*
20-
* USAGE:
21-
* const network = new BayesianBeliefNetwork();
22-
* network.setActionPrior('click', 0.4);
23-
* network.addEvidence('dom', 'click', 0.8, 0.9);
24-
* const belief = network.computeBeliefs();
25-
*
26-
* ============================================================================
2+
* Koda - Intelligent Browser Automation Library
3+
* This project uses Koda by Trent Pierce
4+
* https://github.com/TrentPierce/Koda
5+
* Licensed under the Koda Non-Commercial License
6+
*
7+
* Copyright (c) 2026 Trent Pierce. All rights reserved.
8+
* See LICENSE file for full terms.
279
*/
2810

2911
const EventEmitter = require('events');

bin/koda.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
#!/usr/bin/env node
22

3+
/**
4+
* Koda - Intelligent Browser Automation Library
5+
* This project uses Koda by Trent Pierce
6+
* https://github.com/TrentPierce/Koda
7+
* Licensed under the Koda Non-Commercial License
8+
*
9+
* Copyright (c) 2026 Trent Pierce. All rights reserved.
10+
* See LICENSE file for full terms.
11+
*/
12+
313
/**
414
* Koda CLI
515
* Command-line interface for Koda

chatOverlay.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
/**
2-
* ChatOverlay - Injected UI for Browser Agent
3-
* Uses Shadow DOM to isolate styles and behavior from the host page.
2+
* Koda - Intelligent Browser Automation Library
3+
* This project uses Koda by Trent Pierce
4+
* https://github.com/TrentPierce/Koda
5+
* Licensed under the Koda Non-Commercial License
6+
*
7+
* Copyright (c) 2026 Trent Pierce. All rights reserved.
8+
* See LICENSE file for full terms.
49
*/
10+
511
class ChatOverlay {
612
constructor() {
713
this.messages = [];

comprehensiveLogger.js

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,11 @@
11
/**
2-
* ============================================================================
3-
* COMPREHENSIVE LOGGER - Structured Logging System
4-
* ============================================================================
5-
*
6-
* Provides detailed structured logging for all components with multiple
7-
* severity levels, performance metrics, error tracking, and flexible output
8-
* formats. Supports log rotation, retention policies, and filtering.
9-
*
10-
* FEATURES:
11-
* - Structured logging with multiple severity levels
12-
* - Performance metrics logging
13-
* - Error tracking with stack traces and context
14-
* - Multiple log formats (JSON, text, structured)
15-
* - Log rotation and retention policies
16-
* - Filtering by component, level, and time
17-
* - Async logging for performance
18-
* - Log aggregation and analysis
19-
*
20-
* USAGE:
21-
* const logger = new ComprehensiveLogger({ level: 'INFO' });
22-
* logger.info('Analysis completed', { duration: 1234, action: 'click' });
23-
*
24-
* ============================================================================
2+
* Koda - Intelligent Browser Automation Library
3+
* This project uses Koda by Trent Pierce
4+
* https://github.com/TrentPierce/Koda
5+
* Licensed under the Koda Non-Commercial License
6+
*
7+
* Copyright (c) 2026 Trent Pierce. All rights reserved.
8+
* See LICENSE file for full terms.
259
*/
2610

2711
const EventEmitter = require('events');

confidenceManager.js

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,11 @@
11
/**
2-
* ============================================================================
3-
* CONFIDENCE THRESHOLD MANAGER - Dynamic Threshold Management
4-
* ============================================================================
5-
*
6-
* Manages confidence thresholds dynamically based on historical performance
7-
* and provides fallback strategy selection for different confidence levels.
8-
* Optimizes thresholds per domain and assesses risk for actions.
9-
*
10-
* FEATURES:
11-
* - Dynamic confidence threshold management
12-
* - Multi-level fallback strategies (high/medium/low confidence)
13-
* - Threshold adjustment based on historical performance
14-
* - Domain-specific threshold optimization
15-
* - Risk assessment for different confidence levels
16-
* - Adaptive threshold tuning
17-
* - Fallback chain management
18-
* - Performance-based threshold calibration
19-
*
20-
* USAGE:
21-
* const manager = new ConfidenceThresholdManager();
22-
* const action = manager.selectAction(candidates, domain);
23-
* manager.updateThresholds(domain, performance);
24-
*
25-
* ============================================================================
2+
* Koda - Intelligent Browser Automation Library
3+
* This project uses Koda by Trent Pierce
4+
* https://github.com/TrentPierce/Koda
5+
* Licensed under the Koda Non-Commercial License
6+
*
7+
* Copyright (c) 2026 Trent Pierce. All rights reserved.
8+
* See LICENSE file for full terms.
269
*/
2710

2811
const EventEmitter = require('events');

contextManager.js

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
11
/**
2-
* ============================================================================
3-
* CONTEXT MANAGER - Session & State Tracking
4-
* ============================================================================
5-
*
6-
* Tracks the agent's session state, navigation history, and action history.
7-
* Used by EnhancedAgent to provide context to the LLM and detect loops.
8-
*
9-
* KEY FEATURES:
10-
* - Session management (start, end, persistence)
11-
* - URL history tracking
12-
* - Action history with success/failure tracking
13-
* - Loop detection (scroll loops, navigation regression, alternating patterns)
14-
* - DOM snapshot storage
15-
* - Chat message logging
16-
*
17-
* ============================================================================
2+
* Koda - Intelligent Browser Automation Library
3+
* This project uses Koda by Trent Pierce
4+
* https://github.com/TrentPierce/Koda
5+
* Licensed under the Koda Non-Commercial License
6+
*
7+
* Copyright (c) 2026 Trent Pierce. All rights reserved.
8+
* See LICENSE file for full terms.
189
*/
1910

2011
const crypto = require('crypto');

database.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/**
2+
* Koda - Intelligent Browser Automation Library
3+
* This project uses Koda by Trent Pierce
4+
* https://github.com/TrentPierce/Koda
5+
* Licensed under the Koda Non-Commercial License
6+
*
7+
* Copyright (c) 2026 Trent Pierce. All rights reserved.
8+
* See LICENSE file for full terms.
9+
*/
10+
111
// Handle optional dependency
212
let Database;
313
try {

0 commit comments

Comments
 (0)