mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-24 19:35:28 -06:00
fix(plugins): keep packed entries consistent through package lifecycle (#121174)
* fix(plugins): own packed entry lifecycles by package Persist package ownership per runtime child, route lifecycle actions through one closed resolver, reconcile removed child policy during updates, and retain rollback generations until durable config/index commit. * fix(plugins): break uninstall policy import cycle * test(plugins): model package ownership in lifecycle fixtures
This commit is contained in:
committed by
GitHub
parent
016c5aa772
commit
5a643e3543
@@ -6,6 +6,7 @@ import { installedPluginRoot } from "openclaw/plugin-sdk/test-fixtures";
|
||||
import { afterEach, beforeEach, describe, expect, it } from "vitest";
|
||||
import type { OpenClawConfig } from "../config/config.js";
|
||||
import { hashConfigIncludeRaw } from "../config/includes.js";
|
||||
import { recordPluginManifestInstallOwner } from "../plugins/manifest-install-owner.js";
|
||||
import {
|
||||
listOfficialExternalPluginCatalogEntries,
|
||||
resolveOfficialExternalPluginId,
|
||||
@@ -1268,7 +1269,7 @@ describe("plugins cli install", () => {
|
||||
marketplaceSource: "local/repo",
|
||||
marketplacePlugin: "alpha",
|
||||
});
|
||||
enablePluginInConfigMock.mockReturnValue({ config: enabledCfg });
|
||||
enablePluginInConfigMock.mockReturnValue({ config: enabledCfg, enabled: true });
|
||||
buildPluginSnapshotReportMock.mockReturnValue({
|
||||
plugins: [{ id: "alpha", kind: "provider" }],
|
||||
diagnostics: [],
|
||||
@@ -1276,19 +1277,22 @@ describe("plugins cli install", () => {
|
||||
const alphaRoot = cliInstallPath("alpha");
|
||||
loadPluginManifestRegistryMock.mockReturnValue({
|
||||
plugins: [
|
||||
{
|
||||
id: "alpha",
|
||||
kind: "memory",
|
||||
origin: "global",
|
||||
channels: [],
|
||||
providers: [],
|
||||
cliBackends: [],
|
||||
skills: [],
|
||||
hooks: [],
|
||||
rootDir: alphaRoot,
|
||||
source: `${alphaRoot}/index.js`,
|
||||
manifestPath: `${alphaRoot}/openclaw.plugin.json`,
|
||||
},
|
||||
recordPluginManifestInstallOwner(
|
||||
{
|
||||
id: "alpha",
|
||||
kind: "memory",
|
||||
origin: "global",
|
||||
channels: [],
|
||||
providers: [],
|
||||
cliBackends: [],
|
||||
skills: [],
|
||||
hooks: [],
|
||||
rootDir: alphaRoot,
|
||||
source: `${alphaRoot}/index.js`,
|
||||
manifestPath: `${alphaRoot}/openclaw.plugin.json`,
|
||||
},
|
||||
"alpha",
|
||||
),
|
||||
],
|
||||
diagnostics: [],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user