@fuzzle/opencode-accountant 0.13.3 → 0.13.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/dist/index.js +4 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -23600,10 +23600,7 @@ async function executeImports(fileResults, directory, pendingDir, doneDir, hledg
|
|
|
23600
23600
|
continue;
|
|
23601
23601
|
const year = fileResult.transactionYear;
|
|
23602
23602
|
if (!year) {
|
|
23603
|
-
|
|
23604
|
-
success: false,
|
|
23605
|
-
error: `No transactions found in ${fileResult.csv}`
|
|
23606
|
-
};
|
|
23603
|
+
continue;
|
|
23607
23604
|
}
|
|
23608
23605
|
let yearJournalPath;
|
|
23609
23606
|
try {
|
|
@@ -23819,7 +23816,7 @@ async function importStatements(directory, agent, options, configLoader = loadIm
|
|
|
23819
23816
|
totalTransactions,
|
|
23820
23817
|
matched: totalMatched,
|
|
23821
23818
|
unknown: 0
|
|
23822
|
-
}, `Successfully imported ${totalTransactions} transaction(s) from ${importResult.importedCount} file(s)`);
|
|
23819
|
+
}, totalTransactions === 0 ? "No new transactions to import" : `Successfully imported ${totalTransactions} transaction(s) from ${importResult.importedCount} file(s)`);
|
|
23823
23820
|
}
|
|
23824
23821
|
var import_statements_default = tool({
|
|
23825
23822
|
description: `ACCOUNTANT AGENT ONLY: Import classified bank statement CSVs into hledger using rules files.
|
|
@@ -26884,7 +26881,8 @@ async function importPipeline(directory, agent, options, configLoader = loadImpo
|
|
|
26884
26881
|
}
|
|
26885
26882
|
logger.info(`Log file: ${logger.getLogPath()}`);
|
|
26886
26883
|
logger.endSection();
|
|
26887
|
-
|
|
26884
|
+
const summary = totalTransactions === 0 ? "No new transactions to import" : `Successfully imported ${totalTransactions} transaction(s) from ${contextIds.length} file(s)`;
|
|
26885
|
+
return buildPipelineSuccessResult(result, summary);
|
|
26888
26886
|
} catch (error45) {
|
|
26889
26887
|
logger.error("Pipeline step failed", error45);
|
|
26890
26888
|
logger.info(`Log file: ${logger.getLogPath()}`);
|