@brainervirus/workit-cli 8.12.1 → 8.12.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.
Files changed (2) hide show
  1. package/dist/index.js +12 -9
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -65,7 +65,7 @@ var package_default;
65
65
  var init_package = __esm(() => {
66
66
  package_default = {
67
67
  name: "@brainervirus/workit-cli",
68
- version: "8.12.1",
68
+ version: "8.12.2",
69
69
  private: false,
70
70
  description: "Workit CLI — setup wizard, doctor, and task control for agentic coding workflows",
71
71
  keywords: [
@@ -103,9 +103,9 @@ var init_package = __esm(() => {
103
103
  },
104
104
  dependencies: {
105
105
  "@babel/parser": "7.29.9",
106
- "@brainervirus/workit-core": "^8.12.1",
107
- "@brainervirus/workit-cursor": "^8.12.1",
108
- "@brainervirus/workit-opencode": "^8.12.1",
106
+ "@brainervirus/workit-core": "^8.12.2",
107
+ "@brainervirus/workit-cursor": "^8.12.2",
108
+ "@brainervirus/workit-opencode": "^8.12.2",
109
109
  "@inkjs/ui": "2.0.0",
110
110
  ink: "7.1.1",
111
111
  react: "19.2.8"
@@ -73003,7 +73003,7 @@ async function runGrant(argv, io, deps = defaultDeps) {
73003
73003
  return usage2(io, `unknown subcommand "${sub}"`);
73004
73004
  }
73005
73005
  var USAGE2 = "workit grant show [<workspace>] [--all] | grant set <workspace> <kind>=<true|false|verified>… [defaultEndpoint=commit|pr|green|merged] [verification=self|independent] | grant unset <workspace> <kind>… (kinds: push, pr, merge, release, rerun, defaultEndpoint, verification)", AGENT_ENV, agentMarker = (env) => AGENT_ENV.find((name) => env[name]) ?? Object.keys(env).find((name) => name.startsWith("CODEX_") && env[name]), defaultDeps, parseValue = (raw) => raw === "true" || raw === "yes" || raw === "on" ? true : raw === "false" || raw === "no" || raw === "off" ? false : raw === "verified" ? "verified" : null, STOPS_AT, endpointLabel = (view) => view.effectiveEndpoint === view.defaultEndpoint ? view.defaultEndpoint : `${view.defaultEndpoint} (effective: ${view.effectiveEndpoint}${view.endpointReason ? `, ${view.endpointReason}` : ""})`, describe2 = (grants, configured, endpoint, verification) => [
73006
- ...GRANT_KINDS.map((kind) => ` ${kind.padEnd(8)}${String(grants[kind]).padEnd(10)}${configured.includes(kind) ? "configured" : "default"}${kind === "release" ? " (workit git push --release: git-flow main and develop, landed v* tags)" : ""}`),
73006
+ ...GRANT_KINDS.map((kind) => ` ${kind.padEnd(8)}${String(grants[kind]).padEnd(10)}${configured.includes(kind) ? "configured" : "default"}${kind === "release" ? " (workit git push --release: git-flow main and develop, landed release tags)" : ""}`),
73007
73007
  ` default endpoint: ${endpointLabel(endpoint)} (an unnamed request stops at ${STOPS_AT[endpoint.effectiveEndpoint]})`,
73008
73008
  ...endpoint.endpointIssue ? [` note: ${endpoint.endpointIssue}`] : [],
73009
73009
  ` verification: ${verification} (${verification === "independent" ? "a normal-risk behavior change needs a non-author verdict" : "a normal-risk behavior change needs a passing check and the author's --self verdict, shown as self-reviewed"})`
@@ -74595,8 +74595,9 @@ function releasePushPreflight(cwd, names) {
74595
74595
  if (tag && branch)
74596
74596
  return failure3("invalid_input", `${raw} names both a branch and a tag`, `workit git push --release refs/heads/${raw} # or refs/tags/${raw}`);
74597
74597
  if (tag) {
74598
- if (!RELEASE_TAG.test(tagName))
74599
- return failure3("blocked", `release_push_refused: tag ${tagName} is not a release tag (v<version>)`, "git tag -a v<version> -m <message> # then: workit git push --release v<version>");
74598
+ const prefix = releaseTagPrefix(cwd);
74599
+ if (!isReleaseTag(tagName, prefix))
74600
+ return failure3("blocked", `release_push_refused: tag ${tagName} is not a release tag (${prefix}<version>, from ${prefix === "v" ? "the default" : "gitflow.prefix.versiontag"})`, `git tag -a ${prefix}<version> -m <message> # then: workit git push --release ${prefix}<version>`);
74600
74601
  refs.push({ kind: "tag", name: tagName, ref: `refs/tags/${tagName}`, sha: tag });
74601
74602
  continue;
74602
74603
  }
@@ -74759,7 +74760,10 @@ ${run.stdout ?? ""}`).split(/\r?\n/u).map((value) => value.trimEnd()).filter((va
74759
74760
  ...lines.slice(-half)
74760
74761
  ].join(`
74761
74762
  `);
74762
- }, validRefName = (cwd, name) => !name.startsWith("-") && git5(cwd, ["check-ref-format", "--branch", name]).ok, nulList = (text) => text.split("\x00").filter(Boolean), SESSION_SAFE, EXTRA_TRAILER, SESSION_KEY, TRAILER_LINE, sessionValues = (trailers) => trailers.filter((trailer) => SESSION_KEY.test(trailer)).map((trailer) => trailer.slice(trailer.indexOf(":") + 1).trim()), TRAILER_CONFIG, nothingToCommit = (what) => failure3("failed", `nothing_to_commit: ${what}`, "workit git commit --allow-empty -m '<msg>' # only to record an empty commit on purpose"), SHA, SHA_PREFIX, RELEASE_TAG;
74763
+ }, validRefName = (cwd, name) => !name.startsWith("-") && git5(cwd, ["check-ref-format", "--branch", name]).ok, nulList = (text) => text.split("\x00").filter(Boolean), SESSION_SAFE, EXTRA_TRAILER, SESSION_KEY, TRAILER_LINE, sessionValues = (trailers) => trailers.filter((trailer) => SESSION_KEY.test(trailer)).map((trailer) => trailer.slice(trailer.indexOf(":") + 1).trim()), TRAILER_CONFIG, nothingToCommit = (what) => failure3("failed", `nothing_to_commit: ${what}`, "workit git commit --allow-empty -m '<msg>' # only to record an empty commit on purpose"), SHA, SHA_PREFIX, releaseTagPrefix = (cwd) => {
74764
+ const configured = git5(cwd, ["config", "--get", "gitflow.prefix.versiontag"]);
74765
+ return configured.ok ? configured.stdout.trim() : "v";
74766
+ }, isReleaseTag = (name, prefix) => name.startsWith(prefix) && /^\d/u.test(name.slice(prefix.length));
74763
74767
  var init_ops = __esm(() => {
74764
74768
  init_branch();
74765
74769
  init_commit_flavors();
@@ -74778,7 +74782,6 @@ var init_ops = __esm(() => {
74778
74782
  TRAILER_CONFIG = ["-c", "trailer.separators=:", "-c", "trailer.where=end"];
74779
74783
  SHA = /^[0-9a-f]{40,64}$/u;
74780
74784
  SHA_PREFIX = /^[0-9a-f]{7,39}$/u;
74781
- RELEASE_TAG = /^v\d/u;
74782
74785
  });
74783
74786
 
74784
74787
  // packages/workit-core/src/forge/reruns.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainervirus/workit-cli",
3
- "version": "8.12.1",
3
+ "version": "8.12.2",
4
4
  "private": false,
5
5
  "description": "Workit CLI — setup wizard, doctor, and task control for agentic coding workflows",
6
6
  "keywords": [
@@ -38,9 +38,9 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@babel/parser": "7.29.9",
41
- "@brainervirus/workit-core": "^8.12.1",
42
- "@brainervirus/workit-cursor": "^8.12.1",
43
- "@brainervirus/workit-opencode": "^8.12.1",
41
+ "@brainervirus/workit-core": "^8.12.2",
42
+ "@brainervirus/workit-cursor": "^8.12.2",
43
+ "@brainervirus/workit-opencode": "^8.12.2",
44
44
  "@inkjs/ui": "2.0.0",
45
45
  "ink": "7.1.1",
46
46
  "react": "19.2.8"