API Docs Update (#47)

* bump: valibot to ^1.0.0-beta.10

* refactor: re-export some API interfaces in root index.ts
This commit is contained in:
Huakun Shen 2025-01-06 14:11:23 -05:00 committed by GitHub
parent f48484f476
commit 01bc0ea932
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 245 additions and 253 deletions

View File

@ -30,7 +30,7 @@
"debug": "^4.3.6", "debug": "^4.3.6",
"fs-extra": "^11.2.0", "fs-extra": "^11.2.0",
"inquirer": "^10.1.2", "inquirer": "^10.1.2",
"valibot": "^1.0.0-beta.8" "valibot": "^1.0.0-beta.10"
}, },
"files": [ "files": [
"dist" "dist"

View File

@ -27,7 +27,7 @@
"commander": "^12.1.0", "commander": "^12.1.0",
"fs-extra": "^11.2.0", "fs-extra": "^11.2.0",
"handlebars": "^4.7.8", "handlebars": "^4.7.8",
"valibot": "^1.0.0-beta.8" "valibot": "^1.0.0-beta.10"
}, },
"files": [ "files": [
"dist" "dist"

View File

@ -31,18 +31,18 @@
}, },
"devDependencies": { "devDependencies": {
"@types/bun": "latest", "@types/bun": "latest",
"@types/lodash": "^4.17.13", "@types/lodash": "^4.17.14",
"@types/madge": "^5.0.3", "@types/madge": "^5.0.3",
"@types/node": "^22.10.2", "@types/node": "^22.10.5",
"@types/semver": "^7.5.8", "@types/semver": "^7.5.8",
"fs-extra": "^11.2.0", "fs-extra": "^11.2.0",
"madge": "^8.0.0", "madge": "^8.0.0",
"typedoc": "^0.27.5", "typedoc": "^0.27.6",
"typescript": "^5.0.0" "typescript": "^5.0.0"
}, },
"dependencies": { "dependencies": {
"@tauri-apps/api": "^2.1.1", "@tauri-apps/api": "^2.2.0",
"@tauri-apps/cli": "^2.1.0", "@tauri-apps/cli": "^2.2.2",
"@tauri-apps/plugin-deep-link": "^2.2.0", "@tauri-apps/plugin-deep-link": "^2.2.0",
"@tauri-apps/plugin-dialog": "^2.2.0", "@tauri-apps/plugin-dialog": "^2.2.0",
"@tauri-apps/plugin-fs": "^2.2.0", "@tauri-apps/plugin-fs": "^2.2.0",
@ -66,7 +66,7 @@
"tauri-plugin-network-api": "2.0.5", "tauri-plugin-network-api": "2.0.5",
"tauri-plugin-shellx-api": "^2.0.14", "tauri-plugin-shellx-api": "^2.0.14",
"tauri-plugin-system-info-api": "2.0.8", "tauri-plugin-system-info-api": "2.0.8",
"valibot": "^1.0.0-beta.8" "valibot": "^1.0.0-beta.10"
}, },
"files": [ "files": [
"src", "src",

View File

@ -8,4 +8,16 @@ export { constructExtensionSupportDir } from "./api/server/path"
export { constructJarvisServerAPIWithPermissions } from "./api/server" export { constructJarvisServerAPIWithPermissions } from "./api/server"
export * from "./constants" export * from "./constants"
export { TauriShellStdio } from "./api/shell" export { TauriShellStdio } from "./api/shell"
export type {
IClipboard,
IDialog,
ILogger,
INetwork,
INotification,
IOs,
IPath,
ISystemInfo,
IUpdownload,
IFetch
} from "tauri-api-adapter"
export * from "./api/client" export * from "./api/client"

View File

@ -1,26 +1,7 @@
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
/* API */ /* API */
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
// export {
// clipboard,
// dialog,
// // event,
// network,
// fs,
// notification,
// os,
// shell,
// sysInfo,
// path,
// log,
// updownload,
// fetch
// } from "tauri-api-adapter"
export { constructJarvisServerAPIWithPermissions } from "../api/server" export { constructJarvisServerAPIWithPermissions } from "../api/server"
// export { type IUiWorkerServer, type IUiIframeServer } from "./server/ui"
export * from "../api/client" // all client types
// export { expose, wrap } from "@huakunshen/comlink"
// export { getWorkerApiClient, exposeApiToWorker, exposeApiToWindow } from "tauri-api-adapter"
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
/* API Interfaces */ /* API Interfaces */
@ -33,11 +14,10 @@ export type {
INotification, INotification,
IOs, IOs,
IPath, IPath,
// IShell,
ISystemInfo, ISystemInfo,
IUpdownload, IUpdownload,
IFetch IFetch
} from "tauri-api-adapter" } from "tauri-api-adapter"
export type { ISystem, IToast, IUiIframe, IDb, IKV, IFs, IOpen, IEvent } from "../api/client" export * from "../api/client" // all client types
export type { IUiWorker } from "./worker" export type { IUiWorker } from "./worker"
export type { IShell } from "../api/shell" export type { IShell } from "../api/shell"

View File

@ -24,6 +24,6 @@
"dependencies": { "dependencies": {
"@aws-sdk/client-s3": "^3.583.0", "@aws-sdk/client-s3": "^3.583.0",
"@kksh/api": "workspace:*", "@kksh/api": "workspace:*",
"valibot": "^1.0.0-beta.9" "valibot": "^1.0.0-beta.10"
} }
} }

442
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

@ -1 +1 @@
Subproject commit 6c6314d41093eb36af6c4c375f07048ef73aa36f Subproject commit d7e55fbe23ddd2bd947c1d0a46c34edb2698e00c

@ -1 +1 @@
Subproject commit 990320d9068b832c6291bccb1e252cf7175bd4a6 Subproject commit ab47fa355ba5c6088abd2d173efb742062202a8a