wizards 0.2.55 → 0.2.57

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 (123) hide show
  1. package/README.md +2 -2
  2. package/apps/runtime/dist/cli/autostart.js +1 -1
  3. package/apps/runtime/dist/cli/machine.js +5 -48
  4. package/apps/runtime/dist/cli/report.js +1 -1
  5. package/apps/runtime/dist/db/control-schema.js +13 -0
  6. package/apps/runtime/dist/db/migrations/control/0008_runner.sql +8 -0
  7. package/apps/runtime/dist/db/migrations/control/meta/0008_snapshot.json +505 -0
  8. package/apps/runtime/dist/db/migrations/control/meta/_journal.json +7 -0
  9. package/apps/runtime/dist/db/migrations/tenant/0014_run_answer.sql +2 -0
  10. package/apps/runtime/dist/db/migrations/tenant/meta/0014_snapshot.json +3154 -0
  11. package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +7 -0
  12. package/apps/runtime/dist/db/schema.js +4 -0
  13. package/apps/runtime/dist/docs/dev/index.md +4 -4
  14. package/apps/runtime/dist/docs/dev/plugins/connections.md +4 -3
  15. package/apps/runtime/dist/docs/dev/plugins/events.md +1 -0
  16. package/apps/runtime/dist/docs/dev/plugins/examples.md +10 -9
  17. package/apps/runtime/dist/docs/dev/plugins/index.md +4 -3
  18. package/apps/runtime/dist/docs/dev/plugins/layout.md +2 -1
  19. package/apps/runtime/dist/docs/dev/plugins/meta.json +0 -1
  20. package/apps/runtime/dist/docs/dev/plugins/quick-start.md +4 -3
  21. package/apps/runtime/dist/docs/dev/plugins/reference.md +36 -14
  22. package/apps/runtime/dist/docs/dev/plugins/reloading.md +5 -5
  23. package/apps/runtime/dist/docs/dev/plugins/routes.md +30 -6
  24. package/apps/runtime/dist/docs/dev/plugins/runners.md +15 -10
  25. package/apps/runtime/dist/docs/dev/plugins/server.md +16 -7
  26. package/apps/runtime/dist/docs/dev/plugins/shipping.md +4 -26
  27. package/apps/runtime/dist/docs/dev/plugins/space.md +66 -53
  28. package/apps/runtime/dist/docs/dev/plugins/starters.md +10 -7
  29. package/apps/runtime/dist/docs/dev/plugins/studio.md +33 -12
  30. package/apps/runtime/dist/docs/dev/plugins/styling.md +19 -9
  31. package/apps/runtime/dist/docs/dev/plugins/tables.md +6 -4
  32. package/apps/runtime/dist/docs/dev/plugins/tools.md +22 -12
  33. package/apps/runtime/dist/docs/dev/wizard-format.md +3 -2
  34. package/apps/runtime/dist/docs/user/ai-apps.md +3 -1
  35. package/apps/runtime/dist/docs/user/assistant.md +5 -3
  36. package/apps/runtime/dist/docs/user/build-a-wizard.md +14 -2
  37. package/apps/runtime/dist/docs/user/command-line.md +16 -14
  38. package/apps/runtime/dist/docs/user/connectors.md +17 -12
  39. package/apps/runtime/dist/docs/user/data.md +14 -9
  40. package/apps/runtime/dist/docs/user/first-start.md +13 -6
  41. package/apps/runtime/dist/docs/user/index.md +2 -1
  42. package/apps/runtime/dist/docs/user/install.md +19 -11
  43. package/apps/runtime/dist/docs/user/models.md +44 -22
  44. package/apps/runtime/dist/docs/user/plugins.md +9 -4
  45. package/apps/runtime/dist/docs/user/run.md +14 -9
  46. package/apps/runtime/dist/docs/user/server.md +7 -5
  47. package/apps/runtime/dist/docs/user/space.md +15 -8
  48. package/apps/runtime/dist/docs/user/steps.md +33 -13
  49. package/apps/runtime/dist/docs/user/test-and-share.md +41 -25
  50. package/apps/runtime/dist/docs/user/troubleshooting.md +15 -7
  51. package/apps/runtime/dist/docs/user/wordpress.md +59 -49
  52. package/apps/runtime/dist/engine/asks.js +53 -33
  53. package/apps/runtime/dist/engine/events.js +45 -1
  54. package/apps/runtime/dist/engine/owner.js +32 -0
  55. package/apps/runtime/dist/engine/runner.js +131 -97
  56. package/apps/runtime/dist/env.js +25 -3
  57. package/apps/runtime/dist/harness/apple.js +36 -21
  58. package/apps/runtime/dist/harness/claude.js +1 -1
  59. package/apps/runtime/dist/harness/model.js +2 -2
  60. package/apps/runtime/dist/index.js +13 -2
  61. package/apps/runtime/dist/limits.js +7 -4
  62. package/apps/runtime/dist/media/conversation.js +6 -5
  63. package/apps/runtime/dist/model-errors.js +22 -1
  64. package/apps/runtime/dist/models.js +30 -7
  65. package/apps/runtime/dist/plugins/pro-keys.js +1 -1
  66. package/apps/runtime/dist/plugins/pro-state.js +1 -1
  67. package/apps/runtime/dist/plugins/pro.js +1 -1
  68. package/apps/runtime/dist/plugins/runs.js +20 -15
  69. package/apps/runtime/dist/render/browser-path.js +54 -0
  70. package/apps/runtime/dist/routes/runs.js +67 -38
  71. package/apps/runtime/dist/routes/studio.js +7 -3
  72. package/apps/runtime/dist/services/api.js +3 -1
  73. package/apps/runtime/dist/services/package-file.js +8 -8
  74. package/apps/runtime/dist/services/runs.js +7 -8
  75. package/apps/runtime/dist/tenants/control.js +85 -7
  76. package/apps/runtime/dist/update.js +1 -1
  77. package/apps/web/dist/assets/AboutDialog-DEZCEQlN.js +1 -0
  78. package/apps/web/dist/assets/{ChangelogDialog-BLmJABe4.js → ChangelogDialog-CgnnJj4G.js} +1 -1
  79. package/apps/web/dist/assets/{ChatView-YAiOT6mt.js → ChatView-BnnKdwk4.js} +1 -1
  80. package/apps/web/dist/assets/{EditorPage-C0zMXwlF.js → EditorPage-CeDWjq4z.js} +2 -2
  81. package/apps/web/dist/assets/{FlowPreview-B4lbmeha.js → FlowPreview-Du028FI3.js} +1 -1
  82. package/apps/web/dist/assets/{Harness-_riwRD-c.js → Harness-CEPy4MEp.js} +1 -1
  83. package/apps/web/dist/assets/{Marketplace-B0Nki6J6.js → Marketplace-ms58DQJ9.js} +2 -2
  84. package/apps/web/dist/assets/{NewWizardPage-DkvGgROv.js → NewWizardPage-CEQSNXeZ.js} +1 -1
  85. package/apps/web/dist/assets/{ProjectPage-CFRIPset.js → ProjectPage-CXDpKoK2.js} +1 -1
  86. package/apps/web/dist/assets/{PublicRunner-QJuQB7ff.js → PublicRunner-DMmtmzBX.js} +1 -1
  87. package/apps/web/dist/assets/{ReadOnly-DiOfNtVr.js → ReadOnly-zQecD9OB.js} +1 -1
  88. package/apps/web/dist/assets/{RunDrawer-LjUX3yIv.js → RunDrawer-BIojYB0g.js} +1 -1
  89. package/apps/web/dist/assets/{RunnerView-DkJVfUeG.js → RunnerView-D8OGEoMl.js} +1 -1
  90. package/apps/web/dist/assets/SettingsPage-BlMZL4_d.js +1 -0
  91. package/apps/web/dist/assets/SetupPage-Doz9T3kv.js +1 -0
  92. package/apps/web/dist/assets/{SharePage-CCimr8XT.js → SharePage-DOJXdsyi.js} +1 -1
  93. package/apps/web/dist/assets/{brand-CwLcF9JR.js → brand-DIKyySmf.js} +1 -1
  94. package/apps/web/dist/assets/changelog-B1jhC7Fv.js +1 -0
  95. package/apps/web/dist/assets/{circle-alert-BEDKtkJy.js → circle-alert-B9b9Vb9k.js} +1 -1
  96. package/apps/web/dist/assets/{esm-BCwno33N.js → esm-D6fM9MdG.js} +1 -1
  97. package/apps/web/dist/assets/{index-Dq-Wj6Yo.js → index-nfRuCdVt.js} +4 -4
  98. package/apps/web/dist/assets/{lock-Ce2ofIWG.js → lock-BNvsUKTg.js} +1 -1
  99. package/apps/web/dist/assets/session-CSbo-pmx.js +1 -0
  100. package/apps/web/dist/assets/{settings-menu-DX0JnPBR.js → settings-menu-BGfn4LJE.js} +1 -1
  101. package/apps/web/dist/assets/{ui-mkL5nF_f.js → ui-FW7ypPI6.js} +1 -1
  102. package/apps/web/dist/assets/{upload-BfrqabpO.js → upload-MQ_24gSb.js} +1 -1
  103. package/apps/web/dist/assets/{volume-2-C3GeMqc-.js → volume-2-B1mj20eS.js} +1 -1
  104. package/apps/web/dist/index.html +6 -6
  105. package/apps/web/dist/install.sh +2 -2
  106. package/apps/web/dist/mcp/flow.html +1 -1
  107. package/modules/calls/dist/client.css +1 -1
  108. package/modules/sms/dist/client.css +1 -1
  109. package/modules/whatsapp/dist/client.css +1 -1
  110. package/node_modules/@engenty-wizards/shared/dist/definition.js +1 -0
  111. package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/columns.js +1 -0
  112. package/node_modules/@engenty-wizards/shared/dist/fit.js +1 -0
  113. package/node_modules/@engenty-wizards/shared/dist/run.d.ts +152 -2
  114. package/node_modules/@engenty-wizards/shared/dist/run.js +135 -1
  115. package/node_modules/@engenty-wizards/shared/dist/store.js +1 -0
  116. package/node_modules/@engenty-wizards/shared/dist/surface.js +1 -0
  117. package/package.json +2 -2
  118. package/apps/runtime/dist/docs/dev/plugins/pro-modules.md +0 -59
  119. package/apps/web/dist/assets/AboutDialog-BelD7JCn.js +0 -1
  120. package/apps/web/dist/assets/SettingsPage-BKZ1KLfP.js +0 -1
  121. package/apps/web/dist/assets/SetupPage-Rqlo16Lk.js +0 -1
  122. package/apps/web/dist/assets/changelog-Bg5ZBu5p.js +0 -1
  123. package/apps/web/dist/assets/session-BuVghS-e.js +0 -1
