@gui-chat-plugin/othello 0.5.0 → 0.5.1

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/dist/core.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./samples-DLeaq6qU.cjs`);exports.SYSTEM_PROMPT=e.a,exports.TOOL_DEFINITION=e.o,exports.TOOL_NAME=e.s,exports.executeOthello=e.n,exports.playOthello=e.i,exports.pluginCore=e.r,exports.samples=e.t;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./samples-A7IJWg2K.cjs");exports.SYSTEM_PROMPT=e.a,exports.TOOL_DEFINITION=e.o,exports.TOOL_NAME=e.s,exports.executeOthello=e.n,exports.playOthello=e.i,exports.pluginCore=e.r,exports.samples=e.t;
package/dist/core.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./samples-RIphLQPv.js";
1
+ import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./samples-BiSciay3.js";
2
2
  export { e as SYSTEM_PROMPT, r as TOOL_DEFINITION, a as TOOL_NAME, n as executeOthello, t as playOthello, i as pluginCore, o as samples };
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./samples-DLeaq6qU.cjs`);exports.SYSTEM_PROMPT=e.a,exports.TOOL_DEFINITION=e.o,exports.TOOL_NAME=e.s,exports.executeOthello=e.n,exports.playOthello=e.i,exports.pluginCore=e.r,exports.samples=e.t;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./samples-A7IJWg2K.cjs");exports.SYSTEM_PROMPT=e.a,exports.TOOL_DEFINITION=e.o,exports.TOOL_NAME=e.s,exports.executeOthello=e.n,exports.playOthello=e.i,exports.pluginCore=e.r,exports.samples=e.t;
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./samples-RIphLQPv.js";
1
+ import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./samples-BiSciay3.js";
2
2
  export { e as SYSTEM_PROMPT, r as TOOL_DEFINITION, a as TOOL_NAME, n as executeOthello, t as playOthello, i as pluginCore, o as samples };
