GeezerVison is showing github.com — fix: keep the old permission-mode constant names as deprecated aliases · Twigpine/zero@0311ffb
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: internal/agent/types.go +12-3Lines changed: 12 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -22,9 +22,18 @@ type PermissionAction string |
22 | 22 | type PermissionDecisionAction string |
23 | 23 |
|
24 | 24 | const ( |
25 | | - PermissionModeAuto PermissionMode = "auto" |
26 | | - PermissionModeAsk PermissionMode = "ask" |
27 | | - PermissionModeFullAuto PermissionMode = "full-auto" |
| 25 | + PermissionModeAuto PermissionMode = "auto" |
| 26 | + PermissionModeAsk PermissionMode = "ask" |
| 27 | + PermissionModeFullAuto PermissionMode = "full-auto" |
| 28 | + // PermissionModeUnsafe is the former name of PermissionModeFullAuto. |
| 29 | + // |
| 30 | + // Kept as an alias rather than deleted because this constant is referenced |
| 31 | + // across packages and by code that lands independently of this branch, so |
| 32 | + // removing it turns an ordinary merge into a compile failure for whoever |
| 33 | + // merges second. It is the same value, so behaviour is identical either way. |
| 34 | + // |
| 35 | + // Deprecated: use PermissionModeFullAuto. |
| 36 | + PermissionModeUnsafe = PermissionModeFullAuto |
28 | 37 | PermissionModeSpecDraft PermissionMode = "spec-draft" |
29 | 38 | // PermissionModeMemberAuto is a headless mode for swarm/specialist MEMBERS: it |
30 | 39 | // advertises the in-workspace mutators a member needs to build (write/edit + |
|
Collapse file
Copy file name to clipboardExpand all lines: internal/sandbox/types.go +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -71,6 +71,9 @@ const ( |
71 | 71 | PermissionModeAuto PermissionMode = "auto" |
72 | 72 | PermissionModeAsk PermissionMode = "ask" |
73 | 73 | PermissionFullAuto PermissionMode = "full-auto" |
| 74 | + // Deprecated: use PermissionFullAuto. Kept as an alias so code landing |
| 75 | + // independently of this branch still compiles after a merge. |
| 76 | + PermissionUnsafe = PermissionFullAuto |
74 | 77 | ) |
75 | 78 |
|
76 | 79 | const ( |
|