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.
- package/dist/cli/src/runtime/acp/agent-session.js +8 -5
- package/dist/cli/src/runtime/acp/agent-session.js.map +1 -1
- package/dist/cli/src/runtime/acp/agent-workspace.js +11 -4
- package/dist/cli/src/runtime/acp/agent-workspace.js.map +1 -1
- package/dist/cli/src/runtime/bridge-session.js +9 -0
- package/dist/cli/src/runtime/bridge-session.js.map +1 -1
- package/dist/cli/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/runtime/acp/agent-session.ts +11 -7
- package/src/runtime/acp/agent-workspace.ts +14 -6
- package/src/runtime/bridge-session.ts +10 -1
|
@@ -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
|
|
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
|