opencode-swarm 7.100.0 → 7.101.0

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
@@ -7,7 +7,7 @@ import {
7
7
  getPluginLockFilePaths,
8
8
  package_default,
9
9
  resolveCommand
10
- } from "./index-q5cae5d7.js";
10
+ } from "./index-rmh6nqbp.js";
11
11
  import"./index-pj3a5fbt.js";
12
12
  import"./index-ydgy7vg5.js";
13
13
  import"./index-vwyjkzgs.js";
@@ -16,7 +16,7 @@ import"./index-rpb763g8.js";
16
16
  import {
17
17
  DEFAULT_AGENT_CONFIGS
18
18
  } from "./index-m0qshbr6.js";
19
- import"./index-y3x3gvy6.js";
19
+ import"./index-bnkd9ejn.js";
20
20
  import"./index-adz3nk9b.js";
21
21
  import"./index-v4fcn4tr.js";
22
22
  import"./index-r8f89sm9.js";
@@ -2,6 +2,8 @@ interface ParsedSddArgs {
2
2
  json: boolean;
3
3
  dryRun: boolean;
4
4
  changeId?: string;
5
+ source?: 'swarm' | 'openspec' | 'speckit';
6
+ feature?: string;
5
7
  error?: string;
6
8
  }
7
9
  declare function parseArgs(args: string[]): ParsedSddArgs;
@@ -119,6 +119,22 @@ export interface ResetToMainAfterMergeResult {
119
119
  changesDiscarded: boolean;
120
120
  warnings: string[];
121
121
  }
122
+ /**
123
+ * Gitignored build-artifact paths the post-merge alignment (`/swarm finalize`) is
124
+ * allowed to delete. Scoped to an explicit allowlist on purpose: `git clean -fdX`
125
+ * removes EVERY gitignored path under cwd — which in this repo also includes
126
+ * `.swarm/` (the cumulative runtime knowledge store), the gitignored
127
+ * `.claude/issue-traces/` directory (investigation traces), the gitignored files
128
+ * inside `.opencode/` (its `node_modules/`, `package.json`, lockfiles — via a
129
+ * nested `.opencode/.gitignore`), and root `node_modules/` (dependencies). A
130
+ * blanket `git clean -fdX` therefore silently destroyed `.swarm/knowledge.jsonl` —
131
+ * the exact file the finalize clean stage (`runCleanStage`) deliberately preserves.
132
+ * Restricting removal to this allowlist clears stale build output across the
133
+ * reset while leaving runtime/durable state and dependencies untouched.
134
+ * `dist/` is the repo's only committed build output (see the `clean`/`build`
135
+ * scripts in package.json); extend this list only with regenerable build output.
136
+ */
137
+ export declare const GITIGNORED_BUILD_ARTIFACTS: readonly string[];
122
138
  /**
123
139
  * Aggressive git reset for post-merge cleanup.
124
140
  * Handles the common scenario: feature branch PR merged, local has uncommitted artifacts.