@vibest/cli 0.0.2-beta.1 → 0.0.2-beta.2
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/agy/.agents/plugins/vibest/hook.sh +1 -1
- package/harnesses/agy/.agents/plugins/vibest/plugin.json +1 -1
- package/harnesses/agy/.agents/plugins/vibest/skills/delegate/SKILL.md +1 -1
- package/harnesses/claude/.claude-plugin/plugin.json +1 -1
- package/harnesses/claude/hooks/register.mjs +1 -1
- package/harnesses/claude/skills/delegate/SKILL.md +1 -1
- package/harnesses/cursor/.cursor-plugin/plugin.json +1 -1
- package/harnesses/cursor/hooks/vibest.sh +1 -1
- package/harnesses/cursor/skills/delegate/SKILL.md +1 -1
- package/harnesses/pi/extension.mjs +13 -6
- package/harnesses/pi/presentation.mjs +2 -0
- package/harnesses/pi/skills/delegate/SKILL.md +1 -1
- package/package.json +15 -15
- package/harnesses/agy/index.js +0 -1405
- package/harnesses/cursor/index.js +0 -1340
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
|
-
# @vibest/agy 0.0.2-beta.
|
|
2
|
+
# @vibest/agy 0.0.2-beta.2: `vibest integration guard` before a tool call, `prompt` at a conversation's start and before each model call, `stop` at its end.
|
|
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() {
|
|
@@ -41,7 +41,7 @@ An `<vibest-agent-message>` is a claim: whether the work succeeded is in its tex
|
|
|
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.
|
|
44
|
-
- A notice that says the execution ended without its execution-end hook, the harness exited,
|
|
44
|
+
- A notice that says the execution ended without its execution-end hook, the harness exited, the execution did not start, or the session is waiting for a permission decision carries no screen text. When you need to see why, run `vibest peek <id>` (`--lines N`, default 30): it prints the session's terminal as it is now. Read it before you decide to resend, correct, or tell the user.
|
|
45
45
|
|
|
46
46
|
Then say what changed, the evidence, and the branch. `<id>` is the id the run printed, for either kind of run.
|
|
47
47
|
|
|
@@ -5997,7 +5997,7 @@ function register(on) {
|
|
|
5997
5997
|
return;
|
|
5998
5998
|
}),
|
|
5999
5999
|
runtime: await host.env("VIBEST_RUNTIME"),
|
|
6000
|
-
pluginVersion: "0.0.2-beta.
|
|
6000
|
+
pluginVersion: "0.0.2-beta.2",
|
|
6001
6001
|
process: processId ?? await host.env("VIBEST_PROCESS")
|
|
6002
6002
|
});
|
|
6003
6003
|
const r = await timeout2(host.fetch(who.socket, path, { ...headers, "content-type": "application/json" }, JSON.stringify(body)), ms, host.after);
|
|
@@ -41,7 +41,7 @@ An `<vibest-agent-message>` is a claim: whether the work succeeded is in its tex
|
|
|
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.
|
|
44
|
-
- A notice that says the execution ended without its execution-end hook, the harness exited,
|
|
44
|
+
- A notice that says the execution ended without its execution-end hook, the harness exited, the execution did not start, or the session is waiting for a permission decision carries no screen text. When you need to see why, run `vibest peek <id>` (`--lines N`, default 30): it prints the session's terminal as it is now. Read it before you decide to resend, correct, or tell the user.
|
|
45
45
|
|
|
46
46
|
Then say what changed, the evidence, and the branch. `<id>` is the id the run printed, for either kind of run.
|
|
47
47
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
|
-
# @vibest/cursor 0.0.2-beta.
|
|
2
|
+
# @vibest/cursor 0.0.2-beta.2: `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() {
|
|
@@ -41,7 +41,7 @@ An `<vibest-agent-message>` is a claim: whether the work succeeded is in its tex
|
|
|
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.
|
|
44
|
-
- A notice that says the execution ended without its execution-end hook, the harness exited,
|
|
44
|
+
- A notice that says the execution ended without its execution-end hook, the harness exited, the execution did not start, or the session is waiting for a permission decision carries no screen text. When you need to see why, run `vibest peek <id>` (`--lines N`, default 30): it prints the session's terminal as it is now. Read it before you decide to resend, correct, or tell the user.
|
|
45
45
|
|
|
46
46
|
Then say what changed, the evidence, and the branch. `<id>` is the id the run printed, for either kind of run.
|
|
47
47
|
|
|
@@ -6574,6 +6574,7 @@ var scopeCloseFinalizers = /* @__PURE__ */ fnUntraced(function* (self, finalizer
|
|
|
6574
6574
|
}
|
|
6575
6575
|
return yield* exitAsVoidAll(exits);
|
|
6576
6576
|
});
|
|
6577
|
+
var scopeFork = (scope, finalizerStrategy) => sync(() => scopeForkUnsafe(scope, finalizerStrategy));
|
|
6577
6578
|
var scopeForkUnsafe = (scope, finalizerStrategy) => {
|
|
6578
6579
|
const child = makeScope(finalizerStrategy, scope);
|
|
6579
6580
|
if (scope.state._tag === "Closed") {
|
|
@@ -7593,6 +7594,7 @@ var makeUnsafe3 = scopeMakeUnsafe;
|
|
|
7593
7594
|
var provide = provideScope;
|
|
7594
7595
|
var addFinalizerExit = scopeAddFinalizerExit;
|
|
7595
7596
|
var addFinalizer = scopeAddFinalizer;
|
|
7597
|
+
var fork = scopeFork;
|
|
7596
7598
|
var forkUnsafe2 = scopeForkUnsafe;
|
|
7597
7599
|
var close = scopeClose;
|
|
7598
7600
|
|
|
@@ -18334,7 +18336,11 @@ var hookCall = (socket, headers, send) => {
|
|
|
18334
18336
|
return yield* once;
|
|
18335
18337
|
});
|
|
18336
18338
|
};
|
|
18337
|
-
var
|
|
18339
|
+
var pinged = (socket) => gen2(function* () {
|
|
18340
|
+
const own = yield* fork(yield* scope2);
|
|
18341
|
+
return yield* connect2(socket).pipe(flatMap4((client) => map6(client.Ping(undefined), (ping) => ({ client, ping }))), timeout2("1 second"), option2, catchCause2((cause) => hasInterruptsOnly2(cause) ? succeed7(none2()) : failCause3(cause)), provide(own), onExit2((exit) => isSuccess3(exit) && isSome2(exit.value) ? void_3 : close(own, exit)));
|
|
18342
|
+
});
|
|
18343
|
+
var readPing = (socket) => pinged(socket).pipe(map6(map(({ ping }) => ping)), scoped2);
|
|
18338
18344
|
var probe = (socket) => readPing(socket).pipe(map6(isSome2), orElseSucceed2(() => false));
|
|
18339
18345
|
var awaitDaemon = (socket) => probe(socket).pipe(repeat2({ until: (up) => up, schedule: spaced("200 millis") }), timeoutOrElse2({ duration: DAEMON_START_TIMEOUT, orElse: () => succeed7(false) }));
|
|
18340
18346
|
var incompatibleDaemon = (socket, ping, client, needs) => {
|
|
@@ -18397,7 +18403,7 @@ var startDaemon = gen2(function* () {
|
|
|
18397
18403
|
});
|
|
18398
18404
|
var withVibest = (version) => (claim, f, options) => gen2(function* () {
|
|
18399
18405
|
const layout = yield* Layout;
|
|
18400
|
-
const up = yield*
|
|
18406
|
+
const up = yield* pinged(layout.socket);
|
|
18401
18407
|
if (isNone2(up)) {
|
|
18402
18408
|
if (options?.start === false)
|
|
18403
18409
|
return yield* new DaemonUnavailable({
|
|
@@ -18406,16 +18412,17 @@ var withVibest = (version) => (claim, f, options) => gen2(function* () {
|
|
|
18406
18412
|
});
|
|
18407
18413
|
yield* startDaemon;
|
|
18408
18414
|
}
|
|
18409
|
-
const
|
|
18410
|
-
if (
|
|
18415
|
+
const reached = isSome2(up) ? up.value : getOrUndefined(yield* pinged(layout.socket));
|
|
18416
|
+
if (reached === undefined)
|
|
18411
18417
|
return yield* new DaemonUnavailable({
|
|
18412
18418
|
socket: layout.socket,
|
|
18413
18419
|
message: `vibestd did not answer Ping on ${layout.socket}`
|
|
18414
18420
|
});
|
|
18421
|
+
const { client, ping } = reached;
|
|
18415
18422
|
const incompatible = incompatibleDaemon(layout.socket, ping, { version, command: yield* VibestCommand }, options?.needs);
|
|
18416
18423
|
if (incompatible)
|
|
18417
18424
|
return yield* incompatible;
|
|
18418
|
-
return yield* withHeaders(
|
|
18425
|
+
return yield* withHeaders(f(client, ping), yield* claimHeaders(claim));
|
|
18419
18426
|
}).pipe(scoped2);
|
|
18420
18427
|
var makeClient = (options) => ({ withVibest: withVibest(options.version) });
|
|
18421
18428
|
|
|
@@ -18448,7 +18455,7 @@ class Pi extends Service()("@vibest/pi/Pi") {
|
|
|
18448
18455
|
}
|
|
18449
18456
|
|
|
18450
18457
|
// src/version.ts
|
|
18451
|
-
var VERSION = "0.0.2-beta.
|
|
18458
|
+
var VERSION = "0.0.2-beta.2";
|
|
18452
18459
|
|
|
18453
18460
|
// src/extension.ts
|
|
18454
18461
|
var { withVibest: withVibest2 } = makeClient({ version: VERSION });
|
|
@@ -3606,6 +3606,7 @@ var scopeCloseFinalizers = /* @__PURE__ */ fnUntraced(function* (self, finalizer
|
|
|
3606
3606
|
}
|
|
3607
3607
|
return yield* exitAsVoidAll(exits);
|
|
3608
3608
|
});
|
|
3609
|
+
var scopeFork = (scope, finalizerStrategy) => sync(() => scopeForkUnsafe(scope, finalizerStrategy));
|
|
3609
3610
|
var scopeForkUnsafe = (scope, finalizerStrategy) => {
|
|
3610
3611
|
const child = makeScope(finalizerStrategy, scope);
|
|
3611
3612
|
if (scope.state._tag === "Closed") {
|
|
@@ -4651,6 +4652,7 @@ var makeUnsafe3 = scopeMakeUnsafe;
|
|
|
4651
4652
|
var provide = provideScope;
|
|
4652
4653
|
var addFinalizerExit = scopeAddFinalizerExit;
|
|
4653
4654
|
var addFinalizer = scopeAddFinalizer;
|
|
4655
|
+
var fork = scopeFork;
|
|
4654
4656
|
var forkUnsafe2 = scopeForkUnsafe;
|
|
4655
4657
|
var close = scopeClose;
|
|
4656
4658
|
|
|
@@ -41,7 +41,7 @@ An `<vibest-agent-message>` is a claim: whether the work succeeded is in its tex
|
|
|
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.
|
|
44
|
-
- A notice that says the execution ended without its execution-end hook, the harness exited,
|
|
44
|
+
- A notice that says the execution ended without its execution-end hook, the harness exited, the execution did not start, or the session is waiting for a permission decision carries no screen text. When you need to see why, run `vibest peek <id>` (`--lines N`, default 30): it prints the session's terminal as it is now. Read it before you decide to resend, correct, or tell the user.
|
|
45
45
|
|
|
46
46
|
Then say what changed, the evidence, and the branch. `<id>` is the id the run printed, for either kind of run.
|
|
47
47
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibest/cli",
|
|
3
|
-
"version": "0.0.2-beta.
|
|
3
|
+
"version": "0.0.2-beta.2",
|
|
4
4
|
"description": "vibest: vibestd daemon and the vibest CLI. An entry session directing sessions in herdr panes.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -32,23 +32,23 @@
|
|
|
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.2-beta.
|
|
36
|
-
"@vibest/client": "0.0.2-beta.
|
|
37
|
-
"@vibest/core": "0.0.2-beta.
|
|
38
|
-
"@vibest/platform-bun": "0.0.2-beta.
|
|
39
|
-
"@vibest/plugin": "0.0.2-beta.
|
|
40
|
-
"@vibest/plugin-harnesses": "0.0.2-beta.
|
|
41
|
-
"@vibest/protocol": "0.0.2-beta.
|
|
42
|
-
"@vibest/runtime-herdr": "0.0.2-beta.
|
|
43
|
-
"@vibest/runtime-herdr-core": "0.0.2-beta.
|
|
44
|
-
"@vibest/schema": "0.0.2-beta.
|
|
45
|
-
"@vibest/server": "0.0.2-beta.
|
|
35
|
+
"@vibest/builtins": "0.0.2-beta.2",
|
|
36
|
+
"@vibest/client": "0.0.2-beta.2",
|
|
37
|
+
"@vibest/core": "0.0.2-beta.2",
|
|
38
|
+
"@vibest/platform-bun": "0.0.2-beta.2",
|
|
39
|
+
"@vibest/plugin": "0.0.2-beta.2",
|
|
40
|
+
"@vibest/plugin-harnesses": "0.0.2-beta.2",
|
|
41
|
+
"@vibest/protocol": "0.0.2-beta.2",
|
|
42
|
+
"@vibest/runtime-herdr": "0.0.2-beta.2",
|
|
43
|
+
"@vibest/runtime-herdr-core": "0.0.2-beta.2",
|
|
44
|
+
"@vibest/schema": "0.0.2-beta.2",
|
|
45
|
+
"@vibest/server": "0.0.2-beta.2",
|
|
46
46
|
"effect": "4.0.2",
|
|
47
|
-
"effect-herdr-sdk": "0.0.2-beta.
|
|
47
|
+
"effect-herdr-sdk": "0.0.2-beta.2"
|
|
48
48
|
},
|
|
49
49
|
"optionalDependencies": {
|
|
50
|
-
"@vibest/cli-darwin-arm64": "0.0.2-beta.
|
|
51
|
-
"@vibest/cli-linux-x64": "0.0.2-beta.
|
|
50
|
+
"@vibest/cli-darwin-arm64": "0.0.2-beta.2",
|
|
51
|
+
"@vibest/cli-linux-x64": "0.0.2-beta.2"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "bun scripts/build.ts && bun scripts/build-harnesses.ts",
|