@@ -3,4 +3,4 @@ var e=`playOthello`,t={type:`function`,name:e,description:`Play Othello/Reversi
3
3
  2. For moves, the user specifies column (A-H) and row (1-8)
4
4
  3. Use the "move" action with the current board state
5
5
  4. Pass the current board state as-is - the game logic handles piece placement and flipping`,r=[[-1,-1],[-1,0],[-1,1],[0,-1],[0,1],[1,-1],[1,0],[1,1]];function i(){let e=[];for(let t=0;t<8;t++)e[t]=Array(8).fill(`.`);return e}function a(){let e=i();return e[3][3]=`W`,e[3][4]=`B`,e[4][3]=`B`,e[4][4]=`W`,e}function o(e){return e.map(e=>[...e])}function s(e,t){return e>=0&&e<8&&t>=0&&t<8}function c(e){return e===`B`?`W`:`B`}function l(e,t,n,r,i,a){let o=c(a),l=[],u=t+r,d=n+i;for(;s(u,d)&&e[u][d]===o;)l.push({row:u,col:d}),u+=r,d+=i;return s(u,d)&&e[u][d]===a&&l.length>0?l:[]}function u(e,t,n,i){if(e[t][n]!==`.`)return[];let a=[];for(let[o,s]of r){let r=l(e,t,n,o,s,i);a.push(...r)}return a}function d(e,t,n,r){return u(e,t,n,r).length>0}function f(e,t){let n=[];for(let r=0;r<8;r++)for(let i=0;i<8;i++)d(e,r,i,t)&&n.push({row:r,col:i});return n}function p(e,t,n,r){let i=o(e),a=u(e,t,n,r);i[t][n]=r;for(let{row:e,col:t}of a)i[e][t]=r;return{newBoard:i,flippedCount:a.length}}function m(e){let t=0,n=0,r=0;for(let i=0;i<8;i++)for(let a=0;a<8;a++){let o=e[i][a];o===`B`?t++:o===`W`?n++:r++}return{B:t,W:n,empty:r}}function h(e){return e.empty>0?null:e.B>e.W?`B`:e.W>e.B?`W`:`draw`}function g(e){if(e.action===`new_game`){let{playerNames:t}=e,n=a();return{board:n,currentSide:`B`,playerNames:t,legalMoves:f(n,`B`),counts:m(n),isTerminal:!1,winner:null,lastAction:{type:`new_game`}}}if(e.action===`pass`){let{board:t,currentSide:n,playerNames:r}=e,i=c(n),a=f(t,i),o=m(t),s=a.length===0;return{board:t,currentSide:i,playerNames:r,legalMoves:a,counts:o,isTerminal:s,winner:s?h(o):null,lastAction:{type:`pass`}}}let{row:t,col:n,board:r,currentSide:i,playerNames:o}=e;if(!d(r,t,n,i))return{board:r,currentSide:i,playerNames:o,legalMoves:f(r,i),counts:m(r),isTerminal:!1,winner:null,lastAction:{type:`pass`},error:`Invalid move: (${t}, ${n}) is not a legal move for ${i}`};let{newBoard:s,flippedCount:l}=p(r,t,n,i),u=c(i),g=f(s,u),_=m(s),v=g.length===0&&f(s,i).length===0;return{board:s,currentSide:u,playerNames:o,legalMoves:g,counts:_,isTerminal:v,winner:v?h(_):null,lastAction:{type:`move`,row:t,col:n,flipped:l}}}var _=async(e,t)=>{try{let e;if(t.action===`new_game`){let n;n=t.firstPlayer?t.firstPlayer:Math.random()<.5?`computer`:`user`,e={action:`new_game`,playerNames:{B:n,W:n===`user`?`computer`:`user`}}}else if(t.action===`move`){if(typeof t.row!=`number`||typeof t.col!=`number`||!t.board||!t.currentSide||!t.playerNames)throw Error(`Move action requires row, col, board, currentSide, and playerNames parameters`);e={action:`move`,row:t.row,col:t.col,board:t.board,currentSide:t.currentSide,playerNames:t.playerNames}}else if(t.action===`pass`){if(!t.board||!t.currentSide||!t.playerNames)throw Error(`Pass action requires board, currentSide, and playerNames parameters`);e={action:`pass`,board:t.board,currentSide:t.currentSide,playerNames:t.playerNames}}else throw Error(`Unknown action: ${t.action}`);let n=g(e);if(n.error){let e=n.playerNames[n.currentSide]===`computer`,t=n.legalMoves.map(e=>`(${e.row}, ${e.col})`).join(`, `),r=e?`Invalid move attempted. You must make a valid move. Legal moves are: ${t}. Choose one of these moves.`:`Invalid move attempted. Tell the user they must make a valid move. Legal moves are: ${t}. The user will tell you the move by specifying column (A to H) and row (1 to 8).`;return{message:n.error,jsonData:n,instructions:r,updating:!0}}let r=``;n.lastAction.type===`new_game`?r=`Started a new Othello game! Black (●) goes first.`:n.lastAction.type===`move`?r=`Played at (${n.lastAction.row}, ${n.lastAction.col}) and flipped ${n.lastAction.flipped} pieces.`:n.lastAction.type===`pass`&&(r=`Passed the turn.`),n.isTerminal&&(n.winner===`draw`?r+=` Game over - it's a draw!`:n.winner&&(r+=` Game over - ${n.winner===`B`?`Black`:`White`} wins!`));let i=n.playerNames[n.currentSide]===`computer`,a=n.isTerminal?`The game is over. Announce the game result.`:i?`The game state has been updated. Do not describe the state of the game. It is assistant's turn. You MUSK choose your next move.`:`The game state has been updated. Tell the user to make a move. Do not describe the state of the game. The user is able to see it. The user will tell you the move by specifying colum (A to H) and row (1 to 8)`;return{message:r,jsonData:n,instructions:a,instructionsRequired:n.isTerminal||i,updating:t.action!==`new_game`}}catch(e){return console.error(`ERR: exception
6
- Othello game error`,e),{message:`Othello game error: ${e instanceof Error?e.message:`Unknown error`}`,instructions:`Acknowledge that there was an error with the Othello game and suggest trying again.`}}},v={toolDefinition:t,execute:_,generatingMessage:`Processing Othello move...`,isEnabled:()=>!0,systemPrompt:n},y=[{name:`New Game (User First)`,args:{action:`new_game`,firstPlayer:`user`}},{name:`New Game (Computer First)`,args:{action:`new_game`,firstPlayer:`computer`}}];Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return y}});
6
+ Othello game error`,e),{message:`Othello game error: ${e instanceof Error?e.message:`Unknown error`}`,instructions:`Acknowledge that there was an error with the Othello game and suggest trying again.`}}},v={toolDefinition:t,execute:_,generatingMessage:`Processing Othello move...`,isEnabled:()=>!0,systemPrompt:n},y=[{name:`New Game (User First)`,args:{action:`new_game`,firstPlayer:`user`}},{name:`New Game (Computer First)`,args:{action:`new_game`,firstPlayer:`computer`}}];Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return y}});
package/dist/style.css CHANGED
@@ -1,3 +1,3 @@
1
- /*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
2
- @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-green-50:oklch(98.2% .018 155.826);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-green-800:oklch(44.8% .119 151.328);--color-green-900:oklch(39.3% .095 152.535);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-200:oklch(87% .065 274.039);--color-indigo-700:oklch(45.7% .24 277.023);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-3xl:48rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-medium:500;--font-weight-bold:700;--radius-md:.375rem;--radius-lg:.5rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.mx-auto{margin-inline:auto}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.contents{display:contents}.flex{display:flex}.grid{display:grid}.inline-block{display:inline-block}.h-3{height:calc(var(--spacing) * 3)}.h-4{height:calc(var(--spacing) * 4)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-\[500px\]{height:500px}.h-full{height:100%}.w-3{width:calc(var(--spacing) * 3)}.w-4{width:calc(var(--spacing) * 4)}.w-10{width:calc(var(--spacing) * 10)}.w-12{width:calc(var(--spacing) * 12)}.w-full{width:100%}.max-w-3xl{max-width:var(--container-3xl)}.max-w-\[200px\]{max-width:200px}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-2{gap:calc(var(--spacing) * 2)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-gray-600{border-color:var(--color-gray-600)}.border-green-900{border-color:var(--color-green-900)}.border-indigo-200{border-color:var(--color-indigo-200)}.bg-black{background-color:var(--color-black)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-800{background-color:var(--color-gray-800)}.bg-green-50{background-color:var(--color-green-50)}.bg-green-600{background-color:var(--color-green-600)}.bg-green-700{background-color:var(--color-green-700)}.bg-green-800{background-color:var(--color-green-800)}.bg-indigo-100{background-color:var(--color-indigo-100)}.bg-white{background-color:var(--color-white)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-8{padding:calc(var(--spacing) * 8)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-2{padding-block:calc(var(--spacing) * 2)}.text-center{text-align:center}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.text-gray-200{color:var(--color-gray-200)}.text-gray-300{color:var(--color-gray-300)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-indigo-700{color:var(--color-indigo-700)}.text-white{color:var(--color-white)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}@media (hover:hover){.hover\:bg-green-600:hover{background-color:var(--color-green-600)}.hover\:bg-indigo-200:hover{background-color:var(--color-indigo-200)}}}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}
1
+ /*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */
2
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-green-50:oklch(98.2% .018 155.826);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-green-800:oklch(44.8% .119 151.328);--color-green-900:oklch(39.3% .095 152.535);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-200:oklch(87% .065 274.039);--color-indigo-700:oklch(45.7% .24 277.023);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-3xl:48rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-medium:500;--font-weight-bold:700;--radius-md:.375rem;--radius-lg:.5rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.mx-auto{margin-inline:auto}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.contents{display:contents}.flex{display:flex}.grid{display:grid}.inline-block{display:inline-block}.h-3{height:calc(var(--spacing) * 3)}.h-4{height:calc(var(--spacing) * 4)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-\[500px\]{height:500px}.h-full{height:100%}.w-3{width:calc(var(--spacing) * 3)}.w-4{width:calc(var(--spacing) * 4)}.w-10{width:calc(var(--spacing) * 10)}.w-12{width:calc(var(--spacing) * 12)}.w-full{width:100%}.max-w-3xl{max-width:var(--container-3xl)}.max-w-\[200px\]{max-width:200px}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-2{gap:calc(var(--spacing) * 2)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-gray-600{border-color:var(--color-gray-600)}.border-green-900{border-color:var(--color-green-900)}.border-indigo-200{border-color:var(--color-indigo-200)}.bg-black{background-color:var(--color-black)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-800{background-color:var(--color-gray-800)}.bg-green-50{background-color:var(--color-green-50)}.bg-green-600{background-color:var(--color-green-600)}.bg-green-700{background-color:var(--color-green-700)}.bg-green-800{background-color:var(--color-green-800)}.bg-indigo-100{background-color:var(--color-indigo-100)}.bg-white{background-color:var(--color-white)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-8{padding:calc(var(--spacing) * 8)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-2{padding-block:calc(var(--spacing) * 2)}.text-center{text-align:center}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.text-gray-200{color:var(--color-gray-200)}.text-gray-300{color:var(--color-gray-300)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-indigo-700{color:var(--color-indigo-700)}.text-white{color:var(--color-white)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}@media (hover:hover){.hover\:bg-green-600:hover{background-color:var(--color-green-600)}.hover\:bg-indigo-200:hover{background-color:var(--color-indigo-200)}}}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}
3
3
  /*$vite$:1*/
package/dist/vue.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`./samples-DLeaq6qU.cjs`);let t=require(`vue`);var n={class:`w-full h-full flex flex-col items-center justify-center p-4`},r={key:0,class:`flex flex-col items-center`},i={class:`text-white text-lg font-bold mb-4 text-center`},a={class:`grid grid-cols-8 gap-0.5 p-4 bg-green-800 rounded-lg border-2 border-green-900`},o=[`onClick`,`onMouseenter`,`onMouseleave`],s={key:1,class:`w-10 h-10 flex items-center justify-center text-gray-300 text-sm font-bold`},c=(0,t.defineComponent)({__name:`View`,props:{selectedResult:{},sendTextMessage:{type:Function}},setup(e){let c=e,l=(0,t.ref)(null),u=(0,t.ref)(null);(0,t.watch)(()=>c.selectedResult,e=>{e?.toolName===`playOthello`&&e.jsonData&&(l.value=e.jsonData)},{immediate:!0});let d=(0,t.computed)(()=>{if(!l.value?.playerNames)return``;let e=l.value.playerNames[l.value.currentSide];return e.charAt(0).toUpperCase()+e.slice(1)}),f=(0,t.computed)(()=>l.value?l.value.currentSide===`B`?`Black`:`White`:``),p=(0,t.computed)(()=>l.value?.playerNames&&l.value.playerNames[l.value.currentSide]===`computer`),m=(0,t.computed)(()=>{if(!l.value?.board)return[];let e=[];for(let t=0;t<8;t++)for(let n=0;n<8;n++){let r=l.value.board[t][n],i=l.value.legalMoves?.some(e=>e.row===t&&e.col===n);e.push({row:t,col:n,piece:r===`.`?null:r,isLegalMove:i??!1,label:i?String.fromCharCode(65+n)+(t+1):``})}return e});function h(e,t){return`w-12 h-12 flex items-center justify-center border border-green-900 bg-green-700 ${e.isLegalMove&&!p.value&&u.value===t?`bg-green-600`:``} ${e.isLegalMove&&!p.value&&!l.value?.isTerminal?`cursor-pointer hover:bg-green-600`:`cursor-default`}`}function g(e){return e===`B`?`bg-black`:`bg-white`}function _(e){if(!l.value||l.value.isTerminal||p.value)return;let t=m.value[e];if(!t.isLegalMove)return;let n=String.fromCharCode(65+t.col),r=t.row+1,i={row:t.row,col:t.col,currentState:l.value};c.sendTextMessage(`I want to play at ${n}${r}, which is column=${t.col}, row=${t.row} `,{data:i})}function v(e,t){!l.value||l.value.isTerminal||p.value||m.value[e].isLegalMove&&(u.value=t?e:null)}return(e,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,n,[l.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,r,[(0,t.createElementVNode)(`div`,i,` Current Turn: `+(0,t.toDisplayString)(d.value)+` (`+(0,t.toDisplayString)(f.value)+`) `,1),(0,t.createElementVNode)(`div`,a,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(m.value,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:n,class:(0,t.normalizeClass)(h(e,n)),onClick:e=>_(n),onMouseenter:e=>v(n,!0),onMouseleave:e=>v(n,!1)},[e.piece?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)([g(e.piece),`w-10 h-10 rounded-full border-2 border-gray-600`])},null,2)):e.isLegalMove&&!p.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,s,(0,t.toDisplayString)(e.label),1)):(0,t.createCommentVNode)(``,!0)],42,o))),128))])])):(0,t.createCommentVNode)(``,!0)]))}}),l={class:`p-3 bg-green-50 rounded`},u={key:0,class:`space-y-1`},d={class:`flex justify-center`},f={class:`inline-block`,style:{"background-color":`#2d5016`,padding:`1px`}},p={class:`grid grid-cols-8`,style:{gap:`1px`}},m={key:0,class:`w-3 h-3 bg-black rounded-full`},h={key:1,class:`w-3 h-3 bg-white rounded-full`},g={class:`text-xs text-center space-y-1`},_={key:0,class:`text-gray-600`},v={key:1,class:`font-medium`},y=(0,t.defineComponent)({__name:`Preview`,props:{result:{}},setup(e){function n(e){return e.isTerminal?e.winner===`draw`?`Draw!`:e.winner===`B`?`⚫ Black Wins!`:e.winner===`W`?`⚪ White Wins!`:`Game Over`:``}function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}return(i,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,l,[e.result.jsonData?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,u,[(0,t.createElementVNode)(`div`,d,[(0,t.createElementVNode)(`div`,f,[(0,t.createElementVNode)(`div`,p,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.result.jsonData.board,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:n},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e,(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:`${n}-${r}`,class:`w-4 h-4 flex items-center justify-center`,style:{"background-color":`#3d6b20`}},[e===`B`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,m)):e===`W`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,h)):(0,t.createCommentVNode)(``,!0)]))),128))],64))),128))])])]),(0,t.createElementVNode)(`div`,g,[e.result.jsonData.isTerminal?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,v,(0,t.toDisplayString)(n(e.result.jsonData)),1)):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,_,(0,t.toDisplayString)(e.result.jsonData.currentSide===`B`?`⚫`:`⚪`)+` `+(0,t.toDisplayString)(r(e.result.jsonData.playerNames[e.result.jsonData.currentSide]))+` to play `,1))])])):(0,t.createCommentVNode)(``,!0)]))}}),b={...e.r,viewComponent:c,previewComponent:y,samples:e.t},x={plugin:b};exports.Preview=y,exports.SYSTEM_PROMPT=e.a,exports.TOOL_DEFINITION=e.o,exports.TOOL_NAME=e.s,exports.View=c,exports.default=x,exports.executeOthello=e.n,exports.playOthello=e.i,exports.plugin=b,exports.pluginCore=e.r,exports.samples=e.t;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./samples-A7IJWg2K.cjs");let t=require("vue");var n={class:`w-full h-full flex flex-col items-center justify-center p-4`},r={key:0,class:`flex flex-col items-center`},i={class:`text-white text-lg font-bold mb-4 text-center`},a={class:`grid grid-cols-8 gap-0.5 p-4 bg-green-800 rounded-lg border-2 border-green-900`},o=[`onClick`,`onMouseenter`,`onMouseleave`],s={key:1,class:`w-10 h-10 flex items-center justify-center text-gray-300 text-sm font-bold`},c=(0,t.defineComponent)({__name:`View`,props:{selectedResult:{},sendTextMessage:{type:Function}},setup(e){let c=e,l=(0,t.ref)(null),u=(0,t.ref)(null);(0,t.watch)(()=>c.selectedResult,e=>{e?.toolName===`playOthello`&&e.jsonData&&(l.value=e.jsonData)},{immediate:!0});let d=(0,t.computed)(()=>{if(!l.value?.playerNames)return``;let e=l.value.playerNames[l.value.currentSide];return e.charAt(0).toUpperCase()+e.slice(1)}),f=(0,t.computed)(()=>l.value?l.value.currentSide===`B`?`Black`:`White`:``),p=(0,t.computed)(()=>l.value?.playerNames&&l.value.playerNames[l.value.currentSide]===`computer`),m=(0,t.computed)(()=>{if(!l.value?.board)return[];let e=[];for(let t=0;t<8;t++)for(let n=0;n<8;n++){let r=l.value.board[t][n],i=l.value.legalMoves?.some(e=>e.row===t&&e.col===n);e.push({row:t,col:n,piece:r===`.`?null:r,isLegalMove:i??!1,label:i?String.fromCharCode(65+n)+(t+1):``})}return e});function h(e,t){return`w-12 h-12 flex items-center justify-center border border-green-900 bg-green-700 ${e.isLegalMove&&!p.value&&u.value===t?`bg-green-600`:``} ${e.isLegalMove&&!p.value&&!l.value?.isTerminal?`cursor-pointer hover:bg-green-600`:`cursor-default`}`}function g(e){return e===`B`?`bg-black`:`bg-white`}function _(e){if(!l.value||l.value.isTerminal||p.value)return;let t=m.value[e];if(!t.isLegalMove)return;let n=String.fromCharCode(65+t.col),r=t.row+1,i={row:t.row,col:t.col,currentState:l.value};c.sendTextMessage(`I want to play at ${n}${r}, which is column=${t.col}, row=${t.row} `,{data:i})}function v(e,t){!l.value||l.value.isTerminal||p.value||m.value[e].isLegalMove&&(u.value=t?e:null)}return(e,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,n,[l.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,r,[(0,t.createElementVNode)(`div`,i,` Current Turn: `+(0,t.toDisplayString)(d.value)+` (`+(0,t.toDisplayString)(f.value)+`) `,1),(0,t.createElementVNode)(`div`,a,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(m.value,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:n,class:(0,t.normalizeClass)(h(e,n)),onClick:e=>_(n),onMouseenter:e=>v(n,!0),onMouseleave:e=>v(n,!1)},[e.piece?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)([g(e.piece),`w-10 h-10 rounded-full border-2 border-gray-600`])},null,2)):e.isLegalMove&&!p.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,s,(0,t.toDisplayString)(e.label),1)):(0,t.createCommentVNode)(``,!0)],42,o))),128))])])):(0,t.createCommentVNode)(``,!0)]))}}),l={class:`p-3 bg-green-50 rounded`},u={key:0,class:`space-y-1`},d={class:`flex justify-center`},f={class:`inline-block`,style:{"background-color":`#2d5016`,padding:`1px`}},p={class:`grid grid-cols-8`,style:{gap:`1px`}},m={key:0,class:`w-3 h-3 bg-black rounded-full`},h={key:1,class:`w-3 h-3 bg-white rounded-full`},g={class:`text-xs text-center space-y-1`},_={key:0,class:`text-gray-600`},v={key:1,class:`font-medium`},y=(0,t.defineComponent)({__name:`Preview`,props:{result:{}},setup(e){function n(e){return e.isTerminal?e.winner===`draw`?`Draw!`:e.winner===`B`?`⚫ Black Wins!`:e.winner===`W`?`⚪ White Wins!`:`Game Over`:``}function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}return(i,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,l,[e.result.jsonData?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,u,[(0,t.createElementVNode)(`div`,d,[(0,t.createElementVNode)(`div`,f,[(0,t.createElementVNode)(`div`,p,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.result.jsonData.board,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:n},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e,(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:`${n}-${r}`,class:`w-4 h-4 flex items-center justify-center`,style:{"background-color":`#3d6b20`}},[e===`B`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,m)):e===`W`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,h)):(0,t.createCommentVNode)(``,!0)]))),128))],64))),128))])])]),(0,t.createElementVNode)(`div`,g,[e.result.jsonData.isTerminal?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,v,(0,t.toDisplayString)(n(e.result.jsonData)),1)):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,_,(0,t.toDisplayString)(e.result.jsonData.currentSide===`B`?`⚫`:`⚪`)+` `+(0,t.toDisplayString)(r(e.result.jsonData.playerNames[e.result.jsonData.currentSide]))+` to play `,1))])])):(0,t.createCommentVNode)(``,!0)]))}}),b={...e.r,viewComponent:c,previewComponent:y,samples:e.t},x={plugin:b};exports.Preview=y,exports.SYSTEM_PROMPT=e.a,exports.TOOL_DEFINITION=e.o,exports.TOOL_NAME=e.s,exports.View=c,exports.default=x,exports.executeOthello=e.n,exports.playOthello=e.i,exports.plugin=b,exports.pluginCore=e.r,exports.samples=e.t;
package/dist/vue.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./samples-RIphLQPv.js";
1
+ import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./samples-BiSciay3.js";
2
2
  import { Fragment as s, computed as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, defineComponent as f, normalizeClass as p, openBlock as m, ref as h, renderList as g, toDisplayString as _, watch as v } from "vue";
