@uzuhq/code-cli 0.6.2 → 0.6.4

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.
@@ -1,5 +1,4 @@
1
1
  // ../engine-core/src/types.ts
2
- var SERVER_TIME = "__SERVER_TIME__";
3
2
  var DEFAULT_ICON_URLS = [
4
3
  "https://imagedelivery.net/htp-D7B2hJT5XtdWYN9e7Q/4d0da24d-bcf2-4f7b-d1a0-f1bb8c747300/original",
5
4
  "https://imagedelivery.net/htp-D7B2hJT5XtdWYN9e7Q/8c75fccb-41d6-429d-e943-06c728a72a00/original",
@@ -233,7 +232,7 @@ function parseRoster(rosterParam) {
233
232
  return null;
234
233
  }
235
234
  if (!Array.isArray(raw)) return null;
236
- return raw.filter((p) => (p.kind ?? "player") === "player").map((p) => ({
235
+ return raw.map((p) => ({
237
236
  id: p.id,
238
237
  nickname: p.name ?? "Guest",
239
238
  iconUrl: p.iconUrl ?? "",
@@ -242,7 +241,7 @@ function parseRoster(rosterParam) {
242
241
  }
243
242
 
244
243
  // ../engine-core/src/versions.ts
245
- var BRIDGE_VERSION = 2;
244
+ var BRIDGE_VERSION = 1;
246
245
  var WIRE_VERSION = 2;
247
246
  export {
248
247
  BRIDGE_VERSION,
@@ -250,7 +249,6 @@ export {
250
249
  GAME_START,
251
250
  GameClock,
252
251
  NO_PLAYERS_GRACE_MS,
253
- SERVER_TIME,
254
252
  SeededRandomImpl,
255
253
  WIRE_VERSION,
256
254
  applyPatch,
@@ -2126,8 +2126,7 @@ function toWireSeat(seat) {
2126
2126
  id: seat.id,
2127
2127
  name: seat.nickname,
2128
2128
  iconUrl: seat.iconUrl,
2129
- characterId: seat.characterId,
2130
- kind: "player"
2129
+ characterId: seat.characterId
2131
2130
  };
2132
2131
  }
2133
2132
  function buildIframeUrl(opts, playerIndex) {
@@ -2136,9 +2135,7 @@ function buildIframeUrl(opts, playerIndex) {
2136
2135
  url.searchParams.set("server", opts.serverBaseUrl);
2137
2136
  url.searchParams.set("roomId", opts.roomKey);
2138
2137
  url.searchParams.set("seatId", pane.id);
2139
- const roster = JSON.stringify(opts.players.map(toWireSeat));
2140
- url.searchParams.set("players", roster);
2141
- url.searchParams.set("seats", roster);
2138
+ url.searchParams.set("players", JSON.stringify(opts.players.map(toWireSeat)));
2142
2139
  url.searchParams.set("seatKind", pane.seatKind);
2143
2140
  url.searchParams.set("revisionId", opts.revisionId);
2144
2141
  url.searchParams.set("__dev_player", String(playerIndex));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uzuhq/code-cli",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
4
4
  "description": "UZU ゲーム開発 CLI - ビルド・パブリッシュ・プロジェクト作成ツール",
5
5
  "type": "module",
6
6
  "bin": {
@@ -32,7 +32,8 @@
32
32
  "@types/ws": "^8.5.14",
33
33
  "tsx": "^4.23.0",
34
34
  "typescript": "^6.0.0",
35
- "@uzuhq/code-engine-core": "0.0.0"
35
+ "@uzuhq/code-engine-core": "0.0.0",
36
+ "@uzuhq/code-room-core": "0.0.0"
36
37
  },
37
38
  "scripts": {
38
39
  "build": "node scripts/build.mjs",