nolo-cli 0.1.39 → 0.1.41

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 (438) hide show
  1. package/README.md +4 -4
  2. package/agent-runtime/dialogWritePlan.ts +39 -0
  3. package/agent-runtime/hostAdapter.ts +4 -0
  4. package/agent-runtime/hybridRecordStore.ts +5 -3
  5. package/agent-runtime/index.ts +15 -0
  6. package/agent-runtime/localLoop.ts +87 -7
  7. package/agent-runtime/localToolPolicy.ts +2 -13
  8. package/agent-runtime/localWorkspaceTools.ts +42 -110
  9. package/agent-runtime/runtimeToolPolicy.ts +2 -11
  10. package/agent-runtime/runtimeToolSurface.ts +198 -0
  11. package/agent-runtime/types.ts +1 -0
  12. package/agentAliases.ts +2 -1
  13. package/agentRunCommand.ts +10 -32
  14. package/agentRuntimeLocal.ts +1 -0
  15. package/ai/agent/_executeModel.ts +146 -0
  16. package/ai/agent/agentSlice.ts +556 -1
  17. package/ai/agent/appWorkingMemory.ts +126 -0
  18. package/ai/agent/buildEditingContext.ts +378 -0
  19. package/ai/agent/buildSystemPrompt.ts +585 -0
  20. package/ai/agent/canvasEditingContext.ts +49 -0
  21. package/ai/agent/cleanAgentMessages.ts +140 -0
  22. package/ai/agent/cliChatClient.ts +153 -0
  23. package/ai/agent/cliExecutor.ts +314 -40
  24. package/ai/agent/contextCompiler.ts +107 -0
  25. package/ai/agent/contextLayerContract.ts +44 -0
  26. package/ai/agent/createAgentSchema.ts +272 -0
  27. package/ai/agent/currentTimeContext.ts +65 -0
  28. package/ai/agent/executeToolCall.ts +58 -0
  29. package/ai/agent/fetchAgentContexts.ts +42 -0
  30. package/ai/agent/generatePrompt.ts +3 -0
  31. package/ai/agent/getFullChatContextKeys.ts +168 -0
  32. package/ai/agent/guidedCreation/capabilities.ts +84 -0
  33. package/ai/agent/guidedCreation/types.ts +38 -0
  34. package/ai/agent/isLiveAudioOnlyAgent.ts +26 -0
  35. package/ai/agent/liveAudioModel.ts +2 -0
  36. package/ai/agent/pageBuilderHandoffRules.ts +75 -0
  37. package/ai/agent/persistMessageWithFixedId.ts +37 -0
  38. package/ai/agent/planSlice.ts +259 -0
  39. package/ai/agent/referenceUtils.ts +229 -0
  40. package/ai/agent/runAgentBackground.ts +310 -0
  41. package/ai/agent/runAgentClientLoop.ts +164 -0
  42. package/ai/agent/runtimeGuidance.ts +116 -0
  43. package/ai/agent/serverOrigin.ts +7 -0
  44. package/ai/agent/startParallelAgentStreams.ts +424 -0
  45. package/ai/agent/startupProtocol.ts +53 -0
  46. package/ai/agent/streamAgentChatTurn.ts +2001 -0
  47. package/ai/agent/streamAgentChatTurnUtils.ts +860 -0
  48. package/ai/agent/toolFailureGuard.ts +99 -0
  49. package/ai/agent/types.ts +73 -0
  50. package/ai/agent/utils/imageOutput.ts +37 -0
  51. package/ai/agent/utils/publicImageAgentMode.ts +26 -0
  52. package/ai/ai.locale.ts +1095 -0
  53. package/ai/chat/accumulateToolCallChunks.ts +126 -0
  54. package/ai/chat/fetchUtils.ts +143 -0
  55. package/ai/chat/inlineImageUrlsForCustomProvider.ts +117 -0
  56. package/ai/chat/parseApiError.ts +67 -0
  57. package/ai/chat/parseMultilineSSE.ts +95 -0
  58. package/ai/chat/sendOpenAICompletionsRequest.ts +897 -0
  59. package/ai/chat/sendOpenAIResponseRequest.ts +720 -0
  60. package/ai/chat/serverProxyRetry.ts +102 -0
  61. package/ai/chat/shouldUseServerProxy.ts +18 -0
  62. package/ai/chat/streamRetry.ts +46 -0
  63. package/ai/chat/updateTotalUsage.ts +89 -0
  64. package/ai/context/buildReferenceContext.ts +437 -0
  65. package/ai/context/retention.ts +165 -0
  66. package/ai/context/tokenUtils.ts +78 -0
  67. package/ai/llm/agentCapabilities.ts +74 -0
  68. package/ai/llm/deepinfra.ts +79 -0
  69. package/ai/llm/fireworks.ts +68 -0
  70. package/ai/llm/generateRequestBody.ts +165 -0
  71. package/ai/llm/getModelContextWindow.ts +93 -0
  72. package/ai/llm/getPricing.ts +252 -0
  73. package/ai/llm/imagePricing.ts +66 -0
  74. package/ai/llm/isResponseAPIModel.ts +13 -0
  75. package/ai/llm/kimi.ts +23 -0
  76. package/ai/llm/mimo.ts +99 -0
  77. package/ai/llm/mistral.ts +21 -0
  78. package/ai/llm/models.ts +45 -0
  79. package/ai/llm/openrouterModels.ts +6 -0
  80. package/ai/llm/providers.ts +313 -0
  81. package/ai/llm/reasoningModels.ts +27 -0
  82. package/ai/llm/types.ts +82 -0
  83. package/ai/llm/usageRequestOptions.ts +59 -0
  84. package/ai/memory/queryShared.ts +161 -0
  85. package/ai/memory/recentRelationshipRecap.ts +247 -0
  86. package/ai/memory/remember.ts +167 -0
  87. package/ai/memory/store.ts +20 -0
  88. package/ai/memory/storeShared.ts +76 -0
  89. package/ai/memory/types.ts +46 -0
  90. package/ai/memory/understanding.ts +349 -0
  91. package/ai/memory/understandingGreeting.ts +264 -0
  92. package/ai/policy/personalizationDialog.ts +333 -0
  93. package/ai/policy/runtimePolicy.ts +454 -0
  94. package/ai/policy/selfUpdateFields.ts +48 -0
  95. package/ai/policy/types.ts +64 -0
  96. package/ai/skills/referenceRuntime.ts +274 -0
  97. package/ai/skills/skillDiagnostics.ts +251 -0
  98. package/ai/skills/skillDocBuilder.ts +139 -0
  99. package/ai/skills/skillSummaryMarker.ts +26 -0
  100. package/ai/token/calculatePrice.ts +576 -0
  101. package/ai/token/missingUsageEstimate.ts +42 -0
  102. package/ai/token/normalizeUsage.ts +124 -0
  103. package/ai/token/openaiImageGenerationUsage.ts +56 -0
  104. package/ai/token/prepareTokenUsageData.ts +93 -0
  105. package/ai/token/resolveBillingTarget.ts +52 -0
  106. package/ai/token/saveTokenRecord.ts +53 -0
  107. package/ai/token/types.ts +103 -0
  108. package/ai/tools/agent/agentTools.ts +235 -0
  109. package/ai/tools/agent/agentUpdateShared.ts +311 -0
  110. package/ai/tools/agent/callAgentTool.ts +139 -0
  111. package/ai/tools/agent/createAgentTool.ts +512 -0
  112. package/ai/tools/agent/createDialogTool.ts +69 -0
  113. package/ai/tools/agent/createSkillAgentTool.ts +62 -0
  114. package/ai/tools/agent/parallelBudget.ts +221 -0
  115. package/ai/tools/agent/prepareAgentDraftTool.ts +159 -0
  116. package/ai/tools/agent/presets/appBuilderPreset.ts +154 -0
  117. package/ai/tools/agent/runLlmTool.ts +96 -0
  118. package/ai/tools/agent/runStreamingAgentTool.ts +73 -0
  119. package/ai/tools/agent/skillAgentArgs.ts +106 -0
  120. package/ai/tools/agent/startAgentDialogTool.ts +53 -0
  121. package/ai/tools/agent/streamParallelAgentsTool.ts +123 -0
  122. package/ai/tools/agent/updateAgentTool.ts +96 -0
  123. package/ai/tools/agent/updateSelfTool.ts +113 -0
  124. package/ai/tools/amazonProductScraperTool.ts +86 -0
  125. package/ai/tools/apifyActorClient.ts +45 -0
  126. package/ai/tools/appEditGuard.ts +372 -0
  127. package/ai/tools/appReadSnapshot.ts +153 -0
  128. package/ai/tools/appTools.ts +1549 -0
  129. package/ai/tools/applyEditTool.ts +259 -0
  130. package/ai/tools/applyLineEditsTool.ts +315 -0
  131. package/ai/tools/browserTools/click.ts +33 -0
  132. package/ai/tools/browserTools/closeSession.ts +29 -0
  133. package/ai/tools/browserTools/common.ts +27 -0
  134. package/ai/tools/browserTools/openSession.ts +48 -0
  135. package/ai/tools/browserTools/readContent.ts +38 -0
  136. package/ai/tools/browserTools/selectOption.ts +46 -0
  137. package/ai/tools/browserTools/typeText.ts +42 -0
  138. package/ai/tools/category/createCategoryTool.ts +66 -0
  139. package/ai/tools/category/queryContentsByCategoryTool.ts +69 -0
  140. package/ai/tools/category/updateContentCategoryTool.ts +75 -0
  141. package/ai/tools/cfBrowserTools.ts +319 -0
  142. package/ai/tools/cfSpeechToTextTool.ts +49 -0
  143. package/ai/tools/checkEnvTool.ts +102 -0
  144. package/ai/tools/cloudflareCrawlTool.ts +289 -0
  145. package/ai/tools/codeSearchTool.ts +123 -0
  146. package/ai/tools/codeTools.ts +101 -0
  147. package/ai/tools/convertMarxistsBookTool.ts +103 -0
  148. package/ai/tools/createDocTool.ts +132 -0
  149. package/ai/tools/createSkillDocTool.ts +155 -0
  150. package/ai/tools/createWorkflowTool.ts +154 -0
  151. package/ai/tools/delayTool.ts +31 -0
  152. package/ai/tools/deleteSpacesTool.ts +325 -0
  153. package/ai/tools/deleteSpacesToolModel.ts +159 -0
  154. package/ai/tools/devReloadUtils.ts +29 -0
  155. package/ai/tools/dialogMessageSearch.ts +137 -0
  156. package/ai/tools/doctorSkillTool.ts +72 -0
  157. package/ai/tools/ecommerceScraperTool.ts +86 -0
  158. package/ai/tools/emailTools.ts +549 -0
  159. package/ai/tools/evalSkillTool.ts +92 -0
  160. package/ai/tools/exaSearchTool.ts +63 -0
  161. package/ai/tools/execShellTool.ts +266 -0
  162. package/ai/tools/executeSqlTool.ts +192 -0
  163. package/ai/tools/fetchWebpageSupport.ts +333 -0
  164. package/ai/tools/fetchWebpageTool.ts +97 -0
  165. package/ai/tools/geminiImagePreviewTool.ts +386 -0
  166. package/ai/tools/generateDocxTool.ts +215 -0
  167. package/ai/tools/googleSearchScraperTool.ts +106 -0
  168. package/ai/tools/importDataTool.ts +133 -0
  169. package/ai/tools/importSkillTool.ts +162 -0
  170. package/ai/tools/index.ts +2308 -0
  171. package/ai/tools/jdProductScraperTool.ts +821 -0
  172. package/ai/tools/listUserSpacesTool.ts +113 -0
  173. package/ai/tools/localFilesTool.ts +276 -0
  174. package/ai/tools/marxistsOfflineBook.ts +253 -0
  175. package/ai/tools/modelUsageTools.ts +206 -0
  176. package/ai/tools/noloWorkspaceReadTools.ts +467 -0
  177. package/ai/tools/olmOcrTool.ts +33 -0
  178. package/ai/tools/openaiImageTool.ts +267 -0
  179. package/ai/tools/prepareTools.ts +23 -0
  180. package/ai/tools/readDocTool.ts +88 -0
  181. package/ai/tools/readFileTool.ts +214 -0
  182. package/ai/tools/readTool.ts +194 -0
  183. package/ai/tools/readXPostTool.ts +229 -0
  184. package/ai/tools/readXhsProfileTool.ts +627 -0
  185. package/ai/tools/rememberMemoryTool.ts +84 -0
  186. package/ai/tools/remotionVideoTool.ts +151 -0
  187. package/ai/tools/searchDialogMessagesTool.ts +222 -0
  188. package/ai/tools/searchWorkspaceTool.ts +259 -0
  189. package/ai/tools/skillFollowup.ts +86 -0
  190. package/ai/tools/surfWeatherTool.ts +169 -0
  191. package/ai/tools/table/addTableRowTool.ts +217 -0
  192. package/ai/tools/table/createTableTool.ts +315 -0
  193. package/ai/tools/table/rowTools.ts +386 -0
  194. package/ai/tools/table/schemaTools.ts +244 -0
  195. package/ai/tools/table/shareTableTool.ts +148 -0
  196. package/ai/tools/table/toolShared.ts +129 -0
  197. package/ai/tools/taobaoTmallProductScraperTool.ts +49 -0
  198. package/ai/tools/toolApiClient.ts +279 -0
  199. package/ai/tools/toolResultError.ts +42 -0
  200. package/ai/tools/toolRunSlice.ts +303 -0
  201. package/ai/tools/toolSchemaCompatibility.ts +53 -0
  202. package/ai/tools/uiAskChoiceTool.ts +104 -0
  203. package/ai/tools/updateContentTitleTool.ts +84 -0
  204. package/ai/tools/updateDocTool.ts +105 -0
  205. package/ai/tools/updateUserPreferenceProfileTool.ts +153 -0
  206. package/ai/tools/wereadGatewayTool.ts +152 -0
  207. package/ai/tools/whisperTool.ts +76 -0
  208. package/ai/tools/writeFileTool.ts +213 -0
  209. package/ai/tools/youtubeScraperTool.ts +116 -0
  210. package/ai/tools/ziweiChartTool.ts +678 -0
  211. package/ai/types.ts +55 -0
  212. package/ai/workflow/workflowExecutor.ts +323 -0
  213. package/ai/workflow/workflowSlice.ts +73 -0
  214. package/ai/workflow/workflowTypes.ts +106 -0
  215. package/app/actions/syncAppRecord.ts +73 -0
  216. package/app/constants/animationSets.ts +21 -0
  217. package/app/constants/appEditor.ts +99 -0
  218. package/app/favorite/favoriteSlice.ts +690 -0
  219. package/app/favorite/type.ts +43 -0
  220. package/app/hooks/deleteDbKey.ts +233 -0
  221. package/app/i18n/client.ts +13 -0
  222. package/app/i18n/i18n.base.ts +14 -0
  223. package/app/i18n/i18n.config.ts +77 -0
  224. package/app/i18n/index.ts +15 -0
  225. package/app/i18n/mapLanguage.ts +11 -0
  226. package/app/i18n/translations/appBuilder.locale.ts +453 -0
  227. package/app/i18n/translations/error.locale.ts +246 -0
  228. package/app/i18n/translations/interface.locale.ts +2174 -0
  229. package/app/i18n/translations/pricing.locale.ts +397 -0
  230. package/app/i18n/translations/privacy.locale.ts +168 -0
  231. package/app/i18n/translations/seo.locale.ts +129 -0
  232. package/app/i18n/translations/terms.locale.ts +124 -0
  233. package/app/i18n/types.ts +6 -0
  234. package/app/notifications/model.ts +77 -0
  235. package/app/notifications/notificationSlice.ts +141 -0
  236. package/app/reducer.ts +36 -0
  237. package/app/settings/dbActionThunks.ts +34 -0
  238. package/app/settings/defaultSpacePreference.ts +87 -0
  239. package/app/settings/settingSlice.tsx +1212 -0
  240. package/app/settings/settingsRecord.ts +8 -0
  241. package/app/stateViews/runtime.ts +90 -0
  242. package/app/store.ts +55 -0
  243. package/app/theme/colors.ts +280 -0
  244. package/app/theme/fontPreference.ts +77 -0
  245. package/app/theme/theme.config.ts +120 -0
  246. package/app/theme/themeModeBootstrap.ts +123 -0
  247. package/app/types/appSummary.ts +114 -0
  248. package/app/types.ts +358 -0
  249. package/app/utils/appKeys.ts +55 -0
  250. package/app/utils/async.ts +28 -0
  251. package/app/utils/desktopAgentRuntimeTurnClient.ts +73 -0
  252. package/app/utils/env.ts +17 -0
  253. package/app/utils/fileUtils.ts +229 -0
  254. package/app/utils/imageUtils.ts +274 -0
  255. package/app/utils/myContentItems.ts +289 -0
  256. package/app/utils/retryAfter.ts +36 -0
  257. package/app/utils/retryFetch.ts +61 -0
  258. package/app/utils/toast.ts +3 -0
  259. package/auth/action/signUpAction.ts +227 -0
  260. package/auth/adminPermissions.ts +18 -0
  261. package/auth/authSlice.ts +531 -0
  262. package/auth/client/loginRequest.ts +14 -0
  263. package/auth/resetAuthScopedClientState.ts +27 -0
  264. package/auth/routes.ts +178 -0
  265. package/auth/token.ts +63 -0
  266. package/auth/types.ts +40 -0
  267. package/chat/chat.locale.ts +813 -0
  268. package/chat/dialog/actions/addCybotAction.ts +52 -0
  269. package/chat/dialog/actions/addReferenceKeysAction.ts +62 -0
  270. package/chat/dialog/actions/builtinDialogLlm.ts +35 -0
  271. package/chat/dialog/actions/cleanupCliSession.ts +40 -0
  272. package/chat/dialog/actions/createDialogAction.ts +379 -0
  273. package/chat/dialog/actions/createScheduledTaskAction.ts +78 -0
  274. package/chat/dialog/actions/handleSendMessageAction.ts +197 -0
  275. package/chat/dialog/actions/handleSendMessageResolver.ts +27 -0
  276. package/chat/dialog/actions/removeCybotAction.ts +6 -0
  277. package/chat/dialog/actions/removeDialogAgentAction.ts +44 -0
  278. package/chat/dialog/actions/replacePrimaryCybotAction.ts +6 -0
  279. package/chat/dialog/actions/setPrimaryDialogAgentAction.ts +52 -0
  280. package/chat/dialog/actions/updateDialogSummaryAction.ts +430 -0
  281. package/chat/dialog/actions/updateDialogTitleAction.ts +151 -0
  282. package/chat/dialog/actions/updateDialogTitlePolicy.ts +30 -0
  283. package/chat/dialog/actions/updateTokensAction.ts +233 -0
  284. package/chat/dialog/dialogAgents.ts +72 -0
  285. package/chat/dialog/dialogSlice.ts +872 -0
  286. package/chat/dialog/dialogTitle.ts +81 -0
  287. package/chat/dialog/dialogTokenStats.ts +12 -0
  288. package/chat/dialog/dialogUrl.ts +6 -0
  289. package/chat/dialog/goal.ts +108 -0
  290. package/chat/dialog/objectAssistantRegistry.ts +286 -0
  291. package/chat/dialog/schedule.ts +17 -0
  292. package/chat/messages/fetchAndCacheMessages.ts +119 -0
  293. package/chat/messages/fetchConvMsgs.ts +51 -0
  294. package/chat/messages/fileUrl.ts +13 -0
  295. package/chat/messages/messageAgent.ts +8 -0
  296. package/chat/messages/messageContent.ts +199 -0
  297. package/chat/messages/messageContract.ts +88 -0
  298. package/chat/messages/messageSlice.ts +1367 -0
  299. package/chat/messages/toolThunks.ts +625 -0
  300. package/cli/agentAliases.ts +2 -1
  301. package/cli/agentRunCommand.ts +10 -32
  302. package/cli/agentRuntimeLocal.ts +1 -0
  303. package/cli/client/agentRun.ts +67 -95
  304. package/cli/client/localRuntimeAdapter.ts +323 -54
  305. package/cli/commandRegistry.ts +2 -2
  306. package/cli/machineWsRunDispatch.ts +51 -6
  307. package/cli/offlineMarxistsAgentCommand.ts +6 -4
  308. package/client/agentConfigResolver.test.ts +2 -2
  309. package/client/agentRun.test.ts +175 -57
  310. package/client/agentRun.ts +67 -95
  311. package/client/localRuntimeAdapter.test.ts +682 -37
  312. package/client/localRuntimeAdapter.ts +323 -54
  313. package/client/localRuntimeDryRun.test.ts +23 -9
  314. package/client/localToolPolicy.test.ts +4 -4
  315. package/commandRegistry.ts +2 -2
  316. package/core/builtinAgents.ts +209 -0
  317. package/core/config.ts +15 -0
  318. package/core/crypto.ts +51 -0
  319. package/core/generateKeyPairFromSeedV1.ts +15 -0
  320. package/core/generateMainKey.ts +22 -0
  321. package/core/init.ts +41 -0
  322. package/core/localOrigins.ts +8 -0
  323. package/core/password.ts +13 -0
  324. package/core/prefix.ts +23 -0
  325. package/create/editor/transforms/fromMarkdown/index.ts +260 -0
  326. package/create/editor/transforms/fromMarkdown/inline.ts +285 -0
  327. package/create/editor/transforms/fromMarkdown/table.ts +130 -0
  328. package/create/editor/transforms/markdownToSlate.ts +24 -0
  329. package/create/editor/transforms/slateToRenderMarkdown.ts +218 -0
  330. package/create/editor/transforms/slateToSimplifiedMarkdown.ts +224 -0
  331. package/create/editor/transforms/slateToText.ts +33 -0
  332. package/create/editor/utils/slateUtils.ts +233 -0
  333. package/create/space/addSpaceAction.ts +193 -0
  334. package/create/space/category/categoryActions.ts +427 -0
  335. package/create/space/changeSpaceAction.ts +36 -0
  336. package/create/space/constants.ts +8 -0
  337. package/create/space/content/addContentAction.ts +116 -0
  338. package/create/space/content/contentThunks.ts +90 -0
  339. package/create/space/content/deleteContentFromSpaceAction.ts +187 -0
  340. package/create/space/content/deleteMultipleContentAction.ts +112 -0
  341. package/create/space/content/moveContentAction.ts +285 -0
  342. package/create/space/content/updateContentCategoryAction.ts +154 -0
  343. package/create/space/content/updateContentTitleAction.ts +151 -0
  344. package/create/space/content/uploadAndAddFileToSpaceAction.ts +98 -0
  345. package/create/space/contentKeyUtils.ts +117 -0
  346. package/create/space/deleteSpaceAction.ts +276 -0
  347. package/create/space/fetchSpaceAction.ts +70 -0
  348. package/create/space/fetchSpaceSidebarStateAction.ts +26 -0
  349. package/create/space/loadDefaultSpaceAction.ts +57 -0
  350. package/create/space/member/addMemberAction.ts +79 -0
  351. package/create/space/member/fetchUserSpaceMembershipsAction.ts +386 -0
  352. package/create/space/member/memberThunks.ts +47 -0
  353. package/create/space/member/removeMemberAction.ts +67 -0
  354. package/create/space/resolvePreferredSpaceId.ts +113 -0
  355. package/create/space/sidebarVisibleTypes.ts +241 -0
  356. package/create/space/space.locale.ts +1087 -0
  357. package/create/space/spaceAccess.ts +182 -0
  358. package/create/space/spaceCollapsedState.ts +54 -0
  359. package/create/space/spaceKeys.ts +65 -0
  360. package/create/space/spaceSlice.ts +328 -0
  361. package/create/space/spaceThunks.ts +410 -0
  362. package/create/space/types.ts +27 -0
  363. package/create/space/updateSpaceAction.ts +107 -0
  364. package/create/space/utils/permissions.ts +47 -0
  365. package/create/types.ts +21 -0
  366. package/database/actions/agentReadResolution.ts +33 -0
  367. package/database/actions/common.ts +243 -0
  368. package/database/actions/deleteFile.ts +40 -0
  369. package/database/actions/fileContent.ts +125 -0
  370. package/database/actions/patch.ts +155 -0
  371. package/database/actions/read.ts +358 -0
  372. package/database/actions/readAndWait.ts +260 -0
  373. package/database/actions/readRequestManager.ts +120 -0
  374. package/database/actions/readResolution.ts +125 -0
  375. package/database/actions/remove.ts +94 -0
  376. package/database/actions/replication.ts +477 -0
  377. package/database/actions/upload.ts +186 -0
  378. package/database/actions/upsert.ts +56 -0
  379. package/database/actions/write.ts +146 -0
  380. package/database/authority/ownerKey.ts +80 -0
  381. package/database/authority/recordAuthority.ts +67 -0
  382. package/database/authority/userAuthorityRegistry.ts +54 -0
  383. package/database/client/fetchUserData.ts +61 -0
  384. package/database/dbActionThunks.ts +1 -0
  385. package/database/dbSlice.ts +149 -0
  386. package/database/fileRing.ts +51 -0
  387. package/database/fileStorage.ts +232 -0
  388. package/database/fileUrl.ts +34 -0
  389. package/database/keys.ts +767 -0
  390. package/database/queryPrefixes.ts +14 -0
  391. package/database/requests.ts +443 -0
  392. package/database/runtimeServerContext.ts +54 -0
  393. package/database/server/levelAuthorityStore.ts +20 -1
  394. package/database/tenantPlacement.ts +57 -0
  395. package/database/userPreferenceRegister.ts +131 -0
  396. package/database/utils/ulid.ts +1 -0
  397. package/integrations/anthropic/anthropicModels.ts +47 -0
  398. package/integrations/deepseek/models.ts +37 -0
  399. package/integrations/google/models.ts +341 -0
  400. package/integrations/openai/chatCompletionStreamMode.ts +10 -0
  401. package/integrations/openai/filterAndCleanMessages.ts +284 -0
  402. package/integrations/openai/flexTier.ts +102 -0
  403. package/integrations/openai/generateOpenAIRequestBody.ts +274 -0
  404. package/integrations/openai/generateResponseRequestBody.ts +77 -0
  405. package/integrations/openai/models.ts +271 -0
  406. package/integrations/openai/providerBodyCompatibility.ts +23 -0
  407. package/integrations/openai/responsesHelpers.ts +297 -0
  408. package/integrations/x-reader/types.ts +109 -0
  409. package/integrations/xai/models.ts +13 -0
  410. package/integrations/xhs-reader/analyze/profileAnalyzer.ts +205 -0
  411. package/integrations/xhs-reader/backends/playwrightProfileCollector.ts +624 -0
  412. package/integrations/xhs-reader/bridge/readXhsProfileWithBridge.ts +227 -0
  413. package/integrations/xhs-reader/client/xhsWebApiClient.ts +229 -0
  414. package/integrations/xhs-reader/normalize.ts +390 -0
  415. package/integrations/xhs-reader/orchestrator.ts +178 -0
  416. package/integrations/xhs-reader/redaction.ts +68 -0
  417. package/integrations/xhs-reader/types.ts +244 -0
  418. package/integrations/xhs-reader/url.ts +57 -0
  419. package/machineWsRunDispatch.ts +51 -6
  420. package/offlineMarxistsAgentCommand.ts +6 -4
  421. package/package.json +430 -3
  422. package/render/page/createPageAction.ts +183 -0
  423. package/render/page/docSlice.ts +468 -0
  424. package/render/page/types.ts +17 -0
  425. package/render/table/createTableAction.ts +270 -0
  426. package/render/table/deleteTableAction.ts +193 -0
  427. package/render/table/fetchAndCacheTableRows.ts +174 -0
  428. package/render/table/tableSlice.ts +1106 -0
  429. package/render/table/toolValueUtils.ts +363 -0
  430. package/render/table/types.ts +252 -0
  431. package/render/table/utils/tableSerialization.ts +50 -0
  432. package/server/handlers/agentRun/types.ts +104 -0
  433. package/share/action.ts +225 -0
  434. package/share/helpers.ts +302 -0
  435. package/share/keys.ts +243 -0
  436. package/share/publicSharePolicy.ts +27 -0
  437. package/share/shareSlice.ts +53 -0
  438. package/share/types.ts +100 -0
