oh-my-opencode-beads 0.0.10 → 0.0.11
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/cli/index.js +8 -8
- package/dist/index.js +30 -13
- package/package.json +8 -8
package/dist/cli/index.js
CHANGED
|
@@ -8877,7 +8877,7 @@ var {
|
|
|
8877
8877
|
// package.json
|
|
8878
8878
|
var package_default = {
|
|
8879
8879
|
name: "oh-my-opencode-beads",
|
|
8880
|
-
version: "0.0.
|
|
8880
|
+
version: "0.0.11",
|
|
8881
8881
|
description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
8882
8882
|
main: "dist/index.js",
|
|
8883
8883
|
types: "dist/index.d.ts",
|
|
@@ -8951,13 +8951,13 @@ var package_default = {
|
|
|
8951
8951
|
typescript: "^5.7.3"
|
|
8952
8952
|
},
|
|
8953
8953
|
optionalDependencies: {
|
|
8954
|
-
"oh-my-opencode-beads-darwin-arm64": "0.0.
|
|
8955
|
-
"oh-my-opencode-beads-darwin-x64": "0.0.
|
|
8956
|
-
"oh-my-opencode-beads-linux-arm64": "0.0.
|
|
8957
|
-
"oh-my-opencode-beads-linux-arm64-musl": "0.0.
|
|
8958
|
-
"oh-my-opencode-beads-linux-x64": "0.0.
|
|
8959
|
-
"oh-my-opencode-beads-linux-x64-musl": "0.0.
|
|
8960
|
-
"oh-my-opencode-beads-windows-x64": "0.0.
|
|
8954
|
+
"oh-my-opencode-beads-darwin-arm64": "0.0.11",
|
|
8955
|
+
"oh-my-opencode-beads-darwin-x64": "0.0.11",
|
|
8956
|
+
"oh-my-opencode-beads-linux-arm64": "0.0.11",
|
|
8957
|
+
"oh-my-opencode-beads-linux-arm64-musl": "0.0.11",
|
|
8958
|
+
"oh-my-opencode-beads-linux-x64": "0.0.11",
|
|
8959
|
+
"oh-my-opencode-beads-linux-x64-musl": "0.0.11",
|
|
8960
|
+
"oh-my-opencode-beads-windows-x64": "0.0.11"
|
|
8961
8961
|
},
|
|
8962
8962
|
trustedDependencies: [
|
|
8963
8963
|
"@ast-grep/cli",
|
package/dist/index.js
CHANGED
|
@@ -12405,10 +12405,14 @@ function readBeadsIssueStatus(directory, issueId) {
|
|
|
12405
12405
|
stdio: ["ignore", "pipe", "ignore"]
|
|
12406
12406
|
});
|
|
12407
12407
|
const parsed = JSON.parse(rawOutput);
|
|
12408
|
-
|
|
12408
|
+
const normalized = Array.isArray(parsed) ? parsed[0] : parsed;
|
|
12409
|
+
if (!normalized || typeof normalized !== "object" || Array.isArray(normalized)) {
|
|
12410
|
+
return null;
|
|
12411
|
+
}
|
|
12412
|
+
if (typeof normalized.status !== "string") {
|
|
12409
12413
|
return null;
|
|
12410
12414
|
}
|
|
12411
|
-
return
|
|
12415
|
+
return normalized.status;
|
|
12412
12416
|
} catch {
|
|
12413
12417
|
return null;
|
|
12414
12418
|
}
|
|
@@ -43692,6 +43696,18 @@ function runBdJson(directory, args) {
|
|
|
43692
43696
|
});
|
|
43693
43697
|
return JSON.parse(rawOutput);
|
|
43694
43698
|
}
|
|
43699
|
+
function normalizeBdShowResult(parsed) {
|
|
43700
|
+
const normalized = Array.isArray(parsed) ? parsed[0] : parsed;
|
|
43701
|
+
if (!normalized || typeof normalized !== "object" || Array.isArray(normalized)) {
|
|
43702
|
+
return null;
|
|
43703
|
+
}
|
|
43704
|
+
const asIssue = normalized;
|
|
43705
|
+
return typeof asIssue.id === "string" ? asIssue : null;
|
|
43706
|
+
}
|
|
43707
|
+
function isEpicIssue(issue2) {
|
|
43708
|
+
const issueType = issue2.type ?? issue2.issue_type;
|
|
43709
|
+
return !issueType || issueType === "epic";
|
|
43710
|
+
}
|
|
43695
43711
|
function readEpicList(directory, status) {
|
|
43696
43712
|
try {
|
|
43697
43713
|
const args = status ? ["list", "--type", "epic", "--status", status] : ["list", "--type", "epic"];
|
|
@@ -43706,31 +43722,32 @@ function readEpicList(directory, status) {
|
|
|
43706
43722
|
function readEpicByHint(directory, hint) {
|
|
43707
43723
|
try {
|
|
43708
43724
|
const parsed = runBdJson(directory, ["show", hint]);
|
|
43709
|
-
|
|
43710
|
-
|
|
43711
|
-
const asIssue = parsed;
|
|
43712
|
-
if (typeof asIssue.id !== "string")
|
|
43725
|
+
const asIssue = normalizeBdShowResult(parsed);
|
|
43726
|
+
if (!asIssue)
|
|
43713
43727
|
return null;
|
|
43714
|
-
if (asIssue
|
|
43728
|
+
if (!isEpicIssue(asIssue))
|
|
43715
43729
|
return null;
|
|
43716
43730
|
return asIssue;
|
|
43717
43731
|
} catch {
|
|
43718
43732
|
const allEpics = readEpicList(directory);
|
|
43719
43733
|
const loweredHint = hint.toLowerCase();
|
|
43720
|
-
|
|
43734
|
+
const fuzzyMatches = allEpics.filter((epic) => {
|
|
43735
|
+
const id = epic.id.toLowerCase();
|
|
43736
|
+
const title = epic.title?.toLowerCase() ?? "";
|
|
43737
|
+
return epic.id === hint || id.includes(loweredHint) || title.includes(loweredHint);
|
|
43738
|
+
});
|
|
43739
|
+
return fuzzyMatches.length === 1 ? fuzzyMatches[0] : null;
|
|
43721
43740
|
}
|
|
43722
43741
|
}
|
|
43723
43742
|
function readEpicById(directory, epicId) {
|
|
43724
43743
|
try {
|
|
43725
43744
|
const parsed = runBdJson(directory, ["show", epicId]);
|
|
43726
|
-
|
|
43727
|
-
|
|
43728
|
-
const asIssue = parsed;
|
|
43729
|
-
if (typeof asIssue.id !== "string")
|
|
43745
|
+
const asIssue = normalizeBdShowResult(parsed);
|
|
43746
|
+
if (!asIssue)
|
|
43730
43747
|
return null;
|
|
43731
43748
|
if (asIssue.id !== epicId)
|
|
43732
43749
|
return null;
|
|
43733
|
-
if (asIssue
|
|
43750
|
+
if (!isEpicIssue(asIssue))
|
|
43734
43751
|
return null;
|
|
43735
43752
|
return asIssue;
|
|
43736
43753
|
} catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oh-my-opencode-beads",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -74,13 +74,13 @@
|
|
|
74
74
|
"typescript": "^5.7.3"
|
|
75
75
|
},
|
|
76
76
|
"optionalDependencies": {
|
|
77
|
-
"oh-my-opencode-beads-darwin-arm64": "0.0.
|
|
78
|
-
"oh-my-opencode-beads-darwin-x64": "0.0.
|
|
79
|
-
"oh-my-opencode-beads-linux-arm64": "0.0.
|
|
80
|
-
"oh-my-opencode-beads-linux-arm64-musl": "0.0.
|
|
81
|
-
"oh-my-opencode-beads-linux-x64": "0.0.
|
|
82
|
-
"oh-my-opencode-beads-linux-x64-musl": "0.0.
|
|
83
|
-
"oh-my-opencode-beads-windows-x64": "0.0.
|
|
77
|
+
"oh-my-opencode-beads-darwin-arm64": "0.0.11",
|
|
78
|
+
"oh-my-opencode-beads-darwin-x64": "0.0.11",
|
|
79
|
+
"oh-my-opencode-beads-linux-arm64": "0.0.11",
|
|
80
|
+
"oh-my-opencode-beads-linux-arm64-musl": "0.0.11",
|
|
81
|
+
"oh-my-opencode-beads-linux-x64": "0.0.11",
|
|
82
|
+
"oh-my-opencode-beads-linux-x64-musl": "0.0.11",
|
|
83
|
+
"oh-my-opencode-beads-windows-x64": "0.0.11"
|
|
84
84
|
},
|
|
85
85
|
"trustedDependencies": [
|
|
86
86
|
"@ast-grep/cli",
|