3
3
  //#region src/vue/View.vue?vue&type=script&setup=true&lang.ts
4
4
  var y = { class: "w-full h-full flex flex-col items-center justify-center p-4" }, b = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gui-chat-plugin/othello",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Othello/Reversi game plugin for GUI Chat",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -39,20 +39,20 @@
39
39
  },
40
40
  "devDependencies": {
41
41
  "@eslint/js": "^10.0.1",
42
- "@tailwindcss/vite": "^4.2.4",
43
- "@typescript-eslint/eslint-plugin": "^8.59.2",
44
- "@typescript-eslint/parser": "^8.59.2",
45
- "@vitejs/plugin-vue": "^6.0.5",
46
- "eslint": "^10.3.0",
47
- "eslint-plugin-vue": "^10.9.1",
48
- "globals": "^17.6.0",
42
+ "@tailwindcss/vite": "^4.3.2",
43
+ "@typescript-eslint/eslint-plugin": "^8.64.0",
44
+ "@typescript-eslint/parser": "^8.64.0",
45
+ "@vitejs/plugin-vue": "^6.0.8",
46
+ "eslint": "^10.7.0",
47
+ "eslint-plugin-vue": "^10.9.2",
48
+ "globals": "^17.7.0",
49
49
  "gui-chat-protocol": "^0.4.0",
50
- "tailwindcss": "^4.2.4",
50
+ "tailwindcss": "^4.3.2",
51
51
  "typescript": "~6.0.3",
52
- "vite": "^8.0.11",
53
- "vue": "^3.5.34",
54
- "vue-eslint-parser": "^10.4.0",
55
- "vue-tsc": "^3.2.8"
52
+ "vite": "^8.1.4",
53
+ "vue": "^3.5.39",
54
+ "vue-eslint-parser": "^10.4.1",
55
+ "vue-tsc": "^3.3.7"
56
56
  },
57
57
  "keywords": [
58
58
  "guichat",