@livx.cc/agentx 0.99.151 → 0.99.153
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/cli.d.ts +1 -1
- package/dist/cli.js +254 -157
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +13 -2
- package/dist/index.js +121 -47
- package/dist/index.js.map +1 -1
- package/dist/{secondChannel--iqPHPO_.d.ts → secondChannel-CR3xWWB_.d.ts} +12 -1
- package/package.json +1 -1
|
@@ -1089,6 +1089,11 @@ interface ChannelContext {
|
|
|
1089
1089
|
react?: boolean;
|
|
1090
1090
|
/** A live bridge: name what they asked for, or answer `none` when no wait is coming. */
|
|
1091
1091
|
ask?: boolean;
|
|
1092
|
+
/** live bridge: the last words the user HEARD the assistant say before this turn (a barge's cut point), so a "that"
|
|
1093
|
+
* can be echoed back as the thing it points at ("the OpenAI one?"). */
|
|
1094
|
+
said?: string;
|
|
1095
|
+
/** `said` ends where the user cut the assistant off. */
|
|
1096
|
+
cut?: boolean;
|
|
1092
1097
|
/** The line may carry sound tags ([laughter], [gasp], [quiet]): `live` only. */
|
|
1093
1098
|
tags?: boolean;
|
|
1094
1099
|
}
|
|
@@ -1254,8 +1259,10 @@ declare class SecondChannel {
|
|
|
1254
1259
|
private bridged;
|
|
1255
1260
|
private bridgeDraft;
|
|
1256
1261
|
private bridgeReady;
|
|
1262
|
+
private noLine;
|
|
1257
1263
|
private askLeaf;
|
|
1258
1264
|
private barged;
|
|
1265
|
+
private said;
|
|
1259
1266
|
private leafReady;
|
|
1260
1267
|
private recent;
|
|
1261
1268
|
private picks;
|
|
@@ -1307,8 +1314,12 @@ declare class SecondChannel {
|
|
|
1307
1314
|
onPause(ms: number): void;
|
|
1308
1315
|
/** Channel-1 lifecycle. `queued` = the user's turn was dispatched to the main agent. */
|
|
1309
1316
|
onAgentState(s: MainState): void;
|
|
1317
|
+
/** The STT closed the user's line (a final that ends a sentence), before it is a turn (the host may still hold it): a
|
|
1318
|
+
* listener cue armed on its last words is late now. Replay of 20261103-210433: "oh wow" played 330ms after "…and
|
|
1319
|
+
* hacker news." while the gate held the turn, and spaced the request's own line to 1.5s. */
|
|
1320
|
+
onLineEnd(): void;
|
|
1310
1321
|
/** The user's final line was dispatched to the main agent (its words are the bridge's micro-context). */
|
|
1311
|
-
onUserTurn(text: string, lastWordAgoMs?: number): void;
|
|
1322
|
+
onUserTurn(text: string, lastWordAgoMs?: number, heardCut?: string): void;
|
|
1312
1323
|
/** The main answer's streamed text (before its audio): channel-1 is responding — no bridge from here on. */
|
|
1313
1324
|
onMainTokens(text: string): void;
|
|
1314
1325
|
/** Channel-1's reply text (a delta) — only the plan's context; no state change (hosts without onMainTokens). */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livx.cc/agentx",
|
|
3
|
-
"version": "0.99.
|
|
3
|
+
"version": "0.99.153",
|
|
4
4
|
"description": "Edge-native AI agent runtime — drives a virtual filesystem via any LLM (ai.libx.js). Same bytes run in node, browser, or edge.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|