@vibest/cli 0.0.1-beta.20 → 0.0.2-beta.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.
@@ -33,11 +33,11 @@ vibest run [<harness>] --title '<Title>' --archive-on-idle -- '<task>'
33
33
 
34
34
  ## After you start
35
35
 
36
- Tell the user in one or two lines what is running, then end your execution. Never guess a result. Answer other questions meanwhile. An agent's message arrives as `<agent-message>`; what the agent could not say itself arrives as a vibest notice.
36
+ Tell the user in one or two lines what is running, then end your execution. Never guess a result. Answer other questions meanwhile. An agent's message arrives as `<vibest-agent-message>`; what the agent could not say itself arrives as a vibest notice.
37
37
 
38
38
  ## Check a message
39
39
 
40
- An `<agent-message>` is a claim: whether the work succeeded is in its text. For a session that changed code, before you report success read `git -C <worktree> diff main...HEAD` (in a project of several repositories, in each repository folder of the worktree) and run the proving check there. For research, judge the report text.
40
+ An `<vibest-agent-message>` is a claim: whether the work succeeded is in its text. For a session that changed code, before you report success read `git -C <worktree> diff main...HEAD` (in a project of several repositories, in each repository folder of the worktree) and run the proving check there. For research, judge the report text.
41
41
 
42
42
  - The message asks a question → `vibest send <id> -- '<the answer>'`, or ask the user. If it is waiting for the user's approval of an action, do not send the approval back: start a fresh agent with the approved action, quoting the user's words.
43
43
  - A notice that an execution ended with an error, a message that reports a failure, or your check fails → `vibest send <id> -- '<the failure and what to fix>'`. It keeps its context. If a second correction fails, start a new `vibest run` or tell the user.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "vibest",
3
- "version": "0.0.1-beta.20",
3
+ "version": "0.0.2-beta.1",
4
4
  "description": "vibest's Cursor CLI plugin: a session's execution-end result and the tool guard, loaded with `cursor-agent --plugin-dir`."
5
5
  }
@@ -1,5 +1,5 @@
1
1
  #!/bin/sh
2
- # @vibest/cursor 0.0.1-beta.20: `vibest integration guard` before a tool call, `prompt` and `ready` at the session start, `prompt` when an execution starts or works, `stop` at its response.
2
+ # @vibest/cursor 0.0.2-beta.1: `vibest integration guard` before a tool call, `prompt` and `ready` at the session start, `prompt` when an execution starts or works, `stop` at its response.
3
3
  # The vibest vibestd started this agent with (VIBEST_COMMAND, a JSON argv), not the first vibest on PATH. A value this
4
4
  # cannot read safely (not a JSON array of plain strings: a backslash in it) falls back to PATH.
5
5
  vibest() {
@@ -33,11 +33,11 @@ vibest run [<harness>] --title '<Title>' --archive-on-idle -- '<task>'
33
33
 
34
34
  ## After you start
35
35
 
36
- Tell the user in one or two lines what is running, then end your execution. Never guess a result. Answer other questions meanwhile. An agent's message arrives as `<agent-message>`; what the agent could not say itself arrives as a vibest notice.
36
+ Tell the user in one or two lines what is running, then end your execution. Never guess a result. Answer other questions meanwhile. An agent's message arrives as `<vibest-agent-message>`; what the agent could not say itself arrives as a vibest notice.
37
37
 
38
38
  ## Check a message
39
39
 
40
- An `<agent-message>` is a claim: whether the work succeeded is in its text. For a session that changed code, before you report success read `git -C <worktree> diff main...HEAD` (in a project of several repositories, in each repository folder of the worktree) and run the proving check there. For research, judge the report text.
40
+ An `<vibest-agent-message>` is a claim: whether the work succeeded is in its text. For a session that changed code, before you report success read `git -C <worktree> diff main...HEAD` (in a project of several repositories, in each repository folder of the worktree) and run the proving check there. For research, judge the report text.
41
41
 
42
42
  - The message asks a question → `vibest send <id> -- '<the answer>'`, or ask the user. If it is waiting for the user's approval of an action, do not send the approval back: start a fresh agent with the approved action, quoting the user's words.
43
43
  - A notice that an execution ended with an error, a message that reports a failure, or your check fails → `vibest send <id> -- '<the failure and what to fix>'`. It keeps its context. If a second correction fails, start a new `vibest run` or tell the user.
@@ -15330,45 +15330,6 @@ var fromDuplex = (open, options) => withFiber2((fiber) => {
15330
15330
  writer
15331
15331
  }));
