- {t('builtins.lobe-gtd.apiName.clearTodos')}
+ {t('builtins.lobe-agent.apiName.clearTodos')}
);
}
const modeLabel =
mode === 'all'
- ? t('builtins.lobe-gtd.apiName.clearTodos.modeAll')
- : t('builtins.lobe-gtd.apiName.clearTodos.modeCompleted');
+ ? t('builtins.lobe-agent.apiName.clearTodos.modeAll')
+ : t('builtins.lobe-agent.apiName.clearTodos.modeCompleted');
return (
}}
- i18nKey="builtins.lobe-gtd.apiName.clearTodos.result"
+ i18nKey="builtins.lobe-agent.apiName.clearTodos.result"
ns="plugin"
values={{ mode: modeLabel }}
/>
diff --git a/packages/builtin-tool-gtd/src/client/Inspector/CreatePlan/index.tsx b/packages/builtin-tool-lobe-agent/src/client/Inspector/CreatePlan/index.tsx
similarity index 85%
rename from packages/builtin-tool-gtd/src/client/Inspector/CreatePlan/index.tsx
rename to packages/builtin-tool-lobe-agent/src/client/Inspector/CreatePlan/index.tsx
index 3c95767bdf..6904ce18d5 100644
--- a/packages/builtin-tool-gtd/src/client/Inspector/CreatePlan/index.tsx
+++ b/packages/builtin-tool-lobe-agent/src/client/Inspector/CreatePlan/index.tsx
@@ -18,7 +18,7 @@ export const CreatePlanInspector = memo
- {t('builtins.lobe-gtd.apiName.createPlan')}
+ {t('builtins.lobe-agent.apiName.createPlan')}
);
}
@@ -30,12 +30,12 @@ export const CreatePlanInspector = memo }}
- i18nKey="builtins.lobe-gtd.apiName.createPlan.result"
+ i18nKey="builtins.lobe-agent.apiName.createPlan.result"
ns="plugin"
values={{ goal }}
/>
) : (
- {t('builtins.lobe-gtd.apiName.createPlan')}
+ {t('builtins.lobe-agent.apiName.createPlan')}
)}
);
diff --git a/packages/builtin-tool-gtd/src/client/Inspector/CreateTodos/index.tsx b/packages/builtin-tool-lobe-agent/src/client/Inspector/CreateTodos/index.tsx
similarity index 90%
rename from packages/builtin-tool-gtd/src/client/Inspector/CreateTodos/index.tsx
rename to packages/builtin-tool-lobe-agent/src/client/Inspector/CreateTodos/index.tsx
index c44a4d4b65..8dbcfea93c 100644
--- a/packages/builtin-tool-gtd/src/client/Inspector/CreateTodos/index.tsx
+++ b/packages/builtin-tool-lobe-agent/src/client/Inspector/CreateTodos/index.tsx
@@ -30,14 +30,14 @@ export const CreateTodosInspector = memo<
if (isArgumentsStreaming && count === 0) {
return (
- {t('builtins.lobe-gtd.apiName.createTodos')}
+ {t('builtins.lobe-agent.apiName.createTodos')}
);
}
return (
- {t('builtins.lobe-gtd.apiName.createTodos')}
+ {t('builtins.lobe-agent.apiName.createTodos')}
{count > 0 && (
diff --git a/packages/builtin-tool-gtd/src/client/Inspector/UpdatePlan/index.tsx b/packages/builtin-tool-lobe-agent/src/client/Inspector/UpdatePlan/index.tsx
similarity index 85%
rename from packages/builtin-tool-gtd/src/client/Inspector/UpdatePlan/index.tsx
rename to packages/builtin-tool-lobe-agent/src/client/Inspector/UpdatePlan/index.tsx
index a8ffe2528e..9b2233a06b 100644
--- a/packages/builtin-tool-gtd/src/client/Inspector/UpdatePlan/index.tsx
+++ b/packages/builtin-tool-lobe-agent/src/client/Inspector/UpdatePlan/index.tsx
@@ -29,24 +29,24 @@ export const UpdatePlanInspector = memo
- {t('builtins.lobe-gtd.apiName.updatePlan')}
+ {t('builtins.lobe-agent.apiName.updatePlan')}
);
}
return (
- {t('builtins.lobe-gtd.apiName.updatePlan')}
+ {t('builtins.lobe-agent.apiName.updatePlan')}
{completed && (
- {t('builtins.lobe-gtd.apiName.updatePlan.completed')}
+ {t('builtins.lobe-agent.apiName.updatePlan.completed')}
)}
{hasUpdates && !completed && (
- {t('builtins.lobe-gtd.apiName.updatePlan.modified')}
+ {t('builtins.lobe-agent.apiName.updatePlan.modified')}
)}
diff --git a/packages/builtin-tool-gtd/src/client/Inspector/UpdateTodos/index.tsx b/packages/builtin-tool-lobe-agent/src/client/Inspector/UpdateTodos/index.tsx
similarity index 95%
rename from packages/builtin-tool-gtd/src/client/Inspector/UpdateTodos/index.tsx
rename to packages/builtin-tool-lobe-agent/src/client/Inspector/UpdateTodos/index.tsx
index e5b3cb1115..b191466216 100644
--- a/packages/builtin-tool-gtd/src/client/Inspector/UpdateTodos/index.tsx
+++ b/packages/builtin-tool-lobe-agent/src/client/Inspector/UpdateTodos/index.tsx
@@ -62,7 +62,7 @@ export const UpdateTodosInspector = memo<
if (isArgumentsStreaming && !hasOperations) {
return (
- {t('builtins.lobe-gtd.apiName.updateTodos')}
+ {t('builtins.lobe-agent.apiName.updateTodos')}
);
}
@@ -103,7 +103,7 @@ export const UpdateTodosInspector = memo<
return (
-
{t('builtins.lobe-gtd.apiName.updateTodos')}
+
{t('builtins.lobe-agent.apiName.updateTodos')}
{statsParts.length > 0 && (
<>
{statsParts.map((part, index) => (
diff --git a/packages/builtin-tool-lobe-agent/src/client/Inspector/index.ts b/packages/builtin-tool-lobe-agent/src/client/Inspector/index.ts
new file mode 100644
index 0000000000..adf7f1a697
--- /dev/null
+++ b/packages/builtin-tool-lobe-agent/src/client/Inspector/index.ts
@@ -0,0 +1,26 @@
+import type { BuiltinInspector } from '@lobechat/types';
+
+import { LobeAgentApiName } from '../../types';
+import { CallSubAgentInspector } from './CallSubAgent';
+import { CallSubAgentsInspector } from './CallSubAgents';
+import { ClearTodosInspector } from './ClearTodos';
+import { CreatePlanInspector } from './CreatePlan';
+import { CreateTodosInspector } from './CreateTodos';
+import { UpdatePlanInspector } from './UpdatePlan';
+import { UpdateTodosInspector } from './UpdateTodos';
+
+/**
+ * Lobe Agent Inspector Components Registry
+ *
+ * Inspector components customize the title/header area
+ * of tool calls in the conversation UI.
+ */
+export const LobeAgentInspectors: Record
= {
+ [LobeAgentApiName.callSubAgent]: CallSubAgentInspector as BuiltinInspector,
+ [LobeAgentApiName.callSubAgents]: CallSubAgentsInspector as BuiltinInspector,
+ [LobeAgentApiName.clearTodos]: ClearTodosInspector as BuiltinInspector,
+ [LobeAgentApiName.createPlan]: CreatePlanInspector as BuiltinInspector,
+ [LobeAgentApiName.createTodos]: CreateTodosInspector as BuiltinInspector,
+ [LobeAgentApiName.updatePlan]: UpdatePlanInspector as BuiltinInspector,
+ [LobeAgentApiName.updateTodos]: UpdateTodosInspector as BuiltinInspector,
+};
diff --git a/packages/builtin-tool-gtd/src/client/Intervention/AddTodo.tsx b/packages/builtin-tool-lobe-agent/src/client/Intervention/AddTodo.tsx
similarity index 85%
rename from packages/builtin-tool-gtd/src/client/Intervention/AddTodo.tsx
rename to packages/builtin-tool-lobe-agent/src/client/Intervention/AddTodo.tsx
index d1ae2c8832..ea4e065f6f 100644
--- a/packages/builtin-tool-gtd/src/client/Intervention/AddTodo.tsx
+++ b/packages/builtin-tool-lobe-agent/src/client/Intervention/AddTodo.tsx
@@ -21,9 +21,9 @@ const AddTodoIntervention = memo>(
const handleSave = useCallback(
async (items: TodoItem[]) => {
- console.log('[AddTodoIntervention] handleSave called with', items.length, 'items');
+ console.info('[AddTodoIntervention] handleSave called with', items.length, 'items');
await onArgsChange?.({ items });
- console.log('[AddTodoIntervention] onArgsChange completed');
+ console.info('[AddTodoIntervention] onArgsChange completed');
},
[onArgsChange],
);
@@ -32,7 +32,7 @@ const AddTodoIntervention = memo>(
diff --git a/packages/builtin-tool-gtd/src/client/Intervention/ClearTodos.tsx b/packages/builtin-tool-lobe-agent/src/client/Intervention/ClearTodos.tsx
similarity index 89%
rename from packages/builtin-tool-gtd/src/client/Intervention/ClearTodos.tsx
rename to packages/builtin-tool-lobe-agent/src/client/Intervention/ClearTodos.tsx
index 6bd717b7dc..78da56c9b9 100644
--- a/packages/builtin-tool-gtd/src/client/Intervention/ClearTodos.tsx
+++ b/packages/builtin-tool-lobe-agent/src/client/Intervention/ClearTodos.tsx
@@ -55,20 +55,20 @@ const ClearTodosIntervention = memo>(
- {t('lobe-gtd.clearTodos.header')}
+ {t('lobe-agent.clearTodos.header')}
- {t('lobe-gtd.clearTodos.label')}
+ {t('lobe-agent.clearTodos.label')}
- {t('lobe-gtd.clearTodos.option.completed')}
+ {t('lobe-agent.clearTodos.option.completed')}
- {t('lobe-gtd.clearTodos.option.all')}
+ {t('lobe-agent.clearTodos.option.all')}
diff --git a/packages/builtin-tool-gtd/src/client/Intervention/CreatePlan.tsx b/packages/builtin-tool-lobe-agent/src/client/Intervention/CreatePlan.tsx
similarity index 95%
rename from packages/builtin-tool-gtd/src/client/Intervention/CreatePlan.tsx
rename to packages/builtin-tool-lobe-agent/src/client/Intervention/CreatePlan.tsx
index cc189ca613..aadf83fbf7 100644
--- a/packages/builtin-tool-gtd/src/client/Intervention/CreatePlan.tsx
+++ b/packages/builtin-tool-lobe-agent/src/client/Intervention/CreatePlan.tsx
@@ -143,7 +143,7 @@ const CreatePlanIntervention = memo>(