eustace 2.4.0__tar.gz
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.
- eustace-2.4.0/PKG-INFO +139 -0
- eustace-2.4.0/README.md +108 -0
- eustace-2.4.0/cli.py +9595 -0
- eustace-2.4.0/eustace.egg-info/PKG-INFO +139 -0
- eustace-2.4.0/eustace.egg-info/SOURCES.txt +37 -0
- eustace-2.4.0/eustace.egg-info/dependency_links.txt +1 -0
- eustace-2.4.0/eustace.egg-info/entry_points.txt +2 -0
- eustace-2.4.0/eustace.egg-info/requires.txt +13 -0
- eustace-2.4.0/eustace.egg-info/top_level.txt +1 -0
- eustace-2.4.0/fonts/EustaceMono-Regular.ttf +0 -0
- eustace-2.4.0/fonts/OFL.txt +101 -0
- eustace-2.4.0/pyproject.toml +66 -0
- eustace-2.4.0/setup.cfg +4 -0
- eustace-2.4.0/skills/briefing/SKILL.md +20 -0
- eustace-2.4.0/skills/draft-email/SKILL.md +20 -0
- eustace-2.4.0/skills/memo/SKILL.md +14 -0
- eustace-2.4.0/skills/summarize/SKILL.md +17 -0
- eustace-2.4.0/system_prompt.md +13 -0
- eustace-2.4.0/tests/test_agent_loop.py +376 -0
- eustace-2.4.0/tests/test_config.py +149 -0
- eustace-2.4.0/tests/test_email_pdf.py +657 -0
- eustace-2.4.0/tests/test_files.py +218 -0
- eustace-2.4.0/tests/test_guardrails.py +280 -0
- eustace-2.4.0/tests/test_guards.py +447 -0
- eustace-2.4.0/tests/test_guidance.py +131 -0
- eustace-2.4.0/tests/test_office.py +466 -0
- eustace-2.4.0/tests/test_outlook_setup.py +462 -0
- eustace-2.4.0/tests/test_path_spellings.py +175 -0
- eustace-2.4.0/tests/test_permissions.py +507 -0
- eustace-2.4.0/tests/test_plan.py +350 -0
- eustace-2.4.0/tests/test_pptx.py +469 -0
- eustace-2.4.0/tests/test_screen.py +1540 -0
- eustace-2.4.0/tests/test_sessions.py +94 -0
- eustace-2.4.0/tests/test_skills.py +256 -0
- eustace-2.4.0/tests/test_star.py +1002 -0
- eustace-2.4.0/tests/test_ui.py +343 -0
- eustace-2.4.0/tests/test_uninstall.py +166 -0
- eustace-2.4.0/tests/test_update.py +597 -0
- eustace-2.4.0/tests/test_web_search.py +274 -0
eustace-2.4.0/PKG-INFO
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: eustace
|
|
3
|
+
Version: 2.4.0
|
|
4
|
+
Summary: Office-work AI agent for the Windows console: local files, Word, Excel, PowerPoint, PDF, and Outlook
|
|
5
|
+
Project-URL: Homepage, https://github.com/Colciferr/Eustace
|
|
6
|
+
Project-URL: Source, https://github.com/Colciferr/Eustace
|
|
7
|
+
Project-URL: Issues, https://github.com/Colciferr/Eustace/issues
|
|
8
|
+
Keywords: agent,cli,outlook,office,genai.mil,openai-compatible
|
|
9
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
10
|
+
Classifier: Environment :: Console
|
|
11
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
12
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
15
|
+
Classifier: Topic :: Office/Business
|
|
16
|
+
Requires-Python: >=3.11
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
Requires-Dist: openai
|
|
19
|
+
Requires-Dist: python-dotenv
|
|
20
|
+
Requires-Dist: truststore
|
|
21
|
+
Requires-Dist: rich
|
|
22
|
+
Requires-Dist: openpyxl
|
|
23
|
+
Requires-Dist: pypdf
|
|
24
|
+
Requires-Dist: python-docx
|
|
25
|
+
Requires-Dist: python-pptx
|
|
26
|
+
Requires-Dist: olefile
|
|
27
|
+
Requires-Dist: lxml!=6.2.1
|
|
28
|
+
Requires-Dist: pywin32
|
|
29
|
+
Requires-Dist: prompt_toolkit
|
|
30
|
+
Requires-Dist: wcwidth<0.9
|
|
31
|
+
|
|
32
|
+
# Electronic Utility for Scripting, Tasks, and Automated Command Execution (EUSTACE)
|
|
33
|
+
A local CLI agent powered by **GenAI.mil** models with built-in tools for local files, PowerShell, Microsoft Office (Word, Excel, PowerPoint, PDF), and Classic Outlook.
|
|
34
|
+
Although this was built with GenAI.mil in mind, it can technically access any OpenAI-compatible API endpoint and isn't strictly a DoD tool.
|
|
35
|
+
|
|
36
|
+
## Prerequisites
|
|
37
|
+
* **Windows Workstation** (No administrator rights required)
|
|
38
|
+
* **GenAI.mil API Key and API address** (Eustace will prompt you for both)
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## Installation
|
|
43
|
+
|
|
44
|
+
### 1. Download Eustace
|
|
45
|
+
**Option A - Using Git:**
|
|
46
|
+
Open PowerShell and run: (use http to bypass signing in)
|
|
47
|
+
```powershell
|
|
48
|
+
git clone https://github.com/Colciferr/eustace
|
|
49
|
+
```
|
|
50
|
+
or
|
|
51
|
+
```powershell
|
|
52
|
+
git clone https://gitlab.com/Colciferr/eustace
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
**Option B - Without Git (ZIP Download):**
|
|
56
|
+
1. Click the green **Code** button on GitHub and select **Download ZIP**.
|
|
57
|
+
2. Extract the ZIP folder to your computer (e.g., `Documents\eustace`).
|
|
58
|
+
3. Open **PowerShell** and navigate into that folder:
|
|
59
|
+
```powershell
|
|
60
|
+
cd "$HOME\Documents\eustace"
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**Option C - Manual Copy & Paste (if Git and ZIP downloads are blocked)**
|
|
64
|
+
Open PowerShell and run this command to create the folder and empty files:
|
|
65
|
+
```powershell
|
|
66
|
+
mkdir "$HOME\Documents\eustace" -Force; cd "$HOME\Documents\eustace"
|
|
67
|
+
"cli.py","pyproject.toml","setup.ps1","system_prompt.md" | ForEach-Object { New-Item $_ -ItemType File -Force }
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
On GitHub, click into each of those four files, click the "Copy Raw File" button (top-right, next to "Raw"), paste the contents into the matching local file you created, and save.
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
### 2. Run the Installer Script
|
|
75
|
+
In your PowerShell window, from the `\eustace` folder, run:
|
|
76
|
+
```powershell
|
|
77
|
+
powershell -ExecutionPolicy Bypass -File .\setup.ps1
|
|
78
|
+
```
|
|
79
|
+
**What this script does automatically:**
|
|
80
|
+
* Checks for **Python 3.11+** (and installs Python via `winget` in user-scope if missing).
|
|
81
|
+
* Installs `pipx` and registers the `eustace` command globally for your user account.
|
|
82
|
+
* Creates your user config folder at `C:\Users\<YourUsername>\.eustace\`.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
### 3. Launch & Enter Your API Address and Key
|
|
88
|
+
1. **Close your current PowerShell window** and open a **new** PowerShell terminal (so your updated `PATH` loads).
|
|
89
|
+
2. Navigate to any folder you want to work in and run:
|
|
90
|
+
```powershell
|
|
91
|
+
eustace
|
|
92
|
+
```
|
|
93
|
+
3. On your first run, Eustace will prompt you to paste your **API address** (the one shown on the GenAI.mil site where you got your key) and then your **GenAI.mil API Key**. It saves both to `~/.eustace/.env` (as `EUSTACE_API_URL` and `STARK_API_KEY`).
|
|
94
|
+
4. To use a different OpenAI-compatible service, change `EUSTACE_API_URL` in that file.
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## Using the Screen
|
|
99
|
+
Eustace opens in a full-screen view. `eustace --classic` starts the older scrolling layout.
|
|
100
|
+
|
|
101
|
+
* **Scrolling:** the mouse wheel moves the conversation three lines at a time. **Ctrl+Up/Down** moves one line, **PgUp/PgDn** a page, and **Ctrl+Home/End** jumps to the oldest or newest line. While Eustace is working, plain Up/Down and Home/End do the same.
|
|
102
|
+
* **Choosing:** when Eustace asks a question, use Up/Down and Enter, or click a choice once to highlight it and again to confirm it.
|
|
103
|
+
* **Copying text:** `/copy` puts Eustace's last reply on the clipboard, and `/copy all` the whole conversation. With the mouse on, the classic Windows console can't select text by dragging while Eustace is open; in Windows Terminal, hold **Shift** while dragging.
|
|
104
|
+
* **Turning the mouse off:** add `"mouse": false` to `~/.eustace/config.json`. Dragging to select works again, and the wheel and clicks stop.
|
|
105
|
+
* `/help` lists every command and key.
|
|
106
|
+
|
|
107
|
+
## What Eustace Can Do
|
|
108
|
+
* **Files and folders:** read, search, create, and edit files in the folder you start it in.
|
|
109
|
+
* **Office documents:** read and write Word, Excel, and PowerPoint files, and read PDFs.
|
|
110
|
+
* **Outlook:** list mail folders, read calendars, open drafts for you to send, and set up categories and mail rules. It can't read email bodies or send email.
|
|
111
|
+
* **PowerShell:** run commands for you, asking first.
|
|
112
|
+
* **Clipboard and web:** read or fill the clipboard, and search the web for public information.
|
|
113
|
+
|
|
114
|
+
## Agent Skills
|
|
115
|
+
Eustace supports [Agent Skills](https://agentskills.io): folders of instructions it loads only when a task needs them. Each skill is a folder with a `SKILL.md` file. That file starts with a `name` (lowercase letters, digits, and hyphens, matching the folder name) and a `description` of when to use it.
|
|
116
|
+
|
|
117
|
+
* **Where to put skills:**
|
|
118
|
+
* `~/.eustace/skills/<name>/` loads without asking.
|
|
119
|
+
* `~/.agents/skills/<name>/` and `.agents/skills/<name>/` (in the folder you start Eustace in, or any folder above it up to the repo root) ask once before loading.
|
|
120
|
+
|
|
121
|
+
## Approvals, Auto Mode & Undo
|
|
122
|
+
By default, Eustace asks before it writes a file, runs a command, or reads outside the folder you started it in.
|
|
123
|
+
|
|
124
|
+
* **Auto mode:** press **Shift+Tab** in the input box, type `/auto`, or start with `eustace --auto`. The top bar shows `>> AUTO`. File reads (anywhere), file writes, and PowerShell commands then run without asking. Auto mode is off each time Eustace starts.
|
|
125
|
+
* **Still asks in auto mode:**
|
|
126
|
+
* Shell commands on the deny-list: deleting, registry, accounts, downloads, scheduled tasks and services, remoting, security settings, encoded or dynamically built commands, other interpreters, script files, `git push`/`reset --hard`/`clean`, and any script Eustace itself wrote this session. The prompt says which pattern matched. Add your own patterns (regular expressions) under `"shell_deny"` in `~/.eustace/config.json`; the built-in list can't be shortened.
|
|
127
|
+
* Writes to `AGENT.md`, `system_prompt.md`, `.git`, `.github`, and `.eustace` (these change Eustace's instructions or run automatically).
|
|
128
|
+
* Outlook actions (including every category and rule change), the clipboard, opening files, web searches, and dev-mode data.
|
|
129
|
+
* **Never allowed in any mode:** system folders, secrets and credential files, PHI.
|
|
130
|
+
* **Running as Administrator:** if Eustace runs elevated, the banner and status line show a red `⚠ ADMIN` warning, auto mode is unavailable (`--auto`, Shift+Tab, and `/auto` are refused with a reason), and every approval prompt says the action gets admin rights. Approvals and allow rules still work. Start Eustace from a normal PowerShell window to use auto mode.
|
|
131
|
+
* **Undo:** `/undo` restores every file Eustace's file tools changed in the most recent request that wrote anything (and deletes files that request created), after one confirmation. When more than one request changed files, it lists them so you can pick how far back to go. Changes made by shell commands or in Outlook aren't covered. Checkpoints are kept for 7 days, up to 200 MB.
|
|
132
|
+
|
|
133
|
+
## Customization & Updating
|
|
134
|
+
* **Custom Persona:** You can edit `~/.eustace/system_prompt.md` at any time to customize Eustace's instructions or tone.
|
|
135
|
+
* **Updating:** Run `eustace --update`. If that is blocked on your PC, pull or download the latest files from GitHub and re-run `powershell -ExecutionPolicy Bypass -File .\setup.ps1`.
|
|
136
|
+
* **Uninstalling:** Run `eustace --uninstall`. Your `.eustace` folder (API key, config, saved sessions) is kept.
|
|
137
|
+
|
|
138
|
+
## AI Disclaimer
|
|
139
|
+
Codebase built with Claude Fable 5.1/2 and Gemini 4 Argon. Hardening and security audits mostly done by [Cloudflare](https://github.com/cloudflare/security-audit-skill).
|
eustace-2.4.0/README.md
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# Electronic Utility for Scripting, Tasks, and Automated Command Execution (EUSTACE)
|
|
2
|
+
A local CLI agent powered by **GenAI.mil** models with built-in tools for local files, PowerShell, Microsoft Office (Word, Excel, PowerPoint, PDF), and Classic Outlook.
|
|
3
|
+
Although this was built with GenAI.mil in mind, it can technically access any OpenAI-compatible API endpoint and isn't strictly a DoD tool.
|
|
4
|
+
|
|
5
|
+
## Prerequisites
|
|
6
|
+
* **Windows Workstation** (No administrator rights required)
|
|
7
|
+
* **GenAI.mil API Key and API address** (Eustace will prompt you for both)
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
### 1. Download Eustace
|
|
14
|
+
**Option A - Using Git:**
|
|
15
|
+
Open PowerShell and run: (use http to bypass signing in)
|
|
16
|
+
```powershell
|
|
17
|
+
git clone https://github.com/Colciferr/eustace
|
|
18
|
+
```
|
|
19
|
+
or
|
|
20
|
+
```powershell
|
|
21
|
+
git clone https://gitlab.com/Colciferr/eustace
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
**Option B - Without Git (ZIP Download):**
|
|
25
|
+
1. Click the green **Code** button on GitHub and select **Download ZIP**.
|
|
26
|
+
2. Extract the ZIP folder to your computer (e.g., `Documents\eustace`).
|
|
27
|
+
3. Open **PowerShell** and navigate into that folder:
|
|
28
|
+
```powershell
|
|
29
|
+
cd "$HOME\Documents\eustace"
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
**Option C - Manual Copy & Paste (if Git and ZIP downloads are blocked)**
|
|
33
|
+
Open PowerShell and run this command to create the folder and empty files:
|
|
34
|
+
```powershell
|
|
35
|
+
mkdir "$HOME\Documents\eustace" -Force; cd "$HOME\Documents\eustace"
|
|
36
|
+
"cli.py","pyproject.toml","setup.ps1","system_prompt.md" | ForEach-Object { New-Item $_ -ItemType File -Force }
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
On GitHub, click into each of those four files, click the "Copy Raw File" button (top-right, next to "Raw"), paste the contents into the matching local file you created, and save.
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
### 2. Run the Installer Script
|
|
44
|
+
In your PowerShell window, from the `\eustace` folder, run:
|
|
45
|
+
```powershell
|
|
46
|
+
powershell -ExecutionPolicy Bypass -File .\setup.ps1
|
|
47
|
+
```
|
|
48
|
+
**What this script does automatically:**
|
|
49
|
+
* Checks for **Python 3.11+** (and installs Python via `winget` in user-scope if missing).
|
|
50
|
+
* Installs `pipx` and registers the `eustace` command globally for your user account.
|
|
51
|
+
* Creates your user config folder at `C:\Users\<YourUsername>\.eustace\`.
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
### 3. Launch & Enter Your API Address and Key
|
|
57
|
+
1. **Close your current PowerShell window** and open a **new** PowerShell terminal (so your updated `PATH` loads).
|
|
58
|
+
2. Navigate to any folder you want to work in and run:
|
|
59
|
+
```powershell
|
|
60
|
+
eustace
|
|
61
|
+
```
|
|
62
|
+
3. On your first run, Eustace will prompt you to paste your **API address** (the one shown on the GenAI.mil site where you got your key) and then your **GenAI.mil API Key**. It saves both to `~/.eustace/.env` (as `EUSTACE_API_URL` and `STARK_API_KEY`).
|
|
63
|
+
4. To use a different OpenAI-compatible service, change `EUSTACE_API_URL` in that file.
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## Using the Screen
|
|
68
|
+
Eustace opens in a full-screen view. `eustace --classic` starts the older scrolling layout.
|
|
69
|
+
|
|
70
|
+
* **Scrolling:** the mouse wheel moves the conversation three lines at a time. **Ctrl+Up/Down** moves one line, **PgUp/PgDn** a page, and **Ctrl+Home/End** jumps to the oldest or newest line. While Eustace is working, plain Up/Down and Home/End do the same.
|
|
71
|
+
* **Choosing:** when Eustace asks a question, use Up/Down and Enter, or click a choice once to highlight it and again to confirm it.
|
|
72
|
+
* **Copying text:** `/copy` puts Eustace's last reply on the clipboard, and `/copy all` the whole conversation. With the mouse on, the classic Windows console can't select text by dragging while Eustace is open; in Windows Terminal, hold **Shift** while dragging.
|
|
73
|
+
* **Turning the mouse off:** add `"mouse": false` to `~/.eustace/config.json`. Dragging to select works again, and the wheel and clicks stop.
|
|
74
|
+
* `/help` lists every command and key.
|
|
75
|
+
|
|
76
|
+
## What Eustace Can Do
|
|
77
|
+
* **Files and folders:** read, search, create, and edit files in the folder you start it in.
|
|
78
|
+
* **Office documents:** read and write Word, Excel, and PowerPoint files, and read PDFs.
|
|
79
|
+
* **Outlook:** list mail folders, read calendars, open drafts for you to send, and set up categories and mail rules. It can't read email bodies or send email.
|
|
80
|
+
* **PowerShell:** run commands for you, asking first.
|
|
81
|
+
* **Clipboard and web:** read or fill the clipboard, and search the web for public information.
|
|
82
|
+
|
|
83
|
+
## Agent Skills
|
|
84
|
+
Eustace supports [Agent Skills](https://agentskills.io): folders of instructions it loads only when a task needs them. Each skill is a folder with a `SKILL.md` file. That file starts with a `name` (lowercase letters, digits, and hyphens, matching the folder name) and a `description` of when to use it.
|
|
85
|
+
|
|
86
|
+
* **Where to put skills:**
|
|
87
|
+
* `~/.eustace/skills/<name>/` loads without asking.
|
|
88
|
+
* `~/.agents/skills/<name>/` and `.agents/skills/<name>/` (in the folder you start Eustace in, or any folder above it up to the repo root) ask once before loading.
|
|
89
|
+
|
|
90
|
+
## Approvals, Auto Mode & Undo
|
|
91
|
+
By default, Eustace asks before it writes a file, runs a command, or reads outside the folder you started it in.
|
|
92
|
+
|
|
93
|
+
* **Auto mode:** press **Shift+Tab** in the input box, type `/auto`, or start with `eustace --auto`. The top bar shows `>> AUTO`. File reads (anywhere), file writes, and PowerShell commands then run without asking. Auto mode is off each time Eustace starts.
|
|
94
|
+
* **Still asks in auto mode:**
|
|
95
|
+
* Shell commands on the deny-list: deleting, registry, accounts, downloads, scheduled tasks and services, remoting, security settings, encoded or dynamically built commands, other interpreters, script files, `git push`/`reset --hard`/`clean`, and any script Eustace itself wrote this session. The prompt says which pattern matched. Add your own patterns (regular expressions) under `"shell_deny"` in `~/.eustace/config.json`; the built-in list can't be shortened.
|
|
96
|
+
* Writes to `AGENT.md`, `system_prompt.md`, `.git`, `.github`, and `.eustace` (these change Eustace's instructions or run automatically).
|
|
97
|
+
* Outlook actions (including every category and rule change), the clipboard, opening files, web searches, and dev-mode data.
|
|
98
|
+
* **Never allowed in any mode:** system folders, secrets and credential files, PHI.
|
|
99
|
+
* **Running as Administrator:** if Eustace runs elevated, the banner and status line show a red `⚠ ADMIN` warning, auto mode is unavailable (`--auto`, Shift+Tab, and `/auto` are refused with a reason), and every approval prompt says the action gets admin rights. Approvals and allow rules still work. Start Eustace from a normal PowerShell window to use auto mode.
|
|
100
|
+
* **Undo:** `/undo` restores every file Eustace's file tools changed in the most recent request that wrote anything (and deletes files that request created), after one confirmation. When more than one request changed files, it lists them so you can pick how far back to go. Changes made by shell commands or in Outlook aren't covered. Checkpoints are kept for 7 days, up to 200 MB.
|
|
101
|
+
|
|
102
|
+
## Customization & Updating
|
|
103
|
+
* **Custom Persona:** You can edit `~/.eustace/system_prompt.md` at any time to customize Eustace's instructions or tone.
|
|
104
|
+
* **Updating:** Run `eustace --update`. If that is blocked on your PC, pull or download the latest files from GitHub and re-run `powershell -ExecutionPolicy Bypass -File .\setup.ps1`.
|
|
105
|
+
* **Uninstalling:** Run `eustace --uninstall`. Your `.eustace` folder (API key, config, saved sessions) is kept.
|
|
106
|
+
|
|
107
|
+
## AI Disclaimer
|
|
108
|
+
Codebase built with Claude Fable 5.1/2 and Gemini 4 Argon. Hardening and security audits mostly done by [Cloudflare](https://github.com/cloudflare/security-audit-skill).
|