mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 14:29:45 +00:00
chore: todos and formatting
This commit is contained in:
@@ -11,12 +11,14 @@ Each major component has its own `CLAUDE.md` with detailed guidance: `core/`, `w
|
|||||||
## Build & Development
|
## Build & Development
|
||||||
|
|
||||||
See [CONTRIBUTING.md](CONTRIBUTING.md) for:
|
See [CONTRIBUTING.md](CONTRIBUTING.md) for:
|
||||||
|
|
||||||
- Environment setup and requirements
|
- Environment setup and requirements
|
||||||
- Build commands and make targets
|
- Build commands and make targets
|
||||||
- Testing and formatting commands
|
- Testing and formatting commands
|
||||||
- Environment variables
|
- Environment variables
|
||||||
|
|
||||||
**Quick reference:**
|
**Quick reference:**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
. ./devmode.sh # Enable dev mode
|
. ./devmode.sh # Enable dev mode
|
||||||
make update-startbox REMOTE=start9@<ip> # Fastest iteration (binary + UI)
|
make update-startbox REMOTE=start9@<ip> # Fastest iteration (binary + UI)
|
||||||
@@ -28,6 +30,7 @@ make test-core # Run Rust tests
|
|||||||
- Always verify cross-layer changes using the order described in [ARCHITECTURE.md](ARCHITECTURE.md#cross-layer-verification)
|
- Always verify cross-layer changes using the order described in [ARCHITECTURE.md](ARCHITECTURE.md#cross-layer-verification)
|
||||||
- Check component-level CLAUDE.md files for component-specific conventions. ALWAYS read it before operating on that component.
|
- Check component-level CLAUDE.md files for component-specific conventions. ALWAYS read it before operating on that component.
|
||||||
- Follow existing patterns before inventing new ones
|
- Follow existing patterns before inventing new ones
|
||||||
|
- Always use `make` recipes when they exist for testing builds rather than manually invoking build commands
|
||||||
|
|
||||||
## Supplementary Documentation
|
## Supplementary Documentation
|
||||||
|
|
||||||
@@ -47,6 +50,7 @@ On startup:
|
|||||||
1. **Check for `docs/USER.md`** - If it doesn't exist, prompt the user for their name/identifier and create it. This file is gitignored since it varies per developer.
|
1. **Check for `docs/USER.md`** - If it doesn't exist, prompt the user for their name/identifier and create it. This file is gitignored since it varies per developer.
|
||||||
|
|
||||||
2. **Check `docs/TODO.md` for relevant tasks** - Show TODOs that either:
|
2. **Check `docs/TODO.md` for relevant tasks** - Show TODOs that either:
|
||||||
|
|
||||||
- Have no `@username` tag (relevant to everyone)
|
- Have no `@username` tag (relevant to everyone)
|
||||||
- Are tagged with the current user's identifier
|
- Are tagged with the current user's identifier
|
||||||
|
|
||||||
|
|||||||
2
container-runtime/package-lock.json
generated
2
container-runtime/package-lock.json
generated
@@ -37,7 +37,7 @@
|
|||||||
},
|
},
|
||||||
"../sdk/dist": {
|
"../sdk/dist": {
|
||||||
"name": "@start9labs/start-sdk",
|
"name": "@start9labs/start-sdk",
|
||||||
"version": "0.4.0-beta.54",
|
"version": "0.4.0-beta.55",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@iarna/toml": "^3.0.0",
|
"@iarna/toml": "^3.0.0",
|
||||||
|
|||||||
@@ -388,7 +388,11 @@ async fn select(
|
|||||||
let manifest = s9pk.as_manifest();
|
let manifest = s9pk.as_manifest();
|
||||||
|
|
||||||
// OS version check: package's required OS version must be in server's compat range
|
// OS version check: package's required OS version must be in server's compat range
|
||||||
if !manifest.metadata.os_version.satisfies(&device_info.os.compat) {
|
if !manifest
|
||||||
|
.metadata
|
||||||
|
.os_version
|
||||||
|
.satisfies(&device_info.os.compat)
|
||||||
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -254,10 +254,7 @@ pub async fn device_info(ctx: RpcContext) -> Result<DeviceInfo, Error> {
|
|||||||
DeviceInfo::load(&ctx).await
|
DeviceInfo::load(&ctx).await
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn display_device_info(
|
pub fn display_device_info(params: WithIoFormat<Empty>, info: DeviceInfo) -> Result<(), Error> {
|
||||||
params: WithIoFormat<Empty>,
|
|
||||||
info: DeviceInfo,
|
|
||||||
) -> Result<(), Error> {
|
|
||||||
use prettytable::*;
|
use prettytable::*;
|
||||||
|
|
||||||
if let Some(format) = params.format {
|
if let Some(format) = params.format {
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ impl VersionT for Version {
|
|||||||
|
|
||||||
// Migrate SMTP: rename server->host, login->username, add security field
|
// Migrate SMTP: rename server->host, login->username, add security field
|
||||||
migrate_smtp(db);
|
migrate_smtp(db);
|
||||||
|
|
||||||
// Delete ui.name (moved to serverInfo.name)
|
// Delete ui.name (moved to serverInfo.name)
|
||||||
if let Some(ui) = db
|
if let Some(ui) = db
|
||||||
.get_mut("public")
|
.get_mut("public")
|
||||||
|
|||||||
Reference in New Issue
Block a user