aegisai-harness 0.67.3 → 0.67.6
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 +1 -1
- package/packaging/build.ps1 +7 -0
- package/packaging/windows/installer.iss +2 -2
- package/src/index.js +6 -1
package/package.json
CHANGED
package/packaging/build.ps1
CHANGED
|
@@ -13,6 +13,13 @@ Write-Host "Building AegisAi Harness v$Version" -ForegroundColor Cyan
|
|
|
13
13
|
|
|
14
14
|
New-Item -ItemType Directory -Force -Path dist | Out-Null
|
|
15
15
|
|
|
16
|
+
# Update version in installer.iss
|
|
17
|
+
$issPath = "packaging\windows\installer.iss"
|
|
18
|
+
$iss = Get-Content $issPath -Raw
|
|
19
|
+
$iss = $iss -replace 'AppVersion=\d+\.\d+\.\d+', "AppVersion=$Version"
|
|
20
|
+
$iss = $iss -replace 'OutputBaseFilename=AegisAi-Harness-[\d.]+-Setup', "OutputBaseFilename=AegisAi-Harness-$Version-Setup"
|
|
21
|
+
Set-Content $issPath $iss
|
|
22
|
+
|
|
16
23
|
if ($Binary -or (-not $Installer)) {
|
|
17
24
|
Write-Host "Building standalone binary..." -ForegroundColor Yellow
|
|
18
25
|
npx --yes @yao-pkg/pkg@5 src/index.js --targets node22-win-x64 --output "dist\aegisai-harness-$Version.exe"
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
; Build with: iscc packaging\windows\installer.iss
|
|
3
3
|
[Setup]
|
|
4
4
|
AppName=AegisAi Harness
|
|
5
|
-
AppVersion=0.
|
|
5
|
+
AppVersion=0.67.3
|
|
6
6
|
AppPublisher=AegisAi
|
|
7
7
|
AppPublisherURL=https://github.com/user6811992/aegisai-harness
|
|
8
8
|
DefaultDirName={autopf}\AegisAiHarness
|
|
9
9
|
DefaultGroupName=AegisAi Harness
|
|
10
10
|
OutputDir=..\..\dist
|
|
11
|
-
OutputBaseFilename=AegisAi-Harness-0.
|
|
11
|
+
OutputBaseFilename=AegisAi-Harness-0.67.3-Setup
|
|
12
12
|
Compression=lzma2
|
|
13
13
|
SolidCompression=yes
|
|
14
14
|
PrivilegesRequired=lowest
|
package/src/index.js
CHANGED
|
@@ -27,6 +27,11 @@ function askApproval(name, args) {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
async function main() {
|
|
30
|
+
const args = process.argv.slice(2);
|
|
31
|
+
if (args.includes('--version') || args.includes('-v')) {
|
|
32
|
+
console.log(require('../package.json').version);
|
|
33
|
+
process.exit(0);
|
|
34
|
+
}
|
|
30
35
|
await detectBackend();
|
|
31
36
|
logger.info('backend', { type: getType(), url: getUrl() });
|
|
32
37
|
try {
|
|
@@ -452,7 +457,7 @@ async function main() {
|
|
|
452
457
|
}
|
|
453
458
|
|
|
454
459
|
if (args.length === 0 || replFlag) {
|
|
455
|
-
console.log('AegisAi Harness
|
|
460
|
+
console.log('AegisAi Harness v' + require('../package.json').version + ' REPL. Type /exit to quit, /help for commands.');
|
|
456
461
|
const rl = readline.createInterface({ input: process.stdin, output: process.stdout, prompt: 'harness> ' });
|
|
457
462
|
let model = process.env.AEGISAI_MODEL || 'llama3.2:3b';
|
|
458
463
|
let root = process.cwd();
|