feat(projects): add interactive AI app scaffold skill

This commit is contained in:
2026-09-04 20:36:28 +08:00
parent 336e0bb0ca
commit 959b6333b5
40 changed files with 2647 additions and 65 deletions

View File

@@ -180,6 +180,7 @@ function diagnosticPathAliases(value: string | undefined): string[] {
export function buildPiWorkerEnvironment(
configDir: string,
executablePath: string,
overlay: NodeJS.ProcessEnv = {},
inherited: NodeJS.ProcessEnv = process.env,
): NodeJS.ProcessEnv {
@@ -196,6 +197,7 @@ export function buildPiWorkerEnvironment(
return {
...env,
...overlay,
MAKELORE_NODE_EXECUTABLE: executablePath,
ELECTRON_RUN_AS_NODE: '1',
PI_CODING_AGENT_DIR: configDir,
PI_OFFLINE: '1',
@@ -335,7 +337,11 @@ export class PiWorkerProcess {
[this.options.cliPath, ...args],
{
cwd: this.options.cwd,
env: buildPiWorkerEnvironment(this.options.configDir, this.options.env),
env: buildPiWorkerEnvironment(
this.options.configDir,
this.options.executablePath,
this.options.env,
),
stdio: ['pipe', 'pipe', 'pipe'],
windowsHide: true,
detached: platform() !== 'win32',