@openclawbrain/cli 0.4.30 → 0.4.31

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.
@@ -1820,6 +1820,7 @@ interface OperatorHookSummary {
1820
1820
  manifestId: string | null;
1821
1821
  installId: string | null;
1822
1822
  packageName: string | null;
1823
+ packageVersion: string | null;
1823
1824
  installLayout: import("./openclaw-plugin-install.js").OpenClawBrainInstallLayout | null;
1824
1825
  additionalInstallCount: number;
1825
1826
  installState: CurrentProfileHookInstallStateV1;
package/dist/src/index.js CHANGED
@@ -7832,6 +7832,7 @@ function buildCurrentProfileBrainStatusFromReport(report, policyMode, profileId)
7832
7832
  manifestId: report.hook.manifestId,
7833
7833
  installId: report.hook.installId,
7834
7834
  packageName: report.hook.packageName,
7835
+ packageVersion: report.hook.packageVersion,
7835
7836
  installLayout: report.hook.installLayout,
7836
7837
  additionalInstallCount: report.hook.additionalInstallCount,
7837
7838
  installState: report.hook.installState,
@@ -257,7 +257,7 @@ export function inspectOpenClawBrainHookStatus(openclawHome) {
257
257
  manifestId: incompleteInstall?.manifestId ?? null,
258
258
  installId: incompleteInstall?.installId ?? null,
259
259
  packageName: incompleteInstall?.packageName ?? null,
260
- packageVersion: readInstalledHookPackageVersion(incompleteInstall?.packageJsonPath ?? null),
260
+ packageVersion: incompleteInstall?.packageVersion ?? readInstalledHookPackageVersion(incompleteInstall?.packageJsonPath ?? null) ?? incompleteInstall?.manifestVersion ?? null,
261
261
  installLayout: incompleteInstall?.installLayout ?? null,
262
262
  additionalInstallCount: installedPlugin.additionalInstalls.length,
263
263
  installState: "not_installed",
@@ -274,7 +274,7 @@ export function inspectOpenClawBrainHookStatus(openclawHome) {
274
274
  const allowlist = inspectOpenClawBrainPluginAllowlist(resolvedHome);
275
275
  const layoutLabel = describeOpenClawBrainInstallLayout(selectedInstall.installLayout);
276
276
  const identityDetail = describeOpenClawBrainInstallIdentity(selectedInstall);
277
- const packageVersion = readInstalledHookPackageVersion(selectedInstall.packageJsonPath);
277
+ const packageVersion = selectedInstall.packageVersion ?? readInstalledHookPackageVersion(selectedInstall.packageJsonPath) ?? selectedInstall.manifestVersion ?? null;
278
278
  const activationRootState = inspectInstalledHookActivationRoot(selectedInstall.loaderEntryPath);
279
279
  if (allowlist.state === "blocked") {
280
280
  return {
@@ -164,6 +164,10 @@ function inspectOpenClawBrainPluginInstall(extensionDir, pluginId) {
164
164
  const packageName = typeof packageJson.name === "string" && packageJson.name.trim().length > 0
165
165
  ? packageJson.name.trim()
166
166
  : null;
167
+ const packageVersion = typeof packageJson.version === "string" && packageJson.version.trim().length > 0
168
+ ? packageJson.version.trim()
169
+ : null;
170
+ const manifestVersion = normalizeOptionalString(manifest?.version);
167
171
  const installId = normalizeInstallId(packageName) ?? normalizeInstallId(path.basename(extensionDir));
168
172
  const installLayout = inferInstallLayout({
169
173
  extensionDir,
@@ -182,8 +186,10 @@ function inspectOpenClawBrainPluginInstall(extensionDir, pluginId) {
182
186
  runtimeGuardPath: loaderEntryPath === null ? null : resolveRuntimeGuardPath(loaderEntryPath),
183
187
  configuredEntries,
184
188
  manifestId,
189
+ manifestVersion,
185
190
  installId,
186
191
  packageName,
192
+ packageVersion,
187
193
  installLayout
188
194
  };
189
195
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclawbrain/cli",
3
- "version": "0.4.30",
3
+ "version": "0.4.31",
4
4
  "description": "OpenClawBrain operator CLI package with install/status helpers, daemon controls, and import/export tooling.",
5
5
  "type": "module",
6
6
  "main": "./dist/src/index.js",