@mstar-harness/opencode 2.1.0 → 2.1.1

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/CHANGELOG.md CHANGED
@@ -6,6 +6,16 @@ The monorepo root [CHANGELOG.md](../../CHANGELOG.md) summarizes cross-surface re
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [2.1.1] - 2026-08-12
10
+
11
+ ### Harness
12
+
13
+ - Canonical `.gitignore` snippet now default-ignores the whole harness dir (`<dir>/**`) and re-includes only the tracked results (AGENTS.md, knowledge/, specs/) — new process subdirectories are ignored automatically.
14
+
15
+ - Version alignment with harness **2.1.1** (no OpenCode package API change).
16
+
17
+ See root [CHANGELOG.md](../../CHANGELOG.md) **2.1.1**.
18
+
9
19
  ## [2.1.0] - 2026-08-12
10
20
 
11
21
  ### Harness
package/dist/mstar.js CHANGED
@@ -43,28 +43,27 @@ function resolveIterationDir(harnessDir) {
43
43
  }
44
44
  var GITIGNORE_SNIPPET = `# Morning Star harness (.mstar/)
45
45
  # Principle: process stays local; results are shared with the team.
46
- # Ignored (process / coordination):
47
- .mstar/archived/
48
- .mstar/iterations/
49
- .mstar/plans/
50
- .mstar/sdd/
51
- .mstar/notes.json
52
- .mstar/status.json
53
- # Tracked (results): .mstar/AGENTS.md, .mstar/knowledge/, .mstar/specs/
46
+ # Default-ignore everything under .mstar/, then re-include the tracked results.
47
+ .mstar/**
48
+ !.mstar/AGENTS.md
49
+ !.mstar/knowledge/
50
+ !.mstar/knowledge/**
51
+ !.mstar/specs/
52
+ !.mstar/specs/**
54
53
  `;
55
54
  var GITIGNORE_SNIPPET_AGENTS = `# Morning Star harness (.agents/) — legacy
56
- .agents/archived/
57
- .agents/iterations/
58
- .agents/plans/
59
- .agents/sdd/
60
- .agents/notes.json
61
- .agents/status.json
62
- # Tracked (results): .agents/AGENTS.md, .agents/knowledge/, .agents/specs/
55
+ # Default-ignore everything under .agents/, then re-include the tracked results.
56
+ .agents/**
57
+ !.agents/AGENTS.md
58
+ !.agents/knowledge/
59
+ !.agents/knowledge/**
60
+ !.agents/specs/
61
+ !.agents/specs/**
63
62
  `;
64
63
  var GITIGNORE_PROCESS_ENTRIES = GITIGNORE_SNIPPET.split(`
65
- `).filter((line) => line.startsWith(".mstar/")).map((line) => line.trim());
64
+ `).filter((line) => line.startsWith(".mstar/") || line.startsWith("!.mstar/")).map((line) => line.trim());
66
65
  var GITIGNORE_PROCESS_ENTRIES_AGENTS = GITIGNORE_SNIPPET_AGENTS.split(`
67
- `).filter((line) => line.startsWith(".agents/")).map((line) => line.trim());
66
+ `).filter((line) => line.startsWith(".agents/") || line.startsWith("!.agents/")).map((line) => line.trim());
68
67
  function isDirectory(dir) {
69
68
  try {
70
69
  return statSync(dir).isDirectory();
@@ -103,27 +103,26 @@ Legacy `.agents/` 项目:将上表路径前缀 `.mstar/` 换为 `.agents/`。
103
103
  ```gitignore
104
104
  # Morning Star harness (.mstar/)
105
105
  # Principle: process stays local; results are shared with the team.
106
- # Ignored (process / coordination):
107
- .mstar/archived/
108
- .mstar/iterations/
109
- .mstar/plans/
110
- .mstar/sdd/
111
- .mstar/notes.json
112
- .mstar/status.json
113
- # Tracked (results): .mstar/AGENTS.md, .mstar/knowledge/, .mstar/specs/
106
+ # Default-ignore everything under .mstar/, then re-include the tracked results.
107
+ .mstar/**
108
+ !.mstar/AGENTS.md
109
+ !.mstar/knowledge/
110
+ !.mstar/knowledge/**
111
+ !.mstar/specs/
112
+ !.mstar/specs/**
114
113
  ```
115
114
 
116
115
  Legacy `.agents/` 等价:
117
116
 
118
117
  ```gitignore
119
118
  # Morning Star harness (.agents/) — legacy
120
- .agents/archived/
121
- .agents/iterations/
122
- .agents/plans/
123
- .agents/sdd/
124
- .agents/notes.json
125
- .agents/status.json
126
- # Tracked (results): .agents/AGENTS.md, .agents/knowledge/, .agents/specs/
119
+ # Default-ignore everything under .agents/, then re-include the tracked results.
120
+ .agents/**
121
+ !.agents/AGENTS.md
122
+ !.agents/knowledge/
123
+ !.agents/knowledge/**
124
+ !.agents/specs/
125
+ !.agents/specs/**
127
126
  ```
128
127
 
129
128
  > **Engine check (when available):** import `emitGitignoreSnippet` / `validateGitignore` from `@mstar-harness/engine` in a host hook to emit or validate the canonical snippet above. On `fail` -> do not proceed; fix and re-run. Skill text below remains authoritative when the runtime is absent.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mstar-harness/opencode",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Morning Star harness OpenCode plugin — skills bootstrap + engine-backed runtime hooks (status lint, dispatch validation, Enforcement: hard gates).",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -36,6 +36,6 @@
36
36
  "access": "public"
37
37
  },
38
38
  "devDependencies": {
39
- "@mstar-harness/engine": "2.1.0"
39
+ "@mstar-harness/engine": "2.1.1"
40
40
  }
41
41
  }