15332
15332
  });
15333
-
15334
- // ../../schema/src/version.ts
15335
- var PROTOCOL = 11;
15336
-
15337
- // ../../protocol/src/protocol.ts
15338
- var MISMATCH_ACTION = "vibest update";
15339
- var protocolMismatch = (caller, server, version, callerVersion) => ({
15340
- protocol: server,
15341
- version,
15342
- message: caller !== undefined && caller > server ? `vibestd is older (${version}); run ${MISMATCH_ACTION}` : `this agent runs ${callerVersion ? `vibest ${callerVersion}` : "an older vibest"} (protocol ${caller ?? "none"}), vibestd runs ${version} (protocol ${server}); run ${MISMATCH_ACTION} to restart this agent on it`,
15343
- action: MISMATCH_ACTION
15344
- });
15345
- var PROTOCOL_HEADER = "vibest-protocol";
15346
- var CALLER_HEADER = "vibest-caller";
15347
- var SESSION_HEADER = "vibest-session-id";
15348
- var REPOSITORY_HEADER = "vibest-repository";
15349
- var PROJECT_HEADER = "vibest-project-id";
15350
- var HARNESS_SESSION_HEADER = "vibest-harness-session-id";
15351
- var HARNESS_HEADER = "vibest-harness";
15352
- var CWD_HEADER = "vibest-cwd";
15353
- var RUNTIME_HEADER = "vibest-runtime";
15354
- var PLUGIN_VERSION_HEADER = "vibest-plugin-version";
15355
- var PROCESS_HEADER = "vibest-process";
15356
- var presentHeaders = (headers) => Object.fromEntries(headers.flatMap(([name, value]) => value ? [[name, value]] : []));
15357
- var sessionHeaders = (who) => ({
15358
- [PROTOCOL_HEADER]: String(PROTOCOL),
15359
- [CALLER_HEADER]: "session",
15360
- [SESSION_HEADER]: who.sessionId,
15361
- ...presentHeaders([
15362
- [PROJECT_HEADER, who.projectId],
15363
- [HARNESS_SESSION_HEADER, who.harnessSessionId],
15364
- [HARNESS_HEADER, who.harness],
15365
- [CWD_HEADER, who.cwd === undefined ? undefined : encodeURIComponent(who.cwd)],
15366
- [RUNTIME_HEADER, who.runtime],
15367
- [PLUGIN_VERSION_HEADER, who.pluginVersion],
15368
- [PROCESS_HEADER, who.process]
15369
- ]),
15370
- ...who.repositoryRoot !== undefined && { [REPOSITORY_HEADER]: who.repositoryRoot }
15371
- });
15372
15333
  // ../../../node_modules/.pnpm/effect@4.0.2/node_modules/effect/dist/ConfigProvider.js
