@xiongtao.xt/tau-plugins 0.49.0 → 0.50.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/CHANGELOG.md +293 -289
- package/LICENSE +21 -21
- package/client/{chunk-MNFXOBPW.js → chunk-JEQ7TXLL.js} +38 -4
- package/docs/README.md +44 -44
- package/docs/ai.md +176 -176
- package/docs/backend.md +177 -177
- package/docs/editor-collaboration.md +153 -153
- package/docs/editor.md +701 -701
- package/docs/excerpts.md +145 -145
- package/docs/flashcards.md +144 -144
- package/docs/getting-started.md +78 -78
- package/docs/mcp.md +185 -185
- package/docs/plugin-basics.md +215 -215
- package/docs/portability.md +142 -135
- package/docs/providers/README.md +116 -116
- package/docs/providers/asr.md +135 -135
- package/docs/providers/embeddings.md +77 -77
- package/docs/providers/images.md +81 -81
- package/docs/providers/publish.md +159 -159
- package/docs/providers/sync.md +129 -129
- package/docs/providers/tts.md +62 -62
- package/docs/providers/upload.md +131 -131
- package/docs/providers/video.md +130 -130
- package/docs/release.md +132 -132
- package/docs/services.md +169 -169
- package/docs/site-data.md +90 -90
- package/docs/skills.md +129 -129
- package/docs/storage-and-network.md +93 -93
- package/docs/ui.md +650 -647
- package/docs/user-data.md +791 -771
- package/docs/whiteboard.md +391 -391
- package/package.json +1 -1
- package/portable.js +5 -1
- package/publish-artifacts.js +1 -1
- package/types/packages/plugins/src/data.d.ts +2 -0
- package/types/packages/plugins/src/home.d.ts +11 -0
- package/types/packages/plugins/src/portable.d.ts +2 -0
package/package.json
CHANGED
package/portable.js
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
|
+
MOBILE_DATA_MIN_VERSION,
|
|
3
|
+
MOBILE_DATA_PERMISSIONS,
|
|
2
4
|
PORTABLE_PLATFORMS,
|
|
3
5
|
PORTABLE_SHARED_MODULES,
|
|
4
6
|
assertPortablePluginCompatibility,
|
|
5
7
|
buildPortablePluginManifest,
|
|
6
8
|
validatePortableDistributionManifest,
|
|
7
9
|
validatePortablePluginManifest
|
|
8
|
-
} from "./client/chunk-
|
|
10
|
+
} from "./client/chunk-JEQ7TXLL.js";
|
|
9
11
|
import "./client/chunk-CQ3UMKDY.js";
|
|
10
12
|
import "./client/chunk-UTVEXGFI.js";
|
|
11
13
|
export {
|
|
14
|
+
MOBILE_DATA_MIN_VERSION,
|
|
15
|
+
MOBILE_DATA_PERMISSIONS,
|
|
12
16
|
PORTABLE_PLATFORMS,
|
|
13
17
|
PORTABLE_SHARED_MODULES,
|
|
14
18
|
assertPortablePluginCompatibility,
|
package/publish-artifacts.js
CHANGED
|
@@ -224,6 +224,8 @@ export interface PluginEntityWriter<T, Input, Patch> extends PluginEntityReader<
|
|
|
224
224
|
delete(id: string, options: PluginWriteOptions): Promise<void>;
|
|
225
225
|
}
|
|
226
226
|
export interface PluginTodoQuery {
|
|
227
|
+
/** tasks 返回系列/普通任务;occurrences 返回原始日期标识的周期实例,须给 start/end。 */
|
|
228
|
+
view?: "tasks" | "occurrences";
|
|
227
229
|
/** 缺省为全部:独立待办与正文里的勾选项 */
|
|
228
230
|
source?: "all" | "todo" | "document";
|
|
229
231
|
completed?: boolean;
|
|
@@ -5,6 +5,11 @@ export type PluginHomePanelSize = "compact" | "wide";
|
|
|
5
5
|
export interface PluginHomePanelProps {
|
|
6
6
|
readonly context: PluginContext;
|
|
7
7
|
}
|
|
8
|
+
/** 面板标题行右侧的入口,如「查看账本」 */
|
|
9
|
+
export interface PluginHomePanelAction {
|
|
10
|
+
title: string;
|
|
11
|
+
run(): void | Promise<void>;
|
|
12
|
+
}
|
|
8
13
|
export interface PluginHomePanelDefinition {
|
|
9
14
|
id: string;
|
|
10
15
|
/** 面板标题,也是「显示已隐藏的面板」里的名称 */
|
|
@@ -13,7 +18,13 @@ export interface PluginHomePanelDefinition {
|
|
|
13
18
|
component: ComponentType<PluginHomePanelProps>;
|
|
14
19
|
/** 缺省为 wide */
|
|
15
20
|
size?: PluginHomePanelSize;
|
|
21
|
+
/** 可选,由宿主画在标题行右侧 */
|
|
22
|
+
action?: PluginHomePanelAction;
|
|
16
23
|
}
|
|
24
|
+
/** 宿主收到的定义:size 已补成缺省值,action 缺省为 null */
|
|
25
|
+
export type RegisteredHomePanelDefinition = Readonly<Required<Omit<PluginHomePanelDefinition, "action">> & {
|
|
26
|
+
action: Readonly<PluginHomePanelAction> | null;
|
|
27
|
+
}>;
|
|
17
28
|
export interface PluginHome {
|
|
18
29
|
/** 面板出现在首页:新面板排在末尾,位置由用户调整;插件停用后消失,重新启用回到原位置 */
|
|
19
30
|
registerPanel(definition: PluginHomePanelDefinition): Disposable;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type PluginManifest } from "./package";
|
|
2
2
|
import type { PluginEnvironment } from "./environment";
|
|
3
|
+
export declare const MOBILE_DATA_MIN_VERSION = "0.2.13";
|
|
4
|
+
export declare const MOBILE_DATA_PERMISSIONS: readonly ["cards:read", "cards:write", "cards:delete", "articles:read", "articles:write", "articles:delete", "projects:read", "projects:write", "projects:delete", "documents:read", "documents:write", "documents:delete", "todos:read", "todos:write", "todos:delete", "calendar:read", "calendar:write", "calendar:delete"];
|
|
3
5
|
export declare const PORTABLE_PLATFORMS: readonly ["desktop", "android", "ios"];
|
|
4
6
|
export type PortablePlatform = (typeof PORTABLE_PLATFORMS)[number];
|
|
5
7
|
export declare const PORTABLE_SHARED_MODULES: readonly ["@tau/plugins", "@tau/plugins/whiteboard", "@tau/ui", "react", "react-dom", "react-dom/client", "react/jsx-runtime", "react/jsx-dev-runtime"];
|