дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-04 17:21:13 +02:00
Settings › Agents › Command Execution Policy (global or per project) lists commands an agent may run without asking and commands it is never allowed to run. A permission request for a shell command is answered from the policy: a blocked pattern (glob, checked against the whole command and every part of a chain) rejects it; it is approved only when every part of a &&/||/;/|/& chain matches an allowed entry exactly or up to a word boundary and none uses command substitution, redirection, subshells, here-docs or leading variable assignments. Everything else prompts as before. The allowed list starts empty; the blocked list ships common destructive commands. Closes #1152 Co-authored-by: elfadl <[email protected]>
75 рядки
1.1 KiB
CSS
75 рядки
1.1 KiB
CSS
.body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
height: 100%;
|
|
min-height: 0;
|
|
}
|
|
|
|
.notice {
|
|
margin: 0;
|
|
color: var(--fg-muted);
|
|
font-size: var(--fs-small);
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.grid {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.column {
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
padding: 10px;
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: var(--radius-control);
|
|
}
|
|
|
|
.columnTitle {
|
|
color: var(--fg-strong);
|
|
font-size: var(--fs-small);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.items {
|
|
flex: 1;
|
|
min-height: 120px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
overflow: auto;
|
|
}
|
|
|
|
.item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 6px;
|
|
padding: 4px 8px;
|
|
background: var(--bg-subtle);
|
|
border-radius: var(--radius-control);
|
|
font-family: var(--font-mono);
|
|
font-size: var(--fs-small);
|
|
}
|
|
|
|
.pattern {
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.add {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.input {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|