@go-labs-sg/bb 3.6.0 → 3.7.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/command-reference.md +1 -1
- package/dist/index.js +3 -10
- package/package.json +2 -2
package/command-reference.md
CHANGED
|
@@ -1195,7 +1195,7 @@ Effects: state-change.
|
|
|
1195
1195
|
|
|
1196
1196
|
Payload fields (--payload JSON)
|
|
1197
1197
|
Required: companyId: string; title: MR|MRS|MS|DR; firstName: string; lastName: string|null; email: string; mobile: string
|
|
1198
|
-
Optional: address: {streetAddress1?, city?, state?, postalCode?, country?}
|
|
1198
|
+
Optional: address: {streetAddress1?, city?, state?, postalCode?, countryCode? (ISO 3166-1 alpha-2, e.g. SG), country? (legacy name)}
|
|
1199
1199
|
Example: bb create-contact-person --payload '{"companyId":"<company-id>","title":"MS","firstName":"Jane","lastName":"Tan","email":"jane@example.com","mobile":"+65 9123 4567"}'
|
|
1200
1200
|
|
|
1201
1201
|
## `bb contact update`
|
package/dist/index.js
CHANGED
|
@@ -10630,9 +10630,6 @@ async function updateProjectStatus(id, status, opts) {
|
|
|
10630
10630
|
...opts?.projectManagerId && { projectManagerId: opts.projectManagerId },
|
|
10631
10631
|
...opts?.projectManagerEmail && {
|
|
10632
10632
|
projectManagerEmail: opts.projectManagerEmail
|
|
10633
|
-
},
|
|
10634
|
-
...opts?.wonOverrideReason && {
|
|
10635
|
-
wonOverrideReason: opts.wonOverrideReason
|
|
10636
10633
|
}
|
|
10637
10634
|
});
|
|
10638
10635
|
out(result);
|
|
@@ -11098,7 +11095,7 @@ var payloadHelp = {
|
|
|
11098
11095
|
},
|
|
11099
11096
|
"create-contact-person": {
|
|
11100
11097
|
required: "companyId: string; title: MR|MRS|MS|DR; firstName: string; lastName: string|null; email: string; mobile: string",
|
|
11101
|
-
optional: "address: {streetAddress1?, city?, state?, postalCode?, country?}",
|
|
11098
|
+
optional: "address: {streetAddress1?, city?, state?, postalCode?, countryCode? (ISO 3166-1 alpha-2, e.g. SG), country? (legacy name)}",
|
|
11102
11099
|
example: '{"companyId":"<company-id>","title":"MS","firstName":"Jane","lastName":"Tan","email":"jane@example.com","mobile":"+65 9123 4567"}'
|
|
11103
11100
|
},
|
|
11104
11101
|
"update-contact-person": {
|
|
@@ -13541,9 +13538,9 @@ Companies & projects
|
|
|
13541
13538
|
reconcile-project <id> Rerun all checks transactionally and mark an eligible WON project RECONCILED.
|
|
13542
13539
|
complete-project <id> Rerun reconciliation validation, mark a RECONCILED project COMPLETED, and queue QBO placeholder cleanup.
|
|
13543
13540
|
import-qbo-project <projectId> --url <quickBooksProjectUrl>
|
|
13544
|
-
update-project-status <id> <status> [--projectManagerId <userId>] [--projectManagerEmail <email>]
|
|
13541
|
+
update-project-status <id> <status> [--projectManagerId <userId>] [--projectManagerEmail <email>]
|
|
13542
|
+
PITCH \u2192 WON requires an accepted/closed estimate. To win a pitch, accept its estimate with mark-budget-won <budgetId> <signed-quote.pdf>, which moves the project to WON.
|
|
13545
13543
|
Required when moving PITCH \u2192 WON: supply --projectManagerId or --projectManagerEmail.
|
|
13546
|
-
Required when moving to WON without accepted/closed budget or win proof: --wonOverrideReason (10+ chars).
|
|
13547
13544
|
status: ${projectStatusesForHelp.join(", ")}
|
|
13548
13545
|
|
|
13549
13546
|
Contacts
|
|
@@ -15389,14 +15386,10 @@ Waiting for approval\u2026
|
|
|
15389
15386
|
}
|
|
15390
15387
|
const pmIdFlag = getFlag(flags, "projectManagerId");
|
|
15391
15388
|
const pmEmailFlag = getFlag(flags, "projectManagerEmail");
|
|
15392
|
-
const wonOverrideReasonFlag = getFlag(flags, "wonOverrideReason");
|
|
15393
15389
|
await updateProjectStatus(id, parseProjectStatusForUpdate(statusRaw), {
|
|
15394
15390
|
...pmIdFlag && { projectManagerId: String(pmIdFlag) },
|
|
15395
15391
|
...pmEmailFlag && {
|
|
15396
15392
|
projectManagerEmail: String(pmEmailFlag)
|
|
15397
|
-
},
|
|
15398
|
-
...wonOverrideReasonFlag && {
|
|
15399
|
-
wonOverrideReason: String(wonOverrideReasonFlag)
|
|
15400
15393
|
}
|
|
15401
15394
|
});
|
|
15402
15395
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@go-labs-sg/bb",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"description": "Budget Builder CLI for AI agents — manage budgets, bills, claims, quotations, and customer invoices with explicit workflow previews for sensitive changes.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"command-manifest.json"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@trpc/client": "^11.
|
|
22
|
+
"@trpc/client": "^11.22.1",
|
|
23
23
|
"dotenv": "^18.0.9",
|
|
24
24
|
"mime-types": "^3.0.2",
|
|
25
25
|
"superjson": "^2.2.6"
|