kanegraffiti-solace 0.1.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.
- kanegraffiti_solace-0.1.0/LICENSE +21 -0
- kanegraffiti_solace-0.1.0/PKG-INFO +593 -0
- kanegraffiti_solace-0.1.0/README.md +571 -0
- kanegraffiti_solace-0.1.0/kanegraffiti_solace.egg-info/PKG-INFO +593 -0
- kanegraffiti_solace-0.1.0/kanegraffiti_solace.egg-info/SOURCES.txt +142 -0
- kanegraffiti_solace-0.1.0/kanegraffiti_solace.egg-info/dependency_links.txt +1 -0
- kanegraffiti_solace-0.1.0/kanegraffiti_solace.egg-info/entry_points.txt +2 -0
- kanegraffiti_solace-0.1.0/kanegraffiti_solace.egg-info/requires.txt +8 -0
- kanegraffiti_solace-0.1.0/kanegraffiti_solace.egg-info/top_level.txt +1 -0
- kanegraffiti_solace-0.1.0/pyproject.toml +56 -0
- kanegraffiti_solace-0.1.0/setup.cfg +4 -0
- kanegraffiti_solace-0.1.0/solace/__init__.py +0 -0
- kanegraffiti_solace-0.1.0/solace/__main__.py +5 -0
- kanegraffiti_solace-0.1.0/solace/assistant_router.py +75 -0
- kanegraffiti_solace-0.1.0/solace/bash_task.py +209 -0
- kanegraffiti_solace-0.1.0/solace/cli.py +966 -0
- kanegraffiti_solace-0.1.0/solace/commands.py +559 -0
- kanegraffiti_solace-0.1.0/solace/config.py +95 -0
- kanegraffiti_solace-0.1.0/solace/configuration.py +308 -0
- kanegraffiti_solace-0.1.0/solace/device_benchmark.py +189 -0
- kanegraffiti_solace-0.1.0/solace/devmode.py +36 -0
- kanegraffiti_solace-0.1.0/solace/english_editor.py +233 -0
- kanegraffiti_solace-0.1.0/solace/entry.py +25 -0
- kanegraffiti_solace-0.1.0/solace/excel_skill.py +573 -0
- kanegraffiti_solace-0.1.0/solace/file_skill.py +494 -0
- kanegraffiti_solace-0.1.0/solace/journal.py +207 -0
- kanegraffiti_solace-0.1.0/solace/knowledge/programming/bash/README.md +14 -0
- kanegraffiti_solace-0.1.0/solace/knowledge/programming/bash/commands.json +86 -0
- kanegraffiti_solace-0.1.0/solace/knowledge/programming/bash/errors.json +72 -0
- kanegraffiti_solace-0.1.0/solace/knowledge/programming/bash/examples.json +42 -0
- kanegraffiti_solace-0.1.0/solace/knowledge/programming/bash/flags.json +21 -0
- kanegraffiti_solace-0.1.0/solace/knowledge/programming/bash/patterns.json +125 -0
- kanegraffiti_solace-0.1.0/solace/knowledge/programming/bash/safety.json +51 -0
- kanegraffiti_solace-0.1.0/solace/knowledge/programming/bash/scripts.json +41 -0
- kanegraffiti_solace-0.1.0/solace/knowledge/programming/bash/topics.json +56 -0
- kanegraffiti_solace-0.1.0/solace/knowledge/programming/css/errors.json +12 -0
- kanegraffiti_solace-0.1.0/solace/knowledge/programming/css/examples.json +42 -0
- kanegraffiti_solace-0.1.0/solace/knowledge/programming/html/errors.json +12 -0
- kanegraffiti_solace-0.1.0/solace/knowledge/programming/html/examples.json +42 -0
- kanegraffiti_solace-0.1.0/solace/knowledge/programming/javascript/errors.json +12 -0
- kanegraffiti_solace-0.1.0/solace/knowledge/programming/javascript/examples.json +42 -0
- kanegraffiti_solace-0.1.0/solace/knowledge/programming/python/errors.json +12 -0
- kanegraffiti_solace-0.1.0/solace/knowledge/programming/python/examples.json +42 -0
- kanegraffiti_solace-0.1.0/solace/knowledge/programming/python/functions.json +27 -0
- kanegraffiti_solace-0.1.0/solace/launcher.py +1075 -0
- kanegraffiti_solace-0.1.0/solace/local_llm.py +155 -0
- kanegraffiti_solace-0.1.0/solace/logic/__init__.py +0 -0
- kanegraffiti_solace-0.1.0/solace/logic/asker.py +53 -0
- kanegraffiti_solace-0.1.0/solace/logic/bash_intel.py +419 -0
- kanegraffiti_solace-0.1.0/solace/logic/code_history.py +53 -0
- kanegraffiti_solace-0.1.0/solace/logic/codegen.py +102 -0
- kanegraffiti_solace-0.1.0/solace/logic/coder.py +74 -0
- kanegraffiti_solace-0.1.0/solace/logic/companion.py +97 -0
- kanegraffiti_solace-0.1.0/solace/logic/converse.py +241 -0
- kanegraffiti_solace-0.1.0/solace/logic/debugger.py +54 -0
- kanegraffiti_solace-0.1.0/solace/logic/diary.py +107 -0
- kanegraffiti_solace-0.1.0/solace/logic/emotion.py +35 -0
- kanegraffiti_solace-0.1.0/solace/logic/fallback.py +32 -0
- kanegraffiti_solace-0.1.0/solace/logic/importer.py +74 -0
- kanegraffiti_solace-0.1.0/solace/logic/knowledge.py +87 -0
- kanegraffiti_solace-0.1.0/solace/logic/knowledge_index.py +47 -0
- kanegraffiti_solace-0.1.0/solace/logic/memory.py +35 -0
- kanegraffiti_solace-0.1.0/solace/logic/mimic.py +281 -0
- kanegraffiti_solace-0.1.0/solace/logic/notes.py +85 -0
- kanegraffiti_solace-0.1.0/solace/logic/parser.py +11 -0
- kanegraffiti_solace-0.1.0/solace/logic/python_intel.py +82 -0
- kanegraffiti_solace-0.1.0/solace/logic/recall.py +107 -0
- kanegraffiti_solace-0.1.0/solace/logic/reference.py +60 -0
- kanegraffiti_solace-0.1.0/solace/logic/responder.py +58 -0
- kanegraffiti_solace-0.1.0/solace/logic/summary.py +45 -0
- kanegraffiti_solace-0.1.0/solace/logic/todo.py +66 -0
- kanegraffiti_solace-0.1.0/solace/main.py +155 -0
- kanegraffiti_solace-0.1.0/solace/memory.py +96 -0
- kanegraffiti_solace-0.1.0/solace/mimic.py +73 -0
- kanegraffiti_solace-0.1.0/solace/modes/__init__.py +0 -0
- kanegraffiti_solace-0.1.0/solace/modes/chat_mode.py +16 -0
- kanegraffiti_solace-0.1.0/solace/modes/diary_mode.py +43 -0
- kanegraffiti_solace-0.1.0/solace/modes/teaching_mode.py +17 -0
- kanegraffiti_solace-0.1.0/solace/plugins/__init__.py +30 -0
- kanegraffiti_solace-0.1.0/solace/plugins/motivational_quotes.py +21 -0
- kanegraffiti_solace-0.1.0/solace/plugins/weather_plugin.py +14 -0
- kanegraffiti_solace-0.1.0/solace/project_task.py +450 -0
- kanegraffiti_solace-0.1.0/solace/semantic.py +304 -0
- kanegraffiti_solace-0.1.0/solace/settings_manager.py +59 -0
- kanegraffiti_solace-0.1.0/solace/sync.py +286 -0
- kanegraffiti_solace-0.1.0/solace/teach_loader.py +18 -0
- kanegraffiti_solace-0.1.0/solace/termux_compat.py +206 -0
- kanegraffiti_solace-0.1.0/solace/toolkit.py +91 -0
- kanegraffiti_solace-0.1.0/solace/trainer.py +140 -0
- kanegraffiti_solace-0.1.0/solace/tui/__init__.py +5 -0
- kanegraffiti_solace-0.1.0/solace/tui/app.py +66 -0
- kanegraffiti_solace-0.1.0/solace/tui/controllers.py +145 -0
- kanegraffiti_solace-0.1.0/solace/tui/screens.py +188 -0
- kanegraffiti_solace-0.1.0/solace/updater.py +122 -0
- kanegraffiti_solace-0.1.0/solace/user_manual.py +49 -0
- kanegraffiti_solace-0.1.0/solace/utils/__init__.py +6 -0
- kanegraffiti_solace-0.1.0/solace/utils/code_extract.py +45 -0
- kanegraffiti_solace-0.1.0/solace/utils/crypto_manager.py +37 -0
- kanegraffiti_solace-0.1.0/solace/utils/datetime.py +35 -0
- kanegraffiti_solace-0.1.0/solace/utils/encryption.py +20 -0
- kanegraffiti_solace-0.1.0/solace/utils/envcheck.py +26 -0
- kanegraffiti_solace-0.1.0/solace/utils/filehandler.py +77 -0
- kanegraffiti_solace-0.1.0/solace/utils/filetools.py +40 -0
- kanegraffiti_solace-0.1.0/solace/utils/keys.py +9 -0
- kanegraffiti_solace-0.1.0/solace/utils/security.py +26 -0
- kanegraffiti_solace-0.1.0/solace/utils/storage.py +62 -0
- kanegraffiti_solace-0.1.0/solace/utils/voice.py +134 -0
- kanegraffiti_solace-0.1.0/solace/voice_training.py +226 -0
- kanegraffiti_solace-0.1.0/tests/test_assistant_router.py +32 -0
- kanegraffiti_solace-0.1.0/tests/test_bash_fluency_benchmark.py +56 -0
- kanegraffiti_solace-0.1.0/tests/test_bash_intel.py +117 -0
- kanegraffiti_solace-0.1.0/tests/test_bash_task.py +73 -0
- kanegraffiti_solace-0.1.0/tests/test_cli_bash_commands.py +53 -0
- kanegraffiti_solace-0.1.0/tests/test_cli_toolkit_command.py +46 -0
- kanegraffiti_solace-0.1.0/tests/test_companion.py +46 -0
- kanegraffiti_solace-0.1.0/tests/test_configuration.py +59 -0
- kanegraffiti_solace-0.1.0/tests/test_conversation_skills.py +97 -0
- kanegraffiti_solace-0.1.0/tests/test_device_benchmark.py +75 -0
- kanegraffiti_solace-0.1.0/tests/test_english_editor.py +81 -0
- kanegraffiti_solace-0.1.0/tests/test_excel_skill.py +90 -0
- kanegraffiti_solace-0.1.0/tests/test_exit_commands.py +19 -0
- kanegraffiti_solace-0.1.0/tests/test_file_language.py +34 -0
- kanegraffiti_solace-0.1.0/tests/test_file_skill.py +95 -0
- kanegraffiti_solace-0.1.0/tests/test_install_argument_forwarding.py +58 -0
- kanegraffiti_solace-0.1.0/tests/test_installer_refresh.py +74 -0
- kanegraffiti_solace-0.1.0/tests/test_integration_cli.py +49 -0
- kanegraffiti_solace-0.1.0/tests/test_journal.py +53 -0
- kanegraffiti_solace-0.1.0/tests/test_launcher_assist.py +45 -0
- kanegraffiti_solace-0.1.0/tests/test_launcher_do.py +126 -0
- kanegraffiti_solace-0.1.0/tests/test_launcher_excel_unavailable.py +37 -0
- kanegraffiti_solace-0.1.0/tests/test_launcher_grammar.py +48 -0
- kanegraffiti_solace-0.1.0/tests/test_launcher_update.py +61 -0
- kanegraffiti_solace-0.1.0/tests/test_local_llm.py +72 -0
- kanegraffiti_solace-0.1.0/tests/test_memory.py +45 -0
- kanegraffiti_solace-0.1.0/tests/test_offline_companion.py +25 -0
- kanegraffiti_solace-0.1.0/tests/test_project_task.py +237 -0
- kanegraffiti_solace-0.1.0/tests/test_sync_privacy.py +82 -0
- kanegraffiti_solace-0.1.0/tests/test_termux_compat.py +59 -0
- kanegraffiti_solace-0.1.0/tests/test_termux_refresh_without_mirror.py +95 -0
- kanegraffiti_solace-0.1.0/tests/test_termux_requirements.py +84 -0
- kanegraffiti_solace-0.1.0/tests/test_toolkit.py +61 -0
- kanegraffiti_solace-0.1.0/tests/test_tui_bindings.py +15 -0
- kanegraffiti_solace-0.1.0/tests/test_updater.py +128 -0
- kanegraffiti_solace-0.1.0/tests/test_voice_training.py +104 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Kanegraffiti
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,593 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: kanegraffiti-solace
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: An offline-first terminal companion for journaling, coding and everyday work
|
|
5
|
+
Author: Kanegraffiti
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Repository, https://github.com/Kanegraffiti/Solace
|
|
8
|
+
Project-URL: Issues, https://github.com/Kanegraffiti/Solace/issues
|
|
9
|
+
Classifier: Environment :: Console
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Requires-Python: >=3.9
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Requires-Dist: cryptography>=41
|
|
15
|
+
Requires-Dist: openpyxl>=3.1
|
|
16
|
+
Requires-Dist: rich>=13
|
|
17
|
+
Requires-Dist: termcolor>=2
|
|
18
|
+
Requires-Dist: textual>=0.50
|
|
19
|
+
Provides-Extra: pdf
|
|
20
|
+
Requires-Dist: fpdf2>=2.7; extra == "pdf"
|
|
21
|
+
Dynamic: license-file
|
|
22
|
+
|
|
23
|
+
# Solace
|
|
24
|
+
|
|
25
|
+
Solace is a local-first personal journal, memory search tool, offline coding
|
|
26
|
+
companion, Excel helper, safe file manager, and optional on-device AI shell.
|
|
27
|
+
The primary interface is a Rich terminal CLI designed to work especially well
|
|
28
|
+
in Termux. A Textual TUI and local React/FastAPI interface remain optional.
|
|
29
|
+
|
|
30
|
+
The journal, memory recall, Bash/Python knowledge, Excel reference layer, file
|
|
31
|
+
manager, encryption, and local Qwen integration do not require a hosted AI
|
|
32
|
+
service. Qwen is used as an explanation/reasoning layer where useful; it does
|
|
33
|
+
not receive unrestricted shell execution.
|
|
34
|
+
|
|
35
|
+
> **Already installed?** Update Solace directly from the terminal with
|
|
36
|
+
> `solace update`. The command safely fast-forwards from the canonical GitHub
|
|
37
|
+
> repository, refreshes the application environment, and preserves your local
|
|
38
|
+
> configuration and user data.
|
|
39
|
+
|
|
40
|
+
## What Solace does
|
|
41
|
+
|
|
42
|
+
- **Journal and personal knowledge:** diary entries, notes, todos, quotes, tags,
|
|
43
|
+
search, and weekly/monthly recaps.
|
|
44
|
+
- **Local memory companion:** `/chat` uses local journal recall and bundled
|
|
45
|
+
deterministic knowledge rather than a cloud chatbot.
|
|
46
|
+
- **Offline coding reference:** Bash/Python recipes, Bash syntax explanations,
|
|
47
|
+
common-error matching, and user-taught snippets.
|
|
48
|
+
- **Excel skill:** formula lookup, PivotTable/chart/table/data-validation
|
|
49
|
+
guidance, workbook inspection, safe formula writes, chart creation, and
|
|
50
|
+
pivot-style summary worksheets.
|
|
51
|
+
- **Safe file manager:** natural commands to find, copy, move, rename, organize,
|
|
52
|
+
trash, restore, inspect history, and undo supported file operations.
|
|
53
|
+
- **Optional local Qwen:** Qwen2.5-Coder-1.5B-Instruct Q4_K_M through llama.cpp
|
|
54
|
+
with `/qwen` or the standalone `qwen` command.
|
|
55
|
+
- **Deterministic-first assistant:** `/assist` routes requests to inspectable local
|
|
56
|
+
tools first. Optional GGUF models run offline through llama.cpp only when the
|
|
57
|
+
configured `off`, `ask`, or `auto` policy permits it.
|
|
58
|
+
- **Privacy controls:** journal content is encrypted at rest by default, with an
|
|
59
|
+
optional startup password.
|
|
60
|
+
- **Export, backup, and sync:** Markdown/PDF export, local backups, and optional
|
|
61
|
+
S3 or WebDAV sync.
|
|
62
|
+
- **Scriptable terminal workflow:** `solace` works from any directory and still
|
|
63
|
+
supports `-c`, `--command-file`, and the Textual TUI.
|
|
64
|
+
|
|
65
|
+
## Requirements
|
|
66
|
+
|
|
67
|
+
Core Solace requires:
|
|
68
|
+
|
|
69
|
+
- Python 3.9+
|
|
70
|
+
- Git
|
|
71
|
+
|
|
72
|
+
`openpyxl` is installed with the core dependencies for Excel workbook support.
|
|
73
|
+
|
|
74
|
+
Optional components add their own requirements:
|
|
75
|
+
|
|
76
|
+
- Node.js/npm for the web frontend
|
|
77
|
+
- platform audio libraries for voice features
|
|
78
|
+
- Termux + about 1.12 GB for the recommended Qwen GGUF, plus llama.cpp build
|
|
79
|
+
files, if you enable local Qwen
|
|
80
|
+
|
|
81
|
+
## Install in Termux
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
pkg install -y git python
|
|
85
|
+
git clone https://github.com/Kanegraffiti/Solace.git
|
|
86
|
+
cd Solace
|
|
87
|
+
bash install.sh
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
The Termux installer deliberately does **not** ask pip to compile `cryptography`
|
|
91
|
+
from source. Termux ships an Android-patched `python-cryptography` package, so
|
|
92
|
+
`install.sh` uses that package and creates the project `.venv` with
|
|
93
|
+
`--system-site-packages`. It uses Termux's packaged pip without attempting to
|
|
94
|
+
upgrade it from PyPI.
|
|
95
|
+
|
|
96
|
+
The installer also handles two current Termux edge cases:
|
|
97
|
+
|
|
98
|
+
1. Termux packages pip separately, so `python-pip` is established before
|
|
99
|
+
`python-cryptography` is configured.
|
|
100
|
+
2. If a previous cryptography package setup failed while pip was missing, Solace
|
|
101
|
+
detects the missing CFFI runtime and performs one bounded reinstall of
|
|
102
|
+
Termux's package so its own dependency setup can run correctly.
|
|
103
|
+
|
|
104
|
+
Some Android/Termux/Python combinations can additionally have native loader
|
|
105
|
+
visibility problems. `solace/termux_compat.py` first loads the active
|
|
106
|
+
interpreter's `libpython` with platform-correct global visibility and uses
|
|
107
|
+
bounded file-based re-exec fallbacks only when necessary. No Python version is
|
|
108
|
+
hard-coded.
|
|
109
|
+
|
|
110
|
+
A full `pkg upgrade` is not the normal recovery step for these Solace install
|
|
111
|
+
checks. If a compatibility check fails, the installer surfaces the underlying
|
|
112
|
+
traceback so the actual missing library/symbol can be diagnosed.
|
|
113
|
+
|
|
114
|
+
The Termux core dependency file intentionally excludes optional web-server and
|
|
115
|
+
voice stacks that can trigger large native source builds on Android.
|
|
116
|
+
|
|
117
|
+
If Termux later upgrades Python, rerunning `bash install.sh` detects an obsolete
|
|
118
|
+
Solace `.venv` and recreates only that disposable environment. Your journal,
|
|
119
|
+
configuration, Qwen model, llama.cpp checkout, and files outside `.venv` remain
|
|
120
|
+
untouched.
|
|
121
|
+
|
|
122
|
+
On Termux, the launchers are written directly to `$PREFIX/bin`.
|
|
123
|
+
|
|
124
|
+
Start Solace from anywhere:
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
solace
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Once installed, you do not need to enter the repository or manually run Git
|
|
131
|
+
to receive new releases. From the normal CLI, simply use:
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
solace update
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### Refresh an existing checkout
|
|
138
|
+
|
|
139
|
+
From any directory, the installed launcher can safely update its own checkout:
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
solace update
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
This accepts only a clean `main` checkout connected to the canonical
|
|
146
|
+
`Kanegraffiti/Solace` repository and performs a fast-forward update. It refuses
|
|
147
|
+
local changes, divergent commits, unexpected remotes, and detached/feature
|
|
148
|
+
branches rather than overwriting them. After a real code update it refreshes
|
|
149
|
+
the disposable `.venv`, dependencies, and launchers through `install.sh`.
|
|
150
|
+
Configuration, journals, training data, trash, file history, local models, and
|
|
151
|
+
the llama.cpp checkout remain outside the files replaced by Git.
|
|
152
|
+
|
|
153
|
+
The manual equivalent remains:
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
cd ~/Solace
|
|
157
|
+
git pull
|
|
158
|
+
bash install.sh
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
You can also refresh only launchers/configuration:
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
python3 install.py --skip-deps
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
Direct checkout fallback:
|
|
168
|
+
|
|
169
|
+
```bash
|
|
170
|
+
python3 solace/launcher.py
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
## Startup mini-manual
|
|
174
|
+
|
|
175
|
+
Interactive starts show a small quick-start panel.
|
|
176
|
+
|
|
177
|
+
```text
|
|
178
|
+
/manual off hide it on future starts
|
|
179
|
+
/manual show it now
|
|
180
|
+
/manual on restore it on startup
|
|
181
|
+
/manual status show the current setting
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
Scripted `solace -c ...` runs do not print the startup manual.
|
|
185
|
+
|
|
186
|
+
## Excel skill
|
|
187
|
+
|
|
188
|
+
Solace treats Excel as a first-class local skill rather than simply asking the
|
|
189
|
+
model to guess formulas.
|
|
190
|
+
|
|
191
|
+
### Formula knowledge
|
|
192
|
+
|
|
193
|
+
`/excel functions` uses openpyxl's local Excel formula-name registry plus a
|
|
194
|
+
modern-function supplement (dynamic arrays, LAMBDA helpers, regex functions,
|
|
195
|
+
GROUPBY/PIVOTBY, XLOOKUP/XMATCH, and related functions).
|
|
196
|
+
|
|
197
|
+
Detailed deterministic recipes are bundled for the most-used formula families,
|
|
198
|
+
including:
|
|
199
|
+
|
|
200
|
+
- SUM/SUMIF/SUMIFS, COUNT/COUNTIF/COUNTIFS, AVERAGEIF/AVERAGEIFS
|
|
201
|
+
- IF/IFS/AND/OR/NOT, IFERROR/IFNA
|
|
202
|
+
- XLOOKUP/VLOOKUP/HLOOKUP, INDEX/MATCH/XMATCH
|
|
203
|
+
- FILTER/UNIQUE/SORT/SORTBY/SEQUENCE
|
|
204
|
+
- LET/LAMBDA
|
|
205
|
+
- TEXTJOIN/CONCAT/TEXTSPLIT/TEXTBEFORE/TEXTAFTER
|
|
206
|
+
- date/time, finance, statistics, rounding, regex and array helpers
|
|
207
|
+
|
|
208
|
+
Examples:
|
|
209
|
+
|
|
210
|
+
```text
|
|
211
|
+
/excel XLOOKUP
|
|
212
|
+
/excel SUMIFS
|
|
213
|
+
/excel how do I fix #SPILL!
|
|
214
|
+
/excel functions regex
|
|
215
|
+
/excel functions look
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
If a question is outside the deterministic recipes and local Qwen is ready,
|
|
219
|
+
Solace opens Qwen with an Excel-specific prompt that instructs it not to invent
|
|
220
|
+
functions and to call out version limitations.
|
|
221
|
+
|
|
222
|
+
### PivotTables and charts
|
|
223
|
+
|
|
224
|
+
```text
|
|
225
|
+
/excel pivot table
|
|
226
|
+
/excel chart
|
|
227
|
+
/excel conditional formatting
|
|
228
|
+
/excel data validation
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
Solace teaches native Excel PivotTable setup step-by-step. Workbook automation
|
|
232
|
+
uses `openpyxl`, which preserves existing native PivotTables but is not intended
|
|
233
|
+
to create new ones. Therefore `/excel summarize` creates a normal, clearly
|
|
234
|
+
labelled grouped summary worksheet rather than claiming it created a native
|
|
235
|
+
PivotTable.
|
|
236
|
+
|
|
237
|
+
### Inspect a workbook
|
|
238
|
+
|
|
239
|
+
```text
|
|
240
|
+
/excel inspect sales.xlsx
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
If the filename is not an exact path, Solace uses the same file search and
|
|
244
|
+
ambiguity handling as `/file`. Inspection reports each sheet's row/column count,
|
|
245
|
+
formula count, Excel Tables, charts, and existing pivots.
|
|
246
|
+
|
|
247
|
+
### Write a formula safely
|
|
248
|
+
|
|
249
|
+
```text
|
|
250
|
+
/excel set sales.xlsx | Sales | E2 | SUM(B2:D2)
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
Workbook-changing Excel commands create a **new copy** such as
|
|
254
|
+
`sales-formula.xlsx`; the source workbook is not silently overwritten.
|
|
255
|
+
|
|
256
|
+
### Create a chart
|
|
257
|
+
|
|
258
|
+
```text
|
|
259
|
+
/excel make-chart sales.xlsx | Sales | A1:B20 | column
|
|
260
|
+
/excel make-chart sales.xlsx | Sales | A1:B20 | line | H2
|
|
261
|
+
/excel make-chart sales.xlsx | Sales | A1:B20 | pie
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
Supported automated chart types in this first version are bar, column, line,
|
|
265
|
+
and pie. Solace's teaching layer also explains when scatter and other native
|
|
266
|
+
Excel chart types are more appropriate.
|
|
267
|
+
|
|
268
|
+
### Create a pivot-style summary sheet
|
|
269
|
+
|
|
270
|
+
```text
|
|
271
|
+
/excel summarize sales.xlsx | Sales | Region | Revenue | sum
|
|
272
|
+
/excel summarize sales.xlsx | Sales | Region | Revenue | average
|
|
273
|
+
/excel summarize sales.xlsx | Sales | Region | OrderID | count
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
The output is a new workbook copy containing `Solace Summary`.
|
|
277
|
+
|
|
278
|
+
## Safe file manager
|
|
279
|
+
|
|
280
|
+
The file manager uses deterministic Python operations. Qwen does **not** get
|
|
281
|
+
`rm`, `mv`, `cp`, or arbitrary shell access.
|
|
282
|
+
|
|
283
|
+
### Natural file commands
|
|
284
|
+
|
|
285
|
+
```text
|
|
286
|
+
/file find my invoice
|
|
287
|
+
/file rename project invoice.pdf to final invoice.pdf
|
|
288
|
+
/file copy DavidDoku.jpg to ~/Documents
|
|
289
|
+
/file move report.xlsx to ~/Documents/Finance
|
|
290
|
+
/file make folder Client Assets
|
|
291
|
+
/file show 20 largest files
|
|
292
|
+
/file files modified today
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
If exactly one source matches, Solace shows the action and asks for confirmation.
|
|
296
|
+
If several files match, it shows numbered choices. If nothing matches, it asks
|
|
297
|
+
for an exact path, so the original high-level action can continue without being
|
|
298
|
+
retyped.
|
|
299
|
+
|
|
300
|
+
Scripted/non-interactive mode never auto-confirms file-changing operations.
|
|
301
|
+
|
|
302
|
+
### Safe delete and restore
|
|
303
|
+
|
|
304
|
+
```text
|
|
305
|
+
/file delete old-budget.xlsx
|
|
306
|
+
/file trash old-report.pdf
|
|
307
|
+
/file show trash
|
|
308
|
+
/file restore old-budget.xlsx
|
|
309
|
+
/file undo
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
`delete`, `remove`, and `trash` all mean the same safe operation: move the item
|
|
313
|
+
to `~/.solace/trash/`. Solace never maps those commands directly to `rm`.
|
|
314
|
+
|
|
315
|
+
### History
|
|
316
|
+
|
|
317
|
+
```text
|
|
318
|
+
/file history
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
Solace records its own file transactions in:
|
|
322
|
+
|
|
323
|
+
```text
|
|
324
|
+
~/.solace/file-history.jsonl
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
History is local and records paths/actions needed for recovery and undo.
|
|
328
|
+
|
|
329
|
+
### File safety boundary
|
|
330
|
+
|
|
331
|
+
Mutations are restricted to user-owned roots: the user's home directory and
|
|
332
|
+
Termux shared-storage roots discovered under `~/storage/`. Existing destination
|
|
333
|
+
paths are not overwritten. Symlink-resolved destinations outside those roots are
|
|
334
|
+
refused.
|
|
335
|
+
|
|
336
|
+
## Local Qwen on Termux
|
|
337
|
+
|
|
338
|
+
Qwen remains optional. Solace does **not** download a gigabyte-scale model or
|
|
339
|
+
compile llama.cpp during a normal install.
|
|
340
|
+
|
|
341
|
+
Set it up explicitly:
|
|
342
|
+
|
|
343
|
+
```bash
|
|
344
|
+
cd ~/Solace
|
|
345
|
+
bash scripts/setup-qwen-termux.sh
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
Or:
|
|
349
|
+
|
|
350
|
+
```bash
|
|
351
|
+
python3 install.py --skip-deps --setup-qwen
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
The helper reuses an existing `~/llama.cpp` checkout when available, builds only
|
|
355
|
+
`llama-cli`, downloads the recommended Qwen Q4_K_M model only when missing,
|
|
356
|
+
verifies its published SHA-256, and installs the standalone `qwen` command.
|
|
357
|
+
|
|
358
|
+
Phone-friendly defaults:
|
|
359
|
+
|
|
360
|
+
- context: `2048`
|
|
361
|
+
- threads: `4`
|
|
362
|
+
- generated-token limit: `512`
|
|
363
|
+
- llama.cpp binary: `~/llama.cpp/build/bin/llama-cli`
|
|
364
|
+
- model: `~/models/qwen2.5-coder-1.5b/qwen2.5-coder-1.5b-instruct-q4_k_m.gguf`
|
|
365
|
+
|
|
366
|
+
Override them without editing source:
|
|
367
|
+
|
|
368
|
+
```bash
|
|
369
|
+
export SOLACE_QWEN_CONTEXT=1024
|
|
370
|
+
export SOLACE_QWEN_THREADS=2
|
|
371
|
+
export SOLACE_QWEN_TOKENS=256
|
|
372
|
+
export SOLACE_LLAMA_CLI="$HOME/other-llama/build/bin/llama-cli"
|
|
373
|
+
export SOLACE_LLAMA_MODEL="$HOME/models/another-compatible-model.gguf"
|
|
374
|
+
export SOLACE_QWEN_MODEL="$HOME/models/another-model.gguf"
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
`SOLACE_LLAMA_MODEL` accepts any GGUF model supported by the installed
|
|
378
|
+
`llama-cli` and takes precedence over the older `SOLACE_QWEN_MODEL` variable.
|
|
379
|
+
This lets `/assist` use a device-appropriate open model while keeping existing
|
|
380
|
+
Qwen installations fully compatible. Solace never downloads or selects a new
|
|
381
|
+
model implicitly.
|
|
382
|
+
|
|
383
|
+
Use directly:
|
|
384
|
+
|
|
385
|
+
```bash
|
|
386
|
+
qwen
|
|
387
|
+
qwen "Explain this Bash pipeline and point out anything dangerous"
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
Inside Solace:
|
|
391
|
+
|
|
392
|
+
```text
|
|
393
|
+
/qwen status
|
|
394
|
+
/qwen Write a Bash function that checks whether a command exists
|
|
395
|
+
/qwen
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
Solace invokes llama.cpp with an argument list rather than through a shell, so a
|
|
399
|
+
prompt is not interpreted as a Bash command.
|
|
400
|
+
|
|
401
|
+
## Using the CLI
|
|
402
|
+
|
|
403
|
+
Plain text that is not a command remains a diary entry.
|
|
404
|
+
|
|
405
|
+
```text
|
|
406
|
+
I finished the first deployment today
|
|
407
|
+
/notes Release checklist and rollback steps
|
|
408
|
+
/todo Verify the production backup
|
|
409
|
+
/search deployment
|
|
410
|
+
/summarize week
|
|
411
|
+
/chat What did I decide about the deployment?
|
|
412
|
+
/excel XLOOKUP
|
|
413
|
+
/file find deployment notes
|
|
414
|
+
/qwen Explain rsync --delete and its risks
|
|
415
|
+
```
|
|
416
|
+
|
|
417
|
+
### Main commands
|
|
418
|
+
|
|
419
|
+
| Command | Purpose |
|
|
420
|
+
| --- | --- |
|
|
421
|
+
| `/diary [text]`, `/notes [text]`, `/todo [text]`, `/quote [text]` | Save a dated, tagged entry. |
|
|
422
|
+
| `/search <query>` | Search journal text, tags, and dates. |
|
|
423
|
+
| `/summarize [week\|month]` | Show recent extractive recaps. |
|
|
424
|
+
| `/chat <message>` | Talk with the deterministic local memory companion. |
|
|
425
|
+
| `/assist <request>` | Route work to deterministic skills before considering offline local AI. |
|
|
426
|
+
| `/assist ai <off\|ask\|auto>` | Control local-model use; the default is `off`. |
|
|
427
|
+
| `/assist status` | Show the current AI policy and local-model readiness. |
|
|
428
|
+
| `/excel <question>` | Excel formulas, errors, PivotTables, charts and workbook tools. |
|
|
429
|
+
| `/excel functions [term]` | Search the local Excel function-name index. |
|
|
430
|
+
| `/file <request>` | Safely find/copy/move/rename/trash/restore user files. |
|
|
431
|
+
| `/file history` | Show file operations performed by Solace. |
|
|
432
|
+
| `/file undo` | Undo the latest supported Solace file mutation. |
|
|
433
|
+
| `/do inspect <project>` | Find a folder/ZIP, safely extract it, detect its stack, and suggest launch commands. |
|
|
434
|
+
| `/do run <project>` | Inspect a project, then explicitly approve or skip every suggested command before execution. |
|
|
435
|
+
| `/train chat [file.txt]` | Review and encrypt one speaker's messages from a local WhatsApp/text transcript. |
|
|
436
|
+
| `/train status` | List locally stored voice-training profiles. |
|
|
437
|
+
| `/grammar <text>` | Correct common English grammar locally and explain each change. |
|
|
438
|
+
| `/grammar file <path.txt>` | Create a corrected `.txt` or `.md` copy without overwriting the original. |
|
|
439
|
+
| `/qwen <prompt>` | Start local Qwen with an initial prompt. |
|
|
440
|
+
| `/qwen` | Open interactive local Qwen. |
|
|
441
|
+
| `/qwen status` | Check whether the local Qwen runtime/model are ready. |
|
|
442
|
+
| `/teach <language> [text]` | Add an example, error, or tip to local training data. |
|
|
443
|
+
| `/remember <language> <query>` | Retrieve matching taught material. |
|
|
444
|
+
| `/code bash <topic>` | Look up a Bash command/template with safety notes. |
|
|
445
|
+
| `/code python <topic>` | Look up a bundled Python recipe. |
|
|
446
|
+
| `/ask bash <topic>` | Explain a supported Bash concept. |
|
|
447
|
+
| `/debug <error>` | Match a common Bash error to likely fixes. |
|
|
448
|
+
| `/explain [bash] <command>` | Break down Bash tokens, flags, pipes, and redirects. |
|
|
449
|
+
| `/bash check <command-or-script-path>` | Validate Bash syntax and show safety warnings without executing it. |
|
|
450
|
+
| `/bash do <task>` | Turn a supported terminal request into an exact checked plan, then ask before running it. |
|
|
451
|
+
| `/bash benchmark device` | Run private, non-destructive Bash and Termux checks and save an anonymized local report. |
|
|
452
|
+
| `/manual [on\|off\|status]` | Show/configure the startup mini-manual. |
|
|
453
|
+
| `/mimic <text>` | Use the rule-based mimic responder. |
|
|
454
|
+
| `/export [markdown\|pdf] [path]` | Export journal entries. |
|
|
455
|
+
| `/backup [options]` | Create a local backup archive. |
|
|
456
|
+
| `/sync [backend] [options]` | Sync through a configured backend. |
|
|
457
|
+
| `/listen` | Capture speech when STT is enabled. |
|
|
458
|
+
| `/settings` | Manage password, voice, tone, alias, backup/restore and related settings. |
|
|
459
|
+
| `/help` | Show the full in-app command list. |
|
|
460
|
+
| `/end`, `/exit`, `end`, `exit`, `quit` | Leave Solace. In the TUI, use `Ctrl+Q`. |
|
|
461
|
+
|
|
462
|
+
Colon shortcuts (`:diary`, `:notes`, `:todo`, and `:quote`) remain supported.
|
|
463
|
+
|
|
464
|
+
## Scripted use
|
|
465
|
+
|
|
466
|
+
```bash
|
|
467
|
+
solace --accept-defaults \
|
|
468
|
+
-c "/diary Automated check completed" \
|
|
469
|
+
-c "/search automated"
|
|
470
|
+
|
|
471
|
+
solace --accept-defaults --command-file commands.txt
|
|
472
|
+
```
|
|
473
|
+
|
|
474
|
+
The startup manual is suppressed during scripted use. File-changing actions
|
|
475
|
+
also refuse to auto-confirm in scripted mode.
|
|
476
|
+
|
|
477
|
+
## Textual TUI
|
|
478
|
+
|
|
479
|
+
```bash
|
|
480
|
+
solace --tui
|
|
481
|
+
```
|
|
482
|
+
|
|
483
|
+
## Data and privacy
|
|
484
|
+
|
|
485
|
+
Primary local paths include:
|
|
486
|
+
|
|
487
|
+
- `~/.solaceconfig.json` — configuration and encryption key material
|
|
488
|
+
- `~/.solace/journal/entries.json` — journal records
|
|
489
|
+
- `~/.solace/training/` — taught snippets
|
|
490
|
+
- `~/.solace/conversation/` — mimic data
|
|
491
|
+
- `~/.solace/cache/` — generated/cache files
|
|
492
|
+
- `~/.solace/trash/` — recoverable file deletions performed through `/file`
|
|
493
|
+
- `~/.solace/file-history.jsonl` — file-manager transaction history
|
|
494
|
+
- `~/.solace/session.log` — short command/session activity log
|
|
495
|
+
|
|
496
|
+
Journal content is encrypted by default. Keep a safe copy of
|
|
497
|
+
`~/.solaceconfig.json`; losing its key material can make encrypted data
|
|
498
|
+
unrecoverable.
|
|
499
|
+
|
|
500
|
+
Local Qwen runs on the device through llama.cpp and does not require an OpenAI,
|
|
501
|
+
Gemini, or other hosted-model API key. S3/WebDAV and other network-capable
|
|
502
|
+
features remain opt-in.
|
|
503
|
+
|
|
504
|
+
## Backup and sync
|
|
505
|
+
|
|
506
|
+
New local backups and sync archives contain an encrypted journal and minimal
|
|
507
|
+
metadata, not journal entries or configuration as separate files. An old
|
|
508
|
+
`sync.restore_point` setting cannot re-enable those files. Existing archives
|
|
509
|
+
are not changed by an update; if you previously shared one with bundled
|
|
510
|
+
recovery files, treat it as sensitive.
|
|
511
|
+
|
|
512
|
+
Keep a separate, secure copy of the original `~/.solaceconfig.json` and remember
|
|
513
|
+
the matching password if one was enabled. The archive alone cannot recover your
|
|
514
|
+
journal. Store that configuration away from any location where you share or
|
|
515
|
+
sync backups. On a new device, preserve the original encryption settings but
|
|
516
|
+
check that the config's storage paths point to the new device.
|
|
517
|
+
|
|
518
|
+
With the original configuration in use and an empty journal, run
|
|
519
|
+
`/settings restore "/path/to/backup.zip"` and restart Solace. The command reads
|
|
520
|
+
only the encrypted journal member, including from older Solace backup ZIPs, and
|
|
521
|
+
refuses to overwrite an existing non-empty journal. It does not restore settings,
|
|
522
|
+
training data, or other files.
|
|
523
|
+
|
|
524
|
+
S3 sync requires `boto3`; WebDAV uses Python's standard library. Configure and
|
|
525
|
+
test remote backends with dry-run settings before a real upload.
|
|
526
|
+
|
|
527
|
+
## Local web app (optional)
|
|
528
|
+
|
|
529
|
+
```bash
|
|
530
|
+
make dev
|
|
531
|
+
```
|
|
532
|
+
|
|
533
|
+
By default the API uses port 8000 and Vite uses port 4173. Treat it as a local
|
|
534
|
+
development service rather than exposing it directly to an untrusted network.
|
|
535
|
+
See [`web/README.md`](web/README.md) for web-specific details.
|
|
536
|
+
|
|
537
|
+
## Repository map
|
|
538
|
+
|
|
539
|
+
| Path | Contents |
|
|
540
|
+
| --- | --- |
|
|
541
|
+
| `solace/launcher.py` | Supported launcher and `/qwen`, `/excel`, `/file`, `/manual` registration. |
|
|
542
|
+
| `solace/excel_skill.py` | Excel formula knowledge and safe workbook operations. |
|
|
543
|
+
| `solace/file_skill.py` | Deterministic safe file search/mutation/history/undo engine. |
|
|
544
|
+
| `solace/local_llm.py` | Safe llama.cpp/Qwen discovery and process invocation. |
|
|
545
|
+
| `solace/termux_compat.py` | Android/Termux native-loader compatibility for cryptography. |
|
|
546
|
+
| `solace/user_manual.py` | Tiny startup manual and visibility preference. |
|
|
547
|
+
| `scripts/qwen.sh` | Standalone Termux `qwen` wrapper. |
|
|
548
|
+
| `scripts/setup-qwen-termux.sh` | Explicit llama.cpp build + verified Qwen setup. |
|
|
549
|
+
| `requirements-termux.txt` | Termux-safe core pip dependencies. |
|
|
550
|
+
| `solace/cli.py` | Rich CLI implementation used by the supported launcher. |
|
|
551
|
+
| `solace/journal.py` | Journal persistence, encryption/decryption, and export. |
|
|
552
|
+
| `solace/trainer.py` | User-taught snippet storage and lookup. |
|
|
553
|
+
| `solace/logic/` | Recall, companion, Bash/Python intelligence, and supporting logic. |
|
|
554
|
+
| `solace/knowledge/` | Bundled offline programming recipes and error references. |
|
|
555
|
+
| `solace/configuration.py` | Configuration, storage, password, and cipher management. |
|
|
556
|
+
| `solace/sync.py` | Backup packaging plus local, S3, and WebDAV backends. |
|
|
557
|
+
| `solace/tui/` | Textual terminal interface. |
|
|
558
|
+
| `web/` | Optional FastAPI + React/Vite interface. |
|
|
559
|
+
| `tests/` | Unit and integration tests. |
|
|
560
|
+
|
|
561
|
+
## Development
|
|
562
|
+
|
|
563
|
+
```bash
|
|
564
|
+
python3 -m pip install -r requirements.txt -r requirements-dev.txt
|
|
565
|
+
pytest
|
|
566
|
+
ruff check .
|
|
567
|
+
flake8 .
|
|
568
|
+
mypy .
|
|
569
|
+
```
|
|
570
|
+
|
|
571
|
+
Frontend:
|
|
572
|
+
|
|
573
|
+
```bash
|
|
574
|
+
cd web/frontend
|
|
575
|
+
npm install
|
|
576
|
+
npm run build
|
|
577
|
+
```
|
|
578
|
+
|
|
579
|
+
Further documentation lives in [`docs/`](docs/).
|
|
580
|
+
|
|
581
|
+
## Package distribution
|
|
582
|
+
|
|
583
|
+
The distribution name is `kanegraffiti-solace` and the terminal command is
|
|
584
|
+
`solace`. When the [Solace PyPI release](https://pypi.org/project/kanegraffiti-solace/)
|
|
585
|
+
is available, install it with `pipx install kanegraffiti-solace`. Do not
|
|
586
|
+
install the unrelated `solace` project from PyPI.
|
|
587
|
+
|
|
588
|
+
Solace is released under the [MIT License](LICENSE). Dependencies retain
|
|
589
|
+
their own licenses.
|
|
590
|
+
|
|
591
|
+
See the [offline installation guide](docs/offline-install.md) for USB and
|
|
592
|
+
memory-card installation, and [model-free use](docs/model-free-use.md) for what
|
|
593
|
+
the current general-purpose edition can and cannot guarantee.
|