aiden-runtime 3.18.0 → 3.19.4

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiden-runtime",
3
- "version": "3.18.0",
3
+ "version": "3.19.4",
4
4
  "description": "Autonomous AI Operating System — Local, Private, Free. Runs on your machine with Ollama.",
5
5
  "author": "Taracod <hello@taracod.com>",
6
6
  "license": "AGPL-3.0-only",
@@ -34,6 +34,7 @@
34
34
  "dist-bundle/index.js",
35
35
  "config/",
36
36
  "scripts/postinstall.js",
37
+ "scripts/uninstall.ps1",
37
38
  "README.md",
38
39
  "LICENSE"
39
40
  ],
@@ -66,7 +67,13 @@
66
67
  "test:chat": "npx ts-node tests/e2e/masterTestSuite.ts --part3",
67
68
  "test:reliability": "npx ts-node tests/reliability-sprint.ts",
68
69
  "test:full": "npx ts-node tests/full-suite.ts",
69
- "test:audit": "npx ts-node tests/prompt_11.ts && npx ts-node tests/prompt_12.ts && npx ts-node tests/prompt_13.ts && npx ts-node tests/prompt_r1.ts && npx ts-node tests/prompt_15.ts && npx ts-node tests/prompt_15_1.ts && npx ts-node tests/prompt_14.ts && npx ts-node tests/prompt_r2.ts && npx ts-node tests/prompt_r3.ts && npx ts-node tests/prompt_16.ts && npx ts-node tests/prompt_17.ts && npx ts-node tests/prompt_18.ts && npx ts-node tests/prompt_19.ts && npx ts-node tests/prompt_20.ts && npx ts-node tests/prompt_21.ts && npx ts-node tests/prompt_22.ts && npx ts-node tests/prompt_23.ts && npx ts-node tests/prompt_release_v3_6.ts && npx ts-node tests/prompt_timer.ts && npx ts-node tests/prompt_speed.ts && npx ts-node tests/prompt_provider.ts && npx ts-node tests/prompt_streaming.ts && npx ts-node tests/prompt_cli_prod.ts",
70
+ "test:audit": "npx ts-node scripts/test-suite.ts",
71
+ "test:audit:full": "npx ts-node scripts/test-suite.ts --full",
72
+ "test:audit:api": "npx ts-node scripts/test-suite.ts --api",
73
+ "test:audit:behavioral": "npx ts-node scripts/test-suite/behavioral.ts",
74
+ "test:helper:clean": "npx ts-node scripts/test-suite/manual-helpers.ts clean",
75
+ "test:helper:status": "npx ts-node scripts/test-suite/manual-helpers.ts status",
76
+ "test:helper:memory": "npx ts-node scripts/test-suite/manual-helpers.ts memory",
70
77
  "cli": "npx ts-node cli/aiden.ts",
71
78
  "uninstall": "powershell -ExecutionPolicy Bypass -File scripts\\uninstall.ps1",
72
79
  "livepulse": "powershell -ExecutionPolicy Bypass -File scripts\\livepulse.ps1",
