UNPKG

git-contextor

Version:

A code context tool with vector search and real-time monitoring, with optional Git integration.

111 lines (108 loc) 6.04 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Git Contextor - Configuration</title> <link rel="stylesheet" href="/css/style.css"> </head> <body> <div class="container"> <header> <h1>Git Contextor</h1> <nav id="main-nav"> <a href="/index.html">Dashboard</a> <a href="/metrics.html">Metrics</a> <a href="/docs.html">Docs</a> <a href="/config.html" class="active">Config</a> </nav> </header> <main> <div class="config-grid"> <section id="tunnel-config" class="card"> <h2>🚇 Tunnel Configuration</h2> <p>Configure secure tunneling for sharing your repository with AI agents.</p> <form id="tunnel-form"> <div class="form-group"> <label for="tunnel-provider">Tunnel Provider</label> <select id="tunnel-provider"> <option value="corrently">tunnel.corrently.cloud (Recommended)</option> <option value="localtunnel">localtunnel</option> <option value="managed">managed</option> </select> </div> <div id="corrently-config" class="provider-config"> <div class="form-group"> <label for="corrently-api-key">API Key</label> <input type="password" id="corrently-api-key" placeholder="Enter your tunnel.corrently.cloud API key"> <small class="help-text"> <a href="https://tunnel.corrently.cloud/" target="_blank">Get your API key from tunnel.corrently.cloud</a><br> <b>How to get your API key:</b> <ol style="margin:0 0 0 18px;padding:0;"> <li>Visit <a href="https://tunnel.corrently.cloud/" target="_blank">tunnel.corrently.cloud</a></li> <li>Sign up or log in</li> <li>Go to your dashboard</li> <li>Copy your API key</li> <li>Paste it here and click Save</li> </ol> </small> </div> <div class="form-group"> <label for="tunnel-description">Description</label> <input type="text" id="tunnel-description" placeholder="Git Contextor Share" value="Git Contextor Share"> </div> <div class="form-actions"> <button type="button" id="test-tunnel-connection">Test Connection</button> <span id="tunnel-test-status" class="status-message"></span> </div> </div> <div class="form-actions"> <button type="submit">Save Tunnel Configuration</button> <span id="tunnel-status" class="status-message"></span> </div> </form> <div id="tunnel-error" class="error-message" style="display: none;"></div> </section> <section id="config-editor" class="card"> <h2>Edit Configuration</h2> <p>Modify the `config.json` file directly. Changes will be applied after a service restart.</p> <form id="config-form"> <div class="form-group"> <label for="config-textarea">config.json</label> <textarea id="config-textarea" rows="20"></textarea> </div> <div class="form-actions"> <button type="submit">Save Configuration</button> <span id="config-status" class="status-message"></span> </div> </form> <div id="config-error" class="error-message" style="display: none;"></div> </section> <section class="card"> <h2>Danger Zone</h2> <div class="danger-zone-actions"> <div class="action-item"> <div> <p><strong>Re-index Repository</strong></p> <p>Triggers a full re-index of all tracked files. This can take a while.</p> </div> <button id="reindex-button" class="button-danger">Re-index Now</button> </div> <div class="action-item"> <div> <p><strong>Delete Collection</strong></p> <p>Deletes all data from the vector store. This action cannot be undone.</p> </div> <button id="delete-collection-button" class="button-danger">Delete Collection</button> </div> </div> </section> </div> </main> <footer> <p>Powered by <a href="https://github.com/stromdao/git-contextor" target="_blank">Git Contextor</a> &copy; 2025 by <a href="https://stromdao.de/" target="_blank">STROMDAO GmbH</a></p> </footer> </div> <script src="/js/app.js"></script> </body> </html>