@livx.cc/agentx 0.99.112 → 0.99.114
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 +3 -1
- package/dist/cli.js +137 -28
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +17 -4
- package/dist/index.js +104 -14
- package/dist/index.js.map +1 -1
- package/dist/{secondChannel-CJMY5EbL.d.ts → secondChannel-Cl-fIl-F.d.ts} +30 -27
- package/package.json +1 -1
|
@@ -799,36 +799,13 @@ declare const CHANNEL_ACTIONS: {
|
|
|
799
799
|
};
|
|
800
800
|
type ChannelKind = keyof typeof CHANNEL_ACTIONS;
|
|
801
801
|
|
|
802
|
-
declare const TURN_TYPES: readonly ["story", "list", "complaint", "explanation", "short_command", "question", "other"];
|
|
803
|
-
type TurnType = typeof TURN_TYPES[number];
|
|
804
|
-
declare const DENSITIES: readonly ["none", "low", "normal", "high"];
|
|
805
|
-
type Density = typeof DENSITIES[number];
|
|
806
|
-
interface Cue {
|
|
807
|
-
when: string[];
|
|
808
|
-
line: string;
|
|
809
|
-
}
|
|
810
|
-
interface BcPlan {
|
|
811
|
-
turn: TurnType;
|
|
812
|
-
density: Density;
|
|
813
|
-
cues: Cue[];
|
|
814
|
-
}
|
|
815
|
-
/** The plan's micro-context — never history. */
|
|
816
|
-
interface PlanContext {
|
|
817
|
-
/** The agent's last reply (the user's next turn answers it). */
|
|
818
|
-
agent: string;
|
|
819
|
-
/** The tail of the user's previous turn. */
|
|
820
|
-
user: string;
|
|
821
|
-
/** Recent channel lines — not to be reused. */
|
|
822
|
-
recent: string[];
|
|
823
|
-
lang: string;
|
|
824
|
-
/** Revision only: what the user has said so far in this turn. */
|
|
825
|
-
heard?: string;
|
|
826
|
-
}
|
|
827
|
-
|
|
828
802
|
type LineKind$1 = Exclude<ChannelKind, 'silence'>;
|
|
829
803
|
/** `phatic` = greeting/thanks/yes-no openers in this language: a short turn starting with one is answered by the reflex
|
|
830
804
|
* instantly, so the channel stays silent (never "hmm" after "hi"). Not a spoken kind. */
|
|
831
805
|
type Bank = Record<LineKind$1 | 'phatic', string[]>;
|
|
806
|
+
/** One fast-model call → a raw bank for `lang` (validated by ChannelBanks). `avoid` = lines already cached (variety). */
|
|
807
|
+
/** The voice's gender — the persona speaks of itself in it ('' = unknown: gender-neutral wording). */
|
|
808
|
+
type Gender = 'female' | 'male' | '';
|
|
832
809
|
declare class ChannelBanksOptions {
|
|
833
810
|
/** Raw bank for a language (fastBankGenerator). Absent → English fallback only. */
|
|
834
811
|
generate?: (lang: string, avoid: string[], signal: AbortSignal) => Promise<unknown>;
|
|
@@ -862,6 +839,32 @@ declare class ChannelBanks {
|
|
|
862
839
|
private generate;
|
|
863
840
|
}
|
|
864
841
|
|
|
842
|
+
declare const TURN_TYPES: readonly ["story", "list", "complaint", "explanation", "short_command", "question", "other"];
|
|
843
|
+
type TurnType = typeof TURN_TYPES[number];
|
|
844
|
+
declare const DENSITIES: readonly ["none", "low", "normal", "high"];
|
|
845
|
+
type Density = typeof DENSITIES[number];
|
|
846
|
+
interface Cue {
|
|
847
|
+
when: string[];
|
|
848
|
+
line: string;
|
|
849
|
+
}
|
|
850
|
+
interface BcPlan {
|
|
851
|
+
turn: TurnType;
|
|
852
|
+
density: Density;
|
|
853
|
+
cues: Cue[];
|
|
854
|
+
}
|
|
855
|
+
/** The plan's micro-context — never history. */
|
|
856
|
+
interface PlanContext {
|
|
857
|
+
/** The agent's last reply (the user's next turn answers it). */
|
|
858
|
+
agent: string;
|
|
859
|
+
/** The tail of the user's previous turn. */
|
|
860
|
+
user: string;
|
|
861
|
+
/** Recent channel lines — not to be reused. */
|
|
862
|
+
recent: string[];
|
|
863
|
+
lang: string;
|
|
864
|
+
/** Revision only: what the user has said so far in this turn. */
|
|
865
|
+
heard?: string;
|
|
866
|
+
}
|
|
867
|
+
|
|
865
868
|
type LineKind = Exclude<ChannelKind, 'silence'>;
|
|
866
869
|
/** The main (channel-1) response lifecycle. `idle` = no turn in flight (the user has the floor). */
|
|
867
870
|
type MainState = 'idle' | 'queued' | 'thinking' | 'streaming_text' | 'first_audio' | 'speaking';
|
|
@@ -1072,4 +1075,4 @@ declare class SecondChannel {
|
|
|
1072
1075
|
private say;
|
|
1073
1076
|
}
|
|
1074
1077
|
|
|
1075
|
-
export { Agent as A, reasoningToChatFragment as B, type ChannelMode as C, DEFAULT_MUTATING as D, type Hooks as H, type LineKind as L, ModelRouter as M, PermissionOptions as P, type ReasoningEffort as R, SecondChannel as S, type Tier as T, AgentOptions as a, type ChatFragment as b, type Classification as c, type Classifier as d, type CompactResult as e, type Decider as f, type Decision as g, ModelRouterOptions as h, PermissionPolicy as i, type PermissionRule as j, type PreToolUseDecision as k, RecordingHooks as l, RecordingLifecycle as m, type RouteDecision as n, type RouterState as o, type RunResult as p, SecondChannelOptions as q, type ToolUse as r, type ToolUseMeta as s, claudeCodeDisallowedTools as t, composeHooks as u, estimateTokens as v, jevAvailable as w, jevClassifier as x, pickTier as y, planMode as z };
|
|
1078
|
+
export { Agent as A, reasoningToChatFragment as B, type ChannelMode as C, DEFAULT_MUTATING as D, type Gender as G, type Hooks as H, type LineKind as L, ModelRouter as M, PermissionOptions as P, type ReasoningEffort as R, SecondChannel as S, type Tier as T, AgentOptions as a, type ChatFragment as b, type Classification as c, type Classifier as d, type CompactResult as e, type Decider as f, type Decision as g, ModelRouterOptions as h, PermissionPolicy as i, type PermissionRule as j, type PreToolUseDecision as k, RecordingHooks as l, RecordingLifecycle as m, type RouteDecision as n, type RouterState as o, type RunResult as p, SecondChannelOptions as q, type ToolUse as r, type ToolUseMeta as s, claudeCodeDisallowedTools as t, composeHooks as u, estimateTokens as v, jevAvailable as w, jevClassifier as x, pickTier as y, planMode as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livx.cc/agentx",
|
|
3
|
-
"version": "0.99.
|
|
3
|
+
"version": "0.99.114",
|
|
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",
|