@nathapp/nax 0.42.3 → 0.42.4

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/nax.js CHANGED
@@ -19061,8 +19061,8 @@ class SpawnAcpClient {
19061
19061
  async start() {}
19062
19062
  async createSession(opts) {
19063
19063
  const sessionName = opts.sessionName || `nax-${Date.now()}`;
19064
- const cmd = ["acpx", "--cwd", this.cwd, opts.agentName, "sessions", "ensure", "--name", sessionName];
19065
- getSafeLogger()?.debug("acp-adapter", `Ensuring session: ${sessionName}`);
19064
+ const cmd = ["acpx", "--cwd", this.cwd, opts.agentName, "sessions", "new", "--name", sessionName];
19065
+ getSafeLogger()?.debug("acp-adapter", `Creating new session: ${sessionName}`);
19066
19066
  const proc = _spawnClientDeps.spawn(cmd, { stdout: "pipe", stderr: "pipe" });
19067
19067
  const exitCode = await proc.exited;
19068
19068
  if (exitCode !== 0) {
@@ -21859,7 +21859,7 @@ var package_default;
21859
21859
  var init_package = __esm(() => {
21860
21860
  package_default = {
21861
21861
  name: "@nathapp/nax",
21862
- version: "0.42.3",
21862
+ version: "0.42.4",
21863
21863
  description: "AI Coding Agent Orchestrator \u2014 loops until done",
21864
21864
  type: "module",
21865
21865
  bin: {
@@ -21932,8 +21932,8 @@ var init_version = __esm(() => {
21932
21932
  NAX_VERSION = package_default.version;
21933
21933
  NAX_COMMIT = (() => {
21934
21934
  try {
21935
- if (/^[0-9a-f]{6,10}$/.test("b051dcb"))
21936
- return "b051dcb";
21935
+ if (/^[0-9a-f]{6,10}$/.test("35ef278"))
21936
+ return "35ef278";
21937
21937
  } catch {}
21938
21938
  try {
21939
21939
  const result = Bun.spawnSync(["git", "rev-parse", "--short", "HEAD"], {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nathapp/nax",
3
- "version": "0.42.3",
3
+ "version": "0.42.4",
4
4
  "description": "AI Coding Agent Orchestrator — loops until done",
5
5
  "type": "module",
6
6
  "bin": {
@@ -211,7 +211,7 @@ class SpawnAcpSession implements AcpSession {
211
211
  * The cmdStr is parsed to extract --model and agent name:
212
212
  * "acpx --model claude-sonnet-4-5 claude" → model=claude-sonnet-4-5, agent=claude
213
213
  *
214
- * createSession() spawns: acpx <agent> sessions ensure --name <name>
214
+ * createSession() spawns: acpx --cwd <dir> <agent> sessions new --name <name>
215
215
  * loadSession() tries to resume an existing named session.
216
216
  */
217
217
  export class SpawnAcpClient implements AcpClient {
@@ -244,9 +244,9 @@ export class SpawnAcpClient implements AcpClient {
244
244
  }): Promise<AcpSession> {
245
245
  const sessionName = opts.sessionName || `nax-${Date.now()}`;
246
246
 
247
- // Ensure session exists via CLI
248
- const cmd = ["acpx", "--cwd", this.cwd, opts.agentName, "sessions", "ensure", "--name", sessionName];
249
- getSafeLogger()?.debug("acp-adapter", `Ensuring session: ${sessionName}`);
247
+ // Create new session via CLI (sessions new = always creates; sessions ensure = lookup only)
248
+ const cmd = ["acpx", "--cwd", this.cwd, opts.agentName, "sessions", "new", "--name", sessionName];
249
+ getSafeLogger()?.debug("acp-adapter", `Creating new session: ${sessionName}`);
250
250
 
251
251
  const proc = _spawnClientDeps.spawn(cmd, { stdout: "pipe", stderr: "pipe" });
252
252
  const exitCode = await proc.exited;