mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-08 03:07:53 +00:00
Add mode to messages (#57)
This commit is contained in:
parent
c002decfe5
commit
9ed2f02920
4 changed files with 21 additions and 8 deletions
|
|
@ -46,7 +46,7 @@
|
|||
"@radix-ui/react-tabs": "^1.1.12",
|
||||
"@radix-ui/react-toast": "^1.2.14",
|
||||
"@radix-ui/react-tooltip": "^1.2.7",
|
||||
"@roo-code/types": "^1.23.0",
|
||||
"@roo-code/types": "^1.24.0",
|
||||
"@sentry/nextjs": "^9.23.0",
|
||||
"@t3-oss/env-nextjs": "^0.13.6",
|
||||
"@tailwindcss/postcss": "^4.1.8",
|
||||
|
|
|
|||
10
pnpm-lock.yaml
generated
10
pnpm-lock.yaml
generated
|
|
@ -66,8 +66,8 @@ importers:
|
|||
specifier: ^1.2.7
|
||||
version: 1.2.7(@types/react@19.1.6)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
|
||||
'@roo-code/types':
|
||||
specifier: ^1.23.0
|
||||
version: 1.23.0
|
||||
specifier: ^1.24.0
|
||||
version: 1.24.0
|
||||
'@sentry/nextjs':
|
||||
specifier: ^9.23.0
|
||||
version: 9.23.0(@opentelemetry/context-async-hooks@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/core@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.57.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.30.1(@opentelemetry/api@1.9.0))(next@15.3.3(@babel/core@7.27.3)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react@19.1.0)(webpack@5.99.9(@swc/core@1.11.29)(esbuild@0.25.5))
|
||||
|
|
@ -2917,8 +2917,8 @@ packages:
|
|||
cpu: [x64]
|
||||
os: [win32]
|
||||
|
||||
'@roo-code/types@1.23.0':
|
||||
resolution: {integrity: sha512-CFZ2UFlrNdHymUKrqB7iu7U6X6WwoDncvkrAidMcMzQU175o/GkLLgetIIVFVuYXyvRu01xUkReU0r9esQJVeg==}
|
||||
'@roo-code/types@1.24.0':
|
||||
resolution: {integrity: sha512-Fo8/k2EqovcDji7L674MbrpJ+Prw18jag4j2S1+xQrmRDTgmJ7nBZXjFxi8MtY/Us3AIA6sufS9Gi5/czwye6Q==}
|
||||
|
||||
'@schummar/icu-type-parser@1.21.5':
|
||||
resolution: {integrity: sha512-bXHSaW5jRTmke9Vd0h5P7BtWZG9Znqb8gSDxZnxaGSJnGwPLDPfS+3g0BKzeWqzgZPsIVZkM7m2tbo18cm5HBw==}
|
||||
|
|
@ -11656,7 +11656,7 @@ snapshots:
|
|||
'@rollup/rollup-win32-x64-msvc@4.41.1':
|
||||
optional: true
|
||||
|
||||
'@roo-code/types@1.23.0': {}
|
||||
'@roo-code/types@1.24.0': {}
|
||||
|
||||
'@schummar/icu-type-parser@1.21.5': {}
|
||||
|
||||
|
|
|
|||
|
|
@ -33,9 +33,20 @@ export const captureEvent = async ({ event, ...rest }: AnalyticsEvent) => {
|
|||
switch (event.type) {
|
||||
case TelemetryEventName.TASK_MESSAGE: {
|
||||
table = 'messages';
|
||||
const { taskId, message } = event.properties;
|
||||
const { taskId, mode, message } = event.properties;
|
||||
const { ts, type, ask, say, text, reasoning, partial } = message;
|
||||
value = { ...rest, taskId, ts, type, ask, say, text, reasoning, partial };
|
||||
value = {
|
||||
...rest,
|
||||
taskId,
|
||||
mode,
|
||||
ts,
|
||||
type,
|
||||
ask,
|
||||
say,
|
||||
text,
|
||||
reasoning,
|
||||
partial,
|
||||
};
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
|
|
|
|||
|
|
@ -16,3 +16,5 @@ CREATE TABLE default.messages
|
|||
ENGINE = ReplicatedMergeTree('/clickhouse/tables/{uuid}/{shard}', '{replica}')
|
||||
ORDER BY (id, timestamp)
|
||||
SETTINGS index_granularity = 8192;
|
||||
|
||||
ALTER TABLE default.messages ADD COLUMN mode Nullable(String);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue