agents-can-communicate 0.1.4 → 0.1.5

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": "@agents-can-communicate/adapter-claude-code",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "agents-can-communicate",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Coordinate this Claude Code session with other AI agent sessions working in the same workspace: shared presence, resource claims, typed messages, and handoffs."
5
5
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agents-can-communicate/adapter-codex",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agents-can-communicate",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Coordinate this Codex session with other AI agent sessions working in the same workspace.",
5
5
  "license": "UNLICENSED",
6
6
  "keywords": ["coordination", "multi-agent", "claims", "handoff"],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agents-can-communicate",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Coordinate this Gemini CLI session with other AI agent sessions working in the same workspace.",
5
5
  "contextFileName": "skills/acc/SKILL.md"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agents-can-communicate/adapter-gemini-cli",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agents-can-communicate/adapter-kimi",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agents-can-communicate",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Coordinate this Kimi Code session with other AI agent sessions working in the same workspace: shared presence, resource claims, typed messages, and handoffs.",
5
5
  "skills": "./skills/",
6
6
  "sessionStart": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agents-can-communicate/adapter-sdk",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -29,21 +29,36 @@ import { AccError, EXIT } from "@agents-can-communicate/protocol";
29
29
  * nearest `bin/acc-hook.mjs` above this file is the one that belongs to this
30
30
  * copy of the package.
31
31
  */
32
- export const defaultRunner = () => {
32
+ /**
33
+ * A binary of this package's own, found by walking up rather than counted to.
34
+ *
35
+ * `../../../bin/<name>` is the answer in a development checkout and only there.
36
+ * Published, this module sits at
37
+ * `<package>/node_modules/@agents-can-communicate/adapter-sdk/src/`, one level
38
+ * deeper - so the count landed on `node_modules/bin/<name>`, which does not
39
+ * exist. That was found once for the hook runner and fixed for the runner
40
+ * alone. The CLI kept the count, and every skill installed for every agent
41
+ * named a command that could not run: an agent that followed it got
42
+ * `MODULE_NOT_FOUND`. Found by asking a real client to edit a claimed file and
43
+ * reading what it reported.
44
+ */
45
+ const ownBinary = name => {
33
46
  let directory = fileURLToPath(new URL(".", import.meta.url));
34
47
  for (;;) {
35
- const candidate = path.join(directory, "bin", "acc-hook.mjs");
48
+ const candidate = path.join(directory, "bin", name);
36
49
  if (existsSync(candidate)) return candidate;
37
50
  const parent = path.dirname(directory);
38
51
  // Reached the root without finding one. The development answer is returned
39
52
  // so the refusal that follows names a path a reader can recognise.
40
53
  if (parent === directory) {
41
- return fileURLToPath(new URL("../../../bin/acc-hook.mjs", import.meta.url));
54
+ return fileURLToPath(new URL(`../../../bin/${name}`, import.meta.url));
42
55
  }
43
56
  directory = parent;
44
57
  }
45
58
  };
46
59
 
60
+ export const defaultRunner = () => ownBinary("acc-hook.mjs");
61
+
47
62
  export const runnerExists = async runner => {
48
63
  try {
49
64
  await access(runner);
@@ -137,8 +152,7 @@ export async function removeInstalledTree(target, keep = []) {
137
152
  }
138
153
 
139
154
  /** Where the CLI lives, resolved from this package rather than from PATH. */
140
- export const defaultCli = () =>
141
- fileURLToPath(new URL("../../../bin/acc.mjs", import.meta.url));
155
+ export const defaultCli = () => ownBinary("acc.mjs");
142
156
 
143
157
  /**
144
158
  * Bake the runnable command into the skill this adapter installs.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agents-can-communicate/cli",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agents-can-communicate/core",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agents-can-communicate/hook-runner",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agents-can-communicate/installer",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": { ".": "./src/index.mjs" },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agents-can-communicate/mcp-server",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agents-can-communicate/protocol",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agents-can-communicate/storage-filesystem",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agents-can-communicate",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "description": "Local-first coordination for independently opened AI agent sessions.",
6
6
  "keywords": [