@kybernesis/buzz 0.12.0 → 0.12.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.
- package/dist/hitl.d.ts +6 -1
- package/dist/hitl.js +9 -2
- package/package.json +2 -4
package/dist/hitl.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { type ClientSession, type InputRequest, type InputResponse } from "eve/client";
|
|
2
2
|
import type { StoredSession } from "./sessions.js";
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Render pending Eve input in a text-only Buzz channel.
|
|
5
|
+
*
|
|
6
|
+
* A Kybernesis tool may put a `[kyb:…] {json}` marker on a question's first
|
|
7
|
+
* line for apps that draw it as a card. Buzz shows only the sentence after it.
|
|
8
|
+
*/
|
|
4
9
|
export declare function formatInputRequests(requests: readonly InputRequest[]): string;
|
|
5
10
|
/** Resolve a Buzz text reply using Eve's certified matching semantics. */
|
|
6
11
|
export declare function resolveInputReply(text: string, requests: readonly InputRequest[]): readonly InputResponse[] | null;
|
package/dist/hitl.js
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { resolveTextToResponses, } from "eve/client";
|
|
2
|
-
|
|
2
|
+
import { promptText } from "@kybernesis/cards";
|
|
3
|
+
/**
|
|
4
|
+
* Render pending Eve input in a text-only Buzz channel.
|
|
5
|
+
*
|
|
6
|
+
* A Kybernesis tool may put a `[kyb:…] {json}` marker on a question's first
|
|
7
|
+
* line for apps that draw it as a card. Buzz shows only the sentence after it.
|
|
8
|
+
*/
|
|
3
9
|
export function formatInputRequests(requests) {
|
|
4
10
|
return requests.map((request, requestIndex) => {
|
|
11
|
+
const prompt = promptText(request.prompt);
|
|
5
12
|
const lines = [
|
|
6
|
-
requests.length > 1 ? `Question ${requestIndex + 1}: ${
|
|
13
|
+
requests.length > 1 ? `Question ${requestIndex + 1}: ${prompt}` : prompt,
|
|
7
14
|
];
|
|
8
15
|
if (request.options?.length) {
|
|
9
16
|
lines.push("", ...request.options.map((option, optionIndex) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kybernesis/buzz",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "Put an eve agent in a Buzz workspace as a member: per-speaker verified identity resolved through the control plane, self-service identity linking, presence, typing and seen signals.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"test": "node --test \"test/**/*.test.mjs\""
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
+
"@kybernesis/cards": "^0.1.1",
|
|
47
48
|
"@kybernesis/enterprise": "^0.10.0",
|
|
48
49
|
"nostr-tools": "^2.10.0",
|
|
49
50
|
"zod": "^4"
|
|
@@ -69,8 +70,5 @@
|
|
|
69
70
|
"source": "./extension",
|
|
70
71
|
"dist": "./dist/extension"
|
|
71
72
|
}
|
|
72
|
-
},
|
|
73
|
-
"publishConfig": {
|
|
74
|
-
"tag": "eve-0.81"
|
|
75
73
|
}
|
|
76
74
|
}
|