@livx.cc/agentx 0.99.139 → 0.99.141
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 +30 -11
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +17 -2
- package/dist/index.js.map +1 -1
- package/dist/{secondChannel-BqUiRI5w.d.ts → secondChannel--Iv3ZQ69.d.ts} +3 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as AgentOptions, H as Hooks, x as RunResult, k as Decider, b as Agent, q as PermissionPolicy, G as Gender, L as LineKind, d as ChannelMode, y as SecondChannelOptions, S as SecondChannel } from './secondChannel
|
|
2
|
-
export { A as ADVISE_LIMIT, a as AdvisorSetup, C as CC_WRITE_TOOLS, e as ChatFragment, f as ChatUsage, g as Classification, h as Classifier, i as CompactResult, j as ContextFileSpec, D as DEFAULT_MUTATING, l as Decision, M as ModelRouter, m as ModelRouterOptions, P as PLANNER_BLOCKED, n as PLANNER_REFUSAL, o as PLAN_FIRST, p as PermissionOptions, r as PermissionRule, s as PreToolUseDecision, R as ReasoningEffort, t as RecordingHooks, u as RecordingLifecycle, v as RouteDecision, w as RouterState, T as Tier, z as ToolUse, B as ToolUseMeta, W as WRITE_TOOLS, E as advisorFor, F as advisorPrompt, I as ccModeOptions, J as claudeCodeDisallowedTools, K as composeHooks, N as delegatePrompt, O as delegateTools, Q as delegateWorkerFor, U as estimateTokens, V as jevAvailable, X as jevClassifier, Y as loadContextFiles, Z as loadInstructions, _ as makeAdvisor, $ as meterWorkers, a0 as pickTier, a1 as planMode, a2 as plannerBlocks, a3 as reasoningToChatFragment } from './secondChannel
|
|
1
|
+
import { c as AgentOptions, H as Hooks, x as RunResult, k as Decider, b as Agent, q as PermissionPolicy, G as Gender, L as LineKind, d as ChannelMode, y as SecondChannelOptions, S as SecondChannel } from './secondChannel--Iv3ZQ69.js';
|
|
2
|
+
export { A as ADVISE_LIMIT, a as AdvisorSetup, C as CC_WRITE_TOOLS, e as ChatFragment, f as ChatUsage, g as Classification, h as Classifier, i as CompactResult, j as ContextFileSpec, D as DEFAULT_MUTATING, l as Decision, M as ModelRouter, m as ModelRouterOptions, P as PLANNER_BLOCKED, n as PLANNER_REFUSAL, o as PLAN_FIRST, p as PermissionOptions, r as PermissionRule, s as PreToolUseDecision, R as ReasoningEffort, t as RecordingHooks, u as RecordingLifecycle, v as RouteDecision, w as RouterState, T as Tier, z as ToolUse, B as ToolUseMeta, W as WRITE_TOOLS, E as advisorFor, F as advisorPrompt, I as ccModeOptions, J as claudeCodeDisallowedTools, K as composeHooks, N as delegatePrompt, O as delegateTools, Q as delegateWorkerFor, U as estimateTokens, V as jevAvailable, X as jevClassifier, Y as loadContextFiles, Z as loadInstructions, _ as makeAdvisor, $ as meterWorkers, a0 as pickTier, a1 as planMode, a2 as plannerBlocks, a3 as reasoningToChatFragment } from './secondChannel--Iv3ZQ69.js';
|
|
3
3
|
export { MODEL_ALIASES, ModelSwitch, ResolveModelSwitchOpts, latestClaude, modelShortLabel, resolveModelAlias, resolveModelSwitch } from './models.js';
|
|
4
4
|
import { IFilesystem, FileMetadata } from '@livx.cc/wcli/core';
|
|
5
5
|
export { CommandExecutor, FileMetadata, IFilesystem, IndexedDbFilesystem, MemFilesystem, registerHeadlessCommands } from '@livx.cc/wcli/core';
|
package/dist/index.js
CHANGED
|
@@ -13128,12 +13128,27 @@ var CHANNEL_MODES = {
|
|
|
13128
13128
|
minGapMs: 2500,
|
|
13129
13129
|
backchannelPauseMs: 500,
|
|
13130
13130
|
maxPerWindow: 6
|
|
13131
|
+
},
|
|
13132
|
+
live: {
|
|
13133
|
+
anticipate: true,
|
|
13134
|
+
cueOnly: false,
|
|
13135
|
+
generateFor: ["backchannel", "bridge"],
|
|
13136
|
+
reactionGapMs: 3e3,
|
|
13137
|
+
generateBudgetMs: 400,
|
|
13138
|
+
backchannelMinWords: 3,
|
|
13139
|
+
shortTurnWords: 2,
|
|
13140
|
+
backchannelGapMs: 2e3,
|
|
13141
|
+
minGapMs: 1800,
|
|
13142
|
+
backchannelPauseMs: 350,
|
|
13143
|
+
maxPerWindow: 9
|
|
13131
13144
|
}
|
|
13132
13145
|
};
|
|
13133
13146
|
var CHANNEL_MODE_NAMES = Object.keys(CHANNEL_MODES);
|
|
13134
13147
|
var SecondChannelOptions = class {
|
|
13135
13148
|
/** Preset (CHANNEL_MODES) under the explicit options. */
|
|
13136
13149
|
mode = "normal";
|
|
13150
|
+
/** A turn of at most this many words gets no line (a greeting / quick turn). */
|
|
13151
|
+
shortTurnWords = 3;
|
|
13137
13152
|
/** Line kinds this channel may speak. */
|
|
13138
13153
|
kinds = ["backchannel", "filler", "bridge"];
|
|
13139
13154
|
/** A generated (content) backchannel needs this long since the last one; in between, canned light cues. 0 = always. */
|
|
@@ -13333,7 +13348,7 @@ var SecondChannel = class {
|
|
|
13333
13348
|
}
|
|
13334
13349
|
get o() {
|
|
13335
13350
|
const o = this.options;
|
|
13336
|
-
return o.mode !== "chatty" || o.aec ? o : { ...o, ...this.normalTiming };
|
|
13351
|
+
return o.mode !== "chatty" && o.mode !== "live" || o.aec ? o : { ...o, ...this.normalTiming };
|
|
13337
13352
|
}
|
|
13338
13353
|
/** The user's live partial for the current turn (the whole partial, not a delta). */
|
|
13339
13354
|
onInterim(text) {
|
|
@@ -13528,7 +13543,7 @@ var SecondChannel = class {
|
|
|
13528
13543
|
const w = words2(this.heard);
|
|
13529
13544
|
if (!this.lang) return "silence";
|
|
13530
13545
|
if (trigger === "working") return this.bridgeBlock() ? "silence" : "bridge";
|
|
13531
|
-
if (w.length <=
|
|
13546
|
+
if (w.length <= this.o.shortTurnWords || w.length <= 6 && isPhatic(this.heard, this.bank)) return "silence";
|
|
13532
13547
|
const k = trigger === "interim" ? this.backchannelMoment(w.length, breath) && (!this.o.anticipate || !this.plan || !silentTurn(this.plan) && (!!cue || !this.o.cueOnly && this.plan.density !== "low")) ? "backchannel" : null : trigger === "pause" ? pauseMs >= this.o.fillerPauseMs && w.length >= this.o.fillerMinWords ? "filler" : null : null;
|
|
13533
13548
|
return k && this.allowed(k) ? k : "silence";
|
|
13534
13549
|
}
|