@vibest/cli 0.0.1-beta.18 → 0.0.1-beta.19
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.
- package/harnesses/claude/.claude-plugin/plugin.json +1 -1
- package/harnesses/claude/README.md +4 -1
- package/harnesses/claude/hooks/register.mjs +2 -2
- package/harnesses/cursor/.cursor-plugin/plugin.json +1 -1
- package/harnesses/cursor/hooks/vibest.sh +1 -1
- package/harnesses/pi/extension.mjs +16 -5
- package/package.json +14 -14
|
@@ -17,7 +17,10 @@ vibestd's unix socket `<VIBEST_HOME>/vibest-http.sock`; the plugin runs no `vibe
|
|
|
17
17
|
`$.prompt.submit` from the AbovePrompt `ui.render` hook, one batch per draw, and this module's own `prompt.submit`
|
|
18
18
|
hook attaches the full text as context. An accepted submit is acked by row id (`/inbox/ack`) on the next tick; a
|
|
19
19
|
`drop` puts the batch back at the front of the queue. The submit has to come from inside a hook's call stack: a
|
|
20
|
-
submit from a clock callback would skip this module's own `prompt.submit` hook as re-entry. The
|
|
20
|
+
submit from a clock callback would skip this module's own `prompt.submit` hook as re-entry. The render hook awaits
|
|
21
|
+
the submit before it returns: Claude Code reads the call against the hooks still running when it arrives, and under
|
|
22
|
+
load a hook that returned at once had often settled first, so its own `prompt.submit` hook was skipped the same way
|
|
23
|
+
and the line went out without its full text. The module remembers the
|
|
21
24
|
row ids it has taken, so a batch handed out again after its lease ran out or vibestd restarted is not shown twice:
|
|
22
25
|
in a batch that mixes taken rows with new ones, the taken ones are acked and the new ones given back, so they come
|
|
23
26
|
alone. Full texts wait for `prompt.submit` for at most the last 100 lines. A one-line notice is its own full text and
|
|
@@ -143,7 +143,7 @@ function register(on, _options) {
|
|
|
143
143
|
return;
|
|
144
144
|
}),
|
|
145
145
|
runtime: await host.env("VIBEST_RUNTIME"),
|
|
146
|
-
pluginVersion: "0.0.1-beta.
|
|
146
|
+
pluginVersion: "0.0.1-beta.19"
|
|
147
147
|
});
|
|
148
148
|
const r = await timeout(host.fetch(who.socket, path, { ...headers, "content-type": "application/json" }, JSON.stringify(body)), ms, host.after);
|
|
149
149
|
const reply = { status: r.status, body: parse(r.text) };
|
|
@@ -255,7 +255,7 @@ function register(on, _options) {
|
|
|
255
255
|
draining = true;
|
|
256
256
|
queue.shift();
|
|
257
257
|
keep(batch.line, batch.text);
|
|
258
|
-
host.submit(batch.line).then((r) => {
|
|
258
|
+
await host.submit(batch.line).then((r) => {
|
|
259
259
|
draining = false;
|
|
260
260
|
if (r.drop !== undefined) {
|
|
261
261
|
forget(batch.line, batch.text);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
|
-
# @vibest/cursor 0.0.1-beta.
|
|
2
|
+
# @vibest/cursor 0.0.1-beta.19: `vibest integration guard` before a tool call, `ready` at the session start, `prompt` when a turn 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() {
|
|
@@ -7923,6 +7923,7 @@ var buildFromOptions = (options) => {
|
|
|
7923
7923
|
|
|
7924
7924
|
// ../../../node_modules/.pnpm/effect@4.0.2/node_modules/effect/dist/Effect.js
|
|
7925
7925
|
var isEffect2 = isEffect;
|
|
7926
|
+
var all2 = all;
|
|
7926
7927
|
var forEach2 = forEach;
|
|
7927
7928
|
var whileLoop2 = whileLoop;
|
|
7928
7929
|
var tryPromise2 = tryPromise;
|
|
@@ -8000,6 +8001,7 @@ var runSyncExit2 = runSyncExit;
|
|
|
8000
8001
|
var fnUntraced2 = fnUntraced;
|
|
8001
8002
|
var fn2 = fn;
|
|
8002
8003
|
var logError = /* @__PURE__ */ logWithLevel("Error");
|
|
8004
|
+
var logDebug = /* @__PURE__ */ logWithLevel("Debug");
|
|
8003
8005
|
var annotateLogs = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (effect, ...args) => updateService(effect, CurrentLogAnnotations2, (annotations) => {
|
|
8004
8006
|
const newAnnotations = args.length === 1 ? {
|
|
8005
8007
|
...annotations,
|
|
@@ -17236,7 +17238,7 @@ var Service2 = () => (id, options) => {
|
|
|
17236
17238
|
// ../../protocol/package.json
|
|
17237
17239
|
var package_default = {
|
|
17238
17240
|
name: "@vibest/protocol",
|
|
17239
|
-
version: "0.0.1-beta.
|
|
17241
|
+
version: "0.0.1-beta.19",
|
|
17240
17242
|
private: true,
|
|
17241
17243
|
license: "MIT",
|
|
17242
17244
|
type: "module",
|
|
@@ -17913,6 +17915,8 @@ class IncompatibleDaemon extends TaggedError3()("IncompatibleDaemon", {
|
|
|
17913
17915
|
const byHand = stopByHand(this.socket, this.daemon.pid).replace(/^To replace it, /, "");
|
|
17914
17916
|
if (this.missing !== undefined)
|
|
17915
17917
|
return `vibestd is older (${this.daemonVersion || "unknown"}); run ${MISMATCH_ACTION}. ${described(this.daemonVersion, this.daemon)} on ${this.socket} has no ${this.missing}, which ${self} needs. If \`vibest daemon restart\` cannot replace it: ${byHand}.`;
|
|
17918
|
+
if (this.daemonProtocol !== null && this.daemonProtocol > PROTOCOL)
|
|
17919
|
+
return `${self} speaks protocol ${PROTOCOL}, older than ${described(this.daemonVersion, this.daemon)} on ${this.socket}, which speaks ${got}. Run ${MISMATCH_ACTION} (again, if this was ${MISMATCH_ACTION}): the newest vibest finishes the update and restarts the agents still on the old integration. To keep vibest ${this.client.version} instead (\`vibest daemon restart\` cannot, as vibestd refuses this older protocol): ${byHand}.`;
|
|
17916
17920
|
const mismatch = protocolMismatch(PROTOCOL, this.daemonProtocol ?? 0, this.daemonVersion || "unknown", this.client.version);
|
|
17917
17921
|
return `${mismatch.message}. ${described(this.daemonVersion, this.daemon)} on ${this.socket} speaks ${got}; ${self} speaks protocol ${PROTOCOL}. If \`vibest daemon restart\` cannot replace it: ${byHand}. A package-version difference alone does not require a restart.`;
|
|
17918
17922
|
}
|
|
@@ -17932,7 +17936,7 @@ var fromEnv2 = gen2(function* () {
|
|
|
17932
17936
|
runtime: yield* read("VIBEST_RUNTIME"),
|
|
17933
17937
|
cwd: (yield* Path).resolve(".")
|
|
17934
17938
|
};
|
|
17935
|
-
}).pipe(orElseSucceed2(() => ({})));
|
|
17939
|
+
}).pipe(tapCause2((cause) => logDebug(`session claim headers fell back to the request: ${pretty(cause)}`)), orElseSucceed2(() => ({})));
|
|
17936
17940
|
var claimHeaders = (claim) => claim._tag === "cli" ? succeed7(cliHeaders(claim.repositoryRoot)) : map6(fromEnv2, (more) => sessionHeaders({
|
|
17937
17941
|
...more,
|
|
17938
17942
|
sessionId: claim.sessionId,
|
|
@@ -17940,7 +17944,8 @@ var claimHeaders = (claim) => claim._tag === "cli" ? succeed7(cliHeaders(claim.r
|
|
|
17940
17944
|
harnessSessionId: claim.harnessSessionId,
|
|
17941
17945
|
pluginVersion: claim.pluginVersion
|
|
17942
17946
|
}));
|
|
17943
|
-
var
|
|
17947
|
+
var clientOver = (socket, options) => build(layerProtocolSocket(options).pipe(provide2(socket), provide2(layerNdJsonRpc()))).pipe(flatMap4((protocol) => make26(VibestRpcs).pipe(provide4(protocol))));
|
|
17948
|
+
var connect2 = (socket) => clientOver(effect(Socket, flatMap4(SocketConnector, (dial) => dial(socket))), { pingInterval: "1 minute", pingTimeout: "1 day" });
|
|
17944
17949
|
var HOOK_TIMEOUT = seconds(2);
|
|
17945
17950
|
var HOOK_RETRY_DELAY = millis(300);
|
|
17946
17951
|
var CONNECT_CODES = new Set(["ECONNREFUSED", "ENOENT"]);
|
|
@@ -17984,9 +17989,10 @@ var spawnDaemon = (command, args = [], env) => gen2(function* () {
|
|
|
17984
17989
|
yield* gen2(function* () {
|
|
17985
17990
|
const handle = yield* spawner.spawn(make13("sh", [
|
|
17986
17991
|
"-c",
|
|
17987
|
-
|
|
17992
|
+
'mkdir -p "$1" && log=$2 && shift 2 && { "$@" >>"$log" 2>&1 & }',
|
|
17988
17993
|
"sh",
|
|
17989
17994
|
layout.home,
|
|
17995
|
+
log,
|
|
17990
17996
|
...command,
|
|
17991
17997
|
"daemon",
|
|
17992
17998
|
"--foreground",
|
|
@@ -17997,9 +18003,14 @@ var spawnDaemon = (command, args = [], env) => gen2(function* () {
|
|
|
17997
18003
|
extendEnv: true,
|
|
17998
18004
|
stdin: "ignore",
|
|
17999
18005
|
stdout: "ignore",
|
|
18000
|
-
stderr: "
|
|
18006
|
+
stderr: "pipe"
|
|
18001
18007
|
}));
|
|
18002
18008
|
yield* handle.unref;
|
|
18009
|
+
const [said, code] = yield* all2([mkString(decodeText(handle.stderr)), handle.exitCode], {
|
|
18010
|
+
concurrency: "unbounded"
|
|
18011
|
+
});
|
|
18012
|
+
if (code !== 0)
|
|
18013
|
+
return yield* fail6(new Error(`vibestd was not started (exit ${code}): ${said.trim() || "no output"}`));
|
|
18003
18014
|
}).pipe(scoped2, mapError3((e) => new DaemonUnavailable({ socket: layout.socket, message: e.message })));
|
|
18004
18015
|
});
|
|
18005
18016
|
var startDaemon = gen2(function* () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibest/cli",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.19",
|
|
4
4
|
"description": "vibest: vibestd daemon and the vibest CLI. A coordinator directing sessions in herdr panes.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -32,22 +32,22 @@
|
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@effect/platform-bun": "4.0.2",
|
|
34
34
|
"@effect/sql-sqlite-bun": "4.0.2",
|
|
35
|
-
"@vibest/builtins": "0.0.1-beta.
|
|
36
|
-
"@vibest/client": "0.0.1-beta.
|
|
37
|
-
"@vibest/core": "0.0.1-beta.
|
|
38
|
-
"@vibest/plugin": "0.0.1-beta.
|
|
39
|
-
"@vibest/plugin-harnesses": "0.0.1-beta.
|
|
40
|
-
"@vibest/protocol": "0.0.1-beta.
|
|
41
|
-
"@vibest/runtime-herdr": "0.0.1-beta.
|
|
42
|
-
"@vibest/runtime-herdr-core": "0.0.1-beta.
|
|
43
|
-
"@vibest/schema": "0.0.1-beta.
|
|
44
|
-
"@vibest/server": "0.0.1-beta.
|
|
35
|
+
"@vibest/builtins": "0.0.1-beta.19",
|
|
36
|
+
"@vibest/client": "0.0.1-beta.19",
|
|
37
|
+
"@vibest/core": "0.0.1-beta.19",
|
|
38
|
+
"@vibest/plugin": "0.0.1-beta.19",
|
|
39
|
+
"@vibest/plugin-harnesses": "0.0.1-beta.19",
|
|
40
|
+
"@vibest/protocol": "0.0.1-beta.19",
|
|
41
|
+
"@vibest/runtime-herdr": "0.0.1-beta.19",
|
|
42
|
+
"@vibest/runtime-herdr-core": "0.0.1-beta.19",
|
|
43
|
+
"@vibest/schema": "0.0.1-beta.19",
|
|
44
|
+
"@vibest/server": "0.0.1-beta.19",
|
|
45
45
|
"effect": "4.0.2",
|
|
46
|
-
"effect-herdr-sdk": "0.0.1-beta.
|
|
46
|
+
"effect-herdr-sdk": "0.0.1-beta.19"
|
|
47
47
|
},
|
|
48
48
|
"optionalDependencies": {
|
|
49
|
-
"@vibest/cli-darwin-arm64": "0.0.1-beta.
|
|
50
|
-
"@vibest/cli-linux-x64": "0.0.1-beta.
|
|
49
|
+
"@vibest/cli-darwin-arm64": "0.0.1-beta.19",
|
|
50
|
+
"@vibest/cli-linux-x64": "0.0.1-beta.19"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"build": "bun scripts/build.ts && bun scripts/build-harnesses.ts",
|