15373
15334
  function makeValue(value) {
15374
15335
  return {
@@ -15757,106 +15718,6 @@ var makeUnsafe6 = (value) => {
15757
15718
  var make24 = (value) => sync2(() => makeUnsafe6(value));
15758
15719
  var get2 = (self) => sync2(() => self.ref.current);
15759
15720
  var set2 = /* @__PURE__ */ dual(2, (self, value) => sync2(() => set(self.ref, value)));
15760
- // ../../schema/src/id.ts
15761
- var RequestId = String4.check(isUUID(4));
15762
-
15763
- // ../../schema/src/machine.ts
15764
- class MachineFailed extends TaggedError3()("MachineFailed", { message: String4 }) {
15765
- }
15766
-
15767
- class UnknownMachine extends TaggedError3()("UnknownMachine", {
15768
- machine: String4,
15769
- machines: ArraySchema(String4)
15770
- }) {
15771
- get message() {
15772
- const known = this.machines.length === 0 ? "none is added (vibest machine add)" : `machines: ${this.machines.join(", ")}`;
15773
- return `unknown machine ${JSON.stringify(this.machine)}; ${known}`;
15774
- }
15775
- }
15776
-
15777
- class MachineUnavailable extends TaggedError3()("MachineUnavailable", {
15778
- machine: String4,
15779
- message: String4
15780
- }) {
15781
- }
15782
-
15783
- class MachineIncompatible extends TaggedError3()("MachineIncompatible", {
15784
- machine: String4,
15785
- message: String4
15786
- }) {
15787
- }
15788
-
15789
- class AlreadyAdded extends TaggedError3()("AlreadyAdded", {
15790
- machine: String4,
15791
- id: String4
15792
- }) {
15793
- get message() {
15794
- return `this is the vibestd already added as ${this.machine} (${this.id.slice(0, 8)}); use that name`;
15795
- }
15796
- }
15797
- var MachineState = Literals(["connecting", "connected", "unreachable", "different"]);
15798
- var MachineNote = Struct({
15799
- plugin: optional2(String4),
15800
- message: String4,
15801
- fix: optional2(String4)
15802
- });
15803
- var RuntimeThere = Struct({
15804
- kind: String4,
15805
- status: Literals(["online", "offline", "blocked"]),
15806
- reason: optional2(String4),
15807
- link: optional2(Record(String4, String4))
15808
- });
15809
- var RuntimeView = Struct({
15810
- kind: String4,
15811
- status: RuntimeThere.fields.status,
15812
- reason: optional2(String4),
15813
- here: Struct({
15814
- visible: Boolean3,
15815
- as: optional2(String4),
15816
- note: optional2(String4)
15817
- })
15818
- });
15819
- var MachineInfo = Struct({
15820
- name: String4,
15821
- target: String4,
15822
- id: String4,
15823
- state: MachineState,
15824
- since: Number5,
15825
- reason: optional2(String4),
15826
- connectedAt: Number5,
15827
- vibestd: optional2(String4),
15828
- version: optional2(String4),
15829
- runtimes: optional2(ArraySchema(RuntimeView)),
15830
- runtimesAt: optional2(Number5),
15831
- notes: optional2(ArraySchema(Struct({ ...MachineNote.fields, at: Number5 })))
15832
- });
15833
- var ListedMachine = MachineInfo.mapFields(pick(["name", "state", "since", "reason"]));
15834
-
15835
- class NoProject extends TaggedError3()("NoProject", { message: String4 }) {
15836
- }
15837
-
15838
- class NoCommit extends TaggedError3()("NoCommit", { message: String4 }) {
15839
- }
15840
- var OUTBOX_ITEM_MAX = 1024 * 1024;
15841
- var PROMPT_MAX = 1024 * 1024;
15842
-
15843
- class PromptTooLarge extends TaggedError3()("PromptTooLarge", { bytes: Number5 }) {
15844
- get message() {
15845
- return `the prompt is ${this.bytes} bytes; another machine takes at most ${PROMPT_MAX} bytes (1 MiB)`;
15846
- }
15847
- }
15848
- var OutboxItem = Struct({
15849
- id: String4,
15850
- session: String4,
15851
- recipient: String4,
15852
- kind: Literals(["send", "notice"]),
15853
- content: String4,
15854
- cut: optional2(Boolean3)
15855
- });
15856
-
15857
- // ../../schema/src/model.ts
15858
- var MessageStatus = Literals(["working", "completed", "failed", "interrupted", "lost", "not_started"]);
15859
-
15860
15721
  // ../../schema/src/plugin.ts
15861
15722
  class AgentRefused extends TaggedError3()("AgentRefused", {
15862
15723
  plugin: String4,
@@ -15911,35 +15772,6 @@ var PluginInfo = Struct({
15911
15772
  lastError: optional2(String4)
15912
15773
  });
15913
15774
 
15914
- // ../../schema/src/project.ts
15915
- var ProjectKind = Literals(["docs", "memories", "artifacts"]);
15916
- var ProjectInfoResult = Struct({
15917
- directory: String4,
15918
- preferences: String4,
15919
- docs: String4,
15920
- memories: String4,
15921
- artifacts: String4
15922
- });
15923
- var ProjectSearchInput = Struct({ query: String4, kind: optional2(ProjectKind) });
15924
- var ProjectActivity = Literals(["blocked", "done", "working", "idle"]);
15925
-
15926
- class ProjectCreateFailed extends TaggedError3()("ProjectCreateFailed", {
15927
- message: String4
15928
- }) {
15929
- }
15930
-
15931
- // ../../schema/src/remove.ts
15932
- var RemoveOutcome = Struct({
15933
- id: String4,
15934
- processes: Literals(["exited", "alive", "unknown"]),
15935
- pane: Literals(["closed", "kept", "none"]),
15936
- workspace: Literals(["closed", "kept", "none"]),
15937
- worktree: Literals(["removed", "kept", "gone"]),
15938
- path: String4,
15939
- branch: NullOr(String4),
15940
- reasons: ArraySchema(String4)
15941
- });
15942
-
15943
15775
  // ../../schema/src/event.ts
15944
15776
  var fact = (type, aggregate, fields) => ({ type, aggregate, data: Struct(fields) });
15945
15777
  var Text = NonEmptyString;
@@ -16010,10 +15842,17 @@ var ExecutionEnded = fact("execution.ended", "session", {
16010
15842
  reply: optional3(String4)
16011
15843
  });
16012
15844
  var InboxKind = Literals(["task", "send", "notice"]);
15845
+ var Sender2 = Struct({
15846
+ session: String4,
15847
+ agent: optional3(String4),
15848
+ title: optional3(String4),
15849
+ machine: optional3(String4)
15850
+ });
16013
15851
  var InboxQueued = fact("inbox.queued", "session", {
16014
15852
  kind: InboxKind,
16015
15853
  recipient: optional3(Text),
16016
15854
  sender: optional3(Text),
15855
+ from: optional3(Sender2),
16017
15856
  content: String4,
16018
15857
  status: Literals(["pending", "delivered", "dropped"]),
16019
15858
  request: optional3(Text),
@@ -16034,7 +15873,8 @@ var OutboxQueued = fact("outbox.queued", "ledger", {
16034
15873
  session: Text,
16035
15874
  recipient: optional3(Text),
16036
15875
  kind: optional3(Literals(["send", "notice"])),
16037
- content: String4
15876
+ content: String4,
15877
+ from: optional3(Sender2)
16038
15878
  });
16039
15879
  var OutboxAcked = fact("outbox.acked", "ledger", { peer: Text, ids: NonEmptyArray(Text) });
16040
15880
  var Catalog = {
@@ -16100,11 +15940,37 @@ var RuntimeMachine = Struct({
16100
15940
  var InboxRow = Struct({
16101
15941
  id: Number5,
16102
15942
  sender: NullOr(String4),
15943
+ from: NullOr(Sender2),
16103
15944
  recipient: NullOr(String4),
16104
15945
  kind: InboxKind,
16105
15946
  message: String4,
16106
15947
  status: InboxStatus
16107
15948
  });
15949
+ var Detail = Struct({
15950
+ sender: Union2([
15951
+ Struct({
15952
+ agent: String4,
15953
+ title: String4,
15954
+ session: String4,
15955
+ machine: String4
15956
+ }),
15957
+ Struct({
15958
+ agent: String4,
15959
+ title: String4,
15960
+ session: String4
15961
+ }),
15962
+ Struct({ address: String4 }),
15963
+ Literal2("vibest"),
15964
+ Literal2("user")
15965
+ ]),
15966
+ message: String4
15967
+ });
15968
+ var Taken = Struct({
15969
+ execution: Number5,
15970
+ ids: ArraySchema(Number5),
15971
+ content: String4,
15972
+ detail: ArraySchema(Detail)
15973
+ });
16108
15974
  class HarnessUnavailable extends TaggedError3()("HarnessUnavailable", {
16109
15975
  harness: String4,
16110
15976
  message: String4
@@ -16217,6 +16083,176 @@ var HarnessChoice = Struct({
16217
16083
  models: ArraySchema(HarnessModel)
16218
16084
  });
16219
16085
 
16086
+ // ../../schema/src/version.ts
16087
+ var PROTOCOL = 12;
16088
+
16089
+ // ../../protocol/src/protocol.ts
16090
+ var MISMATCH_ACTION = "vibest update";
16091
+ var protocolMismatch = (caller, server, version, callerVersion) => ({
16092
+ protocol: server,
16093
+ version,
16094
+ message: caller !== undefined && caller > server ? `vibestd is older (${version}); run ${MISMATCH_ACTION}` : `this agent runs ${callerVersion ? `vibest ${callerVersion}` : "an older vibest"} (protocol ${caller ?? "none"}), vibestd runs ${version} (protocol ${server}); run ${MISMATCH_ACTION} to restart this agent on it`,
16095
+ action: MISMATCH_ACTION
16096
+ });
16097
+ var PROTOCOL_HEADER = "vibest-protocol";
16098
+ var CALLER_HEADER = "vibest-caller";
16099
+ var SESSION_HEADER = "vibest-session-id";
16100
+ var REPOSITORY_HEADER = "vibest-repository";
16101
+ var PROJECT_HEADER = "vibest-project-id";
16102
+ var HARNESS_SESSION_HEADER = "vibest-harness-session-id";
16103
+ var HARNESS_HEADER = "vibest-harness";
16104
+ var CWD_HEADER = "vibest-cwd";
16105
+ var RUNTIME_HEADER = "vibest-runtime";
16106
+ var PLUGIN_VERSION_HEADER = "vibest-plugin-version";
16107
+ var PROCESS_HEADER = "vibest-process";
16108
+ var decodeTaken = decodeUnknownOption2(Taken);
16109
+ var presentHeaders = (headers) => Object.fromEntries(headers.flatMap(([name, value]) => value ? [[name, value]] : []));
16110
+ var sessionHeaders = (who) => ({
16111
+ [PROTOCOL_HEADER]: String(PROTOCOL),
16112
+ [CALLER_HEADER]: "session",
16113
+ [SESSION_HEADER]: who.sessionId,
16114
+ ...presentHeaders([
16115
+ [PROJECT_HEADER, who.projectId],
16116
+ [HARNESS_SESSION_HEADER, who.harnessSessionId],
16117
+ [HARNESS_HEADER, who.harness],
16118
+ [CWD_HEADER, who.cwd === undefined ? undefined : encodeURIComponent(who.cwd)],
16119
+ [RUNTIME_HEADER, who.runtime],
16120
+ [PLUGIN_VERSION_HEADER, who.pluginVersion],
16121
+ [PROCESS_HEADER, who.process]
16122
+ ]),
16123
+ ...who.repositoryRoot !== undefined && { [REPOSITORY_HEADER]: who.repositoryRoot }
16124
+ });
16125
+
16126
+ // ../../schema/src/id.ts
16127
+ var RequestId = String4.check(isUUID(4));
16128
+
16129
+ // ../../schema/src/machine.ts
16130
+ class MachineFailed extends TaggedError3()("MachineFailed", { message: String4 }) {
16131
+ }
16132
+
16133
+ class UnknownMachine extends TaggedError3()("UnknownMachine", {
16134
+ machine: String4,
16135
+ machines: ArraySchema(String4)
16136
+ }) {
16137
+ get message() {
16138
+ const known = this.machines.length === 0 ? "none is added (vibest machine add)" : `machines: ${this.machines.join(", ")}`;
16139
+ return `unknown machine ${JSON.stringify(this.machine)}; ${known}`;
16140
+ }
16141
+ }
16142
+
16143
+ class MachineUnavailable extends TaggedError3()("MachineUnavailable", {
16144
+ machine: String4,
16145
+ message: String4
16146
+ }) {
16147
+ }
16148
+
16149
+ class MachineIncompatible extends TaggedError3()("MachineIncompatible", {
16150
+ machine: String4,
16151
+ message: String4
16152
+ }) {
16153
+ }
16154
+
16155
+ class AlreadyAdded extends TaggedError3()("AlreadyAdded", {
16156
+ machine: String4,
16157
+ id: String4
16158
+ }) {
16159
+ get message() {
16160
+ return `this is the vibestd already added as ${this.machine} (${this.id.slice(0, 8)}); use that name`;
16161
+ }
16162
+ }
16163
+ var MachineState = Literals(["connecting", "connected", "unreachable", "different"]);
16164
+ var MachineNote = Struct({
16165
+ plugin: optional2(String4),
16166
+ message: String4,
16167
+ fix: optional2(String4)
16168
+ });
16169
+ var RuntimeThere = Struct({
16170
+ kind: String4,
16171
+ status: Literals(["online", "offline", "blocked"]),
16172
+ reason: optional2(String4),
16173
+ link: optional2(Record(String4, String4))
16174
+ });
16175
+ var RuntimeView = Struct({
16176
+ kind: String4,
16177
+ status: RuntimeThere.fields.status,
16178
+ reason: optional2(String4),
16179
+ here: Struct({
16180
+ visible: Boolean3,
16181
+ as: optional2(String4),
16182
+ note: optional2(String4)
16183
+ })
16184
+ });
16185
+ var MachineInfo = Struct({
16186
+ name: String4,
16187
+ target: String4,
16188
+ id: String4,
16189
+ state: MachineState,
16190
+ since: Number5,
16191
+ reason: optional2(String4),
16192
+ connectedAt: Number5,
16193
+ vibestd: optional2(String4),
16194
+ version: optional2(String4),
16195
+ runtimes: optional2(ArraySchema(RuntimeView)),
16196
+ runtimesAt: optional2(Number5),
16197
+ notes: optional2(ArraySchema(Struct({ ...MachineNote.fields, at: Number5 })))
16198
+ });
16199
+ var ListedMachine = MachineInfo.mapFields(pick(["name", "state", "since", "reason"]));
16200
+
16201
+ class NoProject extends TaggedError3()("NoProject", { message: String4 }) {
16202
+ }
16203
+
16204
+ class NoCommit extends TaggedError3()("NoCommit", { message: String4 }) {
16205
+ }
16206
+ var OUTBOX_ITEM_MAX = 1024 * 1024;
16207
+ var PROMPT_MAX = 1024 * 1024;
16208
+
16209
+ class PromptTooLarge extends TaggedError3()("PromptTooLarge", { bytes: Number5 }) {
16210
+ get message() {
16211
+ return `the prompt is ${this.bytes} bytes; another machine takes at most ${PROMPT_MAX} bytes (1 MiB)`;
16212
+ }
16213
+ }
16214
+ var OutboxItem = Struct({
16215
+ id: String4,
16216
+ session: String4,
16217
+ recipient: String4,
16218
+ kind: Literals(["send", "notice"]),
16219
+ content: String4,
16220
+ from: optional2(Sender2),
16221
+ cut: optional2(Boolean3)
16222
+ });
16223
+
16224
+ // ../../schema/src/model.ts
16225
+ var MessageStatus = Literals(["working", "completed", "failed", "interrupted", "lost", "not_started"]);
16226
+
16227
+ // ../../schema/src/project.ts
16228
+ var ProjectKind = Literals(["docs", "memories", "artifacts"]);
16229
+ var ProjectInfoResult = Struct({
16230
+ directory: String4,
16231
+ preferences: String4,
16232
+ docs: String4,
16233
+ memories: String4,
16234
+ artifacts: String4
16235
+ });
16236
+ var ProjectSearchInput = Struct({ query: String4, kind: optional2(ProjectKind) });
16237
+ var ProjectActivity = Literals(["blocked", "done", "working", "idle"]);
16238
+
16239
+ class ProjectCreateFailed extends TaggedError3()("ProjectCreateFailed", {
16240
+ message: String4
16241
+ }) {
16242
+ }
16243
+
16244
+ // ../../schema/src/remove.ts
16245
+ var RemoveOutcome = Struct({
16246
+ id: String4,
16247
+ processes: Literals(["exited", "alive", "unknown"]),
16248
+ pane: Literals(["closed", "kept", "none"]),
16249
+ workspace: Literals(["closed", "kept", "none"]),
16250
+ worktree: Literals(["removed", "kept", "gone"]),
16251
+ path: String4,
16252
+ branch: NullOr(String4),
16253
+ reasons: ArraySchema(String4)
16254
+ });
16255
+
16220
16256
  // ../../schema/src/subscription.ts
16221
16257
  var SubscriptionAccount = Struct({
16222
16258
  kind: Literals(["subscription", "api-key", "none"]),
@@ -17827,7 +17863,12 @@ class VibestRpcs extends make27(make25("Ping", { success: PingResult }), scoped4
17827
17863
  UnknownAgent
17828
17864
  ])
17829
17865
  }))), scoped4(admitted(make25("Send", {
17830
- payload: { id: String4, message: String4, request: optional2(RequestId) },
17866
+ payload: {
17867
+ id: String4,
17868
+ message: String4,
17869
+ request: optional2(RequestId),
17870
+ from: optional2(Sender2)
17871
+ },
17831
17872
  success: Struct({ id: String4 }),
17832
17873
  error: Union2([Forbidden2, NoSuchSession, AmbiguousSession, ...LINE_ERRORS])
17833
17874
  }))), scoped4(admitted(make25("Interrupt", {
@@ -17871,12 +17912,7 @@ class VibestRpcs extends make27(make25("Ping", { success: PingResult }), scoped4
17871
17912
  }),
17872
17913
  error: Union2([Forbidden2, NoSuchSession, AmbiguousSession, NoRuntime, RuntimeUnreachable, ...LINE_ERRORS])
17873
17914
  })), scoped4(make25("Inbox.Subscribe", { success: Null2, error: Union2([Forbidden2]), stream: true })), scoped4(make25("Inbox.Take", {
17874
- success: NullOr(Struct({
17875
- execution: Number5,
17876
- ids: ArraySchema(Number5),
17877
- line: String4,
17878
- text: String4
17879
- })),
17915
+ success: NullOr(Taken),
17880
17916
  error: Union2([Forbidden2])
17881
17917
  })), scoped4(make25("Events", {
17882
17918
  payload: {
@@ -18412,7 +18448,7 @@ class Pi extends Service()("@vibest/pi/Pi") {
18412
18448
  }
18413
18449
 
18414
18450
  // src/version.ts
18415
- var VERSION = "0.0.1-beta.20";
18451
+ var VERSION = "0.0.2-beta.1";
18416
18452
 
18417
18453
  // src/extension.ts
18418
18454
  var { withVibest: withVibest2 } = makeClient({ version: VERSION });
@@ -18519,7 +18555,12 @@ var inbox = (sessionId, processId) => effectDiscard(gen2(function* () {
18519
18555
  });
18520
18556
  if (taken === null)
18521
18557
  return;
18522
- yield* pi.sendMessage({ customType: "vibest", content: taken.text, display: false, details: { execution: taken.execution } }, { triggerTurn: true });
18558
+ yield* pi.sendMessage({
18559
+ customType: "vibest",
18560
+ content: taken.content,
18561
+ display: true,
18562
+ details: { execution: taken.execution, detail: taken.detail }
18563
+ }, { triggerTurn: true });
18523
18564
  }).pipe(ignore2);
18524
18565
  yield* pi.handle("agent_settled", (_e, ctx) => takeNext(ctx));
18525
18566
  const subscribe = (ctx) => flatMap4(identity(ctx), (who) => withVibest2(who, (client) => client["Inbox.Subscribe"](undefined).pipe(runForEach2(() => takeNext(ctx)), catchCause2((cause) => hasInterruptsOnly2(cause) ? void_3 : failCause3(cause))), { start: false })).pipe(retry2({