@workit-dev/codex 2.27.1 → 2.27.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "workit",
3
- "version": "2.27.1",
3
+ "version": "2.27.2",
4
4
  "description": "Adaptive engineering workflow rails for Codex",
5
5
  "author": {
6
6
  "name": "BrainerVirus"
@@ -23701,16 +23701,27 @@ var opaque = (rest, scan, assigns) => {
23701
23701
  if (hit && rest.some((word) => base2(word).toLowerCase() === "env"))
23702
23702
  scan.hit ??= hit.split("=")[0] ?? null;
23703
23703
  };
23704
+ var LOGIN_VALUED = {
23705
+ su: /[sgGwc]/u,
23706
+ runuser: /[sgGwuc]/u,
23707
+ script: /[cEIOBTmot]/u
23708
+ };
23704
23709
  var loginScript = (words) => {
23705
23710
  const at = words.findIndex((word) => /^(?:su|runuser|script)$/u.test(base2(word)));
23706
23711
  if (at < 0)
23707
23712
  return null;
23713
+ const valued = LOGIN_VALUED[base2(words[at])] ?? /c/u;
23708
23714
  for (let index = at + 1;index < words.length; index += 1) {
23709
23715
  const word = words[index] ?? "";
23710
- if (word === "-c" || word === "--command")
23716
+ if (word === "--command")
23711
23717
  return words[index + 1] ?? null;
23712
23718
  if (word.startsWith("--command="))
23713
23719
  return word.slice("--command=".length);
23720
+ if (!/^-[^-]/u.test(word))
23721
+ continue;
23722
+ const ends = word.slice(1).search(valued) + 1;
23723
+ if (ends > 0 && word[ends] === "c")
23724
+ return word.slice(ends + 1) || (words[index + 1] ?? null);
23714
23725
  }
23715
23726
  return null;
23716
23727
  };
@@ -101,7 +101,7 @@ if (quiet) {
101
101
  `);
102
102
  } else {
103
103
  try {
104
- const { runCodexHook } = await import("./workit-hook-qsr5czks.js");
104
+ const { runCodexHook } = await import("./workit-hook-s4ya8max.js");
105
105
  await runCodexHook([payload]);
106
106
  } catch (error) {
107
107
  const { answerRuntimeFailure } = await import("./workit-hook-2j7nwxvz.js");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workit-dev/codex",
3
- "version": "2.27.1",
3
+ "version": "2.27.2",
4
4
  "private": false,
5
5
  "description": "Workit Codex CLI/desktop plugin — shared MCP transport, hooks, method skills, and verifier/reviewer/implementer agents",
6
6
  "keywords": [
@@ -41,8 +41,8 @@
41
41
  "build": "bun scripts/build.ts"
42
42
  },
43
43
  "devDependencies": {
44
- "@workit-dev/core": "^2.27.1",
45
- "@workit-dev/mcp": "^2.27.1"
44
+ "@workit-dev/core": "^2.27.2",
45
+ "@workit-dev/mcp": "^2.27.2"
46
46
  },
47
47
  "engines": {
48
48
  "node": ">=24"