Commit graph

32 commits

Author SHA1 Message Date
WiseGuru
f3b93d5ab9 Fix secrets bootstrap + modal record UX; add ROADMAP lifecycle tracker
Secrets:
- Warm the secret-storage probe before loadSettings so a fresh install
  actually defaults to Obsidian secret storage instead of caching an
  unconfigured passphrase envelope first.
- setEncryptionMode no longer early-returns on same-mode: an unconfigured
  passphrase store now always builds its kdf/verifier, so creating a
  passphrase (incl. on Linux without a keyring) writes secrets.json.nosync
  instead of silently no-opping.

Modal:
- The Record tab closes the modal on Stop and runs the pipeline detached
  with Notice progress (per-stage setMessage) and Notice errors, mirroring
  the reprocess-audio flow. The persisted recording is the recovery path,
  so no inline Retry. Paste / From note keep the in-modal Retry flow.

Docs:
- Replace FEATURES.md with ROADMAP.md: Planned / Unreleased / Released
  lifecycle, wired into the RELEASING.md release steps.
- Update SECRETS.md, CLAUDE.md, and the Commands-and-Menus wiki page.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 22:16:46 -07:00
WiseGuru
4f2c4d796e Decouple encryption-mode switch from key transfer (Copy/Clear), bump to 1.1.0
Switching the API-key encryption mode no longer moves keys. The on-disk
envelope now retains passphrase material (kdf/verifier/keys) even while
Obsidian secret storage is active, so the two stores coexist and `mode` is
just the active-store flag.

Key transfer is now an explicit, separate action presented as Copy (the
source is kept, so it is a copy, not a move):
- setEncryptionMode: switch active method only, no transfer
- copyKeys: duplicate inactive -> active, source untouched
- clearKeys(mode): wipe one method's saved keys
- unlockPassphraseStore: unlock the snapshot regardless of active mode
- countStoredKeys / EncryptionStatus.passphraseConfigured for the UI

Settings tab: the mode dropdown is now a pure switch; new Copy and Clear
buttons (behind a new generic ConfirmModal) handle key material with a
copied/cleared count Notice. changePassphrase is a direct within-passphrase
re-key. Docs updated (SECRETS.md, CLAUDE.md, wiki).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 12:50:23 -07:00
WiseGuru
f9c2450a8c 1.0.3
Fix Obsidian secret storage detection failing on all platforms.

app.secretStorage.setSecret rejects any id that is not lowercase
alphanumeric + dashes, so the colon-namespaced ids and the
underscore self-test id made the availability probe throw and report
secretStorage unavailable on every platform. Switch all secret ids
(namespace separator, self-test id, per-profile key ids) to
dash-joined form.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 14:46:08 -07:00
WiseGuru
50eb661611 Wiki update 2026-06-18 08:52:38 -07:00
WiseGuru
8ec1c93cdf Claude optimization 2026-06-18 08:13:53 -07:00
WiseGuru
8f9fb09be7 Expand docs/RELEASING.md from Obsidian's official docs
Add: x.y.z-only versioning and 'directory reads manifest at default-branch HEAD'; the official draft-based gh-release workflow variant and the repo-level Actions write permission; corrected community submission via the community.obsidian.md web form (feedback = new incremented release); a submission-requirements section; a broader plugin-guidelines regression checklist; and links to the canonical Obsidian docs.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-17 21:29:53 -07:00
WiseGuru
946dc1a7a0 Add docs/RELEASING.md and reference it from CLAUDE.md
A release runbook covering Obsidian's rules (bare version tag, asset shape, minAppVersion vs API @since, versions.json logic), the CI attestation flow, pre-flight checks, the guideline-conflict checklist, and post-release verification. CLAUDE.md now points to it from the Commands and Releases sections.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-17 21:26:18 -07:00
WiseGuru
c74f74abc9 Remediate Obsidian community-submission lint
Errors: bump minAppVersion 1.4.0 to 1.4.4 (FileManager.processFrontMatter is since 1.4.4) and update versions.json; remove the disallowed eslint-disable in passphrase-modal and pass the random-string example via a variable to satisfy sentence-case.

Popout/compat warnings: setTimeout/clearTimeout to window.*; document to activeDocument, capturing the document ref for paired add/removeEventListener (recorder wake-lock, quick-record popover, settings, floater); globalThis to window for require/process in getNodeApi; replace the rewrite-hidden display-none important rule with el.toggle/hide/show; register activeDocument/activeWindow as eslint globals for no-undef.

Attestations: add .github/workflows/release.yml (build, actions/attest-build-provenance, softprops/action-gh-release on tag push).

Docs: CLAUDE.md minAppVersion rationale plus CI release/attestation and display() deferral notes; README Vault access disclosure and License corrected to 0BSD; DEVCONFLICTS refreshed.

Deferred recommendations: display() to getSettingDefinitions (1.13.0+ rewrite) and vault enumeration (necessary, disclosed).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-15 22:56:54 -07:00
WiseGuru
187264ff55 Rename plugin id to satisfy Obsidian manifest rules
The id rewrite-plugin is rejected on submission because an id may not
end in plugin. Rename to rewrite-voice-notes (lowercase + hyphens,
no obsidian, does not end in plugin). Pre-release, no installed users.

- manifest.json: id -> rewrite-voice-notes
- package.json / package-lock.json: name -> rewrite-voice-notes
- README.md, CLAUDE.md, docs/DEVCONFLICTS.md: update install-folder paths,
  command-id examples, and the id-locked note
