@fuzzle/opencode-accountant 0.0.8-next.1 → 0.0.9-next.1

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.
Files changed (2) hide show
  1. package/README.md +6 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -115,7 +115,9 @@ providers:
115
115
 
116
116
  ubs:
117
117
  detect:
118
- - header: 'Trade date,Trade time,Booking date,Value date,Currency,Debit,Credit,Individual amount,Balance,Transaction no.,Description1,Description2,Description3,Footnotes'
118
+ # Note: UBS exports have a trailing semicolon in the header row, which creates
119
+ # an empty field when parsed. The header must include a trailing comma to match.
120
+ - header: 'Trade date,Trade time,Booking date,Value date,Currency,Debit,Credit,Individual amount,Balance,Transaction no.,Description1,Description2,Description3,Footnotes,'
119
121
  currencyField: Currency
120
122
  skipRows: 9
121
123
  delimiter: ';'
@@ -147,7 +149,7 @@ providers:
147
149
  | Field | Required | Description |
148
150
  | ----------------- | -------- | ---------------------------------------------------------- |
149
151
  | `filenamePattern` | No | Regex pattern to match against filename |
150
- | `header` | Yes | Expected CSV header row (exact match) |
152
+ | `header` | Yes | Expected CSV header row (comma-separated, exact match)\* |
151
153
  | `currencyField` | Yes | Column name containing the currency/symbol |
152
154
  | `skipRows` | No | Number of rows to skip before header (default: 0) |
153
155
  | `delimiter` | No | CSV delimiter character (default: `,`) |
@@ -155,6 +157,8 @@ providers:
155
157
  | `metadata` | No | Array of metadata extraction rules (see below) |
156
158
  | `currencies` | Yes | Map of raw currency values to normalized folder names |
157
159
 
160
+ \* **Note on trailing delimiters:** If the CSV header row ends with a trailing delimiter (e.g., `Field1;Field2;`), this creates an empty field when parsed. The `header` config must include a trailing comma to account for this (e.g., `Field1,Field2,`).
161
+
158
162
  **Metadata Extraction Rules:**
159
163
 
160
164
  | Field | Required | Description |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuzzle/opencode-accountant",
3
- "version": "0.0.8-next.1",
3
+ "version": "0.0.9-next.1",
4
4
  "description": "An OpenCode accounting agent, specialized in double-entry-bookkepping with hledger",
5
5
  "author": {
6
6
  "name": "ali bengali",