Merge commit 'd803bfe2b1fe7f5e219e50ac20d6801a0a58ac75' as 'vendor/ruvector'
This commit is contained in:
301
vendor/ruvector/crates/ruvector-exotic-wasm/pkg/README.md
vendored
Normal file
301
vendor/ruvector/crates/ruvector-exotic-wasm/pkg/README.md
vendored
Normal file
@@ -0,0 +1,301 @@
|
||||
# @ruvector/exotic-wasm - Exotic AI: NAO, Morphogenetic Networks, Time Crystals
|
||||
|
||||
[](https://www.npmjs.com/package/ruvector-exotic-wasm)
|
||||
[](https://github.com/ruvnet/ruvector)
|
||||
[](https://www.npmjs.com/package/ruvector-exotic-wasm)
|
||||
[](https://webassembly.org/)
|
||||
|
||||
**Exotic AI mechanisms** for emergent behavior in distributed systems. Implements novel coordination primitives inspired by decentralized governance (DAOs), developmental biology, and quantum physics.
|
||||
|
||||
## Key Features
|
||||
|
||||
- **Neural Autonomous Organization (NAO)**: Decentralized governance for AI agent collectives with quadratic voting
|
||||
- **Morphogenetic Networks**: Bio-inspired network growth with cellular differentiation and synaptic pruning
|
||||
- **Time Crystal Coordinator**: Robust distributed coordination using discrete time crystal dynamics
|
||||
- **Exotic Ecosystem**: Interconnected simulation of all three mechanisms
|
||||
- **WASM-Optimized**: Runs in browsers and edge environments
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
npm install ruvector-exotic-wasm
|
||||
# or
|
||||
yarn add ruvector-exotic-wasm
|
||||
# or
|
||||
pnpm add ruvector-exotic-wasm
|
||||
```
|
||||
|
||||
## Neural Autonomous Organization (NAO)
|
||||
|
||||
Decentralized governance for AI agent collectives with stake-weighted quadratic voting, oscillatory synchronization, and quorum-based consensus.
|
||||
|
||||
### Concept
|
||||
|
||||
Unlike traditional DAOs that govern humans, NAOs coordinate AI agents through:
|
||||
- **Quadratic Voting**: Square root of stake as voting power (prevents plutocracy)
|
||||
- **Oscillatory Synchronization**: Agents synchronize phases for coherent decision-making
|
||||
- **Emergent Consensus**: Proposals pass when collective coherence exceeds quorum
|
||||
|
||||
```typescript
|
||||
import init, { WasmNAO } from 'ruvector-exotic-wasm';
|
||||
|
||||
await init();
|
||||
|
||||
// Create NAO with 70% quorum threshold
|
||||
const nao = new WasmNAO(0.7);
|
||||
|
||||
// Add agent members with stake
|
||||
nao.addMember("agent_alpha", 100);
|
||||
nao.addMember("agent_beta", 50);
|
||||
nao.addMember("agent_gamma", 75);
|
||||
|
||||
// Create a proposal
|
||||
const proposalId = nao.propose("Upgrade memory backend to vector store");
|
||||
|
||||
// Agents vote with conviction weights (0.0-1.0)
|
||||
nao.vote(proposalId, "agent_alpha", 0.9); // Strong support
|
||||
nao.vote(proposalId, "agent_beta", 0.6); // Moderate support
|
||||
nao.vote(proposalId, "agent_gamma", 0.8); // Support
|
||||
|
||||
// Advance simulation
|
||||
for (let i = 0; i < 100; i++) {
|
||||
nao.tick(0.001); // dt = 1ms
|
||||
}
|
||||
|
||||
// Check synchronization
|
||||
console.log(`Synchronization: ${(nao.synchronization() * 100).toFixed(1)}%`);
|
||||
|
||||
// Execute if quorum reached
|
||||
if (nao.execute(proposalId)) {
|
||||
console.log("Proposal executed!");
|
||||
}
|
||||
|
||||
// Check agent coherence
|
||||
const coherence = nao.agentCoherence("agent_alpha", "agent_beta");
|
||||
console.log(`Alpha-Beta coherence: ${coherence.toFixed(2)}`);
|
||||
|
||||
// Export state as JSON
|
||||
const state = nao.toJson();
|
||||
```
|
||||
|
||||
## Morphogenetic Networks
|
||||
|
||||
Bio-inspired network growth using morphogen gradients for cellular differentiation, emergent topology, and synaptic pruning - modeled after developmental biology.
|
||||
|
||||
### Concept
|
||||
|
||||
Cells in the network:
|
||||
- **Stem Cells**: Undifferentiated, can become any type
|
||||
- **Signaling Cells**: Produce morphogen gradients that guide differentiation
|
||||
- **Compute Cells**: Specialized for processing tasks
|
||||
|
||||
```typescript
|
||||
import { WasmMorphogeneticNetwork } from 'ruvector-exotic-wasm';
|
||||
|
||||
// Create 100x100 grid network
|
||||
const network = new WasmMorphogeneticNetwork(100, 100);
|
||||
|
||||
// Seed initial cells
|
||||
network.seedStem(50, 50); // Central stem cell
|
||||
network.seedSignaling(25, 25); // Growth signal source
|
||||
network.seedSignaling(75, 75); // Another signal source
|
||||
|
||||
// Add growth factor sources (morphogen gradients)
|
||||
network.addGrowthSource(50, 50, "differentiation", 1.0);
|
||||
|
||||
// Simulate growth
|
||||
for (let step = 0; step < 1000; step++) {
|
||||
network.grow(0.1); // Growth rate
|
||||
|
||||
if (step % 10 === 0) {
|
||||
network.differentiate(); // Stem -> specialized cells
|
||||
}
|
||||
}
|
||||
|
||||
// Optimize network through pruning
|
||||
network.prune(0.1); // Remove weak connections
|
||||
|
||||
// Get statistics
|
||||
console.log(`Total cells: ${network.cellCount()}`);
|
||||
console.log(`Stem cells: ${network.stemCount()}`);
|
||||
console.log(`Compute cells: ${network.computeCount()}`);
|
||||
console.log(`Signaling cells: ${network.signalingCount()}`);
|
||||
|
||||
// Get detailed stats as JSON
|
||||
const stats = network.statsJson();
|
||||
console.log(stats);
|
||||
```
|
||||
|
||||
## Time Crystal Coordinator
|
||||
|
||||
Robust distributed coordination using discrete time crystal dynamics with period-doubled oscillations for stable, noise-resilient agent synchronization.
|
||||
|
||||
### Concept
|
||||
|
||||
Time crystals exhibit:
|
||||
- **Period Doubling**: System oscillates at half the driving frequency
|
||||
- **Floquet Engineering**: Noise-resilient through topological protection
|
||||
- **Phase Locking**: Agents synchronize into stable coordination patterns
|
||||
|
||||
```typescript
|
||||
import { WasmTimeCrystal } from 'ruvector-exotic-wasm';
|
||||
|
||||
// Create time crystal with 10 oscillators, 100ms period
|
||||
const crystal = new WasmTimeCrystal(10, 100);
|
||||
|
||||
// Establish crystalline order
|
||||
crystal.crystallize();
|
||||
|
||||
// Configure dynamics
|
||||
crystal.setDriving(0.8); // Driving strength
|
||||
crystal.setCoupling(0.5); // Inter-oscillator coupling
|
||||
crystal.setDisorder(0.1); // Disorder level (noise resilience)
|
||||
|
||||
// Run simulation
|
||||
for (let t = 0; t < 200; t++) {
|
||||
const pattern = crystal.tick(); // Returns Uint8Array coordination pattern
|
||||
|
||||
// Use pattern bits for coordination
|
||||
// Each bit indicates whether an agent should be active
|
||||
}
|
||||
|
||||
// Check order parameter (synchronization level)
|
||||
console.log(`Order parameter: ${crystal.orderParameter().toFixed(2)}`);
|
||||
console.log(`Crystallized: ${crystal.isCrystallized()}`);
|
||||
console.log(`Pattern type: ${crystal.patternType()}`);
|
||||
console.log(`Robustness: ${crystal.robustness().toFixed(2)}`);
|
||||
|
||||
// Get collective spin (net magnetization)
|
||||
console.log(`Collective spin: ${crystal.collectiveSpin()}`);
|
||||
|
||||
// Test perturbation resilience
|
||||
crystal.perturb(0.3); // 30% strength perturbation
|
||||
// Crystal should recover due to topological protection
|
||||
```
|
||||
|
||||
### Pre-synchronized Crystal
|
||||
|
||||
```typescript
|
||||
// Create already-synchronized crystal
|
||||
const syncedCrystal = WasmTimeCrystal.synchronized(8, 50);
|
||||
console.log(`Initial order: ${syncedCrystal.orderParameter()}`); // ~1.0
|
||||
```
|
||||
|
||||
## Exotic Ecosystem
|
||||
|
||||
Interconnected simulation of all three mechanisms working together:
|
||||
|
||||
```typescript
|
||||
import { ExoticEcosystem } from 'ruvector-exotic-wasm';
|
||||
|
||||
// Create ecosystem: 5 agents, 50x50 grid, 8 oscillators
|
||||
const ecosystem = new ExoticEcosystem(5, 50, 8);
|
||||
|
||||
// Crystallize for stable coordination
|
||||
ecosystem.crystallize();
|
||||
|
||||
// Run simulation
|
||||
for (let step = 0; step < 500; step++) {
|
||||
ecosystem.step();
|
||||
}
|
||||
|
||||
// Check integrated state
|
||||
console.log(`Step: ${ecosystem.currentStep()}`);
|
||||
console.log(`Synchronization: ${ecosystem.synchronization().toFixed(2)}`);
|
||||
console.log(`NAO members: ${ecosystem.memberCount()}`);
|
||||
console.log(`Network cells: ${ecosystem.cellCount()}`);
|
||||
|
||||
// Create and execute proposals in the ecosystem
|
||||
const propId = ecosystem.propose("Scale compute capacity");
|
||||
ecosystem.vote(propId, "agent_0", 1.0);
|
||||
ecosystem.vote(propId, "agent_1", 0.8);
|
||||
ecosystem.vote(propId, "agent_2", 0.9);
|
||||
|
||||
if (ecosystem.execute(propId)) {
|
||||
console.log("Ecosystem proposal executed!");
|
||||
}
|
||||
|
||||
// Get full summary as JSON
|
||||
const summary = ecosystem.summaryJson();
|
||||
console.log(JSON.stringify(summary, null, 2));
|
||||
```
|
||||
|
||||
## API Reference
|
||||
|
||||
### WasmNAO
|
||||
|
||||
| Method | Description |
|
||||
|--------|-------------|
|
||||
| `new(quorum_threshold)` | Create NAO (0.0-1.0 quorum) |
|
||||
| `addMember(agent_id, stake)` | Add voting member |
|
||||
| `removeMember(agent_id)` | Remove member |
|
||||
| `propose(action)` | Create proposal, returns ID |
|
||||
| `vote(proposal_id, agent_id, weight)` | Vote with conviction |
|
||||
| `execute(proposal_id)` | Execute if quorum met |
|
||||
| `tick(dt)` | Advance simulation |
|
||||
| `synchronization()` | Get sync level (0.0-1.0) |
|
||||
| `agentCoherence(a, b)` | Coherence between agents |
|
||||
| `toJson()` | Export full state |
|
||||
|
||||
### WasmMorphogeneticNetwork
|
||||
|
||||
| Method | Description |
|
||||
|--------|-------------|
|
||||
| `new(width, height)` | Create grid network |
|
||||
| `seedStem(x, y)` | Add stem cell |
|
||||
| `seedSignaling(x, y)` | Add signaling cell |
|
||||
| `addGrowthSource(x, y, name, concentration)` | Add morphogen source |
|
||||
| `grow(dt)` | Simulate growth |
|
||||
| `differentiate()` | Trigger differentiation |
|
||||
| `prune(threshold)` | Remove weak connections |
|
||||
| `cellCount()` / `stemCount()` / `computeCount()` | Get cell counts |
|
||||
| `statsJson()` / `cellsJson()` | Export as JSON |
|
||||
|
||||
### WasmTimeCrystal
|
||||
|
||||
| Method | Description |
|
||||
|--------|-------------|
|
||||
| `new(n, period_ms)` | Create with n oscillators |
|
||||
| `synchronized(n, period_ms)` | Create pre-synchronized (static) |
|
||||
| `crystallize()` | Establish periodic order |
|
||||
| `tick()` | Advance, returns pattern |
|
||||
| `orderParameter()` | Sync level (0.0-1.0) |
|
||||
| `isCrystallized()` | Check crystal state |
|
||||
| `patternType()` | Current pattern name |
|
||||
| `perturb(strength)` | Apply perturbation |
|
||||
| `setDriving(strength)` / `setCoupling(coupling)` / `setDisorder(disorder)` | Configure dynamics |
|
||||
|
||||
## Use Cases
|
||||
|
||||
- **Multi-Agent Coordination**: Decentralized decision-making for AI swarms
|
||||
- **Autonomous AI Governance**: Self-organizing agent collectives
|
||||
- **Emergent Network Design**: Bio-inspired architecture evolution
|
||||
- **Distributed Consensus**: Noise-resilient coordination patterns
|
||||
- **Swarm Intelligence**: Collective behavior through synchronization
|
||||
- **Self-Healing Systems**: Networks that grow and repair autonomously
|
||||
|
||||
## Bundle Size
|
||||
|
||||
- **WASM binary**: ~146KB (uncompressed)
|
||||
- **Gzip compressed**: ~55KB
|
||||
- **JavaScript glue**: ~7KB
|
||||
|
||||
## Related Packages
|
||||
|
||||
- [ruvector-economy-wasm](https://www.npmjs.com/package/ruvector-economy-wasm) - CRDT credit economy
|
||||
- [ruvector-nervous-system-wasm](https://www.npmjs.com/package/ruvector-nervous-system-wasm) - Bio-inspired neural
|
||||
- [ruvector-learning-wasm](https://www.npmjs.com/package/ruvector-learning-wasm) - MicroLoRA adaptation
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
|
||||
## Links
|
||||
|
||||
- [GitHub Repository](https://github.com/ruvnet/ruvector)
|
||||
- [Full Documentation](https://ruv.io)
|
||||
- [Bug Reports](https://github.com/ruvnet/ruvector/issues)
|
||||
|
||||
---
|
||||
|
||||
**Keywords**: DAO, AI governance, emergent behavior, distributed AI, NAO, Neural Autonomous Organization, morphogenetic, developmental biology, time crystal, quantum physics, swarm intelligence, multi-agent systems, WebAssembly, WASM, coordination, consensus, oscillatory, synchronization
|
||||
43
vendor/ruvector/crates/ruvector-exotic-wasm/pkg/package.json
vendored
Normal file
43
vendor/ruvector/crates/ruvector-exotic-wasm/pkg/package.json
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"name": "@ruvector/exotic-wasm",
|
||||
"type": "module",
|
||||
"collaborators": [
|
||||
"RuVector Team"
|
||||
],
|
||||
"author": "RuVector Team <ruvnet@users.noreply.github.com>",
|
||||
"description": "Exotic AI mechanisms for emergent behavior - Neural Autonomous Orgs, Morphogenetic Networks, Time Crystals",
|
||||
"version": "0.1.29",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/ruvnet/ruvector"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/ruvnet/ruvector/issues"
|
||||
},
|
||||
"files": [
|
||||
"ruvector_exotic_wasm_bg.wasm",
|
||||
"ruvector_exotic_wasm.js",
|
||||
"ruvector_exotic_wasm.d.ts",
|
||||
"ruvector_exotic_wasm_bg.wasm.d.ts",
|
||||
"README.md"
|
||||
],
|
||||
"main": "ruvector_exotic_wasm.js",
|
||||
"homepage": "https://ruv.io",
|
||||
"types": "ruvector_exotic_wasm.d.ts",
|
||||
"sideEffects": [
|
||||
"./snippets/*"
|
||||
],
|
||||
"keywords": [
|
||||
"wasm",
|
||||
"exotic-ai",
|
||||
"neural-autonomous-org",
|
||||
"morphogenetic",
|
||||
"time-crystals",
|
||||
"ruvector",
|
||||
"webassembly",
|
||||
"emergent-behavior",
|
||||
"swarm-intelligence",
|
||||
"artificial-life"
|
||||
]
|
||||
}
|
||||
363
vendor/ruvector/crates/ruvector-exotic-wasm/pkg/ruvector_exotic_wasm.d.ts
vendored
Normal file
363
vendor/ruvector/crates/ruvector-exotic-wasm/pkg/ruvector_exotic_wasm.d.ts
vendored
Normal file
@@ -0,0 +1,363 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export class ExoticEcosystem {
|
||||
free(): void;
|
||||
[Symbol.dispose](): void;
|
||||
/**
|
||||
* Get current cell count (from morphogenetic network)
|
||||
*/
|
||||
cellCount(): number;
|
||||
/**
|
||||
* Crystallize the time crystal
|
||||
*/
|
||||
crystallize(): void;
|
||||
/**
|
||||
* Get current step
|
||||
*/
|
||||
currentStep(): number;
|
||||
/**
|
||||
* Get current member count (from NAO)
|
||||
*/
|
||||
memberCount(): number;
|
||||
/**
|
||||
* Get ecosystem summary as JSON
|
||||
*/
|
||||
summaryJson(): any;
|
||||
/**
|
||||
* Get current synchronization level (from time crystal)
|
||||
*/
|
||||
synchronization(): number;
|
||||
/**
|
||||
* Create a new exotic ecosystem with interconnected mechanisms
|
||||
*/
|
||||
constructor(agents: number, grid_size: number, oscillators: number);
|
||||
/**
|
||||
* Advance all systems by one step
|
||||
*/
|
||||
step(): void;
|
||||
/**
|
||||
* Vote on a proposal
|
||||
*/
|
||||
vote(proposal_id: string, agent_id: string, weight: number): boolean;
|
||||
/**
|
||||
* Execute a proposal
|
||||
*/
|
||||
execute(proposal_id: string): boolean;
|
||||
/**
|
||||
* Propose an action in the NAO
|
||||
*/
|
||||
propose(action: string): string;
|
||||
}
|
||||
|
||||
export class WasmMorphogeneticNetwork {
|
||||
free(): void;
|
||||
[Symbol.dispose](): void;
|
||||
/**
|
||||
* Get cell count
|
||||
*/
|
||||
cellCount(): number;
|
||||
/**
|
||||
* Get all cells as JSON
|
||||
*/
|
||||
cellsJson(): any;
|
||||
/**
|
||||
* Get statistics as JSON
|
||||
*/
|
||||
statsJson(): any;
|
||||
/**
|
||||
* Get stem cell count
|
||||
*/
|
||||
stemCount(): number;
|
||||
/**
|
||||
* Get current tick
|
||||
*/
|
||||
currentTick(): number;
|
||||
/**
|
||||
* Get compute cell count
|
||||
*/
|
||||
computeCount(): number;
|
||||
/**
|
||||
* Differentiate stem cells
|
||||
*/
|
||||
differentiate(): void;
|
||||
/**
|
||||
* Seed a signaling cell at position
|
||||
*/
|
||||
seedSignaling(x: number, y: number): number;
|
||||
/**
|
||||
* Get signaling cell count
|
||||
*/
|
||||
signalingCount(): number;
|
||||
/**
|
||||
* Add a growth factor source
|
||||
*/
|
||||
addGrowthSource(x: number, y: number, name: string, concentration: number): void;
|
||||
/**
|
||||
* Create a new morphogenetic network
|
||||
*/
|
||||
constructor(width: number, height: number);
|
||||
/**
|
||||
* Grow the network
|
||||
*/
|
||||
grow(dt: number): void;
|
||||
/**
|
||||
* Prune weak connections and dead cells
|
||||
*/
|
||||
prune(threshold: number): void;
|
||||
/**
|
||||
* Seed a stem cell at position
|
||||
*/
|
||||
seedStem(x: number, y: number): number;
|
||||
}
|
||||
|
||||
export class WasmNAO {
|
||||
free(): void;
|
||||
[Symbol.dispose](): void;
|
||||
/**
|
||||
* Add a member agent with initial stake
|
||||
*/
|
||||
addMember(agent_id: string, stake: number): void;
|
||||
/**
|
||||
* Get current tick
|
||||
*/
|
||||
currentTick(): number;
|
||||
/**
|
||||
* Get member count
|
||||
*/
|
||||
memberCount(): number;
|
||||
/**
|
||||
* Remove a member agent
|
||||
*/
|
||||
removeMember(agent_id: string): void;
|
||||
/**
|
||||
* Get coherence between two agents (0-1)
|
||||
*/
|
||||
agentCoherence(agent_a: string, agent_b: string): number;
|
||||
/**
|
||||
* Get current synchronization level (0-1)
|
||||
*/
|
||||
synchronization(): number;
|
||||
/**
|
||||
* Get total voting power
|
||||
*/
|
||||
totalVotingPower(): number;
|
||||
/**
|
||||
* Get active proposal count
|
||||
*/
|
||||
activeProposalCount(): number;
|
||||
/**
|
||||
* Create a new NAO with the given quorum threshold (0.0 - 1.0)
|
||||
*/
|
||||
constructor(quorum_threshold: number);
|
||||
/**
|
||||
* Advance simulation by one tick
|
||||
*/
|
||||
tick(dt: number): void;
|
||||
/**
|
||||
* Vote on a proposal
|
||||
*/
|
||||
vote(proposal_id: string, agent_id: string, weight: number): boolean;
|
||||
/**
|
||||
* Execute a proposal if consensus reached
|
||||
*/
|
||||
execute(proposal_id: string): boolean;
|
||||
/**
|
||||
* Create a new proposal, returns proposal ID
|
||||
*/
|
||||
propose(action: string): string;
|
||||
/**
|
||||
* Get all data as JSON
|
||||
*/
|
||||
toJson(): any;
|
||||
}
|
||||
|
||||
export class WasmTimeCrystal {
|
||||
free(): void;
|
||||
[Symbol.dispose](): void;
|
||||
/**
|
||||
* Get robustness measure
|
||||
*/
|
||||
robustness(): number;
|
||||
/**
|
||||
* Crystallize to establish periodic order
|
||||
*/
|
||||
crystallize(): void;
|
||||
/**
|
||||
* Get phases as JSON array
|
||||
*/
|
||||
phasesJson(): any;
|
||||
/**
|
||||
* Set driving strength
|
||||
*/
|
||||
setDriving(strength: number): void;
|
||||
/**
|
||||
* Get current step
|
||||
*/
|
||||
currentStep(): number;
|
||||
/**
|
||||
* Get current pattern type as string
|
||||
*/
|
||||
patternType(): string;
|
||||
/**
|
||||
* Set coupling strength
|
||||
*/
|
||||
setCoupling(coupling: number): void;
|
||||
/**
|
||||
* Set disorder level
|
||||
*/
|
||||
setDisorder(disorder: number): void;
|
||||
/**
|
||||
* Get signals as JSON array
|
||||
*/
|
||||
signalsJson(): any;
|
||||
/**
|
||||
* Create a synchronized crystal
|
||||
*/
|
||||
static synchronized(n: number, period_ms: number): WasmTimeCrystal;
|
||||
/**
|
||||
* Get collective spin
|
||||
*/
|
||||
collectiveSpin(): number;
|
||||
/**
|
||||
* Check if crystallized
|
||||
*/
|
||||
isCrystallized(): boolean;
|
||||
/**
|
||||
* Get order parameter (synchronization level)
|
||||
*/
|
||||
orderParameter(): number;
|
||||
/**
|
||||
* Get number of oscillators
|
||||
*/
|
||||
oscillatorCount(): number;
|
||||
/**
|
||||
* Create a new time crystal with n oscillators
|
||||
*/
|
||||
constructor(n: number, period_ms: number);
|
||||
/**
|
||||
* Advance one tick, returns coordination pattern as Uint8Array
|
||||
*/
|
||||
tick(): Uint8Array;
|
||||
/**
|
||||
* Apply perturbation
|
||||
*/
|
||||
perturb(strength: number): void;
|
||||
/**
|
||||
* Get period in milliseconds
|
||||
*/
|
||||
periodMs(): number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get information about available exotic mechanisms
|
||||
*/
|
||||
export function available_mechanisms(): any;
|
||||
|
||||
/**
|
||||
* Initialize the WASM module with panic hook
|
||||
*/
|
||||
export function init(): void;
|
||||
|
||||
/**
|
||||
* Get the version of the ruvector-exotic-wasm crate
|
||||
*/
|
||||
export function version(): string;
|
||||
|
||||
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
||||
|
||||
export interface InitOutput {
|
||||
readonly memory: WebAssembly.Memory;
|
||||
readonly __wbg_exoticecosystem_free: (a: number, b: number) => void;
|
||||
readonly __wbg_wasmmorphogeneticnetwork_free: (a: number, b: number) => void;
|
||||
readonly __wbg_wasmnao_free: (a: number, b: number) => void;
|
||||
readonly __wbg_wasmtimecrystal_free: (a: number, b: number) => void;
|
||||
readonly available_mechanisms: () => number;
|
||||
readonly exoticecosystem_cellCount: (a: number) => number;
|
||||
readonly exoticecosystem_crystallize: (a: number) => void;
|
||||
readonly exoticecosystem_currentStep: (a: number) => number;
|
||||
readonly exoticecosystem_execute: (a: number, b: number, c: number) => number;
|
||||
readonly exoticecosystem_memberCount: (a: number) => number;
|
||||
readonly exoticecosystem_new: (a: number, b: number, c: number) => number;
|
||||
readonly exoticecosystem_propose: (a: number, b: number, c: number, d: number) => void;
|
||||
readonly exoticecosystem_step: (a: number) => void;
|
||||
readonly exoticecosystem_summaryJson: (a: number, b: number) => void;
|
||||
readonly exoticecosystem_synchronization: (a: number) => number;
|
||||
readonly exoticecosystem_vote: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
||||
readonly init: () => void;
|
||||
readonly version: (a: number) => void;
|
||||
readonly wasmmorphogeneticnetwork_addGrowthSource: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
||||
readonly wasmmorphogeneticnetwork_cellCount: (a: number) => number;
|
||||
readonly wasmmorphogeneticnetwork_cellsJson: (a: number, b: number) => void;
|
||||
readonly wasmmorphogeneticnetwork_computeCount: (a: number) => number;
|
||||
readonly wasmmorphogeneticnetwork_currentTick: (a: number) => number;
|
||||
readonly wasmmorphogeneticnetwork_differentiate: (a: number) => void;
|
||||
readonly wasmmorphogeneticnetwork_grow: (a: number, b: number) => void;
|
||||
readonly wasmmorphogeneticnetwork_new: (a: number, b: number) => number;
|
||||
readonly wasmmorphogeneticnetwork_prune: (a: number, b: number) => void;
|
||||
readonly wasmmorphogeneticnetwork_seedSignaling: (a: number, b: number, c: number) => number;
|
||||
readonly wasmmorphogeneticnetwork_seedStem: (a: number, b: number, c: number) => number;
|
||||
readonly wasmmorphogeneticnetwork_signalingCount: (a: number) => number;
|
||||
readonly wasmmorphogeneticnetwork_statsJson: (a: number, b: number) => void;
|
||||
readonly wasmmorphogeneticnetwork_stemCount: (a: number) => number;
|
||||
readonly wasmnao_activeProposalCount: (a: number) => number;
|
||||
readonly wasmnao_addMember: (a: number, b: number, c: number, d: number) => void;
|
||||
readonly wasmnao_agentCoherence: (a: number, b: number, c: number, d: number, e: number) => number;
|
||||
readonly wasmnao_currentTick: (a: number) => number;
|
||||
readonly wasmnao_execute: (a: number, b: number, c: number) => number;
|
||||
readonly wasmnao_memberCount: (a: number) => number;
|
||||
readonly wasmnao_new: (a: number) => number;
|
||||
readonly wasmnao_propose: (a: number, b: number, c: number, d: number) => void;
|
||||
readonly wasmnao_removeMember: (a: number, b: number, c: number) => void;
|
||||
readonly wasmnao_synchronization: (a: number) => number;
|
||||
readonly wasmnao_tick: (a: number, b: number) => void;
|
||||
readonly wasmnao_toJson: (a: number, b: number) => void;
|
||||
readonly wasmnao_totalVotingPower: (a: number) => number;
|
||||
readonly wasmnao_vote: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
||||
readonly wasmtimecrystal_collectiveSpin: (a: number) => number;
|
||||
readonly wasmtimecrystal_crystallize: (a: number) => void;
|
||||
readonly wasmtimecrystal_currentStep: (a: number) => number;
|
||||
readonly wasmtimecrystal_isCrystallized: (a: number) => number;
|
||||
readonly wasmtimecrystal_new: (a: number, b: number) => number;
|
||||
readonly wasmtimecrystal_oscillatorCount: (a: number) => number;
|
||||
readonly wasmtimecrystal_patternType: (a: number, b: number) => void;
|
||||
readonly wasmtimecrystal_periodMs: (a: number) => number;
|
||||
readonly wasmtimecrystal_perturb: (a: number, b: number) => void;
|
||||
readonly wasmtimecrystal_phasesJson: (a: number, b: number) => void;
|
||||
readonly wasmtimecrystal_robustness: (a: number) => number;
|
||||
readonly wasmtimecrystal_setCoupling: (a: number, b: number) => void;
|
||||
readonly wasmtimecrystal_setDisorder: (a: number, b: number) => void;
|
||||
readonly wasmtimecrystal_setDriving: (a: number, b: number) => void;
|
||||
readonly wasmtimecrystal_signalsJson: (a: number, b: number) => void;
|
||||
readonly wasmtimecrystal_synchronized: (a: number, b: number) => number;
|
||||
readonly wasmtimecrystal_tick: (a: number, b: number) => void;
|
||||
readonly wasmtimecrystal_orderParameter: (a: number) => number;
|
||||
readonly __wbindgen_export: (a: number, b: number) => number;
|
||||
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
||||
readonly __wbindgen_export3: (a: number) => void;
|
||||
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
||||
readonly __wbindgen_export4: (a: number, b: number, c: number) => void;
|
||||
readonly __wbindgen_start: () => void;
|
||||
}
|
||||
|
||||
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
||||
|
||||
/**
|
||||
* Instantiates the given `module`, which can either be bytes or
|
||||
* a precompiled `WebAssembly.Module`.
|
||||
*
|
||||
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
||||
*
|
||||
* @returns {InitOutput}
|
||||
*/
|
||||
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
||||
|
||||
/**
|
||||
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
||||
* for everything else, calls `WebAssembly.instantiate` directly.
|
||||
*
|
||||
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
||||
*
|
||||
* @returns {Promise<InitOutput>}
|
||||
*/
|
||||
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|
||||
1199
vendor/ruvector/crates/ruvector-exotic-wasm/pkg/ruvector_exotic_wasm.js
vendored
Normal file
1199
vendor/ruvector/crates/ruvector-exotic-wasm/pkg/ruvector_exotic_wasm.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
vendor/ruvector/crates/ruvector-exotic-wasm/pkg/ruvector_exotic_wasm_bg.wasm
vendored
Normal file
BIN
vendor/ruvector/crates/ruvector-exotic-wasm/pkg/ruvector_exotic_wasm_bg.wasm
vendored
Normal file
Binary file not shown.
73
vendor/ruvector/crates/ruvector-exotic-wasm/pkg/ruvector_exotic_wasm_bg.wasm.d.ts
vendored
Normal file
73
vendor/ruvector/crates/ruvector-exotic-wasm/pkg/ruvector_exotic_wasm_bg.wasm.d.ts
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export const memory: WebAssembly.Memory;
|
||||
export const __wbg_exoticecosystem_free: (a: number, b: number) => void;
|
||||
export const __wbg_wasmmorphogeneticnetwork_free: (a: number, b: number) => void;
|
||||
export const __wbg_wasmnao_free: (a: number, b: number) => void;
|
||||
export const __wbg_wasmtimecrystal_free: (a: number, b: number) => void;
|
||||
export const available_mechanisms: () => number;
|
||||
export const exoticecosystem_cellCount: (a: number) => number;
|
||||
export const exoticecosystem_crystallize: (a: number) => void;
|
||||
export const exoticecosystem_currentStep: (a: number) => number;
|
||||
export const exoticecosystem_execute: (a: number, b: number, c: number) => number;
|
||||
export const exoticecosystem_memberCount: (a: number) => number;
|
||||
export const exoticecosystem_new: (a: number, b: number, c: number) => number;
|
||||
export const exoticecosystem_propose: (a: number, b: number, c: number, d: number) => void;
|
||||
export const exoticecosystem_step: (a: number) => void;
|
||||
export const exoticecosystem_summaryJson: (a: number, b: number) => void;
|
||||
export const exoticecosystem_synchronization: (a: number) => number;
|
||||
export const exoticecosystem_vote: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
||||
export const init: () => void;
|
||||
export const version: (a: number) => void;
|
||||
export const wasmmorphogeneticnetwork_addGrowthSource: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
||||
export const wasmmorphogeneticnetwork_cellCount: (a: number) => number;
|
||||
export const wasmmorphogeneticnetwork_cellsJson: (a: number, b: number) => void;
|
||||
export const wasmmorphogeneticnetwork_computeCount: (a: number) => number;
|
||||
export const wasmmorphogeneticnetwork_currentTick: (a: number) => number;
|
||||
export const wasmmorphogeneticnetwork_differentiate: (a: number) => void;
|
||||
export const wasmmorphogeneticnetwork_grow: (a: number, b: number) => void;
|
||||
export const wasmmorphogeneticnetwork_new: (a: number, b: number) => number;
|
||||
export const wasmmorphogeneticnetwork_prune: (a: number, b: number) => void;
|
||||
export const wasmmorphogeneticnetwork_seedSignaling: (a: number, b: number, c: number) => number;
|
||||
export const wasmmorphogeneticnetwork_seedStem: (a: number, b: number, c: number) => number;
|
||||
export const wasmmorphogeneticnetwork_signalingCount: (a: number) => number;
|
||||
export const wasmmorphogeneticnetwork_statsJson: (a: number, b: number) => void;
|
||||
export const wasmmorphogeneticnetwork_stemCount: (a: number) => number;
|
||||
export const wasmnao_activeProposalCount: (a: number) => number;
|
||||
export const wasmnao_addMember: (a: number, b: number, c: number, d: number) => void;
|
||||
export const wasmnao_agentCoherence: (a: number, b: number, c: number, d: number, e: number) => number;
|
||||
export const wasmnao_currentTick: (a: number) => number;
|
||||
export const wasmnao_execute: (a: number, b: number, c: number) => number;
|
||||
export const wasmnao_memberCount: (a: number) => number;
|
||||
export const wasmnao_new: (a: number) => number;
|
||||
export const wasmnao_propose: (a: number, b: number, c: number, d: number) => void;
|
||||
export const wasmnao_removeMember: (a: number, b: number, c: number) => void;
|
||||
export const wasmnao_synchronization: (a: number) => number;
|
||||
export const wasmnao_tick: (a: number, b: number) => void;
|
||||
export const wasmnao_toJson: (a: number, b: number) => void;
|
||||
export const wasmnao_totalVotingPower: (a: number) => number;
|
||||
export const wasmnao_vote: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
||||
export const wasmtimecrystal_collectiveSpin: (a: number) => number;
|
||||
export const wasmtimecrystal_crystallize: (a: number) => void;
|
||||
export const wasmtimecrystal_currentStep: (a: number) => number;
|
||||
export const wasmtimecrystal_isCrystallized: (a: number) => number;
|
||||
export const wasmtimecrystal_new: (a: number, b: number) => number;
|
||||
export const wasmtimecrystal_oscillatorCount: (a: number) => number;
|
||||
export const wasmtimecrystal_patternType: (a: number, b: number) => void;
|
||||
export const wasmtimecrystal_periodMs: (a: number) => number;
|
||||
export const wasmtimecrystal_perturb: (a: number, b: number) => void;
|
||||
export const wasmtimecrystal_phasesJson: (a: number, b: number) => void;
|
||||
export const wasmtimecrystal_robustness: (a: number) => number;
|
||||
export const wasmtimecrystal_setCoupling: (a: number, b: number) => void;
|
||||
export const wasmtimecrystal_setDisorder: (a: number, b: number) => void;
|
||||
export const wasmtimecrystal_setDriving: (a: number, b: number) => void;
|
||||
export const wasmtimecrystal_signalsJson: (a: number, b: number) => void;
|
||||
export const wasmtimecrystal_synchronized: (a: number, b: number) => number;
|
||||
export const wasmtimecrystal_tick: (a: number, b: number) => void;
|
||||
export const wasmtimecrystal_orderParameter: (a: number) => number;
|
||||
export const __wbindgen_export: (a: number, b: number) => number;
|
||||
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
||||
export const __wbindgen_export3: (a: number) => void;
|
||||
export const __wbindgen_add_to_stack_pointer: (a: number) => number;
|
||||
export const __wbindgen_export4: (a: number, b: number, c: number) => void;
|
||||
export const __wbindgen_start: () => void;
|
||||
Reference in New Issue
Block a user