principles-disciple 1.235.0 → 1.236.0

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.
@@ -1,10 +1,18 @@
1
1
  export declare const READ_ONLY_TOOL_NAMES: readonly ['read', 'read_file', 'read_many_files', 'image_read', 'search_file_content', 'grep', 'grep_search', 'list_directory', 'ls', 'glob', 'lsp_hover', 'lsp_goto_definition', 'lsp_find_references', 'web_fetch', 'web_search', 'ref_search_documentation', 'ref_read_url', 'resolve-library-id', 'get-library-docs', 'memory_recall', 'save_memory', 'todo_read', 'todo_write', 'ask_user', 'ask_user_question', 'pd-status', 'report'];
2
- export declare const LOW_RISK_WRITE_TOOL_NAMES: readonly ['write', 'write_file', 'edit', 'edit_file', 'replace', 'apply_patch', 'insert', 'patch'];
3
- export declare const BASH_TOOL_NAMES: readonly ['bash', 'run_shell_command', 'exec', 'execute', 'shell', 'cmd'];
4
- export declare const HIGH_RISK_TOOL_NAMES: readonly ["delete_file", "move_file", "bash", "run_shell_command", "exec", "execute", "shell", "cmd"];
2
+ /**
3
+ * PRI-741 declaration correction: this list is the OpenClaw HOST layer of the
4
+ * tool semantic registry, so it may only contain names the OpenClaw hook
5
+ * actually dispatches (evidence: OpenClaw tool-mutation-names.ts — the file
6
+ * mutation family is exactly write/edit/apply_patch). Generic LLM vocabulary
7
+ * names (write_file/edit_file/replace/insert/patch) are NOT OpenClaw tools;
8
+ * declaring them made `hasHostTool` pass for rules that can never fire.
9
+ */
10
+ export declare const LOW_RISK_WRITE_TOOL_NAMES: readonly ['write', 'edit', 'apply_patch'];
11
+ export declare const BASH_TOOL_NAMES: readonly ['exec'];
12
+ export declare const HIGH_RISK_TOOL_NAMES: readonly ["exec"];
5
13
  export declare const AGENT_TOOL_NAMES: readonly ['sessions_spawn'];
6
- export declare const CONTENT_LIMITED_TOOL_NAMES: readonly ["write", "write_file", "edit", "edit_file", "replace", "apply_patch", "insert", "patch"];
7
- export declare const CONSTRUCTIVE_TOOL_NAMES: readonly ["write", "write_file", "edit", "edit_file", "replace", "apply_patch", "insert", "patch", "delete_file", "move_file", "bash", "run_shell_command", "exec", "execute", "shell", "cmd", "sessions_spawn"];
14
+ export declare const CONTENT_LIMITED_TOOL_NAMES: readonly ["write", "edit", "apply_patch"];
15
+ export declare const CONSTRUCTIVE_TOOL_NAMES: readonly ["write", "edit", "apply_patch", "exec", "sessions_spawn"];
8
16
  export declare const EXPLORATORY_TOOL_NAMES: readonly ["read", "read_file", "read_many_files", "image_read", "search_file_content", "grep", "grep_search", "list_directory", "ls", "glob", "lsp_hover", "lsp_goto_definition", "lsp_find_references", "web_fetch", "web_search", "ref_search_documentation", "ref_read_url", "resolve-library-id", "get-library-docs", "memory_recall", "save_memory", "todo_read", "todo_write", "ask_user", "ask_user_question", "pd-status", "report"];
9
17
  export declare const READ_ONLY_TOOLS: Set<string>;
10
18
  export declare const LOW_RISK_WRITE_TOOLS: Set<string>;