Merge pull request #60 from wagesj45/codex/update-documentation-and-public-material
Update Sortana docs
This commit is contained in:
commit
74b64ce7db
2 changed files with 16 additions and 16 deletions
|
@ -5,9 +5,9 @@ This file provides guidelines for codex agents contributing to the Sortana proje
|
||||||
## Repository Overview
|
## Repository Overview
|
||||||
|
|
||||||
- `background.js`: Handles startup tasks and coordinates message passing within the extension.
|
- `background.js`: Handles startup tasks and coordinates message passing within the extension.
|
||||||
- `modules/`: Holds reusable JavaScript modules for the extension.
|
- `modules/`: Contains reusable JavaScript modules such as `AiClassifier.js`.
|
||||||
- `content/`: Scripts for modifying Thunderbird windows (e.g., the filter editor).
|
- `options/`: The options page HTML, JavaScript and Bulma CSS.
|
||||||
- `options/`: The options page HTML and JavaScript.
|
- `details.html` and `details.js`: View AI reasoning and clear cache for a message.
|
||||||
- `resources/`: Images and other static files.
|
- `resources/`: Images and other static files.
|
||||||
- `prompt_templates/`: Prompt template files for the AI service.
|
- `prompt_templates/`: Prompt template files for the AI service.
|
||||||
- `build-xpi.ps1`: PowerShell script to package the extension.
|
- `build-xpi.ps1`: PowerShell script to package the extension.
|
||||||
|
|
26
README.md
26
README.md
|
@ -9,13 +9,10 @@ message meets a specified criterion.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- **AI classification rule** – adds the "AI classification" term with
|
- **AI classification rule** – adds the "AI classification" term with `matches` and `doesn't match` operators.
|
||||||
`matches` and `doesn't match` operators.
|
|
||||||
- **Configurable endpoint** – set the classification service URL on the options page.
|
- **Configurable endpoint** – set the classification service URL on the options page.
|
||||||
- **Prompt templates** – choose between several model formats or provide your own custom template.
|
- **Prompt templates** – choose between several model formats or provide your own custom template.
|
||||||
- **Custom system prompts** – tailor the instructions sent to the model for more precise results.
|
- **Custom system prompts** – tailor the instructions sent to the model for more precise results.
|
||||||
- **Filter editor integration** – patches Thunderbird's filter editor to accept
|
|
||||||
text criteria for AI classification.
|
|
||||||
- **Persistent result caching** – classification results and reasoning are saved to disk so messages aren't re-evaluated across restarts.
|
- **Persistent result caching** – classification results and reasoning are saved to disk so messages aren't re-evaluated across restarts.
|
||||||
- **Advanced parameters** – tune generation settings like temperature, top‑p and more from the options page.
|
- **Advanced parameters** – tune generation settings like temperature, top‑p and more from the options page.
|
||||||
- **Debug logging** – optional colorized logs help troubleshoot interactions with the AI service.
|
- **Debug logging** – optional colorized logs help troubleshoot interactions with the AI service.
|
||||||
|
@ -23,6 +20,9 @@ message meets a specified criterion.
|
||||||
- **Rule ordering** – drag rules to prioritize them and optionally stop processing after a match.
|
- **Rule ordering** – drag rules to prioritize them and optionally stop processing after a match.
|
||||||
- **Context menu** – apply AI rules from the message list or the message display action button.
|
- **Context menu** – apply AI rules from the message list or the message display action button.
|
||||||
- **Status icons** – toolbar icons show when classification is in progress and briefly display success or error states.
|
- **Status icons** – toolbar icons show when classification is in progress and briefly display success or error states.
|
||||||
|
- **View reasoning** – inspect why rules matched via the Details popup.
|
||||||
|
- **Cache management** – clear cached results from the context menu or options page.
|
||||||
|
- **Queue & timing stats** – monitor processing time on the Maintenance tab.
|
||||||
- **Packaging script** – `build-xpi.ps1` builds an XPI ready for installation.
|
- **Packaging script** – `build-xpi.ps1` builds an XPI ready for installation.
|
||||||
- **Maintenance tab** – view rule counts, cache entries and clear cached results from the options page.
|
- **Maintenance tab** – view rule counts, cache entries and clear cached results from the options page.
|
||||||
|
|
||||||
|
@ -37,22 +37,22 @@ containing `matched` and `reason` fields. Older installations with a separate
|
||||||
|
|
||||||
Sortana is implemented entirely with standard WebExtension scripts—no custom experiment code is required:
|
Sortana is implemented entirely with standard WebExtension scripts—no custom experiment code is required:
|
||||||
|
|
||||||
- `background.js` loads saved settings and listens for new messages.
|
- `background.js` loads saved settings, manages the classification queue and listens for new messages.
|
||||||
- `modules/ExpressionSearchFilter.jsm` implements the AI filter and performs the
|
- `modules/AiClassifier.js` implements the classification logic and cache handling.
|
||||||
HTTP request.
|
- `options/` contains the HTML and JavaScript for configuring the endpoint and rules.
|
||||||
- `options/` contains the HTML and JavaScript for configuring the endpoint and
|
- `details.html` / `details.js` present cached reasoning for a message.
|
||||||
rules.
|
|
||||||
- `_locales/` holds localized strings used throughout the UI.
|
- `_locales/` holds localized strings used throughout the UI.
|
||||||
|
|
||||||
### Key Files
|
### Key Files
|
||||||
|
|
||||||
| Path | Purpose |
|
| Path | Purpose |
|
||||||
| --------------------------------------- | ---------------------------------------------- |
|
| --------------------------------------- | ---------------------------------------------- |
|
||||||
| `manifest.json` | Extension manifest and entry points. |
|
| `manifest.json` | Extension manifest and entry points. |
|
||||||
| `background.js` | Startup tasks and message handling. |
|
| `background.js` | Startup tasks and classification queue management. |
|
||||||
| `modules/ExpressionSearchFilter.jsm` | Custom filter term and AI request logic. |
|
| `modules/AiClassifier.js` | Core classification logic and cache handling. |
|
||||||
| `options/options.html` and `options.js` | Endpoint and rule configuration UI. |
|
| `options/options.html` and `options.js` | Endpoint and rule configuration UI. |
|
||||||
| `logger.js` and `modules/logger.jsm` | Colorized logging with optional debug mode. |
|
| `details.html` and `details.js` | View stored reasoning for a message. |
|
||||||
|
| `logger.js` | Colorized logging with optional debug mode. |
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue