@toren-run/core 0.1.9 → 0.1.10

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.
Files changed (2) hide show
  1. package/dist/migrate.js +7 -0
  2. package/package.json +1 -1
package/dist/migrate.js CHANGED
@@ -124,6 +124,13 @@ CREATE TABLE IF NOT EXISTS toren_control.run_watchers (
124
124
  settled boolean NOT NULL DEFAULT false
125
125
  );
126
126
  CREATE INDEX IF NOT EXISTS run_watchers_open_idx ON toren_control.run_watchers (agent) WHERE NOT settled;
127
+ CREATE TABLE IF NOT EXISTS toren_control.workers (
128
+ worker_id text PRIMARY KEY,
129
+ version text NOT NULL,
130
+ hostname text,
131
+ started_at timestamptz NOT NULL DEFAULT now(),
132
+ last_seen_at timestamptz NOT NULL DEFAULT now()
133
+ );
127
134
  CREATE TABLE IF NOT EXISTS toren_control.sandboxes (
128
135
  run_id uuid PRIMARY KEY,
129
136
  provider text NOT NULL,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toren-run/core",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {