Add src/ai-repo-commander.user.js
This commit is contained in:
parent
2f4c6ff326
commit
9431c0c41e
|
|
@ -0,0 +1,40 @@
|
|||
// ==UserScript==
|
||||
// @name AI Repo Commander
|
||||
// @namespace http://violentmonkey.com/
|
||||
// @version 1.0.0
|
||||
// @description Enable AI assistants to interact with git repositories safely
|
||||
// @author rob
|
||||
// @match https://chat.openai.com/*
|
||||
// @match https://claude.ai/*
|
||||
// @match https://gemini.google.com/*
|
||||
// @grant GM_xmlhttpRequest
|
||||
// @grant GM_notification
|
||||
// @grant GM_setValue
|
||||
// @grant GM_getValue
|
||||
// ==/UserScript==
|
||||
|
||||
/*
|
||||
* AI Repo Commander - Main Implementation
|
||||
* Safety-first browser extension for AI-to-repo workflows
|
||||
*/
|
||||
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
// Master configuration - SAFETY FIRST
|
||||
const CONFIG = {
|
||||
ENABLE_API: false, // MUST be manually enabled for production use
|
||||
DEBUG_MODE: true, // Development logging
|
||||
DEBOUNCE_DELAY: 5000, // 5-second bot typing protection
|
||||
MAX_RETRIES: 2, // API retry attempts
|
||||
VERSION: '1.0.0'
|
||||
};
|
||||
|
||||
console.log(`🚀 AI Repo Commander v${CONFIG.VERSION} loaded!`);
|
||||
console.log(`🔒 API Enabled: ${CONFIG.ENABLE_API}`);
|
||||
console.log(`🐛 Debug Mode: ${CONFIG.DEBUG_MODE}`);
|
||||
|
||||
// TODO: Implementation will go here
|
||||
// This is the main file structure
|
||||
|
||||
})();
|
||||
Loading…
Reference in New Issue