feat: add Pi provider managed resources

This commit is contained in:
2026-08-22 21:48:00 +08:00
parent 81d8ad1b6b
commit 161f3f471b
31 changed files with 1581 additions and 40 deletions

View File

@@ -10,6 +10,7 @@ import {
runProbe,
validatePiIdentity,
} from './probe-pi-runtime.mjs';
import { runLocalProviderContracts } from './probe-pi-provider-contracts.mjs';
import {
PI_RUNTIME_MANIFEST,
defaultPiBundleTarget,
@@ -305,6 +306,15 @@ export async function runPackagedProbe(options, projectRoot = process.cwd()) {
cliPath,
artifactLabel: ARTIFACT_LABEL,
}, resolvedProjectRoot);
const providerContracts = await runLocalProviderContracts({
...options,
reportPath: undefined,
stage: false,
keepStage: false,
electronExecutablePath: executable,
cliPath,
artifactLabel: ARTIFACT_LABEL,
}, resolvedProjectRoot);
const report = {
schemaVersion: 1,
generatedAt: new Date().toISOString(),
@@ -320,6 +330,7 @@ export async function runPackagedProbe(options, projectRoot = process.cwd()) {
stagedClosure,
packagedClosure,
runtime,
providerContracts,
result: runtime.result,
decision: 'incomplete',
};