feat(projects): add interactive AI app scaffold skill
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user