Skip to content

Commit

Permalink
Merge pull request #92 from Phuire-Research/UI
Browse files Browse the repository at this point in the history
Patched up puntStrategy
  • Loading branch information
REllEK-IO committed Oct 16, 2023
2 parents 92ed283 + 522f135 commit e3b241f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@phuire/strx",
"version": "0.0.34",
"version": "0.0.35",
"description": "Unified Turing Machine",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down
3 changes: 3 additions & 0 deletions src/model/actionStrategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ export const strategySuccess = (_strategy: ActionStrategy, data?: Record<string,
) {
const nextStrategy =
strategy.puntedStrategy.shift() as ActionStrategy;
nextStrategy.puntedStrategy = strategy.puntedStrategy;
const nextEntry = `${nextStrategy.topic}.`;
nextStrategy.actionList = [
...strategy.actionList,
Expand Down Expand Up @@ -288,6 +289,7 @@ export function strategyFailed(_strategy: ActionStrategy, data?: unknown) {
) {
const nextStrategy =
strategy.puntedStrategy.shift() as ActionStrategy;
nextStrategy.puntedStrategy = strategy.puntedStrategy;
const nextEntry = `${nextStrategy.topic}.`;
nextStrategy.actionList = [
...strategy.actionList,
Expand Down Expand Up @@ -366,6 +368,7 @@ export const strategyDecide = (
) {
const nextStrategy =
strategy.puntedStrategy.shift() as ActionStrategy;
nextStrategy.puntedStrategy = strategy.puntedStrategy;
const nextEntry = `${nextStrategy.topic}.`;
nextStrategy.actionList = [
...strategy.actionList,
Expand Down

0 comments on commit e3b241f

Please sign in to comment.