@@ -163,7 +164,7 @@ function ToolCallItem({ toolCall, index }: ToolCallItemProps) {
)}
{toolCall.output && (
-
Output
+
{formatMessage({ id: 'nativeSession.toolCall.output' })}
{toolCall.output}
diff --git a/ccw/frontend/src/locales/en/history.json b/ccw/frontend/src/locales/en/history.json
index fb39cdd4..0747d350 100644
--- a/ccw/frontend/src/locales/en/history.json
+++ b/ccw/frontend/src/locales/en/history.json
@@ -1,6 +1,10 @@
{
"title": "CLI Execution History",
"description": "View and manage your CLI execution history",
+ "tabs": {
+ "executions": "Executions",
+ "observability": "Session Audit"
+ },
"searchPlaceholder": "Search executions...",
"filterAllTools": "All Tools",
"deleteOptions": "Delete Options",
@@ -9,10 +13,14 @@
"deleteAll": "Delete All History",
"actions": {
"view": "View Details",
+ "viewNative": "View Native Session",
"delete": "Delete",
"copyId": "Copy ID",
"copied": "Copied!"
},
+ "badge": {
+ "native": "native"
+ },
"dialog": {
"deleteTitle": "Confirm Delete",
"deleteAllTitle": "Delete All History",
diff --git a/ccw/frontend/src/locales/en/index.ts b/ccw/frontend/src/locales/en/index.ts
index 8ba4313d..332beeb6 100644
--- a/ccw/frontend/src/locales/en/index.ts
+++ b/ccw/frontend/src/locales/en/index.ts
@@ -41,6 +41,7 @@ import cliViewer from './cli-viewer.json';
import team from './team.json';
import terminalDashboard from './terminal-dashboard.json';
import skillHub from './skill-hub.json';
+import nativeSession from './native-session.json';
/**
* Flattens nested JSON object to dot-separated keys
@@ -105,4 +106,5 @@ export default {
...flattenMessages(team, 'team'),
...flattenMessages(terminalDashboard, 'terminalDashboard'),
...flattenMessages(skillHub, 'skillHub'),
+ ...flattenMessages(nativeSession, 'nativeSession'),
} as Record
;
diff --git a/ccw/frontend/src/locales/en/native-session.json b/ccw/frontend/src/locales/en/native-session.json
new file mode 100644
index 00000000..4530fbba
--- /dev/null
+++ b/ccw/frontend/src/locales/en/native-session.json
@@ -0,0 +1,33 @@
+{
+ "title": "Native Session",
+ "tokens": {
+ "total": "Total tokens",
+ "input": "Input tokens",
+ "output": "Output tokens",
+ "cached": "Cached tokens"
+ },
+ "turn": {
+ "latest": "Latest",
+ "thoughts": "Thoughts",
+ "toolCalls": "Tool Calls"
+ },
+ "toolCall": {
+ "input": "Input",
+ "output": "Output"
+ },
+ "meta": {
+ "startTime": "Start time",
+ "workingDir": "Working directory",
+ "projectHash": "Project hash",
+ "turns": "turns"
+ },
+ "tokenSummary": "Total Tokens",
+ "loading": "Loading session...",
+ "error": "Failed to load session",
+ "empty": "No session data available",
+ "footer": {
+ "copied": "Copied!",
+ "copySessionId": "Copy Session ID",
+ "exportJson": "Export JSON"
+ }
+}
diff --git a/ccw/frontend/src/locales/zh/history.json b/ccw/frontend/src/locales/zh/history.json
index 243d3290..e17d7a29 100644
--- a/ccw/frontend/src/locales/zh/history.json
+++ b/ccw/frontend/src/locales/zh/history.json
@@ -1,6 +1,10 @@
{
"title": "CLI 执行历史",
"description": "查看和管理 CLI 执行历史",
+ "tabs": {
+ "executions": "执行历史",
+ "observability": "会话审计"
+ },
"searchPlaceholder": "搜索执行记录...",
"filterAllTools": "全部工具",
"deleteOptions": "删除选项",
@@ -9,10 +13,14 @@
"deleteAll": "删除全部历史",
"actions": {
"view": "查看详情",
+ "viewNative": "查看原生会话",
"delete": "删除",
"copyId": "复制 ID",
"copied": "已复制!"
},
+ "badge": {
+ "native": "原生"
+ },
"dialog": {
"deleteTitle": "确认删除",
"deleteAllTitle": "删除全部历史",
diff --git a/ccw/frontend/src/locales/zh/index.ts b/ccw/frontend/src/locales/zh/index.ts
index 78fa23f5..14594fed 100644
--- a/ccw/frontend/src/locales/zh/index.ts
+++ b/ccw/frontend/src/locales/zh/index.ts
@@ -41,6 +41,7 @@ import cliViewer from './cli-viewer.json';
import team from './team.json';
import terminalDashboard from './terminal-dashboard.json';
import skillHub from './skill-hub.json';
+import nativeSession from './native-session.json';
/**
* Flattens nested JSON object to dot-separated keys
@@ -105,4 +106,5 @@ export default {
...flattenMessages(team, 'team'),
...flattenMessages(terminalDashboard, 'terminalDashboard'),
...flattenMessages(skillHub, 'skillHub'),
+ ...flattenMessages(nativeSession, 'nativeSession'),
} as Record;
diff --git a/ccw/frontend/src/locales/zh/native-session.json b/ccw/frontend/src/locales/zh/native-session.json
new file mode 100644
index 00000000..a4e2af85
--- /dev/null
+++ b/ccw/frontend/src/locales/zh/native-session.json
@@ -0,0 +1,33 @@
+{
+ "title": "原生会话",
+ "tokens": {
+ "total": "总 Token 数",
+ "input": "输入 Token",
+ "output": "输出 Token",
+ "cached": "缓存 Token"
+ },
+ "turn": {
+ "latest": "最新",
+ "thoughts": "思考过程",
+ "toolCalls": "工具调用"
+ },
+ "toolCall": {
+ "input": "输入",
+ "output": "输出"
+ },
+ "meta": {
+ "startTime": "开始时间",
+ "workingDir": "工作目录",
+ "projectHash": "项目哈希",
+ "turns": "轮次"
+ },
+ "tokenSummary": "总 Token",
+ "loading": "加载会话中...",
+ "error": "加载会话失败",
+ "empty": "无会话数据",
+ "footer": {
+ "copied": "已复制!",
+ "copySessionId": "复制会话 ID",
+ "exportJson": "导出 JSON"
+ }
+}