@agent-native/core 0.82.0 → 0.83.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.
- package/corpus/README.md +1 -1
- package/corpus/core/CHANGELOG.md +6 -0
- package/corpus/core/package.json +1 -1
- package/corpus/core/src/client/CommandMenu.tsx +34 -12
- package/corpus/templates/analytics/actions/hubspot-deals.ts +64 -4
- package/corpus/templates/content/.env.local.example +6 -0
- package/corpus/templates/content/AGENTS.md +10 -1
- package/corpus/templates/content/actions/_builder-cms-read-client.ts +14 -1
- package/corpus/templates/content/actions/_builder-cms-source-adapter.ts +43 -0
- package/corpus/templates/content/actions/_builder-cms-write-adapter.ts +79 -7
- package/corpus/templates/content/actions/_database-source-utils.ts +987 -22
- package/corpus/templates/content/actions/_database-utils.ts +41 -0
- package/corpus/templates/content/actions/_local-file-documents.ts +74 -1
- package/corpus/templates/content/actions/attach-content-database-source.ts +33 -8
- package/corpus/templates/content/actions/change-content-database-source-role.ts +14 -0
- package/corpus/templates/content/actions/disconnect-content-database-source.ts +3 -0
- package/corpus/templates/content/actions/execute-builder-source-execution.ts +71 -3
- package/corpus/templates/content/actions/list-content-databases.ts +41 -33
- package/corpus/templates/content/actions/process-builder-body-hydration.ts +47 -0
- package/corpus/templates/content/actions/update-document.ts +93 -0
- package/corpus/templates/content/app/blocks/SourceComponentBlock.tsx +277 -0
- package/corpus/templates/content/app/blocks/contentBlockRegistry.tsx +2 -0
- package/corpus/templates/content/app/components/editor/DocumentEditor.tsx +45 -4
- package/corpus/templates/content/app/components/editor/VisualEditor.tsx +5 -1
- package/corpus/templates/content/app/components/editor/database/DatabaseView.tsx +92 -0
- package/corpus/templates/content/app/components/editor/database-sources/BuilderSourceReviewDialog.tsx +5 -3
- package/corpus/templates/content/app/components/editor/extensions/registryBlocks.ts +41 -0
- package/corpus/templates/content/app/components/editor/registrySlashItems.ts +4 -0
- package/corpus/templates/content/app/global.css +10 -3
- package/corpus/templates/content/app/hooks/use-content-database.ts +24 -0
- package/corpus/templates/content/app/i18n/zh-TW.ts +24 -0
- package/corpus/templates/content/app/i18n-data.ts +212 -0
- package/corpus/templates/content/app/lib/content-command-search.ts +64 -0
- package/corpus/templates/content/app/root.tsx +236 -8
- package/corpus/templates/content/changelog/2026-06-29-builder-cms-sources-now-sync-article-bodies-through-content.md +6 -0
- package/corpus/templates/content/changelog/2026-06-30-builder-article-media-now-render-as-images-and-embeds-when-r.md +6 -0
- package/corpus/templates/content/changelog/2026-06-30-builder-source-components-now-render-as-preserved-preview-bl.md +6 -0
- package/corpus/templates/content/changelog/2026-06-30-cmd-k-search-now-opens-from-the-editor-and-finds-real-content.md +6 -0
- package/corpus/templates/content/package.json +3 -1
- package/corpus/templates/content/scripts/check-native-deps.mjs +57 -0
- package/corpus/templates/content/scripts/dev-database.mjs +83 -0
- package/corpus/templates/content/scripts/seed-demo-user.mjs +107 -0
- package/corpus/templates/content/server/db/schema.ts +27 -0
- package/corpus/templates/content/server/plugins/db.ts +33 -0
- package/corpus/templates/content/shared/api.ts +45 -0
- package/corpus/templates/content/shared/builder-mdx.ts +905 -5
- package/corpus/templates/content/shared/nfm-registry.ts +2 -0
- package/corpus/templates/content/shared/source-component-block.ts +141 -0
- package/corpus/templates/design/app/components/design/DesignCanvas.tsx +5 -1
- package/corpus/templates/design/app/components/design/MultiScreenCanvas.tsx +229 -131
- package/corpus/templates/design/app/components/design/bridge/editor-chrome.bridge.ts +103 -6
- package/corpus/templates/design/app/hooks/useDesignHotkeys.ts +6 -3
- package/corpus/templates/design/app/pages/DesignEditor.tsx +382 -72
- package/corpus/templates/design/changelog/2026-06-30-canvas-editing-now-keeps-undo-redo-and-cross-screen-layer-mo.md +6 -0
- package/dist/client/CommandMenu.d.ts +6 -2
- package/dist/client/CommandMenu.d.ts.map +1 -1
- package/dist/client/CommandMenu.js +25 -14
- package/dist/client/CommandMenu.js.map +1 -1
- package/dist/file-upload/actions/upload-image.d.ts +2 -2
- package/dist/notifications/routes.d.ts +2 -2
- package/dist/observability/routes.d.ts +8 -8
- package/dist/server/agent-engine-api-key-route.d.ts +1 -1
- package/package.json +1 -1
|
@@ -309,6 +309,29 @@ export interface ContentDatabaseMembership {
|
|
|
309
309
|
databaseDocumentId: string;
|
|
310
310
|
databaseTitle: string;
|
|
311
311
|
position: number;
|
|
312
|
+
sourceId?: string | null;
|
|
313
|
+
bodyHydration?: ContentDatabaseBodyHydration;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
export type ContentDatabaseBodyHydrationState =
|
|
317
|
+
| "pending"
|
|
318
|
+
| "hydrating"
|
|
319
|
+
| "hydrated"
|
|
320
|
+
| "error";
|
|
321
|
+
|
|
322
|
+
export interface ContentDatabaseBodyHydration {
|
|
323
|
+
status: ContentDatabaseBodyHydrationState;
|
|
324
|
+
attemptedAt: string | null;
|
|
325
|
+
error: string | null;
|
|
326
|
+
version: string | null;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
export interface ContentDatabaseBodyHydrationSummary {
|
|
330
|
+
pending: number;
|
|
331
|
+
hydrating: number;
|
|
332
|
+
hydrated: number;
|
|
333
|
+
error: number;
|
|
334
|
+
total: number;
|
|
312
335
|
}
|
|
313
336
|
|
|
314
337
|
export interface ContentDatabaseItem {
|
|
@@ -317,6 +340,7 @@ export interface ContentDatabaseItem {
|
|
|
317
340
|
document: Document;
|
|
318
341
|
position: number;
|
|
319
342
|
properties: DocumentProperty[];
|
|
343
|
+
bodyHydration?: ContentDatabaseBodyHydration;
|
|
320
344
|
sourceRecord?: ContentDatabaseSourceRow;
|
|
321
345
|
// Federation (NEXT): the row's normalized join key, and the read-only columns
|
|
322
346
|
// a secondary source contributes on top of it. Absent for non-federated rows.
|
|
@@ -439,6 +463,12 @@ export interface ContentDatabaseSourceBodyChange {
|
|
|
439
463
|
summary: string;
|
|
440
464
|
currentExcerpt: string | null;
|
|
441
465
|
proposedExcerpt: string | null;
|
|
466
|
+
currentHash?: string | null;
|
|
467
|
+
proposedHash?: string | null;
|
|
468
|
+
proposedContent?: string | null;
|
|
469
|
+
proposedBlocksJson?: string | null;
|
|
470
|
+
sidecarsJson?: string | null;
|
|
471
|
+
warnings?: string[];
|
|
442
472
|
}
|
|
443
473
|
|
|
444
474
|
export interface ContentDatabaseSourceReviewEvent {
|
|
@@ -565,6 +595,7 @@ export interface ContentDatabaseSource {
|
|
|
565
595
|
fields: ContentDatabaseSourceFieldMapping[];
|
|
566
596
|
rows: ContentDatabaseSourceRow[];
|
|
567
597
|
changeSets: ContentDatabaseSourceChangeSet[];
|
|
598
|
+
bodyHydration?: ContentDatabaseBodyHydrationSummary;
|
|
568
599
|
}
|
|
569
600
|
|
|
570
601
|
export interface ContentDatabaseSourceStatusResponse {
|
|
@@ -945,3 +976,17 @@ export interface PrepareBuilderSourceReviewResponse {
|
|
|
945
976
|
source: ContentDatabaseSource | null;
|
|
946
977
|
review: ContentDatabaseSourceReviewPayload;
|
|
947
978
|
}
|
|
979
|
+
|
|
980
|
+
export interface ProcessBuilderBodyHydrationRequest {
|
|
981
|
+
sourceId: string;
|
|
982
|
+
documentId?: string;
|
|
983
|
+
limit?: number;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
export interface ProcessBuilderBodyHydrationResponse {
|
|
987
|
+
sourceId: string;
|
|
988
|
+
processed: number;
|
|
989
|
+
succeeded: number;
|
|
990
|
+
failed: number;
|
|
991
|
+
remaining: number;
|
|
992
|
+
}
|