@mulmoclaude/accounting-plugin 2.0.0 → 2.1.0

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/dist/server.js CHANGED
@@ -2022,9 +2022,10 @@ function validateTimeSeriesInput(input) {
2022
2022
  async function loadTimeSeriesBookContext(requestedBookId, workspaceRoot) {
2023
2023
  const config = await loadOrInitConfig(workspaceRoot);
2024
2024
  const bookId = resolveBookId(config, requestedBookId);
2025
+ const book = findBook(config, bookId);
2025
2026
  return {
2026
2027
  bookId,
2027
- fiscalYearEnd: resolveFiscalYearEnd(findBook(config, bookId)?.fiscalYearEnd),
2028
+ fiscalYearEnd: resolveFiscalYearEnd(book?.fiscalYearEnd),
2028
2029
  accounts: await readAccounts(bookId, workspaceRoot)
2029
2030
  };
2030
2031
  }