appback-ai-agent 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appback-ai-agent",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Self-improving AI game agent for ClawClash. Auto-discovers games, fights, collects data, and trains models.",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -291,7 +291,7 @@ class GcAdapter extends BaseGameAdapter {
291
291
  try {
292
292
  // Try ONNX model inference
293
293
  if (this.modelRegistry && features) {
294
- const model = this.modelRegistry.getModel('gc', 'gc_move_model')
294
+ const model = this.modelRegistry.getProvider('gc', 'gc_move_model')
295
295
  if (model) {
296
296
  const actionMask = this.featureBuilder.buildActionMask(me, gameState)
297
297
  const logits = await model.infer(features)
@@ -309,7 +309,7 @@ class GcAdapter extends BaseGameAdapter {
309
309
  }
310
310
 
311
311
  // Heuristic fallback if no model
312
- if (direction === 'stay' && !this.modelRegistry?.getModel('gc', 'gc_move_model')) {
312
+ if (direction === 'stay' && !this.modelRegistry?.getProvider('gc', 'gc_move_model')) {
313
313
  direction = this._heuristicMove(me, gameState)
314
314
  }
315
315