@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 +10 -0
- package/dist/mstar.js +16 -17
- package/harness-skills/mstar-plan-conventions/SKILL.md +14 -15
- package/package.json +2 -2
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
|
-
#
|
|
47
|
-
.mstar
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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
|
|
57
|
-
.agents
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|
-
#
|
|
107
|
-
.mstar
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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
|
|
121
|
-
.agents
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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.
|
|
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.
|
|
39
|
+
"@mstar-harness/engine": "2.1.1"
|
|
40
40
|
}
|
|
41
41
|
}
|