@@ -0,0 +1,147 @@
1
+ # =============================================================
2
+ # Aiden — Windows Uninstaller
3
+ # =============================================================
4
+ # Usage (one-liner):
5
+ # powershell -ExecutionPolicy Bypass -File scripts\uninstall.ps1
6
+ #
7
+ # Or via npm:
8
+ # npm run uninstall
9
+ #
10
+ # Or via Aiden CLI (inside chat):
11
+ # /uninstall
12
+ # =============================================================
13
+
14
+ param(
15
+ [switch]$KeepWorkspace, # keep workspace/ folder (conversations, memory, skills)
16
+ [switch]$KeepConfig, # keep %APPDATA%\aiden (config, browser profiles)
17
+ [switch]$Yes # skip all confirmation prompts
18
+ )
19
+
20
+ $ErrorActionPreference = 'SilentlyContinue'
21
+
22
+ $ESC = [char]27
23
+ $BOLD = "$ESC[1m"
24
+ $RED = "$ESC[31m"
25
+ $GREEN = "$ESC[32m"
26
+ $CYAN = "$ESC[36m"
27
+ $DIM = "$ESC[2m"
28
+ $RST = "$ESC[0m"
29
+
30
+ Write-Host ""
31
+ Write-Host ($BOLD + "Aiden - Uninstaller" + $RST)
32
+ Write-Host "${DIM}────────────────────────────────────${RST}"
33
+ Write-Host ""
34
+
35
+ $removed = 0
36
+ $skipped = 0
37
+
38
+ function Remove-AidenPath {
39
+ param([string]$Path, [string]$Label)
40
+ if (Test-Path $Path) {
41
+ Remove-Item -Recurse -Force -Path $Path -ErrorAction SilentlyContinue
42
+ Write-Host " ${GREEN}removed${RST} $Label"
43
+ $script:removed++
44
+ } else {
45
+ Write-Host " ${DIM}skipped${RST} $Label ${DIM}(not found)${RST}"
46
+ $script:skipped++
47
+ }
48
+ }
49
+
50
+ # ── Step 1 — Kill running Aiden processes ──────────────────────────────────────
51
+
52
+ Write-Host "Stopping Aiden server (port 4200)..."
53
+ $portProc = Get-NetTCPConnection -LocalPort 4200 -State Listen -ErrorAction SilentlyContinue |
54
+ Select-Object -First 1 -ExpandProperty OwningProcess
55
+ if ($portProc) {
56
+ Stop-Process -Id $portProc -Force -ErrorAction SilentlyContinue
57
+ Write-Host " ${GREEN}stopped${RST} process $portProc (was listening on :4200)"
58
+ } else {
59
+ Write-Host " ${DIM}skipped${RST} no process on port 4200"
60
+ }
61
+
62
+ # Kill any node process named aiden / devos
63
+ Get-Process -Name "node" -ErrorAction SilentlyContinue | Where-Object {
64
+ $_.MainWindowTitle -like "*aiden*" -or $_.CommandLine -like "*aiden*"
65
+ } | Stop-Process -Force -ErrorAction SilentlyContinue
66
+
67
+ Write-Host ""
68
+
69
+ # ── Step 2 — AppData (config, browser profiles, cache) ────────────────────────
70
+
71
+ if (-not $KeepConfig) {
72
+ if ($env:APPDATA) { $appData = $env:APPDATA } else { $appData = Join-Path $env:USERPROFILE "AppData\Roaming" }
73
+ if ($env:LOCALAPPDATA) { $localData = $env:LOCALAPPDATA } else { $localData = Join-Path $env:USERPROFILE "AppData\Local" }
74
+
75
+ Write-Host "Removing Aiden user data..."
76
+ Remove-AidenPath (Join-Path $appData "aiden") "%APPDATA%\aiden"
77
+ Remove-AidenPath (Join-Path $localData "aiden") "%LOCALAPPDATA%\aiden"
78
+ Remove-AidenPath (Join-Path $localData "aiden\cache") "%LOCALAPPDATA%\aiden\cache"
79
+ Write-Host ""
80
+ }
81
+
82
+ # ── Step 3 — Workspace (conversations, memory, skills, knowledge) ─────────────
83
+
84
+ if (-not $KeepWorkspace) {
85
+ $workspacePath = Join-Path (Get-Location) "workspace"
86
+ if (Test-Path $workspacePath) {
87
+ Write-Host "${DIM}Found workspace at: $workspacePath${RST}"
88
+ if (-not $Yes) {
89
+ $answer = Read-Host " Delete workspace? This removes conversations, memory, and skills. [y/N]"
90
+ } else {
91
+ $answer = "y"
92
+ }
93
+ if ($answer -match '^[Yy]') {
94
+ Remove-AidenPath $workspacePath "workspace/"
95
+ } else {
96
+ Write-Host " ${DIM}kept${RST} workspace/ (your data is safe)"
97
+ }
98
+ Write-Host ""
99
+ }
100
+ }
101
+
102
+ # ── Step 4 — npm global package ───────────────────────────────────────────────
103
+
104
+ Write-Host "Checking for npm global install..."
105
+ $npmList = npm list -g --depth=0 2>$null
106
+ if ($npmList -match "devos-ai|aiden-os|aiden-runtime") {
107
+ Write-Host " Found npm global package - uninstalling..."
108
+ $pkg = if ($npmList -match "devos-ai") { "devos-ai" } `
109
+ elseif ($npmList -match "aiden-os") { "aiden-os" } `
110
+ else { "aiden-runtime" }
111
+ npm uninstall -g $pkg 2>$null
112
+ Write-Host " ${GREEN}removed${RST} npm global: $pkg"
113
+ $removed++
114
+ } else {
115
+ Write-Host " ${DIM}skipped${RST} no npm global package found"
116
+ }
117
+ Write-Host ""
118
+
119
+ # ── Step 5 — Windows startup / scheduled tasks ────────────────────────────────
120
+
121
+ Write-Host "Checking startup entries..."
122
+ $startupTask = Get-ScheduledTask -TaskName "Aiden*" -ErrorAction SilentlyContinue
123
+ if ($startupTask) {
124
+ $startupTask | Unregister-ScheduledTask -Confirm:$false -ErrorAction SilentlyContinue
125
+ Write-Host " ${GREEN}removed${RST} scheduled task: $($startupTask.TaskName)"
126
+ $removed++
127
+ } else {
128
+ Write-Host " ${DIM}skipped${RST} no scheduled tasks found"
129
+ }
130
+
131
+ $regPath = "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
132
+ if (Get-ItemProperty -Path $regPath -Name "Aiden" -ErrorAction SilentlyContinue) {
133
+ Remove-ItemProperty -Path $regPath -Name "Aiden" -ErrorAction SilentlyContinue
134
+ Write-Host " ${GREEN}removed${RST} registry startup entry"
135
+ $removed++
136
+ }
137
+ Write-Host ""
138
+
139
+ # ── Summary ───────────────────────────────────────────────────────────────────
140
+
141
+ if ($removed -gt 0) {
142
+ Write-Host ($GREEN + $BOLD + "Done." + $RST + " Aiden uninstalled (" + $removed + " item(s) removed).")
143
+ } else {
144
+ Write-Host ($DIM + "Nothing to remove - Aiden does not appear to be installed." + $RST)
145
+ }
146
+ Write-Host ($DIM + "Project files in " + (Get-Location).Path + " were not touched." + $RST)
147
+ Write-Host ""