@go-labs-sg/bb 1.2.2 → 1.2.3

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 CHANGED
@@ -94,9 +94,9 @@ bun run src/index.ts list-budgets
94
94
 
95
95
  ### Layout
96
96
 
97
- - **`src/prisma-enums.ts`** — Prisma enum string values for runtime; mirror `packages/db/src/generated/prisma/enums.ts` after schema changes.
97
+ - **`src/prisma-enums.ts`** — Prisma enum string values for runtime; mirror `packages/budget-builder/db/src/generated/prisma/enums.ts` after schema changes.
98
98
  - **`src/filter-enums.ts`** — “extended” filter enums (ALL + Prisma enums). Keep in line with `packages/utils/src/filter-enums.ts` when those values change.
99
99
 
100
100
  ### Publish
101
101
 
102
- `prepublishOnly` strips `workspace:` / `catalog:` entries from this package’s `package.json`, runs `tsc`, then `postpack` restores the file — so the npm tarball does not contain monorepo protocol dependencies. Types from `@bb/api` are compile-time only (`import type`). Prisma enum **values** used at runtime live in `src/prisma-enums.ts` (kept in sync with `packages/db` generated enums) so npm installs do not need `@bb/db`.
102
+ `prepublishOnly` strips `workspace:` / `catalog:` entries from this package’s `package.json`, runs `tsc`, then `postpack` restores the file — so the npm tarball does not contain monorepo protocol dependencies. Types from `@go-labs/budget-builder-api` are compile-time only (`import type`). Prisma enum **values** used at runtime live in `src/prisma-enums.ts` (kept in sync with `packages/budget-builder/db` generated enums) so npm installs do not need `@go-labs/budget-builder-db`.
package/dist/commands.js CHANGED
@@ -546,6 +546,7 @@ export async function createProject(opts) {
546
546
  description: opts.description,
547
547
  companyId: opts.companyId,
548
548
  contactPersonId: opts.contactPersonId,
549
+ asanaTaskId: opts.asanaTaskId,
549
550
  dateRange: {
550
551
  from: new Date(opts.startDate),
551
552
  to: opts.endDate ? new Date(opts.endDate) : undefined,
package/dist/index.js CHANGED
@@ -229,7 +229,7 @@ async function main() {
229
229
  perPage: parsePositiveIntFlag(getFlag(flags, "perPage"), "--perPage"),
230
230
  includeDetails: flags.summary === true
231
231
  ? false
232
- : parseOptionalBoolFlag(flags, "includeDetails") ?? true,
232
+ : (parseOptionalBoolFlag(flags, "includeDetails") ?? true),
233
233
  });
234
234
  break;
235
235
  }
@@ -691,14 +691,20 @@ async function main() {
691
691
  const name = getFlag(flags, "name");
692
692
  const companyId = getFlag(flags, "companyId");
693
693
  const contactPersonId = getFlag(flags, "contactPersonId");
694
+ const asanaTaskId = getFlag(flags, "asanaTaskId");
694
695
  const startDate = getFlag(flags, "startDate");
695
- if (!name || !companyId || !contactPersonId || !startDate) {
696
- throw new Error("create-project requires --name --companyId --contactPersonId --startDate (ISO)");
696
+ if (!name ||
697
+ !companyId ||
698
+ !contactPersonId ||
699
+ !asanaTaskId ||
700
+ !startDate) {
701
+ throw new Error("create-project requires --name --companyId --contactPersonId --asanaTaskId --startDate (ISO)");
697
702
  }
698
703
  await createProject({
699
704
  name,
700
705
  companyId,
701
706
  contactPersonId,
707
+ asanaTaskId,
702
708
  startDate,
703
709
  endDate: getFlag(flags, "endDate"),
704
710
  description: getFlag(flags, "description"),
@@ -196,6 +196,7 @@ export function parseUpdateProjectPayload(raw) {
196
196
  description: optionalString(o.description),
197
197
  companyId: requiredString(o.companyId, "update-project payload.companyId"),
198
198
  contactPersonId: requiredString(o.contactPersonId, "update-project payload.contactPersonId"),
199
+ asanaTaskId: requiredString(o.asanaTaskId, "update-project payload.asanaTaskId"),
199
200
  dateRange: {
200
201
  from: toDate(range.from, "dateRange.from"),
201
202
  to: range.to === undefined || range.to === null
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Runtime Prisma enum values the CLI needs. Mirrors
3
- * `packages/db/src/generated/prisma/enums.ts` — keep in sync when the schema changes.
3
+ * `packages/budget-builder/db/src/generated/prisma/enums.ts` — keep in sync when the schema changes.
4
4
  */
5
5
  export const EstimationMode = {
6
6
  MICRO: "MICRO",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-labs-sg/bb",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Budget Builder CLI — list budgets, bills, approvals, suppliers; approve bills; change status. For AI agents (e.g. Chuck/OpenClaw).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -22,7 +22,6 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@trpc/client": "^11.16.0",
25
- "dotenv": "^17.2.4",
26
25
  "mime-types": "^3.0.2",
27
26
  "superjson": "^2.2.6"
28
27
  },