package/README.md CHANGED
@@ -85,7 +85,7 @@ icon at the right of the address bar.
85
85
  You need Node.js 24.11 or newer and pnpm 10 (`corepack enable`).
86
86
 
87
87
  ```bash
88
- git clone https://github.com/engenty/engenty-wizards.git
88
+ git clone https://github.com/engenty/wizards.git
89
89
  cd engenty-wizards
90
90
  pnpm install
91
91
  pnpm build
@@ -148,7 +148,7 @@ To remove engenty wizards, run `wizards autostart off`, then delete `~/.engenty/
148
148
  With Docker, behind an https proxy (Caddy, Traefik, Coolify):
149
149
 
150
150
  ```bash
151
- git clone https://github.com/engenty/engenty-wizards.git
151
+ git clone https://github.com/engenty/wizards.git
152
152
  cd engenty-wizards
153
153
  cp .env.example .env # set APP_URL to your https address and add a model key
154
154
  docker compose up -d --build
@@ -54,7 +54,7 @@ export function unitText(command) {
54
54
  return [
55
55
  "[Unit]",
56
56
  "Description=engenty wizards",
57
- "Documentation=https://github.com/engenty/engenty-wizards",
57
+ "Documentation=https://github.com/engenty/wizards",
58
58
  "",
59
59
  "[Service]",
60
60
  `ExecStart="${command.replaceAll("\\", "\\\\").replaceAll('"', '\\"')}" start --no-open`,
@@ -1,9 +1,12 @@
1
1
  import { execFile } from "node:child_process";
2
- import { accessSync, constants, existsSync } from "node:fs";
2
+ import { existsSync } from "node:fs";
3
3
  import { homedir } from "node:os";
4
- import { delimiter, join } from "node:path";
4
+ import { join } from "node:path";
5
5
  import { promisify } from "node:util";
6
+ // The search for a browser is shared with env.ts, so the runtime uses the one the setup found.
7
+ import { findChrome, findOnPath } from "../render/browser-path.js";
6
8
  import { runtimePath } from "./environment.js";
9
+ export { findChrome, findOnPath };
7
10
  const run = promisify(execFile);
8
11
  /** The AI clients the runtime can think with, in the order its own setup offers them. */
9
12
  export const CLIENTS = [
@@ -55,22 +58,6 @@ export function suggestedClient(missing) {
55
58
  return missing.find((state) => vendorApp(state.client)) ?? missing[0] ?? null;
56
59
  }
57
60
  /** The first file of that name on a PATH that may be run. */
58
- export function findOnPath(name, path) {
59
- for (const dir of path.split(delimiter)) {
60
- if (!dir) {
61
- continue;
62
- }
63
- const file = join(dir, name);
64
- try {
65
- accessSync(file, constants.X_OK);
66
- return file;
67
- }
68
- catch {
69
- // not here
70
- }
71
- }
72
- return null;
73
- }
74
61
  /** What a command prints for `--version`: its last word that looks like one. */
75
62
  async function versionOf(file, path) {
76
63
  try {
@@ -94,36 +81,6 @@ export async function detectClients(paths) {
94
81
  return { client, path: version ? file : null, version };
95
82
  }));
96
83
  }
97
- /** The browser the runtime renders PDF and PNG with. */
98
- export function findChrome(env = process.env) {
99
- if (env.CHROME_PATH) {
100
- return existsSync(env.CHROME_PATH) ? env.CHROME_PATH : null;
101
- }
102
- if (process.platform === "darwin") {
103
- const apps = [
104
- "Google Chrome.app/Contents/MacOS/Google Chrome",
105
- "Microsoft Edge.app/Contents/MacOS/Microsoft Edge",
106
- "Chromium.app/Contents/MacOS/Chromium",
107
- "Brave Browser.app/Contents/MacOS/Brave Browser",
108
- ];
109
- const roots = ["/Applications", join(homedir(), "Applications")];
110
- for (const app of apps) {
111
- for (const root of roots) {
112
- if (existsSync(join(root, app))) {
113
- return join(root, app);
114
- }
115
- }
116
- }
117
- return null;
118
- }
119
- for (const name of ["google-chrome", "chromium", "chromium-browser", "microsoft-edge"]) {
120
- const file = findOnPath(name, env.PATH ?? "");
121
- if (file) {
122
- return file;
123
- }
124
- }
125
- return null;
126
- }
127
84
  export async function findFfmpeg(env = process.env) {
128
85
  const path = env.PATH ?? "";
129
86
  const file = env.FFMPEG_PATH || findOnPath("ffmpeg", path);
@@ -69,7 +69,7 @@ export async function reportCommand(paths) {
69
69
  return 1;
70
70
  }
71
71
  if (answer.status === 409) {
72
- console.error(`${bad} This install is linked to no account. Link one in the studio under Settings → Modelle & Konto, then send again.`);
72
+ console.error(`${bad} This install is linked to no account. Link one in the studio under Settings → Account, then send again.`);
73
73
  return 1;
74
74
  }
75
75
  if (answer.status !== 200) {
@@ -35,6 +35,10 @@ export const runIndex = sqliteTable("run_index", {
35
35
  visitorId: text("visitor_id"),
36
36
  ipHash: text("ip_hash"),
37
37
  active: integer("active", { mode: "boolean" }).notNull().default(false),
38
+ /** The runner working on the run; null while it waits for one. */
39
+ owner: text("owner"),
40
+ /** The owner's last heartbeat; one silent for RUNNER_STALE_MS has lost the run. */
41
+ seen: integer("seen", { mode: "timestamp_ms" }),
38
42
  /**
39
43
  * The mobile app's device for push, set by the app for this run (`POST /api/runs/:id/notify`):
40
44
  * `{ token, platform: "ios" | "android", lang }`. Told through the Manage-App when the run is
@@ -47,6 +51,15 @@ export const runIndex = sqliteTable("run_index", {
47
51
  index("run_index_ip").on(t.ipHash, t.createdAt),
48
52
  index("run_index_active").on(t.active, t.tenantId),
49
53
  ]);
54
+ /**
55
+ * The runners that execute runs (RUNTIME_ROLE=runner or all): where the web reaches one for what
56
+ * only the process holding a run can answer (its browser's screen), and when it last reported.
57
+ */
58
+ export const runner = sqliteTable("runner", {
59
+ id: text("id").primaryKey(),
60
+ url: text("url"),
61
+ seen: integer("seen", { mode: "timestamp_ms" }).notNull(),
62
+ });
50
63
  /** A studio session of someone signed in at the Manage-App. The refresh token is encrypted. */
51
64
  export const session = sqliteTable("session", {
52
65
  id: text("id").primaryKey(),
@@ -0,0 +1,8 @@
1
+ CREATE TABLE `runner` (
2
+ `id` text PRIMARY KEY NOT NULL,
3
+ `url` text,
4
+ `seen` integer NOT NULL
5
+ );
6
+ --> statement-breakpoint
7
+ ALTER TABLE `run_index` ADD `owner` text;--> statement-breakpoint
8
+ ALTER TABLE `run_index` ADD `seen` integer;
@@ -0,0 +1,505 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "47fe3107-ea98-40f9-878c-9b504bc89e9a",
5
+ "prevId": "7a54af3d-5213-4e30-8216-8e80102ae5f6",
6
+ "tables": {
7
+ "link": {
8
+ "name": "link",
9
+ "columns": {
10
+ "token": {
11
+ "name": "token",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "tenant_id": {
18
+ "name": "tenant_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "kind": {
25
+ "name": "kind",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "ref": {
32
+ "name": "ref",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false
37
+ },
38
+ "created_at": {
39
+ "name": "created_at",
40
+ "type": "integer",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false,
44
+ "default": "(unixepoch() * 1000)"
45
+ }
46
+ },
47
+ "indexes": {
48
+ "link_tenant": {
49
+ "name": "link_tenant",
50
+ "columns": [
51
+ "tenant_id"
52
+ ],
53
+ "isUnique": false
54
+ },
55
+ "link_ref": {
56
+ "name": "link_ref",
57
+ "columns": [
58
+ "kind",
59
+ "ref"
60
+ ],
61
+ "isUnique": false
62
+ }
63
+ },
64
+ "foreignKeys": {},
65
+ "compositePrimaryKeys": {},
66
+ "uniqueConstraints": {},
67
+ "checkConstraints": {}
68
+ },
69
+ "marketplace_cache": {
70
+ "name": "marketplace_cache",
71
+ "columns": {
72
+ "id": {
73
+ "name": "id",
74
+ "type": "text",
75
+ "primaryKey": true,
76
+ "notNull": true,
77
+ "autoincrement": false
78
+ },
79
+ "hash": {
80
+ "name": "hash",
81
+ "type": "text",
82
+ "primaryKey": false,
83
+ "notNull": true,
84
+ "autoincrement": false
85
+ },
86
+ "entry": {
87
+ "name": "entry",
88
+ "type": "text",
89
+ "primaryKey": false,
90
+ "notNull": true,
91
+ "autoincrement": false
92
+ },
93
+ "fetched_at": {
94
+ "name": "fetched_at",
95
+ "type": "integer",
96
+ "primaryKey": false,
97
+ "notNull": true,
98
+ "autoincrement": false,
99
+ "default": "(unixepoch() * 1000)"
100
+ }
101
+ },
102
+ "indexes": {},
103
+ "foreignKeys": {},
104
+ "compositePrimaryKeys": {},
105
+ "uniqueConstraints": {},
106
+ "checkConstraints": {}
107
+ },
108
+ "plugin_address": {
109
+ "name": "plugin_address",
110
+ "columns": {
111
+ "ref": {
112
+ "name": "ref",
113
+ "type": "text",
114
+ "primaryKey": true,
115
+ "notNull": true,
116
+ "autoincrement": false
117
+ },
118
+ "tenant_id": {
119
+ "name": "tenant_id",
120
+ "type": "text",
121
+ "primaryKey": false,
122
+ "notNull": true,
123
+ "autoincrement": false
124
+ },
125
+ "plugin": {
126
+ "name": "plugin",
127
+ "type": "text",
128
+ "primaryKey": false,
129
+ "notNull": true,
130
+ "autoincrement": false
131
+ },
132
+ "created_at": {
133
+ "name": "created_at",
134
+ "type": "integer",
135
+ "primaryKey": false,
136
+ "notNull": true,
137
+ "autoincrement": false,
138
+ "default": "(unixepoch() * 1000)"
139
+ }
140
+ },
141
+ "indexes": {
142
+ "plugin_address_tenant": {
143
+ "name": "plugin_address_tenant",
144
+ "columns": [
145
+ "tenant_id",
146
+ "plugin"
147
+ ],
148
+ "isUnique": true
149
+ }
150
+ },
151
+ "foreignKeys": {},
152
+ "compositePrimaryKeys": {},
153
+ "uniqueConstraints": {},
154
+ "checkConstraints": {}
155
+ },
156
+ "plugin_job": {
157
+ "name": "plugin_job",
158
+ "columns": {
159
+ "tenant_id": {
160
+ "name": "tenant_id",
161
+ "type": "text",
162
+ "primaryKey": false,
163
+ "notNull": true,
164
+ "autoincrement": false
165
+ },
166
+ "plugin": {
167
+ "name": "plugin",
168
+ "type": "text",
169
+ "primaryKey": false,
170
+ "notNull": true,
171
+ "autoincrement": false
172
+ },
173
+ "name": {
174
+ "name": "name",
175
+ "type": "text",
176
+ "primaryKey": false,
177
+ "notNull": true,
178
+ "autoincrement": false
179
+ },
180
+ "last_run_at": {
181
+ "name": "last_run_at",
182
+ "type": "integer",
183
+ "primaryKey": false,
184
+ "notNull": true,
185
+ "autoincrement": false
186
+ }
187
+ },
188
+ "indexes": {},
189
+ "foreignKeys": {},
190
+ "compositePrimaryKeys": {
191
+ "plugin_job_tenant_id_plugin_name_pk": {
192
+ "columns": [
193
+ "tenant_id",
194
+ "plugin",
195
+ "name"
196
+ ],
197
+ "name": "plugin_job_tenant_id_plugin_name_pk"
198
+ }
199
+ },
200
+ "uniqueConstraints": {},
201
+ "checkConstraints": {}
202
+ },
203
+ "run_index": {
204
+ "name": "run_index",
205
+ "columns": {
206
+ "run_id": {
207
+ "name": "run_id",
208
+ "type": "text",
209
+ "primaryKey": true,
210
+ "notNull": true,
211
+ "autoincrement": false
212
+ },
213
+ "tenant_id": {
214
+ "name": "tenant_id",
215
+ "type": "text",
216
+ "primaryKey": false,
217
+ "notNull": true,
218
+ "autoincrement": false
219
+ },
220
+ "visitor_id": {
221
+ "name": "visitor_id",
222
+ "type": "text",
223
+ "primaryKey": false,
224
+ "notNull": false,
225
+ "autoincrement": false
226
+ },
227
+ "ip_hash": {
228
+ "name": "ip_hash",
229
+ "type": "text",
230
+ "primaryKey": false,
231
+ "notNull": false,
232
+ "autoincrement": false
233
+ },
234
+ "active": {
235
+ "name": "active",
236
+ "type": "integer",
237
+ "primaryKey": false,
238
+ "notNull": true,
239
+ "autoincrement": false,
240
+ "default": false
241
+ },
242
+ "owner": {
243
+ "name": "owner",
244
+ "type": "text",
245
+ "primaryKey": false,
246
+ "notNull": false,
247
+ "autoincrement": false
248
+ },
249
+ "seen": {
250
+ "name": "seen",
251
+ "type": "integer",
252
+ "primaryKey": false,
253
+ "notNull": false,
254
+ "autoincrement": false
255
+ },
256
+ "push": {
257
+ "name": "push",
258
+ "type": "text",
259
+ "primaryKey": false,
260
+ "notNull": false,
261
+ "autoincrement": false
262
+ },
263
+ "created_at": {
264
+ "name": "created_at",
265
+ "type": "integer",
266
+ "primaryKey": false,
267
+ "notNull": true,
268
+ "autoincrement": false,
269
+ "default": "(unixepoch() * 1000)"
270
+ }
271
+ },
272
+ "indexes": {
273
+ "run_index_visitor": {
274
+ "name": "run_index_visitor",
275
+ "columns": [
276
+ "visitor_id",
277
+ "created_at"
278
+ ],
279
+ "isUnique": false
280
+ },
281
+ "run_index_ip": {
282
+ "name": "run_index_ip",
283
+ "columns": [
284
+ "ip_hash",
285
+ "created_at"
286
+ ],
287
+ "isUnique": false
288
+ },
289
+ "run_index_active": {
290
+ "name": "run_index_active",
291
+ "columns": [
292
+ "active",
293
+ "tenant_id"
294
+ ],
295
+ "isUnique": false
296
+ }
297
+ },
298
+ "foreignKeys": {},
299
+ "compositePrimaryKeys": {},
300
+ "uniqueConstraints": {},
301
+ "checkConstraints": {}
302
+ },
303
+ "runner": {
304
+ "name": "runner",
305
+ "columns": {
306
+ "id": {
307
+ "name": "id",
308
+ "type": "text",
309
+ "primaryKey": true,
310
+ "notNull": true,
311
+ "autoincrement": false
312
+ },
313
+ "url": {
314
+ "name": "url",
315
+ "type": "text",
316
+ "primaryKey": false,
317
+ "notNull": false,
318
+ "autoincrement": false
319
+ },
320
+ "seen": {
321
+ "name": "seen",
322
+ "type": "integer",
323
+ "primaryKey": false,
324
+ "notNull": true,
325
+ "autoincrement": false
326
+ }
327
+ },
328
+ "indexes": {},
329
+ "foreignKeys": {},
330
+ "compositePrimaryKeys": {},
331
+ "uniqueConstraints": {},
332
+ "checkConstraints": {}
333
+ },
334
+ "session": {
335
+ "name": "session",
336
+ "columns": {
337
+ "id": {
338
+ "name": "id",
339
+ "type": "text",
340
+ "primaryKey": true,
341
+ "notNull": true,
342
+ "autoincrement": false
343
+ },
344
+ "user_id": {
345
+ "name": "user_id",
346
+ "type": "text",
347
+ "primaryKey": false,
348
+ "notNull": true,
349
+ "autoincrement": false
350
+ },
351
+ "tenant_id": {
352
+ "name": "tenant_id",
353
+ "type": "text",
354
+ "primaryKey": false,
355
+ "notNull": true,
356
+ "autoincrement": false
357
+ },
358
+ "role": {
359
+ "name": "role",
360
+ "type": "text",
361
+ "primaryKey": false,
362
+ "notNull": true,
363
+ "autoincrement": false
364
+ },
365
+ "name": {
366
+ "name": "name",
367
+ "type": "text",
368
+ "primaryKey": false,
369
+ "notNull": true,
370
+ "autoincrement": false
371
+ },
372
+ "email": {
373
+ "name": "email",
374
+ "type": "text",
375
+ "primaryKey": false,
376
+ "notNull": true,
377
+ "autoincrement": false
378
+ },
379
+ "image": {
380
+ "name": "image",
381
+ "type": "text",
382
+ "primaryKey": false,
383
+ "notNull": false,
384
+ "autoincrement": false
385
+ },
386
+ "refresh_token": {
387
+ "name": "refresh_token",
388
+ "type": "text",
389
+ "primaryKey": false,
390
+ "notNull": false,
391
+ "autoincrement": false
392
+ },
393
+ "claims_expire_at": {
394
+ "name": "claims_expire_at",
395
+ "type": "integer",
396
+ "primaryKey": false,
397
+ "notNull": true,
398
+ "autoincrement": false
399
+ },
400
+ "expires_at": {
401
+ "name": "expires_at",
402
+ "type": "integer",
403
+ "primaryKey": false,
404
+ "notNull": true,
405
+ "autoincrement": false
406
+ },
407
+ "created_at": {
408
+ "name": "created_at",
409
+ "type": "integer",
410
+ "primaryKey": false,
411
+ "notNull": true,
412
+ "autoincrement": false,
413
+ "default": "(unixepoch() * 1000)"
414
+ }
415
+ },
416
+ "indexes": {
417
+ "session_expires": {
418
+ "name": "session_expires",
419
+ "columns": [
420
+ "expires_at"
421
+ ],
422
+ "isUnique": false
423
+ }
424
+ },
425
+ "foreignKeys": {},
426
+ "compositePrimaryKeys": {},
427
+ "uniqueConstraints": {},
428
+ "checkConstraints": {}
429
+ },
430
+ "setting": {
431
+ "name": "setting",
432
+ "columns": {
433
+ "key": {
434
+ "name": "key",
435
+ "type": "text",
436
+ "primaryKey": true,
437
+ "notNull": true,
438
+ "autoincrement": false
439
+ },
440
+ "value": {
441
+ "name": "value",
442
+ "type": "text",
443
+ "primaryKey": false,
444
+ "notNull": true,
445
+ "autoincrement": false
446
+ }
447
+ },
448
+ "indexes": {},
449
+ "foreignKeys": {},
450
+ "compositePrimaryKeys": {},
451
+ "uniqueConstraints": {},
452
+ "checkConstraints": {}
453
+ },
454
+ "tenant": {
455
+ "name": "tenant",
456
+ "columns": {
457
+ "id": {
458
+ "name": "id",
459
+ "type": "text",
460
+ "primaryKey": true,
461
+ "notNull": true,
462
+ "autoincrement": false
463
+ },
464
+ "status": {
465
+ "name": "status",
466
+ "type": "text",
467
+ "primaryKey": false,
468
+ "notNull": true,
469
+ "autoincrement": false,
470
+ "default": "'active'"
471
+ },
472
+ "db_url": {
473
+ "name": "db_url",
474
+ "type": "text",
475
+ "primaryKey": false,
476
+ "notNull": false,
477
+ "autoincrement": false
478
+ },
479
+ "created_at": {
480
+ "name": "created_at",
481
+ "type": "integer",
482
+ "primaryKey": false,
483
+ "notNull": true,
484
+ "autoincrement": false,
485
+ "default": "(unixepoch() * 1000)"
486
+ }
487
+ },
488
+ "indexes": {},
489
+ "foreignKeys": {},
490
+ "compositePrimaryKeys": {},
491
+ "uniqueConstraints": {},
492
+ "checkConstraints": {}
493
+ }
494
+ },
495
+ "views": {},
496
+ "enums": {},
497
+ "_meta": {
498
+ "schemas": {},
499
+ "tables": {},
500
+ "columns": {}
501
+ },
502
+ "internal": {
503
+ "indexes": {}
504
+ }
505
+ }
@@ -57,6 +57,13 @@
57
57
  "when": 1791283092370,
58
58
  "tag": "0007_common_the_hand",
59
59
  "breakpoints": true
60
+ },
61
+ {
62
+ "idx": 8,
63
+ "version": "6",
64
+ "when": 1791752213925,
65
+ "tag": "0008_runner",
66
+ "breakpoints": true
60
67
  }
61
68
  ]
62
69
  }
@@ -0,0 +1,2 @@
1
+ ALTER TABLE `run` ADD `answer` text;--> statement-breakpoint
2
+ ALTER TABLE `run` ADD `unattended` integer DEFAULT false NOT NULL;