Commit graph

9 commits

Author SHA1 Message Date
06a228847f feat: add dynamic template variables for vault-level data
Expose backlinks, forward links, recent notes, shared tags, folder
siblings, and smart context directly in templates via {{variable}}
and {{variable:N}} syntax. Makes processTemplate async to support
the new resolvers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 13:31:11 +01:00
acb82971b4 feat: add context intelligence for auto-detecting related notes
Scores vault notes using 5 signals (forward links, backlinks, shared
tags, folder proximity, shared properties) and presents a review modal
with color-coded badges and token budget tracking. Adds "Copy smart
context" command, Intelligence settings tab, and mode: auto preset
support.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 13:25:25 +01:00
Luca G. Oelfke
cc2d196911
feat: rename plugin from "Claude Context" to "Promptfire"
Rename before community plugin submission (plugin IDs are permanent).
Updates plugin ID, display name, package name, all class names,
CSS prefix (cc- → pf-), default folders (_claude → _context),
built-in target ID, and all documentation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 12:42:16 +01:00
Luca G. Oelfke
66b1ac8ffa
feat: add multi-target output system for different LLMs
- Add OutputTarget interface with format, tokens, truncation strategy
- Add built-in targets: Claude (XML, 200k), GPT-4o (MD, 128k), Compact (8k)
- Add ContentTransformer for markdown/xml/plain conversion
- Add TruncationEngine with smart section prioritization
- Add TargetExecutor for processing content per target
- Add target configuration UI in settings with CRUD operations
- Add target selection checkboxes in generator modal
- Primary target goes to clipboard, secondary targets saved as files

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-06 10:48:55 +01:00
Luca G. Oelfke
11fcce0f4c
feat: add frontmatter preset system for one-hotkey context generation
- Parse ai-context block from frontmatter with validation
- Support fields: template, include-linked, link-depth, include-tags,
  exclude-paths, exclude-tags, max-tokens, include-active-note
- Add LinkTraverser for cycle-safe graph traversal of linked notes
- Add TagCollector for collecting files by tags (hierarchical support)
- Token budget enforcement with size-based file prioritization
- New command: "Copy context from frontmatter preset"
- Fallback to generator modal when no preset found
- Clear error messages for invalid preset values

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-06 10:41:41 +01:00
Luca G. Oelfke
c4b83140b5
feat: add granular heading/block selection for context
- Add ContentSelector for parsing heading structure via metadataCache
- Support reference syntax: NoteName#Heading and NoteName^blockid
- Add FileSelectorModal with expandable heading tree and checkboxes
- Live token counter updates as sections are selected/deselected
- New command: "Copy context (select sections)"
- Add "Select Sections..." button in generator modal
- Mark partially selected files with "(partial)" suffix
- Cascading selection: toggling parent affects all children

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-06 10:38:13 +01:00
Luca G. Oelfke
f5acee3356
feat: add context history with versioning and diff
- Add HistoryManager for saving generated contexts as JSON files
- Track metadata: timestamp, template, files, sources, tokens, user notes
- Add history modal with list view, detail view, and comparison
- Diff view shows added/removed files, sources, and size changes
- Configurable: storage folder, max entries, auto-cleanup days
- Feature is opt-in (disabled by default)
- Add "View context history" command

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-06 10:34:41 +01:00
Luca G. Oelfke
1ad0adeb06
feat: add modular source system and prompt templates
Sources:
- Add ContextSource system for additional context (freetext, files, shell)
- Support prefix/suffix positioning for sources
- Include source management UI in settings with add/edit/delete/test
- Platform checks for desktop-only features (file access, shell commands)

Templates:
- Add PromptTemplate system with placeholder support
- Placeholders: {{context}}, {{selection}}, {{active_note}}, {{date}}, etc.
- Conditional blocks: {{#if variable}}...{{else}}...{{/if}}
- 5 built-in starter templates (Code Review, Summary, Q&A, Continue, Explain)
- Template management in settings with import/export as JSON
- Template selection dropdown in generator modal

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-06 10:29:56 +01:00
Luca G. Oelfke
2d08546847
feat: initial release of Claude Context plugin
Obsidian plugin to copy vault context files to clipboard for AI assistants.

Features:
- Copy vault context files to clipboard with one hotkey
- Context generator with configurable conventions
- Settings for folder, separator, preview, exclusions
- Auto-detect vault folder structure
- Include active note option
- Ribbon icon for quick access
- Full English UI and documentation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 16:55:43 +01:00