@workit-dev/codex 2.15.0 → 2.16.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "workit",
3
- "version": "2.15.0",
3
+ "version": "2.16.1",
4
4
  "description": "Adaptive engineering workflow rails for Codex",
5
5
  "author": {
6
6
  "name": "BrainerVirus"
@@ -27271,6 +27271,10 @@ function findExecutable(bin, env) {
27271
27271
  var TIMEOUT_MS = 60000;
27272
27272
  var YTRACK_EXIT = { ok: 0, failed: 1, cancelled: 2, auth: 4 };
27273
27273
  var findYtrack = (env) => env.WORKIT_NO_YTRACK === "1" ? null : findExecutable("ytrack", env);
27274
+ var YTRACK_QUIET_ENV = {
27275
+ YTRACK_NO_UPDATE_NOTIFIER: "1",
27276
+ YTRACK_NO_AUTO_UPGRADE: "1"
27277
+ };
27274
27278
  function ytrackRunner(env, host, timeoutMs = TIMEOUT_MS) {
27275
27279
  return (args, input) => {
27276
27280
  const exe = findYtrack(env);
@@ -27278,7 +27282,12 @@ function ytrackRunner(env, host, timeoutMs = TIMEOUT_MS) {
27278
27282
  return { status: null, stdout: "", stderr: "", missing: true };
27279
27283
  const result = spawnSync19(exe, args, {
27280
27284
  encoding: "utf8",
27281
- env: { ...env, NO_COLOR: "1", ...host ? { YTRACK_HOST: host } : {} },
27285
+ env: {
27286
+ ...env,
27287
+ NO_COLOR: "1",
27288
+ ...YTRACK_QUIET_ENV,
27289
+ ...host ? { YTRACK_HOST: host } : {}
27290
+ },
27282
27291
  timeout: timeoutMs,
27283
27292
  killSignal: "SIGKILL",
27284
27293
  windowsHide: true,
@@ -24084,16 +24084,18 @@ var openLog = (env, args) => {
24084
24084
  return null;
24085
24085
  }
24086
24086
  };
24087
- function runCli(args, env, cwd) {
24087
+ function runCli(args, env) {
24088
24088
  let log = null;
24089
24089
  try {
24090
24090
  const cli = locateWorkitCli2({ env });
24091
+ const cwd = teardownDir(env);
24092
+ fs23.mkdirSync(cwd, { recursive: true });
24091
24093
  log = openLog(env, args);
24092
24094
  const started = teardownDeps.spawn({
24093
24095
  command: cli.command,
24094
24096
  args: [...cli.args, ...args],
24095
24097
  env,
24096
- cwd: fs23.existsSync(cwd) ? cwd : teardownDir(env),
24098
+ cwd,
24097
24099
  log
24098
24100
  });
24099
24101
  if (!started && log !== null)
@@ -24119,7 +24121,7 @@ function endSession(end, env = process.env) {
24119
24121
  const child = { ...env, WORKIT_SESSION_ID: session, WORKIT_HOST: end.host };
24120
24122
  for (const key of HOST_SESSION_VARS)
24121
24123
  delete child[key];
24122
- return runCli(["stop", "--session", session, "--reason", "session-end"], child, end.cwd);
24124
+ return runCli(["stop", "--session", session, "--reason", "session-end"], child);
24123
24125
  }
24124
24126
  var claim2 = (file, now) => {
24125
24127
  for (let attempt = 0;attempt < 2; attempt += 1)
@@ -24147,7 +24149,7 @@ var fresh = (stamp, now) => {
24147
24149
  return false;
24148
24150
  }
24149
24151
  };
24150
- function reapAtStart(cwd, env = process.env) {
24152
+ function reapAtStart(_cwd, env = process.env) {
24151
24153
  const stamp = reapStamp(env);
24152
24154
  const lock = `${stamp}.claim`;
24153
24155
  const now = teardownDeps.now();
@@ -24164,7 +24166,7 @@ function reapAtStart(cwd, env = process.env) {
24164
24166
  try {
24165
24167
  if (fresh(stamp, now))
24166
24168
  return false;
24167
- started = runCli(["stop", "--orphans", "--reason", "session-start"], env, cwd);
24169
+ started = runCli(["stop", "--orphans", "--reason", "session-start"], env);
24168
24170
  if (started) {
24169
24171
  const temp = `${stamp}.${process.pid}`;
24170
24172
  fs23.writeFileSync(temp, String(now), { mode: 384 });
@@ -101,7 +101,7 @@ if (quiet) {
101
101
  `);
102
102
  } else {
103
103
  try {
104
- const { runCodexHook } = await import("./workit-hook-x0h085t0.js");
104
+ const { runCodexHook } = await import("./workit-hook-y2n74h79.js");
105
105
  await runCodexHook([payload]);
106
106
  } catch (error) {
107
107
  const { answerRuntimeFailure } = await import("./workit-hook-9k8dtngs.js");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workit-dev/codex",
3
- "version": "2.15.0",
3
+ "version": "2.16.1",
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.15.0",
45
- "@workit-dev/mcp": "^2.15.0"
44
+ "@workit-dev/core": "^2.16.1",
45
+ "@workit-dev/mcp": "^2.16.1"
46
46
  },
47
47
  "engines": {
48
48
  "node": ">=24"