@robbeverhelst/do 1.277.0 → 1.278.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.
Files changed (2) hide show
  1. package/dist/do.js +20 -7
  2. package/package.json +1 -1
package/dist/do.js CHANGED
@@ -4807,6 +4807,7 @@ var moneyGoalLines = pgTable("money_goal_lines", {
4807
4807
  paid: numeric("paid", { precision: 14, scale: 2 }).notNull().default("0"),
4808
4808
  note: text("note"),
4809
4809
  dueOn: date("due_on"),
4810
+ documentId: text("document_id").references(() => nodes.id, { onDelete: "set null" }),
4810
4811
  sortOrder: integer("sort_order").notNull().default(0),
4811
4812
  createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
4812
4813
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow()
@@ -21528,7 +21529,7 @@ var postRunSchema = object({
21528
21529
  status: runStatusSchema,
21529
21530
  steps: array(runStepSchema).max(12).optional()
21530
21531
  });
21531
- var POST_RECEIPT_ABOUT_VALUES = ["red_flags"];
21532
+ var POST_RECEIPT_ABOUT_VALUES = ["red_flags", "saved"];
21532
21533
  var postReceiptInputSchema = object({
21533
21534
  nodeId: ulidSchema,
21534
21535
  parts: array(ulidSchema).min(1).max(10).optional(),
@@ -22173,7 +22174,8 @@ var healthLabAnalyteViewSchema = object({
22173
22174
  title: string2(),
22174
22175
  dose: string2().nullable(),
22175
22176
  schedule: healthMedicationScheduleSchema,
22176
- habitId: string2().nullable()
22177
+ habitId: string2().nullable(),
22178
+ startedOn: string2().nullable()
22177
22179
  }).nullable()
22178
22180
  });
22179
22181
  var healthLabOverviewSchema = object({
@@ -24590,8 +24592,11 @@ var moneyGoalContributionSchema = object({
24590
24592
  counterpartyName: string2().nullable(),
24591
24593
  accountTitle: string2()
24592
24594
  });
24595
+ var moneyGoalLineViewSchema = moneyGoalLineSchema.extend({
24596
+ documentTitle: string2().nullable().default(null)
24597
+ });
24593
24598
  var moneyGoalDetailSchema = moneyGoalViewSchema.extend({
24594
- lines: array(moneyGoalLineSchema),
24599
+ lines: array(moneyGoalLineViewSchema),
24595
24600
  contributions: array(moneyGoalContributionSchema)
24596
24601
  });
24597
24602
  var createMoneyGoalInputSchema = object({
@@ -24615,6 +24620,7 @@ var createMoneyGoalLineInputSchema = object({
24615
24620
  paid: nonNegativeAmount.optional(),
24616
24621
  note: string2().trim().max(200).nullish(),
24617
24622
  dueOn: keyDateDaySchema.nullish(),
24623
+ documentId: ulidSchema.nullish(),
24618
24624
  sortOrder: number2().int().min(0).max(1e5).optional()
24619
24625
  }).strict();
24620
24626
  var updateMoneyGoalLineInputSchema = createMoneyGoalLineInputSchema.omit({ id: true }).partial().strict();
@@ -25206,7 +25212,14 @@ var PLANNING_RULE_KIND_LABELS = {
25206
25212
  // ../../packages/schema/src/contracts/runs.ts
25207
25213
  var runThemeValues = ["generic", "skyrim", "pokemon", "oblivion", "rdr2", "gta"];
25208
25214
  var runThemeSchema = _enum2(runThemeValues);
25209
- var runPlayStatusValues = ["planned", "playing", "paused", "finished", "dropped"];
25215
+ var runPlayStatusValues = [
25216
+ "planned",
25217
+ "playing",
25218
+ "paused",
25219
+ "blocked",
25220
+ "finished",
25221
+ "dropped"
25222
+ ];
25210
25223
  var runPlayStatusSchema = _enum2(runPlayStatusValues);
25211
25224
  var name = string2().trim().min(1).max(200);
25212
25225
  var text5 = string2().trim().max(2000);
@@ -28251,7 +28264,7 @@ function parseCapture2(input, now) {
28251
28264
 
28252
28265
  // src/meta.ts
28253
28266
  var CLI_NAME = "do";
28254
- var VERSION = "1.277.0";
28267
+ var VERSION = "1.278.0";
28255
28268
  var API_PREFIX = "/api/v1";
28256
28269
  var DEFAULT_API_URL = "http://localhost:3001";
28257
28270
 
@@ -29160,7 +29173,7 @@ var ENTITIES = [
29160
29173
  { name: "game", description: "only the runs of this game item id", query: "gameId" },
29161
29174
  {
29162
29175
  name: "status",
29163
- description: "only this status (planned, playing, paused, finished, dropped)",
29176
+ description: "only this status (planned, playing, paused, blocked, finished, dropped)",
29164
29177
  query: "status"
29165
29178
  },
29166
29179
  { name: "theme", description: "only this theme pack (skyrim, pokemon, \u2026)", query: "theme" }
@@ -33048,7 +33061,7 @@ var COMMAND_SPECS = [
33048
33061
  },
33049
33062
  {
33050
33063
  path: ["money", "goal-line-update"],
33051
- summary: "Edit a goal's line (what's planned or paid).",
33064
+ summary: "Edit a goal's line (what's planned or paid, its paper in Admin via documentId).",
33052
33065
  args: [{ name: "id", required: true, description: "Line ULID." }],
33053
33066
  flags: [{ name: "data", type: "string", description: "UpdateMoneyGoalLineInput JSON." }],
33054
33067
  scopes: ["finance:write"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robbeverhelst/do",
3
- "version": "1.277.0",
3
+ "version": "1.278.0",
4
4
  "private": false,
5
5
  "description": "do — the agent-drivable CLI over the public /api/v1 surface",
6
6
  "homepage": "https://github.com/robbeverhelst/do/tree/main/apps/cli",