@agenticmail/claudecode 0.2.12 → 0.2.13

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.
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-GMYSDT2Y.js";
7
7
  import {
8
8
  install
9
- } from "./chunk-XRJIYEJ4.js";
9
+ } from "./chunk-F33EJZII.js";
10
10
  import {
11
11
  AgenticMailApiError
12
12
  } from "./chunk-UI556UPF.js";
@@ -52,9 +52,9 @@ function selectExposableAgents(accounts, cfg) {
52
52
  if (a.role === "bridge") return false;
53
53
  const meta = a.metadata;
54
54
  if (meta && meta.bridge === true) return false;
55
- if (meta && typeof meta.host === "string" && meta.host.trim().length > 0) {
56
- if (meta.host.toLowerCase() !== ownHost) return false;
57
- }
55
+ const host = meta && typeof meta.host === "string" ? meta.host.trim() : "";
56
+ if (!host) return false;
57
+ if (host.toLowerCase() !== ownHost) return false;
58
58
  return true;
59
59
  });
60
60
  }
package/dist/cli.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-GMYSDT2Y.js";
13
13
  import {
14
14
  install
15
- } from "./chunk-XRJIYEJ4.js";
15
+ } from "./chunk-F33EJZII.js";
16
16
  import "./chunk-LO5EQSQA.js";
17
17
  import "./chunk-US5FT2UB.js";
18
18
  import {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  createIntegrationRoutes
3
- } from "./chunk-Z7BJIB44.js";
3
+ } from "./chunk-AXZGWR4M.js";
4
4
  import "./chunk-XI7P3WSC.js";
5
5
  import "./chunk-GMYSDT2Y.js";
6
- import "./chunk-XRJIYEJ4.js";
6
+ import "./chunk-F33EJZII.js";
7
7
  import "./chunk-LO5EQSQA.js";
8
8
  import "./chunk-US5FT2UB.js";
9
9
  import "./chunk-UI556UPF.js";
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-VAEQFJDW.js";
10
10
  import {
11
11
  createIntegrationRoutes
12
- } from "./chunk-Z7BJIB44.js";
12
+ } from "./chunk-AXZGWR4M.js";
13
13
  import {
14
14
  status
15
15
  } from "./chunk-XI7P3WSC.js";
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-GMYSDT2Y.js";
19
19
  import {
20
20
  install
21
- } from "./chunk-XRJIYEJ4.js";
21
+ } from "./chunk-F33EJZII.js";
22
22
  import "./chunk-LO5EQSQA.js";
23
23
  import "./chunk-US5FT2UB.js";
24
24
  import {
package/dist/install.d.ts CHANGED
@@ -30,6 +30,9 @@ import { R as ResolveConfigOptions, I as InstallResult, A as AgenticMailAccount,
30
30
  /**
31
31
  * Decide which AgenticMail agents to surface as Claude Code subagents.
32
32
  *
33
+ * Strict ownership: an account is exposed ONLY if `metadata.host` equals
34
+ * this host's bridge name. The host's roster is its own — never inherited.
35
+ *
33
36
  * Filters out:
34
37
  * - the bridge agent itself (Claude Code's own identity — calling yourself
35
38
  * is silly and would also create a duplicate-name collision in the
@@ -38,11 +41,12 @@ import { R as ResolveConfigOptions, I as InstallResult, A as AgenticMailAccount,
38
41
  * - any account flagged `metadata.bridge === true` (legacy marker from
39
42
  * pre-0.9.3 installs where the 'bridge' role didn't exist yet)
40
43
  * - any account owned by a DIFFERENT host (`metadata.host` set and not
41
- * matching this host's bridge name) — prevents a Codex install from
42
- * exposing Claude's bridge as a Claude Code subagent, and vice-versa
43
- *
44
- * Unclaimed accounts (no host stamp) stay visible to every host for
45
- * backwards compatibility with legacy installs.
44
+ * matching this host's bridge name)
45
+ * - any UNCLAIMED account (no `metadata.host` value at all). Pre-0.9.20
46
+ * accounts that predate auto-tagging are unclaimed by default; the
47
+ * user must run `agenticmail-<host> claim <name>` (or `claim --all`)
48
+ * to transfer them. This keeps a fresh `agenticmail-codex install`
49
+ * from inheriting an already-running Claude Code roster.
46
50
  */
47
51
  declare function selectExposableAgents(accounts: AgenticMailAccount[], cfg: ClaudeCodeIntegrationConfig): AgenticMailAccount[];
48
52
  /**
package/dist/install.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  install,
3
3
  selectExposableAgents
4
- } from "./chunk-XRJIYEJ4.js";
4
+ } from "./chunk-F33EJZII.js";
5
5
  import "./chunk-LO5EQSQA.js";
6
6
  import "./chunk-US5FT2UB.js";
7
7
  import "./chunk-UI556UPF.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/claudecode",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
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",