opencode-codeops 1.7.0 → 1.7.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
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to CodeOps are recorded here.
4
4
 
5
+ ## 1.7.1 — 2026-09-24
6
+
7
+ ### Fixes
8
+
9
+ - release: create annotated tags so --follow-tags pushes them
10
+
5
11
  ## 1.7.0 — 2026-09-24
6
12
 
7
13
  ### Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-codeops",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "Specification-first engineering for complex systems — CodeOps plugin for OpenCode",
5
5
  "type": "module",
6
6
  "engines": {
@@ -327,6 +327,23 @@ function updateChangelog(version, commits) {
327
327
  writeFileSync(path, mergeChangelog(existing, entry), "utf-8")
328
328
  }
329
329
 
330
+ /**
331
+ * Builds the `git tag` arguments for a release.
332
+ *
333
+ * The tag is annotated (`-a` with a message) because the release publishes tags
334
+ * with `git push --follow-tags`, which pushes only annotated tags. A lightweight
335
+ * tag would be created locally but never reach the remote, and the next release
336
+ * would then derive its version from a stale tag.
337
+ *
338
+ * @param version - Plain `x.y.z` version being tagged
339
+ * @returns Arguments for `git tag`
340
+ * @example
341
+ * tagArgs("1.2.3") // ["tag", "-a", "v1.2.3", "-m", "opencode-codeops v1.2.3"]
342
+ */
343
+ export function tagArgs(version) {
344
+ return ["tag", "-a", `v${version}`, "-m", `opencode-codeops v${version}`]
345
+ }
346
+
330
347
  /**
331
348
  * Commits the version bump and creates the release tag.
332
349
  *
@@ -340,7 +357,7 @@ function commitAndTag(version, { ci, noGitCommit }) {
340
357
 
341
358
  run("git", ["add", "package.json", "package-lock.json", "CHANGELOG.md"])
342
359
  run("git", ["commit", "-m", `chore(release): v${version}${ci ? " [skip ci]" : ""}`])
343
- run("git", ["tag", `v${version}`])
360
+ run("git", tagArgs(version))
344
361
  }
345
362
 
346
363
  /**