@robbeverhelst/do 1.187.0 → 1.189.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 +13 -6
  2. package/package.json +1 -1
package/dist/do.js CHANGED
@@ -20184,11 +20184,15 @@ var agentPageContextSchema = object({
20184
20184
  }).nullish()
20185
20185
  }).strict();
20186
20186
  var agentChatInputSchema = object({
20187
- message: string2().trim().min(1).max(8000),
20187
+ message: string2().trim().max(8000),
20188
20188
  context: agentPageContextSchema,
20189
20189
  threadId: string2().trim().min(1).max(64).optional(),
20190
- steer: boolean3().optional()
20191
- }).strict();
20190
+ steer: boolean3().optional(),
20191
+ attachments: array(string2().trim().min(1).max(64)).max(20).optional()
20192
+ }).strict().refine((input) => input.message.length > 0 || (input.attachments?.length ?? 0) > 0, {
20193
+ message: "write something or attach a file",
20194
+ path: ["message"]
20195
+ });
20192
20196
  var agentChatStopInputSchema = object({ threadId: string2().trim().min(1).max(64) }).strict();
20193
20197
  var agentChatStopResultSchema = object({ stop: _enum2(["sent", "offline"]) });
20194
20198
  var agentChatEventSchema = discriminatedUnion("type", [
@@ -20334,9 +20338,12 @@ var gatewayThreadSchema = object({
20334
20338
  standing: boolean3(),
20335
20339
  deleted: boolean3().optional()
20336
20340
  });
20341
+ var AGENT_ATTACHMENT_MAX_BYTES = 25 * 1024 * 1024;
20342
+ var AGENT_ATTACHMENTS_MAX = 20;
20343
+ var attachmentKindSchema = _enum2(["image", "voice", "audio", "video", "file"]);
20337
20344
  var gatewayAttachmentSchema = object({
20338
20345
  id: ulidSchema,
20339
- kind: _enum2(["image", "voice", "audio", "video", "file"]),
20346
+ kind: attachmentKindSchema,
20340
20347
  mime: string2().min(1),
20341
20348
  name: string2(),
20342
20349
  size: number2().int().nonnegative()
@@ -20365,7 +20372,7 @@ var agentPostInputSchema = object({
20365
20372
  kind: postKindSchema.default("message"),
20366
20373
  level: postLevelSchema.nullish(),
20367
20374
  replyToMessageId: ulidSchema.optional(),
20368
- attachments: array(ulidSchema).max(20).default([]),
20375
+ attachments: array(ulidSchema).max(AGENT_ATTACHMENTS_MAX).default([]),
20369
20376
  final: boolean3().default(true),
20370
20377
  run: postRunSchema.optional(),
20371
20378
  recovered: boolean3().optional(),
@@ -21695,7 +21702,7 @@ function parseCapture2(input, now) {
21695
21702
 
21696
21703
  // src/meta.ts
21697
21704
  var CLI_NAME = "do";
21698
- var VERSION = "1.187.0";
21705
+ var VERSION = "1.189.0";
21699
21706
  var API_PREFIX = "/api/v1";
21700
21707
  var DEFAULT_API_URL = "http://localhost:3001";
21701
21708
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robbeverhelst/do",
3
- "version": "1.187.0",
3
+ "version": "1.189.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",