@aiwayds/dsh-tui-pi 2.35.0 → 2.37.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/locales/en.json CHANGED
@@ -696,6 +696,7 @@
696
696
  "plugins.install.empty": "name the package to install",
697
697
  "plugins.install.inspectFailed": "inspection failed: {message}",
698
698
  "plugins.install.refused": "refused ({problem}): {reason}",
699
+ "plugins.skip.warning": "plugin {name} skipped: requires {requirements} (host {runtime})",
699
700
  "tui.cmd.search.description": "full-text search across stored sessions",
700
701
  "tui.search.unavailable": "session search is unavailable in this profile",
701
702
  "tui.search.cancelled": "search dismissed",
package/locales/ja.json CHANGED
@@ -696,6 +696,7 @@
696
696
  "plugins.install.empty": "インストールするパッケージ名を入力してください",
697
697
  "plugins.install.inspectFailed": "確認に失敗:{message}",
698
698
  "plugins.install.refused": "拒否されました({problem}):{reason}",
699
+ "plugins.skip.warning": "プラグイン {name} をスキップしました: {requirements} が必要(ホスト {runtime})",
699
700
  "tui.cmd.search.description": "保存済みセッションを全文検索",
700
701
  "tui.search.unavailable": "このプロファイルではセッション検索を利用できません",
701
702
  "tui.search.cancelled": "検索を中断しました",
package/locales/ko.json CHANGED
@@ -696,6 +696,7 @@
696
696
  "plugins.install.empty": "설치할 패키지 이름을 입력하세요",
697
697
  "plugins.install.inspectFailed": "확인 실패: {message}",
698
698
  "plugins.install.refused": "거부됨({problem}): {reason}",
699
+ "plugins.skip.warning": "플러그인 {name} 건너뜀: {requirements} 필요 (호스트 {runtime})",
699
700
  "tui.cmd.search.description": "저장된 세션 전체 텍스트 검색",
700
701
  "tui.search.unavailable": "이 프로필에선 세션 검색을 사용할 수 없습니다",
701
702
  "tui.search.cancelled": "검색을 취소했습니다",
@@ -696,6 +696,7 @@
696
696
  "plugins.install.empty": "请输入要安装的包名",
697
697
  "plugins.install.inspectFailed": "检查失败:{message}",
698
698
  "plugins.install.refused": "被拒绝({problem}):{reason}",
699
+ "plugins.skip.warning": "插件 {name} 已跳过:要求 {requirements}(宿主 {runtime})",
699
700
  "tui.cmd.search.description": "跨会话全文搜索历史会话",
700
701
  "tui.search.unavailable": "此 profile 不支持会话搜索",
701
702
  "tui.search.cancelled": "已取消搜索",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiwayds/dsh-tui-pi",
3
- "version": "2.35.0",
3
+ "version": "2.37.0",
4
4
  "description": "A fully-featured pi-style terminal UI for DeepSeek Harness (dsh) — history look-back & fork-at-turn, guided preset switching, live subagent steering, model profiles & themes",
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,7 +37,7 @@
37
37
  "dsh-tui-pi": "bin/dsh-tui-pi",
38
38
  "dst": "bin/dsh-tui-pi"
39
39
  },
40
- "license": "MIT",
40
+ "license": "Apache-2.0",
41
41
  "engines": {
42
42
  "node": ">=22.19.0"
43
43
  },
@@ -75,14 +75,14 @@
75
75
  "@aiwayds/dsh-mcp-adapter": "^0.7.2",
76
76
  "@aiwayds/dsh-model-sync": "^0.8.0",
77
77
  "@aiwayds/dsh-profile-switch": "^0.3.1",
78
- "@aiwayds/dsh-subagent-registry": "^0.17.0",
78
+ "@aiwayds/dsh-subagent-registry": "^0.18.0",
79
79
  "@aiwayds/dsh-web-search-anysearch": "^0.8.1",
80
80
  "@earendil-works/pi-tui": "0.85.1"
81
81
  },
82
82
  "peerDependencies": {
83
- "@deepseek-ai/dsh-settings": ">=0.2.0-rc.2",
84
- "@deepseek-ai/dsh-skill": ">=0.2.0-rc.2",
85
- "@deepseek-ai/dsh-user-questions": ">=0.2.0-rc.2"
83
+ "@deepseek-ai/dsh-settings": ">=0.2.2-rc.1",
84
+ "@deepseek-ai/dsh-skill": ">=0.2.2-rc.1",
85
+ "@deepseek-ai/dsh-user-questions": ">=0.2.2-rc.1"
86
86
  },
87
87
  "peerDependenciesMeta": {
88
88
  "@deepseek-ai/dsh-settings": {
@@ -96,9 +96,10 @@
96
96
  }
97
97
  },
98
98
  "devDependencies": {
99
- "@deepseek-ai/dsh-settings": "0.2.1-rc.5",
100
- "@deepseek-ai/dsh-skill": "0.2.1-rc.5",
101
- "@deepseek-ai/dsh-user-questions": "0.2.1-rc.5",
99
+ "@deepseek-ai/cordis": "4.1.0",
100
+ "@deepseek-ai/dsh-settings": "0.2.2-rc.1",
101
+ "@deepseek-ai/dsh-skill": "0.2.2-rc.1",
102
+ "@deepseek-ai/dsh-user-questions": "0.2.2-rc.1",
102
103
  "@types/node": "^24.0.0",
103
104
  "typescript": "~5.9.0"
104
105
  },
