Core domain logic for FluxGPU - graph orchestration, shadow state management, and validation
npm install @fluxgpu/corebash
pnpm add @fluxgpu/core
`
Usage
$3
`typescript
import { ShadowState } from '@fluxgpu/core';
const state = new ShadowState();
// Track buffer creation
state.createBuffer('buffer-1', { size: 1024, usage: 'storage' });
// Query state
const buffer = state.getBuffer('buffer-1');
console.log(buffer.size); // 1024
// Validate operations
state.validateWrite('buffer-1', 0, 512); // throws if invalid
`
Architecture Role
Part of the Domain Layer, this package:
- Depends only on @fluxgpu/contracts`