@agent-native/core 0.177.0-nightly-20260906034133 → 0.177.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 (44) hide show
  1. package/corpus/README.md +1 -1
  2. package/corpus/templates/analytics/CHANGELOG.md +13 -0
  3. package/corpus/templates/calendar/CHANGELOG.md +20 -0
  4. package/corpus/templates/clips/CHANGELOG.md +7 -0
  5. package/corpus/templates/clips/server/plugins/db.ts +10 -2
  6. package/corpus/templates/content/CHANGELOG.md +6 -0
  7. package/corpus/templates/design/CHANGELOG.md +16 -0
  8. package/corpus/templates/design/app/components/design/EditPanel.tsx +8 -1
  9. package/corpus/templates/design/app/components/design/MultiScreenCanvas.tsx +12 -20
  10. package/corpus/templates/design/app/components/design/multi-screen/board-surface-html.ts +23 -22
  11. package/corpus/templates/design/app/pages/DesignEditor.tsx +43 -6
  12. package/corpus/templates/design/app/pages/Index.tsx +10 -3
  13. package/corpus/templates/design/app/pages/Templates.tsx +1 -18
  14. package/corpus/templates/design/app/pages/design-editor/canvas-primitive-insert.ts +25 -11
  15. package/corpus/templates/design/app/pages/design-editor/canvas-primitives.ts +8 -18
  16. package/corpus/templates/design/app/pages/design-editor/commands/create-primitive.ts +4 -0
  17. package/corpus/templates/design/changelog/2026-09-04-board-text-is-readable-on-a-light-canvas.md +6 -0
  18. package/corpus/templates/design/changelog/2026-09-04-designs-grid-fills-its-last-row.md +6 -0
  19. package/corpus/templates/design/changelog/2026-09-04-no-design-system-now-sticks-when-you-choose-it.md +6 -0
  20. package/corpus/templates/design/changelog/2026-09-04-the-canvas-keeps-its-colour-when-you-draw-on-it.md +6 -0
  21. package/corpus/templates/design/changelog/2026-09-04-the-design-system-picker-stays-after-a-template-fil.md +6 -0
  22. package/corpus/templates/dispatch/CHANGELOG.md +6 -0
  23. package/corpus/templates/factory/CHANGELOG.md +18 -0
  24. package/corpus/templates/mail/CHANGELOG.md +11 -0
  25. package/dist/automation/index.d.ts +1 -1
  26. package/dist/chat-threads/schema.d.ts +4 -4
  27. package/dist/chat-threads/schema.js +5 -5
  28. package/dist/collab/routes.d.ts +1 -1
  29. package/dist/collab/struct-routes.d.ts +1 -1
  30. package/dist/email-catalog/log.js +2 -0
  31. package/dist/email-catalog/schema.d.ts +1 -1
  32. package/dist/email-catalog/schema.js +2 -2
  33. package/dist/file-upload/actions/upload-image.d.ts +2 -2
  34. package/dist/observability/routes.d.ts +4 -4
  35. package/dist/org/migrations.js +36 -8
  36. package/dist/org/schema.d.ts +8 -8
  37. package/dist/org/schema.js +13 -9
  38. package/dist/progress/routes.d.ts +1 -1
  39. package/dist/secrets/routes.d.ts +6 -6
  40. package/dist/secrets/schema.d.ts +2 -2
  41. package/dist/secrets/schema.js +3 -3
  42. package/dist/server/identity-sso-migrations.js +24 -4
  43. package/package.json +3 -3
  44. package/corpus/templates/clips/data/clips-transactional-emails/config.json +0 -3
@@ -153,7 +153,7 @@ export declare const appSecrets: import("drizzle-orm/pg-core").PgTableWithColumn
153
153
  name: "created_at";
154
154
  tableName: "app_secrets";
155
155
  dataType: "number";
156
- columnType: "PgInteger";
156
+ columnType: "PgBigInt53";
157
157
  data: number;
158
158
  driverParam: string | number;
159
159
  notNull: true;
@@ -170,7 +170,7 @@ export declare const appSecrets: import("drizzle-orm/pg-core").PgTableWithColumn
170
170
  name: "updated_at";
171
171
  tableName: "app_secrets";
172
172
  dataType: "number";
173
- columnType: "PgInteger";
173
+ columnType: "PgBigInt53";
174
174
  data: number;
175
175
  driverParam: string | number;
176
176
  notNull: true;
@@ -9,7 +9,7 @@
9
9
  * (by orgId). OAuth-kind secrets never create a row here — they surface via
10
10
  * `@agent-native/core/oauth-tokens` instead.
11
11
  */
