@agentchatme/codex 0.0.12 → 0.0.14

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/dist/index.js CHANGED
@@ -6842,6 +6842,7 @@ function serviceEnv() {
6842
6842
  // src/wiring.ts
6843
6843
  import * as fs5 from "fs";
6844
6844
  import * as path6 from "path";
6845
+ import { fileURLToPath } from "url";
6845
6846
  var TOML_START = "# agentchat:start";
6846
6847
  var TOML_END = "# agentchat:end";
6847
6848
  var BUNDLE_REL = path6.join("bin", "agentchat.mjs");
@@ -6856,9 +6857,7 @@ function stableBundlePath() {
6856
6857
  }
6857
6858
  var DAEMON_REL = path6.join("bin", "agentchat-daemon.mjs");
6858
6859
  function shippedDaemonPath() {
6859
- const self = process.argv[1];
6860
- const dir = self ? path6.dirname(self) : process.cwd();
6861
- return path6.join(dir, "daemon-main.js");
6860
+ return path6.join(path6.dirname(fileURLToPath(import.meta.url)), "daemon-main.js");
6862
6861
  }
6863
6862
  function stableDaemonPath() {
6864
6863
  return path6.join(identityHome(), DAEMON_REL);
@@ -6953,7 +6952,10 @@ function hasUnfencedAgentchatServer(existing) {
6953
6952
  }
6954
6953
  function ourHookGroups(bundle) {
6955
6954
  const cmd = (sub, timeout) => ({
6956
- hooks: [{ type: "command", command: `node "${bundle}" hook ${sub} --platform codex`, timeout }]
6955
+ // No `--platform`: this binary IS the Codex integration, and the flag was
6956
+ // removed with the shared CLI. Passing it made every hook exit on "Unknown
6957
+ // option" and print usage to stdout — no digest, no pickup, no acks.
6958
+ hooks: [{ type: "command", command: `node "${bundle}" hook ${sub}`, timeout }]
6957
6959
  });
6958
6960
  return {
6959
6961
  SessionStart: [{ matcher: "startup|resume", ...cmd("session-start", 15) }],
@@ -7126,7 +7128,7 @@ var { runSessionStart, runUserPrompt, runStop } = createHookRunners(
7126
7128
  );
7127
7129
 
7128
7130
  // src/version.ts
7129
- var VERSION2 = "0.0.12";
7131
+ var VERSION2 = "0.0.14";
7130
7132
 
7131
7133
  // src/index.ts
7132
7134
  var USAGE = `agentchat-codex ${VERSION2} \u2014 AgentChat for Codex