From f6bcb5aa4b8992c9fc5edd79cead02c042651926 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 2 Sep 2026 00:09:04 +0000 Subject: [PATCH 1/2] Exclude self-care package from wizard operations Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- docs/lib/configured-operations.mjs | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/docs/lib/configured-operations.mjs b/docs/lib/configured-operations.mjs index e86aade8..ad3479bf 100644 --- a/docs/lib/configured-operations.mjs +++ b/docs/lib/configured-operations.mjs @@ -2,6 +2,12 @@ function isRecord(value) { return typeof value === "object" && value !== null && !Array.isArray(value); } +// SelfCare runs repository-local live checks against this catalog repository +// itself, so it isn't meant to be installed into a consumer's control plane. +// Exclude it from the wizard's operations list even though it's configured +// in central-agentic-ops.json for this repository's own control plane. +const WIZARD_EXCLUDED_SLUGS = new Set(["self-care"]); + export function selectConfiguredOperations(controlPolicy, catalogEntries) { const controlPlane = isRecord(controlPolicy) ? controlPolicy["control-plane"] : undefined; const configuredPackages = isRecord(controlPlane) ? controlPlane.packages : undefined; @@ -11,9 +17,11 @@ export function selectConfiguredOperations(controlPolicy, catalogEntries) { } const catalogEntriesBySlug = new Map(catalogEntries.map((entry) => [entry.slug, entry])); - return Object.keys(configuredPackages).map((slug) => { - const entry = catalogEntriesBySlug.get(slug); - if (!entry) throw new Error(`Configured package ${slug} must have a catalog manifest`); - return entry; - }); + return Object.keys(configuredPackages) + .filter((slug) => !WIZARD_EXCLUDED_SLUGS.has(slug)) + .map((slug) => { + const entry = catalogEntriesBySlug.get(slug); + if (!entry) throw new Error(`Configured package ${slug} must have a catalog manifest`); + return entry; + }); } From 3a9eeb236b38589f8559ae9974f890c871a8ada6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 2 Sep 2026 00:09:44 +0000 Subject: [PATCH 2/2] Add unit test for self-care wizard exclusion Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- tests/unit/landing-page-diagram.test.mjs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/unit/landing-page-diagram.test.mjs b/tests/unit/landing-page-diagram.test.mjs index 310be574..0a86cc34 100644 --- a/tests/unit/landing-page-diagram.test.mjs +++ b/tests/unit/landing-page-diagram.test.mjs @@ -92,4 +92,12 @@ test("configured wizard operations require a matching catalog manifest", () => { () => selectConfiguredOperations(policy, []), /Configured package missing must have a catalog manifest/, ); +}); + +test("configured wizard operations exclude the repository-local self-care package", () => { + const first = { slug: "first" }; + const selfCare = { slug: "self-care" }; + const policy = { "control-plane": { packages: { "self-care": {}, first: {} } } }; + + assert.deepEqual(selectConfiguredOperations(policy, [first, selfCare]), [first]); }); \ No newline at end of file