@agent-native/core 0.77.4 → 0.77.7
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/core/CHANGELOG.md +31 -0
- package/corpus/core/package.json +3 -3
- package/corpus/core/src/agent/production-agent.ts +35 -0
- package/corpus/core/src/agent/run-store.ts +2 -0
- package/corpus/core/src/agent/thread-data-builder.ts +21 -2
- package/corpus/core/src/cli/create.ts +35 -1
- package/corpus/core/src/cli/skills.ts +8 -0
- package/corpus/core/src/client/AgentPanel.tsx +57 -25
- package/corpus/core/src/client/MultiTabAssistantChat.tsx +31 -1
- package/corpus/core/src/client/analytics.ts +24 -2
- package/corpus/core/src/client/changelog/Changelog.tsx +22 -10
- package/corpus/core/src/client/extensions/ExtensionsSidebarSection.tsx +405 -35
- package/corpus/core/src/client/use-agent-engine-configured.ts +29 -15
- package/corpus/core/src/client/use-chat-threads.ts +104 -55
- package/corpus/core/src/server/analytics.ts +27 -3
- package/corpus/core/src/sharing/access.ts +35 -13
- package/corpus/core/src/sharing/actions/share-resource.ts +32 -9
- package/corpus/core/src/sharing/actions/unshare-resource.ts +25 -2
- package/corpus/core/src/sharing/registry.ts +9 -0
- package/corpus/core/src/vite/client.ts +3 -0
- package/corpus/templates/analytics/actions/data-source-status.ts +25 -14
- package/corpus/templates/analytics/app/components/layout/NewAnalysisDialog.tsx +2 -2
- package/corpus/templates/analytics/app/lib/data-source-status.ts +47 -6
- package/corpus/templates/analytics/app/lib/data-sources.ts +14 -3
- package/corpus/templates/analytics/app/pages/DataSources.tsx +24 -5
- package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/PanelEditorDialog.tsx +15 -43
- package/corpus/templates/analytics/changelog/2026-06-25-fixed-hubspot-data-source-status-so-private-app-tokens-legac.md +6 -0
- package/corpus/templates/analytics/netlify.toml +1 -0
- package/corpus/templates/analytics/server/lib/credential-keys.ts +3 -1
- package/corpus/templates/analytics/server/routes/api/test-connection.post.ts +12 -3
- package/corpus/templates/assets/app/components/layout/Sidebar.tsx +5 -2
- package/corpus/templates/assets/changelog/2026-06-25-create-now-returns-from-agent-settings-to-the-asset-chat-eve.md +6 -0
- package/corpus/templates/assets/netlify.toml +1 -0
- package/corpus/templates/brain/netlify.toml +1 -0
- package/corpus/templates/calendar/app/i18n-data.ts +12 -0
- package/corpus/templates/calendar/app/lib/clipboard.ts +58 -0
- package/corpus/templates/calendar/app/pages/AvailabilitySettings.tsx +15 -9
- package/corpus/templates/calendar/app/pages/BookingLinksPage.tsx +6 -2
- package/corpus/templates/calendar/changelog/2026-06-25-booking-link-copy-buttons-no-longer-fail-when-clipboard-perm.md +6 -0
- package/corpus/templates/calendar/netlify.toml +1 -0
- package/corpus/templates/chat/netlify.toml +1 -0
- package/corpus/templates/clips/AGENTS.md +9 -7
- package/corpus/templates/clips/actions/add-vocabulary-term.ts +2 -2
- package/corpus/templates/clips/actions/archive-recording.ts +5 -2
- package/corpus/templates/clips/actions/clear-edits.ts +5 -2
- package/corpus/templates/clips/actions/create-folder.ts +7 -2
- package/corpus/templates/clips/actions/delete-folder.ts +7 -4
- package/corpus/templates/clips/actions/delete-recording-permanent.ts +5 -2
- package/corpus/templates/clips/actions/finalize-recording.ts +5 -2
- package/corpus/templates/clips/actions/import-loom-recording.ts +2 -1
- package/corpus/templates/clips/actions/list-notifications.ts +9 -5
- package/corpus/templates/clips/actions/list-organization-state.ts +2 -1
- package/corpus/templates/clips/actions/list-recordings.ts +4 -1
- package/corpus/templates/clips/actions/move-recording.ts +5 -1
- package/corpus/templates/clips/actions/rename-folder.ts +6 -3
- package/corpus/templates/clips/actions/request-transcript.ts +5 -2
- package/corpus/templates/clips/actions/restore-recording.ts +5 -2
- package/corpus/templates/clips/actions/save-browser-diagnostics.ts +21 -8
- package/corpus/templates/clips/actions/set-chapters.ts +5 -2
- package/corpus/templates/clips/actions/set-thumbnail.ts +5 -2
- package/corpus/templates/clips/actions/split-recording.ts +5 -2
- package/corpus/templates/clips/actions/stitch-recordings.ts +6 -2
- package/corpus/templates/clips/actions/trash-recording.ts +5 -2
- package/corpus/templates/clips/actions/undo-edit.ts +5 -2
- package/corpus/templates/clips/actions/view-screen.ts +2 -1
- package/corpus/templates/clips/app/components/library/recording-card.tsx +24 -7
- package/corpus/templates/clips/app/i18n/ar-SA.ts +14 -0
- package/corpus/templates/clips/app/i18n/de-DE.ts +14 -0
- package/corpus/templates/clips/app/i18n/en-US.ts +14 -0
- package/corpus/templates/clips/app/i18n/es-ES.ts +14 -0
- package/corpus/templates/clips/app/i18n/fr-FR.ts +14 -0
- package/corpus/templates/clips/app/i18n/hi-IN.ts +14 -0
- package/corpus/templates/clips/app/i18n/ja-JP.ts +14 -0
- package/corpus/templates/clips/app/i18n/ko-KR.ts +14 -0
- package/corpus/templates/clips/app/i18n/pt-BR.ts +14 -0
- package/corpus/templates/clips/app/i18n/zh-CN.ts +14 -0
- package/corpus/templates/clips/app/lib/browser-diagnostics-capture.ts +5 -1
- package/corpus/templates/clips/app/root.tsx +2 -2
- package/corpus/templates/clips/app/routes/_app.extensions.$id.tsx +4 -1
- package/corpus/templates/clips/app/routes/_app.extensions._index.tsx +4 -1
- package/corpus/templates/clips/app/routes/_app.settings._index.tsx +12 -5
- package/corpus/templates/clips/changelog/2026-06-25-chrome-extension-recordings-now-upload-large-capture-bursts.md +6 -0
- package/corpus/templates/clips/changelog/2026-06-25-console-diagnostics-keep-more-useful-non-secret-details-when.md +6 -0
- package/corpus/templates/clips/changelog/2026-06-25-fixed-owner-recognition-so-clips-created-from-desktop-and-we.md +6 -0
- package/corpus/templates/clips/changelog/2026-06-25-localized-clips-settings-changelog-and-extension-sidebar-lab.md +6 -0
- package/corpus/templates/clips/chrome-extension/package.json +3 -0
- package/corpus/templates/clips/chrome-extension/public/manifest.json +1 -1
- package/corpus/templates/clips/chrome-extension/src/background.ts +85 -9
- package/corpus/templates/clips/chrome-extension/src/content-script.ts +55 -0
- package/corpus/templates/clips/chrome-extension/src/offscreen.ts +79 -3
- package/corpus/templates/clips/chrome-extension/src/options.ts +10 -0
- package/corpus/templates/clips/chrome-extension/src/overlay.ts +6 -0
- package/corpus/templates/clips/chrome-extension/src/permission.ts +8 -1
- package/corpus/templates/clips/chrome-extension/src/popup.ts +65 -39
- package/corpus/templates/clips/chrome-extension/src/sentry.ts +206 -0
- package/corpus/templates/clips/chrome-extension/vite.config.ts +47 -0
- package/corpus/templates/clips/desktop/src/overlays/countdown.tsx +4 -2
- package/corpus/templates/clips/desktop/src/styles.css +15 -1
- package/corpus/templates/clips/netlify.toml +1 -0
- package/corpus/templates/clips/server/db/index.ts +1 -0
- package/corpus/templates/clips/server/lib/google-calendar-oauth.ts +35 -23
- package/corpus/templates/clips/server/lib/public-agent-context.ts +8 -1
- package/corpus/templates/clips/server/lib/recordings.ts +18 -2
- package/corpus/templates/clips/server/lib/slack-oauth.ts +9 -6
- package/corpus/templates/clips/server/plugins/onboarding-calendar.ts +6 -2
- package/corpus/templates/clips/server/routes/api/public-recording.get.ts +2 -2
- package/corpus/templates/clips/server/routes/api/recordings/[recordingId]/thumbnail.post.ts +5 -2
- package/corpus/templates/clips/server/routes/api/uploads/[recordingId]/abort.post.ts +5 -2
- package/corpus/templates/clips/server/routes/api/uploads/[recordingId]/chunk.post.ts +5 -2
- package/corpus/templates/clips/server/routes/api/uploads/[recordingId]/reset-chunks.post.ts +5 -2
- package/corpus/templates/clips/shared/browser-diagnostics.ts +14 -4
- package/corpus/templates/content/netlify.toml +1 -0
- package/corpus/templates/design/netlify.toml +1 -0
- package/corpus/templates/dispatch/netlify.toml +1 -0
- package/corpus/templates/forms/netlify.toml +1 -0
- package/corpus/templates/macros/netlify.toml +1 -0
- package/corpus/templates/mail/app/components/email/EmailList.tsx +7 -3
- package/corpus/templates/mail/app/components/email/EmailThread.tsx +4 -1
- package/corpus/templates/mail/app/components/layout/AppLayout.tsx +10 -2
- package/corpus/templates/mail/app/hooks/use-compose-state.ts +15 -5
- package/corpus/templates/mail/app/hooks/use-google-auth.ts +47 -9
- package/corpus/templates/mail/changelog/2026-06-25-account-avatars-stay-stable-while-mail-refreshes-google-acco.md +6 -0
- package/corpus/templates/mail/changelog/2026-06-25-mail-background-draft-saves-and-thread-prefetches-no-longer.md +6 -0
- package/corpus/templates/mail/netlify.toml +1 -0
- package/corpus/templates/plan/.agents/skills/visual-plan/references/canvas.md +8 -0
- package/corpus/templates/plan/netlify.toml +1 -0
- package/corpus/templates/slides/netlify.toml +1 -0
- package/corpus/templates/videos/netlify.toml +1 -0
- package/dist/agent/production-agent.d.ts.map +1 -1
- package/dist/agent/production-agent.js +31 -0
- package/dist/agent/production-agent.js.map +1 -1
- package/dist/agent/run-store.d.ts +2 -0
- package/dist/agent/run-store.d.ts.map +1 -1
- package/dist/agent/run-store.js +2 -0
- package/dist/agent/run-store.js.map +1 -1
- package/dist/agent/thread-data-builder.d.ts.map +1 -1
- package/dist/agent/thread-data-builder.js +23 -2
- package/dist/agent/thread-data-builder.js.map +1 -1
- package/dist/cli/create.d.ts.map +1 -1
- package/dist/cli/create.js +28 -1
- package/dist/cli/create.js.map +1 -1
- package/dist/cli/skills.d.ts +1 -1
- package/dist/cli/skills.d.ts.map +1 -1
- package/dist/cli/skills.js +8 -0
- package/dist/cli/skills.js.map +1 -1
- package/dist/client/AgentPanel.d.ts +8 -2
- package/dist/client/AgentPanel.d.ts.map +1 -1
- package/dist/client/AgentPanel.js +29 -15
- package/dist/client/AgentPanel.js.map +1 -1
- package/dist/client/MultiTabAssistantChat.d.ts.map +1 -1
- package/dist/client/MultiTabAssistantChat.js +4 -4
- package/dist/client/MultiTabAssistantChat.js.map +1 -1
- package/dist/client/analytics.d.ts.map +1 -1
- package/dist/client/analytics.js +22 -2
- package/dist/client/analytics.js.map +1 -1
- package/dist/client/changelog/Changelog.d.ts +7 -2
- package/dist/client/changelog/Changelog.d.ts.map +1 -1
- package/dist/client/changelog/Changelog.js +9 -7
- package/dist/client/changelog/Changelog.js.map +1 -1
- package/dist/client/extensions/ExtensionsSidebarSection.d.ts.map +1 -1
- package/dist/client/extensions/ExtensionsSidebarSection.js +339 -11
- package/dist/client/extensions/ExtensionsSidebarSection.js.map +1 -1
- package/dist/client/use-agent-engine-configured.d.ts.map +1 -1
- package/dist/client/use-agent-engine-configured.js +23 -13
- package/dist/client/use-agent-engine-configured.js.map +1 -1
- package/dist/client/use-chat-threads.d.ts +4 -0
- package/dist/client/use-chat-threads.d.ts.map +1 -1
- package/dist/client/use-chat-threads.js +49 -4
- package/dist/client/use-chat-threads.js.map +1 -1
- package/dist/collab/routes.d.ts +1 -1
- package/dist/file-upload/actions/upload-image.d.ts +2 -2
- package/dist/observability/routes.d.ts +7 -7
- package/dist/server/agent-engine-api-key-route.d.ts +2 -2
- package/dist/server/analytics.d.ts +4 -0
- package/dist/server/analytics.d.ts.map +1 -1
- package/dist/server/analytics.js +19 -3
- package/dist/server/analytics.js.map +1 -1
- package/dist/sharing/access.d.ts.map +1 -1
- package/dist/sharing/access.js +26 -12
- package/dist/sharing/access.js.map +1 -1
- package/dist/sharing/actions/share-resource.js +20 -9
- package/dist/sharing/actions/share-resource.js.map +1 -1
- package/dist/sharing/actions/unshare-resource.js +13 -2
- package/dist/sharing/actions/unshare-resource.js.map +1 -1
- package/dist/sharing/registry.d.ts +9 -0
- package/dist/sharing/registry.d.ts.map +1 -1
- package/dist/sharing/registry.js.map +1 -1
- package/dist/vite/client.d.ts.map +1 -1
- package/dist/vite/client.js +1 -0
- package/dist/vite/client.js.map +1 -1
- package/package.json +3 -3
|
@@ -24,16 +24,17 @@ import {
|
|
|
24
24
|
useMarkdownReady,
|
|
25
25
|
markdownUrlTransform,
|
|
26
26
|
} from "../chat/markdown-renderer.js";
|
|
27
|
+
import { DEFAULT_LOCALE, useOptionalLocale, type LocaleCode } from "../i18n.js";
|
|
27
28
|
import { cn } from "../utils.js";
|
|
28
29
|
|
|
29
30
|
// ─── Date formatting ──────────────────────────────────────────────────────────
|
|
30
31
|
|
|
31
|
-
function formatEntryHeading(entry: ChangelogEntry): string {
|
|
32
|
+
function formatEntryHeading(entry: ChangelogEntry, locale: LocaleCode): string {
|
|
32
33
|
if (entry.date) {
|
|
33
34
|
// Parse as a plain calendar date (avoid TZ shifting YYYY-MM-DD back a day).
|
|
34
35
|
const [y, m, d] = entry.date.split("-").map(Number);
|
|
35
36
|
if (y && m && d) {
|
|
36
|
-
const formatted = new Date(y, m - 1, d).toLocaleDateString(
|
|
37
|
+
const formatted = new Date(y, m - 1, d).toLocaleDateString(locale, {
|
|
37
38
|
year: "numeric",
|
|
38
39
|
month: "long",
|
|
39
40
|
day: "numeric",
|
|
@@ -170,6 +171,8 @@ function ChangelogEntries({
|
|
|
170
171
|
entries: ChangelogEntry[];
|
|
171
172
|
emptyText: string;
|
|
172
173
|
}) {
|
|
174
|
+
const locale = useOptionalLocale()?.locale ?? DEFAULT_LOCALE;
|
|
175
|
+
|
|
173
176
|
if (entries.length === 0) {
|
|
174
177
|
return <p className="text-sm text-muted-foreground">{emptyText}</p>;
|
|
175
178
|
}
|
|
@@ -178,7 +181,7 @@ function ChangelogEntries({
|
|
|
178
181
|
{entries.map((entry) => (
|
|
179
182
|
<section key={entry.id}>
|
|
180
183
|
<h4 className="mb-2 text-sm font-semibold text-foreground">
|
|
181
|
-
{formatEntryHeading(entry)}
|
|
184
|
+
{formatEntryHeading(entry, locale)}
|
|
182
185
|
</h4>
|
|
183
186
|
<ChangelogBody markdown={entry.body} />
|
|
184
187
|
</section>
|
|
@@ -196,6 +199,8 @@ export interface ChangelogDialogProps {
|
|
|
196
199
|
markdown: string;
|
|
197
200
|
/** Dialog heading. Default: "What's new". */
|
|
198
201
|
title?: string;
|
|
202
|
+
closeLabel?: string;
|
|
203
|
+
emptyText?: string;
|
|
199
204
|
}
|
|
200
205
|
|
|
201
206
|
export function ChangelogDialog({
|
|
@@ -203,6 +208,8 @@ export function ChangelogDialog({
|
|
|
203
208
|
onOpenChange,
|
|
204
209
|
markdown,
|
|
205
210
|
title = "What's new",
|
|
211
|
+
closeLabel = "Close",
|
|
212
|
+
emptyText = "No updates have been published yet.",
|
|
206
213
|
}: ChangelogDialogProps) {
|
|
207
214
|
const entries = useMemo(() => parseChangelog(markdown), [markdown]);
|
|
208
215
|
|
|
@@ -241,17 +248,14 @@ export function ChangelogDialog({
|
|
|
241
248
|
<button
|
|
242
249
|
type="button"
|
|
243
250
|
onClick={() => onOpenChange(false)}
|
|
244
|
-
aria-label=
|
|
251
|
+
aria-label={closeLabel}
|
|
245
252
|
className="rounded-sm p-1 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground"
|
|
246
253
|
>
|
|
247
254
|
<IconX className="h-4 w-4" />
|
|
248
255
|
</button>
|
|
249
256
|
</div>
|
|
250
257
|
<div className="overflow-y-auto px-5 py-4">
|
|
251
|
-
<ChangelogEntries
|
|
252
|
-
entries={entries}
|
|
253
|
-
emptyText="No updates have been published yet."
|
|
254
|
-
/>
|
|
258
|
+
<ChangelogEntries entries={entries} emptyText={emptyText} />
|
|
255
259
|
</div>
|
|
256
260
|
</div>
|
|
257
261
|
</div>
|
|
@@ -267,6 +271,9 @@ export interface ChangelogSettingsCardProps {
|
|
|
267
271
|
limit?: number;
|
|
268
272
|
/** Card heading. Default: "What's new". */
|
|
269
273
|
title?: string;
|
|
274
|
+
closeLabel?: string;
|
|
275
|
+
emptyText?: string;
|
|
276
|
+
viewAllLabel?: string;
|
|
270
277
|
className?: string;
|
|
271
278
|
}
|
|
272
279
|
|
|
@@ -274,6 +281,9 @@ export function ChangelogSettingsCard({
|
|
|
274
281
|
markdown,
|
|
275
282
|
limit = 2,
|
|
276
283
|
title = "What's new",
|
|
284
|
+
closeLabel = "Close",
|
|
285
|
+
emptyText = "No updates yet.",
|
|
286
|
+
viewAllLabel = "View all updates",
|
|
277
287
|
className,
|
|
278
288
|
}: ChangelogSettingsCardProps) {
|
|
279
289
|
const entries = useMemo(() => parseChangelog(markdown), [markdown]);
|
|
@@ -296,14 +306,14 @@ export function ChangelogSettingsCard({
|
|
|
296
306
|
<h3 className="text-sm font-semibold">{title}</h3>
|
|
297
307
|
</div>
|
|
298
308
|
<div className="px-5 py-4">
|
|
299
|
-
<ChangelogEntries entries={shown} emptyText=
|
|
309
|
+
<ChangelogEntries entries={shown} emptyText={emptyText} />
|
|
300
310
|
{hasMore && (
|
|
301
311
|
<button
|
|
302
312
|
type="button"
|
|
303
313
|
onClick={() => setDialogOpen(true)}
|
|
304
314
|
className="mt-4 text-sm font-medium text-foreground underline underline-offset-2"
|
|
305
315
|
>
|
|
306
|
-
|
|
316
|
+
{viewAllLabel}
|
|
307
317
|
</button>
|
|
308
318
|
)}
|
|
309
319
|
</div>
|
|
@@ -312,6 +322,8 @@ export function ChangelogSettingsCard({
|
|
|
312
322
|
onOpenChange={setDialogOpen}
|
|
313
323
|
markdown={markdown}
|
|
314
324
|
title={title}
|
|
325
|
+
closeLabel={closeLabel}
|
|
326
|
+
emptyText={emptyText}
|
|
315
327
|
/>
|
|
316
328
|
</div>
|
|
317
329
|
);
|