@agenticmail/claudecode 0.1.15 → 0.1.16

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.
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-2GPBHK2M.js";
4
4
  import {
5
5
  install
6
- } from "./chunk-GAD64LKZ.js";
6
+ } from "./chunk-ZTSWLNUP.js";
7
7
  import {
8
8
  status
9
9
  } from "./chunk-O4H76K3B.js";
@@ -125,15 +125,21 @@ async function install(opts = {}) {
125
125
  };
126
126
  }
127
127
  function resolveDispatcherBinPath() {
128
- const thisFile = fileURLToPath(import.meta.url);
129
- const dir = thisFile.slice(0, thisFile.lastIndexOf("/"));
130
- return `${dir}/dispatcher-bin.js`;
128
+ return resolveSiblingBin("dispatcher-bin.js");
131
129
  }
132
130
  function resolveMailHookCommand() {
131
+ return `node "${resolveSiblingBin("mail-hook.js")}"`;
132
+ }
133
+ function resolveSiblingBin(filename) {
133
134
  const thisFile = fileURLToPath(import.meta.url);
134
135
  const dir = thisFile.slice(0, thisFile.lastIndexOf("/"));
135
- const hookPath = `${dir}/mail-hook.js`;
136
- return `node "${hookPath}"`;
136
+ const sibling = `${dir}/${filename}`;
137
+ if (existsSync(sibling)) return sibling;
138
+ const distSibling = `${dir.replace(/\/src$/, "")}/dist/${filename}`;
139
+ if (existsSync(distSibling)) return distSibling;
140
+ const parentDist = `${dir}/../dist/${filename}`;
141
+ if (existsSync(parentDist)) return parentDist;
142
+ return sibling;
137
143
  }
138
144
  async function startDispatcherForInstall(cfg) {
139
145
  const binPath = resolveDispatcherBinPath();
package/dist/cli.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-2GPBHK2M.js";
5
5
  import {
6
6
  install
7
- } from "./chunk-GAD64LKZ.js";
7
+ } from "./chunk-ZTSWLNUP.js";
8
8
  import "./chunk-DKTAW2N5.js";
9
9
  import {
10
10
  status
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  createIntegrationRoutes
3
- } from "./chunk-RGLMLG7Y.js";
3
+ } from "./chunk-PTLX7SQV.js";
4
4
  import "./chunk-2GPBHK2M.js";
5
- import "./chunk-GAD64LKZ.js";
5
+ import "./chunk-ZTSWLNUP.js";
6
6
  import "./chunk-DKTAW2N5.js";
7
7
  import "./chunk-O4H76K3B.js";
8
8
  import "./chunk-US5FT2UB.js";
package/dist/index.js CHANGED
@@ -4,13 +4,13 @@ import {
4
4
  } from "./chunk-RNKJRBEF.js";
5
5
  import {
6
6
  createIntegrationRoutes
7
- } from "./chunk-RGLMLG7Y.js";
7
+ } from "./chunk-PTLX7SQV.js";
8
8
  import {
9
9
  uninstall
10
10
  } from "./chunk-2GPBHK2M.js";
11
11
  import {
12
12
  install
13
- } from "./chunk-GAD64LKZ.js";
13
+ } from "./chunk-ZTSWLNUP.js";
14
14
  import "./chunk-DKTAW2N5.js";
15
15
  import {
16
16
  status
package/dist/install.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  install,
3
3
  selectExposableAgents
4
- } from "./chunk-GAD64LKZ.js";
4
+ } from "./chunk-ZTSWLNUP.js";
5
5
  import "./chunk-DKTAW2N5.js";
6
6
  import "./chunk-US5FT2UB.js";
7
7
  import "./chunk-SBP7MJP2.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/claudecode",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "Claude Code integration for AgenticMail — surfaces every AgenticMail agent as a native Claude Code subagent so any Claude Code session can delegate to them with the Agent tool",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",