@livx.cc/agentx 0.99.126 → 0.99.128
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 +2 -1
- package/dist/cli.js +47 -10
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +40 -6
- package/dist/index.js.map +1 -1
- package/dist/{secondChannel-B76KLrf7.d.ts → secondChannel-D-8AGmAT.d.ts} +7 -1
- package/package.json +1 -1
|
@@ -234,7 +234,8 @@ interface PermissionRule {
|
|
|
234
234
|
}
|
|
235
235
|
declare class PermissionOptions {
|
|
236
236
|
rules: PermissionRule[];
|
|
237
|
-
/** decision when no rule matches.
|
|
237
|
+
/** decision when no rule matches. 'deny' = an allow-list run (`--onlyTools`): only the allow rules run, an allowed
|
|
238
|
+
* command glob never matches shell control syntax, and claude-code enforces it by a PreToolUse hook (ccHooks). */
|
|
238
239
|
default: Decision;
|
|
239
240
|
/** host channel for `ask` (confirm). If absent, `ask` is treated as `deny` (fail-closed). */
|
|
240
241
|
host?: HostBridge;
|
|
@@ -254,6 +255,10 @@ declare class PermissionPolicy {
|
|
|
254
255
|
/** The policy's `deny` rules as rule strings (`Tool` / `Tool(glob)`) — for delegated runtimes that run
|
|
255
256
|
* their OWN tools (claude-code/cursor) and never pass through {@link hooks}. */
|
|
256
257
|
denyRules(explicitOnly?: boolean): string[];
|
|
258
|
+
/** An allow-list policy (default 'deny') as Claude Code SDK hooks: claude-code runs its own tools, which never reach
|
|
259
|
+
* {@link hooks}, and `disallowedTools` can't say "everything else". Every tool call (native and MCP) goes through
|
|
260
|
+
* decide(); `ask` has no host there → deny. undefined for a default-allow policy (its deny rules travel as disallowedTools). */
|
|
261
|
+
ccHooks(): Record<string, unknown[]> | undefined;
|
|
257
262
|
/** A preToolUse hook enforcing this policy (deny/ask → block; allow → proceed). */
|
|
258
263
|
hooks(): Hooks;
|
|
259
264
|
}
|
|
@@ -787,6 +792,7 @@ declare class Agent {
|
|
|
787
792
|
prewarm(): Promise<void>;
|
|
788
793
|
drainPendingSteers(): string[];
|
|
789
794
|
/** Fold any host-injected messages into the transcript as user turns. Returns true if any landed. */
|
|
795
|
+
private reopen;
|
|
790
796
|
private drainInjections;
|
|
791
797
|
constructor(options?: Partial<AgentOptions>);
|
|
792
798
|
/** Build the tool context from the resolved fs + options. Idempotent-safe: called once (ctor or ensureFs). */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livx.cc/agentx",
|
|
3
|
-
"version": "0.99.
|
|
3
|
+
"version": "0.99.128",
|
|
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",
|