@robbeverhelst/do 1.177.0 → 1.178.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 +18 -2
  2. package/package.json +1 -1
package/dist/do.js CHANGED
@@ -3948,6 +3948,8 @@ var pushSubscriptions = pgTable("push_subscriptions", {
3948
3948
  userAgent: text("user_agent"),
3949
3949
  lastDeliveredAt: timestamp("last_delivered_at", { withTimezone: true }),
3950
3950
  lastSeenAt: timestamp("last_seen_at", { withTimezone: true }),
3951
+ lastAnsweredAt: timestamp("last_answered_at", { withTimezone: true }),
3952
+ lastCheckedAt: timestamp("last_checked_at", { withTimezone: true }),
3951
3953
  createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow()
3952
3954
  }, (t) => [unique("push_subscriptions_endpoint_uniq").on(t.endpoint)]);
3953
3955
 
@@ -20381,6 +20383,17 @@ var ackFrameSchema = frame("ack", {
20381
20383
  created: boolean3().optional(),
20382
20384
  error: agentGatewayErrorSchema.optional()
20383
20385
  });
20386
+ var unseenPostSchema = object({
20387
+ postId: ulidSchema,
20388
+ threadId: ulidSchema,
20389
+ memberId: string2().min(1),
20390
+ title: string2(),
20391
+ threadTitle: string2().nullable(),
20392
+ path: string2().startsWith("/"),
20393
+ url: string2().url().nullable(),
20394
+ pushedAt: string2().datetime()
20395
+ });
20396
+ var postUnseenFrameSchema = frame("post.unseen", { post: unseenPostSchema });
20384
20397
  var agentGatewayServerFrameSchema = discriminatedUnion("type", [
20385
20398
  readyFrameSchema,
20386
20399
  membersFrameSchema,
@@ -20388,7 +20401,8 @@ var agentGatewayServerFrameSchema = discriminatedUnion("type", [
20388
20401
  messageFrameSchema,
20389
20402
  promptAnswerFrameSchema,
20390
20403
  interruptFrameSchema,
20391
- ackFrameSchema
20404
+ ackFrameSchema,
20405
+ postUnseenFrameSchema
20392
20406
  ]);
20393
20407
  var messageAckFrameSchema = frame("message.ack", { messageId: ulidSchema });
20394
20408
  var postFrameSchema = frame("post", { post: agentPostInputSchema });
@@ -20404,8 +20418,10 @@ var promptCloseFrameSchema = frame("prompt.close", {
20404
20418
  optionId: string2().optional(),
20405
20419
  expired: boolean3()
20406
20420
  });
20421
+ var postUnseenAckFrameSchema = frame("post.unseen.ack", { postId: ulidSchema });
20407
20422
  var agentGatewayClientFrameSchema = discriminatedUnion("type", [
20408
20423
  messageAckFrameSchema,
20424
+ postUnseenAckFrameSchema,
20409
20425
  postFrameSchema,
20410
20426
  postEditFrameSchema,
20411
20427
  postDeleteFrameSchema,
@@ -21608,7 +21624,7 @@ function parseCapture2(input, now) {
21608
21624
 
21609
21625
  // src/meta.ts
21610
21626
  var CLI_NAME = "do";
21611
- var VERSION = "1.177.0";
21627
+ var VERSION = "1.178.0";
21612
21628
  var API_PREFIX = "/api/v1";
21613
21629
  var DEFAULT_API_URL = "http://localhost:3001";
21614
21630
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robbeverhelst/do",
3
- "version": "1.177.0",
3
+ "version": "1.178.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",