wendkeep 0.38.0 → 0.38.2

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.
@@ -8,12 +8,12 @@
8
8
  import { existsSync } from 'fs';
9
9
  import { join } from 'path';
10
10
  import { pathToFileURL } from 'url';
11
- import { readHookInput, writeHookOutput, getVaultBase } from './obsidian-common.mjs';
11
+ import { readHookInput, writeHookOutput, getVaultBase, providerMeta } from './obsidian-common.mjs';
12
12
  import { updateSessionObservability } from './session-observability.mjs';
13
13
  import { resolveSessionEntry } from './session-identity.mjs';
14
14
 
15
15
  export function refreshSubagents(vaultBase, input) {
16
- const { identity, entry } = resolveSessionEntry(vaultBase, input);
16
+ const { identity, entry } = resolveSessionEntry(vaultBase, input, providerMeta(input.provider).id);
17
17
  if (identity.state !== 'resolved') return false;
18
18
  const transcriptPath = identity.transcriptPath;
19
19
  const sessionRel = entry?.session_file || '';
@@ -8,7 +8,7 @@
8
8
  import { existsSync, readFileSync, writeFileSync } from 'fs';
9
9
  import { join } from 'path';
10
10
  import { pathToFileURL } from 'url';
11
- import { readHookInput, writeHookOutput, getVaultBase, formatHourMinute } from './obsidian-common.mjs';
11
+ import { readHookInput, writeHookOutput, getVaultBase, formatHourMinute, providerMeta } from './obsidian-common.mjs';
12
12
  import { getLocale } from './locale.mjs';
13
13
  import { resolveSessionEntry } from './session-identity.mjs';
14
14
 
@@ -42,7 +42,7 @@ export function appendProgress(content, line, heading) {
42
42
  export function logTask(vaultBase, input) {
43
43
  const text = taskText(input);
44
44
  if (!text) return false;
45
- const { identity, entry } = resolveSessionEntry(vaultBase, input);
45
+ const { identity, entry } = resolveSessionEntry(vaultBase, input, providerMeta(input.provider).id);
46
46
  if (identity.state !== 'resolved') return false;
47
47
  const sessionRel = entry?.session_file || '';
48
48
  if (!sessionRel) return false;