F4 SLICE-3: wire ProposalController — contributes, watcher fan-out, propose command, stubs, API (#12)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+18
-2
@@ -30,11 +30,17 @@
|
||||
{ "command": "cowriting.reopenThread", "title": "Reopen Thread", "category": "Cowriting" },
|
||||
{ "command": "cowriting.toggleAttribution", "title": "Toggle Attribution", "category": "Cowriting" },
|
||||
{ "command": "cowriting.applyAgentEdit", "title": "Apply Agent Edit (internal seam)", "category": "Cowriting" },
|
||||
{ "command": "cowriting.editSelection", "title": "Ask Claude to Edit Selection", "category": "Cowriting" }
|
||||
{ "command": "cowriting.editSelection", "title": "Ask Claude to Edit Selection", "category": "Cowriting" },
|
||||
{ "command": "cowriting.acceptProposal", "title": "✓ Accept Proposal", "category": "Cowriting" },
|
||||
{ "command": "cowriting.rejectProposal", "title": "✗ Reject Proposal", "category": "Cowriting" },
|
||||
{ "command": "cowriting.proposeAgentEdit", "title": "Propose Agent Edit (internal seam)", "category": "Cowriting" }
|
||||
],
|
||||
"menus": {
|
||||
"commandPalette": [
|
||||
{ "command": "cowriting.applyAgentEdit", "when": "false" }
|
||||
{ "command": "cowriting.applyAgentEdit", "when": "false" },
|
||||
{ "command": "cowriting.proposeAgentEdit", "when": "false" },
|
||||
{ "command": "cowriting.acceptProposal", "when": "false" },
|
||||
{ "command": "cowriting.rejectProposal", "when": "false" }
|
||||
],
|
||||
"editor/context": [
|
||||
{
|
||||
@@ -61,6 +67,16 @@
|
||||
"command": "cowriting.reopenThread",
|
||||
"group": "inline",
|
||||
"when": "commentController == cowriting.threads && commentThread =~ /^resolved$/"
|
||||
},
|
||||
{
|
||||
"command": "cowriting.acceptProposal",
|
||||
"group": "inline@1",
|
||||
"when": "commentController == cowriting.proposals && commentThread =~ /^pending$/"
|
||||
},
|
||||
{
|
||||
"command": "cowriting.rejectProposal",
|
||||
"group": "inline@2",
|
||||
"when": "commentController == cowriting.proposals"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user