- src/ needs no change (uses this.manifest.id dynamically)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-15 21:26:48 -07:00
WiseGuru
400ceeafa6 Fix Obsidian developer-guideline conflicts
- LICENSE: correct copyright holder (was sample-plugin's Dynalist Inc.)
- package.json: use valid SPDX id 0BSD (was 0-BSD)
- manifest.json: add author, authorUrl, fundingUrl
- Use Vault.process instead of Vault.modify for atomic read-modify-write
  (insert append, template update, update-report writing)
- docs/DEVCONFLICTS.md: record resolutions; document accepted items

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-14 22:56:49 -07:00
WiseGuru
f6e6f46959 identified conflicts between dev docs and production 2026-06-14 21:44:49 -07:00
WiseGuru
4eefb56f25 Implement secrets 2026-06-14 20:41:59 -07:00
WiseGuru
b0ae488f71 Templates Update: frontmatter, titles, and revisions 2026-06-13 03:28:51 -07:00
WiseGuru
3decaddec8 Warning if no audio + audio processing testing 2026-06-01 22:54:21 -07:00
WiseGuru
85c549136c Per-template diarization 2026-06-01 17:58:47 -07:00
WiseGuru
e1a729a558 Create a template user guide 2026-06-01 16:19:43 -07:00
WiseGuru
df3ca7e1ee Update the "Daily note" template 2026-06-01 16:06:56 -07:00
WiseGuru
15304c758c add multi-speaker transcription 2026-05-30 22:16:17 -07:00
WiseGuru
58ff5a7582 Quick record feature 2026-05-30 19:41:39 -07:00
WiseGuru
2dce00e19d API Password overhaul 2026-05-30 11:07:02 -07:00
WiseGuru
43f39cf968 Updated sharedcore and others 2026-05-29 18:40:11 -07:00
WiseGuru
2e3456940d Updated templates 2026-05-29 16:41:47 -07:00
WiseGuru
3efc6e25e9 fixed text fields 2026-05-28 12:28:01 -07:00
WiseGuru
dddfb0cf12 Mobile textfield troubleshooting and remove Web Speech
Web Speech had all kinds of bugs, not worth troubleshooting.
2026-05-27 20:24:33 -07:00
WiseGuru
c207d5444d Various (adding Voxtral, various) 2026-05-27 13:29:51 -07:00
WiseGuru
3ec83943eb Add four UX features and bundle pending pre-release work
This session's features:
- Quick Record mode selector: third button on the floater opens a
  popover of templates, switchable mid-recording. Updates the
  controller's template in place; does not touch lastUsedTemplateId
  until completion.
- Per-invocation destination override on the main modal: a Destination
  row under the template picker overrides insertMode and the new-file
  fields for one run, plumbed via PipelineParams.destinationOverride
  and shallow-merged onto a template copy before insertOutput. The
  template file on disk is never mutated.
- Assistant prompt as a vault file: replaces the settings textarea
  with ReWrite/AssistantPrompt.md, loaded via src/assistant-prompt.ts
  and cached on plugin.assistantPrompt. AI/Agent labels standardized
  to "Assistant"; aiName -> assistantName; adHocInstructionsPrompt
  field removed.
- Known Nouns list: ReWrite/KnownNouns.md with YAML guidance
  frontmatter and a Markdown body of nouns (optional misheard
  alternates after a colon). buildKnownNounsSystemPromptSection
  injects a "Known nouns" block into the LLM system prompt only when
  the list is non-empty. Frontmatter is for humans and is not sent
  to the LLM in v1.

Cross-cutting: PipelineParams gains host: PipelineHost (narrow
interface in src/types.ts) so the pipeline can read assistantPrompt
and knownNouns without importing ReWritePlugin and forming a cycle.

Pre-existing uncommitted work also rolled in:
- Passphrase encryption for secrets.json.nosync via AES-GCM +
  PBKDF2 (src/secrets.ts), with PassphraseModal and a settings-tab
  banner/dropdown for mode selection.
- WhisperHost adopt/external states + PID sidecar so an orphaned
  whisper-server from a previous session is adopted, and external
  ones are never killed by ReWrite (src/whisper-host.ts).
- Whisper status bar (src/ui/whisper-status-bar.ts) and
  start/stop commands.
- Audio persistence before transcription (src/audio-persist.ts)
  plus the reprocess-audio flow (src/ui/audio-source.ts,
  src/ui/audio-file-picker.ts).
- Wake-name extraction (src/wake-name.ts).
- Templates as vault Markdown files in a folder
  (src/templates-folder.ts).
- Linux build script for whisper-server
  (scripts/build-whisper-linux.sh).
- README, CLAUDE.md, docs/FEATURES.md, eslint.config.mts updates
  covering all of the above.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 10:13:42 -07:00
WiseGuru
4c4e052762 f1 2026-05-24 22:08:34 -07:00
WiseGuru
0587c20ff6 f1 2026-05-24 21:51:43 -07:00
WiseGuru
0c6cd44d72 f4 2026-05-24 21:38:29 -07:00
WiseGuru
8fe298e5a1 f3 2026-05-24 21:26:38 -07:00
WiseGuru
fb0212a337 Phase 9 2026-05-24 13:36:13 -07:00
WiseGuru
737d4de1c1 Move implementation plan into the repo
Save docs/IMPLEMENTATION_PLAN.md (the approved plan, with link paths
adjusted for its new home) so it survives across Claude Code sessions
and is visible to anyone cloning the project.

Add a docs/claude-scratch/ convention for ephemeral working docs
(kept as a folder via .gitkeep, contents gitignored) and ignore
.claude/settings.local.json (per-user harness config).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 11:38:59 -07:00