@trim21/personal-pi-extensions 0.1.524 → 0.1.525

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trim21/personal-pi-extensions",
3
- "version": "0.1.524",
3
+ "version": "0.1.525",
4
4
  "type": "module",
5
5
  "description": "Custom pi coding-agent extensions: bwrap sandbox, workspace guard, opencode edit, and more",
6
6
  "keywords": [
@@ -18,7 +18,7 @@ IMPORTANT: Avoid using this tool to run `find`, `grep`, `cat`, `head`, `tail`, `
18
18
  - Communication: Output text directly (NOT echo/printf)
19
19
  While the Bash tool can do similar things, it's better to use the built-in tools as they provide a better user experience and make it easier to review tool calls and give permission.
20
20
 
21
- - You may specify an optional timeout in milliseconds (up to 600000ms / 10 minutes). By default, your command will timeout after 120000ms (2 minutes).
21
+ - You may specify an optional timeout in milliseconds (up to 7200000ms / 2 hours). By default, your command will timeout after 120000ms (2 minutes).
22
22
  - Prever to use workdir argument over `cd ...`
23
23
  - When issuing multiple commands:
24
24
  - If the commands are independent and can run in parallel, make multiple Bash tool calls in a single message. Example: if you need to run "git status" and "git diff", send a single message with two Bash tool calls in parallel.
@@ -14,7 +14,7 @@ import { BashInterruptedError, type BwrapRuntime, createBwrapRuntime } from "../
14
14
  import { resolveWorkdir } from "../lib/path.js";
15
15
 
16
16
  const DEFAULT_TIMEOUT_MS = 120_000;
17
- const MAX_TIMEOUT_MS = 600_000;
17
+ const MAX_TIMEOUT_MS = 7_200_000;
18
18
 
19
19
  /** 对齐 Claude Code formatError:错误文本超过该长度时头尾各保留一半。 */
20
20
  const MAX_ERROR_CHARS = 10_000;
@@ -89,14 +89,14 @@ export function registerShellTools(
89
89
  label: "Bash",
90
90
  description: [
91
91
  "Executes a given bash command synchronously and returns its output.",
92
- "timeout is in milliseconds, defaults to 120000, and may not exceed 600000.",
92
+ "timeout is in milliseconds, defaults to 120000, and may not exceed 7200000.",
93
93
  "Every command runs in the foreground. Background command execution is not supported; shell jobs are waited for before the tool returns.",
94
94
  ].join("\n"),
95
95
  parameters: Type.Object(
96
96
  {
97
97
  command: Type.String({ description: "The command to execute" }),
98
98
  timeout: Type.Optional(
99
- Type.Number({ description: "Optional timeout in milliseconds (max 600000)" }),
99
+ Type.Number({ description: "Optional timeout in milliseconds (max 7200000)" }),
100
100
  ),
101
101
  description: Type.Optional(
102
102
  Type.String({ description: "Clear, concise description of the command" }),
@@ -8,7 +8,7 @@ import { BashInterruptedError, type BwrapRuntime, createBwrapRuntime } from "../
8
8
  import { resolveWorkdir } from "../lib/path.js";
9
9
 
10
10
  const DEFAULT_TIMEOUT_MS = 120_000;
11
- const MAX_TIMEOUT_MS = 600_000;
11
+ const MAX_TIMEOUT_MS = 7_200_000;
12
12
 
13
13
  /** 对齐上游 opencode 的截断提示文案(tools/BashTool/bash.ts)。 */
14
14
  const CAPTURE_TRUNCATED_NOTICE = "[output capture truncated at the in-memory safety limit]";
@@ -46,7 +46,7 @@ export default function opencodeBash(
46
46
  description: [
47
47
  "Executes a given bash command synchronously and returns its output.",
48
48
  "The default working directory is the current directory; use workdir to run elsewhere.",
49
- "timeout is in milliseconds, defaults to 120000, and may not exceed 600000.",
49
+ "timeout is in milliseconds, defaults to 120000, and may not exceed 7200000.",
50
50
  "Every command runs in the foreground. Background command execution is not supported; shell jobs are waited for before the tool returns.",
51
51
  ].join("\n"),
52
52
  promptSnippet: "execute bash command",
@@ -65,8 +65,7 @@ export default function opencodeBash(
65
65
  ),
66
66
  timeout: Type.Optional(
67
67
  Type.Number({
68
- description: "Optional timeout in milliseconds (max 600000)",
69
- default: 600,
68
+ description: "Optional timeout in milliseconds (max 7200000)",
70
69
  }),
71
70
  ),
72
71
  dangerouslyDisableSandbox: Type.Optional(