linkshell-cli 0.2.79 → 0.2.81

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.
@@ -1174,12 +1174,21 @@ export class BridgeSession {
1174
1174
 
1175
1175
  const hooksPath = join(codexDir, "hooks.json");
1176
1176
  const hookEntry = { matcher: "", hooks: [{ type: "command", command: curlCmd, timeout: 5 }] };
1177
- const hookEvents: Record<string, typeof hookEntry> = {
1177
+ const permissionEntry = {
1178
+ matcher: "",
1179
+ hooks: [{
1180
+ type: "command",
1181
+ command: curlCmd,
1182
+ timeout: Math.ceil((PERMISSION_REQUEST_TIMEOUT_MS + 30_000) / 1000),
1183
+ }],
1184
+ };
1185
+ const hookEvents: Record<string, typeof hookEntry | typeof permissionEntry> = {
1178
1186
  SessionStart: hookEntry,
1179
1187
  PreToolUse: hookEntry,
1180
1188
  PostToolUse: hookEntry,
1181
1189
  UserPromptSubmit: hookEntry,
1182
1190
  Stop: hookEntry,
1191
+ PermissionRequest: permissionEntry,
1183
1192
  };
1184
1193
 
1185
1194
  // Read existing and append