@rzx/ohs 1.2.24 → 1.2.25

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.
@@ -0,0 +1,29 @@
1
+ CREATE TABLE `execution` (
2
+ `id` text PRIMARY KEY NOT NULL,
3
+ `session_id` text NOT NULL,
4
+ `run_id` text NOT NULL,
5
+ `data_json` text NOT NULL
6
+ );
7
+ --> statement-breakpoint
8
+ CREATE UNIQUE INDEX `execution_run_idx` ON `execution` (`run_id`);--> statement-breakpoint
9
+ CREATE INDEX `execution_session_idx` ON `execution` (`session_id`);--> statement-breakpoint
10
+ CREATE TABLE `tool_dispatch_attempt` (
11
+ `id` text PRIMARY KEY NOT NULL,
12
+ `session_id` text NOT NULL,
13
+ `operation_id` text NOT NULL,
14
+ `data_json` text NOT NULL
15
+ );
16
+ --> statement-breakpoint
17
+ CREATE INDEX `tool_dispatch_attempt_operation_idx` ON `tool_dispatch_attempt` (`operation_id`);--> statement-breakpoint
18
+ CREATE INDEX `tool_dispatch_attempt_session_idx` ON `tool_dispatch_attempt` (`session_id`);--> statement-breakpoint
19
+ CREATE TABLE `tool_operation` (
20
+ `id` text PRIMARY KEY NOT NULL,
21
+ `session_id` text NOT NULL,
22
+ `run_id` text NOT NULL,
23
+ `logical_call_id` text NOT NULL,
24
+ `state` text NOT NULL,
25
+ `data_json` text NOT NULL
26
+ );
27
+ --> statement-breakpoint
28
+ CREATE UNIQUE INDEX `tool_operation_call_idx` ON `tool_operation` (`session_id`,`run_id`,`logical_call_id`);--> statement-breakpoint
29
+ CREATE INDEX `tool_operation_session_state_idx` ON `tool_operation` (`session_id`,`state`);
@@ -0,0 +1,13 @@
1
+ CREATE TABLE `tool_result` (
2
+ `id` text PRIMARY KEY NOT NULL, `session_id` text NOT NULL, `run_id` text NOT NULL,
3
+ `tool_use_id` text NOT NULL, `tool_name` text NOT NULL, `source_kind` text NOT NULL,
4
+ `source_id` text, `text` text NOT NULL, `total_chars` integer NOT NULL, `created_at` integer NOT NULL
5
+ );
6
+ --> statement-breakpoint
7
+ CREATE INDEX `tool_result_session_idx` ON `tool_result` (`session_id`);
8
+ --> statement-breakpoint
9
+ DROP TABLE `tool_dispatch_attempt`;
10
+ --> statement-breakpoint
11
+ DROP TABLE `tool_operation`;
12
+ --> statement-breakpoint
13
+ DROP TABLE `execution`;