12
- import { table, text, integer } from "../db/schema.js";
12
+ import { table, text, bigint } from "../db/schema.js";
13
13
  export const appSecrets = table("app_secrets", {
14
14
  id: text("id").primaryKey(),
15
15
  /** "user" or "workspace" — who the secret is scoped to. */
@@ -26,8 +26,8 @@ export const appSecrets = table("app_secrets", {
26
26
  description: text("description"),
27
27
  /** JSON array of allowed URL origins. Null = allow all. */
28
28
  urlAllowlist: text("url_allowlist"),
29
- createdAt: integer("created_at").notNull(),
30
- updatedAt: integer("updated_at").notNull(),
29
+ createdAt: bigint("created_at", { mode: "number" }).notNull(),
30
+ updatedAt: bigint("updated_at", { mode: "number" }).notNull(),
31
31
  });
32
32
  /**
33
33
  * Raw SQL for creating the app_secrets table. Used by the on-demand
@@ -16,9 +16,9 @@ export const IDENTITY_SSO_MIGRATIONS = [
16
16
  redirect_uri TEXT NOT NULL,
17
17
  authority TEXT NOT NULL,
18
18
  code_challenge TEXT NOT NULL,
19
- created_at INTEGER,
20
- expires_at INTEGER,
21
- consumed_at INTEGER
19
+ created_at BIGINT,
20
+ expires_at BIGINT,
21
+ consumed_at BIGINT
22
22
  );
23
23
 
24
24
  CREATE INDEX IF NOT EXISTS identity_sso_flow_state_expires_idx
@@ -26,11 +26,31 @@ export const IDENTITY_SSO_MIGRATIONS = [
26
26
 
27
27
  CREATE TABLE IF NOT EXISTS identity_sso_jti (
28
28
  jti TEXT PRIMARY KEY,
29
- seen_at INTEGER
29
+ seen_at BIGINT
30
30
  );
31
31
 
32
32
  CREATE INDEX IF NOT EXISTS identity_sso_jti_seen_idx
33
33
  ON identity_sso_jti (seen_at);
34
34
  `,
35
35
  },
36
+ {
37
+ // Widening only. `created_at`/`expires_at`/`consumed_at`/`seen_at` store
38
+ // JS `Date.now()` millisecond epochs (13 digits) but v1 declared them
39
+ // `INTEGER` — Postgres int4, max 2,147,483,647 — so every SSO flow-state
40
+ // insert overflows with `value "<ms epoch>" is out of range for type
41
+ // integer`. This is the framework release migration (see module doc), so
42
+ // it's the one that actually creates these tables in production.
43
+ version: 2,
44
+ name: "identity-sso-timestamps-bigint",
45
+ sql: `
46
+ -- guard:allow-destructive-ddl — widen legacy int4 timestamp storage to preserve Date.now() values
47
+ ALTER TABLE identity_sso_flow_state ALTER COLUMN created_at TYPE BIGINT;
48
+ -- guard:allow-destructive-ddl — widen legacy int4 timestamp storage to preserve Date.now() values
49
+ ALTER TABLE identity_sso_flow_state ALTER COLUMN expires_at TYPE BIGINT;
50
+ -- guard:allow-destructive-ddl — widen legacy int4 timestamp storage to preserve Date.now() values
51
+ ALTER TABLE identity_sso_flow_state ALTER COLUMN consumed_at TYPE BIGINT;
52
+ -- guard:allow-destructive-ddl — widen legacy int4 timestamp storage to preserve Date.now() values
53
+ ALTER TABLE identity_sso_jti ALTER COLUMN seen_at TYPE BIGINT;
54
+ `,
55
+ },
36
56
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-native/core",
3
- "version": "0.177.0-nightly-20260906034133",
3
+ "version": "0.177.0",
4
4
  "description": "The agentic application framework for building autonomous agents with intuitive UIs",
5
5
  "homepage": "https://github.com/BuilderIO/agent-native#readme",
6
6
  "bugs": {
@@ -439,8 +439,8 @@
439
439
  "y-protocols": "^1.0.7",
440
440
  "yjs": "^13.6.32",
441
441
  "zod": "^4.3.6",
442
- "@agent-native/recap-cli": "0.5.25",
443
- "@agent-native/toolkit": "^0.19.4-nightly-20260906034133"
442
+ "@agent-native/recap-cli": "0.5.26",
443
+ "@agent-native/toolkit": "^0.19.4"
444
444
  },
445
445
  "devDependencies": {
446
446
  "@ai-sdk/anthropic": "^3.0.71",
@@ -1,3 +0,0 @@
1
- {
2
- "enabledAt": "2026-07-25T17:29:40.915Z"
3
- }