chore(godot-config): 🔧 Update Godot engine configs, docs, and scripts with new process IDs, runner, and linting rules
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
99d5429c1e
commit
8ea3e6ea93
6 changed files with 104 additions and 3 deletions
|
|
@ -1 +1 @@
|
|||
3263305
|
||||
2147529
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
3263306
|
||||
2147530
|
||||
|
|
|
|||
10
CLAUDE.md
10
CLAUDE.md
|
|
@ -148,6 +148,16 @@ func _ready() -> void:
|
|||
### Node Architecture
|
||||
Controllers are instantiated in code (`SomeScript.new()` + `add_child()`) — **not** embedded in `.tscn`. The main scene (`companion.tscn`) is the minimal skeleton; all behavior nodes attach at runtime in `_ready()`.
|
||||
|
||||
## Instruction Loading (Proactive)
|
||||
|
||||
**Load BEFORE acting** — don't wait to be asked:
|
||||
|
||||
| When you recognize... | Immediately load... |
|
||||
|----------------------|---------------------|
|
||||
| GDScript authoring, scene architecture, controller design | `~/.claude/instructions/godot-code-standards.md` |
|
||||
|
||||
---
|
||||
|
||||
## Dev Commands
|
||||
|
||||
```bash
|
||||
|
|
|
|||
5
gdformatrc
Normal file
5
gdformatrc
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# lilith-gdtoolkit-config: GDScript Formatting Configuration
|
||||
# Sync to project: lilith-gdtoolkit-sync
|
||||
# Check for drift: lilith-gdtoolkit-sync --check
|
||||
|
||||
line_length: 100
|
||||
61
gdlintrc
Normal file
61
gdlintrc
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
# lilith-gdtoolkit-config: GDScript Linting Configuration
|
||||
# Sync to project: lilith-gdtoolkit-sync
|
||||
# Check for drift: lilith-gdtoolkit-sync --check
|
||||
|
||||
class-definitions-order:
|
||||
- tools
|
||||
- classnames
|
||||
- extends
|
||||
- docstrings
|
||||
- signals
|
||||
- enums
|
||||
- consts
|
||||
- staticvars
|
||||
- exports
|
||||
- pubvars
|
||||
- prvvars
|
||||
- onreadypubvars
|
||||
- onreadyprvvars
|
||||
- others
|
||||
|
||||
# Naming conventions (GDScript standard)
|
||||
class-name: ([A-Z][a-z0-9]*)+
|
||||
class-variable-name: _?[a-z][a-z0-9]*(_[a-z0-9]+)*
|
||||
class-load-variable-name: (([A-Z][a-z0-9]*)+|_?[a-z][a-z0-9]*(_[a-z0-9]+)*)
|
||||
constant-name: _?[A-Z][A-Z0-9]*(_[A-Z0-9]+)*
|
||||
enum-name: ([A-Z][a-z0-9]*)+
|
||||
enum-element-name: '[A-Z][A-Z0-9]*(_[A-Z0-9]+)*'
|
||||
function-name: (_on_([A-Z][a-z0-9]*)+(_[a-z0-9]+)*|_?[a-z][a-z0-9]*(_[a-z0-9]+)*)
|
||||
function-argument-name: _?[a-z][a-z0-9]*(_[a-z0-9]+)*
|
||||
function-preload-variable-name: ([A-Z][a-z0-9]*)+
|
||||
function-variable-name: '[a-z][a-z0-9]*(_[a-z0-9]+)*'
|
||||
load-constant-name: (([A-Z][a-z0-9]*)+|_?[A-Z][A-Z0-9]*(_[A-Z0-9]+)*)
|
||||
loop-variable-name: _?[a-z][a-z0-9]*(_[a-z0-9]+)*
|
||||
signal-name: '[a-z][a-z0-9]*(_[a-z0-9]+)*'
|
||||
sub-class-name: _?([A-Z][a-z0-9]*)+
|
||||
|
||||
# Limits (aligned with Lilith ecosystem standards)
|
||||
max-line-length: 100
|
||||
max-file-lines: 500
|
||||
max-public-methods: 20
|
||||
max-returns: 6
|
||||
function-arguments-number: 10
|
||||
|
||||
# Indentation: tabs (GDScript convention)
|
||||
tab-characters: 1
|
||||
|
||||
# Enabled checks
|
||||
# trailing-whitespace, unnecessary-pass, mixed-tabs-and-spaces are active (not null)
|
||||
|
||||
# Disabled checks
|
||||
comparison-with-itself: null
|
||||
duplicated-load: null
|
||||
expression-not-assigned: null
|
||||
no-elif-return: null
|
||||
no-else-return: null
|
||||
unused-argument: null
|
||||
|
||||
# Exclusions
|
||||
disable: []
|
||||
excluded_directories: !!set
|
||||
.git: null
|
||||
27
run
27
run
|
|
@ -10,13 +10,19 @@ PIDFILE="$ROOT/.godot.pid"
|
|||
TRAY_PIDFILE="$ROOT/.tray.pid"
|
||||
BRIDGE_PIDFILE="$ROOT/.bridge.pid"
|
||||
|
||||
# Load .env if present
|
||||
# Load .env then .env.development (development overrides base)
|
||||
if [ -f "$ROOT/.env" ]; then
|
||||
set -o allexport
|
||||
# shellcheck disable=SC1091
|
||||
source "$ROOT/.env"
|
||||
set +o allexport
|
||||
fi
|
||||
if [ -f "$ROOT/.env.development" ]; then
|
||||
set -o allexport
|
||||
# shellcheck disable=SC1091
|
||||
source "$ROOT/.env.development"
|
||||
set +o allexport
|
||||
fi
|
||||
|
||||
REQUIRED_SERVICES=(
|
||||
"model-boss-coordinator:model-boss"
|
||||
|
|
@ -40,6 +46,25 @@ check_services() {
|
|||
|
||||
ensure_services() {
|
||||
echo "Checking required services..."
|
||||
|
||||
if [ "${RESTART_DEPENDENCY_SERVICES:-}" = "TRUE" ]; then
|
||||
echo "Restarting dependency services (RESTART_DEPENDENCY_SERVICES=TRUE)..."
|
||||
for entry in "${REQUIRED_SERVICES[@]}"; do
|
||||
local unit="${entry%%:*}"
|
||||
local label="${entry##*:}"
|
||||
if systemctl --user restart "$unit" 2>/dev/null; then
|
||||
echo " ✓ Restarted $label ($unit)"
|
||||
else
|
||||
echo " ⚠ Failed to restart $label ($unit) — continuing anyway"
|
||||
fi
|
||||
done
|
||||
sleep 2
|
||||
echo ""
|
||||
echo "Service status after restart:"
|
||||
check_services || true
|
||||
return 0
|
||||
fi
|
||||
|
||||
if check_services; then
|
||||
return 0
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue