pi-sub-view 0.4.0 → 0.5.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/README.md CHANGED
@@ -21,7 +21,15 @@ npm i -g pi-sub-view # 或:npx pi-sub-view --help(未发布时用本
21
21
  ```
22
22
 
23
23
  纯 CLI、零依赖(node ≥ 20),不起 pi 进程、不占 pi-subagents 的 lease;`files` 白名单只打
24
- `view.mjs + lib/ + README/LICENSE`(`npm pack --dry-run` 7 个文件 ~16 KB)。
24
+ `view.mjs + lib/ + extensions/ + README/LICENSE`(`npm pack --dry-run` 10 个文件 ~30 KB)。
25
+
26
+ 0.5.0 起同一个包还提供一个 **pi 扩展**(`pi.extensions` → `extensions/inspector.js`),把「终端 inspector 后端」
27
+ 注册给 pi-subagents(见下节)。本地开发态装法二选一:
28
+
29
+ ```bash
30
+ pi install ~/pi-plugins/pi-sub-view # npm/包形态:pi 读 package.json 的 pi.extensions
31
+ ln -s ~/pi-plugins/pi-sub-view ~/.pi/agent/extensions/pi-sub-view # ambient 形态(本机现状)
32
+ ```
25
33
 
26
34
  ## 用法
27
35
 
@@ -81,6 +89,25 @@ pi-sub-view --no-diff # 关掉 edit 的 diff 渲染
81
89
  - 回执照 `status.json` 账本轮询打印:`[viewer] receipt #0=delivered` → `[viewer] 已送达`。
82
90
  - 限额与上游一致:消息 ≤ 128 KiB、`mode ∈ {steer,follow_up,auto}`、`targetIndex` 非负整数。
83
91
 
92
+ ## Fleet 里的 Enter/H:终端 inspector 后端(S6,0.5.0)
93
+
94
+ pi-subagents 的 `/subagents-fleet` → `Enter`/`H` 走 Inspect 插件链(内置 herdr → ghostty → tmux → 外注册)。
95
+ 本机只有 ptyxis、平时又不在 tmux 里,所以此前会报 `No inspector plugin is available`。本包的扩展补上这一段:
96
+
97
+ - 插件名 `pi-sub-view`,用官方事件 `pi-subagents:inspector-register:v1` 注册(**不 import pi-subagents**,没装就静默);
98
+ - `available` 只做探测、**绝不 spawn**:要求存在图形会话(`WAYLAND_DISPLAY`/`DISPLAY`)+ 认得的终端;
99
+ - 支持 ptyxis / gnome-terminal / kgx / kitty / foot / wezterm / alacritty / konsole / xfce4-terminal / x-terminal-emulator
100
+ (优先级即此顺序),argv 数组拼接、不经 shell,标题 `sub:<runId 前 8 位>`,cwd 用 run 的 `status.cwd`;
101
+ - `open` 默认**逐字保真**上游给的 `launch.executable + launch.argv`(所以 pane 里的 steer/stop 与内置一致);
102
+ - 想在自己的渲染器里看:`export PI_SUB_VIEW_INSPECTOR=viewer` ⇒ 改成 `node view.mjs --file <steps[index].sessionFile>`;
103
+ - 只开不关:不写绑定,`owns()` 恒 `false`,因此 `inspector.status/close` 明确报「不支持」(与内置 Ghostty 同形态);
104
+ - 无图形会话(headless / CI)时 `available:false`,Fleet 仍按原逻辑报没有插件。
105
+
106
+ ```bash
107
+ # 现场验证(需要图形会话;无人值守轮不建窗)
108
+ pi # 跑一个后台子代理后:/subagents-fleet → Enter → H
109
+ ```
110
+
84
111
  ## 渲染口径
85
112
 
86
113
  | entry | 显示 |
@@ -97,6 +124,8 @@ pi-sub-view --no-diff # 关掉 edit 的 diff 渲染
97
124
  - roster 只覆盖「同一父会话下的子代理」(跨项目的全局仍用 `--list`);
98
125
  - 文件重写(compaction)会整段重放,滚动区里会出现重复内容(流式输出的固有限制,不清屏);
99
126
  - 已结束的 run 若 `asyncDir` 已被回收 ⇒ 只剩会话文件,`--send` 会明确报错(不能 steer 终态 run)。
