feat: add platform-infra kafka event bus poc

This commit is contained in:
Codex
2026-06-28 09:28:38 +00:00
parent 0eb700f07e
commit e8ca6ff009
5 changed files with 1358 additions and 2 deletions
File diff suppressed because it is too large Load Diff
+7 -2
View File
@@ -314,7 +314,7 @@ export interface ManagedResourceCleanupPlan {
export function platformInfraHelp(): unknown {
const target = sub2ApiHelpTargetSummary();
return {
command: "platform-infra sub2api|langbot|n8n|wechat-archive|observability|secret-plane ...",
command: "platform-infra sub2api|langbot|n8n|wechat-archive|observability|secret-plane|kafka ...",
output: "json",
usage: [
"bun scripts/cli.ts platform-infra sub2api plan [--target G14|D601]",
@@ -365,8 +365,13 @@ export function platformInfraHelp(): unknown {
"bun scripts/cli.ts platform-infra secret-plane apply --target D518 --confirm",
"bun scripts/cli.ts platform-infra secret-plane status --target D518",
"bun scripts/cli.ts platform-infra secret-plane validate --target D518",
"bun scripts/cli.ts platform-infra kafka plan --target D518",
"bun scripts/cli.ts platform-infra kafka apply --target D518 --dry-run",
"bun scripts/cli.ts platform-infra kafka apply --target D518 --confirm",
"bun scripts/cli.ts platform-infra kafka status --target D518",
"bun scripts/cli.ts platform-infra kafka validate --target D518",
],
description: "Operate YAML-controlled platform-infra services such as Sub2API, LangBot, n8n, WeChat archive workflows, OpenTelemetry tracing and the independent target-scoped secret plane. Public services use PK01 Caddy+FRP rather than Kubernetes Ingress, NodePort, or LoadBalancer.",
description: "Operate YAML-controlled platform-infra services such as Sub2API, LangBot, n8n, WeChat archive workflows, OpenTelemetry tracing, the independent target-scoped secret plane, and the D518 Kafka event bus. Public services use PK01 Caddy+FRP rather than Kubernetes Ingress, NodePort, or LoadBalancer.",
target,
codexPool: {
usage: [
+4
View File
@@ -60,6 +60,10 @@ export async function runPlatformInfraCommand(config: UniDeskConfig, args: strin
const { runSecretPlaneCommand } = await import("../platform-infra-secret-plane");
return await runSecretPlaneCommand(config, args.slice(1));
}
if (target === "kafka") {
const { runPlatformInfraKafkaCommand } = await import("../platform-infra-kafka");
return await runPlatformInfraKafkaCommand(config, args.slice(1));
}
if (target !== "sub2api") return unsupported(args);
if (action === "plan" || action === undefined) {
const planArgs = args.slice(2);