@happycastle/oh-my-openclaw 0.13.0 → 0.13.1
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/tools/checkpoint.js
CHANGED
|
@@ -93,7 +93,7 @@ export function registerCheckpointTool(api) {
|
|
|
93
93
|
name: `${TOOL_PREFIX}checkpoint`,
|
|
94
94
|
description: 'Save, load, or list session checkpoints for crash recovery',
|
|
95
95
|
parameters: CheckpointParamsSchema,
|
|
96
|
-
execute: async (params) => {
|
|
96
|
+
execute: async (_toolCallId, params) => {
|
|
97
97
|
const config = getConfig(api);
|
|
98
98
|
const checkpointDir = config.checkpoint_dir;
|
|
99
99
|
await ensureDir(checkpointDir);
|
package/dist/tools/look-at.js
CHANGED
|
@@ -49,7 +49,7 @@ export function registerLookAtTool(api) {
|
|
|
49
49
|
default: 'gemini-2.5-flash',
|
|
50
50
|
})),
|
|
51
51
|
}),
|
|
52
|
-
execute: async (params) => {
|
|
52
|
+
execute: async (_toolCallId, params) => {
|
|
53
53
|
return withLock(async () => {
|
|
54
54
|
const tempFile = `/tmp/omoc-look-at-${randomUUID()}.md`;
|
|
55
55
|
const tmuxSocket = getConfig(api).tmux_socket;
|
|
@@ -47,7 +47,7 @@ export function registerDelegateTool(api) {
|
|
|
47
47
|
name: `${TOOL_PREFIX}delegate`,
|
|
48
48
|
description: 'Delegate a task to a sub-agent with category-based model routing',
|
|
49
49
|
parameters: DelegateParamsSchema,
|
|
50
|
-
execute: async (params) => {
|
|
50
|
+
execute: async (_toolCallId, params) => {
|
|
51
51
|
const validCategories = Object.keys(DEFAULT_CATEGORY_MODELS);
|
|
52
52
|
if (!params.task_description?.trim()) {
|
|
53
53
|
return toolError('Task description is required and cannot be empty');
|
package/dist/types.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export interface ToolRegistration<TParams = unknown> {
|
|
|
55
55
|
name: string;
|
|
56
56
|
description: string;
|
|
57
57
|
parameters: unknown;
|
|
58
|
-
execute: (params: TParams) => Promise<ToolResult>;
|
|
58
|
+
execute: (toolCallId: string, params: TParams, options?: unknown, callback?: unknown) => Promise<ToolResult>;
|
|
59
59
|
optional?: boolean;
|
|
60
60
|
}
|
|
61
61
|
export interface CommandRegistration<TCtx = {
|
package/package.json
CHANGED