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.
- package/node_modules/@agents-can-communicate/adapter-claude-code/package.json +1 -1
- package/node_modules/@agents-can-communicate/adapter-claude-code/plugin/.claude-plugin/plugin.json +1 -1
- package/node_modules/@agents-can-communicate/adapter-codex/package.json +1 -1
- package/node_modules/@agents-can-communicate/adapter-codex/plugin/.codex-plugin/plugin.json +1 -1
- package/node_modules/@agents-can-communicate/adapter-gemini-cli/extension/gemini-extension.json +1 -1
- package/node_modules/@agents-can-communicate/adapter-gemini-cli/package.json +1 -1
- package/node_modules/@agents-can-communicate/adapter-kimi/package.json +1 -1
- package/node_modules/@agents-can-communicate/adapter-kimi/plugin/.kimi-plugin/plugin.json +1 -1
- package/node_modules/@agents-can-communicate/adapter-sdk/package.json +1 -1
- package/node_modules/@agents-can-communicate/adapter-sdk/src/hook-shim.mjs +19 -5
- package/node_modules/@agents-can-communicate/cli/package.json +1 -1
- package/node_modules/@agents-can-communicate/core/package.json +1 -1
- package/node_modules/@agents-can-communicate/hook-runner/package.json +1 -1
- package/node_modules/@agents-can-communicate/installer/package.json +1 -1
- package/node_modules/@agents-can-communicate/mcp-server/package.json +1 -1
- package/node_modules/@agents-can-communicate/protocol/package.json +1 -1
- package/node_modules/@agents-can-communicate/storage-filesystem/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agents-can-communicate",
|
|
3
|
-
"version": "0.1.
|
|
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.
|
|
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": {
|
|
@@ -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
|
-
|
|
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",
|
|
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(
|
|
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.
|