@f5-sales-demo/xcsh 21.38.2 → 21.39.1
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/package.json +8 -8
- package/src/cli/plugin-cli.ts +21 -4
- package/src/extensibility/extensions/loader.ts +2 -0
- package/src/extensibility/extensions/runner.ts +30 -2
- package/src/extensibility/plugins/marketplace/builtin-marketplace-snapshot.ts +1 -1
- package/src/extensibility/plugins/marketplace/builtin-marketplace.provenance.json +3 -3
- package/src/extensibility/plugins/marketplace/fetcher.ts +7 -0
- package/src/extensibility/plugins/marketplace/types.ts +3 -0
- package/src/integrations/setup.ts +44 -0
- package/src/internal-urls/build-info.generated.ts +8 -8
- package/src/modes/components/plugins/plugin-dashboard.ts +22 -6
- package/src/modes/controllers/selector-controller.ts +11 -3
- package/src/modes/interactive-mode.ts +5 -4
- package/src/modes/types.ts +1 -1
- package/src/session/agent-session.ts +28 -1
- package/src/slash-commands/builtin-registry.ts +16 -9
- package/src/slash-commands/plugin-reviewed-actions.ts +21 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@f5-sales-demo/xcsh",
|
|
4
|
-
"version": "21.
|
|
4
|
+
"version": "21.39.1",
|
|
5
5
|
"description": "Coding agent CLI with read, bash, edit, write tools and session management",
|
|
6
6
|
"homepage": "https://github.com/f5-sales-demo/xcsh",
|
|
7
7
|
"author": "Can Boluk",
|
|
@@ -64,13 +64,13 @@
|
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"@agentclientprotocol/sdk": "1.4.0",
|
|
67
|
-
"@f5-sales-demo/pi-agent-core": "21.
|
|
68
|
-
"@f5-sales-demo/pi-ai": "21.
|
|
69
|
-
"@f5-sales-demo/pi-natives": "21.
|
|
70
|
-
"@f5-sales-demo/pi-resource-management": "21.
|
|
71
|
-
"@f5-sales-demo/pi-tui": "21.
|
|
72
|
-
"@f5-sales-demo/pi-utils": "21.
|
|
73
|
-
"@f5-sales-demo/xcsh-stats": "21.
|
|
67
|
+
"@f5-sales-demo/pi-agent-core": "21.39.1",
|
|
68
|
+
"@f5-sales-demo/pi-ai": "21.39.1",
|
|
69
|
+
"@f5-sales-demo/pi-natives": "21.39.1",
|
|
70
|
+
"@f5-sales-demo/pi-resource-management": "21.39.1",
|
|
71
|
+
"@f5-sales-demo/pi-tui": "21.39.1",
|
|
72
|
+
"@f5-sales-demo/pi-utils": "21.39.1",
|
|
73
|
+
"@f5-sales-demo/xcsh-stats": "21.39.1",
|
|
74
74
|
"@mozilla/readability": "^0.6",
|
|
75
75
|
"@sinclair/typebox": "0.34.52",
|
|
76
76
|
"@tobilu/qmd": "2.8.3",
|
package/src/cli/plugin-cli.ts
CHANGED
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
MarketplaceManager,
|
|
21
21
|
resolvePluginDependencyPlan,
|
|
22
22
|
} from "../extensibility/plugins/marketplace/index.js";
|
|
23
|
-
import { describeSetupPlan, executeReviewedSetup } from "../integrations/setup";
|
|
23
|
+
import { describeSetupPlan, executeInstallAuthorizedSetup, executeReviewedSetup } from "../integrations/setup";
|
|
24
24
|
import type { IntegrationHandle } from "../integrations/types";
|
|
25
25
|
import { theme } from "../modes/theme/theme";
|
|
26
26
|
import { personProfileService } from "../person-profile/service";
|
|
@@ -302,16 +302,29 @@ async function handleIntegrationSetup(args: string[], flags: { json?: boolean })
|
|
|
302
302
|
async function reportMarketplaceInstallation(
|
|
303
303
|
plugin: string,
|
|
304
304
|
marketplace: string,
|
|
305
|
-
entry: {
|
|
305
|
+
entry: {
|
|
306
|
+
version: string;
|
|
307
|
+
scope: string;
|
|
308
|
+
setupRequired: boolean;
|
|
309
|
+
setupAuthorization?: "separate" | "install";
|
|
310
|
+
},
|
|
306
311
|
flags: { json?: boolean },
|
|
307
312
|
dependencyPlan: ReturnType<typeof resolvePluginDependencyPlan>,
|
|
308
313
|
): Promise<void> {
|
|
309
314
|
let handles: IntegrationHandle<unknown>[] = [];
|
|
310
315
|
try {
|
|
311
316
|
handles = (await loadIntegrationHandles()).filter(handle => matchesIntegration(handle, plugin));
|
|
312
|
-
} catch {
|
|
317
|
+
} catch (error) {
|
|
313
318
|
// Installation remains successful even when extension loading cannot establish readiness.
|
|
319
|
+
if (entry.setupRequired && entry.setupAuthorization === "install") throw error;
|
|
314
320
|
}
|
|
321
|
+
const installSetup = await executeInstallAuthorizedSetup({
|
|
322
|
+
plugin,
|
|
323
|
+
lifecycle: entry,
|
|
324
|
+
trigger: "direct-install",
|
|
325
|
+
handles,
|
|
326
|
+
});
|
|
327
|
+
if (installSetup) await personProfileService.reconcileFromCollectors(undefined, 0);
|
|
315
328
|
const statuses = await Promise.all(
|
|
316
329
|
handles.map(async handle => {
|
|
317
330
|
const { value: _, ...status } = await handle.get();
|
|
@@ -693,7 +706,11 @@ async function handleInstall(
|
|
|
693
706
|
await reportMarketplaceInstallation(
|
|
694
707
|
target.name,
|
|
695
708
|
target.marketplace,
|
|
696
|
-
{
|
|
709
|
+
{
|
|
710
|
+
...entry,
|
|
711
|
+
setupRequired: catalogEntry?.lifecycle.setupRequired ?? false,
|
|
712
|
+
setupAuthorization: catalogEntry?.lifecycle.setupAuthorization,
|
|
713
|
+
},
|
|
697
714
|
flags,
|
|
698
715
|
dependencyPlan,
|
|
699
716
|
);
|
|
@@ -388,6 +388,8 @@ async function loadExtension(
|
|
|
388
388
|
|
|
389
389
|
return { extension, error: null };
|
|
390
390
|
} catch (err) {
|
|
391
|
+
integrationRegistry.unregisterOwner(resolvedPath);
|
|
392
|
+
personProfileService.unregisterProfileCollectorsByRegistrant(resolvedPath);
|
|
391
393
|
const message = err instanceof Error ? err.message : String(err);
|
|
392
394
|
return { extension: null, error: `Failed to load extension: ${message}` };
|
|
393
395
|
}
|
|
@@ -6,8 +6,10 @@ import type { ImageContent, Model } from "@f5-sales-demo/pi-ai";
|
|
|
6
6
|
import type { KeyId } from "@f5-sales-demo/pi-tui";
|
|
7
7
|
import { logger } from "@f5-sales-demo/pi-utils";
|
|
8
8
|
import type { ModelRegistry } from "../../config/model-registry";
|
|
9
|
+
import { integrationRegistry } from "../../integrations/registry";
|
|
9
10
|
import type { IntegrationHandle } from "../../integrations/types";
|
|
10
11
|
import { type Theme, theme } from "../../modes/theme/theme";
|
|
12
|
+
import { personProfileService } from "../../person-profile/service";
|
|
11
13
|
import type { SessionManager } from "../../session/session-manager";
|
|
12
14
|
import type {
|
|
13
15
|
BeforeAgentStartEvent,
|
|
@@ -188,10 +190,18 @@ export class ExtensionRunner {
|
|
|
188
190
|
#shutdownHandler: ShutdownHandler = () => {};
|
|
189
191
|
#commandDiagnostics: Array<{ type: string; message: string; path: string }> = [];
|
|
190
192
|
#advisoriesByOwner = new Map<string, Map<string, RegisteredToolAdvisory>>();
|
|
193
|
+
#initialization:
|
|
194
|
+
| {
|
|
195
|
+
actions: ExtensionActions;
|
|
196
|
+
contextActions: ExtensionContextActions;
|
|
197
|
+
commandContextActions?: ExtensionCommandContextActions;
|
|
198
|
+
uiContext?: ExtensionUIContext;
|
|
199
|
+
}
|
|
200
|
+
| undefined;
|
|
191
201
|
|
|
192
202
|
constructor(
|
|
193
|
-
private
|
|
194
|
-
private
|
|
203
|
+
private extensions: Extension[],
|
|
204
|
+
private runtime: ExtensionRuntime,
|
|
195
205
|
private readonly cwd: string,
|
|
196
206
|
private readonly sessionManager: SessionManager,
|
|
197
207
|
private readonly modelRegistry: ModelRegistry,
|
|
@@ -207,6 +217,7 @@ export class ExtensionRunner {
|
|
|
207
217
|
commandContextActions?: ExtensionCommandContextActions,
|
|
208
218
|
uiContext?: ExtensionUIContext,
|
|
209
219
|
): void {
|
|
220
|
+
this.#initialization = { actions, contextActions, commandContextActions, uiContext };
|
|
210
221
|
// Copy actions into the shared runtime (all extension APIs reference this)
|
|
211
222
|
this.runtime.sendMessage = actions.sendMessage;
|
|
212
223
|
this.runtime.sendUserMessage = actions.sendUserMessage;
|
|
@@ -244,6 +255,23 @@ export class ExtensionRunner {
|
|
|
244
255
|
this.#uiContext = uiContext ?? noOpUIContext;
|
|
245
256
|
}
|
|
246
257
|
|
|
258
|
+
/** Replace every registration surface after marketplace state changes. */
|
|
259
|
+
reloadExtensions(extensions: readonly Extension[], runtime: ExtensionRuntime): void {
|
|
260
|
+
const activeOwners = new Set(extensions.map(extension => extension.resolvedPath));
|
|
261
|
+
for (const extension of this.extensions) {
|
|
262
|
+
if (activeOwners.has(extension.resolvedPath)) continue;
|
|
263
|
+
integrationRegistry.unregisterOwner(extension.resolvedPath);
|
|
264
|
+
personProfileService.unregisterProfileCollectorsByRegistrant(extension.resolvedPath);
|
|
265
|
+
}
|
|
266
|
+
this.extensions = [...extensions];
|
|
267
|
+
this.runtime = runtime;
|
|
268
|
+
this.reloadAdvisories(extensions);
|
|
269
|
+
if (this.#initialization) {
|
|
270
|
+
const { actions, contextActions, commandContextActions, uiContext } = this.#initialization;
|
|
271
|
+
this.initialize(actions, contextActions, commandContextActions, uiContext);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
247
275
|
getUIContext(): ExtensionUIContext {
|
|
248
276
|
return this.#uiContext;
|
|
249
277
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
const builtinMarketplaceSnapshot =
|
|
2
|
-
'{\n "$schema": "https://anthropic.com/claude-code/marketplace.schema.json",\n "name": "f5-sales-demo-marketplace",\n "version": "1.0.0",\n "metadata": {\n "description": "Claude Code plugins for f5-sales-demo documentation repositories"\n },\n "owner": {\n "name": "f5-sales-demo",\n "url": "https://github.com/f5-sales-demo"\n },\n "plugins": [\n {\n "name": "docs-tools",\n "description": "MDX content validation and review tools for f5-sales-demo docs repos",\n "version": "1.1.6",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/docs-tools",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/docs-tools",\n "category": "productivity",\n "keywords": ["mdx", "documentation", "validation", "starlight", "astro"],\n "tags": ["docs", "linting", "content-review", "f5xc"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "lifecycle": {\n "mode": "content",\n "integrations": [],\n "requirements": ["Documentation content only"],\n "setupRequired": false,\n "collectedData": [],\n "pluginDependencies": []\n }\n },\n {\n "name": "sales-engineer",\n "description": "Sales Engineer persona framework for F5 XC demo repositories — demo execution, environment operations, presentation, Q&A, post-session debrief",\n "version": "1.0.11",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/sales-engineer",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/sales-engineer",\n "category": "productivity",\n "keywords": ["sales-engineer", "demo", "persona", "presentation", "f5xc"],\n "tags": ["demo", "sales", "persona", "f5xc"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "lifecycle": {\n "mode": "content",\n "integrations": [],\n "requirements": ["Sales engineering content only"],\n "setupRequired": false,\n "collectedData": [],\n "pluginDependencies": []\n }\n },\n {\n "name": "docs-pipeline",\n "description": "Documentation pipeline architecture — config ownership, release dispatch chain, content authoring, managed files, local preview",\n "version": "1.0.6",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/docs-pipeline",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/docs-pipeline",\n "category": "productivity",\n "keywords": ["docs", "pipeline", "astro", "starlight", "content", "authoring"],\n "tags": ["docs", "pipeline", "content", "f5xc"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "lifecycle": {\n "mode": "content",\n "integrations": [],\n "requirements": ["Documentation pipeline content only"],\n "setupRequired": false,\n "collectedData": [],\n "pluginDependencies": []\n }\n },\n {\n "name": "brand",\n "description": "F5 corporate branding enforcement — colors, typography, logos, icons, accessibility, and visual identity standards across all content types",\n "version": "1.0.6",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/brand",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/brand",\n "category": "productivity",\n "keywords": ["brand", "design-system", "colors", "typography", "accessibility"],\n "tags": ["brand", "design", "visual-identity", "f5xc"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "lifecycle": {\n "mode": "content",\n "integrations": [],\n "requirements": ["Brand guidance content only"],\n "setupRequired": false,\n "collectedData": [],\n "pluginDependencies": []\n }\n },\n {\n "name": "meddpicc",\n "description": "MEDDPICC sales qualification and deal-execution framework — evidence-based deal management, stakeholder mapping, mutual action plans, and forecast integrity for complex enterprise B2B sales",\n "version": "7.5.9",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/meddpicc",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/meddpicc",\n "category": "productivity",\n "keywords": [\n "meddpicc",\n "sales-qualification",\n "deal-management",\n "enterprise-sales",\n "forecast",\n "champion",\n "economic-buyer",\n "mutual-action-plan",\n "f5xc"\n ],\n "tags": ["sales", "qualification", "deal-management", "forecast", "f5xc"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "lifecycle": {\n "mode": "content",\n "integrations": [],\n "requirements": ["MEDDPICC content only"],\n "setupRequired": false,\n "collectedData": [],\n "pluginDependencies": []\n }\n },\n {\n "name": "devcontainer",\n "description": "Container awareness — tool catalog, self-identity, self-diagnosis, and maintenance for the f5-sales-demo devcontainer",\n "version": "1.2.0",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/devcontainer",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/devcontainer",\n "category": "productivity",\n "keywords": ["devcontainer", "tools", "catalog", "cli", "inventory", "container"],\n "tags": ["devcontainer", "tools", "catalog", "f5xc"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["devcontainer"],\n "requirements": ["A supported development container runtime"],\n "setupRequired": false,\n "collectedData": [],\n "pluginDependencies": []\n }\n },\n {\n "name": "platform",\n "description": "Provider-neutral F5 Distributed Cloud Secure Mesh Site v2 capabilities, configuration, bootstrap, and status tools",\n "version": "5.1.0",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/platform",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/platform",\n "category": "productivity",\n "keywords": [\n "console",\n "browser",\n "automation",\n "azure-sso",\n "mcp",\n "chrome-devtools",\n "f5xc",\n "api",\n "rest",\n "platform",\n "openapi",\n "crud",\n "spec-aware"\n ],\n "tags": ["console", "browser", "automation", "f5xc", "api", "platform", "openapi"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["platform"],\n "requirements": ["F5 Distributed Cloud API URL and token environment variables"],\n "setupRequired": true,\n "collectedData": [],\n "pluginDependencies": []\n }\n },\n {\n "name": "osint-framework",\n "description": "OSINT Framework tool catalog and investigation skills — 1,064 free intelligence-gathering tools across 34 categories, mapped from osintframework.com. Category-based skills, executable investigation pipelines, CLI tool execution, and OPSEC-aware workflows.",\n "version": "1.0.8",\n "author": {\n "name": "f5-sales-demo"\n },\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/osint-framework",\n "keywords": ["osint", "reconnaissance", "intelligence", "investigation", "security"],\n "license": "Apache-2.0",\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "source": "./plugins/osint-framework",\n "category": "security",\n "tags": ["osint", "recon", "security", "intelligence"],\n "lifecycle": {\n "mode": "content",\n "integrations": [],\n "requirements": ["OSINT framework content only"],\n "setupRequired": false,\n "collectedData": [],\n "pluginDependencies": []\n }\n },\n {\n "name": "firecrawl",\n "description": "Local self-hosted firecrawl web scraping — scrape, crawl, and map websites via the local firecrawl API on port 3002. No API keys, no subscriptions, fully open-source.",\n "version": "1.2.0",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/firecrawl",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/firecrawl",\n "category": "productivity",\n "keywords": ["firecrawl", "scrape", "crawl", "web-scraping", "markdown", "self-hosted", "local", "open-source"],\n "tags": ["firecrawl", "scraping", "web", "local"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["firecrawl"],\n "requirements": ["A reachable local Firecrawl service"],\n "setupRequired": true,\n "collectedData": [],\n "pluginDependencies": []\n }\n },\n {\n "name": "salesforce",\n "description": "Salesforce pipeline intelligence with shared lifecycle setup, account discovery, context, and reporting tools",\n "version": "1.5.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/salesforce",\n "keywords": [\n "salesforce",\n "sf",\n "apex",\n "lwc",\n "soql",\n "metadata",\n "deploy",\n "testing",\n "sfdx",\n "agentforce",\n "pipeline",\n "xcsh"\n ],\n "license": "Apache-2.0",\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "source": "./plugins/salesforce",\n "category": "development",\n "tags": ["salesforce", "development", "cli", "crm", "xcsh-extension"],\n "recommended": true,\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["salesforce"],\n "requirements": ["Salesforce CLI", "An authenticated default Salesforce org"],\n "setupRequired": true,\n "collectedData": ["accounts", "identifiers", "business_profile"],\n "pluginDependencies": []\n }\n },\n {\n "name": "cloudstatus",\n "description": "Live cloud status and Internet network intelligence for xcsh — current incidents, routing, registration, RPKI, peering, facilities, F5 Regional Edge evidence, and bounded path diagnostics",\n "version": "1.6.2",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/cloudstatus",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/cloudstatus",\n "category": "productivity",\n "keywords": [\n "status",\n "monitoring",\n "incidents",\n "maintenance",\n "statuspage",\n "operational-intelligence",\n "network-intelligence",\n "bgp",\n "rdap",\n "rpki",\n "routing",\n "location",\n "peeringdb",\n "facilities",\n "f5xc",\n "atlassian"\n ],\n "tags": ["status", "network-intelligence", "routing", "peering", "f5xc"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "lifecycle": {\n "mode": "on_demand",\n "integrations": ["cloudstatus"],\n "requirements": ["Network access when a cloud-status command is invoked"],\n "setupRequired": false,\n "collectedData": [],\n "pluginDependencies": []\n }\n },\n {\n "name": "azure",\n "description": "Azure CLI integration and deterministic F5 Customer Edge discovery, planning, lifecycle, and diagnostics",\n "version": "4.4.0",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/azure",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/azure",\n "category": "development",\n "keywords": ["azure", "az", "cloud", "f5xc", "customer-edge", "secure-mesh-site"],\n "tags": ["azure", "cloud", "f5xc", "customer-edge", "xcsh-extension"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "recommended": true,\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["azure"],\n "requirements": ["Azure CLI", "An authenticated Azure account"],\n "setupRequired": true,\n "collectedData": ["accounts"],\n "pluginDependencies": ["platform"]\n }\n },\n {\n "name": "aws",\n "description": "AWS CLI integration and deterministic F5 Secure Mesh Site v2 Customer Edge discovery, planning, lifecycle, and diagnostics",\n "version": "2.1.0",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/aws",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/aws",\n "category": "development",\n "keywords": ["aws", "amazon", "cloud", "f5xc", "customer-edge", "secure-mesh-site", "tgw", "nlb"],\n "tags": ["aws", "cloud", "f5xc", "customer-edge", "xcsh-extension"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "recommended": true,\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["aws"],\n "requirements": ["AWS CLI", "AWS credentials or an authenticated SSO profile"],\n "setupRequired": true,\n "collectedData": ["accounts"],\n "pluginDependencies": ["platform"]\n }\n },\n {\n "name": "kvm",\n "description": "Deterministic F5 Distributed Cloud Secure Mesh Site v2 lifecycle for KVM, libvirt, and Terraform-owned FRR routing",\n "version": "1.1.0",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/kvm",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/kvm",\n "category": "development",\n "keywords": ["kvm", "libvirt", "qemu", "f5xc", "customer-edge", "secure-mesh-site", "frr", "terraform"],\n "tags": ["kvm", "libvirt", "f5xc", "customer-edge", "xcsh-extension"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "recommended": true,\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["kvm"],\n "requirements": [\n "Terraform CLI",\n "libvirt and qemu system access",\n "Docker CLI",\n "curl",\n "F5 Distributed Cloud Platform integration"\n ],\n "setupRequired": true,\n "collectedData": [],\n "pluginDependencies": ["platform", "aws", "terraform"]\n }\n },\n {\n "name": "gcloud",\n "description": "Google Cloud CLI integration — container-adapted auth, context injection, CLI operator agent, token expiry detection, and welcome screen status",\n "version": "1.3.0",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/gcloud",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/gcloud",\n "category": "development",\n "keywords": ["gcloud", "google", "cloud"],\n "tags": ["gcloud", "google", "cloud", "xcsh-extension"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "recommended": true,\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["gcloud"],\n "requirements": ["Google Cloud CLI", "An authenticated Google Cloud account"],\n "setupRequired": true,\n "collectedData": ["accounts"],\n "pluginDependencies": []\n }\n },\n {\n "name": "gitlab",\n "description": "GitLab CLI integration with shared lifecycle readiness, profile discovery, and issue management tools",\n "version": "1.3.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "keywords": ["gitlab", "glab", "issues", "git"],\n "license": "Apache-2.0",\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "source": "./plugins/gitlab",\n "category": "development",\n "tags": ["gitlab", "development", "cli", "xcsh-extension"],\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/gitlab",\n "recommended": true,\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["gitlab"],\n "requirements": ["GitLab CLI", "An authenticated GitLab account"],\n "setupRequired": true,\n "collectedData": ["accounts"],\n "pluginDependencies": []\n }\n },\n {\n "name": "github",\n "description": "Poweruser GitHub & Git Operations plugin combining direct native CLI mastery (git and gh) with complete Git SOPs workflow governance (issue-driven development, feature branching, PR lifecycle, CI polling, auto-merge, and post-merge teardown)",\n "version": "2.1.1",\n "author": {\n "name": "f5-sales-demo"\n },\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/github",\n "keywords": ["github", "gh", "git", "pr", "issues", "ci", "workflow", "git-sops", "github-ops"],\n "license": "Apache-2.0",\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "source": "./plugins/github",\n "category": "development",\n "tags": ["github", "development", "cli", "workflow", "xcsh-extension"],\n "recommended": true,\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["github", "github_email"],\n "requirements": ["GitHub CLI", "An authenticated GitHub account"],\n "setupRequired": true,\n "collectedData": ["accounts", "email"],\n "pluginDependencies": []\n }\n },\n {\n "name": "herdr",\n "description": "Install and operate the stable F5 Herdr fork with verified native xcsh health, explicit pairing, and complete pane-control guidance.",\n "version": "1.1.2",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/herdr",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/herdr",\n "category": "development",\n "keywords": ["herdr", "terminal", "multiplexer", "panes", "agents"],\n "tags": ["terminal", "orchestration", "agents", "xcsh-extension"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["herdr"],\n "requirements": [\n "Supported 64-bit Linux, macOS, or Windows host",\n "HTTPS access to the f5-sales-demo/herdr stable manifest and release"\n ],\n "setupRequired": true,\n "collectedData": [],\n "pluginDependencies": []\n }\n },\n {\n "name": "asm-migration",\n "description": "Deterministic BIG-IP ASM conversion and guarded F5 Distributed Cloud deployment",\n "version": "2.1.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/asm-migration",\n "keywords": ["asm", "waf", "migration", "f5xc", "xcsh-extension"],\n "license": "Apache-2.0",\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "source": "./plugins/asm-migration",\n "category": "security",\n "tags": ["asm", "waf", "security", "migration", "f5xc"],\n "recommended": false,\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["asm_migration"],\n "requirements": ["ASM migration runtime dependencies", "F5 Distributed Cloud Platform integration"],\n "setupRequired": true,\n "collectedData": [],\n "pluginDependencies": ["platform"]\n }\n },\n {\n "name": "terraform",\n "description": "Senior DevOps Infrastructure-as-Code plugin providing HashiCorp Registry proactive version checks, HCL authoring, testing frameworks, and troubleshooting playbooks.",\n "version": "2.1.0",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/terraform",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/terraform",\n "category": "development",\n "keywords": ["terraform", "hcl", "iac", "devops", "hashicorp", "testing", "troubleshooting"],\n "tags": ["terraform", "iac", "devops", "f5xc"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["terraform"],\n "requirements": ["Terraform CLI"],\n "setupRequired": true,\n "collectedData": [],\n "pluginDependencies": []\n }\n },\n {\n "name": "xorg",\n "version": "1.0.9",\n "description": "Ubuntu 24.04 Xorg desktop automation substrate",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "extensions": ["extensions/integration.ts"],\n "xcsh": {\n "name": "Xorg",\n "version": "1.0.9"\n },\n "source": "./plugins/xorg",\n "category": "development",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/xorg",\n "keywords": ["xorg", "at-spi", "xtest", "pipewire"],\n "tags": ["linux", "desktop", "automation"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["xorg"],\n "requirements": ["Ubuntu 24.04 with passwordless sudo"],\n "setupRequired": true,\n "collectedData": [],\n "pluginDependencies": []\n }\n },\n {\n "name": "zoom",\n "version": "1.0.5",\n "description": "Verified Zoom Workplace control through public xorgctl JSON",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "extensions": ["extensions/integration.ts"],\n "xcsh": {\n "name": "Zoom",\n "version": "1.0.5"\n },\n "source": "./plugins/zoom",\n "category": "productivity",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/zoom",\n "keywords": ["zoom", "meeting", "accessibility", "virtual-camera"],\n "tags": ["zoom", "meeting", "automation"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["zoom"],\n "requirements": ["Ubuntu 24.04", "Zoom Workplace", "Xorg plugin"],\n "setupRequired": true,\n "collectedData": [],\n "pluginDependencies": ["xorg"]\n }\n }\n ]\n}\n';
|
|
2
|
+
'{\n "$schema": "https://anthropic.com/claude-code/marketplace.schema.json",\n "name": "f5-sales-demo-marketplace",\n "version": "1.0.0",\n "metadata": {\n "description": "Claude Code plugins for f5-sales-demo documentation repositories"\n },\n "owner": {\n "name": "f5-sales-demo",\n "url": "https://github.com/f5-sales-demo"\n },\n "plugins": [\n {\n "name": "docs-tools",\n "description": "MDX content validation and review tools for f5-sales-demo docs repos",\n "version": "1.1.6",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/docs-tools",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/docs-tools",\n "category": "productivity",\n "keywords": ["mdx", "documentation", "validation", "starlight", "astro"],\n "tags": ["docs", "linting", "content-review", "f5xc"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "lifecycle": {\n "mode": "content",\n "integrations": [],\n "requirements": ["Documentation content only"],\n "setupRequired": false,\n "collectedData": [],\n "pluginDependencies": []\n }\n },\n {\n "name": "sales-engineer",\n "description": "Sales Engineer persona framework for F5 XC demo repositories — demo execution, environment operations, presentation, Q&A, post-session debrief",\n "version": "1.0.11",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/sales-engineer",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/sales-engineer",\n "category": "productivity",\n "keywords": ["sales-engineer", "demo", "persona", "presentation", "f5xc"],\n "tags": ["demo", "sales", "persona", "f5xc"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "lifecycle": {\n "mode": "content",\n "integrations": [],\n "requirements": ["Sales engineering content only"],\n "setupRequired": false,\n "collectedData": [],\n "pluginDependencies": []\n }\n },\n {\n "name": "docs-pipeline",\n "description": "Documentation pipeline architecture — config ownership, release dispatch chain, content authoring, managed files, local preview",\n "version": "1.0.6",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/docs-pipeline",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/docs-pipeline",\n "category": "productivity",\n "keywords": ["docs", "pipeline", "astro", "starlight", "content", "authoring"],\n "tags": ["docs", "pipeline", "content", "f5xc"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "lifecycle": {\n "mode": "content",\n "integrations": [],\n "requirements": ["Documentation pipeline content only"],\n "setupRequired": false,\n "collectedData": [],\n "pluginDependencies": []\n }\n },\n {\n "name": "brand",\n "description": "F5 corporate branding enforcement — colors, typography, logos, icons, accessibility, and visual identity standards across all content types",\n "version": "1.0.6",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/brand",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/brand",\n "category": "productivity",\n "keywords": ["brand", "design-system", "colors", "typography", "accessibility"],\n "tags": ["brand", "design", "visual-identity", "f5xc"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "lifecycle": {\n "mode": "content",\n "integrations": [],\n "requirements": ["Brand guidance content only"],\n "setupRequired": false,\n "collectedData": [],\n "pluginDependencies": []\n }\n },\n {\n "name": "meddpicc",\n "description": "MEDDPICC sales qualification and deal-execution framework — evidence-based deal management, stakeholder mapping, mutual action plans, and forecast integrity for complex enterprise B2B sales",\n "version": "7.5.9",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/meddpicc",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/meddpicc",\n "category": "productivity",\n "keywords": [\n "meddpicc",\n "sales-qualification",\n "deal-management",\n "enterprise-sales",\n "forecast",\n "champion",\n "economic-buyer",\n "mutual-action-plan",\n "f5xc"\n ],\n "tags": ["sales", "qualification", "deal-management", "forecast", "f5xc"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "lifecycle": {\n "mode": "content",\n "integrations": [],\n "requirements": ["MEDDPICC content only"],\n "setupRequired": false,\n "collectedData": [],\n "pluginDependencies": []\n }\n },\n {\n "name": "devcontainer",\n "description": "Container awareness — tool catalog, self-identity, self-diagnosis, and maintenance for the f5-sales-demo devcontainer",\n "version": "1.2.0",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/devcontainer",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/devcontainer",\n "category": "productivity",\n "keywords": ["devcontainer", "tools", "catalog", "cli", "inventory", "container"],\n "tags": ["devcontainer", "tools", "catalog", "f5xc"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["devcontainer"],\n "requirements": ["A supported development container runtime"],\n "setupRequired": false,\n "collectedData": [],\n "pluginDependencies": []\n }\n },\n {\n "name": "platform",\n "description": "Provider-neutral F5 Distributed Cloud Secure Mesh Site v2 capabilities, configuration, bootstrap, and status tools",\n "version": "5.1.0",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/platform",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/platform",\n "category": "productivity",\n "keywords": [\n "console",\n "browser",\n "automation",\n "azure-sso",\n "mcp",\n "chrome-devtools",\n "f5xc",\n "api",\n "rest",\n "platform",\n "openapi",\n "crud",\n "spec-aware"\n ],\n "tags": ["console", "browser", "automation", "f5xc", "api", "platform", "openapi"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["platform"],\n "requirements": ["F5 Distributed Cloud API URL and token environment variables"],\n "setupRequired": true,\n "collectedData": [],\n "pluginDependencies": []\n }\n },\n {\n "name": "osint-framework",\n "description": "OSINT Framework tool catalog and investigation skills — 1,064 free intelligence-gathering tools across 34 categories, mapped from osintframework.com. Category-based skills, executable investigation pipelines, CLI tool execution, and OPSEC-aware workflows.",\n "version": "1.0.8",\n "author": {\n "name": "f5-sales-demo"\n },\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/osint-framework",\n "keywords": ["osint", "reconnaissance", "intelligence", "investigation", "security"],\n "license": "Apache-2.0",\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "source": "./plugins/osint-framework",\n "category": "security",\n "tags": ["osint", "recon", "security", "intelligence"],\n "lifecycle": {\n "mode": "content",\n "integrations": [],\n "requirements": ["OSINT framework content only"],\n "setupRequired": false,\n "collectedData": [],\n "pluginDependencies": []\n }\n },\n {\n "name": "firecrawl",\n "description": "Local self-hosted firecrawl web scraping — scrape, crawl, and map websites via the local firecrawl API on port 3002. No API keys, no subscriptions, fully open-source.",\n "version": "1.2.0",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/firecrawl",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/firecrawl",\n "category": "productivity",\n "keywords": ["firecrawl", "scrape", "crawl", "web-scraping", "markdown", "self-hosted", "local", "open-source"],\n "tags": ["firecrawl", "scraping", "web", "local"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["firecrawl"],\n "requirements": ["A reachable local Firecrawl service"],\n "setupRequired": true,\n "collectedData": [],\n "pluginDependencies": []\n }\n },\n {\n "name": "salesforce",\n "description": "Salesforce pipeline intelligence with shared lifecycle setup, account discovery, context, and reporting tools",\n "version": "1.5.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/salesforce",\n "keywords": [\n "salesforce",\n "sf",\n "apex",\n "lwc",\n "soql",\n "metadata",\n "deploy",\n "testing",\n "sfdx",\n "agentforce",\n "pipeline",\n "xcsh"\n ],\n "license": "Apache-2.0",\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "source": "./plugins/salesforce",\n "category": "development",\n "tags": ["salesforce", "development", "cli", "crm", "xcsh-extension"],\n "recommended": true,\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["salesforce"],\n "requirements": ["Salesforce CLI", "An authenticated default Salesforce org"],\n "setupRequired": true,\n "collectedData": ["accounts", "identifiers", "business_profile"],\n "pluginDependencies": []\n }\n },\n {\n "name": "cloudstatus",\n "description": "Live cloud status and Internet network intelligence for xcsh — current incidents, routing, registration, RPKI, peering, facilities, F5 Regional Edge evidence, and bounded path diagnostics",\n "version": "1.7.0",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/cloudstatus",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/cloudstatus",\n "category": "productivity",\n "keywords": [\n "status",\n "monitoring",\n "incidents",\n "maintenance",\n "statuspage",\n "operational-intelligence",\n "network-intelligence",\n "bgp",\n "rdap",\n "rpki",\n "routing",\n "location",\n "peeringdb",\n "facilities",\n "f5xc",\n "atlassian"\n ],\n "tags": ["status", "network-intelligence", "routing", "peering", "f5xc"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "lifecycle": {\n "mode": "on_demand",\n "integrations": ["cloudstatus"],\n "requirements": ["Network access when a cloud-status command is invoked"],\n "setupRequired": false,\n "collectedData": [],\n "pluginDependencies": []\n }\n },\n {\n "name": "azure",\n "description": "Azure CLI integration and deterministic F5 Customer Edge discovery, planning, lifecycle, and diagnostics",\n "version": "4.4.0",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/azure",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/azure",\n "category": "development",\n "keywords": ["azure", "az", "cloud", "f5xc", "customer-edge", "secure-mesh-site"],\n "tags": ["azure", "cloud", "f5xc", "customer-edge", "xcsh-extension"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "recommended": true,\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["azure"],\n "requirements": ["Azure CLI", "An authenticated Azure account"],\n "setupRequired": true,\n "collectedData": ["accounts"],\n "pluginDependencies": ["platform"]\n }\n },\n {\n "name": "aws",\n "description": "AWS CLI integration and deterministic F5 Secure Mesh Site v2 Customer Edge discovery, planning, lifecycle, and diagnostics",\n "version": "2.1.0",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/aws",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/aws",\n "category": "development",\n "keywords": ["aws", "amazon", "cloud", "f5xc", "customer-edge", "secure-mesh-site", "tgw", "nlb"],\n "tags": ["aws", "cloud", "f5xc", "customer-edge", "xcsh-extension"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "recommended": true,\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["aws"],\n "requirements": ["AWS CLI", "AWS credentials or an authenticated SSO profile"],\n "setupRequired": true,\n "collectedData": ["accounts"],\n "pluginDependencies": ["platform"]\n }\n },\n {\n "name": "kvm",\n "description": "Deterministic F5 Distributed Cloud Secure Mesh Site v2 lifecycle for KVM, libvirt, and Terraform-owned FRR routing",\n "version": "1.1.0",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/kvm",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/kvm",\n "category": "development",\n "keywords": ["kvm", "libvirt", "qemu", "f5xc", "customer-edge", "secure-mesh-site", "frr", "terraform"],\n "tags": ["kvm", "libvirt", "f5xc", "customer-edge", "xcsh-extension"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "recommended": true,\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["kvm"],\n "requirements": [\n "Terraform CLI",\n "libvirt and qemu system access",\n "Docker CLI",\n "curl",\n "F5 Distributed Cloud Platform integration"\n ],\n "setupRequired": true,\n "collectedData": [],\n "pluginDependencies": ["platform", "aws", "terraform"]\n }\n },\n {\n "name": "gcloud",\n "description": "Google Cloud CLI integration — container-adapted auth, context injection, CLI operator agent, token expiry detection, and welcome screen status",\n "version": "1.3.0",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/gcloud",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/gcloud",\n "category": "development",\n "keywords": ["gcloud", "google", "cloud"],\n "tags": ["gcloud", "google", "cloud", "xcsh-extension"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "recommended": true,\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["gcloud"],\n "requirements": ["Google Cloud CLI", "An authenticated Google Cloud account"],\n "setupRequired": true,\n "collectedData": ["accounts"],\n "pluginDependencies": []\n }\n },\n {\n "name": "gitlab",\n "description": "GitLab CLI integration with shared lifecycle readiness, profile discovery, and issue management tools",\n "version": "1.3.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "keywords": ["gitlab", "glab", "issues", "git"],\n "license": "Apache-2.0",\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "source": "./plugins/gitlab",\n "category": "development",\n "tags": ["gitlab", "development", "cli", "xcsh-extension"],\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/gitlab",\n "recommended": true,\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["gitlab"],\n "requirements": ["GitLab CLI", "An authenticated GitLab account"],\n "setupRequired": true,\n "collectedData": ["accounts"],\n "pluginDependencies": []\n }\n },\n {\n "name": "github",\n "description": "GitHub and Git operations with typed lifecycle stages, normalized evidence, and advisory governance",\n "version": "3.0.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/github",\n "keywords": ["github", "gh", "git", "pr", "issues", "ci", "workflow", "git-sops", "github-ops"],\n "license": "Apache-2.0",\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "source": "./plugins/github",\n "category": "development",\n "tags": ["github", "development", "cli", "workflow", "xcsh-extension"],\n "recommended": true,\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["github", "github_email"],\n "requirements": ["GitHub CLI", "An authenticated GitHub account"],\n "setupRequired": true,\n "collectedData": ["accounts", "email"],\n "pluginDependencies": []\n }\n },\n {\n "name": "herdr",\n "description": "Install and operate the stable F5 Herdr fork with verified native xcsh health, explicit pairing, and complete pane-control guidance.",\n "version": "1.1.2",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/herdr",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/herdr",\n "category": "development",\n "keywords": ["herdr", "terminal", "multiplexer", "panes", "agents"],\n "tags": ["terminal", "orchestration", "agents", "xcsh-extension"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["herdr"],\n "requirements": [\n "Supported 64-bit Linux, macOS, or Windows host",\n "HTTPS access to the f5-sales-demo/herdr stable manifest and release"\n ],\n "setupRequired": true,\n "collectedData": [],\n "pluginDependencies": []\n }\n },\n {\n "name": "asm-migration",\n "description": "Deterministic BIG-IP ASM conversion and guarded F5 Distributed Cloud deployment",\n "version": "2.1.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/asm-migration",\n "keywords": ["asm", "waf", "migration", "f5xc", "xcsh-extension"],\n "license": "Apache-2.0",\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "source": "./plugins/asm-migration",\n "category": "security",\n "tags": ["asm", "waf", "security", "migration", "f5xc"],\n "recommended": false,\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["asm_migration"],\n "requirements": ["ASM migration runtime dependencies", "F5 Distributed Cloud Platform integration"],\n "setupRequired": true,\n "collectedData": [],\n "pluginDependencies": ["platform"]\n }\n },\n {\n "name": "terraform",\n "description": "Senior DevOps Infrastructure-as-Code plugin providing HashiCorp Registry proactive version checks, HCL authoring, testing frameworks, and troubleshooting playbooks.",\n "version": "2.1.0",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/terraform",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "source": "./plugins/terraform",\n "category": "development",\n "keywords": ["terraform", "hcl", "iac", "devops", "hashicorp", "testing", "troubleshooting"],\n "tags": ["terraform", "iac", "devops", "f5xc"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["terraform"],\n "requirements": ["Terraform CLI"],\n "setupRequired": true,\n "collectedData": [],\n "pluginDependencies": []\n }\n },\n {\n "name": "xorg",\n "version": "1.0.9",\n "description": "Ubuntu 24.04 Xorg desktop automation substrate",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "extensions": ["extensions/integration.ts"],\n "xcsh": {\n "name": "Xorg",\n "version": "1.0.9"\n },\n "source": "./plugins/xorg",\n "category": "development",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/xorg",\n "keywords": ["xorg", "at-spi", "xtest", "pipewire"],\n "tags": ["linux", "desktop", "automation"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["xorg"],\n "requirements": ["Ubuntu 24.04 with passwordless sudo"],\n "setupRequired": true,\n "collectedData": [],\n "pluginDependencies": []\n }\n },\n {\n "name": "zoom",\n "version": "1.0.5",\n "description": "Verified Zoom Workplace control through public xorgctl JSON",\n "license": "Apache-2.0",\n "author": {\n "name": "f5-sales-demo"\n },\n "extensions": ["extensions/integration.ts"],\n "xcsh": {\n "name": "Zoom",\n "version": "1.0.5"\n },\n "source": "./plugins/zoom",\n "category": "productivity",\n "homepage": "https://github.com/f5-sales-demo/marketplace/tree/main/plugins/zoom",\n "keywords": ["zoom", "meeting", "accessibility", "virtual-camera"],\n "tags": ["zoom", "meeting", "automation"],\n "repository": "https://github.com/f5-sales-demo/marketplace",\n "lifecycle": {\n "mode": "integrated",\n "integrations": ["zoom"],\n "requirements": ["Ubuntu 24.04", "Zoom Workplace", "Xorg plugin"],\n "setupRequired": true,\n "collectedData": [],\n "pluginDependencies": ["xorg"]\n }\n }\n ]\n}\n';
|
|
3
3
|
|
|
4
4
|
export default builtinMarketplaceSnapshot;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"repository": "https://github.com/f5-sales-demo/marketplace",
|
|
3
3
|
"sourcePath": ".xcsh-plugin/marketplace.json",
|
|
4
|
-
"commit": "
|
|
5
|
-
"sha256": "
|
|
6
|
-
"capturedAt": "2026-09-
|
|
4
|
+
"commit": "c56f8835a6a4279c3910780eb2c62a1ade6483ca",
|
|
5
|
+
"sha256": "92b3ba2adc6f7ddec3344d2eb25e415e8343c153a676488aedb72094318c1524",
|
|
6
|
+
"capturedAt": "2026-09-22T23:43:31.152Z"
|
|
7
7
|
}
|
|
@@ -174,6 +174,13 @@ export function parseMarketplaceCatalog(content: string, filePath: string): Mark
|
|
|
174
174
|
`plugins[${i}].lifecycle.setupRequired`,
|
|
175
175
|
filePath,
|
|
176
176
|
);
|
|
177
|
+
if (lifecycleRecord.setupAuthorization !== undefined) {
|
|
178
|
+
assertField(
|
|
179
|
+
lifecycleRecord.setupAuthorization === "separate" || lifecycleRecord.setupAuthorization === "install",
|
|
180
|
+
`plugins[${i}].lifecycle.setupAuthorization`,
|
|
181
|
+
filePath,
|
|
182
|
+
);
|
|
183
|
+
}
|
|
177
184
|
if (lifecycleRecord.mode === "content") {
|
|
178
185
|
assertField(
|
|
179
186
|
(lifecycleRecord.integrations as unknown[]).length === 0 &&
|
|
@@ -75,12 +75,15 @@ export interface MarketplacePluginAuthor {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
export type PluginLifecycleMode = "content" | "on_demand" | "integrated";
|
|
78
|
+
export type PluginSetupAuthorization = "separate" | "install";
|
|
78
79
|
|
|
79
80
|
export interface MarketplacePluginLifecycle {
|
|
80
81
|
mode: PluginLifecycleMode;
|
|
81
82
|
integrations: string[];
|
|
82
83
|
requirements: string[];
|
|
83
84
|
setupRequired: boolean;
|
|
85
|
+
/** Omitted is the compatibility-safe `separate` policy. */
|
|
86
|
+
setupAuthorization?: PluginSetupAuthorization;
|
|
84
87
|
collectedData: string[];
|
|
85
88
|
pluginDependencies: string[];
|
|
86
89
|
}
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import type { IntegrationHandle, IntegrationSetupPlan, IntegrationSetupStep, IntegrationSnapshot } from "./types";
|
|
2
2
|
|
|
3
|
+
export type PluginSetupTrigger = "direct-install" | "bulk-install" | "upgrade" | "cache-refresh" | "dependency-install";
|
|
4
|
+
|
|
5
|
+
export interface InstallAuthorizedSetupOptions {
|
|
6
|
+
readonly plugin: string;
|
|
7
|
+
readonly lifecycle: { readonly setupRequired: boolean; readonly setupAuthorization?: "separate" | "install" };
|
|
8
|
+
readonly trigger: PluginSetupTrigger;
|
|
9
|
+
readonly handles: readonly IntegrationHandle<unknown>[];
|
|
10
|
+
readonly run?: SetupStepRunner;
|
|
11
|
+
readonly signal?: AbortSignal;
|
|
12
|
+
}
|
|
13
|
+
|
|
3
14
|
export type SetupStepRunner = (step: IntegrationSetupStep, signal?: AbortSignal) => Promise<number>;
|
|
4
15
|
|
|
5
16
|
export function describeSetupPlan(handle: IntegrationHandle<unknown>): string {
|
|
@@ -47,3 +58,36 @@ export async function executeReviewedSetup<T>(
|
|
|
47
58
|
}
|
|
48
59
|
return handle.verifyAfterSetup(reviewedPlan, signal);
|
|
49
60
|
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Consume install-scoped setup authorization only for the reviewed root plugin.
|
|
64
|
+
* Indirect installation surfaces deliberately return without inspecting handles.
|
|
65
|
+
*/
|
|
66
|
+
export async function executeInstallAuthorizedSetup(
|
|
67
|
+
options: InstallAuthorizedSetupOptions,
|
|
68
|
+
): Promise<IntegrationSnapshot<unknown> | undefined> {
|
|
69
|
+
if (
|
|
70
|
+
options.trigger !== "direct-install" ||
|
|
71
|
+
!options.lifecycle.setupRequired ||
|
|
72
|
+
(options.lifecycle.setupAuthorization ?? "separate") !== "install"
|
|
73
|
+
)
|
|
74
|
+
return undefined;
|
|
75
|
+
const matches = options.handles.filter(
|
|
76
|
+
handle =>
|
|
77
|
+
(handle.id === options.plugin ||
|
|
78
|
+
handle.plugin === options.plugin ||
|
|
79
|
+
handle.plugin?.split("@")[0] === options.plugin) &&
|
|
80
|
+
handle.setupPlan !== undefined,
|
|
81
|
+
);
|
|
82
|
+
if (matches.length !== 1) {
|
|
83
|
+
throw new Error(
|
|
84
|
+
matches.length
|
|
85
|
+
? `Plugin ${options.plugin} registers multiple setup plans; use an explicit plugin setup command.`
|
|
86
|
+
: `Plugin ${options.plugin} authorized setup during install but no setup plan is registered.`,
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
const handle = matches[0];
|
|
90
|
+
const current = await handle.get(options.signal);
|
|
91
|
+
if (current.state === "ready") return current;
|
|
92
|
+
return executeReviewedSetup(handle, handle.setupPlan!, options.run, options.signal);
|
|
93
|
+
}
|
|
@@ -17,17 +17,17 @@ export interface BuildInfo {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export const BUILD_INFO: BuildInfo = {
|
|
20
|
-
"version": "21.
|
|
21
|
-
"commit": "
|
|
22
|
-
"shortCommit": "
|
|
20
|
+
"version": "21.39.1",
|
|
21
|
+
"commit": "687a75a39b967d8adfb41a000c7d182c5875d1c4",
|
|
22
|
+
"shortCommit": "687a75a",
|
|
23
23
|
"branch": "main",
|
|
24
|
-
"tag": "v21.
|
|
25
|
-
"commitDate": "2026-09-
|
|
26
|
-
"buildDate": "2026-09-
|
|
24
|
+
"tag": "v21.39.1",
|
|
25
|
+
"commitDate": "2026-09-23T03:08:41+00:00",
|
|
26
|
+
"buildDate": "2026-09-23T04:14:00.956Z",
|
|
27
27
|
"dirty": true,
|
|
28
28
|
"prNumber": "",
|
|
29
29
|
"repoUrl": "https://github.com/f5-sales-demo/xcsh",
|
|
30
30
|
"repoSlug": "f5-sales-demo/xcsh",
|
|
31
|
-
"commitUrl": "https://github.com/f5-sales-demo/xcsh/commit/
|
|
32
|
-
"releaseUrl": "https://github.com/f5-sales-demo/xcsh/releases/tag/v21.
|
|
31
|
+
"commitUrl": "https://github.com/f5-sales-demo/xcsh/commit/687a75a39b967d8adfb41a000c7d182c5875d1c4",
|
|
32
|
+
"releaseUrl": "https://github.com/f5-sales-demo/xcsh/releases/tag/v21.39.1"
|
|
33
33
|
};
|
|
@@ -88,9 +88,14 @@ function emptyState(initialTab: PluginTabId): PluginDashboardState {
|
|
|
88
88
|
function pluginStatus(plugin: DashboardPlugin): string {
|
|
89
89
|
if (!plugin.installed) return plugin.recommended ? "Recommended" : "Available";
|
|
90
90
|
if (plugin.hasUpdate) return plugin.updateVersion ? `Update ${plugin.updateVersion}` : "Update available";
|
|
91
|
+
if (plugin.enabled && plugin.lifecycle?.setupRequired) return "Enabled · setup managed";
|
|
91
92
|
return plugin.enabled ? "Enabled" : "Disabled";
|
|
92
93
|
}
|
|
93
94
|
|
|
95
|
+
function reviewIdentity(identity: string): string {
|
|
96
|
+
return identity.split("\0").filter(Boolean).join(" · ");
|
|
97
|
+
}
|
|
98
|
+
|
|
94
99
|
function pluginScope(plugin: DashboardPlugin): string {
|
|
95
100
|
return plugin.scope ?? (plugin.installed ? "user" : "—");
|
|
96
101
|
}
|
|
@@ -130,6 +135,7 @@ export class PluginDashboard extends Container {
|
|
|
130
135
|
#projectScopeAvailable: boolean;
|
|
131
136
|
|
|
132
137
|
onClose?: () => void;
|
|
138
|
+
onPrepareSetup?: (pluginName: string) => void;
|
|
133
139
|
onRequestRender?: () => void;
|
|
134
140
|
|
|
135
141
|
private constructor(
|
|
@@ -430,6 +436,9 @@ export class PluginDashboard extends Container {
|
|
|
430
436
|
#detailsActions(plugin: DashboardPlugin): string[] {
|
|
431
437
|
if (!plugin.installed) return ["Review installation"];
|
|
432
438
|
return [
|
|
439
|
+
...(plugin.enabled && plugin.source === "marketplace" && plugin.lifecycle?.setupRequired
|
|
440
|
+
? ["Check readiness / setup"]
|
|
441
|
+
: []),
|
|
433
442
|
plugin.enabled ? "Disable plugin" : "Enable plugin",
|
|
434
443
|
"Refresh plugin status",
|
|
435
444
|
...(plugin.hasUpdate && plugin.source === "marketplace" ? ["Upgrade plugin"] : []),
|
|
@@ -561,6 +570,9 @@ export class PluginDashboard extends Container {
|
|
|
561
570
|
if (action === "Review installation") {
|
|
562
571
|
this.#view = "install-review";
|
|
563
572
|
this.#actionIndex = 0;
|
|
573
|
+
} else if (action === "Check readiness / setup") {
|
|
574
|
+
this.#closed = true;
|
|
575
|
+
this.onPrepareSetup?.(marketplacePluginName(plugin));
|
|
564
576
|
} else if (action === "Remove plugin") {
|
|
565
577
|
this.#view = "remove-confirm";
|
|
566
578
|
this.#actionIndex = 0;
|
|
@@ -758,13 +770,17 @@ export class PluginDashboard extends Container {
|
|
|
758
770
|
if (wide) body.push(selectorRow(["Plugin", "Status", "Scope"], [inner - 33, 18, 9], false, "muted"));
|
|
759
771
|
for (let index = 0; index < this.#state.searchFiltered.length; index++) {
|
|
760
772
|
const plugin = this.#state.searchFiltered[index]!;
|
|
773
|
+
const baseName = plugin.displayName || plugin.name;
|
|
774
|
+
const duplicateName = this.#state.searchFiltered.some(
|
|
775
|
+
(candidate, candidateIndex) =>
|
|
776
|
+
candidateIndex !== index && (candidate.displayName || candidate.name) === baseName,
|
|
777
|
+
);
|
|
778
|
+
const listName = duplicateName && plugin.marketplace ? `${baseName} · ${plugin.marketplace}` : baseName;
|
|
761
779
|
const selected = index === this.#state.selectedIndex;
|
|
762
780
|
if (selected) selectedBodyIndex = body.length;
|
|
763
781
|
body.push(
|
|
764
782
|
selectorRow(
|
|
765
|
-
wide
|
|
766
|
-
? [plugin.displayName || plugin.name, pluginStatus(plugin), pluginScope(plugin)]
|
|
767
|
-
: [plugin.displayName || plugin.name],
|
|
783
|
+
wide ? [listName, pluginStatus(plugin), pluginScope(plugin)] : [listName],
|
|
768
784
|
wide ? [inner - 33, 18, 9] : [inner - 2],
|
|
769
785
|
selected,
|
|
770
786
|
plugin.installed && !plugin.enabled ? "muted" : "text",
|
|
@@ -928,7 +944,7 @@ export class PluginDashboard extends Container {
|
|
|
928
944
|
selectorRow([action], [inner - 2], index === this.#actionIndex),
|
|
929
945
|
),
|
|
930
946
|
[
|
|
931
|
-
`Target: ${review.identity
|
|
947
|
+
`Target: ${reviewIdentity(review.identity)}`,
|
|
932
948
|
`Scope: ${review.scope}`,
|
|
933
949
|
...review.changes.map(change => `${change.field}: ${change.before} → ${change.after}`),
|
|
934
950
|
review.consequence,
|
|
@@ -954,7 +970,7 @@ export class PluginDashboard extends Container {
|
|
|
954
970
|
[],
|
|
955
971
|
actions.map((action, index) => selectorRow([action], [inner - 2], index === this.#actionIndex)),
|
|
956
972
|
[
|
|
957
|
-
`Target: ${review.identity
|
|
973
|
+
`Target: ${reviewIdentity(review.identity)}`,
|
|
958
974
|
`Destination: ${this.#actionIndex === 2 ? "project scope" : this.#actionIndex === 1 ? "user scope" : "user scope (Cancel selected)"}`,
|
|
959
975
|
...review.changes.map(change => `${change.field}: ${change.before} → ${change.after}`),
|
|
960
976
|
review.consequence,
|
|
@@ -977,7 +993,7 @@ export class PluginDashboard extends Container {
|
|
|
977
993
|
[],
|
|
978
994
|
actions.map((action, index) => selectorRow([action], [inner - 2], index === this.#actionIndex)),
|
|
979
995
|
[
|
|
980
|
-
`Target: ${review.identity
|
|
996
|
+
`Target: ${reviewIdentity(review.identity)}`,
|
|
981
997
|
`Scope: ${review.scope}`,
|
|
982
998
|
...review.changes.map(change => `${change.field}: ${change.before} → ${change.after}`),
|
|
983
999
|
review.consequence,
|
|
@@ -577,7 +577,7 @@ export class SelectorController {
|
|
|
577
577
|
this.showSelector(done => {
|
|
578
578
|
dashboard.onClose = () => {
|
|
579
579
|
done();
|
|
580
|
-
void this.ctx.refreshSlashCommandState(undefined, {
|
|
580
|
+
void this.ctx.refreshSlashCommandState(undefined, { reloadExtensions: true });
|
|
581
581
|
this.ctx.ui.requestRender();
|
|
582
582
|
};
|
|
583
583
|
dashboard.onRequestRender = () => {
|
|
@@ -594,10 +594,18 @@ export class SelectorController {
|
|
|
594
594
|
initialTab,
|
|
595
595
|
);
|
|
596
596
|
this.showSelector(done => {
|
|
597
|
-
|
|
597
|
+
const close = (setupPlugin?: string) => {
|
|
598
598
|
done();
|
|
599
|
-
this.ctx.
|
|
599
|
+
void this.ctx.refreshSlashCommandState(undefined, { reloadExtensions: true }).finally(() => {
|
|
600
|
+
if (setupPlugin) this.ctx.editor.setText(`/plugin setup ${setupPlugin}`);
|
|
601
|
+
this.ctx.ui.setFocus(this.ctx.editor);
|
|
602
|
+
this.ctx.ui.requestRender();
|
|
603
|
+
});
|
|
604
|
+
};
|
|
605
|
+
dashboard.onClose = () => {
|
|
606
|
+
close();
|
|
600
607
|
};
|
|
608
|
+
dashboard.onPrepareSetup = pluginName => close(pluginName);
|
|
601
609
|
dashboard.onRequestRender = () => {
|
|
602
610
|
this.ctx.ui.requestRender();
|
|
603
611
|
};
|
|
@@ -491,13 +491,14 @@ export class InteractiveMode implements InteractiveModeContext {
|
|
|
491
491
|
}
|
|
492
492
|
|
|
493
493
|
/** Reload slash commands and autocomplete for the provided working directory. */
|
|
494
|
-
async refreshSlashCommandState(cwd?: string, options?: {
|
|
494
|
+
async refreshSlashCommandState(cwd?: string, options?: { reloadExtensions?: boolean }): Promise<void> {
|
|
495
495
|
const basePath = cwd ?? this.sessionManager.getCwd();
|
|
496
|
-
if (options?.
|
|
496
|
+
if (options?.reloadExtensions && this.session.extensionRunner) {
|
|
497
497
|
const result = await discoverAndLoadExtensions([], basePath);
|
|
498
|
-
this.session.extensionRunner.
|
|
498
|
+
this.session.extensionRunner.reloadExtensions(result.extensions, result.runtime);
|
|
499
|
+
await this.session.refreshExtensionTools();
|
|
499
500
|
for (const error of result.errors) {
|
|
500
|
-
logger.warn("Plugin
|
|
501
|
+
logger.warn("Plugin extension reload skipped an extension", error);
|
|
501
502
|
}
|
|
502
503
|
}
|
|
503
504
|
const fileCommands = await loadSlashCommands({ cwd: basePath });
|
package/src/modes/types.ts
CHANGED
|
@@ -203,7 +203,7 @@ export interface InteractiveModeContext {
|
|
|
203
203
|
executeCompaction(customInstructionsOrOptions?: string | CompactOptions, isAuto?: boolean): Promise<void>;
|
|
204
204
|
openInBrowser(urlOrPath: string): void;
|
|
205
205
|
openHttpUrl(url: string): Promise<OpenHttpUrlResult>;
|
|
206
|
-
refreshSlashCommandState(cwd?: string, options?: {
|
|
206
|
+
refreshSlashCommandState(cwd?: string, options?: { reloadExtensions?: boolean }): Promise<void>;
|
|
207
207
|
|
|
208
208
|
// Selector handling
|
|
209
209
|
showSettingsSelector(): void;
|
|
@@ -112,7 +112,7 @@ import type {
|
|
|
112
112
|
UserPromptKind,
|
|
113
113
|
} from "../extensibility/extensions";
|
|
114
114
|
import type { CompactOptions, ContextUsage } from "../extensibility/extensions/types";
|
|
115
|
-
import { ExtensionToolWrapper } from "../extensibility/extensions/wrapper";
|
|
115
|
+
import { ExtensionToolWrapper, wrapRegisteredTools } from "../extensibility/extensions/wrapper";
|
|
116
116
|
import type { HookCommandContext } from "../extensibility/hooks/types";
|
|
117
117
|
import type { Skill, SkillWarning } from "../extensibility/skills";
|
|
118
118
|
import { expandSlashCommand, type FileSlashCommand } from "../extensibility/slash-commands";
|
|
@@ -644,6 +644,7 @@ export class AgentSession {
|
|
|
644
644
|
#discoverableToolSearchIndex: DiscoverableMCPSearchIndex | null = null;
|
|
645
645
|
#selectedMCPToolNames = new Set<string>();
|
|
646
646
|
#rpcHostToolNames = new Set<string>();
|
|
647
|
+
#extensionToolNames = new Set<string>();
|
|
647
648
|
#defaultSelectedMCPServerNames = new Set<string>();
|
|
648
649
|
#defaultSelectedMCPToolNames = new Set<string>();
|
|
649
650
|
#sessionDefaultSelectedMCPToolNames = new Map<string, string[]>();
|
|
@@ -718,6 +719,9 @@ export class AgentSession {
|
|
|
718
719
|
this.#promptTemplates = config.promptTemplates ?? [];
|
|
719
720
|
this.#slashCommands = config.slashCommands ?? [];
|
|
720
721
|
this.#extensionRunner = config.extensionRunner;
|
|
722
|
+
this.#extensionToolNames = new Set(
|
|
723
|
+
config.extensionRunner?.getAllRegisteredTools?.().map(tool => tool.definition.name) ?? [],
|
|
724
|
+
);
|
|
721
725
|
this.#skills = config.skills ?? [];
|
|
722
726
|
this.#skillWarnings = config.skillWarnings ?? [];
|
|
723
727
|
this.#customCommands = config.customCommands ?? [];
|
|
@@ -3216,6 +3220,29 @@ export class AgentSession {
|
|
|
3216
3220
|
await this.#applyActiveToolsByName(nextActive, { previousSelectedMCPToolNames });
|
|
3217
3221
|
}
|
|
3218
3222
|
|
|
3223
|
+
/** Replace extension-owned tools after plugin installation, upgrade, disablement, or removal. */
|
|
3224
|
+
async refreshExtensionTools(): Promise<void> {
|
|
3225
|
+
if (!this.#extensionRunner) return;
|
|
3226
|
+
const previousActiveToolNames = this.getActiveToolNames();
|
|
3227
|
+
const previousExtensionToolNames = new Set(this.#extensionToolNames);
|
|
3228
|
+
for (const name of this.#extensionToolNames) this.#toolRegistry.delete(name);
|
|
3229
|
+
|
|
3230
|
+
const wrapped = wrapRegisteredTools(this.#extensionRunner.getAllRegisteredTools(), this.#extensionRunner).map(
|
|
3231
|
+
tool => new ExtensionToolWrapper(tool, this.#extensionRunner!) as AgentTool,
|
|
3232
|
+
);
|
|
3233
|
+
this.#extensionToolNames = new Set(wrapped.map(tool => tool.name));
|
|
3234
|
+
for (const tool of wrapped) this.#toolRegistry.set(tool.name, tool);
|
|
3235
|
+
|
|
3236
|
+
this.#setDiscoverableTools();
|
|
3237
|
+
const preserved = previousActiveToolNames.filter(
|
|
3238
|
+
name => !previousExtensionToolNames.has(name) || this.#extensionToolNames.has(name),
|
|
3239
|
+
);
|
|
3240
|
+
const newlyAvailable = wrapped
|
|
3241
|
+
.filter(tool => !tool.hidden && !previousActiveToolNames.includes(tool.name))
|
|
3242
|
+
.map(tool => tool.name);
|
|
3243
|
+
await this.#applyActiveToolsByName([...new Set([...preserved, ...newlyAvailable])]);
|
|
3244
|
+
}
|
|
3245
|
+
|
|
3219
3246
|
/**
|
|
3220
3247
|
* Replace RPC host-owned tools and refresh the active tool set before the next model call.
|
|
3221
3248
|
*/
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
MarketplaceManager,
|
|
21
21
|
} from "../extensibility/plugins/marketplace";
|
|
22
22
|
import { parseMarketplaceCatalog } from "../extensibility/plugins/marketplace/fetcher";
|
|
23
|
-
import { describeSetupPlan, executeReviewedSetup } from "../integrations/setup";
|
|
23
|
+
import { describeSetupPlan, executeInstallAuthorizedSetup, executeReviewedSetup } from "../integrations/setup";
|
|
24
24
|
import type { IntegrationHandle } from "../integrations/types";
|
|
25
25
|
import { BorderedLoader } from "../modes/components/bordered-loader";
|
|
26
26
|
import type { ActionReview } from "../modes/components/reviewed-action";
|
|
@@ -1501,7 +1501,14 @@ const BUILTIN_SLASH_COMMAND_REGISTRY: ReadonlyArray<BuiltinSlashCommandSpec> = [
|
|
|
1501
1501
|
});
|
|
1502
1502
|
if (outcome === "busy") runtime.ctx.showStatus("Another reviewed action is already open.");
|
|
1503
1503
|
else if (outcome === "succeeded") {
|
|
1504
|
-
await runtime.ctx.refreshSlashCommandState(undefined, {
|
|
1504
|
+
await runtime.ctx.refreshSlashCommandState(undefined, { reloadExtensions: true });
|
|
1505
|
+
const setupResult = await executeInstallAuthorizedSetup({
|
|
1506
|
+
plugin: name,
|
|
1507
|
+
lifecycle: prepared.target,
|
|
1508
|
+
trigger: "direct-install",
|
|
1509
|
+
handles: runtime.ctx.session?.extensionRunner?.getAllRegisteredIntegrations() ?? [],
|
|
1510
|
+
});
|
|
1511
|
+
if (setupResult) await personProfileService.reconcileFromCollectors(undefined, 0);
|
|
1505
1512
|
showPluginStatus(t("commands.plugin.installed", { name, marketplace }));
|
|
1506
1513
|
} else if (outcome === "unresolved")
|
|
1507
1514
|
runtime.ctx.showError("Plugin installation remains unresolved; retry from a fresh review.");
|
|
@@ -1528,7 +1535,7 @@ const BUILTIN_SLASH_COMMAND_REGISTRY: ReadonlyArray<BuiltinSlashCommandSpec> = [
|
|
|
1528
1535
|
});
|
|
1529
1536
|
if (outcome === "busy") runtime.ctx.showStatus("Another reviewed action is already open.");
|
|
1530
1537
|
else if (outcome === "succeeded") {
|
|
1531
|
-
await runtime.ctx.refreshSlashCommandState(undefined, {
|
|
1538
|
+
await runtime.ctx.refreshSlashCommandState(undefined, { reloadExtensions: true });
|
|
1532
1539
|
runtime.ctx.showStatus(
|
|
1533
1540
|
t("commands.plugin.uninstalled", {
|
|
1534
1541
|
pluginId: uninstArgs.pluginId,
|
|
@@ -1567,7 +1574,7 @@ const BUILTIN_SLASH_COMMAND_REGISTRY: ReadonlyArray<BuiltinSlashCommandSpec> = [
|
|
|
1567
1574
|
});
|
|
1568
1575
|
if (outcome === "busy") runtime.ctx.showStatus("Another reviewed action is already open.");
|
|
1569
1576
|
else if (outcome === "succeeded") {
|
|
1570
|
-
await runtime.ctx.refreshSlashCommandState(undefined, {
|
|
1577
|
+
await runtime.ctx.refreshSlashCommandState(undefined, { reloadExtensions: true });
|
|
1571
1578
|
runtime.ctx.showStatus(
|
|
1572
1579
|
isEnable
|
|
1573
1580
|
? t("commands.plugin.enabled", { pluginId: parsed.pluginId })
|
|
@@ -1603,7 +1610,7 @@ const BUILTIN_SLASH_COMMAND_REGISTRY: ReadonlyArray<BuiltinSlashCommandSpec> = [
|
|
|
1603
1610
|
});
|
|
1604
1611
|
if (outcome === "busy") runtime.ctx.showStatus("Another reviewed action is already open.");
|
|
1605
1612
|
else if (outcome === "succeeded") {
|
|
1606
|
-
await runtime.ctx.refreshSlashCommandState(undefined, {
|
|
1613
|
+
await runtime.ctx.refreshSlashCommandState(undefined, { reloadExtensions: true });
|
|
1607
1614
|
showPluginStatus(
|
|
1608
1615
|
t("commands.plugin.upgraded", {
|
|
1609
1616
|
pluginId: upArgs.pluginId,
|
|
@@ -1633,7 +1640,7 @@ const BUILTIN_SLASH_COMMAND_REGISTRY: ReadonlyArray<BuiltinSlashCommandSpec> = [
|
|
|
1633
1640
|
else if (outcome === "unresolved")
|
|
1634
1641
|
runtime.ctx.showError("Plugin upgrades remain unresolved; retry from a fresh review.");
|
|
1635
1642
|
else if (outcome === "succeeded" && result) {
|
|
1636
|
-
await runtime.ctx.refreshSlashCommandState(undefined, {
|
|
1643
|
+
await runtime.ctx.refreshSlashCommandState(undefined, { reloadExtensions: true });
|
|
1637
1644
|
const lines = result.completed.map(
|
|
1638
1645
|
update => ` ${update.pluginId} [${update.scope}]: ${update.from} -> ${update.to}`,
|
|
1639
1646
|
);
|
|
@@ -1812,7 +1819,7 @@ const BUILTIN_SLASH_COMMAND_REGISTRY: ReadonlyArray<BuiltinSlashCommandSpec> = [
|
|
|
1812
1819
|
|
|
1813
1820
|
pluginMetadataRefreshes.add(runtime.ctx);
|
|
1814
1821
|
runtime.ctx.showStatus(
|
|
1815
|
-
"Refreshing plugin metadata and
|
|
1822
|
+
"Refreshing plugin metadata and extension registrations… Running plugin processes will not be restarted.",
|
|
1816
1823
|
);
|
|
1817
1824
|
try {
|
|
1818
1825
|
// Invalidate the fs content cache for all registry files so
|
|
@@ -1823,9 +1830,9 @@ const BUILTIN_SLASH_COMMAND_REGISTRY: ReadonlyArray<BuiltinSlashCommandSpec> = [
|
|
|
1823
1830
|
const projectPath = await resolveActiveProjectRegistryPath(runtime.ctx.sessionManager.getCwd());
|
|
1824
1831
|
if (projectPath) invalidateFsCache(projectPath);
|
|
1825
1832
|
clearXcshPluginRootsCache();
|
|
1826
|
-
await runtime.ctx.refreshSlashCommandState(undefined, {
|
|
1833
|
+
await runtime.ctx.refreshSlashCommandState(undefined, { reloadExtensions: true });
|
|
1827
1834
|
runtime.ctx.showStatus(
|
|
1828
|
-
"Plugin metadata and
|
|
1835
|
+
"Plugin metadata and extension registrations refreshed. Commands, integrations, profile collectors, hooks, tools, skills, agents, advisories, and MCP metadata now use the latest discovered files. Running plugin processes were not restarted.",
|
|
1829
1836
|
);
|
|
1830
1837
|
} catch (error) {
|
|
1831
1838
|
const message = error instanceof Error ? error.message : String(error);
|
|
@@ -28,6 +28,8 @@ export interface PreparedPluginInstall {
|
|
|
28
28
|
force: boolean;
|
|
29
29
|
catalogRevision: string;
|
|
30
30
|
dependencyPlanRevision: string;
|
|
31
|
+
setupRequired: boolean;
|
|
32
|
+
setupAuthorization: "separate" | "install";
|
|
31
33
|
};
|
|
32
34
|
warnings: string[];
|
|
33
35
|
}
|
|
@@ -211,10 +213,27 @@ export async function preparePluginInstall(
|
|
|
211
213
|
before: "None",
|
|
212
214
|
after: dependencyPlan.map(item => `${item.pluginId}@${item.version}`).join(" -> "),
|
|
213
215
|
},
|
|
216
|
+
{
|
|
217
|
+
field: "Setup authorization",
|
|
218
|
+
before: "Not granted",
|
|
219
|
+
after:
|
|
220
|
+
catalog.lifecycle.setupAuthorization === "install"
|
|
221
|
+
? "Run the installed plugin's declared setup plan"
|
|
222
|
+
: "Require a separate setup review",
|
|
223
|
+
},
|
|
214
224
|
],
|
|
215
|
-
consequence: `${force ? "Reinstalls" : "Installs"} this exact catalog entry and writes the ${scope} registry. Lifecycle: ${catalog.lifecycle.mode}; setup ${catalog.lifecycle.setupRequired ? "required" : "not required"}. ${preview.failed.length ? `The preview used last-known data for ${preview.failed.join(", ")}; confirmation will require a fresh catalog.` : "The catalog preview is current."} --force controls replacement only; this review is still required.`,
|
|
225
|
+
consequence: `${force ? "Reinstalls" : "Installs"} this exact catalog entry and writes the ${scope} registry. Lifecycle: ${catalog.lifecycle.mode}; setup ${catalog.lifecycle.setupRequired ? "required" : "not required"}. ${catalog.lifecycle.setupRequired && catalog.lifecycle.setupAuthorization === "install" ? "Confirming this direct install authorizes its declared setup plan without a second prompt. " : ""}${preview.failed.length ? `The preview used last-known data for ${preview.failed.join(", ")}; confirmation will require a fresh catalog.` : "The catalog preview is current."} --force controls replacement only; this review is still required.`,
|
|
226
|
+
},
|
|
227
|
+
target: {
|
|
228
|
+
name,
|
|
229
|
+
marketplace,
|
|
230
|
+
scope,
|
|
231
|
+
force,
|
|
232
|
+
catalogRevision,
|
|
233
|
+
dependencyPlanRevision,
|
|
234
|
+
setupRequired: catalog.lifecycle.setupRequired,
|
|
235
|
+
setupAuthorization: catalog.lifecycle.setupAuthorization ?? "separate",
|
|
216
236
|
},
|
|
217
|
-
target: { name, marketplace, scope, force, catalogRevision, dependencyPlanRevision },
|
|
218
237
|
warnings: preview.failed.map(source => `Using last-known catalog data for ${source}.`),
|
|
219
238
|
};
|
|
220
239
|
}
|