create-oke 0.17.1 → 0.18.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-oke",
3
- "version": "0.17.1",
3
+ "version": "0.18.3",
4
4
  "description": "Scaffold an okengine app — bunx create-oke@latest <name>",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,13 +1,13 @@
1
- import { store, field, id, now } from "okengine";
1
+ import { store, field } from "okengine";
2
2
 
3
3
  /**
4
4
  * Notes domain — abstract declarations, emitted to
5
5
  * `src/db/schema.drizzle.ts` for the active dialect by `oke db` / `oke dev`.
6
6
  */
7
7
  export const notes = store.schema.table("notes", {
8
- id: field.text().primaryKey().defaultFn(id),
8
+ id: field.id().primaryKey(),
9
9
  title: field.text().notNull(),
10
10
  body: field.text().notNull(),
11
- archivedAt: field.integer(),
12
- createdAt: field.integer().notNull().defaultFn(now),
11
+ archivedAt: field.timestamp(),
12
+ createdAt: field.timestamp().notNull().now(),
13
13
  });
@@ -1,4 +1,4 @@
1
- import { on, flow, http } from "okengine";
1
+ import { on, flow, http } from "okengine/http";
2
2
  import { z } from "zod";
3
3
 
4
4
  /** Liveness for probes and `bun test`. */
@@ -1,4 +1,4 @@
1
- import { on, flow, http } from "okengine";
1
+ import { on, flow, http } from "okengine/http";
2
2
  import { z } from "zod";
3
3
 
4
4
  /** First-run welcome — visit :6530/ after `oke dev` (browser code block; curl stays JSON). */
@@ -1,4 +1,4 @@
1
- import { on, flow, http, fail } from "okengine";
1
+ import { on, flow, http, fail } from "okengine/http";
2
2
  import { eq } from "drizzle-orm";
3
3
 
4
4
  import { db, notesMutate } from "@/core";
@@ -1,4 +1,4 @@
1
- import { on, flow, http, fail } from "okengine";
1
+ import { on, flow, http, fail } from "okengine/http";
2
2
 
3
3
  import { db, files, notesMutate } from "@/core";
4
4
  import { notes } from "@/db/schema.decl";
@@ -1,4 +1,4 @@
1
- import { on, flow, http, fail } from "okengine";
1
+ import { on, flow, http, fail } from "okengine/http";
2
2
 
3
3
  import { db } from "@/core";
4
4
  import { notes } from "@/db/schema.decl";
@@ -1,4 +1,4 @@
1
- import { on, flow, http, fail } from "okengine";
1
+ import { on, flow, http, fail } from "okengine/http";
2
2
 
3
3
  import { db, notesMutate } from "@/core";
4
4
  import { notes } from "@/db/schema.decl";
@@ -1,4 +1,4 @@
1
- import { on, flow, http } from "okengine";
1
+ import { on, flow, http } from "okengine/http";
2
2
 
3
3
  import { db, notesMutate, webhookSecret } from "@/core";
4
4
  import { notes } from "@/db/schema.decl";
@@ -1,4 +1,4 @@
1
- import { on, flow, every } from "okengine";
1
+ import { on, flow, every } from "okengine/http";
2
2
  import { isNull } from "drizzle-orm";
3
3
 
4
4
  import { db } from "@/core";
@@ -1,4 +1,4 @@
1
- import { on, flow, http } from "okengine";
1
+ import { on, flow, http } from "okengine/http";
2
2
  import { isNull } from "drizzle-orm";
3
3
 
4
4
  import { db } from "@/core";
@@ -1,4 +1,4 @@
1
- import { on, flow } from "okengine";
1
+ import { on, flow } from "okengine/http";
2
2
 
3
3
  import { noteCreatedMail } from "@/core";
4
4
  import { noteCreated } from "./signals";
@@ -1,13 +1,13 @@
1
- import { store, field, id, now } from "okengine";
1
+ import { store, field } from "okengine";
2
2
 
3
3
  /**
4
4
  * Notes domain — abstract declarations, emitted to
5
5
  * `src/db/schema.drizzle.ts` for the active dialect by `oke db` / `oke dev`.
6
6
  */
7
7
  export const notes = store.schema.table("notes", {
8
- id: field.text().primaryKey().defaultFn(id),
8
+ id: field.id().primaryKey(),
9
9
  title: field.text().notNull(),
10
10
  body: field.text().notNull(),
11
- archivedAt: field.integer(),
12
- createdAt: field.integer().notNull().defaultFn(now),
11
+ archivedAt: field.timestamp(),
12
+ createdAt: field.timestamp().notNull().now(),
13
13
  });
@@ -1,4 +1,4 @@
1
- import { on, flow, http } from "okengine";
1
+ import { on, flow, http } from "okengine/http";
2
2
  import { z } from "zod";
3
3
 
4
4
  /** Liveness for probes and `bun test`. */
@@ -1,4 +1,4 @@
1
- import { on, flow, http } from "okengine";
1
+ import { on, flow, http } from "okengine/http";
2
2
  import { z } from "zod";
3
3
 
4
4
  /** First-run welcome — visit :6530/ after `oke dev` (browser code block; curl stays JSON). */
@@ -1,4 +1,4 @@
1
- import { on, flow, http, fail } from "okengine";
1
+ import { on, flow, http, fail } from "okengine/http";
2
2
  import { eq } from "drizzle-orm";
3
3
 
4
4
  import { db, notesMutate } from "@/core";
@@ -1,4 +1,4 @@
1
- import { on, flow, http, fail } from "okengine";
1
+ import { on, flow, http, fail } from "okengine/http";
2
2
 
3
3
  import { db } from "@/core";
4
4
  import { notes } from "@/db/schema.decl";
@@ -1,4 +1,4 @@
1
- import { on, flow, http } from "okengine";
1
+ import { on, flow, http } from "okengine/http";
2
2
 
3
3
  import { db, notesMutate, webhookSecret } from "@/core";
4
4
  import { notes } from "@/db/schema.decl";
@@ -1,4 +1,4 @@
1
- import { on, flow, http } from "okengine";
1
+ import { on, flow, http } from "okengine/http";
2
2
  import { isNull } from "drizzle-orm";
3
3
 
4
4
  import { db } from "@/core";