@@ -0,0 +1,1087 @@
1
+ import { Language } from "../../app/i18n/types";
2
+
3
+ export default {
4
+ [Language.EN]: {
5
+ translation: {
6
+ // === 基础操作 ===
7
+ create: "Create Space",
8
+ name: "Space Name",
9
+ description: "Description",
10
+ visibility: "Visibility",
11
+ private: "Private",
12
+ public: "Public",
13
+ loading: "Loading...",
14
+ cancel: "Cancel",
15
+ delete: "Delete",
16
+ save: "Save",
17
+ edit: "Edit",
18
+
19
+ // === 表单相关 ===
20
+ name_required: "Space name is required",
21
+ name_min_length: "Space name must be at least 2 characters",
22
+ name_max_length: "Space name cannot exceed 50 characters",
23
+ name_placeholder: "Enter space name",
24
+ description_placeholder: "Enter space description (optional)",
25
+ description_max_length: "Description cannot exceed 200 characters",
26
+
27
+ // === 创建空间 ===
28
+ create_new_space: "Create New Space",
29
+ create_space: "Create Space",
30
+ create_success: "Space created successfully",
31
+ create_error: "Failed to create space",
32
+ creating: "Creating space...",
33
+
34
+ // === 空间选择 ===
35
+ default_space: "Default Space",
36
+ select_space: "Select Space",
37
+ no_spaces: "No spaces available",
38
+ no_spaces_yet: "No spaces created yet",
39
+ space_list: "Space List",
40
+ space_dropdown: "Open space menu",
41
+ current_space: "Current Space",
42
+ switch_space: "Switch Space",
43
+
44
+ // === 导航相关 ===
45
+ home: "Home",
46
+ back_to_home: "Back to Home",
47
+ space_settings: "Space Settings",
48
+
49
+ // === 空间设置 ===
50
+ unsaved_changes: "You have unsaved changes",
51
+ unsaved_warning:
52
+ "You have unsaved changes. Do you want to save them before leaving?",
53
+ save_before_leave: "Save Changes",
54
+ discard_changes: "Discard Changes",
55
+ load_error_title: "Failed to Load Space Information",
56
+ no_space_data: "Space data not found",
57
+ try_repair: "Try to Repair",
58
+ repair_success: "Repair operation completed successfully",
59
+ repair_error: "Repair operation failed",
60
+ try_later: "Please try again later",
61
+
62
+ // === 基本信息 ===
63
+ basic_info: "Basic Information",
64
+ manage_basic_info:
65
+ "Manage space name, description and other basic information",
66
+ space_details: "Space Details",
67
+ view_space_details: "View basic information and metadata of this space",
68
+ space_id: "Space ID",
69
+ created_at: "Created",
70
+ updated_at: "Last Updated",
71
+ member_count: "Members",
72
+ people: "people",
73
+ person: "person",
74
+
75
+ // === 权限管理 ===
76
+ access_permission: "Access Permission",
77
+ manage_access:
78
+ "Control who can access and view the content of this space",
79
+ select_visibility: "Select Space Visibility",
80
+ private_description: "Only invited members can access this space",
81
+ public_description: "Anyone can view, but only members can edit content",
82
+ permission_updated: "Permission settings updated successfully",
83
+
84
+ // === 默认空间 ===
85
+ save_changes: "Save Changes",
86
+ set_as_default: "Set as Default Space",
87
+ current_default: "Current Default Space",
88
+ cancel_changes: "Cancel Changes",
89
+ set_default_success: "Set as default space successfully",
90
+ set_default_error: "Failed to set as default space",
91
+ default_space_description: "Set this space as your default workspace when launching the app.",
92
+ this_space: "this space",
93
+
94
+ // === 删除空间 ===
95
+ delete_space: "Delete Space",
96
+ delete_confirm_message:
97
+ "Are you sure you want to delete this space? This action cannot be undone, and all files and data in the space will be permanently deleted.",
98
+ remove_space_membership_title: "Remove Space Membership",
99
+ remove_space_membership_action: "Remove broken membership",
100
+ remove_space_membership_confirm_message:
101
+ "Space data is missing. This will only remove your membership record for this space so it no longer appears in the selector. This action cannot be undone.",
102
+ remove_space_membership_success: "Membership record removed",
103
+ remove_space_membership_error: "Failed to remove membership record",
104
+ delete_description:
105
+ "This action will permanently delete all files, pages, and data in the space, and cannot be recovered.",
106
+ delete_warning:
107
+ "Warning: This space has {{count}} members. Please ensure all members are notified before deletion.",
108
+ delete_input_placeholder: "Type the space name to confirm",
109
+ delete_confirmation_required:
110
+ "Please type the space name to confirm deletion",
111
+ delete_success: "Space deleted successfully",
112
+ delete_error: "Failed to delete space",
113
+ deleting: "Deleting space...",
114
+
115
+ // === 更新操作 ===
116
+ update_success: "Settings updated successfully",
117
+ update_error: "Failed to update settings",
118
+ updating: "Updating...",
119
+
120
+ // === 状态提示 ===
121
+ empty_state_title: "No spaces yet",
122
+ empty_state_description: "Create your first space to get started",
123
+ get_started: "Get Started",
124
+
125
+ // === 侧边栏/内容管理相关 ===
126
+ uncategorized: "Uncategorized",
127
+ dragToCategorize:
128
+ "Drag items here to categorize them, or to create a new category.",
129
+ itemsDeleted: "Deleted {{count}} item(s)",
130
+ createPageFailed: "Failed to create new page",
131
+ categoryCreated: "Category '{{name}}' created successfully",
132
+ emptyTitle: "No content yet",
133
+ emptyHint: "Create your first page or drag files here to get started.",
134
+ createFirstPage: "Create First Page",
135
+ selectedItemsCount: "{{count}} item(s) selected",
136
+ deselectAll: "Deselect All",
137
+ selectAll: "Select All",
138
+ deleteSelected: "Delete Selected",
139
+ cancelSelectionMode: "Cancel Selection Mode",
140
+ content: "Content",
141
+ newPage: "New Page",
142
+ newCategory: "New Category",
143
+ batchSelect: "Batch Select",
144
+ expandAll: "Expand All",
145
+ collapseAll: "Collapse All",
146
+ contentMoved: "Content moved successfully",
147
+ noOtherSpaces: "No other spaces available",
148
+ titlePlaceholder: "Untitled",
149
+ moreActions: "More Actions",
150
+ editTitle: "Edit Title",
151
+ moveToSpace: "Move to Space",
152
+ add_content: "Add...",
153
+ create_space_desc: "Create a separate workspace",
154
+ create_new_category: "Create New Category",
155
+ create_category_desc: "Organize content under current space",
156
+ select_space_first: "Please select a space first",
157
+ addCategorySuccess: "Category added successfully",
158
+ addCategoryFailed: "Failed to add category",
159
+ // === Joined Welcome Section ===
160
+ joinConversation: "Join Conversation",
161
+ addedToConversation: "Added to conversation",
162
+
163
+ // === 侧边栏标签 ===
164
+ all: "All",
165
+ dialogs: "Dialogs",
166
+ pages: "Pages",
167
+ images: "Images",
168
+ documentAttachments: "Document Attachments",
169
+ videos: "Videos",
170
+ audios: "Audio",
171
+ files: "Other Attachments",
172
+ file: "Files",
173
+ attachment: "Other Attachment",
174
+ otherAttachments: "Other Attachments",
175
+ documentAttachment: "Document Attachment",
176
+ videoAttachment: "Video",
177
+ audioAttachment: "Audio",
178
+ tables: "Tables",
179
+ apps: "Apps",
180
+ agents: "Agents",
181
+ scheduled: "Scheduled",
182
+ no_content_in_tab: "No {{type}} in this space yet.",
183
+ no_attachments_in_space: "No attachments or media files in this space yet.",
184
+ no_attachments_desc:
185
+ "You can upload images, documents, videos, or audio files to reference them in chats.",
186
+ no_scheduled_in_space: "No scheduled tasks in this space yet.",
187
+ no_scheduled_desc:
188
+ "This is where your scheduled automation tasks and execution history are shown. Instruct your AI or set up workflows to run automatically at your specified times.",
189
+ no_images_in_space: "No images in this space yet.",
190
+ no_images_desc:
191
+ "You can upload images or generate them in AI conversations.",
192
+ no_documents_in_space: "No document attachments in this space yet.",
193
+ no_documents_desc:
194
+ "You can upload PDFs, Markdown, Word documents, etc. for reference and analysis.",
195
+ no_videos_in_space: "No videos in this space yet.",
196
+ no_videos_desc:
197
+ "You can upload video files to reference them as context.",
198
+ no_audios_in_space: "No audio in this space yet.",
199
+ no_audios_desc:
200
+ "You can upload recordings or audio tracks for transcription or processing.",
201
+ no_tables_in_space: "No tables in this space yet.",
202
+ no_tables_desc:
203
+ "Organize and analyze your data in structured views, with direct AI processing support.",
204
+ no_files_in_space: "No other attachments in this space yet.",
205
+ no_files_desc:
206
+ "This is where miscellaneous files that are not categorized as images, documents, or media are shown.",
207
+
208
+ // === 内容管理页面 ===
209
+ contentManagement: "Content Management",
210
+ itemDeleted: "Item deleted",
211
+ deleteFailed: "Delete failed",
212
+ uploadSuccess: "Upload complete",
213
+ uploadFailed: "Upload failed",
214
+ uploadFile: "Upload File",
215
+ uploading: "Uploading...",
216
+ selectionCount: "Selected {{count}}",
217
+ gridView: "Grid View",
218
+ listView: "List View",
219
+ confirmDelete: "Confirm Delete",
220
+ confirmDeleteMultiple: "Are you sure you want to delete {{count}} selected items? This cannot be undone.",
221
+ confirmDeleteSingle: "Are you sure you want to delete this item? This cannot be undone.",
222
+ unnamed: "Unnamed",
223
+ preview: "Preview",
224
+ open: "Open",
225
+ download: "Download",
226
+ clearFilters: "Clear Filters",
227
+ totalCount: "{{count}} items",
228
+ filteredCount: "{{count}} / {{total}} items",
229
+ backToTop: "Back to Top",
230
+ latestContent: "Latest Content",
231
+ viewTemplate: "View Templates",
232
+ spaceAgents: "Space Agents",
233
+ no_content_desc: "Upload files or create new content to get started.",
234
+ no_category_content: "No content in this category.",
235
+
236
+ // CategoryHeader 新增的翻译键
237
+ categoryNamePlaceholder: "Enter category name",
238
+ expand: "Expand",
239
+ collapse: "Collapse",
240
+ selectCategory: "Select category {{name}}",
241
+ dragToReorder: "Drag to reorder category",
242
+ editName: "Edit Name",
243
+ deleteCategoryConfirm:
244
+ "Are you sure you want to delete category '{{name}}'? This action cannot be undone.",
245
+ deleteCategory: "Delete Category",
246
+ search: "Search",
247
+ search_no_results: "No results found",
248
+ please_login: "Please sign in first",
249
+ search_placeholder: "Search content...",
250
+ allView: {
251
+ recent: "Recent",
252
+ favorites: "Favorites",
253
+ shares: "My Shares",
254
+ expanded: "Expanded",
255
+ back: "Back",
256
+ viewAll: "More",
257
+ noFavorites: "No favorites yet",
258
+ noShares: "No shares yet",
259
+ loadSharesError: "Failed to load shares",
260
+ },
261
+ delete_space_options_title: "How should data be handled before deleting this space?",
262
+ delete_space_options_desc:
263
+ "After deleting the space, you can keep your own content by moving it to All, or delete that content together with the space.",
264
+ delete_space_move_to_all: "Delete the space and move my data to All",
265
+ delete_space_move_to_all_desc:
266
+ "Recommended. This clears the current user's spaceId so the content stays available in the All view.",
267
+ delete_space_move_to_all_success:
268
+ "Space deleted. Your data has been moved to All.",
269
+ delete_space_delete_owned_success:
270
+ "Space deleted. Your data in this space has also been deleted.",
271
+ delete_space_with_owned: "Delete the space and my data",
272
+ delete_space_with_owned_desc:
273
+ "Deletes content owned by the current user in this space, and deletes the space itself.",
274
+ delete_space_cancel_desc: "Keep the space for now and return to settings.",
275
+ manage: "Manage",
276
+ finish: "Finish",
277
+ ocrAddToChat: "OCR to Chat",
278
+ },
279
+ },
280
+
281
+ [Language.ZH_CN]: {
282
+ translation: {
283
+ // === 基础操作 ===
284
+ create: "创建空间",
285
+ name: "空间名称",
286
+ description: "描述",
287
+ visibility: "可见性",
288
+ private: "私有",
289
+ public: "公开",
290
+ loading: "加载中...",
291
+ cancel: "取消",
292
+ delete: "删除",
293
+ save: "保存",
294
+ edit: "编辑",
295
+
296
+ // === 表单相关 ===
297
+ name_required: "空间名称必填",
298
+ name_min_length: "空间名称至少需要2个字符",
299
+ name_max_length: "空间名称不能超过50个字符",
300
+ name_placeholder: "输入空间名称",
301
+ description_placeholder: "输入空间描述(可选)",
302
+ description_max_length: "描述不能超过200个字符",
303
+
304
+ // === 创建空间 ===
305
+ create_new_space: "创建新空间",
306
+ create_space: "创建空间",
307
+ create_success: "空间创建成功",
308
+ create_error: "创建空间失败",
309
+ creating: "正在创建空间...",
310
+
311
+ // === 空间选择 ===
312
+ default_space: "默认空间",
313
+ select_space: "选择空间",
314
+ no_spaces: "暂无空间",
315
+ no_spaces_yet: "尚未创建任何空间",
316
+ space_list: "空间列表",
317
+ space_dropdown: "打开空间菜单",
318
+ current_space: "当前空间",
319
+ switch_space: "切换空间",
320
+
321
+ // === 导航相关 ===
322
+ home: "首页",
323
+ back_to_home: "回到首页",
324
+ space_settings: "空间设置",
325
+
326
+ // === 空间设置 ===
327
+ unsaved_changes: "有未保存的更改",
328
+ unsaved_warning: "您有未保存的更改。是否要在离开前保存?",
329
+ save_before_leave: "保存更改",
330
+ discard_changes: "放弃更改",
331
+ load_error_title: "加载空间信息失败",
332
+ no_space_data: "未找到空间数据",
333
+ try_repair: "尝试修复",
334
+ repair_success: "修复操作成功完成",
335
+ repair_error: "修复操作失败",
336
+ try_later: "请稍后重试",
337
+
338
+ // === 基本信息 ===
339
+ basic_info: "基本信息",
340
+ manage_basic_info: "管理空间的名称、描述等基本信息",
341
+ space_details: "空间详情",
342
+ view_space_details: "查看此空间的基本信息和元数据",
343
+ space_id: "空间ID",
344
+ created_at: "创建时间",
345
+ updated_at: "最后更新",
346
+ member_count: "成员",
347
+ people: "人",
348
+ person: "人",
349
+
350
+ // === 权限管理 ===
351
+ access_permission: "访问权限",
352
+ manage_access: "控制谁可以访问和查看此空间的内容",
353
+ select_visibility: "选择空间可见性",
354
+ private_description: "只有被邀请的成员可以访问此空间",
355
+ public_description: "所有人都可以查看,但只有成员可以编辑内容",
356
+ permission_updated: "权限设置更新成功",
357
+
358
+ // === 默认空间 ===
359
+ save_changes: "保存更改",
360
+ set_as_default: "设为默认空间",
361
+ current_default: "当前默认空间",
362
+ cancel_changes: "取消更改",
363
+ set_default_success: "已成功设为默认空间",
364
+ set_default_error: "设置默认空间失败",
365
+ default_space_description: "将此空间设置为启动应用时的默认工作空间",
366
+ this_space: "此空间",
367
+
368
+ // === 删除空间 ===
369
+ delete_space: "删除空间",
370
+ delete_confirm_message:
371
+ "确定要删除此空间吗?此操作无法撤销,空间内的所有文件和数据将被永久删除。",
372
+ remove_space_membership_title: "清理空间成员记录",
373
+ remove_space_membership_action: "删除失效成员记录",
374
+ remove_space_membership_confirm_message:
375
+ "当前空间主数据缺失,此操作仅会删除你在该空间的成员记录,使其不再出现在空间选择器中。该操作无法撤销。",
376
+ remove_space_membership_success: "成员记录已清理",
377
+ remove_space_membership_error: "清理成员记录失败",
378
+ delete_description:
379
+ "此操作将永久删除空间内的所有文件、页面和数据,无法恢复。",
380
+ delete_warning:
381
+ "警告:此空间有 {{count}} 名成员。删除前请确保通知所有成员。",
382
+ delete_input_placeholder: "输入空间名称以确认",
383
+ delete_confirmation_required: "请输入空间名称以确认删除",
384
+ delete_success: "空间已删除",
385
+ delete_error: "删除空间失败",
386
+ deleting: "正在删除空间...",
387
+
388
+ // === 更新操作 ===
389
+ update_success: "设置更新成功",
390
+ update_error: "更新设置失败",
391
+ updating: "正在更新...",
392
+
393
+ // === 状态提示 ===
394
+ empty_state_title: "尚无空间",
395
+ empty_state_description: "创建您的第一个空间来开始使用",
396
+ get_started: "开始使用",
397
+
398
+ // === 侧边栏/内容管理相关 ===
399
+ uncategorized: "未分类",
400
+ dragToCategorize: "拖拽项目到此处进行分类,或创建新分类。",
401
+ itemsDeleted: "已删除 {{count}} 项",
402
+ createPageFailed: "创建新页面失败",
403
+ categoryCreated: "分类 '{{name}}' 创建成功",
404
+ emptyTitle: "暂无内容",
405
+ emptyHint: "创建您的第一个页面或将文件拖拽到此处开始。",
406
+ createFirstPage: "创建第一个页面",
407
+ selectedItemsCount: "已选择 {{count}} 项",
408
+ deselectAll: "取消全选",
409
+ selectAll: "全部选择",
410
+ deleteSelected: "删除所选",
411
+ cancelSelectionMode: "取消选择模式",
412
+ content: "内容",
413
+ newPage: "新建页面",
414
+ newCategory: "新建分类",
415
+ batchSelect: "批量选择",
416
+ expandAll: "全部展开",
417
+ collapseAll: "全部折叠",
418
+ contentMoved: "内容已成功移动",
419
+ noOtherSpaces: "没有其他可用空间",
420
+ titlePlaceholder: "无标题",
421
+ moreActions: "更多操作",
422
+ editTitle: "编辑标题",
423
+ moveToSpace: "移动到空间",
424
+ add_content: "添加...",
425
+ create_space_desc: "创建一个独立的工作空间",
426
+ create_new_category: "新建分类",
427
+ create_category_desc: "在当前空间下整理内容",
428
+ select_space_first: "请先选择空间",
429
+ addCategorySuccess: "分类添加成功",
430
+ addCategoryFailed: "分类添加失败",
431
+ // 新增翻译键
432
+ joinConversation: "加入对话",
433
+ addedToConversation: "已加入对话",
434
+
435
+ // === 侧边栏标签 ===
436
+ all: "全部",
437
+ dialogs: "对话",
438
+ pages: "页面",
439
+ images: "图片",
440
+ documentAttachments: "文档附件",
441
+ videos: "视频",
442
+ audios: "音频",
443
+ files: "其他附件",
444
+ file: "文件",
445
+ attachment: "其他附件",
446
+ otherAttachments: "其他附件",
447
+ documentAttachment: "文档附件",
448
+ videoAttachment: "视频",
449
+ audioAttachment: "音频",
450
+ tables: "表格",
451
+ apps: "应用",
452
+ agents: "AI",
453
+ scheduled: "定时任务",
454
+ no_content_in_tab: "当前空间暂无{{type}}",
455
+ no_attachments_in_space: "该空间下还没有任何附件或媒体文件",
456
+ no_attachments_desc:
457
+ "你可以上传图片、文档、视频或音频等各类文件,方便在对话中引用。",
458
+ no_scheduled_in_space: "该空间下暂无定时任务",
459
+ no_scheduled_desc:
460
+ "这里展示空间内的定时自动化任务与定时运行状态。你可以通过下发指令或配置工作流,让 AI 按设定时间自动运行并在此处交付成果。",
461
+ no_images_in_space: "该空间下暂无图片",
462
+ no_images_desc:
463
+ "你可以上传图片,或者在 AI 对话中生成图片并保存到这里。",
464
+ no_documents_in_space: "该空间下暂无文档附件",
465
+ no_documents_desc:
466
+ "你可以上传 PDF、Markdown、Word 等文件附件,方便在对话中引用和分析。",
467
+ no_videos_in_space: "该空间下暂无视频",
468
+ no_videos_desc:
469
+ "你可以上传各类视频文件,方便在对话中作为上下文引用。",
470
+ no_audios_in_space: "该空间下暂无音频",
471
+ no_audios_desc:
472
+ "你可以上传录音或音轨,方便 AI 提取文字或进行音频处理。",
473
+ no_tables_in_space: "该空间下暂无表格",
474
+ no_tables_desc:
475
+ "用结构化视图整理和分析你的数据,支持直接在表格内进行 AI 处理。",
476
+ no_files_in_space: "该空间下暂无其他附件",
477
+ no_files_desc:
478
+ "这里展示未归类到图片、文档、音视频中的其他格式文件。",
479
+
480
+ // === 内容管理页面 ===
481
+ contentManagement: "内容管理",
482
+ itemDeleted: "项目已删除",
483
+ deleteFailed: "删除失败",
484
+ uploadSuccess: "上传完成",
485
+ uploadFailed: "上传失败",
486
+ uploadFile: "上传文件",
487
+ uploading: "上传中...",
488
+ selectionCount: "已选 {{count}}",
489
+ gridView: "网格视图",
490
+ listView: "列表视图",
491
+ confirmDelete: "确认删除",
492
+ confirmDeleteMultiple: "确定要删除选中的 {{count}} 个项目吗?此操作无法撤销。",
493
+ confirmDeleteSingle: "确定要删除该项目吗?此操作无法撤销。",
494
+ unnamed: "未命名",
495
+ preview: "预览",
496
+ open: "打开",
497
+ download: "下载",
498
+ clearFilters: "清除筛选",
499
+ totalCount: "共 {{count}} 项",
500
+ filteredCount: "{{count}} / {{total}} 项",
501
+ backToTop: "回到顶部",
502
+ latestContent: "最新内容",
503
+ viewTemplate: "查看模板",
504
+ spaceAgents: "Space AI",
505
+ no_content_desc: "上传文件或创建新内容以开始使用",
506
+ no_category_content: "该分类下暂无内容",
507
+
508
+ // CategoryHeader 新增的翻译键
509
+ categoryNamePlaceholder: "输入分类名称",
510
+ expand: "展开",
511
+ collapse: "折叠",
512
+ selectCategory: "选择分类 {{name}}",
513
+ dragToReorder: "拖拽以重新排序分类",
514
+ editName: "编辑名称",
515
+ deleteCategoryConfirm: "确定要删除分类“{{name}}”吗?此操作无法撤销。",
516
+ deleteCategory: "删除分类",
517
+ search: "搜索",
518
+ search_no_results: "没有找到结果",
519
+ please_login: "请先登录",
520
+ search_placeholder: "搜索内容...",
521
+ allView: {
522
+ recent: "最近",
523
+ favorites: "我的收藏",
524
+ shares: "我的分享",
525
+ expanded: "已展开",
526
+ back: "返回",
527
+ viewAll: "更多",
528
+ noFavorites: "暂无收藏",
529
+ noShares: "暂无分享",
530
+ loadSharesError: "加载分享列表失败",
531
+ },
532
+ delete_space_options_title: "删除空间前如何处理数据?",
533
+ delete_space_options_desc:
534
+ "删除空间后,你可以保留当前用户自己的内容并移到“全部”,也可以连同这些内容一起删除。",
535
+ delete_space_move_to_all: "删除空间,并把我的数据移动到“全部”",
536
+ delete_space_move_to_all_desc:
537
+ "推荐。会清掉当前用户数据上的 spaceId,让它们继续保留在“全部”视图里。",
538
+ delete_space_move_to_all_success:
539
+ "空间已删除,当前用户的数据已移到“全部”",
540
+ delete_space_delete_owned_success:
541
+ "空间已删除,当前用户的数据也已删除",
542
+ delete_space_with_owned: "删除空间,并删除我的数据",
543
+ delete_space_with_owned_desc:
544
+ "会删除当前用户在此空间里拥有的实体,同时删除空间本身。",
545
+ delete_space_cancel_desc: "先不删除空间,返回设置页。",
546
+ manage: "管理",
547
+ finish: "完成",
548
+ ocrAddToChat: "OCR 加入对话",
549
+ },
550
+ },
551
+
552
+ [Language.ZH_HANT]: {
553
+ translation: {
554
+ // === 基础操作 ===
555
+ create: "創建空間",
556
+ name: "空間名稱",
557
+ description: "描述",
558
+ visibility: "可見性",
559
+ private: "私有",
560
+ public: "公開",
561
+ loading: "載入中...",
562
+ cancel: "取消",
563
+ delete: "刪除",
564
+ save: "儲存",
565
+ edit: "編輯",
566
+
567
+ // === 表单相关 ===
568
+ name_required: "空間名稱必填",
569
+ name_min_length: "空間名稱至少需要2個字符",
570
+ name_max_length: "空間名稱不能超過50個字符",
571
+ name_placeholder: "輸入空間名稱",
572
+ description_placeholder: "輸入空間描述(可選)",
573
+ description_max_length: "描述不能超過200個字符",
574
+
575
+ // === 创建空间 ===
576
+ create_new_space: "創建新空間",
577
+ create_space: "創建空間",
578
+ create_success: "空間創建成功",
579
+ create_error: "創建空間失敗",
580
+ creating: "正在創建空間...",
581
+
582
+ // === 空间选择 ===
583
+ default_space: "預設空間",
584
+ select_space: "選擇空間",
585
+ no_spaces: "暫無空間",
586
+ no_spaces_yet: "尚未創建任何空間",
587
+ space_list: "空間清單",
588
+ space_dropdown: "開啟空間選單",
589
+ current_space: "目前空間",
590
+ switch_space: "切換空間",
591
+
592
+ // === 导航相关 ===
593
+ home: "首頁",
594
+ back_to_home: "返回首頁",
595
+ space_settings: "空間設定",
596
+
597
+ // === 空间设置 ===
598
+ unsaved_changes: "有未儲存的變更",
599
+ unsaved_warning: "您有未儲存的變更。是否要在離開前儲存?",
600
+ save_before_leave: "儲存變更",
601
+ discard_changes: "放棄變更",
602
+ load_error_title: "載入空間資訊失敗",
603
+ no_space_data: "未找到空間資料",
604
+ try_repair: "嘗試修復",
605
+ repair_success: "修復操作成功完成",
606
+ repair_error: "修復操作失敗",
607
+ try_later: "請稍後重試",
608
+
609
+ // === 基本信息 ===
610
+ basic_info: "基本資訊",
611
+ manage_basic_info: "管理空間的名稱、描述等基本資訊",
612
+ space_details: "空間詳情",
613
+ view_space_details: "查看此空間的基本資訊和後設資料",
614
+ space_id: "空間ID",
615
+ created_at: "創建時間",
616
+ updated_at: "最後更新",
617
+ member_count: "成員",
618
+ people: "人",
619
+ person: "人",
620
+
621
+ // === 权限管理 ===
622
+ access_permission: "存取權限",
623
+ manage_access: "控制誰可以存取和查看此空間的內容",
624
+ select_visibility: "選擇空間可見性",
625
+ private_description: "只有受邀請的成員可以存取此空間",
626
+ public_description: "所有人都可以查看,但只有成員可以編輯內容",
627
+ permission_updated: "權限設定更新成功",
628
+
629
+ // === 默认空间 ===
630
+ save_changes: "儲存變更",
631
+ set_as_default: "設為預設空間",
632
+ current_default: "目前預設空間",
633
+ cancel_changes: "取消變更",
634
+ set_default_success: "已成功設為預設空間",
635
+ set_default_error: "設定預設空間失敗",
636
+ default_space_description: "將此空間設置為啟動應用程式時的預設工作空間",
637
+ this_space: "此空間",
638
+
639
+ // === 删除空间 ===
640
+ delete_space: "刪除空間",
641
+ delete_confirm_message:
642
+ "確定要刪除此空間嗎?此操作無法撤銷,空間內的所有檔案和資料將被永久刪除。",
643
+ remove_space_membership_title: "清理空間成員記錄",
644
+ remove_space_membership_action: "刪除失效成員記錄",
645
+ remove_space_membership_confirm_message:
646
+ "目前空間主資料缺失,此操作只會刪除你在該空間的成員記錄,讓它不再出現在空間選擇器中。此操作無法撤銷。",
647
+ remove_space_membership_success: "成員記錄已清理",
648
+ remove_space_membership_error: "清理成員記錄失敗",
649
+ delete_description:
650
+ "此操作將永久刪除空間內的所有檔案、頁面和資料,無法復原。",
651
+ delete_warning:
652
+ "警告:此空間有 {{count}} 名成員。刪除前請確保通知所有成員。",
653
+ delete_input_placeholder: "輸入空間名稱以確認",
654
+ delete_confirmation_required: "請輸入空間名稱以確認刪除",
655
+ delete_success: "空間已刪除",
656
+ delete_error: "刪除空間失敗",
657
+ deleting: "正在刪除空間...",
658
+
659
+ // === 更新操作 ===
660
+ update_success: "設定更新成功",
661
+ update_error: "更新設定失敗",
662
+ updating: "正在更新...",
663
+
664
+ // === 状态提示 ===
665
+ empty_state_title: "尚無空間",
666
+ empty_state_description: "創建您的第一個空間來開始使用",
667
+ get_started: "開始使用",
668
+
669
+ // === 侧边栏/内容管理相关 ===
670
+ uncategorized: "未分類",
671
+ dragToCategorize: "拖曳項目到此處進行分類,或建立新分類。",
672
+ itemsDeleted: "已刪除 {{count}} 項",
673
+ createPageFailed: "建立新頁面失敗",
674
+ categoryCreated: "分類 '{{name}}' 建立成功",
675
+ emptyTitle: "暫無內容",
676
+ emptyHint: "建立您的第一個頁面或將檔案拖曳到此處開始。",
677
+ createFirstPage: "建立第一個頁面",
678
+ selectedItemsCount: "已選擇 {{count}} 項",
679
+ deselectAll: "取消全選",
680
+ selectAll: "全部選擇",
681
+ deleteSelected: "刪除所選",
682
+ cancelSelectionMode: "取消選擇模式",
683
+ content: "內容",
684
+ newPage: "新建頁面",
685
+ newCategory: "新建分類",
686
+ batchSelect: "批次選擇",
687
+ expandAll: "全部展開",
688
+ collapseAll: "全部摺疊",
689
+ contentMoved: "內容已成功移動",
690
+ noOtherSpaces: "沒有其他可用空間",
691
+ titlePlaceholder: "無標題",
692
+ moreActions: "更多操作",
693
+ editTitle: "編輯標題",
694
+ moveToSpace: "移動到空間",
695
+ // 新增翻译键
696
+ joinConversation: "加入對話",
697
+ addedToConversation: "已加入對話",
698
+
699
+ // === 側邊欄標籤 ===
700
+ all: "全部",
701
+ dialogs: "對話",
702
+ pages: "頁面",
703
+ images: "圖片",
704
+ documentAttachments: "文件附件",
705
+ videos: "影片",
706
+ audios: "音訊",
707
+ files: "其他附件",
708
+ file: "檔案",
709
+ attachment: "其他附件",
710
+ otherAttachments: "其他附件",
711
+ documentAttachment: "文件附件",
712
+ videoAttachment: "影片",
713
+ audioAttachment: "音訊",
714
+ tables: "表格",
715
+ apps: "應用",
716
+ agents: "智能體",
717
+ scheduled: "定時任務",
718
+ no_content_in_tab: "目前空間暫無{{type}}",
719
+ no_attachments_in_space: "該空間下還沒有任何附件或媒體檔案",
720
+ no_attachments_desc:
721
+ "你可以上傳圖片、文件、影片或音訊等各類檔案,方便在對話中引用。",
722
+ no_scheduled_in_space: "該空間下暫無定時任務",
723
+ no_scheduled_desc:
724
+ "這裡展示空間內的定時自動化任務與定時運行狀態。你可以透過下發指令或配置工作流,讓 AI 按設定時間自動運行並在此處交付成果。",
725
+ no_images_in_space: "該空間下暫無圖片",
726
+ no_images_desc:
727
+ "你可以上傳圖片,或者在 AI 對話中生成圖片並保存到這裡。",
728
+ no_documents_in_space: "該空間下暫無文件附件",
729
+ no_documents_desc:
730
+ "你可以上傳 PDF、Markdown、Word 等文件附件,方便在對話中引用和分析。",
731
+ no_videos_in_space: "該空間下暫無影片",
732
+ no_videos_desc:
733
+ "你可以上傳各類影片檔案,方便在對話中作為上下文引用。",
734
+ no_audios_in_space: "該空間下暫無音訊",
735
+ no_audios_desc:
736
+ "你可以上傳錄音或音軌,方便 AI 提取文字或進行音訊處理。",
737
+ no_tables_in_space: "該空間下暫無表格",
738
+ no_tables_desc:
739
+ "用結構化視圖整理和分析你的數據,支持直接在表格內進行 AI 處理。",
740
+ no_files_in_space: "該空間下暫無其他附件",
741
+ no_files_desc:
742
+ "這裡展示未歸類到圖片、文件、音視頻中的其他格式檔案。",
743
+
744
+ // === 內容管理頁面 ===
745
+ contentManagement: "內容管理",
746
+ itemDeleted: "項目已刪除",
747
+ deleteFailed: "刪除失敗",
748
+ uploadSuccess: "上傳完成",
749
+ uploadFailed: "上傳失敗",
750
+ uploadFile: "上傳檔案",
751
+ uploading: "上傳中...",
752
+ selectionCount: "已選 {{count}}",
753
+ gridView: "網格視圖",
754
+ listView: "列表視圖",
755
+ confirmDelete: "確認刪除",
756
+ confirmDeleteMultiple: "確定要刪除選中的 {{count}} 個項目嗎?此操作無法撤銷。",
757
+ confirmDeleteSingle: "確定要刪除該項目嗎?此操作無法撤銷。",
758
+ unnamed: "未命名",
759
+ preview: "預覽",
760
+ open: "打開",
761
+ download: "下載",
762
+ clearFilters: "清除篩選",
763
+ totalCount: "共 {{count}} 項",
764
+ filteredCount: "{{count}} / {{total}} 項",
765
+ backToTop: "回到頂部",
766
+ latestContent: "最新內容",
767
+ viewTemplate: "查看模板",
768
+ spaceAgents: "Space 智能體",
769
+ no_content_desc: "上傳檔案或建立新內容以開始使用",
770
+ no_category_content: "該分類下暫無內容",
771
+
772
+ // CategoryHeader 新增的翻譯鍵
773
+ categoryNamePlaceholder: "輸入分類名稱",
774
+ expand: "展開",
775
+ collapse: "摺疊",
776
+ selectCategory: "選擇分類 {{name}}",
777
+ dragToReorder: "拖曳以重新排序分類",
778
+ editName: "編輯名稱",
779
+ deleteCategoryConfirm: "確定要刪除分類“{{name}}”嗎?此操作無法撤銷。",
780
+ deleteCategory: "刪除分類",
781
+ search: "搜尋",
782
+ search_no_results: "沒有找到結果",
783
+ please_login: "請先登入",
784
+ search_placeholder: "搜尋內容...",
785
+ allView: {
786
+ recent: "最近",
787
+ favorites: "我的收藏",
788
+ shares: "我的分享",
789
+ expanded: "已展開",
790
+ back: "返回",
791
+ viewAll: "更多",
792
+ noFavorites: "暫無收藏",
793
+ noShares: "暫無分享",
794
+ loadSharesError: "載入分享列表失敗",
795
+ },
796
+ delete_space_options_title: "刪除空間前如何處理資料?",
797
+ delete_space_options_desc:
798
+ "刪除空間後,你可以保留當前使用者自己的內容並移到「全部」,也可以連同這些內容一起刪除。",
799
+ delete_space_move_to_all: "刪除空間,並把我的資料移動到「全部」",
800
+ delete_space_move_to_all_desc:
801
+ "推薦。會清掉當前使用者資料上的 spaceId,讓它們繼續保留在「全部」視圖中。",
802
+ delete_space_move_to_all_success:
803
+ "空間已刪除,當前使用者的資料已移到「全部」",
804
+ delete_space_delete_owned_success:
805
+ "空間已刪除,當前使用者的資料也已刪除",
806
+ delete_space_with_owned: "刪除空間,並刪除我的資料",
807
+ delete_space_with_owned_desc:
808
+ "會刪除當前使用者在此空間中擁有的實體,同時刪除空間本身。",
809
+ delete_space_cancel_desc: "先不刪除空間,返回設定頁。",
810
+ manage: "管理",
811
+ finish: "完成",
812
+ },
813
+ },
814
+
815
+ [Language.JA]: {
816
+ translation: {
817
+ // === 基本操作 ===
818
+ create: "スペースを作成",
819
+ name: "スペース名",
820
+ description: "説明",
821
+ visibility: "公開設定",
822
+ private: "非公開",
823
+ public: "公開",
824
+ loading: "読み込み中...",
825
+ cancel: "キャンセル",
826
+ delete: "削除",
827
+ save: "保存",
828
+ edit: "編集",
829
+
830
+ // === フォーム関連 ===
831
+ name_required: "スペース名は必須です",
832
+ name_min_length: "スペース名は2文字以上である必要があります",
833
+ name_max_length: "スペース名は50文字以下にしてください",
834
+ name_placeholder: "スペース名を入力",
835
+ description_placeholder: "スペースの説明を入力(任意)",
836
+ description_max_length: "説明は200文字以下にしてください",
837
+
838
+ // === スペース作成 ===
839
+ create_new_space: "新しいスペースを作成",
840
+ create_space: "スペースを作成",
841
+ create_success: "スペースが正常に作成されました",
842
+ create_error: "スペースの作成に失敗しました",
843
+ creating: "スペースを作成中...",
844
+
845
+ // === スペース選択 ===
846
+ default_space: "デフォルトスペース",
847
+ select_space: "スペースを選択",
848
+ no_spaces: "スペースがありません",
849
+ no_spaces_yet: "まだスペースが作成されていません",
850
+ space_list: "スペース一覧",
851
+ space_dropdown: "スペースメニューを開く",
852
+ current_space: "現在のスペース",
853
+ switch_space: "スペースを切り替える",
854
+
855
+ // === ナビゲーション関連 ===
856
+ home: "ホーム",
857
+ back_to_home: "ホームに戻る",
858
+ space_settings: "スペース設定",
859
+
860
+ // === スペース設定 ===
861
+ unsaved_changes: "保存されていない変更があります",
862
+ unsaved_warning:
863
+ "保存されていない変更があります。離れる前に保存しますか?",
864
+ save_before_leave: "変更を保存",
865
+ discard_changes: "変更を破棄",
866
+ load_error_title: "スペース情報の読み込みに失敗しました",
867
+ no_space_data: "スペースデータが見つかりません",
868
+ try_repair: "修復を試行",
869
+ repair_success: "修復操作が正常に完了しました",
870
+ repair_error: "修復操作に失敗しました",
871
+ try_later: "しばらくしてから再度お試しください",
872
+
873
+ // === 基本情報 ===
874
+ basic_info: "基本情報",
875
+ manage_basic_info: "スペース名や説明などの基本情報を管理する",
876
+ space_details: "スペース詳細",
877
+ view_space_details: "このスペースの基本情報とメタデータを表示する",
878
+ space_id: "スペースID",
879
+ created_at: "作成日時",
880
+ updated_at: "最終更新",
881
+ member_count: "メンバー",
882
+ people: "人",
883
+ person: "人",
884
+
885
+ // === 権限管理 ===
886
+ access_permission: "アクセス権限",
887
+ manage_access:
888
+ "このスペースのコンテンツにアクセスおよび表示できるユーザーを制御する",
889
+ select_visibility: "スペースの公開設定を選択",
890
+ private_description:
891
+ "招待されたメンバーのみがこのスペースにアクセスできます",
892
+ public_description:
893
+ "誰でも閲覧できますが、メンバーのみがコンテンツを編集できます",
894
+ permission_updated: "権限設定が正常に更新されました",
895
+
896
+ // === デフォルトスペース ===
897
+ save_changes: "変更を保存",
898
+ set_as_default: "デフォルトスペースに設定",
899
+ current_default: "現在のデフォルトスペース",
900
+ cancel_changes: "変更をキャンセル",
901
+ set_default_success: "デフォルトスペースに正常に設定されました",
902
+ set_default_error: "デフォルトスペースの設定に失敗しました",
903
+ default_space_description: "アプリ起動時のデフォルトワークスペースとしてこのスペースを設定します。",
904
+ this_space: "このスペース",
905
+
906
+ // === スペース削除 ===
907
+ delete_space: "スペースを削除",
908
+ delete_confirm_message:
909
+ "このスペースを削除してもよろしいですか?この操作は元に戻せません。スペース内のすべてのファイルとデータが永久に削除されます。",
910
+ remove_space_membership_title: "スペースメンバー記録を削除",
911
+ remove_space_membership_action: "無効なメンバー記録を削除",
912
+ remove_space_membership_confirm_message:
913
+ "現在スペース本体データが見つからないため、この操作ではこのスペースに対するあなたのメンバー記録のみを削除します。削除後はスペースセレクターに表示されなくなります。この操作は元に戻せません。",
914
+ remove_space_membership_success: "メンバー記録を削除しました",
915
+ remove_space_membership_error: "メンバー記録の削除に失敗しました",
916
+ delete_description:
917
+ "この操作はスペース内のすべてのファイル、ページ、データを永久に削除し、復元することはできません。",
918
+ delete_warning:
919
+ "警告:このスペースには {{count}} 人のメンバーがいます。削除する前にすべてのメンバーに通知してください。",
920
+ delete_input_placeholder: "確認のためスペース名を入力",
921
+ delete_confirmation_required:
922
+ "削除を確認するためにスペース名を入力してください",
923
+ delete_success: "スペースが削除されました",
924
+ delete_error: "スペースの削除に失敗しました",
925
+ deleting: "スペースを削除中...",
926
+
927
+ // === 更新操作 ===
928
+ update_success: "設定が更新されました",
929
+ update_error: "設定の更新に失敗しました",
930
+ updating: "更新中...",
931
+
932
+ // === 状態メッセージ ===
933
+ empty_state_title: "スペースがまだありません",
934
+ empty_state_description: "最初のスペースを作成して始めましょう",
935
+ get_started: "始める",
936
+
937
+ // === 侧边栏/内容管理相关 ===
938
+ uncategorized: "未分類",
939
+ dragToCategorize:
940
+ "ここに項目をドラッグして分類するか、新しいカテゴリを作成します。",
941
+ itemsDeleted: "{{count}} 件の項目を削除しました",
942
+ createPageFailed: "新しいページの作成に失敗しました",
943
+ categoryCreated: "カテゴリ「{{name}}」が正常に作成されました",
944
+ emptyTitle: "まだコンテンツがありません",
945
+ emptyHint:
946
+ "最初のページを作成するか、ここにファイルをドラッグして開始してください。",
947
+ createFirstPage: "最初のページを作成",
948
+ selectedItemsCount: "{{count}} 件の項目を選択済み",
949
+ deselectAll: "すべて選択解除",
950
+ selectAll: "すべて選択",
951
+ deleteSelected: "選択した項目を削除",
952
+ cancelSelectionMode: "選択モードをキャンセル",
953
+ content: "コンテンツ",
954
+ newPage: "新規ページ",
955
+ newCategory: "新規カテゴリ",
956
+ batchSelect: "一括選択",
957
+ expandAll: "すべて展開",
958
+ collapseAll: "すべて折りたたむ",
959
+ contentMoved: "コンテンツが正常に移動されました",
960
+ noOtherSpaces: "他のスペースはありません",
961
+ titlePlaceholder: "無題",
962
+ moreActions: "その他のアクション",
963
+ editTitle: "タイトルを編集",
964
+ moveToSpace: "スペースに移動",
965
+ // 新增翻译键
966
+ joinConversation: "会話に参加",
967
+ addedToConversation: "会話に追加しました",
968
+
969
+ // === サイドバータブ ===
970
+ all: "全て",
971
+ dialogs: "対話",
972
+ pages: "ページ",
973
+ images: "画像",
974
+ documentAttachments: "文書添付",
975
+ videos: "動画",
976
+ audios: "音声",
977
+ files: "その他の添付ファイル",
978
+ file: "ファイル",
979
+ attachment: "その他の添付ファイル",
980
+ otherAttachments: "その他の添付ファイル",
981
+ documentAttachment: "文書添付",
982
+ videoAttachment: "動画",
983
+ audioAttachment: "音声",
984
+ tables: "テーブル",
985
+ apps: "アプリ",
986
+ agents: "エージェント",
987
+ cybots: "エージェント",
988
+ scheduled: "スケジュール済み",
989
+ no_content_in_tab: "このスペースにはまだ{{type}}がありません。",
990
+ no_attachments_in_space:
991
+ "このスペースにはまだ添付ファイルやメディアファイルがありません。",
992
+ no_attachments_desc:
993
+ "画像、ドキュメント、動画、または音声ファイルをアップロードして、チャットで参照できます。",
994
+ no_scheduled_in_space: "このスペースにはまだ定期タスクがありません。",
995
+ no_scheduled_desc:
996
+ "ここでは、スペース内の定期自動化タスクと実行履歴が表示されます。AIに指示を出すか、ワークフローを設定して、指定した時間に自動的に実行し、ここに成果を提供します。",
997
+ no_images_in_space: "このスペースにはまだ画像がありません。",
998
+ no_images_desc: "画像をアップロードするか、AIとの会話で生成できます。",
999
+ no_documents_in_space:
1000
+ "このスペースにはまだドキュメント添付ファイルがありません。",
1001
+ no_documents_desc:
1002
+ "参照や分析のために、PDF、Markdown、Wordドキュメントなどをアップロードできます。",
1003
+ no_videos_in_space: "このスペースにはまだ動画がありません。",
1004
+ no_videos_desc:
1005
+ "文脈として参照するために動画ファイルをアップロードできます。",
1006
+ no_audios_in_space: "このスペースにはまだ音声がありません。",
1007
+ no_audios_desc:
1008
+ "文字起こしや処理のために、録音や音声トラックをアップロードできます。",
1009
+ no_tables_in_space: "このスペースにはまだテーブルがありません。",
1010
+ no_tables_desc:
1011
+ "構造化されたビューでデータを整理および分析し、直接AI処理をサポートします。",
1012
+ no_files_in_space:
1013
+ "このスペースにはまだその他の添付ファイルがありません。",
1014
+ no_files_desc:
1015
+ "画像、ドキュメント、またはメディアとして分類されていないその他のファイルがここに表示されます。",
1016
+
1017
+ // === コンテンツ管理ページ ===
1018
+ contentManagement: "コンテンツ管理",
1019
+ itemDeleted: "項目を削除しました",
1020
+ deleteFailed: "削除に失敗しました",
1021
+ uploadSuccess: "アップロード完了",
1022
+ uploadFailed: "アップロード失敗",
1023
+ uploadFile: "ファイルをアップロード",
1024
+ uploading: "アップロード中...",
1025
+ selectionCount: "選択済み {{count}}",
1026
+ gridView: "グリッド表示",
1027
+ listView: "リスト表示",
1028
+ confirmDelete: "削除の確認",
1029
+ confirmDeleteMultiple: "選択した {{count}} 件の項目を削除してもよろしいですか?この操作は元に戻せません。",
1030
+ confirmDeleteSingle: "この項目を削除してもよろしいですか?この操作は元に戻せません。",
1031
+ unnamed: "無題",
1032
+ preview: "プレビュー",
1033
+ open: "開く",
1034
+ download: "ダウンロード",
1035
+ clearFilters: "フィルターをクリア",
1036
+ totalCount: "全 {{count}} 件",
1037
+ filteredCount: "{{count}} / {{total}} 件",
1038
+ backToTop: "上に戻る",
1039
+ latestContent: "最新のコンテンツ",
1040
+ viewTemplate: "テンプレートを表示",
1041
+ spaceAgents: "スペースエージェント",
1042
+ no_content_desc: "ファイルをアップロードするか、新しいコンテンツを作成して開始します。",
1043
+ no_category_content: "このカテゴリにはコンテンツがありません。",
1044
+
1045
+ // CategoryHeader 新增的翻译键
1046
+ categoryNamePlaceholder: "カテゴリ名を入力",
1047
+ expand: "展開",
1048
+ collapse: "折りたたむ",
1049
+ selectCategory: "カテゴリ {{name}} を選択",
1050
+ dragToReorder: "カテゴリを並べ替えるためにドラッグ",
1051
+ editName: "名前を編集",
1052
+ deleteCategoryConfirm:
1053
+ "カテゴリ「{{name}}」を削除してもよろしいですか?この操作は元に戻せません。",
1054
+ deleteCategory: "カテゴリを削除",
1055
+ search: "検索",
1056
+ search_no_results: "結果が見つかりません",
1057
+ please_login: "先にログインしてください",
1058
+ search_placeholder: "コンテンツを検索...",
1059
+ allView: {
1060
+ recent: "最近",
1061
+ favorites: "お気に入り",
1062
+ shares: "自分の共有",
1063
+ expanded: "展開済み",
1064
+ back: "戻る",
1065
+ viewAll: "もっと見る",
1066
+ noFavorites: "お気に入りはまだありません",
1067
+ noShares: "共有はまだありません",
1068
+ loadSharesError: "共有一覧の読み込みに失敗しました",
1069
+ },
1070
+ delete_space_options_title: "このスペースを削除する前に、データをどう処理しますか?",
1071
+ delete_space_options_desc:
1072
+ "スペース削除後、現在のユーザー自身のコンテンツを「すべて」に移して保持するか、スペースと一緒に削除するかを選べます。",
1073
+ delete_space_move_to_all:
1074
+ "スペースを削除し、自分のデータを「すべて」に移動する",
1075
+ delete_space_move_to_all_desc:
1076
+ "推奨。現在のユーザーの spaceId をクリアし、コンテンツを「すべて」ビューに残します。",
1077
+ delete_space_move_to_all_success:
1078
+ "スペースを削除しました。データは「すべて」に移動しました。",
1079
+ delete_space_delete_owned_success:
1080
+ "スペースを削除しました。このスペース内の自分のデータも削除しました。",
1081
+ delete_space_with_owned: "スペースと自分のデータを削除する",
1082
+ delete_space_with_owned_desc:
1083
+ "このスペース内で現在のユーザーが所有するコンテンツを削除し、スペース自体も削除します。",
1084
+ delete_space_cancel_desc: "今回は削除せず、設定ページに戻ります。",
1085
+ },
1086
+ },
1087
+ };