@go-labs-sg/bb 3.22.0 → 3.23.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/README.md +14 -1
- package/command-manifest.json +167 -1
- package/command-reference.md +25 -1
- package/dist/index.js +730 -652
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -737,7 +737,7 @@ Admin/Lead users can run `bb supplier approve <supplierId>` to directly re-appro
|
|
|
737
737
|
| **Bills / claims** | `list-bills` (`--isClaimable false` for bills, `--isClaimable true` for claims, omit for both), `list-claims` (claims only), `validate-bill-selection` (`--payload`, plus `--quotationIds q1,q2` or legacy `--quotationId q1`; validates the approved supplier and quotation coverage), `link-bill-quotations` (`<billId> --quotationIds q1,q2`; Admin source-link repair for eligible supplier bills), `stage-bill-attachment` (securely uploads invoice/payment-proof files before creation and returns attachment JSON; ownership and one-hour expiry are enforced by a server-side staged-upload record rather than encoded in the object key), `cleanup-staged-bill-attachments`, `create-bill` (`--payload`; set `isClaimable=false` for a bill and provide approved `quotationIds`, or use `--quotation-exempt` for an eligible server-validated exemption; set `isClaimable=true` for a claim without quotations; supplier bills require positive **before-GST** `extractedAmount` (full invoice subtotal) and `amount` (portion billed), with `amount <= extractedAmount`; line and quotation allocation amounts also exclude GST; an already-paid supplier bill sets `alreadyPaid=true` and requires `paymentReference` plus a staged PDF in `paymentProofAttachments`; an Admin's unpaid bill is approved on creation and its QuickBooks bill is created by a queued job (`quickBooksSyncQueued: true`, `operationId`; track it with `list-integration-operations`), an Admin's already-paid bill queues paid-bill finalization, and other roles remain pending approval; the request never writes to QuickBooks), `update-bill` (`--payload`), `update-bill-payment-evidence` (`--payload`; replaces the payment reference and payment-proof PDFs for an already-paid bill), `delete-bill`, `create-bill-approval` (also sends approval request emails), `update-bill-status` (`PAID` requires `--paymentReference`; pass `--paymentProof <receipt.pdf>` to stage and submit a PDF up to 20MB atomically, or omit it only when BB already has payment proof; moving to `PAID` runs the server's paid-bill notification workflow), `patch-bill-payment` (PAID bills: `--paymentTrackingUrl`, `--paymentReference`, `--quickbooksBillId`, `--paymentDate` ISO; clearing a paid bill's QuickBooks link is not allowed), `patch-bill-invoice-number`, `get-bill-attachments` (newest-first cursor pages: `--limit` 1–50, `--cursor`; returns `{ items, pageInfo }`), `upload-bill-attachment` (`<billId>` + local path), `get-bill-details` (the web bill summary: status, amounts, people, payment, line totals), `get-bill-line-items` / `get-bill-approvals` (newest-first cursor pages: `--limit`, `--cursor`; `{ items, pageInfo }`), `get-bill-payment` (payment status, reference, date, tracking URL, QuickBooks link, external payment) |
|
|
738
738
|
| **Quotations** | `list-quotations` (project, budget, supplier, status, requester and text-search filters; newest-first cursor pages via `--limit` / `--cursor` / `--direction` returning `{ items, pageInfo }`; `--page` / `--perPage` / `--pageSize` are rejected), `count-quotations` (`quotation.getCounts`: filters only, returns `totalCount`, status facets that ignore their own status filter, and `--includeMetrics true` amount metrics), `get-quotation` (web quotation shape), `get-quotation-line-items` (`<quotationId>`; newest-first cursor pages, `--limit 1-100`, `--cursor`), `upload-quotation-attachment` (`<projectId>` + PDF/JPEG/PNG path up to 20MB; returns attachment JSON for payload use), `cleanup-staged-quotation-attachments`, `create-quotation` (`--payload` for `quotation.createDraft`; include `amountWithoutGst`, `gstAmount`, and `lineAmounts` entries `{ budgetItemId, amount }` for multiple selected items; `documentOnly: true` with all amounts `0` creates a $0 supplier document that is never a bill source and does not count as quotation coverage), `update-quotation` (`--payload`; updates a `DRAFT` or `REJECTED` quotation; a full replace, so resend `documentOnly: true` for a document-only quotation), `delete-quotation`, `submit-quotation`, `approve-quotation`, `reject-quotation`, `download-quotation-pdf` (`original`, `staff`, or `final`). PDF work runs in queued jobs, not in the request: `create-quotation` / `update-quotation` queue the upload check and PDF conversion, `submit-quotation` and `approve-quotation` queue the staff-signed and final signed PDFs. `get-quotation` reports `pdfProcessing` (`PROCESSING` or `FAILED`, with the step and error) until the PDF is linked, and `download-quotation-pdf` answers "still processing" meanwhile. `create-quotation`, `update-quotation`, `submit-quotation` and `get-quotation` return `gstMismatch`: `null`, or `{ basis, expectedGstAmount, enteredGstAmount, difference, message }` when a non-zero `gstAmount` is more than $0.05 away from the expected GST. `basis` `TAXABLE_LINES` is the bill calculation for the quoted lines (9% of each in-scope line, rounded per line; none for a non-GST-registered supplier); `FULL_SUBTOTAL` is 9% of `amountWithoutGst`, used when line amounts are unknown. It is a warning only; GST `0` is always accepted |
|
|
739
739
|
| **Customer invoices** | `check-customer-invoice-readiness`, `list-eligible-customer-invoice-budgets`, `preview-customer-invoice-amount`, `list-available-qbo-customer-invoices`, `list-customer-invoices` (global/project/budget filters; cursor pages via `--limit` / `--cursor` / `--direction` returning `{ items, pageInfo }`, `--page` / `--perPage` rejected; `--sortBy totalInvoiceAmount` sorts provider-confirmed totals including GST, with unknown amounts last), `count-customer-invoices` (`customerInvoice.getCounts`: filters only; `totalCount`, lifecycle status facets that ignore their own status filter, and amount metrics), `get-customer-invoice` (web-shaped batch), `get-customer-invoice-invoices`, `get-customer-invoice-lines`, `get-customer-invoice-approvals`, `get-customer-invoice-history`, `get-customer-invoice-payments` (live QuickBooks payments for one invoice), `get-customer-invoice-email-context`, `preview-qbo-customer-invoice`, `import-qbo-customer-invoice` (BB-only link with reviewed token), `create-customer-invoice`, `resubmit-customer-invoice` (original requester only; one replacement after confirmed expiry voiding; repeated calls return the same replacement), `discard-customer-invoice`, `delete-customer-invoice`, `void-customer-invoice`, `approve-customer-invoice` (admin), `reject-customer-invoice` (admin), `send-customer-invoice-to-contact-person`, `download-customer-invoice-pdf` (non-admins cannot download while approval is pending), `mark-customer-invoice-sent-externally` (admin; `--sentAt` ISO, `--recipients` comma list, optional `--note`; records an APPROVED invoice as SENT/EXTERNAL, sends no email), `sync-customer-invoice` (status only: QuickBooks edits to bill-to address, memo, bill email or total are held as `qboDetailsDrift` and admins are emailed once per QuickBooks revision), `update-customer-invoice-details` (bill-to address and memo; external QuickBooks write; bill email is managed in QuickBooks), `update-customer-invoice-qbo-drift` (admin; `--resolution ACCEPT_QBO` writes BB only, `KEEP_BB` queues BB's address and memo to QuickBooks) |
|
|
740
|
-
| **Approvals** | `list
|
|
740
|
+
| **Approvals** | `approval list` (`--type budget\|supplier\|bill\|quotation\|customer_invoice\|all`, `--limit`, `--cursor`, `--direction`), `approval get <approvalId>`, `approve-bill` / `reject-bill` (send reply email), `approve-budget` / `reject-budget` (send reply email), `approve-supplier` / `reject-supplier` (send reply email; approval and Lead/Admin re-approval queue the QuickBooks vendor sync, and the supplier is usable once it confirms), `approve-quotation` / `reject-quotation`, `approve-customer-invoice` / `reject-customer-invoice` |
|
|
741
741
|
| **Companies & projects** | `list-companies`, `get-company`, `create-company` / `use-existing-company` (save the BB company now and queue its QuickBooks customer find/create or link, returning `quickBooksSyncQueued` / `operationId`; a QBO-only import passes `--name` from `search-existing-companies`; estimates, invoices and QuickBooks projects wait until the customer is linked; `get-company-quickbooks-sync-status` shows the queued or stopped link), `update-company` (`--payload`), `delete-company`, `list-projects`, `get-project` (its budget overview returns `totalRevenue`, calculated only from Estimate Accepted and Estimate Closed budgets), `get-project-hub-status` (saved state only, no provider read; a project whose hub link exists only in its Asana notes shows as not set up until `setup-project-hub` links that existing hub; also reports `rotation` while a web-started share-link rotation is `QUEUED` or has `FAILED`; the rotation runs as a queued job and the current link keeps working until it finishes), `setup-project-hub`, `sync-project-hub-commercial-documents`, `create-project` (required: `--name`, `--companyId`, `--contactPersonId`, `--insideSalesId`, `--businessDevelopmentId`, `--venue`, `--startDate` as ISO datetime for project/window start; when `--asanaTaskId` is omitted, the CLI searches open Asana lead tasks in the Deals project, prompts for one of the top five matches, and links the selected deal card; optional `--asanaSearch`, `--pax`, `--endDate`, `--description`, `--projectManagerId`; always requests QBO project import like the web app; the deal card name is updated by a queued job reported as `asanaNameSyncQueued` / `asanaNameSyncOperationId`), `update-project` (`--payload` with `dateRange.from` / `dateRange.to` for the project window; optional `projectManagerId` and `requestQboAccountantNotification` in JSON; a rename queues the Asana project and deal card rename and returns `asanaNameSyncQueued` / `asanaNameSyncOperationId`; a Business Development change queues the deal card assignee update and returns `asanaAssigneeSyncQueued` / `asanaAssigneeSyncOperationId`, with `integrationWarnings` only when the deal card or Asana user mapping is missing — the request never calls Asana), `delete-project`, `check-project-reconciliation <id>` (runs the web app's live checks without changing status), `reconcile-project <id>` (reruns checks transactionally and marks an eligible project `RECONCILED`), `complete-project <id>` (reruns validation, marks a reconciled project `COMPLETED`, and queues QuickBooks placeholder cleanup), `import-qbo-project`, `update-project-status` (`<id>` `<status>`: `PITCH` \| `WON` \| `COMPLETED` \| `RECONCILED` \| `LOST`; close-out follows `WON` → `RECONCILED` → `COMPLETED`, and reconciliation requires every accepted/closed budget line to have an Approved/Paid bill or claim or be explicitly Not Utilized; marking `COMPLETED` queues deletion of every remaining project placeholder bill from QuickBooks; for `PITCH` → `WON` also pass a Budget Builder user `--projectManagerId` or `--projectManagerEmail`; when marking `WON` without an accepted/closed budget or proof, pass `--wonOverrideReason`) |
|
|
742
742
|
| **Contacts** | `list-contacts`, `create-contact-person` (`--payload`), `update-contact-person` (`--payload`) |
|
|
743
743
|
| **Suppliers & items** | `list-suppliers` (defaults to active suppliers, `--perPage 10`, sorted by `createdAt` desc; supports `--name`, `--sortBy` for scalar supplier fields, `--sortDir`, `--createdBy`, `--gstRegistered`, `--status`, `--supplierTags`, `--active false` for archived suppliers; each row carries `quickBooksSync` while a QuickBooks vendor job is queued or stopped), `create-supplier` (`--payload`; when supplier status is `PENDING_APPROVAL`, also runs `supplier.createSupplierApproval` and `email.sendSupplierApprovalRequestEmail`; a Lead/Admin create or archived-name revival instead queues the QuickBooks vendor create or link, returning `quickBooksSyncQueued` and `operationId`, and the supplier becomes usable once QuickBooks confirms), `update-supplier` (`--payload`; when supplier status is `PENDING_APPROVAL`, also runs `supplier.createSupplierApproval` and `email.sendSupplierApprovalRequestEmail`), `delete-suppliers` (`--ids` CSV; admin; archives/deactivates related items), `reactivate-suppliers` (`--ids` CSV; admin; queues one job per inactive supplier that reactivates or links its QuickBooks vendor and only then makes the supplier and its supplier-deactivated items active; returns `queuedSuppliers` and `operations`), `create-certification` / `create-payment-method` / `create-supplier-role` / `create-supplier-tag` (`--name`), `get-supplier-details` (includes `quickBooksSync` while a QuickBooks vendor job is `QUEUED` or has `FAILED`, and `supplierApprovalSummary` for pending approvers, superseded approvers, and the actual responder/respondedAt metadata), `get-supplier-overview` / `get-supplier-usage` / `get-supplier-items` `<supplierId>` (the supplier page's per-tab reads: profile, approvals and tab counts without usage or items; usage rows with spending; inventory items), `get-supplier-analytics` (admin; cursor pages: `--limit` / `--cursor` / `--direction`, optional `--name`, `--status` CSV, `--gstRegistered true|false`, `--createdBy`, `--timeFrame` (with `--startDate`/`--endDate` for `CUSTOM` only), `--sortBy name|gstRegistered|status|phone|email|updatedAt|createdAt`, `--sortDir`; `--page` / `--perPage` rejected; invalid filters are rejected instead of silently widening results), `count-supplier-analytics` (admin; `{ totalCount }` for the same filters), `list-items` (`--includeQuickBooksDeactivationPending true` discovers interrupted QuickBooks deactivations for Admin retry), `create-item` (`--payload`; saves the item and queues its QuickBooks item create, returning `quickBooksSyncQueued` and `operationId`; edits, archives and reactivation wait until that create links the QuickBooks item), `update-item` (`--payload`), `archive-items` (`--ids` CSV, max 100; Budget Builder-only; open estimates retain unavailable snapshot lines for resolution), `delete-item` (admin; archives in Budget Builder and makes the item inactive in QuickBooks; blocked while an open estimate references it), `get-item`, `list-item-categories` (cursor pages of active categories: `--limit` / `--cursor` / `--direction`, optional `--name`, `--sortBy createdAt|name|itemCount|createdBy`, `--sortDir`; `--page` / `--perPage` rejected), `count-item-categories` (`{ totalCount }` for the same `--name`), `create-item-category` / `update-item-category` / `delete-item-categories` (admin; `--ids` CSV for delete; `create-item-category` saves the category and queues its QuickBooks create or link — `list-item-categories` rows show `quickBooksSync` while it is queued or stopped, and items can be created in the category meanwhile; `update-item-category` saves the name immediately and queues the QuickBooks rename for a linked category, returning `quickBooksSyncQueued` and `operationId`) |
|
|
@@ -825,6 +825,19 @@ approval transaction. Multiple source quotations use canonical bill quotation
|
|
|
825
825
|
allocation rows; apply the updated database schema and deploy the API before
|
|
826
826
|
releasing the CLI. Unresolved historical overlaps continue to block approval.
|
|
827
827
|
|
|
828
|
+
## Approval inbox
|
|
829
|
+
|
|
830
|
+
`bb approval list [--type bill] [--limit 50] [--cursor '<token>'] [--direction forward|backward]` returns one bounded page of your assigned pending requests, oldest first, with `{ items, pageInfo }`. Follow `pageInfo.nextCursor` to continue, retaining the same type filter. Offset `--page`/`--perPage` are rejected. Decided notification history is not scanned, and budgets already linked to a QuickBooks estimate remain excluded because those requests can no longer be decided. `bb approval get <approvalId>` reads one still-pending assigned request or returns null.
|
|
831
|
+
|
|
832
|
+
## Advisory bill review
|
|
833
|
+
|
|
834
|
+
```sh
|
|
835
|
+
bb bill request-review <billId> --allow-state-change --allow-external-write
|
|
836
|
+
bb bill review <billId>
|
|
837
|
+
```
|
|
838
|
+
|
|
839
|
+
Requires a bill currently assigned to you for approval. The request queues an AI review using the same evidence and permissions as Android; it never approves, rejects or pays. Use `--requestId <id>` for a specific idempotent request or a deliberate new attempt after failure. Reopening unchanged evidence reuses current work. The passive read returns the evidence hash, checks, operation state, cited recommendation and review time. Changed evidence returns STALE with no recommendation. API and worker deployment is required before these commands are available.
|
|
840
|
+
|
|
828
841
|
## Build artifact compatibility
|
|
829
842
|
|
|
830
843
|
`bun run build` uses the shared CLI builder and checks the executable against
|
package/command-manifest.json
CHANGED
|
@@ -3319,6 +3319,106 @@
|
|
|
3319
3319
|
"effects": [],
|
|
3320
3320
|
"legacyTarget": "get-bill-details"
|
|
3321
3321
|
},
|
|
3322
|
+
{
|
|
3323
|
+
"path": ["bill", "review"],
|
|
3324
|
+
"legacyAliases": ["get-bill-review", "get_bill_review"],
|
|
3325
|
+
"summary": "Read current advisory AI bill review and evidence. Passive; no provider calls. Argument: <billId>.",
|
|
3326
|
+
"globalOptions": [
|
|
3327
|
+
{
|
|
3328
|
+
"name": "--help",
|
|
3329
|
+
"description": "Show help for this command."
|
|
3330
|
+
},
|
|
3331
|
+
{
|
|
3332
|
+
"name": "--quiet",
|
|
3333
|
+
"description": "Suppress non-error diagnostics."
|
|
3334
|
+
},
|
|
3335
|
+
{
|
|
3336
|
+
"name": "--debug",
|
|
3337
|
+
"description": "Emit sanitized diagnostic traces."
|
|
3338
|
+
},
|
|
3339
|
+
{
|
|
3340
|
+
"name": "--api-url",
|
|
3341
|
+
"description": "Override the Budget Builder API base URL."
|
|
3342
|
+
},
|
|
3343
|
+
{
|
|
3344
|
+
"name": "--no-browser",
|
|
3345
|
+
"description": "Print the authorization URL without opening a browser."
|
|
3346
|
+
},
|
|
3347
|
+
{
|
|
3348
|
+
"name": "--allow-state-change",
|
|
3349
|
+
"description": "Allow a Budget Builder state change in non-interactive use."
|
|
3350
|
+
},
|
|
3351
|
+
{
|
|
3352
|
+
"name": "--allow-email",
|
|
3353
|
+
"description": "Allow sending email in non-interactive use."
|
|
3354
|
+
},
|
|
3355
|
+
{
|
|
3356
|
+
"name": "--allow-external-write",
|
|
3357
|
+
"description": "Allow writes to external systems in non-interactive use."
|
|
3358
|
+
},
|
|
3359
|
+
{
|
|
3360
|
+
"name": "--allow-delete",
|
|
3361
|
+
"description": "Allow deleting data in non-interactive use."
|
|
3362
|
+
},
|
|
3363
|
+
{
|
|
3364
|
+
"name": "--allow-financial-write",
|
|
3365
|
+
"description": "Allow financial-record changes in non-interactive use."
|
|
3366
|
+
}
|
|
3367
|
+
],
|
|
3368
|
+
"argumentMode": "legacy-passthrough",
|
|
3369
|
+
"effects": [],
|
|
3370
|
+
"legacyTarget": "get-bill-review"
|
|
3371
|
+
},
|
|
3372
|
+
{
|
|
3373
|
+
"path": ["bill", "request-review"],
|
|
3374
|
+
"legacyAliases": ["request-bill-review", "request_bill_review"],
|
|
3375
|
+
"summary": "Queue an advisory AI review of a bill pending your approval. No financial decision is made. <billId> [--requestId <id>]",
|
|
3376
|
+
"globalOptions": [
|
|
3377
|
+
{
|
|
3378
|
+
"name": "--help",
|
|
3379
|
+
"description": "Show help for this command."
|
|
3380
|
+
},
|
|
3381
|
+
{
|
|
3382
|
+
"name": "--quiet",
|
|
3383
|
+
"description": "Suppress non-error diagnostics."
|
|
3384
|
+
},
|
|
3385
|
+
{
|
|
3386
|
+
"name": "--debug",
|
|
3387
|
+
"description": "Emit sanitized diagnostic traces."
|
|
3388
|
+
},
|
|
3389
|
+
{
|
|
3390
|
+
"name": "--api-url",
|
|
3391
|
+
"description": "Override the Budget Builder API base URL."
|
|
3392
|
+
},
|
|
3393
|
+
{
|
|
3394
|
+
"name": "--no-browser",
|
|
3395
|
+
"description": "Print the authorization URL without opening a browser."
|
|
3396
|
+
},
|
|
3397
|
+
{
|
|
3398
|
+
"name": "--allow-state-change",
|
|
3399
|
+
"description": "Allow a Budget Builder state change in non-interactive use."
|
|
3400
|
+
},
|
|
3401
|
+
{
|
|
3402
|
+
"name": "--allow-email",
|
|
3403
|
+
"description": "Allow sending email in non-interactive use."
|
|
3404
|
+
},
|
|
3405
|
+
{
|
|
3406
|
+
"name": "--allow-external-write",
|
|
3407
|
+
"description": "Allow writes to external systems in non-interactive use."
|
|
3408
|
+
},
|
|
3409
|
+
{
|
|
3410
|
+
"name": "--allow-delete",
|
|
3411
|
+
"description": "Allow deleting data in non-interactive use."
|
|
3412
|
+
},
|
|
3413
|
+
{
|
|
3414
|
+
"name": "--allow-financial-write",
|
|
3415
|
+
"description": "Allow financial-record changes in non-interactive use."
|
|
3416
|
+
}
|
|
3417
|
+
],
|
|
3418
|
+
"argumentMode": "legacy-passthrough",
|
|
3419
|
+
"effects": ["state-change", "external-write"],
|
|
3420
|
+
"legacyTarget": "request-bill-review"
|
|
3421
|
+
},
|
|
3322
3422
|
{
|
|
3323
3423
|
"path": ["bill", "line-item", "list"],
|
|
3324
3424
|
"legacyAliases": ["get-bill-line-items", "get_bill_line_items"],
|
|
@@ -5666,7 +5766,7 @@
|
|
|
5666
5766
|
"get-pending-approvals",
|
|
5667
5767
|
"get_pending_approvals"
|
|
5668
5768
|
],
|
|
5669
|
-
"summary": "List
|
|
5769
|
+
"summary": "List one page of requests currently assigned to you and pending approval, oldest first. Returns { items, pageInfo }; follow nextCursor with unchanged --type. --page/--perPage are rejected.",
|
|
5670
5770
|
"globalOptions": [
|
|
5671
5771
|
{
|
|
5672
5772
|
"name": "--help",
|
|
@@ -5707,12 +5807,78 @@
|
|
|
5707
5807
|
{
|
|
5708
5808
|
"name": "--allow-financial-write",
|
|
5709
5809
|
"description": "Allow financial-record changes in non-interactive use."
|
|
5810
|
+
},
|
|
5811
|
+
{
|
|
5812
|
+
"name": "--type <type>",
|
|
5813
|
+
"description": "Filter budget, supplier, bill, quotation, customer_invoice, or all."
|
|
5814
|
+
},
|
|
5815
|
+
{
|
|
5816
|
+
"name": "--limit <number>",
|
|
5817
|
+
"description": "Page size 1–100; default 50."
|
|
5818
|
+
},
|
|
5819
|
+
{
|
|
5820
|
+
"name": "--cursor <token>",
|
|
5821
|
+
"description": "Opaque cursor from pageInfo."
|
|
5822
|
+
},
|
|
5823
|
+
{
|
|
5824
|
+
"name": "--direction <direction>",
|
|
5825
|
+
"description": "forward (default) or backward; backward requires a cursor."
|
|
5710
5826
|
}
|
|
5711
5827
|
],
|
|
5712
5828
|
"argumentMode": "legacy-passthrough",
|
|
5713
5829
|
"effects": [],
|
|
5714
5830
|
"legacyTarget": "list-approvals"
|
|
5715
5831
|
},
|
|
5832
|
+
{
|
|
5833
|
+
"path": ["approval", "get"],
|
|
5834
|
+
"legacyAliases": ["get-pending-approval", "get_pending_approval"],
|
|
5835
|
+
"summary": "Read one request still pending your approval, or null if it is no longer pending/assigned. Argument: <approvalId>.",
|
|
5836
|
+
"globalOptions": [
|
|
5837
|
+
{
|
|
5838
|
+
"name": "--help",
|
|
5839
|
+
"description": "Show help for this command."
|
|
5840
|
+
},
|
|
5841
|
+
{
|
|
5842
|
+
"name": "--quiet",
|
|
5843
|
+
"description": "Suppress non-error diagnostics."
|
|
5844
|
+
},
|
|
5845
|
+
{
|
|
5846
|
+
"name": "--debug",
|
|
5847
|
+
"description": "Emit sanitized diagnostic traces."
|
|
5848
|
+
},
|
|
5849
|
+
{
|
|
5850
|
+
"name": "--api-url",
|
|
5851
|
+
"description": "Override the Budget Builder API base URL."
|
|
5852
|
+
},
|
|
5853
|
+
{
|
|
5854
|
+
"name": "--no-browser",
|
|
5855
|
+
"description": "Print the authorization URL without opening a browser."
|
|
5856
|
+
},
|
|
5857
|
+
{
|
|
5858
|
+
"name": "--allow-state-change",
|
|
5859
|
+
"description": "Allow a Budget Builder state change in non-interactive use."
|
|
5860
|
+
},
|
|
5861
|
+
{
|
|
5862
|
+
"name": "--allow-email",
|
|
5863
|
+
"description": "Allow sending email in non-interactive use."
|
|
5864
|
+
},
|
|
5865
|
+
{
|
|
5866
|
+
"name": "--allow-external-write",
|
|
5867
|
+
"description": "Allow writes to external systems in non-interactive use."
|
|
5868
|
+
},
|
|
5869
|
+
{
|
|
5870
|
+
"name": "--allow-delete",
|
|
5871
|
+
"description": "Allow deleting data in non-interactive use."
|
|
5872
|
+
},
|
|
5873
|
+
{
|
|
5874
|
+
"name": "--allow-financial-write",
|
|
5875
|
+
"description": "Allow financial-record changes in non-interactive use."
|
|
5876
|
+
}
|
|
5877
|
+
],
|
|
5878
|
+
"argumentMode": "legacy-passthrough",
|
|
5879
|
+
"effects": [],
|
|
5880
|
+
"legacyTarget": "get-pending-approval"
|
|
5881
|
+
},
|
|
5716
5882
|
{
|
|
5717
5883
|
"path": ["bill", "approve"],
|
|
5718
5884
|
"legacyAliases": ["approve-bill", "approve_bill"],
|
package/command-reference.md
CHANGED
|
@@ -571,6 +571,22 @@ Legacy aliases: `get-bill-details`, `get_bill_details`.
|
|
|
571
571
|
|
|
572
572
|
Effects: none.
|
|
573
573
|
|
|
574
|
+
## `bb bill review`
|
|
575
|
+
|
|
576
|
+
Read current advisory AI bill review and evidence. Passive; no provider calls. Argument: <billId>.
|
|
577
|
+
|
|
578
|
+
Legacy aliases: `get-bill-review`, `get_bill_review`.
|
|
579
|
+
|
|
580
|
+
Effects: none.
|
|
581
|
+
|
|
582
|
+
## `bb bill request-review`
|
|
583
|
+
|
|
584
|
+
Queue an advisory AI review of a bill pending your approval. No financial decision is made. <billId> [--requestId <id>]
|
|
585
|
+
|
|
586
|
+
Legacy aliases: `request-bill-review`, `request_bill_review`.
|
|
587
|
+
|
|
588
|
+
Effects: state-change, external-write.
|
|
589
|
+
|
|
574
590
|
## `bb bill line-item list`
|
|
575
591
|
|
|
576
592
|
List a bill's line items with budget-item and quotation-allocation detail. <billId> [--limit 1-100] [--cursor <token>] Newest first. Returns { items, pageInfo }; follow nextCursor.
|
|
@@ -945,12 +961,20 @@ Effects: state-change, financial-write.
|
|
|
945
961
|
|
|
946
962
|
## `bb approval list`
|
|
947
963
|
|
|
948
|
-
List
|
|
964
|
+
List one page of requests currently assigned to you and pending approval, oldest first. Returns { items, pageInfo }; follow nextCursor with unchanged --type. --page/--perPage are rejected.
|
|
949
965
|
|
|
950
966
|
Legacy aliases: `list-approvals`, `list_approvals`, `get-pending-approvals`, `get_pending_approvals`.
|
|
951
967
|
|
|
952
968
|
Effects: none.
|
|
953
969
|
|
|
970
|
+
## `bb approval get`
|
|
971
|
+
|
|
972
|
+
Read one request still pending your approval, or null if it is no longer pending/assigned. Argument: <approvalId>.
|
|
973
|
+
|
|
974
|
+
Legacy aliases: `get-pending-approval`, `get_pending_approval`.
|
|
975
|
+
|
|
976
|
+
Effects: none.
|
|
977
|
+
|
|
954
978
|
## `bb bill approve`
|
|
955
979
|
|
|
956
980
|
Approve Bill.
|