@livx.cc/agentx 0.99.123 → 0.99.124
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 +176 -101
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +39 -9
- package/dist/index.js +174 -96
- package/dist/index.js.map +1 -1
- package/dist/{secondChannel-DES_VIeN.d.ts → secondChannel-GFT69ax4.d.ts} +23 -1
- package/package.json +1 -1
|
@@ -99,6 +99,26 @@ type JevOpts = {
|
|
|
99
99
|
declare function jevAvailable(opts?: JevOpts): Promise<boolean>;
|
|
100
100
|
declare function jevClassifier(opts?: JevOpts): Classifier;
|
|
101
101
|
|
|
102
|
+
/**
|
|
103
|
+
* Walk the VFS directory tree from `/` down, collecting instruction files
|
|
104
|
+
* (AGENT.md, AGENTS.md, CLAUDE.md, .claude/<name>) at each level.
|
|
105
|
+
* Merges all found files general-first → specific-last (mirrors Claude Code's
|
|
106
|
+
* hierarchical CLAUDE.md discovery). First matching filename per directory wins
|
|
107
|
+
* (no duplicates from the same level). Edge-portable: works over any IFilesystem.
|
|
108
|
+
*/
|
|
109
|
+
declare function loadInstructions(fs: IFilesystem, names?: string[]): Promise<string>;
|
|
110
|
+
/** An extra file injected into the prompt next to the instructions (e.g. a kb/user-space note). */
|
|
111
|
+
interface ContextFileSpec {
|
|
112
|
+
path: string;
|
|
113
|
+
maxChars?: number;
|
|
114
|
+
label?: string;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Load explicit context files, same section format as instructions. Missing/empty → skipped;
|
|
118
|
+
* ≤ `maxChars` → full; over → head + a pointer to the full file (the agent can Read the rest).
|
|
119
|
+
*/
|
|
120
|
+
declare function loadContextFiles(fs: IFilesystem, specs?: ContextFileSpec[]): Promise<string>;
|
|
121
|
+
|
|
102
122
|
/**
|
|
103
123
|
* Hooks — deterministic interception points around tool execution, run by the
|
|
104
124
|
* harness/host (mirrors Claude Code hooks). The seam stays edge-safe: hooks are
|
|
@@ -563,6 +583,8 @@ declare class AgentOptions {
|
|
|
563
583
|
* Walks the VFS tree and merges all found files (general → specific, like Claude Code).
|
|
564
584
|
* `true` (default) = auto-discover standard names. `string[]` = custom names. `false` = skip. */
|
|
565
585
|
instructionFiles: boolean | string[];
|
|
586
|
+
/** Extra files injected right after the instructions (missing → skipped; over `maxChars` → head + pointer to the full file). */
|
|
587
|
+
contextFiles?: ContextFileSpec[];
|
|
566
588
|
/** Host interaction channel (human-in-the-loop). If set: adds the `AskUserQuestion` tool. */
|
|
567
589
|
host?: HostBridge;
|
|
568
590
|
/** Add the `AskUserQuestion` tool when a host is present (default true). Set false for an agent that
|
|
@@ -1212,4 +1234,4 @@ declare class SecondChannel {
|
|
|
1212
1234
|
private say;
|
|
1213
1235
|
}
|
|
1214
1236
|
|
|
1215
|
-
export {
|
|
1237
|
+
export { meterWorkers as $, ADVISE_LIMIT as A, type ToolUseMeta as B, CC_WRITE_TOOLS as C, DEFAULT_MUTATING as D, advisorFor as E, advisorPrompt as F, type Gender as G, type Hooks as H, ccModeOptions as I, claudeCodeDisallowedTools as J, composeHooks as K, type LineKind as L, ModelRouter as M, delegatePrompt as N, delegateTools as O, PLANNER_BLOCKED as P, delegateWorkerFor as Q, type ReasoningEffort as R, SecondChannel as S, type Tier as T, estimateTokens as U, jevAvailable as V, WRITE_TOOLS as W, jevClassifier as X, loadContextFiles as Y, loadInstructions as Z, makeAdvisor as _, type AdvisorSetup as a, pickTier as a0, planMode as a1, plannerBlocks as a2, reasoningToChatFragment as a3, Agent as b, AgentOptions as c, type ChannelMode as d, type ChatFragment as e, type ChatUsage as f, type Classification as g, type Classifier as h, type CompactResult as i, type ContextFileSpec as j, type Decider as k, type Decision as l, ModelRouterOptions as m, PLANNER_REFUSAL as n, PLAN_FIRST as o, PermissionOptions as p, PermissionPolicy as q, type PermissionRule as r, type PreToolUseDecision as s, RecordingHooks as t, RecordingLifecycle as u, type RouteDecision as v, type RouterState as w, type RunResult as x, SecondChannelOptions as y, type ToolUse 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.124",
|
|
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",
|