@livx.cc/agentx 0.99.140 → 0.99.142
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 +18 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +18 -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,28 @@ var CHANNEL_MODES = {
|
|
|
13128
13128
|
minGapMs: 2500,
|
|
13129
13129
|
backchannelPauseMs: 500,
|
|
13130
13130
|
maxPerWindow: 6
|
|
13131
|
+
},
|
|
13132
|
+
live: {
|
|
13133
|
+
kinds: ["backchannel"],
|
|
13134
|
+
anticipate: true,
|
|
13135
|
+
cueOnly: false,
|
|
13136
|
+
generateFor: ["backchannel"],
|
|
13137
|
+
reactionGapMs: 3e3,
|
|
13138
|
+
generateBudgetMs: 400,
|
|
13139
|
+
backchannelMinWords: 3,
|
|
13140
|
+
shortTurnWords: 2,
|
|
13141
|
+
backchannelGapMs: 2e3,
|
|
13142
|
+
minGapMs: 1800,
|
|
13143
|
+
backchannelPauseMs: 350,
|
|
13144
|
+
maxPerWindow: 9
|
|
13131
13145
|
}
|
|
13132
13146
|
};
|
|
13133
13147
|
var CHANNEL_MODE_NAMES = Object.keys(CHANNEL_MODES);
|
|
13134
13148
|
var SecondChannelOptions = class {
|
|
13135
13149
|
/** Preset (CHANNEL_MODES) under the explicit options. */
|
|
13136
13150
|
mode = "normal";
|
|
13151
|
+
/** A turn of at most this many words gets no line (a greeting / quick turn). */
|
|
13152
|
+
shortTurnWords = 3;
|
|
13137
13153
|
/** Line kinds this channel may speak. */
|
|
13138
13154
|
kinds = ["backchannel", "filler", "bridge"];
|
|
13139
13155
|
/** A generated (content) backchannel needs this long since the last one; in between, canned light cues. 0 = always. */
|
|
@@ -13333,7 +13349,7 @@ var SecondChannel = class {
|
|
|
13333
13349
|
}
|
|
13334
13350
|
get o() {
|
|
13335
13351
|
const o = this.options;
|
|
13336
|
-
return o.mode !== "chatty" || o.aec ? o : { ...o, ...this.normalTiming };
|
|
13352
|
+
return o.mode !== "chatty" && o.mode !== "live" || o.aec ? o : { ...o, ...this.normalTiming };
|
|
13337
13353
|
}
|
|
13338
13354
|
/** The user's live partial for the current turn (the whole partial, not a delta). */
|
|
13339
13355
|
onInterim(text) {
|
|
@@ -13528,7 +13544,7 @@ var SecondChannel = class {
|
|
|
13528
13544
|
const w = words2(this.heard);
|
|
13529
13545
|
if (!this.lang) return "silence";
|
|
13530
13546
|
if (trigger === "working") return this.bridgeBlock() ? "silence" : "bridge";
|
|
13531
|
-
if (w.length <=
|
|
13547
|
+
if (w.length <= this.o.shortTurnWords || w.length <= 6 && isPhatic(this.heard, this.bank)) return "silence";
|
|
13532
13548
|
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
13549
|
return k && this.allowed(k) ? k : "silence";
|
|
13534
13550
|
}
|