1564ef562b
Closes the F11 feature: makes the toolbar surface reachable end to end and guards the edit controls. Per spec §6.4/§6.5/§7.2 SLICE-5. - package.json: cowriting.showTrackChangesPreview added to editor/title (when: editorLangId == markdown) — the minimal right-click → Open Review Preview gateway (#41/#42 expand it later). - trackChangesPreview: the gateway command accepts the tab's resource Uri (palette/keybinding still fall back to the active editor); refresh() sends an `authorable` flag on both render messages; `editControlsEnabled` test seam. - webview: disable Pin + Ask-Claude on a non-authorable doc (Annotations stays active — reading is always allowed); RenderMessage.authorable. - host E2E: the editor/title gateway opens the preview + is markdown-guarded; edit controls disabled on a non-authorable (read-only-scheme) markdown doc. - docs: docs/MANUAL-SMOKE-F11.md (live smoke, 10 steps) + README F11 section + intro line. 205 unit + 53 host E2E green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
193 lines
5.2 KiB
JSON
193 lines
5.2 KiB
JSON
{
|
|
"name": "vscode-cowriting-plugin",
|
|
"displayName": "Cowriting (Cline SDK POC)",
|
|
"description": "Non-shippable POC: a standalone VS Code extension that drives @cline/sdk.",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"license": "Apache-2.0",
|
|
"publisher": "benstull",
|
|
"engines": {
|
|
"vscode": "^1.90.0",
|
|
"node": ">=22"
|
|
},
|
|
"categories": [
|
|
"Other"
|
|
],
|
|
"main": "./out/extension.cjs",
|
|
"activationEvents": [
|
|
"onStartupFinished"
|
|
],
|
|
"contributes": {
|
|
"commands": [
|
|
{
|
|
"command": "cowriting.showClineSdkInfo",
|
|
"title": "Cowriting: Show Cline SDK Info",
|
|
"category": "Cowriting"
|
|
},
|
|
{
|
|
"command": "cowriting.createThread",
|
|
"title": "Cowriting: Add Coauthoring Thread on Selection",
|
|
"category": "Cowriting"
|
|
},
|
|
{
|
|
"command": "cowriting.reply",
|
|
"title": "Reply",
|
|
"category": "Cowriting"
|
|
},
|
|
{
|
|
"command": "cowriting.resolveThread",
|
|
"title": "Resolve Thread",
|
|
"category": "Cowriting"
|
|
},
|
|
{
|
|
"command": "cowriting.reopenThread",
|
|
"title": "Reopen Thread",
|
|
"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.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"
|
|
},
|
|
{
|
|
"command": "cowriting.pinDiffBaseline",
|
|
"title": "Cowriting: Pin Review Baseline to Now",
|
|
"category": "Cowriting"
|
|
},
|
|
{
|
|
"command": "cowriting.showTrackChangesPreview",
|
|
"title": "Cowriting: Open Review Preview",
|
|
"category": "Cowriting"
|
|
},
|
|
{
|
|
"command": "cowriting.editDocument",
|
|
"title": "Ask Claude to Edit Document",
|
|
"category": "Cowriting"
|
|
}
|
|
],
|
|
"menus": {
|
|
"commandPalette": [
|
|
{
|
|
"command": "cowriting.applyAgentEdit",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "cowriting.proposeAgentEdit",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "cowriting.acceptProposal",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "cowriting.rejectProposal",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "cowriting.pinDiffBaseline",
|
|
"when": "editorLangId == markdown"
|
|
},
|
|
{
|
|
"command": "cowriting.editDocument",
|
|
"when": "editorLangId == markdown"
|
|
}
|
|
],
|
|
"editor/title": [
|
|
{
|
|
"command": "cowriting.showTrackChangesPreview",
|
|
"when": "editorLangId == markdown",
|
|
"group": "navigation@9"
|
|
}
|
|
],
|
|
"editor/context": [
|
|
{
|
|
"command": "cowriting.editSelection",
|
|
"when": "editorHasSelection && (resourceScheme == file || resourceScheme == untitled)",
|
|
"group": "1_cowriting@1"
|
|
},
|
|
{
|
|
"command": "cowriting.createThread",
|
|
"when": "editorHasSelection && (resourceScheme == file || resourceScheme == untitled)",
|
|
"group": "1_cowriting@2"
|
|
}
|
|
],
|
|
"comments/commentThread/context": [
|
|
{
|
|
"command": "cowriting.reply",
|
|
"group": "inline",
|
|
"when": "commentController == cowriting.threads"
|
|
}
|
|
],
|
|
"comments/commentThread/title": [
|
|
{
|
|
"command": "cowriting.resolveThread",
|
|
"group": "inline",
|
|
"when": "commentController == cowriting.threads && commentThread =~ /^open$/"
|
|
},
|
|
{
|
|
"command": "cowriting.reopenThread",
|
|
"group": "inline",
|
|
"when": "commentController == cowriting.threads && commentThread =~ /^resolved$/"
|
|
}
|
|
]
|
|
},
|
|
"keybindings": [
|
|
{
|
|
"command": "cowriting.showTrackChangesPreview",
|
|
"key": "ctrl+alt+r",
|
|
"when": "editorLangId == markdown"
|
|
}
|
|
]
|
|
},
|
|
"scripts": {
|
|
"build": "node esbuild.mjs",
|
|
"watch": "node esbuild.mjs --watch",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"pretest:e2e": "npm run build && tsc -p tsconfig.e2e.json",
|
|
"test:e2e": "node ./out/test/e2e/runTest.js",
|
|
"smoke:live": "npm run build && node scripts/smoke-live-turn.mjs",
|
|
"vscode:prepublish": "node esbuild.mjs"
|
|
},
|
|
"dependencies": {
|
|
"@cline/sdk": "0.0.46",
|
|
"diff": "^7.0.0",
|
|
"markdown-it": "^14.1.0",
|
|
"mermaid": "^11.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/diff": "^7.0.0",
|
|
"@types/markdown-it": "^14.1.0",
|
|
"@types/mocha": "^10.0.7",
|
|
"@types/node": "^22.0.0",
|
|
"@types/vscode": "^1.90.0",
|
|
"@vscode/test-electron": "^2.4.0",
|
|
"ajv": "^8.20.0",
|
|
"esbuild": "^0.23.0",
|
|
"glob": "^11.0.0",
|
|
"mocha": "^10.7.0",
|
|
"typescript": "^5.5.0",
|
|
"vitest": "^2.0.0"
|
|
}
|
|
}
|