@agent-native/core 0.80.5 → 0.80.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 +13 -0
- package/corpus/core/package.json +1 -1
- package/corpus/core/src/cli/create.ts +1 -0
- package/corpus/core/src/client/extensions/EmbeddedExtension.tsx +45 -0
- package/corpus/core/src/sharing/registry.ts +17 -0
- package/corpus/core/src/templates/default/pnpm-workspace.yaml +1 -0
- package/corpus/core/src/templates/workspace-root/pnpm-workspace.yaml +1 -0
- package/corpus/templates/analytics/.agents/skills/dashboard-management/SKILL.md +42 -4
- package/corpus/templates/analytics/actions/dashboard-mutation-api.ts +2 -1
- package/corpus/templates/analytics/actions/update-dashboard.ts +23 -9
- package/corpus/templates/analytics/app/components/dashboard/SqlChart.tsx +72 -1
- package/corpus/templates/analytics/app/i18n/zh-TW.ts +2 -0
- package/corpus/templates/analytics/app/i18n-data.ts +34 -0
- package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/SqlChartCard.tsx +88 -2
- package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/types.ts +7 -1
- package/corpus/templates/analytics/changelog/2026-06-29-dashboards-can-now-include-extension-panels-that-embed-a-san.md +6 -0
- package/corpus/templates/content/AGENTS.md +45 -44
- package/corpus/templates/content/README.md +16 -0
- package/corpus/templates/content/actions/_builder-cms-read-client.ts +125 -0
- package/corpus/templates/content/actions/_builder-cms-source-adapter.ts +28 -6
- package/corpus/templates/content/actions/_builder-cms-write-adapter.ts +238 -69
- package/corpus/templates/content/actions/_builder-cms-write-settings.ts +125 -43
- package/corpus/templates/content/actions/_database-source-utils.ts +746 -97
- package/corpus/templates/content/actions/_database-utils.ts +17 -14
- package/corpus/templates/content/actions/_federation-join.ts +14 -2
- package/corpus/templates/content/actions/_join-suggestion.ts +89 -14
- package/corpus/templates/content/actions/_local-file-documents.ts +2 -1
- package/corpus/templates/content/actions/attach-content-database-source.ts +124 -5
- package/corpus/templates/content/actions/bind-content-database-source-field.ts +256 -0
- package/corpus/templates/content/actions/change-content-database-source-role.ts +420 -0
- package/corpus/templates/content/actions/create-document.ts +8 -0
- package/corpus/templates/content/actions/execute-builder-source-batch.ts +282 -0
- package/corpus/templates/content/actions/execute-builder-source-execution.ts +220 -8
- package/corpus/templates/content/actions/get-content-database.ts +10 -2
- package/corpus/templates/content/actions/prepare-builder-source-execution.ts +19 -2
- package/corpus/templates/content/actions/prepare-builder-source-review.ts +47 -15
- package/corpus/templates/content/actions/refresh-content-database-source.ts +11 -4
- package/corpus/templates/content/actions/review-content-database-source-change-set.ts +6 -2
- package/corpus/templates/content/actions/set-content-database-source-write-mode.ts +32 -12
- package/corpus/templates/content/actions/stage-builder-revision.ts +14 -10
- package/corpus/templates/content/actions/validate-builder-source-execution.ts +25 -3
- package/corpus/templates/content/app/components/editor/DocumentDatabase.tsx +1520 -553
- package/corpus/templates/content/app/components/editor/DocumentProperties.tsx +150 -1
- package/corpus/templates/content/app/components/editor/database/DatabaseView.tsx +647 -66
- package/corpus/templates/content/app/components/editor/database-sources/BuilderSourceReviewDialog.tsx +543 -204
- package/corpus/templates/content/app/hooks/use-content-database.ts +62 -0
- package/corpus/templates/content/app/i18n/zh-TW.ts +64 -0
- package/corpus/templates/content/app/i18n-data.ts +784 -0
- package/corpus/templates/content/changelog/2026-06-29-builder-review-checks-now-preserve-publish-and-unpublish-cho.md +6 -0
- package/corpus/templates/content/changelog/2026-06-29-database-sources-can-now-be-added-as-more-rows-or-matched.md +6 -0
- package/corpus/templates/content/changelog/2026-06-29-fixed-loading-the-final-rows-in-larger-databases-without-bre.md +6 -0
- package/corpus/templates/content/shared/api.ts +91 -1
- package/corpus/templates/content/vite.config.ts +14 -7
- package/dist/cli/create.d.ts.map +1 -1
- package/dist/cli/create.js +1 -0
- package/dist/cli/create.js.map +1 -1
- package/dist/client/extensions/EmbeddedExtension.d.ts +10 -1
- package/dist/client/extensions/EmbeddedExtension.d.ts.map +1 -1
- package/dist/client/extensions/EmbeddedExtension.js +34 -3
- package/dist/client/extensions/EmbeddedExtension.js.map +1 -1
- package/dist/collab/routes.d.ts +2 -2
- package/dist/file-upload/actions/upload-image.d.ts +2 -2
- package/dist/notifications/routes.d.ts +1 -1
- package/dist/observability/routes.d.ts +7 -7
- package/dist/resources/handlers.d.ts +2 -2
- package/dist/server/agent-engine-api-key-route.d.ts +1 -1
- package/dist/server/transcribe-voice.d.ts +1 -1
- package/dist/sharing/registry.d.ts.map +1 -1
- package/dist/sharing/registry.js +11 -0
- package/dist/sharing/registry.js.map +1 -1
- package/dist/templates/default/pnpm-workspace.yaml +1 -0
- package/dist/templates/workspace-root/pnpm-workspace.yaml +1 -0
- package/package.json +1 -1
- package/src/templates/default/pnpm-workspace.yaml +1 -0
- package/src/templates/workspace-root/pnpm-workspace.yaml +1 -0
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { useActionMutation, useActionQuery } from "@agent-native/core/client";
|
|
2
2
|
import type {
|
|
3
|
+
AddContentDatabaseSourceFieldPropertyRequest,
|
|
3
4
|
AddDatabaseItemRequest,
|
|
4
5
|
AttachContentDatabaseSourceRequest,
|
|
5
6
|
BuilderCmsModelsResponse,
|
|
7
|
+
ChangeContentDatabaseSourceRoleRequest,
|
|
6
8
|
ContentDatabaseResponse,
|
|
7
9
|
CreateInlineDatabaseRequest,
|
|
8
10
|
CreateInlineDatabaseResponse,
|
|
@@ -12,6 +14,8 @@ import type {
|
|
|
12
14
|
ContentDatabaseSourceStatusResponse,
|
|
13
15
|
CreateDatabaseRequest,
|
|
14
16
|
DisconnectContentDatabaseSourceRequest,
|
|
17
|
+
ExecuteBuilderSourceBatchRequest,
|
|
18
|
+
ExecuteBuilderSourceBatchResponse,
|
|
15
19
|
DuplicateDatabaseItemRequest,
|
|
16
20
|
ExecuteBuilderSourceExecutionRequest,
|
|
17
21
|
MoveDatabaseItemRequest,
|
|
@@ -300,6 +304,47 @@ export function useAttachContentDatabaseSource(documentId: string) {
|
|
|
300
304
|
});
|
|
301
305
|
}
|
|
302
306
|
|
|
307
|
+
export function useChangeContentDatabaseSourceRole(documentId: string) {
|
|
308
|
+
const queryClient = useQueryClient();
|
|
309
|
+
return useActionMutation<
|
|
310
|
+
ContentDatabaseResponse,
|
|
311
|
+
ChangeContentDatabaseSourceRoleRequest
|
|
312
|
+
>("change-content-database-source-role", {
|
|
313
|
+
onSuccess: () => {
|
|
314
|
+
queryClient.invalidateQueries({
|
|
315
|
+
queryKey: contentDatabaseQueryKey(documentId),
|
|
316
|
+
});
|
|
317
|
+
queryClient.invalidateQueries({
|
|
318
|
+
queryKey: ["action", "get-content-database-source", { documentId }],
|
|
319
|
+
});
|
|
320
|
+
},
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export function useAddContentDatabaseSourceFieldProperty(documentId: string) {
|
|
325
|
+
const queryClient = useQueryClient();
|
|
326
|
+
return useActionMutation<
|
|
327
|
+
ContentDatabaseSourceFieldPropertyResponse,
|
|
328
|
+
AddContentDatabaseSourceFieldPropertyRequest
|
|
329
|
+
>("add-content-database-source-field-property", {
|
|
330
|
+
onSuccess: (data) => {
|
|
331
|
+
queryClient.setQueryData<ContentDatabaseResponse>(
|
|
332
|
+
contentDatabaseQueryKey(documentId),
|
|
333
|
+
(current) => applySourceFieldPropertyToDatabaseResponse(current, data),
|
|
334
|
+
);
|
|
335
|
+
queryClient.invalidateQueries({
|
|
336
|
+
queryKey: contentDatabaseQueryKey(documentId),
|
|
337
|
+
});
|
|
338
|
+
queryClient.invalidateQueries({
|
|
339
|
+
queryKey: ["action", "get-content-database-source", { documentId }],
|
|
340
|
+
});
|
|
341
|
+
queryClient.invalidateQueries({
|
|
342
|
+
queryKey: ["action", "list-document-properties", { documentId }],
|
|
343
|
+
});
|
|
344
|
+
},
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
|
|
303
348
|
export function useBuilderCmsModels(enabled: boolean) {
|
|
304
349
|
return useActionQuery<BuilderCmsModelsResponse>(
|
|
305
350
|
"list-builder-cms-models",
|
|
@@ -465,6 +510,23 @@ export function useExecuteBuilderSourceExecution(documentId: string) {
|
|
|
465
510
|
});
|
|
466
511
|
}
|
|
467
512
|
|
|
513
|
+
export function useExecuteBuilderSourceBatch(documentId: string) {
|
|
514
|
+
const queryClient = useQueryClient();
|
|
515
|
+
return useActionMutation<
|
|
516
|
+
ExecuteBuilderSourceBatchResponse,
|
|
517
|
+
ExecuteBuilderSourceBatchRequest
|
|
518
|
+
>("execute-builder-source-batch", {
|
|
519
|
+
onSuccess: () => {
|
|
520
|
+
queryClient.invalidateQueries({
|
|
521
|
+
queryKey: contentDatabaseQueryKey(documentId),
|
|
522
|
+
});
|
|
523
|
+
queryClient.invalidateQueries({
|
|
524
|
+
queryKey: ["action", "get-content-database-source", { documentId }],
|
|
525
|
+
});
|
|
526
|
+
},
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
|
|
468
530
|
export function useSetContentDatabaseSourceWriteMode(documentId: string) {
|
|
469
531
|
const queryClient = useQueryClient();
|
|
470
532
|
return useActionMutation<
|
|
@@ -514,6 +514,69 @@ const messages = {
|
|
|
514
514
|
updated: "Actualizado {{date}}",
|
|
515
515
|
},
|
|
516
516
|
database: {
|
|
517
|
+
addARowTo: "新增列至…",
|
|
518
|
+
addASource: "新增來源",
|
|
519
|
+
aField: "一個欄位",
|
|
520
|
+
addAnotherItemSourceBeforeChangingToDetails:
|
|
521
|
+
"先新增另一個項目來源,再將此來源改為詳細資料。",
|
|
522
|
+
addAsItems: "以項目新增",
|
|
523
|
+
addDetailsInstead: "改為新增詳細資料",
|
|
524
|
+
addDetailsToExistingItems: "為現有項目新增詳細資料",
|
|
525
|
+
addedFieldsFromSource: "已從此來源新增 {{count}} 個欄位。",
|
|
526
|
+
addedOneFieldFromSource: "已從此來源新增 1 個欄位。",
|
|
527
|
+
addingDetails: "正在新增詳細資料",
|
|
528
|
+
addingDetailsMatchedOn: "正在新增以 {{field}} 比對的詳細資料。",
|
|
529
|
+
addingItems: "正在新增項目",
|
|
530
|
+
addingItemsAsRows: "正在將項目新增為此資料庫中的獨立列。",
|
|
531
|
+
addMoreItemsToThisList: "向此清單新增更多項目",
|
|
532
|
+
allAvailableDetailFieldsAlreadyVisible: "所有可用的詳細資料欄位都已顯示。",
|
|
533
|
+
bestWhenSameKindAdditionalRows:
|
|
534
|
+
"適合此集合具有相同類型的記錄,且應顯示為其他列時使用。",
|
|
535
|
+
checkingForMatchingFields: "正在檢查可比對的欄位...",
|
|
536
|
+
checkingHowTheseRecordsMatch: "正在檢查這些記錄如何比對...",
|
|
537
|
+
chooseFields: "選擇欄位",
|
|
538
|
+
pickDetailsBecomeColumns: "選擇哪些詳細資料應成為資料庫欄位。",
|
|
539
|
+
detailFieldsAdded: "已新增詳細資料欄位",
|
|
540
|
+
fieldsWereNotAdded: "未新增欄位",
|
|
541
|
+
recommended: "建議",
|
|
542
|
+
recommendedBecauseSampledRowsMatchOn:
|
|
543
|
+
"建議使用,因為 {{percent}}% 的抽樣列在 {{field}} 上相符。",
|
|
544
|
+
recommendedWhenCollectionDescribesExistingRows:
|
|
545
|
+
"當此集合描述現有列時建議使用。",
|
|
546
|
+
sourceRole: "來源角色",
|
|
547
|
+
localNoCollection: "本機(無集合)",
|
|
548
|
+
liveWritesTestCollectionOnly: "即時寫入僅適用於 Agent Native 測試集合。",
|
|
549
|
+
builderWriteMode: "Builder 寫入模式",
|
|
550
|
+
builderWriteModeUpdated: "已更新 Builder 寫入模式",
|
|
551
|
+
allowPublishUnpublishPerItem: "允許逐項發佈/取消發佈",
|
|
552
|
+
builderChanges: "Builder 變更",
|
|
553
|
+
reviewLocalEditsBeforeBuilder: "在本機編輯到達 Builder 之前進行審查。",
|
|
554
|
+
liveWritesOffStagedForReview: "即時寫入已關閉 — 本機編輯僅暫存以供審查。",
|
|
555
|
+
noPendingChangesEditASourceBackedRow:
|
|
556
|
+
"沒有待處理的變更。編輯來源支援的列以在此排入佇列。",
|
|
557
|
+
reviewChanges: "審查變更",
|
|
558
|
+
recentlyPushed: "最近推送",
|
|
559
|
+
connectABuilderCollectionToMapRows:
|
|
560
|
+
"連接 Builder 集合或其他表格以對應到這些列。",
|
|
561
|
+
noBuilderWrites: "無 Builder 寫入。",
|
|
562
|
+
stageOnly: "僅暫存",
|
|
563
|
+
savesDraftsNeverPublishes: "將草稿儲存到 Builder — 從不發佈。",
|
|
564
|
+
publishUpdates: "發佈更新",
|
|
565
|
+
writesUpdatesToLiveEntries: "將更新寫入即時項目。",
|
|
566
|
+
sourcesFeedingThisColumn: "為此欄供給的來源",
|
|
567
|
+
noSourceFieldsBoundYet: "尚未繫結來源欄位。",
|
|
568
|
+
bindAFieldFromASource: "從來源繫結欄位",
|
|
569
|
+
confirmUnpublish: "確認取消發佈",
|
|
570
|
+
changedInBuilderSinceSync:
|
|
571
|
+
"自您同步以來在 Builder 中已變更 — 推送前請審查。",
|
|
572
|
+
thisUnpublishesTheLiveEntry: "這會取消發佈 Builder 中的即時項目。",
|
|
573
|
+
needsAttentionBeforeFinish: "完成前需要處理",
|
|
574
|
+
noPendingLocalBuilderChanges: "尚無待處理的本機 Builder 變更。",
|
|
575
|
+
needsAttention: "需要處理",
|
|
576
|
+
failedYouCanRetry: "失敗 — 您可以重試",
|
|
577
|
+
needsAFreshReview: "需要重新審查",
|
|
578
|
+
working: "處理中…",
|
|
579
|
+
ready: "就緒",
|
|
517
580
|
addAnotherSource: "新增另一個來源",
|
|
518
581
|
agentNativeApps: "Agent-Native 應用",
|
|
519
582
|
addDatabaseView: "新增資料庫檢視",
|
|
@@ -552,6 +615,7 @@ const messages = {
|
|
|
552
615
|
insertLeft: "在左側插入",
|
|
553
616
|
insertRight: "在右側插入",
|
|
554
617
|
layout: "布局",
|
|
618
|
+
matchExistingItemsToDetails: "將現有項目比對到詳細資料",
|
|
555
619
|
name: "名稱",
|
|
556
620
|
nameColumnMenu: "名稱列選單",
|
|
557
621
|
newBoardGroupName: "新看板分組名稱",
|