fix: 收敛 PaC 自动交付提示
This commit is contained in:
@@ -37,6 +37,7 @@ import { parseJsonObject, record, shellQuote, statusText } from "./utils";
|
||||
import { webObserveTable } from "./web-observe-render";
|
||||
import { nodeRuntimeGitMirrorTarget, printNodeRuntimeTriggerProgress, sleepSync } from "./web-probe";
|
||||
import { webObserveShort, webObserveText } from "./web-probe-observe";
|
||||
import { hwlabNodeDeliveryAuthority, hwlabNodeDeliveryNext } from "./delivery-authority";
|
||||
|
||||
type NodeScopedDelegatedOptions = ReturnType<typeof parseNodeScopedDelegatedOptions>;
|
||||
export type NodeRuntimeGitMirrorRunOptions = {
|
||||
@@ -61,8 +62,20 @@ export function nodeRuntimeExternalPostgresSecretRows(secrets: Record<string, un
|
||||
}
|
||||
|
||||
export function nodeRuntimeGitMirrorStatus(scoped: ReturnType<typeof parseNodeScopedDelegatedOptions>): Record<string, unknown> {
|
||||
if (scoped.spec.sourceAuthority?.mode === "giteaSnapshot") return nodeRuntimeGiteaSourceStatus(scoped);
|
||||
return nodeRuntimeLegacyGitMirrorStatus(scoped);
|
||||
const result = scoped.spec.sourceAuthority?.mode === "giteaSnapshot"
|
||||
? nodeRuntimeGiteaSourceStatus(scoped)
|
||||
: nodeRuntimeLegacyGitMirrorStatus(scoped);
|
||||
const deliveryAuthority = hwlabNodeDeliveryAuthority(scoped);
|
||||
if (deliveryAuthority.kind === "legacy-manual") return { ...result, deliveryAuthority };
|
||||
return {
|
||||
...result,
|
||||
deliveryAuthority,
|
||||
next: hwlabNodeDeliveryNext(
|
||||
scoped,
|
||||
deliveryAuthority,
|
||||
`bun scripts/cli.ts hwlab nodes control-plane status --node ${scoped.node} --lane ${scoped.lane} --full`,
|
||||
),
|
||||
};
|
||||
}
|
||||
|
||||
function nodeRuntimeGiteaSourceStatus(scoped: ReturnType<typeof parseNodeScopedDelegatedOptions>): Record<string, unknown> {
|
||||
|
||||
Reference in New Issue
Block a user