@robbeverhelst/do 1.58.0 → 1.60.0

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/do.js +17 -1
  2. package/package.json +1 -1
package/dist/do.js CHANGED
@@ -4913,6 +4913,22 @@ var datapoints = pgTable("datapoints", {
4913
4913
  index("datapoints_tenant_type_idx").on(t.tenantId, t.type),
4914
4914
  index("datapoints_tenant_entity_idx").on(t.tenantId, t.entity, t.entityId)
4915
4915
  ]);
4916
+ var eventOutbox = pgTable("event_outbox", {
4917
+ id: text("id").primaryKey(),
4918
+ tenantId: text("tenant_id").notNull().references(() => tenants.id, { onDelete: "cascade" }),
4919
+ userId: text("user_id").references(() => users.id, { onDelete: "set null" }),
4920
+ type: text("type").notNull(),
4921
+ entity: text("entity").notNull(),
4922
+ entityId: text("entity_id").notNull(),
4923
+ value: jsonb("value"),
4924
+ occurredAt: timestamp("occurred_at", { withTimezone: true }).notNull(),
4925
+ attempts: integer("attempts").notNull().default(0),
4926
+ lastError: text("last_error"),
4927
+ createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow()
4928
+ }, (t) => [
4929
+ index("event_outbox_created_idx").on(t.createdAt),
4930
+ index("event_outbox_tenant_idx").on(t.tenantId)
4931
+ ]);
4916
4932
  // ../../packages/schema/src/db/automations.ts
4917
4933
  var automations = pgTable("automations", {
4918
4934
  id: text("id").primaryKey(),
@@ -23934,7 +23950,7 @@ function parseCapture2(input) {
23934
23950
 
23935
23951
  // src/meta.ts
23936
23952
  var CLI_NAME = "do";
23937
- var VERSION = "1.58.0";
23953
+ var VERSION = "1.60.0";
23938
23954
  var API_PREFIX = "/api/v1";
23939
23955
  var DEFAULT_API_URL = "http://localhost:3001";
23940
23956
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robbeverhelst/do",
3
- "version": "1.58.0",
3
+ "version": "1.60.0",
4
4
  "private": false,
5
5
  "description": "do — the agent-drivable CLI over the public /api/v1 surface",
6
6
  "type": "module",