wendkeep 0.2.3 → 0.2.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wendkeep",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Automatically capture AI coding agent sessions (Claude Code, Codex) as local Markdown in your Obsidian vault — turn-by-turn history, cost/token tracking, auto-extracted decisions/bugs/learnings, rendered in the graph. Local-first.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -20,20 +20,28 @@ const ENTRIES = Object.entries(NOTE_COLORS);
20
20
  export function renderColorSnippetCss() {
21
21
  const vars = ENTRIES.map(([k, v]) => ` --wk-${k}: ${v.hex};`).join('\n');
22
22
  const blocks = ENTRIES.map(([k, v]) => {
23
+ const cls = `.${v.cssClass}`;
23
24
  const c = `var(--wk-${k})`;
24
25
  return [
25
26
  `/* ${k} */`,
26
- `.${v.cssClass} .inline-title {`,
27
+ `/* left accent strip down the whole note — Reading + Live Preview */`,
28
+ `${cls} .markdown-preview-sizer,`,
29
+ `${cls} .cm-sizer {`,
30
+ ` border-left: 5px solid ${c};`,
31
+ ` padding-left: 1.2em;`,
32
+ `}`,
33
+ `/* title + every heading in the note's color (both modes) */`,
34
+ `${cls} .inline-title,`,
35
+ `${cls} .cm-header,`,
36
+ `${cls} :is(h1, h2, h3, h4, h5, h6) {`,
27
37
  ` color: ${c};`,
28
- ` border-left: 4px solid ${c};`,
29
- ` padding-left: 0.5em;`,
30
38
  `}`,
31
- `.${v.cssClass} .view-header-title { color: ${c}; }`,
32
- `.${v.cssClass} .markdown-preview-view h1 { border-bottom: 2px solid ${c}; }`,
39
+ `${cls} .inline-title { border-bottom: 2px solid ${c}; }`,
33
40
  ].join('\n');
34
41
  }).join('\n\n');
35
42
 
36
- return `/* ${SNIPPET_NAME} — generated by wendkeep. Accents notes by type (cssclasses). */
43
+ return `/* ${SNIPPET_NAME} — generated by wendkeep. Accents notes by type (cssclasses).
44
+ Works in both Reading and Live Preview. */
37
45
  :root {
38
46
  ${vars}
39
47
  }