package/lib/profile.d.ts DELETED
@@ -1,82 +0,0 @@
1
- /**
2
- * `/profile-switch` + `/profile-cfg` — user model profiles: named snapshots
3
- * of the whole model configuration (default model + think level, every
4
- * subagent's model/thinking) that switch in one step between contexts like
5
- * work and personal.
6
- *
7
- * Layers, all on the select-panel framework (src/panels.ts):
8
- *
9
- * 1. `/profile-switch` switcher (TablePanel) — one row per profile (name |
10
- * default model | think | agents). Enter applies the profile to the
11
- * live selection AND the agent markdown files, and BINDS this directory
12
- * tree (.dsh-profile) so new sessions here start on it — switching is
13
- * workspace-scoped: other trees keep their own binding, or the global
14
- * default. Esc backs out; p pins/unpins manually.
15
- * 2. `/profile-cfg` manager (TablePanel) — the roster: n new, d delete
16
- * (double-press confirm), Enter opens the profile's fields.
17
- * 3. profile fields (FieldPanel) — model / think / agents rows plus the
18
- * s save-current, r rename, v review shortcuts.
19
- * 4. agents sub-table (TablePanel) — every discovered agent's recorded
20
- * model/thinking; Enter picks through the SAME favorites/hidden model
21
- * table /model uses (pickModel with the shared PanelHost), i sets
22
- * explicit inherit, t edits think alone.
23
- *
24
- * Every edit persists to `$DSH_HOME/model-profiles.json` immediately
25
- * (src/model-profiles.ts). Applying a profile sets the live default model,
26
- * binds the workspace tree via `.dsh-profile` (src/model-profiles.ts) and
27
- * records the last-applied pointer — it writes NO agent files: each agent's
28
- * runtime model/thinking is composed at spawn from the frontmatter baseline
29
- * ⊕ this pinned profile's per-agent overrides (src/agent-runtime.ts, the
30
- * registry's profile-aware composer), so a switch is fully workspace-scoped.
31
- * The live default model rides the bridge selection. The GLOBAL
32
- * agent-default-model is written only by /model, never by a profile switch.
33
- * The ● "current" marker is the tree's own binding (boundProfileName), not a
34
- * machine-wide pointer.
35
- */
36
- import type { Context } from '@deepseek-ai/cordis';
37
- import type { ModelSelection } from '@deepseek-ai/dsh-agent';
38
- import type { TUI } from '@earendil-works/pi-tui';
39
- import { type ModelProfile, type ModelProfilesDoc } from './model-profiles.ts';
40
- import { type TuiTheme } from './theme/index.ts';
41
- /** Live-session handles the profile flows need (bridged in from index.ts). */
42
- export interface ProfileDeps {
43
- getSelection(): ModelSelection | undefined;
44
- setSelection(selection: ModelSelection): void;
45
- }
46
- /**
47
- * Apply `profile` end to end, scoped to the current workspace tree:
48
- * default model + think level through the live selection ref (a profile
49
- * without a default model leaves the selection alone), the tree binding
50
- * (`.dsh-profile` in `cwd` — new sessions here assemble from this profile)
51
- * and the store's informational last-applied pointer. Agent model/thinking
52
- * values are NOT written anywhere here: each agent's runtime values compose
53
- * at spawn from the frontmatter baseline ⊕ this pinned profile's overrides
54
- * (src/agent-runtime.ts), which is what makes a switch workspace-scoped.
55
- * Resolves the command summary text — failures ride along as ⚠ parts
56
- * instead of aborting the rest. Deliberately does NOT touch the global
57
- * agent-default-model: that is /model's write, and crossing tree boundaries
58
- * is exactly what a profile switch must not do.
59
- */
60
- export declare function applyProfile(path: string, doc: ModelProfilesDoc, profile: ModelProfile, deps: ProfileDeps, cwd: string): Promise<string>;
61
- /**
62
- * Open the `/profile-switch` switcher. Resolves the apply summary when a
63
- * profile was switched, or `undefined` when cancelled / nothing applied.
64
- *
65
- * Enter is a WORKSPACE-SCOPED switch: apply to the live session, and bind
66
- * this directory tree via `.dsh-profile` (see src/model-profiles.ts) so
67
- * every NEW session here auto-loads it — agent model/think values are not
68
- * written anywhere; each agent composes its runtime values at spawn from
69
- * the frontmatter baseline ⊕ this pinned profile (src/agent-runtime.ts).
70
- * Other trees are untouched. A
71
- * hand-decorated pin file refuses the binding and says so in the summary.
72
- * `p` binds/unbinds the cwd manually — pressing it on the already-bound
73
- * profile unpins — unless the pin lives in an ancestor or was
74
- * hand-decorated, which is reported in the status line instead.
75
- */
76
- export declare function openProfileSwitcher(tui: TUI, theme: TuiTheme, deps: ProfileDeps, restoreFocus: () => void): Promise<string | undefined>;
77
- /**
78
- * Open the `/profile-cfg` manager. Resolves a summary when anything changed,
79
- * or `undefined` when the manager closed untouched. `preselect` jumps
80
- * straight into one profile's fields window.
81
- */
82
- export declare function openProfileManager(ctx: Context, tui: TUI, theme: TuiTheme, deps: ProfileDeps, restoreFocus: () => void, preselect?: string): Promise<string | undefined>;