@sukeai/pi-logfwd 0.1.0 → 0.1.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
@@ -101,7 +101,6 @@ extension/extension.ts pi 扩展:注册 bash_logged 工具(平台解析 +
101
101
  package.json 主包(pi manifest + optionalDependencies 平台包列表)
102
102
  scripts/release.sh 交叉编译 + 发布(Go build → 平台包 → npm publish)
103
103
  scripts/set-version.js 主包/平台包版本同步
104
- .pi/skills/log-forwarding.md pi 项目 skill(用法 + 边界调研结论)
105
104
  ```
106
105
 
107
106
  ### 本地构建(不经 npm)
@@ -129,16 +129,17 @@ export default function (pi: ExtensionAPI) {
129
129
  "(sudo/ssh password) and GUI authorization dialogs - PTY can render a prompt but nothing " +
130
130
  "can answer it. For those, tell the user to run the command manually.",
131
131
  promptSnippet: "Run a shell command with real-time log forwarding (PTY support)",
132
- // 自定义 renderCall:TUI 里完整显示命令(不定义时兜底渲染只显示工具名)
133
- renderCall(args, theme, _context) {
134
- const command = typeof args.command === "string" ? args.command : "";
135
- const commandDisplay = command || theme.fg("toolOutput", "...");
136
- let text = theme.fg("toolTitle", theme.bold(`bash_logged ${commandDisplay}`));
137
- if (typeof args.timeout === "number") {
138
- text += theme.fg("muted", ` (timeout ${args.timeout}s)`);
139
- }
140
- return new Text(text, 0, 0);
141
- },
132
+ // 自定义 renderCall:TUI 里完整显示命令,并追加一行 log-fwd 标签标识控制来源
133
+ renderCall(args, theme, _context) {
134
+ const command = typeof args.command === "string" ? args.command : "";
135
+ const commandDisplay = command || theme.fg("toolOutput", "...");
136
+ let text = theme.fg("toolTitle", theme.bold(`bash_logged ${commandDisplay}`));
137
+ if (typeof args.timeout === "number") {
138
+ text += theme.fg("muted", ` (timeout ${args.timeout}s)`);
139
+ }
140
+ const tag = theme.fg("dim", theme.bold("log-fwd"));
141
+ return new Text(`${text}\n${tag}`, 0, 0);
142
+ },
142
143
  parameters: Type.Object({
143
144
  command: Type.String({ description: "Shell script or command to run" }),
144
145
  timeout: Type.Optional(Type.Number({ description: "Timeout in seconds (default: none)" })),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sukeai/pi-logfwd",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "pi package: bash_logged tool that streams command logs in real time through the pi-logfwd Go binary (PTY, JSONL events, optional log file) / pi 实时命令日志转发扩展",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -26,10 +26,10 @@
26
26
  "typebox": "*"
27
27
  },
28
28
  "optionalDependencies": {
29
- "@sukeai/pi-logfwd-darwin-arm64": "0.1.0",
30
- "@sukeai/pi-logfwd-darwin-amd64": "0.1.0",
31
- "@sukeai/pi-logfwd-linux-arm64": "0.1.0",
32
- "@sukeai/pi-logfwd-linux-amd64": "0.1.0"
29
+ "@sukeai/pi-logfwd-darwin-arm64": "0.1.1",
30
+ "@sukeai/pi-logfwd-darwin-amd64": "0.1.1",
31
+ "@sukeai/pi-logfwd-linux-arm64": "0.1.1",
32
+ "@sukeai/pi-logfwd-linux-amd64": "0.1.1"
33
33
  },
34
34
  "pi": {
35
35
  "extensions": [