agents-can-communicate 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.
- package/node_modules/@agents-can-communicate/adapter-claude-code/package.json +1 -1
- package/node_modules/@agents-can-communicate/adapter-codex/package.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-sdk/package.json +1 -1
- package/node_modules/@agents-can-communicate/cli/package.json +1 -1
- package/node_modules/@agents-can-communicate/cli/src/doctor-command.mjs +15 -3
- 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
|
@@ -134,10 +134,18 @@ async function diagnoseAdapters({ options, runtime }) {
|
|
|
134
134
|
// trust prompt, most of all. It goes where a person reads, not into --json.
|
|
135
135
|
remediation.push(...(entry.needsAction ?? []));
|
|
136
136
|
const installed = record.installs.find(one => one.adapterId === entry.adapterId);
|
|
137
|
-
const
|
|
137
|
+
const bundleVersion = installed?.accVersion ?? null;
|
|
138
|
+
const stale = staleInstall({ recorded: bundleVersion, running });
|
|
138
139
|
if (stale !== null) {
|
|
140
|
+
// Names the skills and manifests, not "the plugin". Updating the npm
|
|
141
|
+
// package replaces the CLI and the hook runtime the client's shim points
|
|
142
|
+
// at, so the runner can already be current - `wired` says whether it is -
|
|
143
|
+
// while the skills and manifests copied into the client stay at whatever
|
|
144
|
+
// acc last ran `acc install`. Calling the whole plugin stale reads as a
|
|
145
|
+
// stale runtime and contradicts a `wired` that says otherwise.
|
|
139
146
|
remediation.push(`acc install --adapter ${entry.adapterId}`
|
|
140
|
-
+ ` #
|
|
147
|
+
+ ` # skills and manifests here are from ${stale.recorded}, acc is ${stale.running}`
|
|
148
|
+
+ ` - reinstall to refresh the bundle`);
|
|
141
149
|
}
|
|
142
150
|
// Read from the wiring rather than from the record. An ACC old enough not to
|
|
143
151
|
// know the record's version field still rewrites that record - blank - while
|
|
@@ -149,7 +157,11 @@ async function diagnoseAdapters({ options, runtime }) {
|
|
|
149
157
|
remediation.push(`acc install --adapter ${entry.adapterId}`
|
|
150
158
|
+ ` # wired to acc ${wired}, this is ${running}`);
|
|
151
159
|
}
|
|
152
|
-
|
|
160
|
+
// `wired` is the version of the runner the client executes; `bundleVersion`
|
|
161
|
+
// is the acc that copied the skills and manifests into it. They diverge after
|
|
162
|
+
// an npm upgrade with no `acc install`, and reporting both is what makes the
|
|
163
|
+
// divergence legible rather than hidden behind a single reassuring number.
|
|
164
|
+
return { ...entry, stale, wired, bundleVersion, owned: { modified: owned.modified,
|
|
153
165
|
missing: owned.missing, intact: owned.intact.length }, remediation };
|
|
154
166
|
}));
|
|
155
167
|
}
|