create-local-voice-agent 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/scaffold.js
CHANGED
|
@@ -2,6 +2,7 @@ import fs from 'node:fs';
|
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import { fileURLToPath } from 'node:url';
|
|
4
4
|
import ejs from 'ejs';
|
|
5
|
+
import os from 'node:os';
|
|
5
6
|
|
|
6
7
|
const __filename = fileURLToPath(import.meta.url);
|
|
7
8
|
const __dirname = path.dirname(__filename);
|
|
@@ -60,6 +61,8 @@ export async function scaffold({
|
|
|
60
61
|
|
|
61
62
|
fs.mkdirSync(projectDir, { recursive: true });
|
|
62
63
|
|
|
64
|
+
const cpuLimit = Math.min(10, os.cpus().length);
|
|
65
|
+
|
|
63
66
|
const data = {
|
|
64
67
|
projectName,
|
|
65
68
|
llmProvider,
|
|
@@ -68,6 +71,7 @@ export async function scaffold({
|
|
|
68
71
|
modelName,
|
|
69
72
|
language,
|
|
70
73
|
ollamaIp,
|
|
74
|
+
cpuLimit,
|
|
71
75
|
};
|
|
72
76
|
|
|
73
77
|
// Render root-level templates
|