@agent-native/core 0.176.1 → 0.177.0-nightly-20260828155142

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 (71) hide show
  1. package/corpus/README.md +1 -1
  2. package/corpus/templates/analytics/actions/set-workspace-feature-flag.ts +2 -2
  3. package/corpus/templates/analytics/app/components/agents/FeatureFlagsFleetPanel.tsx +16 -1
  4. package/corpus/templates/analytics/changelog/2026-08-27-show-analytics-s-own-registered-flags-in-fleet-feature-flag-.md +6 -0
  5. package/corpus/templates/analytics/server/lib/workspace-feature-flags.ts +204 -32
  6. package/corpus/templates/assets/changelog/2026-08-26-templates-across-brand-kits.md +1 -0
  7. package/corpus/templates/calendar/app/components/calendar/CreateEventDialog.tsx +61 -68
  8. package/corpus/templates/calendar/app/components/calendar/DayView.tsx +9 -3
  9. package/corpus/templates/calendar/app/components/calendar/EventDetailPopover.tsx +3 -3
  10. package/corpus/templates/calendar/app/components/calendar/WeekView.tsx +8 -3
  11. package/corpus/templates/calendar/app/lib/calendar-timezone.ts +12 -3
  12. package/corpus/templates/calendar/changelog/2026-08-28-all-day-events-stay-in-the-compact-top-bar-in-day-and-week-v.md +6 -0
  13. package/corpus/templates/calendar/changelog/2026-08-28-event-creators-can-choose-whether-a-meeting-shows-as-free-or.md +6 -0
  14. package/corpus/templates/clips/app/global.css +0 -27
  15. package/corpus/templates/clips/app/i18n/en-US.ts +2 -0
  16. package/corpus/templates/clips/app/routes/download.tsx +131 -16
  17. package/corpus/templates/clips/app/routes/share.$shareId.tsx +35 -20
  18. package/corpus/templates/clips/server/routes/api/clips-latest.json.get.ts +77 -22
  19. package/corpus/templates/forms/actions/response-insights.ts +4 -4
  20. package/corpus/templates/forms/actions/retry-response-deliveries.ts +26 -0
  21. package/corpus/templates/forms/server/db/schema.ts +64 -17
  22. package/corpus/templates/forms/server/handlers/submissions.ts +1022 -94
  23. package/corpus/templates/forms/server/lib/integrations.ts +100 -33
  24. package/corpus/templates/forms/server/middleware/00-public-cors.ts +1 -1
  25. package/corpus/templates/forms/server/plugins/db.ts +40 -0
  26. package/corpus/templates/plan/agent-native.json +1 -4
  27. package/corpus/templates/slides/app/components/deck/SlideRenderer.tsx +6 -1
  28. package/corpus/templates/slides/app/components/editor/EditorActionCluster.tsx +2 -2
  29. package/corpus/templates/slides/app/components/editor/EditorToolbar.tsx +6 -6
  30. package/corpus/templates/slides/app/components/editor/ImageOverlay.tsx +78 -12
  31. package/corpus/templates/slides/app/components/editor/SlideContextToolbar.tsx +4 -4
  32. package/corpus/templates/slides/app/components/editor/SlideEditor.tsx +111 -27
  33. package/corpus/templates/slides/app/components/editor/SlidesLayersPanel.tsx +20 -34
  34. package/corpus/templates/slides/app/components/editor/slide-style.ts +2 -0
  35. package/corpus/templates/slides/app/global.css +35 -0
  36. package/corpus/templates/slides/app/lib/sanitize-slide-html.ts +133 -5
  37. package/corpus/templates/slides/app/lib/slide-image-replacement.ts +675 -0
  38. package/corpus/templates/slides/app/lib/validate-native-slide-html.ts +1 -0
  39. package/corpus/templates/slides/app/pages/DeckEditor.tsx +44 -44
  40. package/corpus/templates/slides/app/root.tsx +1 -22
  41. package/corpus/templates/slides/changelog/2026-08-27-image-fit-controls-apply-cover-crops-and-position.md +6 -0
  42. package/corpus/templates/slides/changelog/2026-08-28-shared-slides-with-a-style-block-render-again.md +6 -0
  43. package/dist/action.d.ts +3 -1
  44. package/dist/client/FeedbackButton.d.ts +12 -0
  45. package/dist/client/FeedbackButton.js +62 -28
  46. package/dist/client/app-providers.js +13 -1
  47. package/dist/client/feedback-context.d.ts +1 -0
  48. package/dist/client/feedback-context.js +3 -2
  49. package/dist/client/host-bridge.d.ts +1 -0
  50. package/dist/client/observability/ThumbsFeedback.js +73 -10
  51. package/dist/client/webmcp.d.ts +4 -0
  52. package/dist/client/webmcp.js +51 -4
  53. package/dist/collab/routes.d.ts +1 -1
  54. package/dist/collab/struct-routes.d.ts +1 -1
  55. package/dist/index.browser.d.ts +1 -1
  56. package/dist/index.browser.js +1 -1
  57. package/dist/observability/routes.d.ts +5 -5
  58. package/dist/observability/routes.js +8 -2
  59. package/dist/observability/store.d.ts +1 -1
  60. package/dist/observability/store.js +18 -3
  61. package/dist/observability/types.d.ts +1 -0
  62. package/dist/progress/routes.d.ts +1 -1
  63. package/dist/resources/handlers.d.ts +2 -2
  64. package/dist/secrets/routes.d.ts +9 -9
  65. package/dist/server/action-routes.d.ts +1 -6
  66. package/dist/server/action-routes.js +58 -17
  67. package/dist/server/agent-chat-plugin.js +8 -1
  68. package/dist/server/agent-engine-api-key-route.d.ts +1 -1
  69. package/dist/server/transcribe-voice.d.ts +1 -1
  70. package/docs/content/webmcp.mdx +31 -12
  71. package/package.json +1 -1
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  table,
3
3
  text,
