vespin 0.3.0 → 0.4.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/package.json +1 -1
  2. package/vespin.mjs +241 -76
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vespin",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Vespin from your terminal: tasks, their descriptions, and coding agents, for people and scripts",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://vespin.dev",
package/vespin.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
2
+ import { createRequire as createBundleRequire } from 'node:module'; const require = createBundleRequire(import.meta.url);
3
3
  var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -46639,11 +46639,11 @@ var HOST_TARGET = {
46639
46639
  DARWIN_ARM64: "darwin-arm64"
46640
46640
  };
46641
46641
  var HOST_RELEASE = {
46642
- VERSION: "0.11.0",
46642
+ VERSION: "0.12.0",
46643
46643
  SHA256: {
46644
- [HOST_TARGET.LINUX_X64]: "139f7a62393274b77199f720742b89a21a5a6a6696989bd2e2fc1e81f6460b68",
46645
- [HOST_TARGET.LINUX_ARM64]: "6bfbc4fce0c8156a5590f71c741875ae57ab51b03f2452bd1754ea89b0907ac2",
46646
- [HOST_TARGET.DARWIN_ARM64]: "093dc4c65734cd4cc92990819f51082cd1f4485b4c3b176a885816b962406bb4"
46644
+ [HOST_TARGET.LINUX_X64]: "e502a6766101a0ee5f1801116ca5f4e0a0f3ac7391c00a87b636d4f541b20bba",
46645
+ [HOST_TARGET.LINUX_ARM64]: "c37c31f74874c84661d644ff7d8785d65707af6b03d12860419bf1f8dbdd9fa2",
46646
+ [HOST_TARGET.DARWIN_ARM64]: "9cfe31be9dd48830f36c4278a9f17456db3fbbc54b7d82a63c6cc1289ed5eea2"
46647
46647
  }
46648
46648
  };
46649
46649
 
@@ -47612,6 +47612,7 @@ var computerShotRequestSchema = Schema_exports.Struct({
47612
47612
  ),
47613
47613
  quality: Schema_exports.Finite.check(Schema_exports.isBetween({ minimum: 0.1, maximum: 1 }))
47614
47614
  });
