rename: apes--sidebar → apes-sidebar(包名改单连字符)
- package.json name、cordis.patch.yml id/name、lib/index.js 导出、client.js 插件 id/设置命名空间/显示名默认值,全部统一为单连字符 apes-sidebar - 双连字符写法在 npm 包名和 loader 解析中易与单连字符混淆,统一后更规范
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# apes--sidebar
|
||||
# apes-sidebar
|
||||
|
||||
WorkBuddy / Tutti 风格的右侧边栏增强插件(基于 [dsh-better-sidebar](https://github.com/omdsh-dev/DSH-better-sidebar) 的 `ctx.betterSidebar` 服务)。**显示名可配置**:默认 `apes--sidebar`,预设 `feyOS`,或任意自定义。
|
||||
WorkBuddy / Tutti 风格的右侧边栏增强插件(基于 [dsh-better-sidebar](https://github.com/omdsh-dev/DSH-better-sidebar) 的 `ctx.betterSidebar` 服务)。**显示名可配置**:默认 `apes-sidebar`,预设 `feyOS`,或任意自定义。
|
||||
|
||||
在 better-sidebar 的右侧工作台里新增 4 个**可配置** Tab:
|
||||
|
||||
@@ -16,16 +16,16 @@ WorkBuddy / Tutti 风格的右侧边栏增强插件(基于 [dsh-better-sidebar
|
||||
前置:已装 `dsh-better-sidebar`(≥0.16)。
|
||||
|
||||
```bash
|
||||
dsh plugin --profile desktop add apes--sidebar
|
||||
dsh plugin --profile desktop add apes-sidebar
|
||||
```
|
||||
|
||||
装完**硬刷新**(Cmd/Ctrl+Shift+R)即可在侧边栏 + 菜单看到新 Tab。
|
||||
|
||||
## 配置(设置页「侧边卡片」→ apes--sidebar)
|
||||
## 配置(设置页「侧边卡片」→ apes-sidebar)
|
||||
|
||||
| 键 | 默认 | 说明 |
|
||||
|---|---|---|
|
||||
| `displayName` | `apes--sidebar` | 显示名:预设 `feyOS`,或自定义任意名字 |
|
||||
| `displayName` | `apes-sidebar` | 显示名:预设 `feyOS`,或自定义任意名字 |
|
||||
| `enableTasks` / `enableAgents` / `enableApps` / `enableProfile` | `true` | 各 Tab 显隐开关 |
|
||||
| `showTime` / `showUngrouped` | — | Tasks 子设置 |
|
||||
| `appsList` | 内置三件套 | 应用中心自定义条目(可选) |
|
||||
@@ -33,7 +33,7 @@ dsh plugin --profile desktop add apes--sidebar
|
||||
## 卸载
|
||||
|
||||
```bash
|
||||
dsh plugin --profile desktop remove apes--sidebar
|
||||
dsh plugin --profile desktop remove apes-sidebar
|
||||
```
|
||||
|
||||
## 兼容性注意
|
||||
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
# apes--sidebar bundle patch: inserts the host plugin row into the profile
|
||||
# apes-sidebar bundle patch: inserts the host plugin row into the profile
|
||||
# roster. The client half (sidebar tabs: Tasks / Agents / Profile) loads
|
||||
# through the dsh.client.inject declaration in package.json; this patch mounts
|
||||
# the Node-side host entry only.
|
||||
@@ -7,7 +7,7 @@
|
||||
# package (e.g. via an aggregate bundle), this row backs off.
|
||||
- insert:
|
||||
- id: apes-sidebar
|
||||
name: apes--sidebar
|
||||
name: apes-sidebar
|
||||
disabled: !!js >
|
||||
[...ctx.loader.entries()].some((e) =>
|
||||
e.options.name === 'apes--sidebar' && e.options.id !== 'apes-sidebar' && !e.disabled)
|
||||
e.options.name === 'apes-sidebar' && e.options.id !== 'apes-sidebar' && !e.disabled)
|
||||
|
||||
+14
-14
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* apes--sidebar — WorkBuddy/Tutti 风格右侧边栏增强(配置化主插件 v0.4.0)
|
||||
* apes-sidebar — WorkBuddy/Tutti 风格右侧边栏增强(配置化主插件 v0.4.0)
|
||||
*
|
||||
* 单个 client bundle 注册四个可配置 Tab:
|
||||
* - 'wb:tasks' —— WorkBuddy 式任务导航:按工作区分组的会话列表、搜索、
|
||||
@@ -13,8 +13,8 @@
|
||||
* 设置/帮助入口。
|
||||
*
|
||||
* 配置项(better-sidebar 设置页「侧边卡片」,持久化在
|
||||
* prefs.pluginSettings['apes--sidebar']):
|
||||
* - displayName (string, 默认 'apes--sidebar') 显示名;预设 'feyOS',
|
||||
* prefs.pluginSettings['apes-sidebar']):
|
||||
* - displayName (string, 默认 'apes-sidebar') 显示名;预设 'feyOS',
|
||||
* 或用户任意自定义
|
||||
* - enableTasks (bool, 默认 true) 显示 Tasks Tab
|
||||
* - enableAgents (bool, 默认 true) 显示 Agents Tab
|
||||
@@ -26,7 +26,7 @@
|
||||
* 纯 JS + React.createElement,无 JSX / TS / 构建步骤。
|
||||
*/
|
||||
window.__ModuleLoader__.load({
|
||||
id: "apes--sidebar",
|
||||
id: "apes-sidebar",
|
||||
factory: (require) => {
|
||||
var module = { exports: {} };
|
||||
var exports = module.exports;
|
||||
@@ -38,7 +38,7 @@ window.__ModuleLoader__.load({
|
||||
|
||||
// ---- 常量 ----------------------------------------------------------
|
||||
/** 插件身份(client 侧注册名,与 host 同名同 id)。 */
|
||||
var name = "apes--sidebar";
|
||||
var name = "apes-sidebar";
|
||||
/** client 侧注入的服务名。 */
|
||||
var inject = [
|
||||
'betterSidebar',
|
||||
@@ -46,10 +46,10 @@ window.__ModuleLoader__.load({
|
||||
'workspaces'
|
||||
];
|
||||
/** 显示名预设。 */
|
||||
var DISPLAY_NAME_DEFAULT = 'apes--sidebar';
|
||||
var DISPLAY_NAME_DEFAULT = 'apes-sidebar';
|
||||
var DISPLAY_NAME_PRESET_FEYOS = 'feyOS';
|
||||
/** 本插件设置命名空间(prefs.pluginSettings 下的键)。 */
|
||||
var SETTINGS_NS = 'apes--sidebar';
|
||||
var SETTINGS_NS = 'apes-sidebar';
|
||||
var TASKS_TAB_ID = "wb:tasks";
|
||||
var AGENTS_TAB_ID = "wb:agents";
|
||||
var APPS_TAB_ID = "wb:apps";
|
||||
@@ -107,7 +107,7 @@ window.__ModuleLoader__.load({
|
||||
"profile.model": "模型",
|
||||
"profile.settings": "设置",
|
||||
"profile.help": "帮助",
|
||||
"profile.footer": "apes--sidebar 0.4.0 · WorkBuddy/Tutti 风格增强"
|
||||
"profile.footer": "apes-sidebar 0.4.0 · WorkBuddy/Tutti 风格增强"
|
||||
};
|
||||
var en = {
|
||||
"tab.tasks.title": "Tasks",
|
||||
@@ -150,7 +150,7 @@ window.__ModuleLoader__.load({
|
||||
"profile.model": "Model",
|
||||
"profile.settings": "Settings",
|
||||
"profile.help": "Help",
|
||||
"profile.footer": "apes--sidebar 0.4.0 · WorkBuddy/Tutti style enhancement"
|
||||
"profile.footer": "apes-sidebar 0.4.0 · WorkBuddy/Tutti style enhancement"
|
||||
};
|
||||
|
||||
function isZh() {
|
||||
@@ -206,7 +206,7 @@ window.__ModuleLoader__.load({
|
||||
} catch (err) { /* ignore */ }
|
||||
return defs;
|
||||
}
|
||||
/** 当前显示名(设置里的 displayName,默认 apes--sidebar)。 */
|
||||
/** 当前显示名(设置里的 displayName,默认 apes-sidebar)。 */
|
||||
function displayNameOf(ctx) {
|
||||
try {
|
||||
var bs = ctx.get ? ctx.get('betterSidebar') : null;
|
||||
@@ -763,10 +763,10 @@ window.__ModuleLoader__.load({
|
||||
{
|
||||
key: "displayName",
|
||||
title: function () { return '显示名'; },
|
||||
desc: function () { return "默认 apes--sidebar;预设 feyOS,或输入任意名字"; },
|
||||
desc: function () { return "默认 apes-sidebar;预设 feyOS,或输入任意名字"; },
|
||||
type: "select",
|
||||
options: [
|
||||
{ value: DISPLAY_NAME_DEFAULT, title: function () { return 'apes--sidebar(默认)'; } },
|
||||
{ value: DISPLAY_NAME_DEFAULT, title: function () { return 'apes-sidebar(默认)'; } },
|
||||
{ value: DISPLAY_NAME_PRESET_FEYOS, title: function () { return 'feyOS'; } }
|
||||
]
|
||||
}
|
||||
@@ -804,7 +804,7 @@ window.__ModuleLoader__.load({
|
||||
return function () {
|
||||
for (var i = 0; i < disposers.length; i++) { try { disposers[i](); } catch (err) { } }
|
||||
};
|
||||
}, "apes--sidebar: register tabs");
|
||||
}, "apes-sidebar: register tabs");
|
||||
|
||||
ctx.effect(function () {
|
||||
return function () {
|
||||
@@ -813,7 +813,7 @@ window.__ModuleLoader__.load({
|
||||
disposeStyles(APPS_STYLE_ID);
|
||||
disposeStyles(PROFILE_STYLE_ID);
|
||||
};
|
||||
}, "apes--sidebar: dispose styles");
|
||||
}, "apes-sidebar: dispose styles");
|
||||
}
|
||||
|
||||
module.exports = { name: name, inject: inject, apply: apply };
|
||||
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* apes--sidebar — WorkBuddy/Tutti-style sidebar enhancement for
|
||||
* apes-sidebar — WorkBuddy/Tutti-style sidebar enhancement for
|
||||
* DeepSeek Harness Desktop.
|
||||
*
|
||||
* Host-side entry (Node). This half is deliberately minimal: the real value
|
||||
@@ -9,7 +9,7 @@
|
||||
* dsh.client.inject declaration in package.json pulls the browser half in).
|
||||
*/
|
||||
|
||||
export const name = 'apes--sidebar'
|
||||
export const name = 'apes-sidebar'
|
||||
|
||||
// NOTE: cordis resolves `inject` as a plain map of `serviceName -> intercept
|
||||
// config`. An object literal like `{ optional: ['logger'] }` is parsed as a
|
||||
@@ -19,5 +19,5 @@ export const name = 'apes--sidebar'
|
||||
|
||||
export function apply(ctx) {
|
||||
const log = ctx.logger ? ctx.logger('apes-sidebar') : console
|
||||
log.info('apes--sidebar host loaded (tabs register via client bundle)')
|
||||
log.info('apes-sidebar host loaded (tabs register via client bundle)')
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "apes--sidebar",
|
||||
"name": "apes-sidebar",
|
||||
"version": "0.4.0",
|
||||
"description": "WorkBuddy/Tutti-style right sidebar enhancement for DeepSeek Harness, configurable display name (default 'apes--sidebar', preset 'feyOS'). Tasks tab (workspace-grouped session navigation), Agents tab (multi-agent overview), Profile tab (bottom user area). Built on dsh-better-sidebar.",
|
||||
"description": "WorkBuddy/Tutti-style right sidebar enhancement for DeepSeek Harness, configurable display name (default 'apes-sidebar', preset 'feyOS'). Tasks tab (workspace-grouped session navigation), Agents tab (multi-agent overview), Profile tab (bottom user area). Built on dsh-better-sidebar.",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
"main": "lib/index.js",
|
||||
|
||||
Reference in New Issue
Block a user