bkper 5.5.4 → 5.6.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/lib/commands/transactions/count.d.ts +16 -0
- package/lib/commands/transactions/count.d.ts.map +1 -0
- package/lib/commands/transactions/count.js +31 -0
- package/lib/commands/transactions/count.js.map +1 -0
- package/lib/commands/transactions/index.d.ts +1 -0
- package/lib/commands/transactions/index.d.ts.map +1 -1
- package/lib/commands/transactions/index.js +1 -0
- package/lib/commands/transactions/index.js.map +1 -1
- package/lib/commands/transactions/register.d.ts.map +1 -1
- package/lib/commands/transactions/register.js +10 -1
- package/lib/commands/transactions/register.js.map +1 -1
- package/lib/docs/api/managed-agent.md +2 -2
- package/lib/docs/apps/architecture.md +3 -2
- package/lib/docs/apps/context-menu.md +16 -2
- package/lib/docs/apps/quality.md +11 -0
- package/lib/docs/cli/data-management.md +4 -0
- package/lib/docs/index.md +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Result of a transaction count query.
|
|
3
|
+
*/
|
|
4
|
+
export interface CountTransactionsResult {
|
|
5
|
+
count: number;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Counts transactions matching a query using the count endpoint, without
|
|
9
|
+
* fetching the transactions themselves.
|
|
10
|
+
*
|
|
11
|
+
* @param bookId - The book ID to query
|
|
12
|
+
* @param query - Optional search query; counts all transactions when omitted
|
|
13
|
+
* @returns The number of matching transactions
|
|
14
|
+
*/
|
|
15
|
+
export declare function countTransactions(bookId: string, query?: string): Promise<CountTransactionsResult>;
|
|
16
|
+
//# sourceMappingURL=count.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"count.d.ts","sourceRoot":"","sources":["../../../src/commands/transactions/count.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CACnC,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,uBAAuB,CAAC,CASlC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { getBkperInstance } from '../../bkper-factory.js';
|
|
11
|
+
import { warnIfSuspiciousDateVariableQuery } from '../../utils/query-warning.js';
|
|
12
|
+
/**
|
|
13
|
+
* Counts transactions matching a query using the count endpoint, without
|
|
14
|
+
* fetching the transactions themselves.
|
|
15
|
+
*
|
|
16
|
+
* @param bookId - The book ID to query
|
|
17
|
+
* @param query - Optional search query; counts all transactions when omitted
|
|
18
|
+
* @returns The number of matching transactions
|
|
19
|
+
*/
|
|
20
|
+
export function countTransactions(bookId, query) {
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
if (query) {
|
|
23
|
+
warnIfSuspiciousDateVariableQuery(query);
|
|
24
|
+
}
|
|
25
|
+
const bkper = getBkperInstance();
|
|
26
|
+
const book = yield bkper.getBook(bookId);
|
|
27
|
+
const total = yield book.countTransactions(query);
|
|
28
|
+
return { count: total !== null && total !== void 0 ? total : 0 };
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=count.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"count.js","sourceRoot":"","sources":["../../../src/commands/transactions/count.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AASjF;;;;;;;GAOG;AACH,MAAM,UAAgB,iBAAiB,CACnC,MAAc,EACd,KAAc;;QAEd,IAAI,KAAK,EAAE,CAAC;YACR,iCAAiC,CAAC,KAAK,CAAC,CAAC;QAC7C,CAAC;QAED,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;QACjC,MAAM,IAAI,GAAG,MAAM,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACzC,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;QAClD,OAAO,EAAE,KAAK,EAAE,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,CAAC,EAAE,CAAC;IACjC,CAAC;CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { listTransactions, listTransactionsFormatted, ListTransactionsOptions, ListTransactionsResult, } from './list.js';
|
|
2
|
+
export { countTransactions, CountTransactionsResult } from './count.js';
|
|
2
3
|
export { getTransaction } from './get.js';
|
|
3
4
|
export { createTransaction, CreateTransactionOptions, resolveCreateTransactionFilePath, } from './create.js';
|
|
4
5
|
export { updateTransaction, UpdateTransactionOptions } from './update.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/transactions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EACvB,sBAAsB,GACzB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EACH,iBAAiB,EACjB,wBAAwB,EACxB,gCAAgC,GACnC,MAAM,aAAa,C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OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { listTransactions, listTransactionsFormatted, } from './list.js';
|
|
2
|
+
export { countTransactions } from './count.js';
|
|
2
3
|
export { getTransaction } from './get.js';
|
|
3
4
|
export { createTransaction, resolveCreateTransactionFilePath, } from './create.js';
|
|
4
5
|
export { updateTransaction } from './update.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/transactions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,gBAAgB,EAChB,yBAAyB,GAG5B,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EACH,iBAAiB,EAEjB,gCAAgC,GACnC,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,iBAAiB,EAA4B,MAAM,aAAa,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/transactions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,gBAAgB,EAChB,yBAAyB,GAG5B,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,iBAAiB,EAA2B,MAAM,YAAY,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EACH,iBAAiB,EAEjB,gCAAgC,GACnC,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,iBAAiB,EAA4B,MAAM,aAAa,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../src/commands/transactions/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../src/commands/transactions/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AAwBjD,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA8OlE"}
|
|
@@ -14,7 +14,7 @@ import { renderList, renderItem } from '../../render/index.js';
|
|
|
14
14
|
import { transactionToJson } from './transaction-json.js';
|
|
15
15
|
import { validateRequiredOptions, throwIfErrors } from '../../utils/validation.js';
|
|
16
16
|
import { parseStdinItems } from '../../input/index.js';
|
|
17
|
-
import { listTransactionsFormatted, getTransaction, createTransaction, updateTransaction, postTransaction, checkTransaction, uncheckTransaction, trashTransaction, untrashTransaction, mergeTransactions, batchCreateTransactions, batchUpdateTransactions, resolveCreateTransactionFilePath, } from './index.js';
|
|
17
|
+
import { listTransactionsFormatted, countTransactions, getTransaction, createTransaction, updateTransaction, postTransaction, checkTransaction, uncheckTransaction, trashTransaction, untrashTransaction, mergeTransactions, batchCreateTransactions, batchUpdateTransactions, resolveCreateTransactionFilePath, } from './index.js';
|
|
18
18
|
export function registerTransactionCommands(program) {
|
|
19
19
|
const transactionCommand = program.command('transaction').description('Manage Transactions');
|
|
20
20
|
transactionCommand
|
|
@@ -37,6 +37,15 @@ export function registerTransactionCommands(program) {
|
|
|
37
37
|
});
|
|
38
38
|
renderList(result);
|
|
39
39
|
}))());
|
|
40
|
+
transactionCommand
|
|
41
|
+
.command('count')
|
|
42
|
+
.description('Count transactions in a book without listing them')
|
|
43
|
+
.option('-b, --book <bookId>', 'Book ID')
|
|
44
|
+
.option('-q, --query <query>', 'Search query (counts all transactions when omitted)')
|
|
45
|
+
.action(options => withAction('counting transactions', () => __awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
throwIfErrors(validateRequiredOptions(options, [{ name: 'book', flag: '--book' }]));
|
|
47
|
+
renderItem(yield countTransactions(options.book, options.query));
|
|
48
|
+
}))());
|
|
40
49
|
transactionCommand
|
|
41
50
|
.command('get <transactionId>')
|
|
42
51
|
.description('Get a transaction by ID')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.js","sourceRoot":"","sources":["../../../src/commands/transactions/register.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAgB,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC7F,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,iBAAiB,E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CAAC,EAAE,CACP,CAAC;IAEN,kBAAkB;SACb,OAAO,CAAC,yCAAyC,CAAC;SAClD,WAAW,CAAC,wBAAwB,CAAC;SACrC,MAAM,CAAC,qBAAqB,EAAE,SAAS,CAAC;SACxC,MAAM,CAAC,CAAC,cAAsB,EAAE,cAAsB,EAAE,OAAO,EAAE,EAAE,CAChE,UAAU,CAAC,sBAAsB,EAAE,GAAS,EAAE;QAC1C,aAAa,CAAC,uBAAuB,CAAC,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC;QACpF,MAAM,WAAW,GAAG,MAAM,iBAAiB,CACvC,OAAO,CAAC,IAAI,EACZ,cAAc,EACd,cAAc,CACjB,CAAC;QACF,UAAU,CAAC,MAAM,iBAAiB,CAAC,WAAW,CAAC,CAAC,CAAC;IACrD,CAAC,CAAA,CAAC,EAAE,CACP,CAAC;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"register.js","sourceRoot":"","sources":["../../../src/commands/transactions/register.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAgB,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC7F,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AACnF,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EACH,yBAAyB,EACzB,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,gB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O,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC;QACpF,MAAM,WAAW,GAAG,MAAM,kBAAkB,CAAC,OAAO,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;QAC1E,UAAU,CAAC,MAAM,iBAAiB,CAAC,WAAW,CAAC,CAAC,CAAC;IACrD,CAAC,CAAA,CAAC,EAAE,CACP,CAAC;IAEN,kBAAkB;SACb,OAAO,CAAC,yCAAyC,CAAC;SAClD,WAAW,CAAC,wBAAwB,CAAC;SACrC,MAAM,CAAC,qBAAqB,EAAE,SAAS,CAAC;SACxC,MAAM,CAAC,CAAC,cAAsB,EAAE,cAAsB,EAAE,OAAO,EAAE,EAAE,CAChE,UAAU,CAAC,sBAAsB,EAAE,GAAS,EAAE;QAC1C,aAAa,CAAC,uBAAuB,CAAC,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC;QACpF,MAAM,WAAW,GAAG,MAAM,iBAAiB,CACvC,OAAO,CAAC,IAAI,EACZ,cAAc,EACd,cAAc,CACjB,CAAC;QACF,UAAU,CAAC,MAAM,iBAAiB,CAAC,WAAW,CAAC,CAAC,CAAC;IACrD,CAAC,CAAA,CAAC,EAAE,CACP,CAAC;AACV,CAAC"}
|
|
@@ -14,7 +14,7 @@ Sessions belong to the user, not the app: work started in one app continues in a
|
|
|
14
14
|
|
|
15
15
|
## Requirements
|
|
16
16
|
|
|
17
|
-
- A Bkper account
|
|
17
|
+
- A Bkper account with an email address. Accounts not admitted to the beta get 403 `agent_beta_required`.
|
|
18
18
|
- A Bkper OAuth access token for the user the agent acts as. [Bkper platform apps](https://bkper.com/docs/platform/apps/overview) need none: call the API from the app's server, and the platform adds the user's credentials, as it does for Bkper AI.
|
|
19
19
|
- A server, bot, or script to call the API. Browsers on other websites are refused: the API sends no CORS headers and rejects cross-origin writes with 403 `origin_forbidden`.
|
|
20
20
|
|
|
@@ -323,7 +323,7 @@ Errors are `{ "error": { "code", "type", "message" } }`. Branch on `code`.
|
|
|
323
323
|
| --- | --- | --- |
|
|
324
324
|
| 400 | `invalid_request`, `unknown_model`, `unknown_thinking_level` | A field is invalid or unknown |
|
|
325
325
|
| 401 | `unauthorized`, `authentication_failed` | The token is missing, invalid, or expired |
|
|
326
|
-
| 403 | `agent_beta_required` | The account is not
|
|
326
|
+
| 403 | `agent_beta_required` | The account is not admitted to the beta |
|
|
327
327
|
| 403 | `origin_forbidden` | A browser on another website sent a write |
|
|
328
328
|
| 404 | `not_found`, `parent_not_found`, `file_not_found` | No such resource for this user |
|
|
329
329
|
| 405 | `method_not_allowed` | The path does not support the method |
|
|
@@ -18,7 +18,8 @@ my-app/
|
|
|
18
18
|
│ ├── api/
|
|
19
19
|
│ ├── auth/
|
|
20
20
|
│ ├── components/
|
|
21
|
-
│
|
|
21
|
+
│ ├── services/
|
|
22
|
+
│ └── state/
|
|
22
23
|
├── server/
|
|
23
24
|
│ ├── package.json
|
|
24
25
|
│ └── src/
|
|
@@ -53,7 +54,7 @@ Client code has two data paths. Choose based on who owns the behavior:
|
|
|
53
54
|
|
|
54
55
|
Keep app-owned behavior in one place. Do not implement the same behavior separately in the UI and the app API.
|
|
55
56
|
|
|
56
|
-
|
|
57
|
+
Shared client state lives in stores under `state/`, with one module that owns the URL. Components render that state and keep their view and CSS together in one folder under `components/`. Simple presentational components can remain in one file. See [Client state](https://bkper.com/docs/platform/apps/quality.md#client-state).
|
|
57
58
|
|
|
58
59
|
### Client authentication
|
|
59
60
|
|
|
@@ -117,11 +117,11 @@ Each time the App iframe finishes loading, Bkper announces the requests it suppo
|
|
|
117
117
|
```js
|
|
118
118
|
{
|
|
119
119
|
type: 'bkper:host-ready',
|
|
120
|
-
supports: ['navigate', 'show-book'],
|
|
120
|
+
supports: ['navigate', 'show-book', 'expand'],
|
|
121
121
|
}
|
|
122
122
|
```
|
|
123
123
|
|
|
124
|
-
Send `bkper:navigate` only after receiving this message with `navigate` in `supports`,
|
|
124
|
+
Send `bkper:navigate` only after receiving this message with `navigate` in `supports`, `bkper:show-book` only with `show-book` in `supports`, and `bkper:expand` only with `expand` in `supports`. Until then, keep the normal link behavior. Register the message listener when the App starts, so it does not miss the message.
|
|
125
125
|
|
|
126
126
|
Apps opened with `NEW_TAB` do not receive this message, because they have no Bkper parent.
|
|
127
127
|
|
|
@@ -211,6 +211,20 @@ Bkper ignores the message when it does not come from the App iframe currently op
|
|
|
211
211
|
|
|
212
212
|
The App decides when to ask. An App whose panel already reflects the Book's context, such as a report rebuilt for each query, may prefer to stay expanded and never send it. To follow the user's changes, send it when a [`bkper:app-url-changed`](#live-context-updates) message changes the context the Book shows.
|
|
213
213
|
|
|
214
|
+
#### Asking for room
|
|
215
|
+
|
|
216
|
+
When the user opens something in the App that needs more room than the sidebar, such as a report or a preview, the App can ask Bkper to expand the panel:
|
|
217
|
+
|
|
218
|
+
```js
|
|
219
|
+
window.parent.postMessage({ type: 'bkper:expand' }, BKPER_ORIGIN);
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
Bkper ignores the message when it does not come from the App iframe currently open in the panel, or not from that iframe's own origin. For a valid request, a panel at sidebar size expands; an expanded panel, or one already full size on a phone, stays as it is. Bkper does not reply.
|
|
223
|
+
|
|
224
|
+
An expansion the App asked for counts as the user's own: the App's later Book events do not return the panel to sidebar size. To give the room back, such as when the user closes what they opened, send [`bkper:show-book`](#showing-the-book), and only if the App did get wider: on a phone, where the panel is already full size, `bkper:show-book` minimizes it.
|
|
225
|
+
|
|
226
|
+
Send `bkper:expand` only in response to a user action, such as a click. Bkper cannot verify this, and a panel that grows by itself covers the Book the user is working in.
|
|
227
|
+
|
|
214
228
|
### Available expressions
|
|
215
229
|
|
|
216
230
|
The menu URL supports these dynamic expressions:
|
package/lib/docs/apps/quality.md
CHANGED
|
@@ -56,6 +56,17 @@ Prefer modules with one clear responsibility, high cohesion, and few dependencie
|
|
|
56
56
|
|
|
57
57
|
Split a module when unrelated behavior changes for different reasons or when mixed responsibilities make it difficult to understand or test.
|
|
58
58
|
|
|
59
|
+
## Client state
|
|
60
|
+
|
|
61
|
+
Start every client with this structure, so it grows by adding pieces instead of restructuring:
|
|
62
|
+
|
|
63
|
+
- **Stores hold shared state.** Anything another component or the URL could care about, such as loaded data, the selection, or errors, lives in a store under `client/src/state/`, one per concern. A store holds its data and the actions that change it, announces changes, and never touches the DOM.
|
|
64
|
+
- **Components render and report intent.** A component watches the stores it shows and changes them only through their actions. Only its own presentation, such as an open menu or hover, stays in the component. Each component owns its CSS.
|
|
65
|
+
- **Stores ask the interface through events.** When a store needs the interface to act, such as focusing an input or scrolling to new content, it fires an event the component listens to. Stores never call components.
|
|
66
|
+
- **One module wires the stores.** It creates them and gives each the stores it depends on. Dependencies point one way. A store changes another store only through that store's actions, and reactions that span stores live in this module.
|
|
67
|
+
- **One module owns the URL.** Only it reads or writes the URL's path, query, and `history`, mapping the URL to state. Put in the URL what a person would reload or share, such as the selected item. Standalone, add a history entry per selection so Back works. Embedded in a Book, replace the URL so Back stays the Book's. Pass it the window so it can be tested.
|
|
68
|
+
- **Split by concern, not by screen region.** Split a store or component when its parts change for different reasons.
|
|
69
|
+
|
|
59
70
|
## Security
|
|
60
71
|
|
|
61
72
|
Keep the security boundary simple and explicit:
|
|
@@ -264,6 +264,9 @@ bkper transaction list -b abc123 -q 'on:2025' --limit 100
|
|
|
264
264
|
# Fetch the next transaction page
|
|
265
265
|
bkper transaction list -b abc123 -q 'on:2025' --limit 100 --cursor cursor_123
|
|
266
266
|
|
|
267
|
+
# Count transactions without listing them
|
|
268
|
+
bkper transaction count -b abc123 -q "account:'Capital' on:2025"
|
|
269
|
+
|
|
267
270
|
# Update a transaction
|
|
268
271
|
bkper transaction update tx_456 -b abc123 --amount 120.00 --description "Printer paper (corrected)"
|
|
269
272
|
|
|
@@ -293,6 +296,7 @@ bkper transaction merge tx_123 tx_456 -b abc123
|
|
|
293
296
|
- `transaction list -b <bookId> -q <query>` - List transactions matching a query (auto-paginates through all results unless `--limit` or `--cursor` is provided)
|
|
294
297
|
- `--limit <number>` - Fetch one page with up to this many transactions
|
|
295
298
|
- `--cursor <cursor>` - Cursor for fetching the next page
|
|
299
|
+
- `transaction count -b <bookId> [-q <query>]` - Count transactions matching a query, returning `{"count":N}`; counts all transactions when `-q` is omitted. Use this instead of `transaction list` whenever only the number of transactions is needed — one call per account/group/period is fast, while listing fetches every transaction
|
|
296
300
|
- `transaction create -b <bookId>` - Create a transaction
|
|
297
301
|
- `--date <date>` - Transaction date
|
|
298
302
|
- `--amount <amount>` - Transaction amount
|
package/lib/docs/index.md
CHANGED
|
@@ -4,7 +4,7 @@ Reference docs for Bkper tasks. Load only the specific doc(s) relevant to the ta
|
|
|
4
4
|
|
|
5
5
|
For Bkper app implementation, refactoring, or code review, always read `apps/quality.md` alongside the task-specific references. After implementation, review the changed code against the guidelines before considering the work complete.
|
|
6
6
|
|
|
7
|
-
- `cli/data-management.md` — CLI reference for managing financial data and files: books, accounts, groups, files, transactions, events and bot responses (bot errors, replay, delete), per-account balance queries, query operators (on:, after:, before:, account:, group:), JSON output shapes and jq reshaping, human-review Bkper UI links, batch operations via stdin/piping, collections.
|
|
7
|
+
- `cli/data-management.md` — CLI reference for managing financial data and files: books, accounts, groups, files, transactions (list, count), events and bot responses (bot errors, replay, delete), per-account balance queries, query operators (on:, after:, before:, account:, group:), JSON output shapes and jq reshaping, human-review Bkper UI links, batch operations via stdin/piping, collections.
|
|
8
8
|
- `cli/app-usage.md` — Using Bkper apps to do work on a Book instead of rebuilding what they do: list a Book's installed apps and the app catalog, read descriptions, readmes, and property schemas, match them to the Book's properties, read an app's OpenAPI spec and call its API as the user, install apps.
|
|
9
9
|
- `cli/app-management.md` — CLI reference for building and deploying Bkper apps: init/git clone/credential helpers, dev/build/deploy workflow, app install/uninstall, secrets management, app logs, bkper.yaml configuration reference (identity, branding, events, menu integration, deployment).
|
|
10
10
|
- `apps/overview.md` — Platform evaluation and capability overview: use when comparing managed Bkper hosting with self-managed infrastructure or clarifying platform responsibilities; use the task-specific app references for implementation.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bkper",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.6.0",
|
|
4
4
|
"description": "Official Bkper CLI for accounting data, automation, apps, and AI agents",
|
|
5
5
|
"bin": {
|
|
6
6
|
"bkper": "lib/cli.js"
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@earendil-works/pi-telemetry": "1.2.0",
|
|
73
73
|
"@earendil-works/pi-tui": "1.2.0",
|
|
74
74
|
"@silvia-odwyer/photon-node": "0.3.4",
|
|
75
|
-
"bkper-js": "^2.
|
|
75
|
+
"bkper-js": "^2.45.1",
|
|
76
76
|
"commander": "^13.1.0",
|
|
77
77
|
"dotenv": "^8.2.0",
|
|
78
78
|
"esbuild": "^0.28.1",
|