@livx.cc/agentx 0.99.127 → 0.99.129
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 +37 -10
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +30 -6
- package/dist/index.js.map +1 -1
- package/dist/{secondChannel-CYU9qqwr.d.ts → secondChannel-D-8AGmAT.d.ts} +6 -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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livx.cc/agentx",
|
|
3
|
-
"version": "0.99.
|
|
3
|
+
"version": "0.99.129",
|
|
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",
|