opencode-swarm 6.22.15 → 6.22.16
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 +3 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -59687,7 +59687,6 @@ init_create_tool();
|
|
|
59687
59687
|
var DEFAULT_OUTPUT_DIR = ".swarm/evidence/sbom";
|
|
59688
59688
|
function findManifestFiles(rootDir) {
|
|
59689
59689
|
const manifestFiles = [];
|
|
59690
|
-
const cwd = process.cwd();
|
|
59691
59690
|
const patterns = [...new Set(allDetectors.flatMap((d) => d.patterns))];
|
|
59692
59691
|
function searchDir(dir) {
|
|
59693
59692
|
try {
|
|
@@ -59703,7 +59702,7 @@ function findManifestFiles(rootDir) {
|
|
|
59703
59702
|
for (const pattern of patterns) {
|
|
59704
59703
|
const regex = pattern.replace(/\./g, "\\.").replace(/\*/g, ".*").replace(/\?/g, ".");
|
|
59705
59704
|
if (new RegExp(regex, "i").test(entry.name)) {
|
|
59706
|
-
manifestFiles.push(path43.relative(
|
|
59705
|
+
manifestFiles.push(path43.relative(rootDir, fullPath));
|
|
59707
59706
|
break;
|
|
59708
59707
|
}
|
|
59709
59708
|
}
|
|
@@ -59716,7 +59715,6 @@ function findManifestFiles(rootDir) {
|
|
|
59716
59715
|
}
|
|
59717
59716
|
function findManifestFilesInDirs(directories, workingDir) {
|
|
59718
59717
|
const found = [];
|
|
59719
|
-
const _cwd = process.cwd();
|
|
59720
59718
|
const patterns = [...new Set(allDetectors.flatMap((d) => d.patterns))];
|
|
59721
59719
|
for (const dir of directories) {
|
|
59722
59720
|
try {
|
|
@@ -59826,8 +59824,9 @@ var sbom_generate = createSwarmTool({
|
|
|
59826
59824
|
const obj = args2;
|
|
59827
59825
|
const scope = obj.scope;
|
|
59828
59826
|
const changedFiles = obj.changed_files;
|
|
59829
|
-
const
|
|
59827
|
+
const relativeOutputDir = obj.output_dir || DEFAULT_OUTPUT_DIR;
|
|
59830
59828
|
const workingDir = directory;
|
|
59829
|
+
const outputDir = path43.isAbsolute(relativeOutputDir) ? relativeOutputDir : path43.join(workingDir, relativeOutputDir);
|
|
59831
59830
|
let manifestFiles = [];
|
|
59832
59831
|
if (scope === "all") {
|
|
59833
59832
|
manifestFiles = findManifestFiles(workingDir);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "6.22.
|
|
3
|
+
"version": "6.22.16",
|
|
4
4
|
"description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|