127
+ - inspector 后端只开不关(无 status/close);新 tab 里 Ctrl-C/关窗即可,关窗不影响子代理继续跑;
128
+ - `PI_SUB_VIEW_INSPECTOR=viewer` 需要 run 的 `status.steps[index].sessionFile`,旧 run 缺字段时明确 isError、不 spawn。
100
129
 
101
130
  ## 验收
102
131
 
@@ -105,7 +134,8 @@ bash ~/pi-plugins/.pi/plans/pi-sub-view/gate.sh # 0 过 / 1 挂 / 77 诚实
105
134
  ```
106
135
  A1–A7 覆盖渲染/性能/跟随/重写/无写入;A8–A11 覆盖 `--search`(含反向 0 命中、非法正则 exit 1)、edit diff(含 old==new 反向控制)、
107
136
  `--header`(含默认无头栏反向控制)、`--no-diff` 字节兼容;C1 覆盖打包面(package.json 字段 + `npm pack --dry-run` 清单);B1–B6 覆盖 roster、steer 协议(用**上游自己的消费者**读回)、
108
- closed-inbox 拒绝、回执、pty 键控切换、已结束浏览。
137
+ closed-inbox 拒绝、回执、pty 键控切换、已结束浏览;D1–D6 覆盖 S6 终端 inspector 后端(规划真值表、注册协议、
138
+ 探测零 spawn、open 命令、本机探测)。`npm test` 另有 18 条纯函数用例(零 GUI、零真实 spawn)。
109
139
 
110
140
  ## 相关
111
141
 
@@ -0,0 +1,56 @@
1
+ // pi 扩展:把本仓的终端 inspector 后端注册给 pi-subagents(Fleet 的 Enter/H)。
2
+ //
3
+ // 走上游同步事件 pi-subagents:inspector-register:v1,request = { version:1, plugin },
4
+ // 结果回填 request.result;这里刻意不 import pi-subagents,没装时事件无人监听、静默跳过。
5
+ // 会话切换时先撤销旧注册再重新注册(dispose 幂等);关闭时清理函数里解绑并 dispose。
6
+ import { createViewerInspectorPlugin } from "../lib/inspector-plugin.mjs";
7
+
8
+ const REGISTER_EVENT = "pi-subagents:inspector-register:v1";
9
+
10
+ export default function inspectorExtension(pi) {
11
+ const plugin = createViewerInspectorPlugin();
12
+ let registration;
13
+ let closed = false;
14
+
15
+ // 撤销当前注册(上游 registration.dispose 本身幂等,这里再加一层保险)。
16
+ function dropRegistration() {
17
+ const current = registration;
18
+ registration = undefined;
19
+ try {
20
+ current?.dispose();
21
+ } catch {
22
+ // dispose 失败不应拖垮会话
23
+ }
24
+ }
25
+
26
+ function register() {
27
+ if (closed) return;
28
+ dropRegistration();
29
+ const request = { version: 1, plugin };
30
+ try {
31
+ pi.events.emit(REGISTER_EVENT, request);
32
+ } catch (cause) {
33
+ console.warn(`pi-sub-view: inspector registration failed: ${cause instanceof Error ? cause.message : String(cause)}`);
34
+ return;
35
+ }
36
+ // 没有 pi-subagents 监听:静默跳过,不影响其它扩展。
37
+ if (!request.result) return;
38
+ if (!request.result.ok) {
39
+ const reason = request.result.error;
40
+ console.warn(`pi-sub-view: inspector registration failed: ${reason instanceof Error ? reason.message : String(reason)}`);
41
+ return;
42
+ }
43
+ registration = request.result.registration;
44
+ }
45
+
46
+ const offSessionStart = pi.on("session_start", register);
47
+ const offSessionShutdown = pi.on("session_shutdown", dropRegistration);
48
+
49
+ return () => {
50
+ if (closed) return;
51
+ closed = true;
52
+ offSessionStart?.();
53
+ offSessionShutdown?.();
54
+ dropRegistration();
55
+ };
56
+ }
@@ -0,0 +1,164 @@
1
+ // pi-subagents 外注册 inspector 插件:非 tmux 的图形终端(ptyxis/GNOME 等)里打开只读 view.mjs。
2
+ //
3
+ // 契约(PLAN §8.2 与 pi-subagents docs/extension-api.md §Register an external inspector):
4
+ // plugin = { name, available(ctx), owns(ctx), open(ctx, launch, params) },无 status/close。
5
+ // - available/owns 绝不 spawn;只有 open 才启动进程。
6
+ // - 默认命令 = launch.executable + launch.argv(协议保真:steer/stop 仍由 Fleet 提供)。
7
+ // - PI_SUB_VIEW_INSPECTOR=viewer 时改用本仓 view.mjs --file <steps[index].sessionFile>。
8
+ // - 返回值与内置插件同形:{ content:[{type:"text",text}], details:{ mode:"management", results:[] } }。
9
+ import path from "node:path";
10
+ import { spawn as nodeSpawn } from "node:child_process";
11
+ import { fileURLToPath } from "node:url";
12
+ import { detectTerminal, planTerminalLaunch } from "./terminal.mjs";
13
+
14
+ const VIEW_MJS = path.join(path.dirname(fileURLToPath(import.meta.url)), "..", "view.mjs");
15
+ const OPEN_TIMEOUT_MS = 15_000;
16
+
17
+ /** 与内置插件一致的最小结果包装。 */
18
+ function result(text, isError = false) {
19
+ const response = {
20
+ content: [{ type: "text", text }],
21
+ details: { mode: "management", results: [] },
22
+ };
23
+ if (isError) response.isError = true;
24
+ return response;
25
+ }
26
+
27
+ function errorMessage(cause) {
28
+ return cause instanceof Error ? cause.message : String(cause);
29
+ }
30
+
31
+ /** 起一个 detached 子进程并等到它真正 spawn;15 s 超时或 ctx.signal 中止都会杀掉它并报错。 */
32
+ function launchDetached(spawn, executable, argv, { cwd, signal, timeoutMs = OPEN_TIMEOUT_MS }) {
33
+ return new Promise((resolve, reject) => {
34
+ if (signal?.aborted) {
35
+ reject(new Error("inspector open was aborted"));
36
+ return;
37
+ }
38
+ let child;
39
+ let settled = false;
40
+ const finish = (error) => {
41
+ if (settled) return;
42
+ settled = true;
43
+ clearTimeout(timer);
44
+ signal?.removeEventListener?.("abort", onAbort);
45
+ if (error) {
46
+ try {
47
+ child?.kill();
48
+ } catch {
49
+ // 子进程可能根本没起来,忽略 kill 失败
50
+ }
51
+ reject(error);
52
+ return;
53
+ }
54
+ resolve();
55
+ };
56
+ const onAbort = () => finish(new Error("inspector open was aborted"));
57
+ const timer = setTimeout(() => finish(new Error(`inspector launch timed out after ${timeoutMs} ms`)), timeoutMs);
58
+ signal?.addEventListener?.("abort", onAbort, { once: true });
59
+ // 检查与注册之间的取消窗口:刚订阅完再确认一次,否则已中止的 signal 永远等不到事件。
60
+ if (signal?.aborted) {
61
+ finish(new Error("inspector open was aborted"));
62
+ return;
63
+ }
64
+ try {
65
+ child = spawn(executable, argv, { cwd, detached: true, stdio: "ignore" });
66
+ } catch (cause) {
67
+ finish(cause instanceof Error ? cause : new Error(String(cause)));
68
+ return;
69
+ }
70
+ child.once("error", (cause) => finish(cause instanceof Error ? cause : new Error(String(cause))));
71
+ child.once("spawn", () => {
72
+ child.unref?.();
73
+ finish();
74
+ });
75
+ });
76
+ }
77
+
78
+ const NODE_BASENAME = /^node(js)?(\.exe)?$/i;
79
+
80
+ /** viewer 模式下挑一个真正的 node 执行器:compiled/bun 版 pi 的 process.execPath 不是 node,直接用会把脚本当 prompt。 */
81
+ export function nodeExecutable(launch) {
82
+ const candidates = [launch?.executable, process.execPath];
83
+ for (const candidate of candidates) {
84
+ if (typeof candidate === "string" && candidate !== "" && NODE_BASENAME.test(path.basename(candidate))) return candidate;
85
+ }
86
+ return undefined;
87
+ }
88
+
89
+ /** viewer 模式下取子会话 sessionFile:params.index → ctx.target.index → 0。 */
90
+ function viewerSessionFile(context, params) {
91
+ const index = params?.index ?? context.target?.index ?? 0;
92
+ const steps = context.target?.status?.steps;
93
+ const step = Array.isArray(steps) ? steps[index] : undefined;
94
+ return typeof step?.sessionFile === "string" && step.sessionFile ? step.sessionFile : undefined;
95
+ }
96
+
97
+ export function createViewerInspectorPlugin(deps = {}) {
98
+ const defaultEnv = deps.env ?? process.env;
99
+ const platform = deps.platform ?? process.platform;
100
+ const hasBinary = deps.hasBinary;
101
+ const spawn = deps.spawn ?? nodeSpawn;
102
+ const openTimeoutMs = deps.timeoutMs ?? OPEN_TIMEOUT_MS;
103
+ const defaultCwd = deps.cwd ?? process.cwd();
104
+
105
+ function plan(context, launch, params) {
106
+ const env = context.env ?? defaultEnv;
107
+ const cwd = context.target?.status?.cwd ?? defaultCwd;
108
+ const title = typeof context.target?.runId === "string" ? `sub:${context.target.runId.slice(0, 8)}` : undefined;
109
+ // 模式开关优先读动作上下文 env,其次读构造时的 env;测试/现场两种注入方式都成立。
110
+ const mode = context.env?.PI_SUB_VIEW_INSPECTOR ?? defaultEnv.PI_SUB_VIEW_INSPECTOR;
111
+ let command;
112
+ let viaViewer = false;
113
+ if (mode === "viewer") {
114
+ const sessionFile = viewerSessionFile(context, params);
115
+ if (!sessionFile) return { error: "viewer inspector mode requires ctx.target.status.steps[index].sessionFile" };
116
+ const executable = nodeExecutable(launch);
117
+ if (!executable) return { error: "viewer inspector mode requires a node executable (launch.executable / process.execPath)" };
118
+ command = { executable, argv: [VIEW_MJS, "--file", sessionFile] };
119
+ viaViewer = true;
120
+ } else {
121
+ command = { executable: launch.executable, argv: launch.argv };
122
+ }
123
+ const planResult = planTerminalLaunch({
124
+ env,
125
+ command,
126
+ hasBinary,
127
+ platform,
128
+ cwd,
129
+ title,
130
+ });
131
+ return { plan: planResult, cwd, viaViewer, focus: params?.focus === true };
132
+ }
133
+
134
+ return {
135
+ name: "pi-sub-view",
136
+ available(context) {
137
+ // 只做探测:此处任何分支都不得 spawn(gate D3 会数 spawn 次数)。
138
+ const env = context.env ?? defaultEnv;
139
+ return detectTerminal(env, { hasBinary, platform }) !== undefined;
140
+ },
141
+ owns() {
142
+ // 不在磁盘上写绑定,因此永远不"拥有"某个 inspector 绑定。
143
+ return false;
144
+ },
145
+ async open(context, launch, params = {}) {
146
+ const prepared = plan(context, launch, params);
147
+ if (prepared.error) return result(`pi-sub-view inspector error: ${prepared.error}`, true);
148
+ const { plan: launchPlan, cwd } = prepared;
149
+ if (!launchPlan.available) {
150
+ return result(`pi-sub-view inspector error: ${launchPlan.reason}`, true);
151
+ }
152
+ try {
153
+ await launchDetached(spawn, launchPlan.terminal.bin, launchPlan.argv, { cwd, signal: context.signal, timeoutMs: openTimeoutMs });
154
+ } catch (cause) {
155
+ return result(`pi-sub-view inspector error: ${errorMessage(cause)}`, true);
156
+ }
157
+ const runId = context.target?.runId ?? "(unknown run)";
158
+ const target = prepared.viaViewer ? "read-only viewer" : "inspector";
159
+ // --tab / --new-window 的焦点归属由终端方言决定;focus:false 时如实说明不能保证不抢焦点。
160
+ const focusNote = prepared.focus ? " Focus requested." : " This terminal cannot guarantee focus stays in the current tab.";
161
+ return result(`Opened ${target} in ${launchPlan.terminal.id} for async run ${runId} (${launchPlan.displayCommand}).${focusNote} Steer and stop stay in Fleet.`);
162
+ },
163
+ };
164
+ }
@@ -0,0 +1,104 @@
1
+ // 终端 inspector 的纯规划层:探测宿主终端、组装 argv,绝不 spawn(真启动在 lib/inspector-plugin.mjs)。
2
+ //
3
+ // 约定(PLAN §8.2):
4
+ // - 参数一律 argv 数组拼接,不经 shell;唯一例外是 xfce4-terminal 的 -x,需要整条命令字符串。
5
+ // - GUI 终端只有存在图形会话(WAYLAND_DISPLAY 或 DISPLAY 非空)时才算可用;
6
+ // gate/CI 等无图形会话的进程里 available 必须为 false,不能只看二进制存在。
7
+ // - 优先级:ptyxis → gnome-terminal → kgx → kitty → foot → wezterm → alacritty →
8
+ // konsole → xfce4-terminal → x-terminal-emulator。
9
+ import fs from "node:fs";
10
+ import path from "node:path";
11
+
12
+ const SAFE_ARG = /^[A-Za-z0-9_@%+=:,./-]+$/;
13
+
14
+ /** POSIX 单引号转义:安全字符原样返回,空串与含特殊字符的参数用单引号包裹。 */
15
+ export function shellQuote(value) {
16
+ const text = String(value);
17
+ if (text === "") return "''";
18
+ if (SAFE_ARG.test(text)) return text;
19
+ return `'${text.replace(/'/g, "'\\''")}'`;
20
+ }
21
+
22
+ /** 把 argv 还原成可读、可交给 shell 的命令字符串(只用于展示与 xfce4-terminal -x)。 */
23
+ export function formatCommand(argv = []) {
24
+ return argv.map((arg) => shellQuote(arg)).join(" ");
25
+ }
26
+
27
+ /** 未注入 hasBinary 时的本机探测:沿 PATH 找可执行文件(读 fs,不 spawn)。PATH 取传入 env,缺省才回落宿主。 */
28
+ export function defaultHasBinary(bin, env = process.env) {
29
+ if (typeof bin !== "string" || bin === "") return false;
30
+ const searchPath = env?.PATH ?? process.env.PATH ?? "";
31
+ const candidates = bin.includes(path.sep)
32
+ ? [bin]
33
+ : searchPath.split(path.delimiter).filter(Boolean).map((dir) => path.join(dir, bin));
34
+ for (const candidate of candidates) {
35
+ try {
36
+ fs.accessSync(candidate, fs.constants.X_OK);
37
+ return true;
38
+ } catch {
39
+ // 继续找下一个候选目录
40
+ }
41
+ }
42
+ return false;
43
+ }
44
+
45
+ /** 是否存在图形会话:没有它起不了 GUI 终端,任何插件都不可用。 */
46
+ function hasGuiSession(env) {
47
+ return Boolean((env?.WAYLAND_DISPLAY ?? "").trim() || (env?.DISPLAY ?? "").trim());
48
+ }
49
+
50
+ // build 接收完整命令 [executable, ...args],返回终端的 argv(不含终端自身二进制)。
51
+ const TERMINALS = [
52
+ // 标题固定为 sub:<runId 前 8 位>,只在调用方给了 title 时加 --title。
53
+ { id: "ptyxis", bin: "ptyxis", build: (cmd, title) => ["--tab", ...(title ? ["--title", title] : []), "--", ...cmd] },
54
+ { id: "gnome-terminal", bin: "gnome-terminal", build: (cmd) => ["--tab", "--", ...cmd] },
55
+ { id: "kgx", bin: "kgx", build: (cmd) => ["--tab", "--", ...cmd] },
56
+ { id: "kitty", bin: "kitty", build: (cmd, title) => [...(title ? ["--title", title] : []), ...cmd] },
57
+ { id: "foot", bin: "foot", build: (cmd) => [...cmd] },
58
+ { id: "wezterm", bin: "wezterm", build: (cmd) => ["start", "--", ...cmd] },
59
+ { id: "alacritty", bin: "alacritty", build: (cmd) => ["-e", ...cmd] },
60
+ { id: "konsole", bin: "konsole", build: (cmd) => ["--new-tab", "-e", ...cmd] },
61
+ // xfce4-terminal 的 -x 只吃一条命令字符串,这里按契约 formatCommand 成单参数。
62
+ { id: "xfce4-terminal", bin: "xfce4-terminal", build: (cmd) => ["--tab", "-x", formatCommand(cmd)] },
63
+ { id: "x-terminal-emulator", bin: "x-terminal-emulator", build: (cmd) => ["-e", ...cmd] },
64
+ ];
65
+
66
+ /** 按内置优先级找宿主终端;无图形会话或一个都没装时返回 undefined。 */
67
+ export function detectTerminal(env = {}, { hasBinary, platform = process.platform } = {}) {
68
+ if (platform !== "linux" && platform !== "darwin") return undefined;
69
+ if (!hasGuiSession(env)) return undefined;
70
+ const probe = hasBinary ?? ((bin) => defaultHasBinary(bin, env));
71
+ for (const terminal of TERMINALS) {
72
+ if (probe(terminal.bin)) return { id: terminal.id, bin: terminal.bin };
73
+ }
74
+ return undefined;
75
+ }
76
+
77
+ /**
78
+ * 规划一次 inspector 终端启动;纯函数,不 spawn。
79
+ * 返回 { available:true, terminal:{id,bin}, argv, displayCommand } 或 { available:false, reason }。
80
+ * cwd 不进 argv(各终端方言不一),由调用方作为 spawn 的 cwd 传入。
81
+ */
82
+ export function planTerminalLaunch({ env = {}, command, hasBinary, platform, cwd, title } = {}) {
83
+ if (!command || typeof command.executable !== "string" || command.executable === "") {
84
+ return { available: false, reason: "missing inspector command" };
85
+ }
86
+ const terminal = detectTerminal(env, {
87
+ hasBinary: hasBinary ?? ((bin) => defaultHasBinary(bin, env)),
88
+ platform,
89
+ });
90
+ if (!terminal) {
91
+ const reason = hasGuiSession(env) ? "no supported terminal emulator" : "no GUI session (WAYLAND_DISPLAY/DISPLAY unset)";
92
+ return { available: false, reason };
93
+ }
94
+ const full = [command.executable, ...(Array.isArray(command.argv) ? command.argv : [])];
95
+ const spec = TERMINALS.find((entry) => entry.id === terminal.id);
96
+ const argv = spec.build(full, title);
97
+ return {
98
+ available: true,
99
+ terminal,
100
+ argv,
101
+ // displayCommand 反映真实启动的命令(含终端自身),便于日志与人读。
102
+ displayCommand: formatCommand([terminal.bin, ...argv]),
103
+ };
104
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-sub-view",
3
- "version": "0.4.0",
4
- "description": "Read-only live renderer for pi-subagents child agent sessions (session.jsonl). Pure CLI, no dependencies.",
3
+ "version": "0.5.0",
4
+ "description": "Read-only live renderer and terminal inspector backend for pi-subagents child agent sessions (session.jsonl). Pure CLI, no dependencies.",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "pi-sub-view": "view.mjs"
@@ -9,6 +9,7 @@
9
9
  "files": [
10
10
  "view.mjs",
11
11
  "lib/",
12
+ "extensions/",
12
13
  "README.md",
13
14
  "LICENSE"
14
15
  ],
@@ -20,7 +21,9 @@
20
21
  "pi-subagents",
21
22
  "subagent",
22
23
  "cli",
23
- "observability"
24
+ "observability",
25
+ "inspector",
26
+ "terminal"
24
27
  ],
25
28
  "author": "xuqianhui",
26
29
  "license": "MIT",
@@ -31,5 +34,13 @@
31
34
  "homepage": "https://github.com/xiaquwan1001/pi-sub-view#readme",
32
35
  "bugs": {
33
36
  "url": "https://github.com/xiaquwan1001/pi-sub-view/issues"
37
+ },
38
+ "pi": {
39
+ "extensions": [
40
+ "./extensions/inspector.js"
41
+ ]
42
+ },
43
+ "scripts": {
44
+ "test": "node --test test/*.test.mjs"
34
45
  }
35
46
  }