@brainervirus/workit-claude-code 8.17.0 → 8.18.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "workit",
3
3
  "displayName": "Workit",
4
- "version": "8.17.0",
4
+ "version": "8.18.0",
5
5
  "description": "Workflow rails for agentic coding: task context on every session, branch policy on shell commands, and the workit method skills",
6
6
  "author": {
7
7
  "name": "BrainerVirus"
@@ -87,7 +87,8 @@ const stateDir = () => {
87
87
  return path.join(env.LOCALAPPDATA ?? path.join(home, "AppData", "Local"), "workit");
88
88
  return path.join(home, ".local", "state", "workit");
89
89
  };
90
- const REPO_CHECKS = "workit.checks.json";
90
+ const REPO_CHECKS = ".workit/checks.json";
91
+ const LEGACY_REPO_CHECKS = "workit.checks.json";
91
92
  /** Could the command be heavy? A doubt answers yes (it only costs a runtime load). */
92
93
  const maybeHeavy = (command, cwd) => {
93
94
  try {
@@ -96,11 +97,12 @@ const maybeHeavy = (command, cwd) => {
96
97
  const patterns = [];
97
98
  const machine = readJson(path.join(stateDir(), "heavy-commands.json"));
98
99
  if (Array.isArray(machine?.patterns)) patterns.push(...machine.patterns);
99
- // The repo's checks config at the git top: keep REPO_CHECKS equal to
100
- // checksConfigFile in workit-core/src/check-config.ts (a test holds them).
100
+ // The repo's checks config at the git top: keep REPO_CHECKS and
101
+ // LEGACY_REPO_CHECKS equal to workit-core/src/check-config.ts (a test holds them).
101
102
  for (let dir = path.resolve(cwd); ; dir = path.dirname(dir)) {
102
103
  if (existsSync(path.join(dir, ".git"))) {
103
- const repo = readJson(path.join(dir, REPO_CHECKS));
104
+ const repo =
105
+ readJson(path.join(dir, REPO_CHECKS)) ?? readJson(path.join(dir, LEGACY_REPO_CHECKS));
104
106
  if (Array.isArray(repo?.resources?.heavyCommands))
105
107
  patterns.push(...repo.resources.heavyCommands);
106
108
  break;