Skip to content

Commit 81ab8ce

Browse files
committed
fix: OpenWhale TypeScript errors + add Downloads to README
- google/client.ts: OAuth2Client type mismatch (double assertion) - command-policy.ts: catch 'unknown' type cast for log.warn() - README: Add Downloads section with ISO links for x86_64 and ARM64 - README: Remove outdated 'x86 doesn't boot' warning (it does now!)
1 parent 0b7aad3 commit 81ab8ce

6 files changed

Lines changed: 22 additions & 12 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ vmware_build/*.vmdk
3838
*.vmdk
3939
*.xz.part*
4040
vmware_build/
41+
pxe-server/

README.md

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,18 @@
2222

2323
---
2424

25-
> - 📧 **Contact / inquiries:** [jijojohnx@outlook.com](mailto:jijojohnx@outlook.com)
25+
## ⬇️ Downloads
26+
27+
| Architecture | ISO | VM Image |
28+
|-------------|-----|----------|
29+
| **x86_64** (Intel/AMD PCs) | [tensoragent-os-x86_64.iso.xz](https://github.com/viralcode/tensoragentos/releases/latest/download/tensoragent-os-x86_64.iso.xz) ||
30+
| **ARM64** (Apple Silicon, RPi) | [tensoragent-os-aarch64.iso.xz](https://github.com/viralcode/tensoragentos/releases/latest/download/tensoragent-os-aarch64.iso.xz) | [Pre-built VM](https://github.com/viralcode/tensoragentos/releases/tag/v0.1.0-preview) |
31+
32+
> **Flash to USB:** `sudo dd if=tensoragent-os-x86_64.iso of=/dev/sdX bs=4M status=progress`
33+
>
34+
> **Boot in VM:** Use VirtualBox, VMware, UTM, or QEMU.
35+
>
36+
> **Default login:** `ainux` / `ainux`
2637
2738
---
2839

@@ -109,11 +120,9 @@ so any local changes are picked up on the next boot.
109120

110121
## Build a Bootable ISO from Source (Linux x86_64 host)
111122

112-
> ⚠️ **Heads up: the x86_64 build is not ready.** The script runs to
113-
> completion but the resulting ISO currently fails to boot reliably (GRUB /
114-
> initrd / service-ordering issues). Use the ARM64 UTM or QEMU path above
115-
> for anything you actually want to run. The instructions below are kept
116-
> for contributors who want to help fix the x86_64 pipeline.
123+
> ISOs are built automatically by GitHub Actions for both x86_64 and ARM64.
124+
> Download the latest from the [Releases](https://github.com/viralcode/tensoragentos/releases) page,
125+
> or build from source using the instructions below.
117126
118127
Reproducible from-scratch ISO build. **Linux x86_64 host required**, ~16 GB
119128
RAM and ~150 GB free disk recommended (less if you skip Chromium).
@@ -255,8 +264,8 @@ Change them before exposing the VM to anything other than `localhost`.
255264

256265
A non-exhaustive list — please add to it via GitHub issues:
257266

258-
- **x86_64 ISO does not boot cleanly.** The full `build-iso.sh` pipeline is
259-
incomplete — only ARM64 (UTM / QEMU on macOS) is currently usable.
267+
- **Live ISO only.** The ISO currently boots live; persistence is whatever
268+
the underlying VM disk gives you. No installer yet.
260269
- **First-boot cloud-init can hang.** If you don't see the desktop after
261270
~10 minutes, SSH in on `2222` and run `cloud-init status --long`.
262271
- **WhaleOS shell crash on resize.** Resizing the QEMU/UTM window can take

packages/openwhale/src/integrations/google/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ export function initializeGoogleAuth(): Auth.OAuth2Client | null {
5757
client_id,
5858
client_secret,
5959
redirectUri
60-
);
60+
) as any as Auth.OAuth2Client;
6161

6262
// Try to load existing tokens
6363
if (existsSync(TOKEN_PATH)) {
6464
const tokens = JSON.parse(readFileSync(TOKEN_PATH, "utf-8"));
65-
oauth2Client.setCredentials(tokens);
65+
oauth2Client!.setCredentials(tokens);
6666
isAuthenticated = true;
6767
console.log("[Google] Loaded existing tokens");
6868
}

packages/openwhale/src/security/command-policy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function parsePolicy(content: string): PolicyRule[] {
7979
line: i + 1,
8080
});
8181
} catch (e) {
82-
log.warn(`Invalid regex from pattern on line ${i + 1}: ${pattern}`, e);
82+
log.warn(`Invalid regex from pattern on line ${i + 1}: ${pattern}`, e as Record<string, unknown>);
8383
}
8484
}
8585

@@ -113,7 +113,7 @@ export function loadPolicy(customPath?: string): void {
113113

114114
return;
115115
} catch (e) {
116-
log.warn(`Failed to read policy file ${path}:`, e);
116+
log.warn(`Failed to read policy file ${path}:`, e as Record<string, unknown>);
117117
}
118118
}
119119
}
-512 Bytes
Binary file not shown.
-512 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)