opencode-swarm 7.4.0 → 7.4.2

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 CHANGED
@@ -34,7 +34,7 @@ var package_default;
34
34
  var init_package = __esm(() => {
35
35
  package_default = {
36
36
  name: "opencode-swarm",
37
- version: "7.4.0",
37
+ version: "7.4.2",
38
38
  description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
39
39
  main: "dist/index.js",
40
40
  types: "dist/index.d.ts",
package/dist/index.js CHANGED
@@ -33,7 +33,7 @@ var package_default;
33
33
  var init_package = __esm(() => {
34
34
  package_default = {
35
35
  name: "opencode-swarm",
36
- version: "7.4.0",
36
+ version: "7.4.2",
37
37
  description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
38
38
  main: "dist/index.js",
39
39
  types: "dist/index.d.ts",
@@ -65906,7 +65906,7 @@ function createCcCommandInterceptHook(config3 = {}) {
65906
65906
  resultLines.push(line);
65907
65907
  continue;
65908
65908
  }
65909
- if (blockDestructive && conflict.severity === "CRITICAL" && (bareCmd === "reset" || bareCmd === "clear")) {
65909
+ if (blockDestructive && conflict.severity === "CRITICAL" && (bareCmd === "reset" || bareCmd === "clear" || bareCmd === "checkpoint")) {
65910
65910
  hasBlocked = true;
65911
65911
  resultLines.push(`[CC_COMMAND_INTERCEPT] BLOCKED: /${bareCmd} — this wipes conversation context. Use /swarm ${bareCmd} instead where applicable.`);
65912
65912
  continue;
@@ -90116,52 +90116,53 @@ async function ensureSwarmGitExcluded(directory, options = {}) {
90116
90116
  _swarmGitExcludedChecked = true;
90117
90117
  const { quiet = false } = options;
90118
90118
  try {
90119
- const gitRootProc = _internals.bunSpawn(["git", "-C", directory, "rev-parse", "--show-toplevel"], GIT_SPAWN_OPTIONS);
90120
- let gitRootExitCode;
90121
- let gitRootOutput;
90122
- try {
90123
- [gitRootExitCode, gitRootOutput] = await Promise.all([
90124
- gitRootProc.exited,
90125
- gitRootProc.stdout.text()
90126
- ]);
90127
- } finally {
90128
- try {
90129
- gitRootProc.kill();
90130
- } catch {}
90131
- }
90119
+ const [
90120
+ [gitRootExitCode, gitRootOutput],
90121
+ [excludePathExitCode, excludePathRaw],
90122
+ checkIgnoreExitCode
90123
+ ] = await Promise.all([
90124
+ (async () => {
90125
+ const proc = _internals.bunSpawn(["git", "-C", directory, "rev-parse", "--show-toplevel"], GIT_SPAWN_OPTIONS);
90126
+ try {
90127
+ return await Promise.all([proc.exited, proc.stdout.text()]);
90128
+ } finally {
90129
+ try {
90130
+ proc.kill();
90131
+ } catch {}
90132
+ }
90133
+ })(),
90134
+ (async () => {
90135
+ const proc = _internals.bunSpawn(["git", "-C", directory, "rev-parse", "--git-path", "info/exclude"], GIT_SPAWN_OPTIONS);
90136
+ try {
90137
+ return await Promise.all([proc.exited, proc.stdout.text()]);
90138
+ } finally {
90139
+ try {
90140
+ proc.kill();
90141
+ } catch {}
90142
+ }
90143
+ })(),
90144
+ (async () => {
90145
+ const proc = _internals.bunSpawn(["git", "-C", directory, "check-ignore", "-q", ".swarm/.gitkeep"], GIT_SPAWN_OPTIONS);
90146
+ try {
90147
+ return await proc.exited;
90148
+ } finally {
90149
+ try {
90150
+ proc.kill();
90151
+ } catch {}
90152
+ }
90153
+ })()
90154
+ ]);
90132
90155
  if (gitRootExitCode !== 0)
90133
90156
  return;
90134
90157
  const gitRoot = gitRootOutput.trim();
90135
90158
  if (!gitRoot)
90136
90159
  return;
90137
- const excludePathProc = _internals.bunSpawn(["git", "-C", directory, "rev-parse", "--git-path", "info/exclude"], GIT_SPAWN_OPTIONS);
90138
- let excludePathExitCode;
90139
- let excludePathRaw;
90140
- try {
90141
- [excludePathExitCode, excludePathRaw] = await Promise.all([
90142
- excludePathProc.exited,
90143
- excludePathProc.stdout.text()
90144
- ]);
90145
- } finally {
90146
- try {
90147
- excludePathProc.kill();
90148
- } catch {}
90149
- }
90150
90160
  if (excludePathExitCode !== 0)
90151
90161
  return;
90152
90162
  const excludeRelPath = excludePathRaw.trim();
90153
90163
  if (!excludeRelPath)
90154
90164
  return;
90155
90165
  const excludePath = path104.isAbsolute(excludeRelPath) ? excludeRelPath : path104.join(directory, excludeRelPath);
90156
- const checkIgnoreProc = _internals.bunSpawn(["git", "-C", directory, "check-ignore", "-q", ".swarm/.gitkeep"], GIT_SPAWN_OPTIONS);
90157
- let checkIgnoreExitCode;
90158
- try {
90159
- checkIgnoreExitCode = await checkIgnoreProc.exited;
90160
- } finally {
90161
- try {
90162
- checkIgnoreProc.kill();
90163
- } catch {}
90164
- }
90165
90166
  if (checkIgnoreExitCode !== 0) {
90166
90167
  try {
90167
90168
  fs84.mkdirSync(path104.dirname(excludePath), { recursive: true });
@@ -90290,7 +90291,7 @@ async function validateDiffScope(taskId, directory) {
90290
90291
  const changedFiles = await getChangedFiles(directory);
90291
90292
  if (!changedFiles)
90292
90293
  return null;
90293
- const nonSwarmFiles = changedFiles.filter((f) => !f.replace(/\\/g, "/").startsWith(".swarm/"));
90294
+ const nonSwarmFiles = changedFiles.filter((f) => !f.replace(/\\/g, "/").replace(/^\.\//, "").startsWith(".swarm/"));
90294
90295
  const normalise = (p) => p.replace(/\\/g, "/").replace(/^\.\//, "");
90295
90296
  const normScope = new Set(declaredScope.map(normalise));
90296
90297
  const undeclared = nonSwarmFiles.map(normalise).filter((f) => !normScope.has(f));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "7.4.0",
3
+ "version": "7.4.2",
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",