Commit c1c4bb0
chore(release): v1.6.0 (#118)
Scene awareness. diting now carries an explicit notion of where
the user is right now, threaded through pollers + the JSONL
session header + the LLM prompt bundle.
Four named scenes (home / office / public / audit), each with:
- per-scene BLE presence_gate_s default (home=5s, office=15s,
public=30s, audit=0s)
- per-scene LLM prior injected into --for-llm prompt template
- chip in the TUI title bar showing the active scene
Resolution precedence (5 tiers, highest first):
1. --scene SCENE CLI flag
2. DITING_SCENE env var
3. scenes.yaml SSID / gateway_mac match (per-network pinning,
mirrors aps.yaml pattern, git-ignored, human-curated only)
4. classify_environment heuristic on the active connection
(WPA-Enterprise auth -> office; >= 30 BSSIDs visible ->
office; otherwise home; public stays opt-in because
captive-portal detection without active probing is
unreliable)
5. home default
scene_source field on session_meta records the tier that won:
{cli, env, yaml, auto, default}. session_meta is a new JSONL
event type written as line 1 of every diting session, carrying
scene + scene_source + diting_version + ssid + gateway_ip +
hostname (BSSID intentionally left out for PII reasons).
PRs bundled: #114 (P1 + P4 scene awareness), #115 (archive),
#116 (P2 auto-detect + scenes.yaml), #117 (archive).
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c0f62d3 commit c1c4bb0
4 files changed
Lines changed: 38 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
14 | 34 | | |
15 | 35 | | |
16 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
13 | 29 | | |
14 | 30 | | |
15 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments