@robbeverhelst/do 1.176.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 +24 -4
  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
 
@@ -20134,8 +20136,11 @@ var agentPageContextSchema = object({
20134
20136
  var agentChatInputSchema = object({
20135
20137
  message: string2().trim().min(1).max(8000),
20136
20138
  context: agentPageContextSchema,
20137
- threadId: string2().trim().min(1).max(64).optional()
20139
+ threadId: string2().trim().min(1).max(64).optional(),
20140
+ steer: boolean3().optional()
20138
20141
  }).strict();
20142
+ var agentChatStopInputSchema = object({ threadId: string2().trim().min(1).max(64) }).strict();
20143
+ var agentChatStopResultSchema = object({ stop: _enum2(["sent", "offline"]) });
20139
20144
  var agentChatEventSchema = discriminatedUnion("type", [
20140
20145
  object({
20141
20146
  type: literal("turn"),
@@ -20276,7 +20281,8 @@ var inboundMessageSchema = object({
20276
20281
  attachments: array(gatewayAttachmentSchema).default([]),
20277
20282
  replyToPostId: ulidSchema.optional(),
20278
20283
  context: agentPageContextSchema.optional(),
20279
- history: array(object({ role: _enum2(["member", "agent"]), text: string2() })).optional()
20284
+ history: array(object({ role: _enum2(["member", "agent"]), text: string2() })).optional(),
20285
+ steer: boolean3().optional()
20280
20286
  });
20281
20287
  var threadTargetSchema = union([
20282
20288
  object({ id: ulidSchema }).strict(),
@@ -20377,6 +20383,17 @@ var ackFrameSchema = frame("ack", {
20377
20383
  created: boolean3().optional(),
20378
20384
  error: agentGatewayErrorSchema.optional()
20379
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 });
20380
20397
  var agentGatewayServerFrameSchema = discriminatedUnion("type", [
20381
20398
  readyFrameSchema,
20382
20399
  membersFrameSchema,
@@ -20384,7 +20401,8 @@ var agentGatewayServerFrameSchema = discriminatedUnion("type", [
20384
20401
  messageFrameSchema,
20385
20402
  promptAnswerFrameSchema,
20386
20403
  interruptFrameSchema,
20387
- ackFrameSchema
20404
+ ackFrameSchema,
20405
+ postUnseenFrameSchema
20388
20406
  ]);
20389
20407
  var messageAckFrameSchema = frame("message.ack", { messageId: ulidSchema });
20390
20408
  var postFrameSchema = frame("post", { post: agentPostInputSchema });
@@ -20400,8 +20418,10 @@ var promptCloseFrameSchema = frame("prompt.close", {
20400
20418
  optionId: string2().optional(),
20401
20419
  expired: boolean3()
20402
20420
  });
20421
+ var postUnseenAckFrameSchema = frame("post.unseen.ack", { postId: ulidSchema });
20403
20422
  var agentGatewayClientFrameSchema = discriminatedUnion("type", [
20404
20423
  messageAckFrameSchema,
20424
+ postUnseenAckFrameSchema,
20405
20425
  postFrameSchema,
20406
20426
  postEditFrameSchema,
20407
20427
  postDeleteFrameSchema,
@@ -21604,7 +21624,7 @@ function parseCapture2(input, now) {
21604
21624
 
21605
21625
  // src/meta.ts
21606
21626
  var CLI_NAME = "do";
21607
- var VERSION = "1.176.0";
21627
+ var VERSION = "1.178.0";
21608
21628
  var API_PREFIX = "/api/v1";
21609
21629
  var DEFAULT_API_URL = "http://localhost:3001";
21610
21630
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robbeverhelst/do",
3
- "version": "1.176.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",