@cueloop/integration-obsidian 0.1.0-alpha.69 → 0.1.0-alpha.70

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": "@cueloop/integration-obsidian",
3
- "version": "0.1.0-alpha.69",
3
+ "version": "0.1.0-alpha.70",
4
4
  "description": "Export reviewed cueloop plans into an Obsidian vault",
5
5
  "homepage": "https://github.com/mmurakaru/cueloop#readme",
6
6
  "bugs": {
@@ -24,8 +24,8 @@
24
24
  "access": "public"
25
25
  },
26
26
  "dependencies": {
27
- "@cueloop/extension-api": "0.1.0-alpha.69",
28
- "@cueloop/schema": "0.1.0-alpha.69",
27
+ "@cueloop/extension-api": "0.1.0-alpha.70",
28
+ "@cueloop/schema": "0.1.0-alpha.70",
29
29
  "valibot": "^1.4.2"
30
30
  },
31
31
  "engines": {
@@ -2,7 +2,7 @@ import { afterEach, beforeEach, describe, expect, test } from "bun:test";
2
2
  import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
3
3
  import { tmpdir } from "node:os";
4
4
  import { join } from "node:path";
5
- import type { ReviewSession } from "@cueloop/schema";
5
+ import type { Thread } from "@cueloop/schema";
6
6
  import { Registry } from "@cueloop/extension-api";
7
7
  import { OBSIDIAN_DEFAULTS, exportSession, shouldExport, type ObsidianConfig } from "./export";
8
8
  import { createObsidianExtension } from "./extension";
@@ -10,7 +10,7 @@ import { frontmatter } from "./frontmatter";
10
10
 
11
11
  const NOW = new Date("2026-08-07T12:34:56.000Z");
12
12
 
13
- function resolvedSession(overrides: Partial<ReviewSession> = {}): ReviewSession {
13
+ function resolvedSession(overrides: Partial<Thread> = {}): Thread {
14
14
  return {
15
15
  schemaVersion: "1",
16
16
  id: "s_test1",
package/src/export.ts CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  import { existsSync, mkdirSync, writeFileSync } from "node:fs";
8
8
  import { join } from "node:path";
9
- import type { ReviewSession, VerdictKind } from "@cueloop/schema";
9
+ import type { Thread, VerdictKind } from "@cueloop/schema";
10
10
  import { detectVaults } from "./detect";
11
11
  import { formatFilename, titleFrom, uniquePath, type Separator } from "./filename";
12
12
  import { frontmatter } from "./frontmatter";
@@ -45,7 +45,7 @@ export interface ExportResult {
45
45
  }
46
46
 
47
47
  export function exportSession(
48
- session: ReviewSession,
48
+ session: Thread,
49
49
  config: ObsidianConfig,
50
50
  now: Date = new Date(),
51
51
  ): ExportResult {
@@ -1,8 +1,8 @@
1
1
  /** Frontmatter for exported notes: provenance the vault can query. */
2
2
 
3
- import type { ReviewSession } from "@cueloop/schema";
3
+ import type { Thread } from "@cueloop/schema";
4
4
 
5
- export function frontmatter(session: ReviewSession, created: Date): string {
5
+ export function frontmatter(session: Thread, created: Date): string {
6
6
  return [
7
7
  "---",
8
8
  `created: ${created.toISOString()}`,