@1agents/session-reader 0.8.0 → 0.8.1

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/README.md CHANGED
@@ -481,7 +481,7 @@ $ 1session graph ca8325e1
481
481
  pnpm dsh plugin --profile web add @1agents/session-reader @1agents/dsh-acp
482
482
  ```
483
483
 
484
- 只查看历史时可只安装 `@1agents/session-reader`。已安装独立 `dsh` 命令时省略开头的 `pnpm`;桌面版将 profile 改为 `desktop`。更新包后重启对应的 DSH 服务。原会话续聊还需单独启动 `@1agents/acp-service@^0.2.0`,具体配置见 [ACP 插件说明](https://github.com/scottzx/1acp/tree/main/packages/dsh-plugin)。
484
+ 只查看历史时可只安装 `@1agents/session-reader`;插件按请求查询 ACP 服务,不把 ACP 注册为加载依赖。已安装独立 `dsh` 命令时省略开头的 `pnpm`;桌面版将 profile 改为 `desktop`。更新包后重启对应的 DSH 服务。原会话续聊还需单独启动 `@1agents/acp-service@^0.2.0`,具体配置见 [ACP 插件说明](https://github.com/scottzx/1acp/tree/main/packages/dsh-plugin)。
485
485
 
486
486
  DSH 侧栏中的「历史会话」打开跨 Agent 会话浏览器。入口沿用「插件」「自动化任务」的主文字色、字号、行高、圆角、悬停与键盘焦点样式;展开时使用 16px 图标,折叠时使用 18px 图标和 36px 按钮,颜色跟随 DSH 的亮暗主题。
487
487
 
@@ -1,19 +1,3 @@
1
1
  export declare const name = "session-reader";
2
- export declare const inject: {
3
- tools: {
4
- required: boolean;
5
- };
6
- webServer: {
7
- required: boolean;
8
- };
9
- sessionController: {
10
- required: boolean;
11
- };
12
- workspaceRegistry: {
13
- required: boolean;
14
- };
15
- oneagentsAcpSessions: {
16
- required: boolean;
17
- };
18
- };
2
+ export declare const inject: string[];
19
3
  export declare function apply(ctx: any): void;
@@ -2,7 +2,8 @@ import { resolveSession, searchSessions, buildOverview, summarizeTurns, turnDeta
2
2
  import { handleSessionApi } from '../web/api.js';
3
3
  import { openSessionInDsh, continuationAvailability } from './open.js';
4
4
  export const name = 'session-reader';
5
- export const inject = { tools: { required: true }, webServer: { required: true }, sessionController: { required: true }, workspaceRegistry: { required: true }, oneagentsAcpSessions: { required: false } };
5
+ // ACP is queried through ctx.get so history browsing remains available without it.
6
+ export const inject = ['tools', 'webServer', 'sessionController', 'workspaceRegistry'];
6
7
  export function apply(ctx) {
7
8
  // 1. Register tools if ctx.tools is present
8
9
  if (ctx.tools && typeof ctx.tools.register === 'function') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1agents/session-reader",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Read Plane: cross-agent session discovery, turn inspection, workspace aggregation and distillation from raw local session files.",
5
5
  "keywords": [
6
6
  "claude-code",