4
+ uniqueIndex,
4
5
  ownableColumns,
5
6
  createSharesTable,
6
7
  } from "@agent-native/core/db/schema";
@@ -23,22 +24,68 @@ export const forms = table("forms", {
23
24
  ...ownableColumns(),
24
25
  });
25
26
 
26
- export const responses = table("responses", {
27
- id: text("id").primaryKey(),
28
- formId: text("form_id")
29
- .notNull()
30
- .references(() => forms.id),
31
- data: text("data").notNull(), // JSON object: { fieldId: value }
32
- submittedAt: text("submitted_at").notNull(),
33
- ip: text("ip"),
34
- submitterEmail: text("submitter_email"),
35
- // URL of the page the respondent was on, forwarded by trusted embeds (e.g.
36
- // the framework FeedbackButton) as a hidden pass-through field. Client-scrubbed
37
- // of sensitive query params. NULL for direct fills that send no page context.
38
- pageUrl: text("page_url"),
39
- // Runtime shell the feedback was sent from: "web", "electron", or "tauri".
40
- // Hidden pass-through field forwarded by trusted embeds. NULL when unknown.
41
- clientSurface: text("client_surface"),
42
- });
27
+ export const responses = table(
28
+ "responses",
29
+ {
30
+ id: text("id").primaryKey(),
31
+ formId: text("form_id")
32
+ .notNull()
33
+ .references(() => forms.id),
34
+ data: text("data").notNull(), // JSON object: { fieldId: value }
35
+ submittedAt: text("submitted_at").notNull(),
36
+ ip: text("ip"),
37
+ submitterEmail: text("submitter_email"),
38
+ // URL of the page the respondent was on, forwarded by trusted embeds (e.g.
39
+ // the framework FeedbackButton) as a hidden pass-through field. Client-scrubbed
40
+ // of sensitive query params. NULL for direct fills that send no page context.
41
+ pageUrl: text("page_url"),
42
+ // Runtime shell the feedback was sent from: "web", "electron", or "tauri".
43
+ // Hidden pass-through field forwarded by trusted embeds. NULL when unknown.
44
+ clientSurface: text("client_surface"),
45
+ // Client-generated key used to make retried public submissions idempotent.
46
+ idempotencyKey: text("idempotency_key"),
47
+ // JSON map of side-effect destination keys to pending/succeeded/failed.
48
+ deliveryStatus: text("delivery_status"),
49
+ // Immutable form/schema/integration snapshot used when an idempotent
50
+ // response needs to replay delivery after the form has changed.
51
+ deliverySnapshot: text("delivery_snapshot"),
52
+ },
53
+ (response) => ({
54
+ idempotencyKeyUnique: uniqueIndex("responses_form_idempotency_key_idx").on(
55
+ response.formId,
56
+ response.idempotencyKey,
57
+ ),
58
+ }),
59
+ );
60
+
61
+ export const responseDeliveries = table(
62
+ "response_deliveries",
63
+ {
64
+ id: text("id").primaryKey(),
65
+ responseId: text("response_id")
66
+ .notNull()
67
+ .references(() => responses.id),
68
+ destination: text("destination").notNull(),
69
+ kind: text("kind", {
70
+ enum: ["application-state", "email", "integration"],
71
+ }).notNull(),
72
+ payload: text("payload").notNull(),
73
+ status: text("status", {
74
+ enum: ["pending", "processing", "succeeded", "failed"],
75
+ })
76
+ .notNull()
77
+ .default("pending"),
78
+ claimToken: text("claim_token"),
79
+ claimedAt: text("claimed_at"),
80
+ errorMessage: text("error_message"),
81
+ createdAt: text("created_at").notNull(),
82
+ updatedAt: text("updated_at").notNull(),
83
+ },
84
+ (delivery) => ({
85
+ responseDestinationUnique: uniqueIndex(
86
+ "response_deliveries_response_destination_idx",
87
+ ).on(delivery.responseId, delivery.destination),
88
+ }),
89
+ );
43
90
 
44
91
  export const formShares = createSharesTable("form_shares");