mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-09 00:33:20 +08:00
chore: release v4.0.1
This commit is contained in:
parent
8794a46e81
commit
92ec91b7bd
7 changed files with 102 additions and 10 deletions
|
|
@ -571,7 +571,7 @@ var React22 = __toESM(require("react"), 1);
|
|||
// package.json
|
||||
var package_default = {
|
||||
name: "@xmanrui/dsh-im",
|
||||
version: "4.0.0",
|
||||
version: "4.0.1",
|
||||
description: "\u628A\u4E5D\u79CD IM \u673A\u5668\u4EBA\u548C\u516C\u7F51 AI Office \u63A5\u5165\u672C\u673A DeepSeek Harness\u3002 Connect nine IM channels and a public AI Office to a local DeepSeek Harness.",
|
||||
keywords: [
|
||||
"deepseek-harness",
|
||||
|
|
@ -12487,6 +12487,14 @@ function UpdatePanel({ rpcCall, clientVersion, onStatus }) {
|
|||
var name = "im-settings";
|
||||
var inject = ["slots", "connection", "locale", "workspaces"];
|
||||
var IM_PLUGIN_VERSION = package_default.version;
|
||||
function callWorkspaceDirectoryApi(ctx, method, ...args) {
|
||||
const uiWorkspace = typeof ctx.get === "function" ? ctx.get("uiWorkspace") : void 0;
|
||||
const service = typeof uiWorkspace?.[method] === "function" ? uiWorkspace : ctx.workspaces;
|
||||
if (typeof service?.[method] !== "function") {
|
||||
throw new Error("\u65E0\u6CD5\u8BFB\u53D6\u76EE\u5F55\uFF0C\u8BF7\u91CD\u8BD5\u3002");
|
||||
}
|
||||
return service[method](...args);
|
||||
}
|
||||
var CHANNELS = Object.freeze([
|
||||
{ id: "weixin", label: "\u5FAE\u4FE1" },
|
||||
{ id: "feishu", label: "\u98DE\u4E66" },
|
||||
|
|
@ -12785,8 +12793,8 @@ function apply(ctx) {
|
|||
const officeRpcCall = (endpoint, payload, signal) => ctx.connection.rpc.call(OFFICE_RPC_CHANNEL, endpoint, payload, signal);
|
||||
const updateRpcCall = (endpoint, payload, signal) => ctx.connection.rpc.call(UPDATE_RPC_CHANNEL, endpoint, payload, signal);
|
||||
const workspaceDirectoryPicker = Object.freeze({
|
||||
listDirectory: (path, signal) => ctx.workspaces.listDirectory(path, signal),
|
||||
pickDirectory: () => ctx.workspaces.pickDirectory()
|
||||
listDirectory: (path, signal) => callWorkspaceDirectoryApi(ctx, "listDirectory", path, signal),
|
||||
pickDirectory: () => callWorkspaceDirectoryApi(ctx, "pickDirectory")
|
||||
});
|
||||
ctx.slots.inject("settings.section", () => ctx.slots.register({
|
||||
name: "settings.section",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue