@gui-chat-plugin/tictactoe 0.1.0 → 0.1.2
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/README.md +2 -1
- package/dist/core.cjs +1 -9
- package/dist/core.js +2 -281
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -10
- package/dist/samples-5nF6v9m_.cjs +9 -0
- package/dist/samples-C6NC1xAK.js +405 -0
- package/dist/style.css +3 -1
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +207 -278
- package/package.json +16 -15
package/dist/vue.js
CHANGED
|
@@ -1,278 +1,207 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
},
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
function f(i) {
|
|
209
|
-
return i.charAt(0).toUpperCase() + i.slice(1);
|
|
210
|
-
}
|
|
211
|
-
return (i, c) => (l(), n("div", Y, [
|
|
212
|
-
u.result.jsonData ? (l(), n("div", q, [
|
|
213
|
-
s("div", J, [
|
|
214
|
-
s("div", K, [
|
|
215
|
-
s("div", Q, [
|
|
216
|
-
(l(!0), n(y, null, $(u.result.jsonData.board, (g, w) => (l(), n(y, { key: w }, [
|
|
217
|
-
(l(!0), n(y, null, $(g, (k, r) => (l(), n("div", {
|
|
218
|
-
key: `${w}-${r}`,
|
|
219
|
-
class: x(["w-6 h-6 flex items-center justify-center bg-white rounded-sm", e(w, r) ? "bg-yellow-200" : ""])
|
|
220
|
-
}, [
|
|
221
|
-
k === "X" ? (l(), n("svg", Z, [...c[0] || (c[0] = [
|
|
222
|
-
s("line", {
|
|
223
|
-
x1: "4",
|
|
224
|
-
y1: "4",
|
|
225
|
-
x2: "20",
|
|
226
|
-
y2: "20"
|
|
227
|
-
}, null, -1),
|
|
228
|
-
s("line", {
|
|
229
|
-
x1: "20",
|
|
230
|
-
y1: "4",
|
|
231
|
-
x2: "4",
|
|
232
|
-
y2: "20"
|
|
233
|
-
}, null, -1)
|
|
234
|
-
])])) : k === "O" ? (l(), n("svg", ee, [...c[1] || (c[1] = [
|
|
235
|
-
s("circle", {
|
|
236
|
-
cx: "12",
|
|
237
|
-
cy: "12",
|
|
238
|
-
r: "8"
|
|
239
|
-
}, null, -1)
|
|
240
|
-
])])) : C("", !0)
|
|
241
|
-
], 2))), 128))
|
|
242
|
-
], 64))), 128))
|
|
243
|
-
])
|
|
244
|
-
])
|
|
245
|
-
]),
|
|
246
|
-
s("div", te, [
|
|
247
|
-
u.result.jsonData.isTerminal ? (l(), n("div", {
|
|
248
|
-
key: 1,
|
|
249
|
-
class: x(["font-medium", T()])
|
|
250
|
-
}, d(p(u.result.jsonData)), 3)) : (l(), n("div", se, [
|
|
251
|
-
s("span", {
|
|
252
|
-
class: x(u.result.jsonData.currentSide === "X" ? "text-blue-600" : "text-red-600")
|
|
253
|
-
}, d(u.result.jsonData.currentSide), 3),
|
|
254
|
-
N(" " + d(f(u.result.jsonData.playerNames[u.result.jsonData.currentSide])) + " to play ", 1)
|
|
255
|
-
]))
|
|
256
|
-
])
|
|
257
|
-
])) : C("", !0)
|
|
258
|
-
]));
|
|
259
|
-
}
|
|
260
|
-
}), le = {
|
|
261
|
-
...O,
|
|
262
|
-
viewComponent: H,
|
|
263
|
-
previewComponent: ne,
|
|
264
|
-
samples: M
|
|
265
|
-
}, ae = { plugin: le };
|
|
266
|
-
export {
|
|
267
|
-
ne as Preview,
|
|
268
|
-
ce as SYSTEM_PROMPT,
|
|
269
|
-
de as TOOL_DEFINITION,
|
|
270
|
-
ve as TOOL_NAME,
|
|
271
|
-
H as View,
|
|
272
|
-
ae as default,
|
|
273
|
-
ye as executeTicTacToe,
|
|
274
|
-
fe as playTicTacToe,
|
|
275
|
-
le as plugin,
|
|
276
|
-
O as pluginCore,
|
|
277
|
-
M as samples
|
|
278
|
-
};
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./samples-C6NC1xAK.js";
|
|
2
|
+
import { Fragment as s, computed as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, defineComponent as p, normalizeClass as m, openBlock as h, ref as g, renderList as _, toDisplayString as v, watch as y } from "vue";
|
|
3
|
+
//#region src/vue/View.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var b = { class: "w-full h-full flex flex-col items-center justify-center p-4 bg-gray-100" }, x = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "flex flex-col items-center"
|
|
7
|
+
}, S = { key: 0 }, C = { key: 1 }, w = { class: "grid grid-cols-3 gap-1 p-2 bg-gray-700 rounded-lg shadow-lg" }, T = [
|
|
8
|
+
"onClick",
|
|
9
|
+
"onMouseenter",
|
|
10
|
+
"onMouseleave"
|
|
11
|
+
], E = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "w-16 h-16 text-blue-600",
|
|
14
|
+
viewBox: "0 0 24 24",
|
|
15
|
+
fill: "none",
|
|
16
|
+
stroke: "currentColor",
|
|
17
|
+
"stroke-width": "3",
|
|
18
|
+
"stroke-linecap": "round"
|
|
19
|
+
}, D = {
|
|
20
|
+
key: 1,
|
|
21
|
+
class: "w-16 h-16 text-red-600",
|
|
22
|
+
viewBox: "0 0 24 24",
|
|
23
|
+
fill: "none",
|
|
24
|
+
stroke: "currentColor",
|
|
25
|
+
"stroke-width": "3"
|
|
26
|
+
}, O = {
|
|
27
|
+
key: 1,
|
|
28
|
+
cx: "12",
|
|
29
|
+
cy: "12",
|
|
30
|
+
r: "8"
|
|
31
|
+
}, k = { class: "mt-4 flex gap-8 text-lg" }, A = { class: "flex items-center gap-2" }, j = { class: "text-gray-500 text-sm" }, M = { class: "flex items-center gap-2" }, N = { class: "text-gray-500 text-sm" }, P = /* @__PURE__ */ p({
|
|
32
|
+
__name: "View",
|
|
33
|
+
props: {
|
|
34
|
+
selectedResult: {},
|
|
35
|
+
sendTextMessage: { type: Function }
|
|
36
|
+
},
|
|
37
|
+
setup(e) {
|
|
38
|
+
let t = e, n = g(null), r = g(null);
|
|
39
|
+
y(() => t.selectedResult, (e) => {
|
|
40
|
+
e?.toolName === "playTicTacToe" && e.jsonData && (n.value = e.jsonData);
|
|
41
|
+
}, { immediate: !0 });
|
|
42
|
+
let i = c(() => {
|
|
43
|
+
if (!n.value?.playerNames) return "";
|
|
44
|
+
let e = n.value.playerNames[n.value.currentSide];
|
|
45
|
+
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
46
|
+
}), a = c(() => n.value?.playerNames && n.value.playerNames[n.value.currentSide] === "computer"), o = c(() => n.value ? n.value.isTerminal ? n.value.winner === "draw" ? "text-gray-600" : n.value.winner === "X" ? "text-blue-600" : "text-red-600" : n.value.currentSide === "X" ? "text-blue-600" : "text-red-600" : ""), p = c(() => {
|
|
47
|
+
if (!n.value?.board) return [];
|
|
48
|
+
let e = [];
|
|
49
|
+
for (let t = 0; t < 3; t++) for (let r = 0; r < 3; r++) {
|
|
50
|
+
let i = n.value.board[t][r], a = n.value.legalMoves?.some((e) => e.row === t && e.col === r), o = n.value.winningLine?.some((e) => e.row === t && e.col === r);
|
|
51
|
+
e.push({
|
|
52
|
+
row: t,
|
|
53
|
+
col: r,
|
|
54
|
+
piece: i === "." ? null : i,
|
|
55
|
+
isLegalMove: a ?? !1,
|
|
56
|
+
isWinningCell: o ?? !1
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
return e;
|
|
60
|
+
});
|
|
61
|
+
function P(e, t) {
|
|
62
|
+
let i = "";
|
|
63
|
+
return e.isWinningCell ? i = "bg-yellow-200 ring-2 ring-yellow-400" : e.isLegalMove && !a.value && !n.value?.isTerminal && (i = r.value === t ? "bg-gray-200 cursor-pointer" : "hover:bg-gray-100 cursor-pointer"), `w-24 h-24 flex items-center justify-center bg-white rounded ${i}`;
|
|
64
|
+
}
|
|
65
|
+
function F(e) {
|
|
66
|
+
if (!n.value || n.value.isTerminal || a.value) return;
|
|
67
|
+
let r = p.value[e];
|
|
68
|
+
if (!r.isLegalMove) return;
|
|
69
|
+
let i = `${[
|
|
70
|
+
"top",
|
|
71
|
+
"middle",
|
|
72
|
+
"bottom"
|
|
73
|
+
][r.row]}-${[
|
|
74
|
+
"left",
|
|
75
|
+
"center",
|
|
76
|
+
"right"
|
|
77
|
+
][r.col]}`, o = {
|
|
78
|
+
row: r.row,
|
|
79
|
+
col: r.col,
|
|
80
|
+
currentState: n.value
|
|
81
|
+
};
|
|
82
|
+
t.sendTextMessage?.(`I want to play at ${i}, which is row=${r.row}, col=${r.col}`, { data: o });
|
|
83
|
+
}
|
|
84
|
+
function I(e, t) {
|
|
85
|
+
!n.value || n.value.isTerminal || a.value || p.value[e].isLegalMove && (r.value = t ? e : null);
|
|
86
|
+
}
|
|
87
|
+
return (e, t) => (h(), u("div", b, [n.value ? (h(), u("div", x, [
|
|
88
|
+
t[6] ||= d("h1", { class: "text-2xl font-bold text-gray-800 mb-2" }, "Tic-Tac-Toe", -1),
|
|
89
|
+
d("div", { class: m(["text-lg font-semibold mb-4 text-center", o.value]) }, [n.value.isTerminal ? (h(), u(s, { key: 0 }, [n.value.winner === "draw" ? (h(), u("span", S, "It's a Draw!")) : (h(), u("span", C, v(n.value.winner) + " Wins!", 1))], 64)) : (h(), u(s, { key: 1 }, [f(v(i.value) + "'s Turn (" + v(n.value.currentSide) + ") ", 1)], 64))], 2),
|
|
90
|
+
d("div", w, [(h(!0), u(s, null, _(p.value, (e, i) => (h(), u("div", {
|
|
91
|
+
key: i,
|
|
92
|
+
class: m(P(e, i)),
|
|
93
|
+
onClick: (e) => F(i),
|
|
94
|
+
onMouseenter: (e) => I(i, !0),
|
|
95
|
+
onMouseleave: (e) => I(i, !1)
|
|
96
|
+
}, [e.piece === "X" ? (h(), u("svg", E, [...t[0] ||= [d("line", {
|
|
97
|
+
x1: "4",
|
|
98
|
+
y1: "4",
|
|
99
|
+
x2: "20",
|
|
100
|
+
y2: "20"
|
|
101
|
+
}, null, -1), d("line", {
|
|
102
|
+
x1: "20",
|
|
103
|
+
y1: "4",
|
|
104
|
+
x2: "4",
|
|
105
|
+
y2: "20"
|
|
106
|
+
}, null, -1)]])) : e.piece === "O" ? (h(), u("svg", D, [...t[1] ||= [d("circle", {
|
|
107
|
+
cx: "12",
|
|
108
|
+
cy: "12",
|
|
109
|
+
r: "8"
|
|
110
|
+
}, null, -1)]])) : e.isLegalMove && !a.value && r.value === i ? (h(), u("svg", {
|
|
111
|
+
key: 2,
|
|
112
|
+
class: m(["w-16 h-16 opacity-30", n.value.currentSide === "X" ? "text-blue-400" : "text-red-400"]),
|
|
113
|
+
viewBox: "0 0 24 24",
|
|
114
|
+
fill: "none",
|
|
115
|
+
stroke: "currentColor",
|
|
116
|
+
"stroke-width": "3",
|
|
117
|
+
"stroke-linecap": "round"
|
|
118
|
+
}, [n.value.currentSide === "X" ? (h(), u(s, { key: 0 }, [t[2] ||= d("line", {
|
|
119
|
+
x1: "4",
|
|
120
|
+
y1: "4",
|
|
121
|
+
x2: "20",
|
|
122
|
+
y2: "20"
|
|
123
|
+
}, null, -1), t[3] ||= d("line", {
|
|
124
|
+
x1: "20",
|
|
125
|
+
y1: "4",
|
|
126
|
+
x2: "4",
|
|
127
|
+
y2: "20"
|
|
128
|
+
}, null, -1)], 64)) : (h(), u("circle", O))], 2)) : l("", !0)], 42, T))), 128))]),
|
|
129
|
+
d("div", k, [d("div", A, [
|
|
130
|
+
t[4] ||= d("span", { class: "text-blue-600 font-bold" }, "X:", -1),
|
|
131
|
+
d("span", null, v(n.value.counts.X), 1),
|
|
132
|
+
d("span", j, "(" + v(n.value.playerNames.X) + ")", 1)
|
|
133
|
+
]), d("div", M, [
|
|
134
|
+
t[5] ||= d("span", { class: "text-red-600 font-bold" }, "O:", -1),
|
|
135
|
+
d("span", null, v(n.value.counts.O), 1),
|
|
136
|
+
d("span", N, "(" + v(n.value.playerNames.O) + ")", 1)
|
|
137
|
+
])])
|
|
138
|
+
])) : l("", !0)]));
|
|
139
|
+
}
|
|
140
|
+
}), F = { class: "p-3 bg-gray-50 rounded" }, I = {
|
|
141
|
+
key: 0,
|
|
142
|
+
class: "space-y-2"
|
|
143
|
+
}, L = { class: "flex justify-center" }, R = { class: "inline-block bg-gray-600 p-0.5 rounded" }, z = { class: "grid grid-cols-3 gap-0.5" }, B = {
|
|
144
|
+
key: 0,
|
|
145
|
+
class: "w-4 h-4 text-blue-600",
|
|
146
|
+
viewBox: "0 0 24 24",
|
|
147
|
+
fill: "none",
|
|
148
|
+
stroke: "currentColor",
|
|
149
|
+
"stroke-width": "3",
|
|
150
|
+
"stroke-linecap": "round"
|
|
151
|
+
}, V = {
|
|
152
|
+
key: 1,
|
|
153
|
+
class: "w-4 h-4 text-red-600",
|
|
154
|
+
viewBox: "0 0 24 24",
|
|
155
|
+
fill: "none",
|
|
156
|
+
stroke: "currentColor",
|
|
157
|
+
"stroke-width": "3"
|
|
158
|
+
}, H = { class: "text-xs text-center space-y-1" }, U = {
|
|
159
|
+
key: 0,
|
|
160
|
+
class: "text-gray-600"
|
|
161
|
+
}, W = /* @__PURE__ */ p({
|
|
162
|
+
__name: "Preview",
|
|
163
|
+
props: { result: {} },
|
|
164
|
+
setup(e) {
|
|
165
|
+
let t = e;
|
|
166
|
+
function n(e, n) {
|
|
167
|
+
return t.result.jsonData?.winningLine?.some((t) => t.row === e && t.col === n) ?? !1;
|
|
168
|
+
}
|
|
169
|
+
function r(e) {
|
|
170
|
+
return e.isTerminal ? e.winner === "draw" ? "Draw!" : e.winner === "X" ? "X Wins!" : e.winner === "O" ? "O Wins!" : "Game Over" : "";
|
|
171
|
+
}
|
|
172
|
+
function i() {
|
|
173
|
+
return t.result.jsonData?.isTerminal ? t.result.jsonData.winner === "draw" ? "text-gray-600" : t.result.jsonData.winner === "X" ? "text-blue-600" : t.result.jsonData.winner === "O" ? "text-red-600" : "" : "";
|
|
174
|
+
}
|
|
175
|
+
function a(e) {
|
|
176
|
+
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
177
|
+
}
|
|
178
|
+
return (t, o) => (h(), u("div", F, [e.result.jsonData ? (h(), u("div", I, [d("div", L, [d("div", R, [d("div", z, [(h(!0), u(s, null, _(e.result.jsonData.board, (e, t) => (h(), u(s, { key: t }, [(h(!0), u(s, null, _(e, (e, r) => (h(), u("div", {
|
|
179
|
+
key: `${t}-${r}`,
|
|
180
|
+
class: m(["w-6 h-6 flex items-center justify-center bg-white rounded-sm", n(t, r) ? "bg-yellow-200" : ""])
|
|
181
|
+
}, [e === "X" ? (h(), u("svg", B, [...o[0] ||= [d("line", {
|
|
182
|
+
x1: "4",
|
|
183
|
+
y1: "4",
|
|
184
|
+
x2: "20",
|
|
185
|
+
y2: "20"
|
|
186
|
+
}, null, -1), d("line", {
|
|
187
|
+
x1: "20",
|
|
188
|
+
y1: "4",
|
|
189
|
+
x2: "4",
|
|
190
|
+
y2: "20"
|
|
191
|
+
}, null, -1)]])) : e === "O" ? (h(), u("svg", V, [...o[1] ||= [d("circle", {
|
|
192
|
+
cx: "12",
|
|
193
|
+
cy: "12",
|
|
194
|
+
r: "8"
|
|
195
|
+
}, null, -1)]])) : l("", !0)], 2))), 128))], 64))), 128))])])]), d("div", H, [e.result.jsonData.isTerminal ? (h(), u("div", {
|
|
196
|
+
key: 1,
|
|
197
|
+
class: m(["font-medium", i()])
|
|
198
|
+
}, v(r(e.result.jsonData)), 3)) : (h(), u("div", U, [d("span", { class: m(e.result.jsonData.currentSide === "X" ? "text-blue-600" : "text-red-600") }, v(e.result.jsonData.currentSide), 3), f(" " + v(a(e.result.jsonData.playerNames[e.result.jsonData.currentSide])) + " to play ", 1)]))])])) : l("", !0)]));
|
|
199
|
+
}
|
|
200
|
+
}), G = {
|
|
201
|
+
...i,
|
|
202
|
+
viewComponent: P,
|
|
203
|
+
previewComponent: W,
|
|
204
|
+
samples: o
|
|
205
|
+
}, K = { plugin: G };
|
|
206
|
+
//#endregion
|
|
207
|
+
export { W as Preview, e as SYSTEM_PROMPT, r as TOOL_DEFINITION, a as TOOL_NAME, P as View, K as default, n as executeTicTacToe, t as playTicTacToe, G as plugin, i as pluginCore, o as samples };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gui-chat-plugin/tictactoe",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Tic-Tac-Toe game plugin for GUI Chat",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -34,24 +34,25 @@
|
|
|
34
34
|
"lint": "eslint src demo"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"gui-chat-protocol": "^0.0.
|
|
37
|
+
"gui-chat-protocol": "^0.0.4",
|
|
38
38
|
"vue": "^3.5.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
43
|
-
"@typescript-eslint/
|
|
44
|
-
"@
|
|
45
|
-
"
|
|
46
|
-
"eslint
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
41
|
+
"@eslint/js": "^10.0.1",
|
|
42
|
+
"@tailwindcss/vite": "^4.2.2",
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "^8.58.0",
|
|
44
|
+
"@typescript-eslint/parser": "^8.58.0",
|
|
45
|
+
"@vitejs/plugin-vue": "^6.0.5",
|
|
46
|
+
"eslint": "^10.1.0",
|
|
47
|
+
"eslint-plugin-vue": "^10.8.0",
|
|
48
|
+
"globals": "^17.4.0",
|
|
49
|
+
"gui-chat-protocol": "^0.0.4",
|
|
50
|
+
"tailwindcss": "^4.2.2",
|
|
50
51
|
"typescript": "~5.9.3",
|
|
51
|
-
"vite": "^
|
|
52
|
-
"vue": "^3.5.
|
|
53
|
-
"vue-eslint-parser": "^10.
|
|
54
|
-
"vue-tsc": "^3.2.
|
|
52
|
+
"vite": "^8.0.3",
|
|
53
|
+
"vue": "^3.5.31",
|
|
54
|
+
"vue-eslint-parser": "^10.4.0",
|
|
55
|
+
"vue-tsc": "^3.2.6"
|
|
55
56
|
},
|
|
56
57
|
"keywords": [
|
|
57
58
|
"guichat",
|