@robbeverhelst/do 1.189.0 → 1.190.1

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 +14 -3
  2. package/package.json +1 -1
package/dist/do.js CHANGED
@@ -20364,12 +20364,22 @@ var threadTargetSchema = union([
20364
20364
  object({ id: ulidSchema }).strict(),
20365
20365
  object({ slug: threadSlugSchema, memberId: string2().min(1).optional() }).strict()
20366
20366
  ]);
20367
- var postRunSchema = object({ status: runStatusSchema });
20367
+ var runStepSchema = object({
20368
+ label: string2().min(1).max(60),
20369
+ state: _enum2(["pending", "active", "done"]).default("pending")
20370
+ });
20371
+ var postRunSchema = object({
20372
+ status: runStatusSchema,
20373
+ steps: array(runStepSchema).max(12).optional()
20374
+ });
20375
+ var POST_TITLE_MAX = 200;
20376
+ var postTitleSchema = string2().trim().min(1).max(POST_TITLE_MAX);
20368
20377
  var agentPostInputSchema = object({
20369
20378
  externalId: externalIdSchema,
20370
20379
  thread: threadTargetSchema,
20371
20380
  text: postTextSchema,
20372
20381
  kind: postKindSchema.default("message"),
20382
+ title: postTitleSchema.optional(),
20373
20383
  level: postLevelSchema.nullish(),
20374
20384
  replyToMessageId: ulidSchema.optional(),
20375
20385
  attachments: array(ulidSchema).max(AGENT_ATTACHMENTS_MAX).default([]),
@@ -20380,12 +20390,13 @@ var agentPostInputSchema = object({
20380
20390
  });
20381
20391
  var agentPostEditSchema = object({
20382
20392
  text: postTextSchema.optional(),
20393
+ title: postTitleSchema.optional(),
20383
20394
  final: boolean3().optional(),
20384
20395
  level: postLevelSchema.optional(),
20385
20396
  run: postRunSchema.optional(),
20386
20397
  brief: briefSchema.optional()
20387
20398
  }).refine((e) => Object.values(e).some((v) => v !== undefined), {
20388
- message: "send text, final, level, run or brief"
20399
+ message: "send text, title, final, level, run or brief"
20389
20400
  });
20390
20401
  var agentPostResultSchema = object({ postId: ulidSchema, created: boolean3() });
20391
20402
  var promptOptionSchema = object({
@@ -21702,7 +21713,7 @@ function parseCapture2(input, now) {
21702
21713
 
21703
21714
  // src/meta.ts
21704
21715
  var CLI_NAME = "do";
21705
- var VERSION = "1.189.0";
21716
+ var VERSION = "1.190.1";
21706
21717
  var API_PREFIX = "/api/v1";
21707
21718
  var DEFAULT_API_URL = "http://localhost:3001";
21708
21719
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robbeverhelst/do",
3
- "version": "1.189.0",
3
+ "version": "1.190.1",
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",