@companyhelm/runner 0.0.12
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/LICENSE +21 -0
- package/README.md +58 -0
- package/RUNTIME_IMAGE_VERSION +1 -0
- package/drizzle/0000_nice_stepford_cuckoos.sql +25 -0
- package/drizzle/0001_third_vermin.sql +22 -0
- package/drizzle/0002_kind_sue_storm.sql +1 -0
- package/drizzle/0003_dizzy_micromax.sql +35 -0
- package/drizzle/0004_sloppy_alex_wilder.sql +23 -0
- package/drizzle/0005_open_toro.sql +23 -0
- package/drizzle/0006_fixed_jack_flag.sql +23 -0
- package/drizzle/0007_mute_lord_tyger.sql +1 -0
- package/drizzle/0008_melted_flatman.sql +8 -0
- package/drizzle/0009_powerful_hellcat.sql +1 -0
- package/drizzle/0010_wealthy_dorian_gray.sql +24 -0
- package/drizzle/0011_actual_lucky.sql +7 -0
- package/drizzle/meta/0000_snapshot.json +174 -0
- package/drizzle/meta/0001_snapshot.json +212 -0
- package/drizzle/meta/0002_snapshot.json +219 -0
- package/drizzle/meta/0003_snapshot.json +240 -0
- package/drizzle/meta/0004_snapshot.json +240 -0
- package/drizzle/meta/0005_snapshot.json +240 -0
- package/drizzle/meta/0006_snapshot.json +240 -0
- package/drizzle/meta/0007_snapshot.json +247 -0
- package/drizzle/meta/0008_snapshot.json +306 -0
- package/drizzle/meta/0009_snapshot.json +313 -0
- package/drizzle/meta/0010_snapshot.json +261 -0
- package/drizzle/meta/_journal.json +90 -0
- package/package.json +53 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 CompanyHelm
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# CompanyHelm Runner
|
|
2
|
+
|
|
3
|
+
Run the CompanyHelm runner in isolated Docker sandboxes on your machine.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @companyhelm/runner
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or run it without installing globally:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npx @companyhelm/runner --help
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Package: [@companyhelm/runner](https://www.npmjs.com/package/@companyhelm/runner)
|
|
18
|
+
|
|
19
|
+
## Basic Usage
|
|
20
|
+
|
|
21
|
+
Start the CLI in the foreground:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
companyhelm-runner
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Start it as a daemon:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
companyhelm-runner --daemon
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Check whether the daemon is running:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
companyhelm-runner status
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
The `status` command prints:
|
|
40
|
+
|
|
41
|
+
- whether the daemon is running
|
|
42
|
+
- the recorded daemon PID
|
|
43
|
+
- the daemon log directory and log file path
|
|
44
|
+
|
|
45
|
+
## Why Use It
|
|
46
|
+
|
|
47
|
+
- Runs agents in isolated containers instead of directly on your machine
|
|
48
|
+
- Supports Docker-in-Docker for end-to-end workflows
|
|
49
|
+
- Keeps runner state in a local SQLite database
|
|
50
|
+
- Supports long-running daemon mode for background operation
|
|
51
|
+
|
|
52
|
+
## For Developers
|
|
53
|
+
|
|
54
|
+
Development and maintenance notes live in [DEVELOPING.md](./DEVELOPING.md).
|
|
55
|
+
|
|
56
|
+
## License
|
|
57
|
+
|
|
58
|
+
MIT
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.0.9
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
CREATE TABLE IF NOT EXISTS `agent_sdks` (
|
|
2
|
+
`name` text PRIMARY KEY NOT NULL,
|
|
3
|
+
`authentication` text NOT NULL
|
|
4
|
+
);
|
|
5
|
+
--> statement-breakpoint
|
|
6
|
+
CREATE TABLE IF NOT EXISTS `agents` (
|
|
7
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
8
|
+
`name` text NOT NULL,
|
|
9
|
+
`sdk` text NOT NULL,
|
|
10
|
+
`model` text NOT NULL,
|
|
11
|
+
`reasoning_level` text NOT NULL,
|
|
12
|
+
`workspace` text NOT NULL,
|
|
13
|
+
`runtime_container` text NOT NULL,
|
|
14
|
+
`dind_container` text NOT NULL,
|
|
15
|
+
`home_directory` text NOT NULL,
|
|
16
|
+
`uid` integer NOT NULL,
|
|
17
|
+
`gid` integer NOT NULL
|
|
18
|
+
);
|
|
19
|
+
--> statement-breakpoint
|
|
20
|
+
CREATE TABLE IF NOT EXISTS `llm_models` (
|
|
21
|
+
`name` text PRIMARY KEY NOT NULL,
|
|
22
|
+
`sdk_name` text NOT NULL,
|
|
23
|
+
`reasoning_levels` text,
|
|
24
|
+
FOREIGN KEY (`sdk_name`) REFERENCES `agent_sdks`(`name`) ON UPDATE no action ON DELETE no action
|
|
25
|
+
);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
CREATE TABLE `threads` (
|
|
2
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
3
|
+
`agent_id` text NOT NULL,
|
|
4
|
+
`model` text NOT NULL,
|
|
5
|
+
`reasoning_level` text NOT NULL,
|
|
6
|
+
`workspace` text NOT NULL,
|
|
7
|
+
`runtime_container` text NOT NULL,
|
|
8
|
+
`dind_container` text NOT NULL,
|
|
9
|
+
`home_directory` text NOT NULL,
|
|
10
|
+
`uid` integer NOT NULL,
|
|
11
|
+
`gid` integer NOT NULL,
|
|
12
|
+
FOREIGN KEY (`agent_id`) REFERENCES `agents`(`id`) ON UPDATE no action ON DELETE no action
|
|
13
|
+
);
|
|
14
|
+
--> statement-breakpoint
|
|
15
|
+
ALTER TABLE `agents` DROP COLUMN `model`;--> statement-breakpoint
|
|
16
|
+
ALTER TABLE `agents` DROP COLUMN `reasoning_level`;--> statement-breakpoint
|
|
17
|
+
ALTER TABLE `agents` DROP COLUMN `workspace`;--> statement-breakpoint
|
|
18
|
+
ALTER TABLE `agents` DROP COLUMN `runtime_container`;--> statement-breakpoint
|
|
19
|
+
ALTER TABLE `agents` DROP COLUMN `dind_container`;--> statement-breakpoint
|
|
20
|
+
ALTER TABLE `agents` DROP COLUMN `home_directory`;--> statement-breakpoint
|
|
21
|
+
ALTER TABLE `agents` DROP COLUMN `uid`;--> statement-breakpoint
|
|
22
|
+
ALTER TABLE `agents` DROP COLUMN `gid`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE `threads` ADD `status` text NOT NULL;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
PRAGMA foreign_keys=OFF;--> statement-breakpoint
|
|
2
|
+
DROP TABLE IF EXISTS `__new_llm_models`;--> statement-breakpoint
|
|
3
|
+
CREATE TABLE `__new_llm_models` (
|
|
4
|
+
`name` text PRIMARY KEY NOT NULL,
|
|
5
|
+
`sdk_name` text NOT NULL,
|
|
6
|
+
`reasoning_levels` text,
|
|
7
|
+
FOREIGN KEY (`sdk_name`) REFERENCES `agent_sdks`(`name`) ON UPDATE no action ON DELETE cascade
|
|
8
|
+
);
|
|
9
|
+
--> statement-breakpoint
|
|
10
|
+
INSERT INTO `__new_llm_models`("name", "sdk_name", "reasoning_levels") SELECT "name", "sdk_name", "reasoning_levels" FROM `llm_models`;--> statement-breakpoint
|
|
11
|
+
DROP TABLE `llm_models`;--> statement-breakpoint
|
|
12
|
+
ALTER TABLE `__new_llm_models` RENAME TO `llm_models`;--> statement-breakpoint
|
|
13
|
+
PRAGMA foreign_keys=ON;--> statement-breakpoint
|
|
14
|
+
DROP TABLE IF EXISTS `__new_threads`;--> statement-breakpoint
|
|
15
|
+
CREATE TABLE `__new_threads` (
|
|
16
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
17
|
+
`agent_id` text NOT NULL,
|
|
18
|
+
`sdk_thread_id` text,
|
|
19
|
+
`model` text NOT NULL,
|
|
20
|
+
`reasoning_level` text NOT NULL,
|
|
21
|
+
`status` text NOT NULL,
|
|
22
|
+
`current_sdk_turn_id` text,
|
|
23
|
+
`is_current_turn_running` boolean NOT NULL,
|
|
24
|
+
`workspace` text NOT NULL,
|
|
25
|
+
`runtime_container` text NOT NULL,
|
|
26
|
+
`dind_container` text NOT NULL,
|
|
27
|
+
`home_directory` text NOT NULL,
|
|
28
|
+
`uid` integer NOT NULL,
|
|
29
|
+
`gid` integer NOT NULL,
|
|
30
|
+
FOREIGN KEY (`agent_id`) REFERENCES `agents`(`id`) ON UPDATE no action ON DELETE cascade
|
|
31
|
+
);
|
|
32
|
+
--> statement-breakpoint
|
|
33
|
+
INSERT INTO `__new_threads`("id", "agent_id", "sdk_thread_id", "model", "reasoning_level", "status", "current_sdk_turn_id", "is_current_turn_running", "workspace", "runtime_container", "dind_container", "home_directory", "uid", "gid") SELECT "id", "agent_id", NULL AS "sdk_thread_id", "model", "reasoning_level", "status", NULL AS "current_sdk_turn_id", 0 AS "is_current_turn_running", "workspace", "runtime_container", "dind_container", "home_directory", "uid", "gid" FROM `threads`;--> statement-breakpoint
|
|
34
|
+
DROP TABLE `threads`;--> statement-breakpoint
|
|
35
|
+
ALTER TABLE `__new_threads` RENAME TO `threads`;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
PRAGMA foreign_keys=OFF;--> statement-breakpoint
|
|
2
|
+
CREATE TABLE `__new_threads` (
|
|
3
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
4
|
+
`agent_id` text NOT NULL,
|
|
5
|
+
`sdk_thread_id` text,
|
|
6
|
+
`model` text NOT NULL,
|
|
7
|
+
`reasoning_level` text NOT NULL,
|
|
8
|
+
`status` text NOT NULL,
|
|
9
|
+
`current_sdk_turn_id` text,
|
|
10
|
+
`is_current_turn_running` integer NOT NULL,
|
|
11
|
+
`workspace` text NOT NULL,
|
|
12
|
+
`runtime_container` text NOT NULL,
|
|
13
|
+
`dind_container` text NOT NULL,
|
|
14
|
+
`home_directory` text NOT NULL,
|
|
15
|
+
`uid` integer NOT NULL,
|
|
16
|
+
`gid` integer NOT NULL,
|
|
17
|
+
FOREIGN KEY (`agent_id`) REFERENCES `agents`(`id`) ON UPDATE no action ON DELETE cascade
|
|
18
|
+
);
|
|
19
|
+
--> statement-breakpoint
|
|
20
|
+
INSERT INTO `__new_threads`("id", "agent_id", "sdk_thread_id", "model", "reasoning_level", "status", "current_sdk_turn_id", "is_current_turn_running", "workspace", "runtime_container", "dind_container", "home_directory", "uid", "gid") SELECT "id", "agent_id", "sdk_thread_id", "model", "reasoning_level", "status", "current_sdk_turn_id", "is_current_turn_running", "workspace", "runtime_container", "dind_container", "home_directory", "uid", "gid" FROM `threads`;--> statement-breakpoint
|
|
21
|
+
DROP TABLE `threads`;--> statement-breakpoint
|
|
22
|
+
ALTER TABLE `__new_threads` RENAME TO `threads`;--> statement-breakpoint
|
|
23
|
+
PRAGMA foreign_keys=ON;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
PRAGMA foreign_keys=OFF;--> statement-breakpoint
|
|
2
|
+
CREATE TABLE `__new_threads` (
|
|
3
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
4
|
+
`agent_id` text NOT NULL,
|
|
5
|
+
`sdk_thread_id` text,
|
|
6
|
+
`model` text NOT NULL,
|
|
7
|
+
`reasoning_level` text NOT NULL,
|
|
8
|
+
`status` text NOT NULL,
|
|
9
|
+
`current_sdk_turn_id` text,
|
|
10
|
+
`is_current_turn_running` integer NOT NULL,
|
|
11
|
+
`workspace` text NOT NULL,
|
|
12
|
+
`runtime_container` text NOT NULL,
|
|
13
|
+
`dind_container` text NOT NULL,
|
|
14
|
+
`home_directory` text NOT NULL,
|
|
15
|
+
`uid` integer NOT NULL,
|
|
16
|
+
`gid` integer NOT NULL,
|
|
17
|
+
FOREIGN KEY (`agent_id`) REFERENCES `agents`(`id`) ON UPDATE no action ON DELETE no action
|
|
18
|
+
);
|
|
19
|
+
--> statement-breakpoint
|
|
20
|
+
INSERT INTO `__new_threads`("id", "agent_id", "sdk_thread_id", "model", "reasoning_level", "status", "current_sdk_turn_id", "is_current_turn_running", "workspace", "runtime_container", "dind_container", "home_directory", "uid", "gid") SELECT "id", "agent_id", "sdk_thread_id", "model", "reasoning_level", "status", "current_sdk_turn_id", "is_current_turn_running", "workspace", "runtime_container", "dind_container", "home_directory", "uid", "gid" FROM `threads`;--> statement-breakpoint
|
|
21
|
+
DROP TABLE `threads`;--> statement-breakpoint
|
|
22
|
+
ALTER TABLE `__new_threads` RENAME TO `threads`;--> statement-breakpoint
|
|
23
|
+
PRAGMA foreign_keys=ON;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
PRAGMA foreign_keys=OFF;--> statement-breakpoint
|
|
2
|
+
CREATE TABLE `__new_threads` (
|
|
3
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
4
|
+
`agent_id` text NOT NULL,
|
|
5
|
+
`sdk_thread_id` text,
|
|
6
|
+
`model` text NOT NULL,
|
|
7
|
+
`reasoning_level` text NOT NULL,
|
|
8
|
+
`status` text NOT NULL,
|
|
9
|
+
`current_sdk_turn_id` text,
|
|
10
|
+
`is_current_turn_running` integer NOT NULL,
|
|
11
|
+
`workspace` text NOT NULL,
|
|
12
|
+
`runtime_container` text NOT NULL,
|
|
13
|
+
`dind_container` text,
|
|
14
|
+
`home_directory` text NOT NULL,
|
|
15
|
+
`uid` integer NOT NULL,
|
|
16
|
+
`gid` integer NOT NULL,
|
|
17
|
+
FOREIGN KEY (`agent_id`) REFERENCES `agents`(`id`) ON UPDATE no action ON DELETE no action
|
|
18
|
+
);
|
|
19
|
+
--> statement-breakpoint
|
|
20
|
+
INSERT INTO `__new_threads`("id", "agent_id", "sdk_thread_id", "model", "reasoning_level", "status", "current_sdk_turn_id", "is_current_turn_running", "workspace", "runtime_container", "dind_container", "home_directory", "uid", "gid") SELECT "id", "agent_id", "sdk_thread_id", "model", "reasoning_level", "status", "current_sdk_turn_id", "is_current_turn_running", "workspace", "runtime_container", "dind_container", "home_directory", "uid", "gid" FROM `threads`;--> statement-breakpoint
|
|
21
|
+
DROP TABLE `threads`;--> statement-breakpoint
|
|
22
|
+
ALTER TABLE `__new_threads` RENAME TO `threads`;--> statement-breakpoint
|
|
23
|
+
PRAGMA foreign_keys=ON;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE `threads` ADD `additional_model_instructions` text;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
CREATE TABLE `thread_user_message_request_store` (
|
|
2
|
+
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
|
3
|
+
`thread_id` text NOT NULL,
|
|
4
|
+
`sdk_turn_id` text NOT NULL,
|
|
5
|
+
`request_id` text NOT NULL,
|
|
6
|
+
`sdk_item_id` text,
|
|
7
|
+
FOREIGN KEY (`thread_id`) REFERENCES `threads`(`id`) ON UPDATE no action ON DELETE cascade
|
|
8
|
+
);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE `threads` ADD `cli_secret` text;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
DROP TABLE `agents`;--> statement-breakpoint
|
|
2
|
+
PRAGMA foreign_keys=OFF;--> statement-breakpoint
|
|
3
|
+
CREATE TABLE `__new_threads` (
|
|
4
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
5
|
+
`sdk_thread_id` text,
|
|
6
|
+
`cli_secret` text,
|
|
7
|
+
`model` text NOT NULL,
|
|
8
|
+
`reasoning_level` text NOT NULL,
|
|
9
|
+
`additional_model_instructions` text,
|
|
10
|
+
`status` text NOT NULL,
|
|
11
|
+
`current_sdk_turn_id` text,
|
|
12
|
+
`is_current_turn_running` integer NOT NULL,
|
|
13
|
+
`workspace` text NOT NULL,
|
|
14
|
+
`runtime_container` text NOT NULL,
|
|
15
|
+
`dind_container` text,
|
|
16
|
+
`home_directory` text NOT NULL,
|
|
17
|
+
`uid` integer NOT NULL,
|
|
18
|
+
`gid` integer NOT NULL
|
|
19
|
+
);
|
|
20
|
+
--> statement-breakpoint
|
|
21
|
+
INSERT INTO `__new_threads`("id", "sdk_thread_id", "cli_secret", "model", "reasoning_level", "additional_model_instructions", "status", "current_sdk_turn_id", "is_current_turn_running", "workspace", "runtime_container", "dind_container", "home_directory", "uid", "gid") SELECT "id", "sdk_thread_id", "cli_secret", "model", "reasoning_level", "additional_model_instructions", "status", "current_sdk_turn_id", "is_current_turn_running", "workspace", "runtime_container", "dind_container", "home_directory", "uid", "gid" FROM `threads`;--> statement-breakpoint
|
|
22
|
+
DROP TABLE `threads`;--> statement-breakpoint
|
|
23
|
+
ALTER TABLE `__new_threads` RENAME TO `threads`;--> statement-breakpoint
|
|
24
|
+
PRAGMA foreign_keys=ON;
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "6",
|
|
3
|
+
"dialect": "sqlite",
|
|
4
|
+
"id": "9b217f12-e5f6-4414-8624-a33eb0ae63f2",
|
|
5
|
+
"prevId": "00000000-0000-0000-0000-000000000000",
|
|
6
|
+
"tables": {
|
|
7
|
+
"agent_sdks": {
|
|
8
|
+
"name": "agent_sdks",
|
|
9
|
+
"columns": {
|
|
10
|
+
"name": {
|
|
11
|
+
"name": "name",
|
|
12
|
+
"type": "text",
|
|
13
|
+
"primaryKey": true,
|
|
14
|
+
"notNull": true,
|
|
15
|
+
"autoincrement": false
|
|
16
|
+
},
|
|
17
|
+
"authentication": {
|
|
18
|
+
"name": "authentication",
|
|
19
|
+
"type": "text",
|
|
20
|
+
"primaryKey": false,
|
|
21
|
+
"notNull": true,
|
|
22
|
+
"autoincrement": false
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"indexes": {},
|
|
26
|
+
"foreignKeys": {},
|
|
27
|
+
"compositePrimaryKeys": {},
|
|
28
|
+
"uniqueConstraints": {},
|
|
29
|
+
"checkConstraints": {}
|
|
30
|
+
},
|
|
31
|
+
"agents": {
|
|
32
|
+
"name": "agents",
|
|
33
|
+
"columns": {
|
|
34
|
+
"id": {
|
|
35
|
+
"name": "id",
|
|
36
|
+
"type": "text",
|
|
37
|
+
"primaryKey": true,
|
|
38
|
+
"notNull": true,
|
|
39
|
+
"autoincrement": false
|
|
40
|
+
},
|
|
41
|
+
"name": {
|
|
42
|
+
"name": "name",
|
|
43
|
+
"type": "text",
|
|
44
|
+
"primaryKey": false,
|
|
45
|
+
"notNull": true,
|
|
46
|
+
"autoincrement": false
|
|
47
|
+
},
|
|
48
|
+
"sdk": {
|
|
49
|
+
"name": "sdk",
|
|
50
|
+
"type": "text",
|
|
51
|
+
"primaryKey": false,
|
|
52
|
+
"notNull": true,
|
|
53
|
+
"autoincrement": false
|
|
54
|
+
},
|
|
55
|
+
"model": {
|
|
56
|
+
"name": "model",
|
|
57
|
+
"type": "text",
|
|
58
|
+
"primaryKey": false,
|
|
59
|
+
"notNull": true,
|
|
60
|
+
"autoincrement": false
|
|
61
|
+
},
|
|
62
|
+
"reasoning_level": {
|
|
63
|
+
"name": "reasoning_level",
|
|
64
|
+
"type": "text",
|
|
65
|
+
"primaryKey": false,
|
|
66
|
+
"notNull": true,
|
|
67
|
+
"autoincrement": false
|
|
68
|
+
},
|
|
69
|
+
"workspace": {
|
|
70
|
+
"name": "workspace",
|
|
71
|
+
"type": "text",
|
|
72
|
+
"primaryKey": false,
|
|
73
|
+
"notNull": true,
|
|
74
|
+
"autoincrement": false
|
|
75
|
+
},
|
|
76
|
+
"runtime_container": {
|
|
77
|
+
"name": "runtime_container",
|
|
78
|
+
"type": "text",
|
|
79
|
+
"primaryKey": false,
|
|
80
|
+
"notNull": true,
|
|
81
|
+
"autoincrement": false
|
|
82
|
+
},
|
|
83
|
+
"dind_container": {
|
|
84
|
+
"name": "dind_container",
|
|
85
|
+
"type": "text",
|
|
86
|
+
"primaryKey": false,
|
|
87
|
+
"notNull": true,
|
|
88
|
+
"autoincrement": false
|
|
89
|
+
},
|
|
90
|
+
"home_directory": {
|
|
91
|
+
"name": "home_directory",
|
|
92
|
+
"type": "text",
|
|
93
|
+
"primaryKey": false,
|
|
94
|
+
"notNull": true,
|
|
95
|
+
"autoincrement": false
|
|
96
|
+
},
|
|
97
|
+
"uid": {
|
|
98
|
+
"name": "uid",
|
|
99
|
+
"type": "integer",
|
|
100
|
+
"primaryKey": false,
|
|
101
|
+
"notNull": true,
|
|
102
|
+
"autoincrement": false
|
|
103
|
+
},
|
|
104
|
+
"gid": {
|
|
105
|
+
"name": "gid",
|
|
106
|
+
"type": "integer",
|
|
107
|
+
"primaryKey": false,
|
|
108
|
+
"notNull": true,
|
|
109
|
+
"autoincrement": false
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"indexes": {},
|
|
113
|
+
"foreignKeys": {},
|
|
114
|
+
"compositePrimaryKeys": {},
|
|
115
|
+
"uniqueConstraints": {},
|
|
116
|
+
"checkConstraints": {}
|
|
117
|
+
},
|
|
118
|
+
"llm_models": {
|
|
119
|
+
"name": "llm_models",
|
|
120
|
+
"columns": {
|
|
121
|
+
"name": {
|
|
122
|
+
"name": "name",
|
|
123
|
+
"type": "text",
|
|
124
|
+
"primaryKey": true,
|
|
125
|
+
"notNull": true,
|
|
126
|
+
"autoincrement": false
|
|
127
|
+
},
|
|
128
|
+
"sdk_name": {
|
|
129
|
+
"name": "sdk_name",
|
|
130
|
+
"type": "text",
|
|
131
|
+
"primaryKey": false,
|
|
132
|
+
"notNull": true,
|
|
133
|
+
"autoincrement": false
|
|
134
|
+
},
|
|
135
|
+
"reasoning_levels": {
|
|
136
|
+
"name": "reasoning_levels",
|
|
137
|
+
"type": "text",
|
|
138
|
+
"primaryKey": false,
|
|
139
|
+
"notNull": false,
|
|
140
|
+
"autoincrement": false
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"indexes": {},
|
|
144
|
+
"foreignKeys": {
|
|
145
|
+
"llm_models_sdk_name_agent_sdks_name_fk": {
|
|
146
|
+
"name": "llm_models_sdk_name_agent_sdks_name_fk",
|
|
147
|
+
"tableFrom": "llm_models",
|
|
148
|
+
"tableTo": "agent_sdks",
|
|
149
|
+
"columnsFrom": [
|
|
150
|
+
"sdk_name"
|
|
151
|
+
],
|
|
152
|
+
"columnsTo": [
|
|
153
|
+
"name"
|
|
154
|
+
],
|
|
155
|
+
"onDelete": "no action",
|
|
156
|
+
"onUpdate": "no action"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"compositePrimaryKeys": {},
|
|
160
|
+
"uniqueConstraints": {},
|
|
161
|
+
"checkConstraints": {}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"views": {},
|
|
165
|
+
"enums": {},
|
|
166
|
+
"_meta": {
|
|
167
|
+
"schemas": {},
|
|
168
|
+
"tables": {},
|
|
169
|
+
"columns": {}
|
|
170
|
+
},
|
|
171
|
+
"internal": {
|
|
172
|
+
"indexes": {}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "6",
|
|
3
|
+
"dialect": "sqlite",
|
|
4
|
+
"id": "93966d9c-ac92-45ac-a321-609458422d78",
|
|
5
|
+
"prevId": "9b217f12-e5f6-4414-8624-a33eb0ae63f2",
|
|
6
|
+
"tables": {
|
|
7
|
+
"agent_sdks": {
|
|
8
|
+
"name": "agent_sdks",
|
|
9
|
+
"columns": {
|
|
10
|
+
"name": {
|
|
11
|
+
"name": "name",
|
|
12
|
+
"type": "text",
|
|
13
|
+
"primaryKey": true,
|
|
14
|
+
"notNull": true,
|
|
15
|
+
"autoincrement": false
|
|
16
|
+
},
|
|
17
|
+
"authentication": {
|
|
18
|
+
"name": "authentication",
|
|
19
|
+
"type": "text",
|
|
20
|
+
"primaryKey": false,
|
|
21
|
+
"notNull": true,
|
|
22
|
+
"autoincrement": false
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"indexes": {},
|
|
26
|
+
"foreignKeys": {},
|
|
27
|
+
"compositePrimaryKeys": {},
|
|
28
|
+
"uniqueConstraints": {},
|
|
29
|
+
"checkConstraints": {}
|
|
30
|
+
},
|
|
31
|
+
"agents": {
|
|
32
|
+
"name": "agents",
|
|
33
|
+
"columns": {
|
|
34
|
+
"id": {
|
|
35
|
+
"name": "id",
|
|
36
|
+
"type": "text",
|
|
37
|
+
"primaryKey": true,
|
|
38
|
+
"notNull": true,
|
|
39
|
+
"autoincrement": false
|
|
40
|
+
},
|
|
41
|
+
"name": {
|
|
42
|
+
"name": "name",
|
|
43
|
+
"type": "text",
|
|
44
|
+
"primaryKey": false,
|
|
45
|
+
"notNull": true,
|
|
46
|
+
"autoincrement": false
|
|
47
|
+
},
|
|
48
|
+
"sdk": {
|
|
49
|
+
"name": "sdk",
|
|
50
|
+
"type": "text",
|
|
51
|
+
"primaryKey": false,
|
|
52
|
+
"notNull": true,
|
|
53
|
+
"autoincrement": false
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"indexes": {},
|
|
57
|
+
"foreignKeys": {},
|
|
58
|
+
"compositePrimaryKeys": {},
|
|
59
|
+
"uniqueConstraints": {},
|
|
60
|
+
"checkConstraints": {}
|
|
61
|
+
},
|
|
62
|
+
"llm_models": {
|
|
63
|
+
"name": "llm_models",
|
|
64
|
+
"columns": {
|
|
65
|
+
"name": {
|
|
66
|
+
"name": "name",
|
|
67
|
+
"type": "text",
|
|
68
|
+
"primaryKey": true,
|
|
69
|
+
"notNull": true,
|
|
70
|
+
"autoincrement": false
|
|
71
|
+
},
|
|
72
|
+
"sdk_name": {
|
|
73
|
+
"name": "sdk_name",
|
|
74
|
+
"type": "text",
|
|
75
|
+
"primaryKey": false,
|
|
76
|
+
"notNull": true,
|
|
77
|
+
"autoincrement": false
|
|
78
|
+
},
|
|
79
|
+
"reasoning_levels": {
|
|
80
|
+
"name": "reasoning_levels",
|
|
81
|
+
"type": "text",
|
|
82
|
+
"primaryKey": false,
|
|
83
|
+
"notNull": false,
|
|
84
|
+
"autoincrement": false
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"indexes": {},
|
|
88
|
+
"foreignKeys": {
|
|
89
|
+
"llm_models_sdk_name_agent_sdks_name_fk": {
|
|
90
|
+
"name": "llm_models_sdk_name_agent_sdks_name_fk",
|
|
91
|
+
"tableFrom": "llm_models",
|
|
92
|
+
"tableTo": "agent_sdks",
|
|
93
|
+
"columnsFrom": [
|
|
94
|
+
"sdk_name"
|
|
95
|
+
],
|
|
96
|
+
"columnsTo": [
|
|
97
|
+
"name"
|
|
98
|
+
],
|
|
99
|
+
"onDelete": "no action",
|
|
100
|
+
"onUpdate": "no action"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"compositePrimaryKeys": {},
|
|
104
|
+
"uniqueConstraints": {},
|
|
105
|
+
"checkConstraints": {}
|
|
106
|
+
},
|
|
107
|
+
"threads": {
|
|
108
|
+
"name": "threads",
|
|
109
|
+
"columns": {
|
|
110
|
+
"id": {
|
|
111
|
+
"name": "id",
|
|
112
|
+
"type": "text",
|
|
113
|
+
"primaryKey": true,
|
|
114
|
+
"notNull": true,
|
|
115
|
+
"autoincrement": false
|
|
116
|
+
},
|
|
117
|
+
"agent_id": {
|
|
118
|
+
"name": "agent_id",
|
|
119
|
+
"type": "text",
|
|
120
|
+
"primaryKey": false,
|
|
121
|
+
"notNull": true,
|
|
122
|
+
"autoincrement": false
|
|
123
|
+
},
|
|
124
|
+
"model": {
|
|
125
|
+
"name": "model",
|
|
126
|
+
"type": "text",
|
|
127
|
+
"primaryKey": false,
|
|
128
|
+
"notNull": true,
|
|
129
|
+
"autoincrement": false
|
|
130
|
+
},
|
|
131
|
+
"reasoning_level": {
|
|
132
|
+
"name": "reasoning_level",
|
|
133
|
+
"type": "text",
|
|
134
|
+
"primaryKey": false,
|
|
135
|
+
"notNull": true,
|
|
136
|
+
"autoincrement": false
|
|
137
|
+
},
|
|
138
|
+
"workspace": {
|
|
139
|
+
"name": "workspace",
|
|
140
|
+
"type": "text",
|
|
141
|
+
"primaryKey": false,
|
|
142
|
+
"notNull": true,
|
|
143
|
+
"autoincrement": false
|
|
144
|
+
},
|
|
145
|
+
"runtime_container": {
|
|
146
|
+
"name": "runtime_container",
|
|
147
|
+
"type": "text",
|
|
148
|
+
"primaryKey": false,
|
|
149
|
+
"notNull": true,
|
|
150
|
+
"autoincrement": false
|
|
151
|
+
},
|
|
152
|
+
"dind_container": {
|
|
153
|
+
"name": "dind_container",
|
|
154
|
+
"type": "text",
|
|
155
|
+
"primaryKey": false,
|
|
156
|
+
"notNull": true,
|
|
157
|
+
"autoincrement": false
|
|
158
|
+
},
|
|
159
|
+
"home_directory": {
|
|
160
|
+
"name": "home_directory",
|
|
161
|
+
"type": "text",
|
|
162
|
+
"primaryKey": false,
|
|
163
|
+
"notNull": true,
|
|
164
|
+
"autoincrement": false
|
|
165
|
+
},
|
|
166
|
+
"uid": {
|
|
167
|
+
"name": "uid",
|
|
168
|
+
"type": "integer",
|
|
169
|
+
"primaryKey": false,
|
|
170
|
+
"notNull": true,
|
|
171
|
+
"autoincrement": false
|
|
172
|
+
},
|
|
173
|
+
"gid": {
|
|
174
|
+
"name": "gid",
|
|
175
|
+
"type": "integer",
|
|
176
|
+
"primaryKey": false,
|
|
177
|
+
"notNull": true,
|
|
178
|
+
"autoincrement": false
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"indexes": {},
|
|
182
|
+
"foreignKeys": {
|
|
183
|
+
"threads_agent_id_agents_id_fk": {
|
|
184
|
+
"name": "threads_agent_id_agents_id_fk",
|
|
185
|
+
"tableFrom": "threads",
|
|
186
|
+
"tableTo": "agents",
|
|
187
|
+
"columnsFrom": [
|
|
188
|
+
"agent_id"
|
|
189
|
+
],
|
|
190
|
+
"columnsTo": [
|
|
191
|
+
"id"
|
|
192
|
+
],
|
|
193
|
+
"onDelete": "no action",
|
|
194
|
+
"onUpdate": "no action"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"compositePrimaryKeys": {},
|
|
198
|
+
"uniqueConstraints": {},
|
|
199
|
+
"checkConstraints": {}
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"views": {},
|
|
203
|
+
"enums": {},
|
|
204
|
+
"_meta": {
|
|
205
|
+
"schemas": {},
|
|
206
|
+
"tables": {},
|
|
207
|
+
"columns": {}
|
|
208
|
+
},
|
|
209
|
+
"internal": {
|
|
210
|
+
"indexes": {}
|
|
211
|
+
}
|
|
212
|
+
}
|