47615
+ var settledShot = Schema_exports.optionalKey(computerShotRequestSchema);
47615
47616
  var macComputerActionSchema = Schema_exports.Union([
47616
47617
  Schema_exports.Struct({ op: Schema_exports.Literal(COMPUTER_ACTION.LIST_APPS) }),
47617
47618
  Schema_exports.Struct({
@@ -47625,6 +47626,7 @@ var macComputerActionSchema = Schema_exports.Union([
47625
47626
  Schema_exports.Struct({
47626
47627
  op: Schema_exports.Literal(COMPUTER_ACTION.CLICK),
47627
47628
  app: appName,
47629
+ shot: settledShot,
47628
47630
  element_index: Schema_exports.optionalKey(elementIndex),
47629
47631
  x: Schema_exports.optionalKey(coordinate),
47630
47632
  y: Schema_exports.optionalKey(coordinate),
@@ -47640,16 +47642,19 @@ var macComputerActionSchema = Schema_exports.Union([
47640
47642
  Schema_exports.Struct({
47641
47643
  op: Schema_exports.Literal(COMPUTER_ACTION.TYPE_TEXT),
47642
47644
  app: appName,
47645
+ shot: settledShot,
47643
47646
  text: typed.check(Schema_exports.isMinLength(1))
47644
47647
  }),
47645
47648
  Schema_exports.Struct({
47646
47649
  op: Schema_exports.Literal(COMPUTER_ACTION.PRESS_KEY),
47647
47650
  app: appName,
47651
+ shot: settledShot,
47648
47652
  key: keyName
47649
47653
  }),
47650
47654
  Schema_exports.Struct({
47651
47655
  op: Schema_exports.Literal(COMPUTER_ACTION.SCROLL),
47652
47656
  app: appName,
47657
+ shot: settledShot,
47653
47658
  element_index: Schema_exports.optionalKey(elementIndex),
47654
47659
  direction: Schema_exports.optionalKey(
47655
47660
  Schema_exports.Literals(Object.values(COMPUTER_SCROLL_DIRECTION))
@@ -47663,6 +47668,7 @@ var macComputerActionSchema = Schema_exports.Union([
47663
47668
  Schema_exports.Struct({
47664
47669
  op: Schema_exports.Literal(COMPUTER_ACTION.DRAG),
47665
47670
  app: appName,
47671
+ shot: settledShot,
47666
47672
  from_x: coordinate,
47667
47673
  from_y: coordinate,
47668
47674
  to_x: coordinate,
@@ -47671,12 +47677,14 @@ var macComputerActionSchema = Schema_exports.Union([
47671
47677
  Schema_exports.Struct({
47672
47678
  op: Schema_exports.Literal(COMPUTER_ACTION.SET_VALUE),
47673
47679
  app: appName,
47680
+ shot: settledShot,
47674
47681
  element_index: elementIndex,
47675
47682
  value: typed
47676
47683
  }),
47677
47684
  Schema_exports.Struct({
47678
47685
  op: Schema_exports.Literal(COMPUTER_ACTION.PERFORM_SECONDARY_ACTION),
47679
47686
  app: appName,
47687
+ shot: settledShot,
47680
47688
  element_index: elementIndex,
47681
47689
  action: keyName
47682
47690
  }),
@@ -47825,11 +47833,12 @@ var computerOutcomeSchema = Schema_exports.Union([
47825
47833
  ),
47826
47834
  cursor: Schema_exports.optionalKey(computerCursorSchema)
47827
47835
  }),
47828
- // Note that an action names the app it acted on, as the Mac described it before asking, so its row wears the app's icon.
47836
+ // Note that an action names the app it acted on, as the Mac described it before asking, so its row wears the app's icon, and carries the window as it settled where the action asked for it and the helper could take it.
47829
47837
  Schema_exports.Struct({
47830
47838
  done: keyName,
47831
47839
  app: Schema_exports.optionalKey(computerAppSchema),
47832
- cursor: Schema_exports.optionalKey(computerCursorSchema)
47840
+ cursor: Schema_exports.optionalKey(computerCursorSchema),
47841
+ shot: Schema_exports.optionalKey(computerShotSchema)
47833
47842
  }),
47834
47843
  Schema_exports.Struct({ recorded: computerRecordedSchema }),
47835
47844
  Schema_exports.Struct({ unrecorded: Schema_exports.Literals(Object.values(RECORDING_FAILURE)) })
@@ -49095,8 +49104,10 @@ var AGENT_BOUNDS = {
49095
49104
  MAX_IMAGE_BYTES: 15e5,
49096
49105
  /** The most bytes one PDF may hold: as many as the message's files together, since one PDF may be all it carries. */
49097
49106
  MAX_PDF_BYTES: MAX_REQUEST_FILES_BYTES,
49098
- /** The most bytes one text file may hold: about 25,000 tokens of code, inlined whole for the model. */
49099
- MAX_TEXT_BYTES: 1e5,
49107
+ /** The most bytes one text file may hold: as many as the message's files together, as a PDF's, since one log or dump may be all it carries. */
49108
+ MAX_TEXT_BYTES: MAX_REQUEST_FILES_BYTES,
49109
+ /** The most bytes a text file is inlined whole for the model at: about 25,000 tokens of code. A larger one is written into the agent's machine, its first lines inlined (`isInlinedText`). */
49110
+ MAX_INLINED_TEXT_BYTES: 1e5,
49100
49111
  /** The most bytes every file of one message holds together, which base64 grows by a third and which stays under a function's request body limit (`request-body-limit.ts`). */
49101
49112
  MAX_ATTACHMENTS_BYTES: MAX_REQUEST_FILES_BYTES
49102
49113
  };
@@ -51255,7 +51266,7 @@ var ProductEventBuildSchema = Schema_exports.Struct({
51255
51266
  var decodeProductEventBuild = Schema_exports.decodeUnknownOption(ProductEventBuildSchema);
51256
51267
 
51257
51268
  // ../../packages/features/src/client-identity.ts
51258
- var HOSTED_API_VERSION = 2;
51269
+ var HOSTED_API_VERSION = 3;
51259
51270
  var CLIENT_HEADER = {
51260
51271
  CLIENT: "vespin-client",
51261
51272
  API_VERSION: "vespin-api-version"
@@ -58461,6 +58472,7 @@ var BRAND_PALETTE = {
58461
58472
  TEXT: "#171717",
58462
58473
  TEXT_BODY: "#171717",
58463
58474
  TEXT_MUTED: "#4d4d4d",
58475
+ ACTION_FILL: "#4d4d4d",
58464
58476
  ACCENT: "#a64f00",
58465
58477
  ON_ACCENT: "#ffffff",
58466
58478
  ON_ACCENT_MUTED: "#ffffff",
@@ -58497,6 +58509,7 @@ var BRAND_PALETTE = {
58497
58509
  TEXT: "#ededed",
58498
58510
  TEXT_BODY: "#ededed",
58499
58511
  TEXT_MUTED: "#a1a1a1",
58512
+ ACTION_FILL: "#454545",
58500
58513
  ACCENT: "#ff9900",
58501
58514
  ON_ACCENT: "#171717",
58502
58515
  ON_ACCENT_MUTED: "#171717",
@@ -63902,6 +63915,8 @@ var HOSTED_SERVICE_PATH = {
63902
63915
  LIVE_MACHINE_ASKS: "/api/live/machine-asks",
63903
63916
  /** One coding agent's pull request's newest chapters, the agent under `?id=` and the pull request under `&number=`, sealed for following over Neon Realtime (GET), with whether the reader can generate them, or `not-found`. `pull-request-chapters-live.ts` declares the answer. */
63904
63917
  LIVE_PULL_REQUEST_CHAPTERS: "/api/live/pull-request-chapters",
63918
+ /** One pull request's newest chapters by the workspace under `?workspaceId=`, the repository under `&repository=`, and the number under `&number=`, sealed for following over Neon Realtime (GET), with whether the reader can generate them, or `not-found`. `pull-request-chapters-live.ts` declares the answer. */
63919
+ LIVE_REPOSITORY_PULL_REQUEST_CHAPTERS: "/api/live/repository-pull-request-chapters",
63905
63920
  /** The skills the account sees in one workspace under `?workspaceId=`, the workspace's and its own, sealed for following over Neon Realtime (GET), each with whether the account may manage it, or `not-found`, or their rows inline where polled. `installed-skill-live.ts` declares the answer. */
63906
63921
  LIVE_INSTALLED_SKILLS: "/api/live/installed-skills",
63907
63922
  /** Every integration row the account holds and where each stands as stored, sealed for following over Neon Realtime (GET), with the providers it is offered and those that take several accounts. `integration-live.ts` declares the answer. */
@@ -64163,10 +64178,12 @@ var HOSTED_SERVICE_PATH = {
64163
64178
  WORKSPACE_SENTRY_INSTALLATIONS: "/api/workspaces/sentry/installations",
64164
64179
  /** One of a workspace's Sentry installations disconnected by an owner or admin (POST), answering the installations as they then stand. */
64165
64180
  WORKSPACE_SENTRY_DISCONNECT: "/api/workspaces/sentry/disconnect",
64166
- /** A workspace's shared environment variables: their names to a member (GET, `WORKSPACE_ENVIRONMENT_QUERY`), or one set by an owner or admin (PUT), answering the names as they then stand (`workspace-environment-wire.ts`). */
64181
+ /** A workspace's shared environment variables: listed to a member (GET, `WORKSPACE_ENVIRONMENT_QUERY`), or one set by an owner or admin (PUT), answering the variables as they then stand (`workspace-environment-wire.ts`). */
64167
64182
  WORKSPACE_ENVIRONMENT: "/api/workspaces/environment",
64168
64183
  /** One of a workspace's environment variables removed by an owner or admin (POST), answering the names as they then stand. */
64169
64184
  WORKSPACE_ENVIRONMENT_DELETE: "/api/workspaces/environment/delete",
64185
+ /** Several of a workspace's environment variables set at once by an owner or admin (POST), all or none, answering the variables as they then stand. */
64186
+ WORKSPACE_ENVIRONMENT_SAVE: "/api/workspaces/environment/save",
64170
64187
  /** Every pull request GitHub's merge queues hold across the repositories a workspace's tasks work in, to a member with the Merge queue experiment on (GET, `MERGE_QUEUE_QUERY`) (`merge-queue-wire.ts`). */
64171
64188
  WORKSPACE_MERGE_QUEUE: "/api/workspaces/merge-queue",
64172
64189
  /** A workspace's cloud sandbox setup, its install script and each repository's setup script, to a member (GET, `WORKSPACE_SANDBOX_SETUP_QUERY`) (`workspace-sandbox-setup-wire.ts`). */
@@ -64179,6 +64196,8 @@ var HOSTED_SERVICE_PATH = {
64179
64196
  WORKSPACE_SANDBOX_SETUP_RUN_ACTIONS: "/api/workspaces/sandbox-setup/run-actions",
64180
64197
  /** One of a repository's run actions added, changed, moved, or removed, to an owner or admin (PATCH). */
64181
64198
  WORKSPACE_SANDBOX_SETUP_RUN_ACTION: "/api/workspaces/sandbox-setup/run-action",
64199
+ /** A workspace's cloud sandbox size, its vCPUs, to a member (GET, `WORKSPACE_SANDBOX_SIZE_QUERY`), or its vCPUs chosen by an owner or admin (PUT), answering the size as it then stands (`workspace-sandbox-size-wire.ts`). */
64200
+ WORKSPACE_SANDBOX_SIZE: "/api/workspaces/sandbox-size",
64182
64201
  /** Whether the deployment holds our Slack bot, and the Slack team a workspace's bot is connected to, to a member (GET, `WORKSPACE_SLACK_BOT_QUERY`). */
64183
64202
  WORKSPACE_SLACK_BOT: "/api/workspaces/slack-bot",
64184
64203
  /** A workspace's Slack bot connected by an owner or admin to the team its token answers for (POST), answering the bot as it then stands (`slack-bot-wire.ts`). */
@@ -65290,14 +65309,15 @@ var mentionSchema = Schema_exports.Union([
65290
65309
  kind: Schema_exports.Literal(MENTION_KIND.APP),
65291
65310
  taskId: taskIdSchema
65292
65311
  }),
65293
- // Note that routing's R3 adds the Mac here, a `machine` beside the app, once a command can name the Mac it runs on.
65294
65312
  Schema_exports.Struct({
65295
65313
  kind: Schema_exports.Literal(MENTION_KIND.MAC_APP),
65296
65314
  /** The app by its bundle id, or by its name where it has none. */
65297
65315
  app: Schema_exports.String.check(
65298
65316
  Schema_exports.isNonEmpty(),
65299
65317
  Schema_exports.isMaxLength(MENTION_BOUNDS.MAX_APP_CHARS)
65300
- )
65318
+ ),
65319
+ /** The machine the app is on, by its device id, where the `@` list knew it; absent from a link written before machines were named, which still reads. */
65320
+ machine: Schema_exports.optionalKey(thingIdSchema)
65301
65321
  }),
65302
65322
  // Note that routing's R3 adds the Mac here too, a `machine`, once a command can name the Mac it runs on.
65303
65323
  Schema_exports.Struct({ kind: Schema_exports.Literal(MENTION_KIND.COMPUTER) }),
@@ -65642,7 +65662,8 @@ var INBOX_IMAGE_TYPE = {
65642
65662
  var INBOX_FILE_TYPE = {
65643
65663
  ...AGENT_ATTACHMENT_TYPE,
65644
65664
  WEBM: WEBM_TYPE,
65645
- MP4: MP4_TYPE
65665
+ MP4: MP4_TYPE,
65666
+ ...AUDIO_TYPE
65646
65667
  };
65647
65668
  var INBOX_RESPONSE = {
65648
65669
  /** Pick one of the agent's options, or several where it allows, some perhaps recommended, or answer in the developer's own words. */
@@ -66377,18 +66398,23 @@ var PICTURE_OMISSION = {
66377
66398
  var CONVERSATION_MEDIA_TYPE = {
66378
66399
  ...INBOX_IMAGE_TYPE,
66379
66400
  WEBM: WEBM_TYPE,
66380
- MP4: MP4_TYPE
66401
+ MP4: MP4_TYPE,
66402
+ ...AUDIO_TYPE
66381
66403
  };
66382
66404
  var VIDEO_TYPES = /* @__PURE__ */ new Set([
66383
66405
  CONVERSATION_MEDIA_TYPE.WEBM,
66384
66406
  CONVERSATION_MEDIA_TYPE.MP4
66385
66407
  ]);
66408
+ var AUDIO_TYPES = new Set(Object.values(AUDIO_TYPE));
66386
66409
  var conversationMediaTypeSchema = Schema_exports.Literals(
66387
66410
  Object.values(CONVERSATION_MEDIA_TYPE)
66388
66411
  );
66389
66412
  function isVideoType(mediaType) {
66390
66413
  return VIDEO_TYPES.has(mediaType);
66391
66414
  }
66415
+ function isAudioType(mediaType) {
66416
+ return AUDIO_TYPES.has(mediaType);
66417
+ }
66392
66418
  var keptPictureSchema = Schema_exports.Struct({
66393
66419
  id: Schema_exports.String,
66394
66420
  mediaType: conversationMediaTypeSchema,
@@ -67469,6 +67495,8 @@ var LIVE_READ = {
67469
67495
  GITHUB_TOKEN: "githubToken",
67470
67496
  /** One agent's pull request's newest chapters, by the agent and the pull request's number: the service's `pullRequestChaptersLive` query. */
67471
67497
  PULL_REQUEST_CHAPTERS: "pullRequestChapters",
67498
+ /** One pull request's newest chapters, by the workspace, its repository, and its number: the service's `repositoryPullRequestChapters` query. */
67499
+ REPOSITORY_PULL_REQUEST_CHAPTERS: "repositoryPullRequestChapters",
67472
67500
  /** The checks on one agent's pull request's head, keyed and fetched as `PULL_REQUEST`. */
67473
67501
  PULL_REQUEST_CHECKS: "pullRequestChecks",
67474
67502
  /** One agent's pull request's conversation and where its reviewers stand, keyed and fetched as `PULL_REQUEST`. */
@@ -67479,6 +67507,18 @@ var LIVE_READ = {
67479
67507
  PULL_REQUEST_VIEWED: "pullRequestViewed",
67480
67508
  /** What the reviewer and label pickers of one agent's Pull request tab offer, its repository's labels, assignable users, and teams, keyed and fetched as `PULL_REQUEST`. */
67481
67509
  REVIEW_OPTIONS: "reviewOptions",
67510
+ /** One pull request as a Pull request tab draws it, by the workspace whose installation reaches its repository, then the repository, then its number, with no agent: fetched by the host while a window holds it. */
67511
+ REPOSITORY_PULL_REQUEST: "repositoryPullRequest",
67512
+ /** The checks on one pull request's head, keyed and fetched as `REPOSITORY_PULL_REQUEST`. */
67513
+ REPOSITORY_PULL_REQUEST_CHECKS: "repositoryPullRequestChecks",
67514
+ /** One pull request's conversation and where its reviewers stand, keyed and fetched as `REPOSITORY_PULL_REQUEST`. */
67515
+ REPOSITORY_PULL_REQUEST_CONVERSATION: "repositoryPullRequestConversation",
67516
+ /** One pull request as GitHub holds it now with its head's checks and the branch it is from, keyed and fetched as `REPOSITORY_PULL_REQUEST`. */
67517
+ REPOSITORY_PULL_REQUEST_PUBLISHED: "repositoryPullRequestPublished",
67518
+ /** Which of one pull request's files the member marked viewed on GitHub, read on their own GitHub sign-in, keyed and fetched as `REPOSITORY_PULL_REQUEST`. */
67519
+ REPOSITORY_PULL_REQUEST_VIEWED: "repositoryPullRequestViewed",
67520
+ /** What the reviewer and label pickers offer of one pull request's repository, keyed and fetched as `REPOSITORY_PULL_REQUEST`. */
67521
+ REPOSITORY_REVIEW_OPTIONS: "repositoryReviewOptions",
67482
67522
  /** One task's comments, its description's own threads or one page's: the service's `taskCommentsLive` query. */
67483
67523
  DESCRIPTION_COMMENTS: "taskComments",
67484
67524
  /** One task's description history, by the task: the service's `taskHistoryLive` query for its newest page, then the older pages its version history read past it, held for the windows that show it and a few they showed lately. */
@@ -68907,6 +68947,7 @@ function sniffMediaType(head4) {
68907
68947
  function mediaDimensions(bytes2, type3) {
68908
68948
  if (type3 === CONVERSATION_MEDIA_TYPE.WEBM) return webmDimensions(bytes2);
68909
68949
  if (type3 === CONVERSATION_MEDIA_TYPE.MP4) return mp4Dimensions(bytes2);
68950
+ if (isAudioType(type3)) return void 0;
68910
68951
  return imageDimensions(bytes2, type3);
68911
68952
  }
68912
68953
 
@@ -69176,7 +69217,8 @@ var workspaceDeleteAnswerSchema = Schema_exports.Struct({ workspaceId: workspace
69176
69217
  var DESCRIPTION_ATTACHMENT_TYPE = {
69177
69218
  ...AGENT_ATTACHMENT_TYPE,
69178
69219
  WEBM: WEBM_TYPE,
69179
- MP4: MP4_TYPE
69220
+ MP4: MP4_TYPE,
69221
+ ...AUDIO_TYPE
69180
69222
  };
69181
69223
  var descriptionAttachmentTypeSchema = Schema_exports.Literals(
69182
69224
  Object.values(DESCRIPTION_ATTACHMENT_TYPE)
@@ -69207,9 +69249,7 @@ var descriptionAttachmentRequestSchema = Schema_exports.Struct({
69207
69249
  });
69208
69250
  var DESCRIPTION_ATTACHMENT_REFUSAL = {
69209
69251
  /** The description already holds `DESCRIPTION_ATTACHMENT_BOUNDS.MAX_PER_DESCRIPTION` pictures. */
69210
- TOO_MANY: "too-many",
69211
- /** The upload is a video, and the description already holds `DESCRIPTION_ATTACHMENT_BOUNDS.MAX_VIDEOS_PER_DESCRIPTION` videos. */
69212
- TOO_MANY_VIDEOS: "too-many-videos"
69252
+ TOO_MANY: "too-many"
69213
69253
  };
69214
69254
  var DESCRIPTION_ATTACHMENT_STATUS = {
69215
69255
  KEPT: 201,
@@ -69988,6 +70028,10 @@ function liveRead(spec) {
69988
70028
  const beside = spec.beside ?? {};
69989
70029
  const own = spec.refuses ?? {};
69990
70030
  const query2 = spec.query ?? {};
70031
+ const namesId = Object.values(spec.params).some(
70032
+ (param) => param === LIVE_PARAM.ID || param === LIVE_PARAM.OPTIONAL_ID
70033
+ );
70034
+ const idRefusals = namesId ? refuses(HOSTED_API_ERROR.NOT_FOUND) : {};
69991
70035
  const params = Object.fromEntries(
69992
70036
  Object.entries(spec.params).flatMap(
69993
70037
  ([key, param]) => param === LIVE_PARAM.SERVED ? [] : [[key, query2[key] ?? PARAM_FIELD[param]]]
@@ -70006,7 +70050,7 @@ function liveRead(spec) {
70006
70050
  beside,
70007
70051
  heldOn: spec.heldOn,
70008
70052
  olderParts: spec.olderParts,
70009
- errors: { ...refuses(...ANY_PROCEDURE_REFUSALS), ...own },
70053
+ errors: { ...refuses(...ANY_PROCEDURE_REFUSALS), ...idRefusals, ...own },
70010
70054
  // SAFETY: the fields are those `InputFields`, `AnswerFields`, and `RowsFields` name, built from the same records.
70011
70055
  input: Schema_exports.Struct({ ...params, ...MODE_FIELDS[spec.mode] }),
70012
70056
  // SAFETY: the fields are those `AnswerFields` names, built from the same records.
@@ -71278,6 +71322,18 @@ var chaptersLiveRowSchema = Schema_exports.Struct({
71278
71322
  chapters: Schema_exports.NullOr(Schema_exports.Array(chapterSchema)),
71279
71323
  startedAt: countedNumber
71280
71324
  });
71325
+ var chaptersParts = {
71326
+ chapters: liveRows({
71327
+ row: chaptersLiveRowSchema,
71328
+ key: "headSha",
71329
+ order: [["startedAt", ORDER.DESC]]
71330
+ })
71331
+ };
71332
+ var chaptersBeside = {
71333
+ generatable: Schema_exports.Boolean,
71334
+ runsOn: Schema_exports.optionalKey(chaptersRunsOnSchema),
71335
+ runsOnChoices: Schema_exports.optionalKey(Schema_exports.Array(chaptersRunsOnSchema))
71336
+ };
71281
71337
  var PULL_REQUEST_CHAPTERS_READ = liveRead({
71282
71338
  name: LIVE_READ.PULL_REQUEST_CHAPTERS,
71283
71339
  path: HOSTED_SERVICE_PATH.LIVE_PULL_REQUEST_CHAPTERS,
@@ -71288,18 +71344,23 @@ var PULL_REQUEST_CHAPTERS_READ = liveRead({
71288
71344
  [LIVE_USER_QUERY]: LIVE_PARAM.USER
71289
71345
  },
71290
71346
  mode: LIVE_MODE.SNAPSHOT,
71291
- parts: {
71292
- chapters: liveRows({
71293
- row: chaptersLiveRowSchema,
71294
- key: "headSha",
71295
- order: [["startedAt", ORDER.DESC]]
71296
- })
71297
- },
71298
- beside: {
71299
- generatable: Schema_exports.Boolean,
71300
- runsOn: Schema_exports.optionalKey(chaptersRunsOnSchema),
71301
- runsOnChoices: Schema_exports.optionalKey(Schema_exports.Array(chaptersRunsOnSchema))
71347
+ parts: chaptersParts,
71348
+ beside: chaptersBeside,
71349
+ refuses: refuses(HOSTED_API_ERROR.NOT_FOUND, HOSTED_API_ERROR.REPOSITORY_NOT_REACHABLE)
71350
+ });
71351
+ var REPOSITORY_PULL_REQUEST_CHAPTERS_READ = liveRead({
71352
+ name: LIVE_READ.REPOSITORY_PULL_REQUEST_CHAPTERS,
71353
+ path: HOSTED_SERVICE_PATH.LIVE_REPOSITORY_PULL_REQUEST_CHAPTERS,
71354
+ params: {
71355
+ workspaceId: LIVE_PARAM.TEXT,
71356
+ repository: LIVE_PARAM.TEXT,
71357
+ number: LIVE_PARAM.TEXT,
71358
+ fullName: LIVE_PARAM.SERVED,
71359
+ [LIVE_USER_QUERY]: LIVE_PARAM.USER
71302
71360
  },
71361
+ mode: LIVE_MODE.SNAPSHOT,
71362
+ parts: chaptersParts,
71363
+ beside: chaptersBeside,
71303
71364
  refuses: refuses(HOSTED_API_ERROR.NOT_FOUND, HOSTED_API_ERROR.REPOSITORY_NOT_REACHABLE)
71304
71365
  });
71305
71366
  var readRows2 = Schema_exports.decodeUnknownOption(PULL_REQUEST_CHAPTERS_READ.rows.fields.chapters);
@@ -71554,6 +71615,27 @@ var TASK_HISTORY_READ = liveRead({
71554
71615
  refuses: refuses(HOSTED_API_ERROR.NOT_FOUND)
71555
71616
  });
71556
71617
 
71618
+ // ../../packages/features/src/sandbox-size.ts
71619
+ var SANDBOX_VCPUS = {
71620
+ TWO: 2,
71621
+ FOUR: 4,
71622
+ EIGHT: 8
71623
+ };
71624
+ var SANDBOX_VCPU_SIZES = Object.values(SANDBOX_VCPUS);
71625
+ var SANDBOX_SIZE = {
71626
+ /**
71627
+ * The sandbox's vCPUs where its workspace chose no other; also the size a
71628
+ * workspace's drive and its repositories' snapshots are built at, since
71629
+ * Vercel opens a snapshot at whatever size the create asks. Two, because
71630
+ * provisioned memory and active CPU are most of the sandboxes' bill and
71631
+ * both scale with vCPUs, so a workspace whose checks need more chooses it
71632
+ * rather than every sandbox paying for it.
71633
+ */
71634
+ VCPUS: SANDBOX_VCPUS.TWO,
71635
+ /** The memory Vercel gives a sandbox per vCPU, in GB. */
71636
+ MEMORY_GB_PER_VCPU: 2
71637
+ };
71638
+
71557
71639
  // ../../packages/features/src/task-agents-model.ts
71558
71640
  var TASK_AGENTS_STATUS = {
71559
71641
  FAILED: "failed",
@@ -71664,6 +71746,8 @@ var agentLiveRowSchema = Schema_exports.Struct({
71664
71746
  brief: literalsReadingUnknown(Object.values(AGENT_BRIEF), AGENT_BRIEF.PROMPT),
71665
71747
  /** The repository the agent works in; null for one that works in none. */
71666
71748
  repository: Schema_exports.NullOr(Schema_exports.String),
71749
+ /** The vCPUs its sandbox opens with, its workspace's size (`sandbox-size.ts`); absent from a statement before it was carried. */
71750
+ sandboxVcpus: Schema_exports.optionalKey(countedNumber),
71667
71751
  starterId: Schema_exports.String,
71668
71752
  starterName: Schema_exports.NullOr(Schema_exports.String),
71669
71753
  /** The coding agent that started this one; null where none did, and absent from a statement before it was carried. */
@@ -72204,6 +72288,9 @@ var liveContract = {
72204
72288
  [INSTALLED_SKILLS_READ.name]: liveProcedure(INSTALLED_SKILLS_READ),
72205
72289
  [WORKSPACE_INTEGRATIONS_READ.name]: liveProcedure(WORKSPACE_INTEGRATIONS_READ),
72206
72290
  [PULL_REQUEST_CHAPTERS_READ.name]: liveProcedure(PULL_REQUEST_CHAPTERS_READ),
72291
+ [REPOSITORY_PULL_REQUEST_CHAPTERS_READ.name]: liveProcedure(
72292
+ REPOSITORY_PULL_REQUEST_CHAPTERS_READ
72293
+ ),
72207
72294
  [INTEGRATION_STATUSES_READ.name]: liveProcedure(INTEGRATION_STATUSES_READ),
72208
72295
  [ACCOUNT_PREFERENCES_READ.name]: liveProcedure(ACCOUNT_PREFERENCES_READ)
72209
72296
  };
@@ -72847,16 +72934,31 @@ var WORKSPACE_ENVIRONMENT_BOUNDS = {
72847
72934
  /** The longest name taken. */
72848
72935
  MAX_NAME_CHARS: 256,
72849
72936
  /** The longest value taken: 32 KB of characters. */
72850
- MAX_VALUE_CHARS: 32 * 1024
72937
+ MAX_VALUE_CHARS: 32 * 1024,
72938
+ /** The most variables one save sets. */
72939
+ MAX_SAVED: 100
72851
72940
  };
72852
72941
  var workspaceVariableNameSchema = Schema_exports.String.check(
72853
72942
  Schema_exports.isMaxLength(WORKSPACE_ENVIRONMENT_BOUNDS.MAX_NAME_CHARS),
72854
72943
  Schema_exports.isPattern(/^[A-Za-z_][A-Za-z0-9_]*$/u)
72855
72944
  );
72945
+ var workspaceVariableValueSchema = Schema_exports.String.check(
72946
+ Schema_exports.isMaxLength(WORKSPACE_ENVIRONMENT_BOUNDS.MAX_VALUE_CHARS)
72947
+ );
72856
72948
  var workspaceVariableSchema = Schema_exports.Struct({
72857
72949
  name: Schema_exports.String,
72858
- /** When the variable was last set, in epoch milliseconds. */
72859
- updatedAt: countedNumber
72950
+ /** When the variable was last set, in epoch milliseconds; its `createdAt` until its first change. */
72951
+ updatedAt: countedNumber,
72952
+ /** Whether its value is never answered; absent from a service before configs, where every variable is one. */
72953
+ secret: Schema_exports.optionalKey(Schema_exports.Boolean),
72954
+ /** A config's value; never present for a secret. */
72955
+ value: Schema_exports.optionalKey(Schema_exports.String),
72956
+ /** When it was added, in epoch milliseconds; absent from a service before it was answered. */
72957
+ createdAt: Schema_exports.optionalKey(countedNumber),
72958
+ /** Who added it; absent where their account is gone, or it was added before this was kept. */
72959
+ createdBy: Schema_exports.optionalKey(memberRefSchema),
72960
+ /** Who last changed it; absent until its first change, and where their account is gone. */
72961
+ updatedBy: Schema_exports.optionalKey(memberRefSchema)
72860
72962
  });
72861
72963
  var workspaceEnvironmentAnswerSchema = Schema_exports.Struct({
72862
72964
  variables: Schema_exports.Array(workspaceVariableSchema)
@@ -72864,8 +72966,22 @@ var workspaceEnvironmentAnswerSchema = Schema_exports.Struct({
72864
72966
  var workspaceVariablePutRequestSchema = Schema_exports.Struct({
72865
72967
  workspaceId: workspaceIdSchema,
72866
72968
  name: workspaceVariableNameSchema,
72867
- value: Schema_exports.String.check(
72868
- Schema_exports.isMaxLength(WORKSPACE_ENVIRONMENT_BOUNDS.MAX_VALUE_CHARS)
72969
+ value: workspaceVariableValueSchema
72970
+ });
72971
+ var workspaceVariableSavedSchema = Schema_exports.Struct({
72972
+ name: workspaceVariableNameSchema,
72973
+ value: workspaceVariableValueSchema
72974
+ });
72975
+ var workspaceVariablesSaveRequestSchema = Schema_exports.Struct({
72976
+ workspaceId: workspaceIdSchema,
72977
+ secret: Schema_exports.Boolean,
72978
+ variables: Schema_exports.Array(workspaceVariableSavedSchema).check(
72979
+ Schema_exports.isMinLength(1),
72980
+ Schema_exports.isMaxLength(WORKSPACE_ENVIRONMENT_BOUNDS.MAX_SAVED),
72981
+ // Note that no name comes twice, since one save's two values for a name would leave whichever landed last.
72982
+ Schema_exports.makeFilter(
72983
+ (variables) => new Set(variables.map((each) => each.name)).size === variables.length
72984
+ )
72869
72985
  )
72870
72986
  });
72871
72987
  var workspaceVariableDeleteRequestSchema = Schema_exports.Struct({
@@ -72875,6 +72991,7 @@ var workspaceVariableDeleteRequestSchema = Schema_exports.Struct({
72875
72991
 
72876
72992
  // ../../packages/features/src/contract/workspace-environment.ts
72877
72993
  var PUT_BODY_BYTES = WORKSPACE_ENVIRONMENT_BOUNDS.MAX_VALUE_CHARS * 6 + 4096;
72994
+ var SAVE_BODY_BYTES2 = 4 * 1024 * 1024;
72878
72995
  var DELETE_BODY_BYTES = 2048;
72879
72996
  var workspaceEnvironmentQuerySchema = Schema_exports.Struct({
72880
72997
  [WORKSPACE_ENVIRONMENT_QUERY.WORKSPACE_ID]: workspaceIdSchema
@@ -72882,6 +72999,9 @@ var workspaceEnvironmentQuerySchema = Schema_exports.Struct({
72882
72999
  var workspaceEnvironmentContract = {
72883
73000
  list: declaredProcedure.errors(refuses(HOSTED_API_ERROR.NOT_FOUND)).meta(openapi({ method: HTTP_METHOD.GET, path: HOSTED_SERVICE_PATH.WORKSPACE_ENVIRONMENT })).input(workspaceEnvironmentQuerySchema).output(Schema_exports.flip(workspaceEnvironmentAnswerSchema)),
72884
73001
  put: declaredProcedure.errors(refuses(HOSTED_API_ERROR.NOT_FOUND, HOSTED_API_ERROR.NOT_PERMITTED)).meta(bodyCap(PUT_BODY_BYTES)).meta(openapi({ method: HTTP_METHOD.PUT, path: HOSTED_SERVICE_PATH.WORKSPACE_ENVIRONMENT })).input(exactInput(workspaceVariablePutRequestSchema)).output(Schema_exports.flip(workspaceEnvironmentAnswerSchema)),
73002
+ save: declaredProcedure.errors(refuses(HOSTED_API_ERROR.NOT_FOUND, HOSTED_API_ERROR.NOT_PERMITTED)).meta(bodyCap(SAVE_BODY_BYTES2)).meta(
73003
+ openapi({ method: HTTP_METHOD.POST, path: HOSTED_SERVICE_PATH.WORKSPACE_ENVIRONMENT_SAVE })
73004
+ ).input(exactInput(workspaceVariablesSaveRequestSchema)).output(Schema_exports.flip(workspaceEnvironmentAnswerSchema)),
72885
73005
  delete: declaredProcedure.errors(refuses(HOSTED_API_ERROR.NOT_FOUND, HOSTED_API_ERROR.NOT_PERMITTED)).meta(bodyCap(DELETE_BODY_BYTES)).meta(
72886
73006
  openapi({ method: HTTP_METHOD.POST, path: HOSTED_SERVICE_PATH.WORKSPACE_ENVIRONMENT_DELETE })
72887
73007
  ).input(exactInput(workspaceVariableDeleteRequestSchema)).output(Schema_exports.flip(workspaceEnvironmentAnswerSchema))
@@ -73178,6 +73298,28 @@ var workspaceSandboxSetupContract = {
73178
73298
  ).input(exactInput(workspaceRunActionEditRequestSchema)).output(Schema_exports.flip(workspaceRunActionEditAnswerSchema))
73179
73299
  };
73180
73300
 
73301
+ // ../../packages/features/src/workspace-sandbox-size-wire.ts
73302
+ var WORKSPACE_SANDBOX_SIZE_QUERY = { WORKSPACE_ID: "workspaceId" };
73303
+ var sandboxVcpusSchema = Schema_exports.Literals(SANDBOX_VCPU_SIZES);
73304
+ var workspaceSandboxSizeAnswerSchema = Schema_exports.Struct({
73305
+ /** The vCPUs its agents' sandboxes open with. */
73306
+ vcpus: countedNumber
73307
+ });
73308
+ var workspaceSandboxSizePutRequestSchema = Schema_exports.Struct({
73309
+ workspaceId: workspaceIdSchema,
73310
+ vcpus: sandboxVcpusSchema
73311
+ });
73312
+
73313
+ // ../../packages/features/src/contract/workspace-sandbox-size.ts
73314
+ var PUT_BODY_BYTES3 = 2048;
73315
+ var workspaceSandboxSizeQuerySchema = Schema_exports.Struct({
73316
+ [WORKSPACE_SANDBOX_SIZE_QUERY.WORKSPACE_ID]: workspaceIdSchema
73317
+ });
73318
+ var workspaceSandboxSizeContract = {
73319
+ read: declaredProcedure.errors(refuses(HOSTED_API_ERROR.NOT_FOUND)).meta(openapi({ method: HTTP_METHOD.GET, path: HOSTED_SERVICE_PATH.WORKSPACE_SANDBOX_SIZE })).input(workspaceSandboxSizeQuerySchema).output(Schema_exports.flip(workspaceSandboxSizeAnswerSchema)),
73320
+ put: declaredProcedure.errors(refuses(HOSTED_API_ERROR.NOT_FOUND, HOSTED_API_ERROR.NOT_PERMITTED)).meta(bodyCap(PUT_BODY_BYTES3)).meta(openapi({ method: HTTP_METHOD.PUT, path: HOSTED_SERVICE_PATH.WORKSPACE_SANDBOX_SIZE })).input(exactInput(workspaceSandboxSizePutRequestSchema)).output(Schema_exports.flip(workspaceSandboxSizeAnswerSchema))
73321
+ };
73322
+
73181
73323
  // ../../packages/features/src/sentry-install-wire.ts
73182
73324
  var MAX_INSTALLATION_ID_CHARS = 64;
73183
73325
  var installationIdSchema = Schema_exports.String.check(
@@ -73396,6 +73538,7 @@ var hostedContract = {
73396
73538
  voice: voiceContract,
73397
73539
  workspaceEnvironment: workspaceEnvironmentContract,
73398
73540
  workspaceSandboxSetup: workspaceSandboxSetupContract,
73541
+ workspaceSandboxSize: workspaceSandboxSizeContract,
73399
73542
  workspaceGithub: workspaceGithubContract,
73400
73543
  workspaceInvitations: workspaceInvitationsContract,
73401
73544
  workspaceMergeQueue: workspaceMergeQueueContract,
@@ -74305,11 +74448,12 @@ var agentPartParamsSchema = Schema_exports.Struct({
74305
74448
  var agentPartViewSchema = answerView(messagesContract.agentPart);
74306
74449
  var agentInboxAttachmentViewSchema = Schema_exports.Union([
74307
74450
  Schema_exports.Struct({
74308
- // A transcript's picture may be a WebM an agent recorded, read through this same view, or its MP4 copy to a window that plays MP4.
74451
+ // A transcript's picture may be a WebM an agent recorded, read through this same view, its MP4 copy to a window that plays MP4, or a sound clip.
74309
74452
  contentType: Schema_exports.Literals([
74310
74453
  ...Object.values(AGENT_ATTACHMENT_TYPE),
74311
74454
  CONVERSATION_MEDIA_TYPE.WEBM,
74312
- MP4_TYPE
74455
+ MP4_TYPE,
74456
+ ...Object.values(AUDIO_TYPE)
74313
74457
  ]),
74314
74458
  base64: Schema_exports.String
74315
74459
  }),
@@ -74353,8 +74497,11 @@ var hostPairingDenyViewSchema = answerView(hostsContract.denyPairing, {
74353
74497
  as: HOST_PAIRING_RENAMES
74354
74498
  });
74355
74499
 
74356
- // ../../packages/features/src/agent-client.ts
74500
+ // ../../packages/features/src/served-bytes.ts
74357
74501
  var UNANSWERED = { failure: AGENT_CALL_FAILURE.UNANSWERED };
74502
+
74503
+ // ../../packages/features/src/agent-client.ts
74504
+ var UNANSWERED2 = { failure: AGENT_CALL_FAILURE.UNANSWERED };
74358
74505
  var START_DECLARED = new Set(
74359
74506
  Object.keys(agentsContract.start["~orpc"].errorMap)
74360
74507
  );
@@ -74549,6 +74696,9 @@ var MACHINE_COMMAND_NOT_CLAIMED = {
74549
74696
  failure: MACHINE_COMMAND_CALL_FAILURE.NOT_FOUND
74550
74697
  };
74551
74698
 
74699
+ // ../../packages/features/src/pull-request-client.ts
74700
+ var UNANSWERED3 = { failure: AGENT_CALL_FAILURE.UNANSWERED };
74701
+
74552
74702
  // ../../packages/features/src/socket-origin.ts
74553
74703
  var WEB_SOCKET_SCHEME = {
74554
74704
  "https:": "wss:",
@@ -74593,6 +74743,7 @@ var WORKSPACE_CALLS = {
74593
74743
  workspaceInvitations: workspaceInvitationsContract,
74594
74744
  workspaceEnvironment: workspaceEnvironmentContract,
74595
74745
  workspaceSandboxSetup: workspaceSandboxSetupContract,
74746
+ workspaceSandboxSize: workspaceSandboxSizeContract,
74596
74747
  workspaceMergeQueue: workspaceMergeQueueContract,
74597
74748
  workspaceGithub: workspaceGithubContract,
74598
74749
  workspaceSentry: workspaceSentryContract,
@@ -74627,31 +74778,6 @@ var codeTokenSchema = Schema_exports.Struct({
74627
74778
  });
74628
74779
  var codeLinesSchema = Schema_exports.Array(Schema_exports.Array(codeTokenSchema));
74629
74780
  var tasksViewSchema = Schema_exports.Struct({
74630
- /** The account's tasks, newest started first, as the last list read answered. */
74631
- tasks: Schema_exports.Array(taskSummarySchema),
74632
- /**
74633
- * Every agent on a plan, the archived ones among them, each as its plan's
74634
- * own list names it, with the workspace and repository its own row names,
74635
- * the first started first: present only while the list
74636
- * is followed live over Neon Realtime, when it is what the open plan's
74637
- * tabs draw, and an agent's page, and what the notices' ledger reads, the archived left out, in
74638
- * place of listing each plan's agents again on a clock.
74639
- */
74640
- taskAgents: Schema_exports.optionalKey(Schema_exports.Array(listedAgentSchema)),
74641
- /**
74642
- * Every pull request of each plan that has one, those still open first:
74643
- * present only while the list is followed live, when it is what every
74644
- * reader of a task's pull requests reads, its row's mark and chips and its
74645
- * card among them, the row itself only counting them.
74646
- */
74647
- taskPullRequests: Schema_exports.optionalKey(Schema_exports.Array(taskPullRequestsSchema)),
74648
- /**
74649
- * The pull request of every agent that opened one, on a plan or none, the
74650
- * archived among them, as its row keeps it: present only while the list
74651
- * is followed live, when it is what a plan's or an agent's tabs offer each
74652
- * agent's Changes by, in place of reading each agent of it apart.
74653
- */
74654
- agentPullRequests: Schema_exports.optionalKey(Schema_exports.Array(listedPullRequestSchema)),
74655
74781
  /**
74656
74782
  * The reader's pins of agents on a plan, the archived ones left out: present
74657
74783
  * only while the list is followed live, when the sidebar's Pinned section
@@ -74665,6 +74791,13 @@ var tasksViewSchema = Schema_exports.Struct({
74665
74791
  */
74666
74792
  pendingTasks: Schema_exports.optionalKey(Schema_exports.Array(Schema_exports.String)),
74667
74793
  listStatus: tasksReadSchema,
74794
+ /**
74795
+ * Whether the task list's lists have been drawn, as they are from the
74796
+ * list's first drawing, from disk or followed live: what a reader waiting
74797
+ * on the list's agents or pull requests reads, since the lists themselves
74798
+ * reach a window on their own channel. Absent before the first drawing.
74799
+ */
74800
+ listed: Schema_exports.optionalKey(Schema_exports.Boolean),
74668
74801
  /**
74669
74802
  * The workspaces in which the account reaches any task, as the list's
74670
74803
  * last answer said, whatever the list holds of them: whether it has ever
@@ -74687,8 +74820,38 @@ var tasksViewSchema = Schema_exports.Struct({
74687
74820
  /** The one active task, absent while the window has none open; its plan is held apart (`LIVE_READ.HELD_TASK`). */
74688
74821
  activeTaskId: Schema_exports.optionalKey(Schema_exports.String)
74689
74822
  });
74823
+ var taskListPartsSchema = Schema_exports.Struct({
74824
+ /** The account's tasks, newest started first, as the last list read answered. */
74825
+ tasks: Schema_exports.Array(taskSummarySchema),
74826
+ /**
74827
+ * Every agent on a plan, the archived ones among them, each as its plan's
74828
+ * own list names it, with the workspace and repository its own row names,
74829
+ * the first started first: present only while the list
74830
+ * is followed live over Neon Realtime, when it is what the open plan's
74831
+ * tabs draw, and an agent's page, and what the notices' ledger reads, the archived left out, in
74832
+ * place of listing each plan's agents again on a clock.
74833
+ */
74834
+ taskAgents: Schema_exports.optionalKey(Schema_exports.Array(listedAgentSchema)),
74835
+ /**
74836
+ * Every pull request of each plan that has one, those still open first:
74837
+ * present only while the list is followed live, when it is what every
74838
+ * reader of a task's pull requests reads, its row's mark and chips and its
74839
+ * card among them, the row itself only counting them.
74840
+ */
74841
+ taskPullRequests: Schema_exports.optionalKey(Schema_exports.Array(taskPullRequestsSchema)),
74842
+ /**
74843
+ * The pull request of every agent that opened one, on a plan or none, the
74844
+ * archived among them, as its row keeps it: present only while the list
74845
+ * is followed live, when it is what a plan's or an agent's tabs offer each
74846
+ * agent's Changes by, in place of reading each agent of it apart.
74847
+ */
74848
+ agentPullRequests: Schema_exports.optionalKey(Schema_exports.Array(listedPullRequestSchema))
74849
+ });
74850
+ var listedTasksViewSchema = Schema_exports.Struct({
74851
+ ...tasksViewSchema.fields,
74852
+ ...taskListPartsSchema.fields
74853
+ });
74690
74854
  var IDLE_TASKS_VIEW = {
74691
- tasks: [],
74692
74855
  listStatus: TASKS_READ.IDLE,
74693
74856
  workspaces: []
74694
74857
  };
@@ -75022,7 +75185,6 @@ var tasksPictureKeepParamsSchema = Schema_exports.Struct({
75022
75185
  });
75023
75186
  var PICTURE_KEEP_FAILURE = {
75024
75187
  TOO_MANY: "too-many",
75025
- TOO_MANY_VIDEOS: "too-many-videos",
75026
75188
  ...failureSetOf(taskFilesContract.keepPicture)
75027
75189
  };
75028
75190
  var tasksPictureKeepAnswerSchema = Schema_exports.Union([
@@ -75093,10 +75255,9 @@ var tasksCommentActParamsSchema = Schema_exports.Struct({
75093
75255
  var tasksCommentAnswerSchema = answerView(descriptionCommentsContract.act);
75094
75256
 
75095
75257
  // ../../packages/features/src/task-client.ts
75096
- var UNANSWERED2 = { ok: false, failure: TASK_CALL_FAILURE.UNANSWERED };
75258
+ var UNANSWERED4 = { ok: false, failure: TASK_CALL_FAILURE.UNANSWERED };
75097
75259
  var KEEP_REFUSED = {
75098
- [DESCRIPTION_ATTACHMENT_REFUSAL.TOO_MANY]: PICTURE_KEEP_FAILURE.TOO_MANY,
75099
- [DESCRIPTION_ATTACHMENT_REFUSAL.TOO_MANY_VIDEOS]: PICTURE_KEEP_FAILURE.TOO_MANY_VIDEOS
75260
+ [DESCRIPTION_ATTACHMENT_REFUSAL.TOO_MANY]: PICTURE_KEEP_FAILURE.TOO_MANY
75100
75261
  };
75101
75262
  var COMMENT_UNANSWERED = { failure: DESCRIPTION_COMMENT_CALL_FAILURE.UNANSWERED };
75102
75263
  var START_NAMED = [
@@ -75220,7 +75381,7 @@ function terminalRelayAddress(socketOrigin, ask) {
75220
75381
  }
75221
75382
 
75222
75383
  // ../../packages/features/src/workspace-client.ts
75223
- var UNANSWERED3 = { ok: false, failure: WORKSPACE_CALL_FAILURE.UNANSWERED };
75384
+ var UNANSWERED5 = { ok: false, failure: WORKSPACE_CALL_FAILURE.UNANSWERED };
75224
75385
 
75225
75386
  // ../../packages/credentials/src/cli-account.ts
75226
75387
  var CALLBACK_PATH = "/callback";
@@ -80353,13 +80514,14 @@ function authorOf(message) {
80353
80514
  var MEDIA_WORD = {
80354
80515
  PICTURE: "Picture",
80355
80516
  RECORDING: "Recording",
80517
+ SOUND_CLIP: "Sound clip",
80356
80518
  PAGE: "Page",
80357
80519
  LINK: "Link"
80358
80520
  };
80359
80521
  function mediaLine(piece, at) {
80360
80522
  switch (piece.type) {
80361
80523
  case INBOX_OPTION_MEDIA.FILE: {
80362
- const word = isVideoType(piece.mediaType) ? MEDIA_WORD.RECORDING : MEDIA_WORD.PICTURE;
80524
+ const word = isVideoType(piece.mediaType) ? MEDIA_WORD.RECORDING : isAudioType(piece.mediaType) ? MEDIA_WORD.SOUND_CLIP : MEDIA_WORD.PICTURE;
80363
80525
  return ` ${word}: ${piece.caption ?? `${at + 1}`}`;
80364
80526
  }
80365
80527
  case INBOX_OPTION_MEDIA.PAGE:
@@ -84476,11 +84638,11 @@ var CLI_COMMAND = {
84476
84638
  LOGIN: `${CLI_PACKAGE} login`
84477
84639
  };
84478
84640
  var CLI_RELEASE = {
84479
- VERSION: "0.2.0",
84641
+ VERSION: "0.3.0",
84480
84642
  SHA256: {
84481
- [HOST_TARGET.LINUX_X64]: "47415cbc2c021f5d74578be3e81b420d22a2d042b3a4a03dd8a637a0bbc0ce3d",
84482
- [HOST_TARGET.LINUX_ARM64]: "334f659efb1727aed5f1bc0cc44cadad85e6ff4453be5f45ea9eb0af440d7fcc",
84483
- [HOST_TARGET.DARWIN_ARM64]: "d17282b68549ea142014b911904f5130881d1a64371375409484d392e4911df0"
84643
+ [HOST_TARGET.LINUX_X64]: "4269e912005940ba4abee58539049cc02e7c84ec5c778816ea9a9d59922bab9b",
84644
+ [HOST_TARGET.LINUX_ARM64]: "9b26d92229958fa80020ec01e91444aa4fcdf7b669d2aa9ade9767f65d2cec2e",
84645
+ [HOST_TARGET.DARWIN_ARM64]: "8866ba975617178d19a4134a020c05483eaf652d01626bd798134bce7ca7cdf2"
84484
84646
  }
84485
84647
  };
84486
84648
 
@@ -84495,12 +84657,14 @@ var INSTALL_KIND = {
84495
84657
  PNPM: "pnpm",
84496
84658
  YARN: "yarn",
84497
84659
  BUN: "bun",
84660
+ HOMEBREW: "homebrew",
84498
84661
  SOURCE: "source"
84499
84662
  };
84500
84663
  var CURL_RELEASES = [".local", "share", "vespin-cli", "versions"];
84501
84664
  var CURL_LINK = [".local", "bin", "vespin"];
84502
84665
  var PACKAGE_FOLDER = `${sep}node_modules${sep}vespin${sep}`;
84503
84666
  var PACKAGE_MANAGER_MARKS = [
84667
+ { mark: `${sep}Cellar${sep}vespin${sep}`, kind: INSTALL_KIND.HOMEBREW },
84504
84668
  { mark: `${sep}_npx${sep}`, kind: INSTALL_KIND.NPX },
84505
84669
  { mark: `${sep}.bun${sep}`, kind: INSTALL_KIND.BUN },
84506
84670
  { mark: `${sep}pnpm${sep}`, kind: INSTALL_KIND.PNPM },
@@ -84512,6 +84676,7 @@ var UPDATE_COMMAND = {
84512
84676
  [INSTALL_KIND.PNPM]: "pnpm add -g vespin@latest",
84513
84677
  [INSTALL_KIND.YARN]: "yarn global add vespin@latest",
84514
84678
  [INSTALL_KIND.BUN]: "bun add -g vespin@latest",
84679
+ [INSTALL_KIND.HOMEBREW]: "brew upgrade vespin",
84515
84680
  [INSTALL_KIND.SOURCE]: "pnpm --filter @repo/vespin-cli build"
84516
84681
  };
84517
84682
  function resolvedHome() {
@@ -84545,7 +84710,7 @@ function installKind() {
84545
84710
  }
84546
84711
 
84547
84712
  // src/commands/version.ts
84548
- var VERSION = "0.3.0";
84713
+ var VERSION = "0.4.0";
84549
84714
  var versionCommand = Command_exports.make("version", {}, () => {
84550
84715
  const install = installKind();
84551
84716
  return answer2({