@plannotator/opencode 0.17.3 → 0.17.5
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/index.js +34 -17
- package/package.json +2 -2
- package/plannotator.html +338 -338
- package/review-editor.html +4 -4
package/dist/index.js
CHANGED
|
@@ -26832,18 +26832,22 @@ function gitResetFile2(filePath, cwd) {
|
|
|
26832
26832
|
|
|
26833
26833
|
// ../../packages/server/p4.ts
|
|
26834
26834
|
async function runP4(args, options) {
|
|
26835
|
-
|
|
26836
|
-
|
|
26837
|
-
|
|
26838
|
-
|
|
26839
|
-
|
|
26840
|
-
|
|
26841
|
-
|
|
26842
|
-
|
|
26843
|
-
|
|
26844
|
-
|
|
26845
|
-
|
|
26835
|
+
try {
|
|
26836
|
+
const proc = Bun.spawn(["p4", ...args], {
|
|
26837
|
+
cwd: options?.cwd,
|
|
26838
|
+
stdout: "pipe",
|
|
26839
|
+
stderr: "pipe"
|
|
26840
|
+
});
|
|
26841
|
+
const [stdout, stderr, exitCode] = await Promise.all([
|
|
26842
|
+
new Response(proc.stdout).text(),
|
|
26843
|
+
new Response(proc.stderr).text(),
|
|
26844
|
+
proc.exited
|
|
26845
|
+
]);
|
|
26846
|
+
return { stdout: stdout.replace(/\r\n/g, `
|
|
26846
26847
|
`), stderr, exitCode };
|
|
26848
|
+
} catch {
|
|
26849
|
+
return { stdout: "", stderr: "p4 not found", exitCode: 1 };
|
|
26850
|
+
}
|
|
26847
26851
|
}
|
|
26848
26852
|
function normalizePath(p) {
|
|
26849
26853
|
return p.replace(/\\/g, "/");
|
|
@@ -27122,12 +27126,16 @@ var GIT_DIFF_TYPES = new Set(["uncommitted", "staged", "unstaged", "last-commit"
|
|
|
27122
27126
|
var gitProvider = {
|
|
27123
27127
|
id: "git",
|
|
27124
27128
|
async detect(cwd) {
|
|
27125
|
-
|
|
27126
|
-
|
|
27127
|
-
|
|
27128
|
-
|
|
27129
|
-
|
|
27130
|
-
|
|
27129
|
+
try {
|
|
27130
|
+
const proc = Bun.spawn(["git", "rev-parse", "--is-inside-work-tree"], {
|
|
27131
|
+
cwd: cwd ?? undefined,
|
|
27132
|
+
stdout: "ignore",
|
|
27133
|
+
stderr: "ignore"
|
|
27134
|
+
});
|
|
27135
|
+
return await proc.exited === 0;
|
|
27136
|
+
} catch {
|
|
27137
|
+
return false;
|
|
27138
|
+
}
|
|
27131
27139
|
},
|
|
27132
27140
|
ownsDiffType(diffType) {
|
|
27133
27141
|
return GIT_DIFF_TYPES.has(diffType) || diffType.startsWith("worktree:");
|
|
@@ -29700,6 +29708,15 @@ async function startAnnotateServer(options) {
|
|
|
29700
29708
|
}
|
|
29701
29709
|
return handleDoc(req);
|
|
29702
29710
|
}
|
|
29711
|
+
if (url.pathname === "/api/obsidian/vaults") {
|
|
29712
|
+
return handleObsidianVaults();
|
|
29713
|
+
}
|
|
29714
|
+
if (url.pathname === "/api/reference/obsidian/files" && req.method === "GET") {
|
|
29715
|
+
return handleObsidianFiles(req);
|
|
29716
|
+
}
|
|
29717
|
+
if (url.pathname === "/api/reference/obsidian/doc" && req.method === "GET") {
|
|
29718
|
+
return handleObsidianDoc(req);
|
|
29719
|
+
}
|
|
29703
29720
|
if (url.pathname === "/api/reference/files" && req.method === "GET") {
|
|
29704
29721
|
return handleFileBrowserFiles(req);
|
|
29705
29722
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plannotator/opencode",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.5",
|
|
4
4
|
"description": "Plannotator plugin for OpenCode - interactive plan review with visual annotation",
|
|
5
5
|
"author": "backnotprop",
|
|
6
6
|
"license": "MIT OR Apache-2.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@opencode-ai/plugin": "^1.1.10"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@plannotator/server": "0.17.
|
|
41
|
+
"@plannotator/server": "0.17.5",
|
|
42
42
|
"@plannotator/shared": "0.0.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|