Agent Harness
Публичная копия обвязки агентной разработки: гейты, journeys, скиллы и шаблоны. Без ключей и личных данных.
Публичная копия обвязки агентной разработки: гейты, journeys, скиллы и шаблоны. Без ключей и личных данных.
import * as THREE from 'three';
import { ARENA, arenaSDF } from '../vfx/common.js';
// Cast pool + phase clock (PLAN 2.4). One record per live cast; spells keep per-cast state in
// c.data (reused, so they reset it in phase 'charge'). Phases:
// charge -> release (instant) -> travel (projectile flight / beam sustain) -> impact -> linger -> done
// shape decides travel: projectile integrates until it hits the arena or reaches the target,
// beam sustains while held (or timing.sustain), strike/area/self skip it. A spell may override
// shape per form with formShapes: { 'Form name': 'strike' }.
const MAX_CASTS = 16;
const _d = new THREE.Vector3();
function record(i) {
return {
index: i, alive:
fx
i
spell to form spell target held seed
c x
c
c b a b a
c
c spell spell form spellform spell held target
c seed
c cto c
cto
c
spell
c
c
c
c
c
c
c
c phase
c
cc phase
phase c
c c
c c c
c
c
c dt
c dt
s c d c
c
cc
c d
c
shape c
shape
ccsspeed s
s c s
c
shape c
shape cc c
c
c
c cc dt c
s c dt
cc dt
c c dt
r s
hit c c r s _dc cc c d
hit s c d _dc cc cc c
c c ssustain c
c
c d c
c
c d c
c cc dt
alive
n c n c n