@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.
- package/corpus/README.md +1 -1
- package/corpus/templates/analytics/actions/set-workspace-feature-flag.ts +2 -2
- package/corpus/templates/analytics/app/components/agents/FeatureFlagsFleetPanel.tsx +16 -1
- package/corpus/templates/analytics/changelog/2026-08-27-show-analytics-s-own-registered-flags-in-fleet-feature-flag-.md +6 -0
- package/corpus/templates/analytics/server/lib/workspace-feature-flags.ts +204 -32
- package/corpus/templates/assets/changelog/2026-08-26-templates-across-brand-kits.md +1 -0
- package/corpus/templates/calendar/app/components/calendar/CreateEventDialog.tsx +61 -68
- package/corpus/templates/calendar/app/components/calendar/DayView.tsx +9 -3
- package/corpus/templates/calendar/app/components/calendar/EventDetailPopover.tsx +3 -3
- package/corpus/templates/calendar/app/components/calendar/WeekView.tsx +8 -3
- package/corpus/templates/calendar/app/lib/calendar-timezone.ts +12 -3
- 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
- package/corpus/templates/calendar/changelog/2026-08-28-event-creators-can-choose-whether-a-meeting-shows-as-free-or.md +6 -0
- package/corpus/templates/clips/app/global.css +0 -27
- package/corpus/templates/clips/app/i18n/en-US.ts +2 -0
- package/corpus/templates/clips/app/routes/download.tsx +131 -16
- package/corpus/templates/clips/app/routes/share.$shareId.tsx +35 -20
- package/corpus/templates/clips/server/routes/api/clips-latest.json.get.ts +77 -22
- package/corpus/templates/forms/actions/response-insights.ts +4 -4
- package/corpus/templates/forms/actions/retry-response-deliveries.ts +26 -0
- package/corpus/templates/forms/server/db/schema.ts +64 -17
- package/corpus/templates/forms/server/handlers/submissions.ts +1022 -94
- package/corpus/templates/forms/server/lib/integrations.ts +100 -33
- package/corpus/templates/forms/server/middleware/00-public-cors.ts +1 -1
- package/corpus/templates/forms/server/plugins/db.ts +40 -0
- package/corpus/templates/plan/agent-native.json +1 -4
- package/corpus/templates/slides/app/components/deck/SlideRenderer.tsx +6 -1
- package/corpus/templates/slides/app/components/editor/EditorActionCluster.tsx +2 -2
- package/corpus/templates/slides/app/components/editor/EditorToolbar.tsx +6 -6
- package/corpus/templates/slides/app/components/editor/ImageOverlay.tsx +78 -12
- package/corpus/templates/slides/app/components/editor/SlideContextToolbar.tsx +4 -4
- package/corpus/templates/slides/app/components/editor/SlideEditor.tsx +111 -27
- package/corpus/templates/slides/app/components/editor/SlidesLayersPanel.tsx +20 -34
- package/corpus/templates/slides/app/components/editor/slide-style.ts +2 -0
- package/corpus/templates/slides/app/global.css +35 -0
- package/corpus/templates/slides/app/lib/sanitize-slide-html.ts +133 -5
- package/corpus/templates/slides/app/lib/slide-image-replacement.ts +675 -0
- package/corpus/templates/slides/app/lib/validate-native-slide-html.ts +1 -0
- package/corpus/templates/slides/app/pages/DeckEditor.tsx +44 -44
- package/corpus/templates/slides/app/root.tsx +1 -22
- package/corpus/templates/slides/changelog/2026-08-27-image-fit-controls-apply-cover-crops-and-position.md +6 -0
- package/corpus/templates/slides/changelog/2026-08-28-shared-slides-with-a-style-block-render-again.md +6 -0
- package/dist/action.d.ts +3 -1
- package/dist/client/FeedbackButton.d.ts +12 -0
- package/dist/client/FeedbackButton.js +62 -28
- package/dist/client/app-providers.js +13 -1
- package/dist/client/feedback-context.d.ts +1 -0
- package/dist/client/feedback-context.js +3 -2
- package/dist/client/host-bridge.d.ts +1 -0
- package/dist/client/observability/ThumbsFeedback.js +73 -10
- package/dist/client/webmcp.d.ts +4 -0
- package/dist/client/webmcp.js +51 -4
- package/dist/collab/routes.d.ts +1 -1
- package/dist/collab/struct-routes.d.ts +1 -1
- package/dist/index.browser.d.ts +1 -1
- package/dist/index.browser.js +1 -1
- package/dist/observability/routes.d.ts +5 -5
- package/dist/observability/routes.js +8 -2
- package/dist/observability/store.d.ts +1 -1
- package/dist/observability/store.js +18 -3
- package/dist/observability/types.d.ts +1 -0
- package/dist/progress/routes.d.ts +1 -1
- package/dist/resources/handlers.d.ts +2 -2
- package/dist/secrets/routes.d.ts +9 -9
- package/dist/server/action-routes.d.ts +1 -6
- package/dist/server/action-routes.js +58 -17
- package/dist/server/agent-chat-plugin.js +8 -1
- package/dist/server/agent-engine-api-key-route.d.ts +1 -1
- package/dist/server/transcribe-voice.d.ts +1 -1
- package/docs/content/webmcp.mdx +31 -12
- 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(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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");
|