From 4c48f8f17d500b53febd1ec137c05555f33e72da Mon Sep 17 00:00:00 2001 From: Codex Date: Thu, 9 Jul 2026 11:46:22 +0200 Subject: [PATCH] fix: clear remaining yaml target naming residuals --- config/cicd/targets.yaml | 4 +- ...J2026-01060307-control-plane-modularity.md | 4 +- scripts/src/ci/runner-preflight.ts | 2 +- scripts/src/help.ts | 56 +++++++++---------- scripts/src/hwlab-node-control-plane.ts | 34 +++++------ scripts/src/hwlab-node-help.ts | 56 +++++++++---------- scripts/src/hwlab-test-accounts.ts | 8 +-- 7 files changed, 82 insertions(+), 82 deletions(-) diff --git a/config/cicd/targets.yaml b/config/cicd/targets.yaml index 8f8bd035..96b8e8ff 100644 --- a/config/cicd/targets.yaml +++ b/config/cicd/targets.yaml @@ -17,7 +17,7 @@ targets: homeDir: /home/ubuntu pipelineManifest: src/components/microservices/k3sctl-adapter/k3s/ci/unidesk-ci.pipeline.yaml codeQueueImage: unidesk-code-queue:dev - guardName: d601_native_k3s_guard + guardName: k3s_target_guard requiredNodeName: d601 artifactRegistry: configRef: config/artifact-registry.yaml#targets.D601 @@ -29,7 +29,7 @@ targets: homeDir: /root pipelineManifest: src/components/microservices/k3sctl-adapter/k3s/ci/unidesk-ci.pipeline.g14.yaml codeQueueImage: unidesk-code-queue:dev - guardName: g14_native_k3s_guard + guardName: k3s_target_guard requiredNodeLabel: key: unidesk.ai/node-id value: G14 diff --git a/project-management/PJ2026-01/specs/PJ2026-01060307-control-plane-modularity.md b/project-management/PJ2026-01/specs/PJ2026-01060307-control-plane-modularity.md index d7969a17..0fc4b054 100644 --- a/project-management/PJ2026-01/specs/PJ2026-01060307-control-plane-modularity.md +++ b/project-management/PJ2026-01/specs/PJ2026-01060307-control-plane-modularity.md @@ -37,7 +37,7 @@ ### 2.2 范围内 -- `scripts/src/hwlab-g14.ts`、`scripts/src/hwlab-node-impl.ts`、`scripts/src/platform-infra-sub2api-codex.ts`、`scripts/src/agentrun.ts`、`scripts/src/platform-infra.ts`、`scripts/src/deploy.ts`、`scripts/src/artifact-registry.ts`、`scripts/src/ci.ts` 和 `scripts/src/platform-infra-observability.ts` 的职责拆分。 +- `scripts/src/hwlab-legacy-runtime.ts`、`scripts/src/hwlab-node-impl.ts`、`scripts/src/platform-infra-sub2api-codex.ts`、`scripts/src/agentrun.ts`、`scripts/src/platform-infra.ts`、`scripts/src/deploy.ts`、`scripts/src/artifact-registry.ts`、`scripts/src/ci.ts` 和 `scripts/src/platform-infra-observability.ts` 的职责拆分。 - 领域子目录的建立、兼容 re-export 入口、机械搬迁追溯标注和 public API 保持。 - 配置解析、manifest 渲染、远端脚本、Secret/public exposure、git-mirror、source snapshot resolver、Tekton/Argo、status summary、bounded output 和低层 helper 的模块边界。 - 与 YAML-first source of truth、发布流水、源码同步、公开入口和运维监控规格的一致性。 @@ -147,7 +147,7 @@ CI/CD、YAML-first 和平台运维控制面文件超过 3000 行时,必须进 | --- | --- | --- | --- | | OPS-MOD-REQ-002 | 子目录入口 | PJ2026-01060307 控制面模块化 | [源码同步](PJ2026-010602-source-sync.md) | -拆分应建立领域子目录,例如 `scripts/src/hwlab-g14/`、`scripts/src/hwlab-node/`、`scripts/src/platform-infra/`、`scripts/src/agentrun/`、`scripts/src/deploy/`、`scripts/src/artifact-registry/`、`scripts/src/ci/` 和 `scripts/src/platform-infra-observability/`。 +拆分应建立领域子目录,例如 `scripts/src/hwlab-legacy-runtime/`、`scripts/src/hwlab-node/`、`scripts/src/platform-infra/`、`scripts/src/agentrun/`、`scripts/src/deploy/`、`scripts/src/artifact-registry/`、`scripts/src/ci/` 和 `scripts/src/platform-infra-observability/`。 原同名 `.ts` 文件必须保留 public API 兼容入口,继续支持既有 import 和 CLI 路由。入口层只做 re-export、命令分发或错误边界,不承载配置解析、远端脚本或大型渲染逻辑。 diff --git a/scripts/src/ci/runner-preflight.ts b/scripts/src/ci/runner-preflight.ts index c52691ff..581462ac 100644 --- a/scripts/src/ci/runner-preflight.ts +++ b/scripts/src/ci/runner-preflight.ts @@ -62,7 +62,7 @@ export function keyValueBool(stdout: string, key: string): boolean { export function backendCoreCiRunnerReady(result: DispatchResult): boolean { return result.ok - && keyValueBool(result.stdout, "d601_native_k3s_guard") + && keyValueBool(result.stdout, "k3s_target_guard") && keyValueBool(result.stdout, "kubectl") && keyValueBool(result.stdout, "docker") && keyValueBool(result.stdout, "namespace") diff --git a/scripts/src/help.ts b/scripts/src/help.ts index 160d74eb..75d70eb0 100644 --- a/scripts/src/help.ts +++ b/scripts/src/help.ts @@ -78,7 +78,7 @@ export function rootHelp(): unknown { { command: "code-agent-sandbox", description: "Independent Code Agent Sandbox service skeleton for adapter, mode, and credential-boundary diagnostics." }, { command: "schedule list|get|runs|run|retry-run|delete", description: "Manage backend-core scheduled tasks and run history; schedule run supports --wait-ms N and retry-run reuses the failed run's schedule." }, { command: "schedule upsert-pgdata-backup [--time HH:MM] [--remote-base /SERVER_DATA/UNIDESK_PG_DATA]", description: "Create or update the daily PGDATA physical backup task that uploads monthly rotated archives to Baidu Netdisk." }, - { command: "codex deploy [--provider-id D601] [--timeout-ms N]", description: "Disabled legacy Code Queue deploy path; use the dev-only artifact consumer instead." }, + { command: "codex deploy [--target ] [--timeout-ms N]", description: "Disabled legacy Code Queue deploy path; use the dev-only artifact consumer instead." }, { command: "codex submit|steer|resume|queue create|queue merge|move", description: "Frozen legacy Code Queue write commands; use agentrun create/apply/send for new commander work. Historical codex task/tasks/output/read/unread/queues remain available for archive troubleshooting." }, { command: "codex skills-sync --dry-run [--full]", description: "Inspect the controlled runner skills hostPath lifecycle contract without copying files, restarting services, reading secrets, or mutating live runner paths." }, { command: "codex execution-plane [--full|--raw]", description: "Read-only D601 native k3s Code Queue execution-plane inspection; compares formal deployments, deprecated Compose residuals, commit markers, pod digest, and mounted worktree HEAD." }, @@ -584,7 +584,7 @@ function devEnvHelp(): unknown { output: "json", usage: [ "bun scripts/cli.ts dev-env validate [--manifest path] [--kubectl-dry-run]", - "bun scripts/cli.ts dev-env prewarm-images [--image image] [--provider-id D601] [--no-pull] [--dry-run]", + "bun scripts/cli.ts dev-env prewarm-images [--image image] [--target ] [--no-pull] [--dry-run]", ], description: "Validate D601 unidesk-dev guardrails or prewarm foundation images into native k3s containerd.", }; @@ -595,32 +595,32 @@ function artifactRegistryHelp(): unknown { command: "artifact-registry plan|render|status|health|install|deploy-backend-core|deploy-service", output: "json", usage: [ - "bun scripts/cli.ts artifact-registry plan [--provider-id D601]", - "bun scripts/cli.ts artifact-registry render [--provider-id D601]", - "bun scripts/cli.ts artifact-registry status [--provider-id D601]", - "bun scripts/cli.ts artifact-registry health [--provider-id D601]", - "bun scripts/cli.ts artifact-registry install [--provider-id D601]", - "bun scripts/cli.ts artifact-registry deploy-service --service baidu-netdisk --commit [--dry-run] [--run-now] [--provider-id D601]", - "bun scripts/cli.ts artifact-registry deploy-service --service frontend --env prod --commit [--dry-run] [--run-now] [--provider-id D601]", - "bun scripts/cli.ts artifact-registry deploy-service --service frontend --env dev --commit [--dry-run] [--run-now] [--provider-id D601]", - "bun scripts/cli.ts artifact-registry deploy-service --env dev --service decision-center --commit [--dry-run] [--run-now] [--provider-id D601]", - "bun scripts/cli.ts artifact-registry deploy-service --env prod --service decision-center --commit [--dry-run] [--run-now] [--provider-id D601]", - "bun scripts/cli.ts artifact-registry deploy-service --env prod --service project-manager --commit [--dry-run] [--run-now] [--provider-id D601]", - "bun scripts/cli.ts artifact-registry deploy-service --env prod --service oa-event-flow --commit [--dry-run] [--run-now] [--provider-id D601]", - "bun scripts/cli.ts artifact-registry deploy-service --env prod --service code-queue-mgr --commit --dry-run [--provider-id D601]", - "bun scripts/cli.ts artifact-registry deploy-service --env prod --service todo-note --commit [--dry-run] [--run-now] [--provider-id D601]", - "bun scripts/cli.ts artifact-registry deploy-service --env dev --service findjob --commit [--dry-run] [--run-now] [--provider-id D601]", - "bun scripts/cli.ts artifact-registry deploy-service --env prod --service findjob --commit [--dry-run] [--run-now] [--provider-id D601]", - "bun scripts/cli.ts artifact-registry deploy-service --env dev --service pipeline --commit [--dry-run] [--run-now] [--provider-id D601]", - "bun scripts/cli.ts artifact-registry deploy-service --env prod --service pipeline --commit [--dry-run] [--run-now] [--provider-id D601]", - "bun scripts/cli.ts artifact-registry deploy-service --env dev --service met-nonlinear --commit --dry-run [--provider-id D601]", - "bun scripts/cli.ts artifact-registry deploy-service --env prod --service met-nonlinear --commit --dry-run [--provider-id D601]", - "bun scripts/cli.ts artifact-registry deploy-service --env prod --service k3sctl-adapter --commit --dry-run [--provider-id D601]", - "bun scripts/cli.ts artifact-registry deploy-service --env dev --service mdtodo --commit [--dry-run] [--run-now] [--provider-id D601]", - "bun scripts/cli.ts artifact-registry deploy-service --env prod --service mdtodo --commit [--dry-run] [--run-now] [--provider-id D601]", - "bun scripts/cli.ts artifact-registry deploy-service --env dev --service claudeqq --commit [--dry-run] [--run-now] [--provider-id D601]", - "bun scripts/cli.ts artifact-registry deploy-service --env prod --service claudeqq --commit [--dry-run] [--run-now] [--provider-id D601]", - "bun scripts/cli.ts artifact-registry deploy-service --env dev --service code-queue --commit --dry-run [--provider-id D601]", + "bun scripts/cli.ts artifact-registry plan [--target ]", + "bun scripts/cli.ts artifact-registry render [--target ]", + "bun scripts/cli.ts artifact-registry status [--target ]", + "bun scripts/cli.ts artifact-registry health [--target ]", + "bun scripts/cli.ts artifact-registry install [--target ]", + "bun scripts/cli.ts artifact-registry deploy-service --service baidu-netdisk --commit [--dry-run] [--run-now] [--target ]", + "bun scripts/cli.ts artifact-registry deploy-service --service frontend --env prod --commit [--dry-run] [--run-now] [--target ]", + "bun scripts/cli.ts artifact-registry deploy-service --service frontend --env dev --commit [--dry-run] [--run-now] [--target ]", + "bun scripts/cli.ts artifact-registry deploy-service --env dev --service decision-center --commit [--dry-run] [--run-now] [--target ]", + "bun scripts/cli.ts artifact-registry deploy-service --env prod --service decision-center --commit [--dry-run] [--run-now] [--target ]", + "bun scripts/cli.ts artifact-registry deploy-service --env prod --service project-manager --commit [--dry-run] [--run-now] [--target ]", + "bun scripts/cli.ts artifact-registry deploy-service --env prod --service oa-event-flow --commit [--dry-run] [--run-now] [--target ]", + "bun scripts/cli.ts artifact-registry deploy-service --env prod --service code-queue-mgr --commit --dry-run [--target ]", + "bun scripts/cli.ts artifact-registry deploy-service --env prod --service todo-note --commit [--dry-run] [--run-now] [--target ]", + "bun scripts/cli.ts artifact-registry deploy-service --env dev --service findjob --commit [--dry-run] [--run-now] [--target ]", + "bun scripts/cli.ts artifact-registry deploy-service --env prod --service findjob --commit [--dry-run] [--run-now] [--target ]", + "bun scripts/cli.ts artifact-registry deploy-service --env dev --service pipeline --commit [--dry-run] [--run-now] [--target ]", + "bun scripts/cli.ts artifact-registry deploy-service --env prod --service pipeline --commit [--dry-run] [--run-now] [--target ]", + "bun scripts/cli.ts artifact-registry deploy-service --env dev --service met-nonlinear --commit --dry-run [--target ]", + "bun scripts/cli.ts artifact-registry deploy-service --env prod --service met-nonlinear --commit --dry-run [--target ]", + "bun scripts/cli.ts artifact-registry deploy-service --env prod --service k3sctl-adapter --commit --dry-run [--target ]", + "bun scripts/cli.ts artifact-registry deploy-service --env dev --service mdtodo --commit [--dry-run] [--run-now] [--target ]", + "bun scripts/cli.ts artifact-registry deploy-service --env prod --service mdtodo --commit [--dry-run] [--run-now] [--target ]", + "bun scripts/cli.ts artifact-registry deploy-service --env dev --service claudeqq --commit [--dry-run] [--run-now] [--target ]", + "bun scripts/cli.ts artifact-registry deploy-service --env prod --service claudeqq --commit [--dry-run] [--run-now] [--target ]", + "bun scripts/cli.ts artifact-registry deploy-service --env dev --service code-queue --commit --dry-run [--target ]", ], description: "Manage the declaration, rendered files and readonly checks for the D601 host-managed CNCF Distribution artifact registry.", boundary: [ diff --git a/scripts/src/hwlab-node-control-plane.ts b/scripts/src/hwlab-node-control-plane.ts index 398190bd..aaa0c4c9 100644 --- a/scripts/src/hwlab-node-control-plane.ts +++ b/scripts/src/hwlab-node-control-plane.ts @@ -165,30 +165,30 @@ export function hwlabNodeControlPlaneInfraHelp(): Record { configPath: HWLAB_NODE_CONTROL_PLANE_CONFIG_PATH, description: "Plan/status/apply YAML-controlled HWLAB node-local k3s, CI/CD and git-mirror control-plane prerequisites. Cross-node PK01/Caddy/FRP/runtime rollout remains explicit semi-automatic CLI work.", usage: [ - "bun scripts/cli.ts hwlab nodes control-plane infra plan --node D601 --lane v03", - "bun scripts/cli.ts hwlab nodes control-plane infra status --node D601 --lane v03", - "bun scripts/cli.ts hwlab nodes control-plane infra apply --node D601 --lane v03 --dry-run", - "bun scripts/cli.ts hwlab nodes control-plane infra apply --node D601 --lane v03 --confirm", + "bun scripts/cli.ts hwlab nodes control-plane infra plan --node --lane ", + "bun scripts/cli.ts hwlab nodes control-plane infra status --node --lane ", + "bun scripts/cli.ts hwlab nodes control-plane infra apply --node --lane --dry-run", + "bun scripts/cli.ts hwlab nodes control-plane infra apply --node --lane --confirm", "bun scripts/cli.ts hwlab nodes control-plane infra k3s plan --node JD01 --lane v03", "bun scripts/cli.ts hwlab nodes control-plane infra k3s install --node JD01 --lane v03 --confirm", "bun scripts/cli.ts hwlab nodes control-plane infra k3s status --node JD01 --lane v03", - "bun scripts/cli.ts hwlab nodes control-plane infra tools-image status --node D601 --lane v03", - "bun scripts/cli.ts hwlab nodes control-plane infra tools-image build --node D601 --lane v03 --dry-run", - "bun scripts/cli.ts hwlab nodes control-plane infra tools-image build --node D601 --lane v03 --confirm", - "bun scripts/cli.ts hwlab nodes control-plane infra tools-image logs --node D601 --lane v03", + "bun scripts/cli.ts hwlab nodes control-plane infra tools-image status --node --lane ", + "bun scripts/cli.ts hwlab nodes control-plane infra tools-image build --node --lane --dry-run", + "bun scripts/cli.ts hwlab nodes control-plane infra tools-image build --node --lane --confirm", + "bun scripts/cli.ts hwlab nodes control-plane infra tools-image logs --node --lane ", "bun scripts/cli.ts hwlab nodes control-plane infra tekton status --node JD01 --lane v03", "bun scripts/cli.ts hwlab nodes control-plane infra tekton apply --node JD01 --lane v03 --dry-run", "bun scripts/cli.ts hwlab nodes control-plane infra tekton apply --node JD01 --lane v03 --confirm", "bun scripts/cli.ts hwlab nodes control-plane infra tekton logs --node JD01 --lane v03", - "bun scripts/cli.ts hwlab nodes control-plane infra argo status --node D601 --lane v03", - "bun scripts/cli.ts hwlab nodes control-plane infra argo apply --node D601 --lane v03 --dry-run", - "bun scripts/cli.ts hwlab nodes control-plane infra argo apply --node D601 --lane v03 --confirm", - "bun scripts/cli.ts hwlab nodes control-plane infra argo logs --node D601 --lane v03", - "bun scripts/cli.ts hwlab nodes control-plane infra egress-benchmark --node D601 --lane v03 --profile no-mirror --confirm", - "bun scripts/cli.ts hwlab nodes control-plane infra egress-benchmark status --node D601 --lane v03 --profile no-mirror", - "bun scripts/cli.ts hwlab nodes control-plane infra ci-build-benchmark --node D601 --lane v03 --profile no-mirror-full --confirm", - "bun scripts/cli.ts hwlab nodes control-plane infra ci-build-benchmark status --node D601 --lane v03 --profile no-mirror-full", - "bun scripts/cli.ts hwlab nodes control-plane infra ci-build-benchmark logs --node D601 --lane v03 --profile no-mirror-full", + "bun scripts/cli.ts hwlab nodes control-plane infra argo status --node --lane ", + "bun scripts/cli.ts hwlab nodes control-plane infra argo apply --node --lane --dry-run", + "bun scripts/cli.ts hwlab nodes control-plane infra argo apply --node --lane --confirm", + "bun scripts/cli.ts hwlab nodes control-plane infra argo logs --node --lane ", + "bun scripts/cli.ts hwlab nodes control-plane infra egress-benchmark --node --lane --profile no-mirror --confirm", + "bun scripts/cli.ts hwlab nodes control-plane infra egress-benchmark status --node --lane --profile no-mirror", + "bun scripts/cli.ts hwlab nodes control-plane infra ci-build-benchmark --node --lane --profile no-mirror-full --confirm", + "bun scripts/cli.ts hwlab nodes control-plane infra ci-build-benchmark status --node --lane --profile no-mirror-full", + "bun scripts/cli.ts hwlab nodes control-plane infra ci-build-benchmark logs --node --lane --profile no-mirror-full", ], g14Consistency: "D601 target fields mirror the existing G14 runtime lane control-plane vocabulary: source branch, gitops branch/path, Pipeline, PipelineRun prefix, ServiceAccount, Argo Application, and git-mirror read/write/sync/flush status concepts.", }; diff --git a/scripts/src/hwlab-node-help.ts b/scripts/src/hwlab-node-help.ts index 025e8d6b..b79d7d38 100644 --- a/scripts/src/hwlab-node-help.ts +++ b/scripts/src/hwlab-node-help.ts @@ -10,19 +10,19 @@ export function hwlabNodeHelp(): Record { description: "Node/lane oriented HWLAB runtime operations. Web probes moved to the top-level web-probe command.", configPath: hwlabRuntimeLaneConfigPath(), examples: [ - "bun scripts/cli.ts hwlab nodes control-plane infra plan --node D601 --lane v03", - "bun scripts/cli.ts hwlab nodes control-plane status --node D601 --lane v03", + "bun scripts/cli.ts hwlab nodes control-plane infra plan --node --lane ", + "bun scripts/cli.ts hwlab nodes control-plane status --node --lane ", "bun scripts/cli.ts hwlab nodes control-plane source-workspace sync --node JD01 --lane v03 --confirm", "bun scripts/cli.ts hwlab nodes control-plane cleanup-runs --node JD01 --lane v03 --min-age-minutes 30 --limit 200 --dry-run", "bun scripts/cli.ts hwlab nodes control-plane cleanup-released-pvs --node JD01 --lane v03 --limit 200 --dry-run", "bun scripts/cli.ts hwlab nodes control-plane cleanup-legacy-docker-images --node JD01 --lane v03 --dry-run", "bun scripts/cli.ts hwlab nodes control-plane cleanup-legacy-docker-registry-volume --node JD01 --lane v03 --dry-run", - "bun scripts/cli.ts hwlab nodes git-mirror status --node G14 --lane v03", - "bun scripts/cli.ts hwlab nodes hwpod-preinstall plan --node D601 --lane v03 --dry-run", + "bun scripts/cli.ts hwlab nodes git-mirror status --node --lane ", + "bun scripts/cli.ts hwlab nodes hwpod-preinstall plan --node --lane --dry-run", "bun scripts/cli.ts hwlab nodes fake-model-provider plan --node D518 --lane v03 --provider fake-echo", - "bun scripts/cli.ts hwlab nodes secret status --node G14 --lane v03 --name ", - "bun scripts/cli.ts hwlab nodes test-accounts status --node D601 --lane v03", - "bun scripts/cli.ts hwlab nodes observability performance-summary --node D601 --lane v03", + "bun scripts/cli.ts hwlab nodes secret status --node --lane --name ", + "bun scripts/cli.ts hwlab nodes test-accounts status --node --lane ", + "bun scripts/cli.ts hwlab nodes observability performance-summary --node --lane ", "bun scripts/cli.ts web-probe --help", ], actions: { @@ -51,14 +51,14 @@ export function hwlabNodeWebProbeHelp(): Record { command: "web-probe", description: "Run target node/lane HWLAB Cloud Web probes with YAML-selected origin and one-shot bootstrap Web credentials.", examples: [ - "bun scripts/cli.ts web-probe run --node D601 --lane v03 --wait-messages-ms 1000", - "bun scripts/cli.ts web-probe run --node D601 --lane v03 --fresh-session --message 'ping'", - "bun scripts/cli.ts web-probe opencode-smoke --node D601 --lane v03 --message 'hi'", - "bun scripts/cli.ts web-probe script --node D601 --lane v03 --script-file .state/probes/workbench.mjs", - "bun scripts/cli.ts web-probe screenshot --node D601 --lane v03 --url https://monitor.pikapython.com --viewport 1440x900", - "bun scripts/cli.ts web-probe screenshot --node D601 --lane v03 --url https://monitor.pikapython.com --viewport 390x844 --name monitor-mobile.png", - "bun scripts/cli.ts web-probe observe start --node D601 --lane v03 --target-path /workbench --sample-interval-ms 5000", - "bun scripts/cli.ts web-probe observe start --node D601 --lane v03 --target-path /projects/mdtodo --sample-interval-ms 5000", + "bun scripts/cli.ts web-probe run --node --lane --wait-messages-ms 1000", + "bun scripts/cli.ts web-probe run --node --lane --fresh-session --message 'ping'", + "bun scripts/cli.ts web-probe opencode-smoke --node --lane --message 'hi'", + "bun scripts/cli.ts web-probe script --node --lane --script-file .state/probes/workbench.mjs", + "bun scripts/cli.ts web-probe screenshot --node --lane --url https://monitor.pikapython.com --viewport 1440x900", + "bun scripts/cli.ts web-probe screenshot --node --lane --url https://monitor.pikapython.com --viewport 390x844 --name monitor-mobile.png", + "bun scripts/cli.ts web-probe observe start --node --lane --target-path /workbench --sample-interval-ms 5000", + "bun scripts/cli.ts web-probe observe start --node --lane --target-path /projects/mdtodo --sample-interval-ms 5000", "bun scripts/cli.ts web-probe observe command webobs-xxxx --type sendPrompt --text 'ping'", "bun scripts/cli.ts web-probe observe command webobs-xxxx --type closeMdtodoSourceConfig", "bun scripts/cli.ts web-probe observe command webobs-xxxx --type selectMdtodoFile --filename 20260609_频率判断_用户反馈.md", @@ -76,18 +76,18 @@ export function hwlabNodeWebProbeHelp(): Record { "bun scripts/cli.ts web-probe observe analyze webobs-xxxx", "bun scripts/cli.ts web-probe observe gc --node JD01 --lane v03 --dry-run", "bun scripts/cli.ts web-probe observe gc --node JD01 --lane v03 --keep-hours 24 --confirm", - "bun scripts/cli.ts web-probe sentinel plan --node D601 --lane v03 --dry-run", - "bun scripts/cli.ts web-probe sentinel plan --node D601 --lane v03 --sentinel workbench-auth-session-switch-2users", + "bun scripts/cli.ts web-probe sentinel plan --node --lane --dry-run", + "bun scripts/cli.ts web-probe sentinel plan --node --lane --sentinel workbench-auth-session-switch-2users", "bun scripts/cli.ts platform-infra pipelines-as-code closeout --target JD01 --consumer sentinel-jd01-v03 --source-commit --wait", "bun scripts/cli.ts platform-infra pipelines-as-code status --target JD01 --consumer sentinel-jd01-v03", - "bun scripts/cli.ts web-probe sentinel dashboard verify --node D601 --lane v03 --sentinel workbench-dsflash-go-tool-call-10x", - "bun scripts/cli.ts web-probe sentinel dashboard screenshot --node D601 --lane v03 --sentinel workbench-auth-session-switch-2users", + "bun scripts/cli.ts web-probe sentinel dashboard verify --node --lane --sentinel workbench-dsflash-go-tool-call-10x", + "bun scripts/cli.ts web-probe sentinel dashboard screenshot --node --lane --sentinel workbench-auth-session-switch-2users", "bun scripts/cli.ts web-probe sentinel dashboard trigger --node JD01 --lane v03 --sentinel jd01-web-probe-sentinel", "bun scripts/cli.ts web-probe sentinel inspect-url 'https://monitor.pikapython.com/?run=sentinel-run-xxxx'", "bun scripts/cli.ts web-probe sentinel inspect-id webobs-xxxx --node JD01 --lane v03 --sentinel jd01-web-probe-sentinel", - "bun scripts/cli.ts web-probe sentinel report --node D601 --lane v03 --sentinel workbench-dsflash-go-tool-call-10x --latest --view summary --raw", - "bun scripts/cli.ts web-probe sentinel report --node D601 --lane v03 --sentinel workbench-dsflash-go-tool-call-10x --latest --view summary --full", - "bun scripts/cli.ts web-probe sentinel maintenance stop --node D601 --lane v03 --sentinel workbench-dsflash-go-tool-call-10x --confirm --wait --release-id ", + "bun scripts/cli.ts web-probe sentinel report --node --lane --sentinel workbench-dsflash-go-tool-call-10x --latest --view summary --raw", + "bun scripts/cli.ts web-probe sentinel report --node --lane --sentinel workbench-dsflash-go-tool-call-10x --latest --view summary --full", + "bun scripts/cli.ts web-probe sentinel maintenance stop --node --lane --sentinel workbench-dsflash-go-tool-call-10x --confirm --wait --release-id ", ], actions: { run: "Run the repo-owned scripts/web-live-dom-probe.mjs helper.", @@ -122,12 +122,12 @@ export function hwlabNodeObservabilityHelp(): Record { description: "YAML-first node/lane observability control for HWLAB Workbench metrics. Runtime is queried only for presence, boundary, and summary evidence.", configPath: hwlabRuntimeLaneConfigPath(), examples: [ - "bun scripts/cli.ts hwlab nodes observability plan --node D601 --lane v03", - "bun scripts/cli.ts hwlab nodes observability apply --node D601 --lane v03 --dry-run", - "bun scripts/cli.ts hwlab nodes observability apply --node D601 --lane v03 --confirm", - "bun scripts/cli.ts hwlab nodes observability status --node D601 --lane v03", - "bun scripts/cli.ts hwlab nodes observability workbench-summary --node D601 --lane v03", - "bun scripts/cli.ts hwlab nodes observability performance-summary --node D601 --lane v03", + "bun scripts/cli.ts hwlab nodes observability plan --node --lane ", + "bun scripts/cli.ts hwlab nodes observability apply --node --lane --dry-run", + "bun scripts/cli.ts hwlab nodes observability apply --node --lane --confirm", + "bun scripts/cli.ts hwlab nodes observability status --node --lane ", + "bun scripts/cli.ts hwlab nodes observability workbench-summary --node --lane ", + "bun scripts/cli.ts hwlab nodes observability performance-summary --node --lane ", ], actions: { plan: "Render the YAML-declared collection mode, scrape target, boundary, and required Workbench metric series.", diff --git a/scripts/src/hwlab-test-accounts.ts b/scripts/src/hwlab-test-accounts.ts index 1350c6b5..74181f17 100644 --- a/scripts/src/hwlab-test-accounts.ts +++ b/scripts/src/hwlab-test-accounts.ts @@ -120,10 +120,10 @@ export function hwlabTestAccountsHelp(): Record { description: "Inspect or sync UniDesk YAML-declared HWLAB test/admin accounts without printing API keys or database URLs.", configPath: defaultConfigPath, examples: [ - "bun scripts/cli.ts hwlab nodes test-accounts status --node D601 --lane v03", - "bun scripts/cli.ts hwlab nodes test-accounts sync --node D601 --lane v03 --confirm", - "bun scripts/cli.ts hwlab nodes test-accounts host-env status --node D601 --lane v03", - "bun scripts/cli.ts hwlab nodes test-accounts host-env sync --node D601 --lane v03 --confirm", + "bun scripts/cli.ts hwlab nodes test-accounts status --node --lane ", + "bun scripts/cli.ts hwlab nodes test-accounts sync --node --lane --confirm", + "bun scripts/cli.ts hwlab nodes test-accounts host-env status --node --lane ", + "bun scripts/cli.ts hwlab nodes test-accounts host-env sync --node --lane --confirm", ], valuesRedacted: true, };