@uzuhq/code-sdk 0.3.8 → 0.3.10

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 CHANGED
@@ -8,7 +8,7 @@ npm install @uzuhq/code-sdk
8
8
 
9
9
  ゲームのビルド・配信には [@uzuhq/code-cli](https://www.npmjs.com/package/@uzuhq/code-cli) を併用してください。
10
10
 
11
- > **Note:** API を変更した場合、このドキュメントも必ず同期してください。
11
+ <!-- 開発者向け: API を変更した場合、このドキュメントも必ず同期すること -->
12
12
 
13
13
  ## メッセージプロトコル
14
14
 
@@ -566,7 +566,7 @@ scenario の `test/*.ts` / `tools/*.ts` で SDK を import せず `window.__uzu_
566
566
 
567
567
  これで `(window as any).__uzu_dev` で殴らずに `window.__uzu_dev?.send({ as: 'dev_0', type: '...', payload: ... })` が補完 + 型チェックされる。SDK を直接 import するモジュールでは `dev-hooks.ts` 側の `declare global` で既に型が見えているため、本 entry を `types` に足す必要はない。
568
568
 
569
- 詳細は `docs/play_screen_v3/sdk-guide/dev-hooks.md` を参照。
569
+ 詳細は `docs/uzu_code/sdk-guide/dev-hooks.md` を参照。
570
570
 
571
571
  ## License
572
572
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @docs
3
- * - 外部 automation API: docs/docs/play_screen_v3/sdk-guide/dev-hooks.md
3
+ * - 外部 automation API: docs/docs/uzu_code/sdk-guide/dev-hooks.md
4
4
  *
5
5
  * 外部 automation (Playwright / AI agent / E2E test) が SDK が動いている iframe の
6
6
  * state を決定論的に読み書きするための window.__uzu_dev API。
package/dist/dev-hooks.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @docs
3
- * - 外部 automation API: docs/docs/play_screen_v3/sdk-guide/dev-hooks.md
3
+ * - 外部 automation API: docs/docs/uzu_code/sdk-guide/dev-hooks.md
4
4
  *
5
5
  * 外部 automation (Playwright / AI agent / E2E test) が SDK が動いている iframe の
6
6
  * state を決定論的に読み書きするための window.__uzu_dev API。
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @docs
3
- * - 外部 automation API: docs/docs/play_screen_v3/sdk-guide/dev-hooks.md
3
+ * - 外部 automation API: docs/docs/uzu_code/sdk-guide/dev-hooks.md
4
4
  *
5
5
  * `__uzu_dev.mergeRawState` / `__uzu_dev.patchRawState` の中身。
6
6
  * scenario state を「object 階層の部分更新 (RFC 7396)」と「array 要素単体の書換
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @docs
3
- * - 外部 automation API: docs/docs/play_screen_v3/sdk-guide/dev-hooks.md
3
+ * - 外部 automation API: docs/docs/uzu_code/sdk-guide/dev-hooks.md
4
4
  *
5
5
  * `__uzu_dev.mergeRawState` / `__uzu_dev.patchRawState` の中身。
6
6
  * scenario state を「object 階層の部分更新 (RFC 7396)」と「array 要素単体の書換
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * @docs
3
- * - SDK仕様: docs/docs/play_screen_v3/play-screen-sdk.md
4
- * - ブリッジ仕様: docs/docs/play_screen_v3/bridge.md
5
- * - Relay仕様: docs/docs/play_screen_v3/relay.md
6
- * - SyncRoom仕様: docs/docs/play_screen_v3/sync-room.md
7
- * - ゲーム仕様: docs/docs/play_screen_v3/games.md
8
- * - システム全体像: docs/docs/play_screen_v3/overview.md
9
- * - AI用APIリファレンス (README): javascript/play_screen_v3/uzuhq-sdk/README.md
3
+ * - SDK仕様: docs/docs/uzu_code/play-screen-sdk.md
4
+ * - ブリッジ仕様: docs/docs/uzu_code/bridge.md
5
+ * - Relay仕様: docs/docs/uzu_code/relay.md
6
+ * - SyncRoom仕様: docs/docs/uzu_code/sync-room.md
7
+ * - ゲーム仕様: docs/docs/uzu_code/games.md
8
+ * - システム全体像: docs/docs/uzu_code/overview.md
9
+ * - AI用APIリファレンス (README): javascript/uzu_code/sdk/README.md
10
10
  *
11
11
  * SDK は runtime のみ。 dev harness の DOM 描画 (iframe grid / HUD / state
12
12
  * inspector) と in-memory サーバー (Node ws による GameRoom / SyncRoom / RelayRoom) は
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @docs
3
- * - ServerAction仕様: docs/docs/play_screen_v3/connection-method/arch3-authority.md
4
- * - SDK仕様: docs/docs/play_screen_v3/play-screen-sdk.md
3
+ * - ServerAction仕様: docs/docs/uzu_code/connection-method/arch3-authority.md
4
+ * - SDK仕様: docs/docs/uzu_code/play-screen-sdk.md
5
5
  *
6
6
  * ブラウザ内 LocalGameRoom — GameRoom DO の動作をサーバーレスで再現する。
7
7
  * server_url がない場合に vite dev だけで ServerAction シナリオをローカル実行する。
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @docs
3
- * - ServerAction仕様: docs/docs/play_screen_v3/connection-method/arch3-authority.md
4
- * - 開発パターン: docs/docs/play_screen_v3/sdk-guide/patterns.md
3
+ * - ServerAction仕様: docs/docs/uzu_code/connection-method/arch3-authority.md
4
+ * - 開発パターン: docs/docs/uzu_code/sdk-guide/patterns.md
5
5
  *
6
6
  * ServerAction の楽観的更新クライアント — online / emulator 共通ロジック。
7
7
  *
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @docs
3
- * - ServerAction仕様: docs/docs/play_screen_v3/connection-method/arch3-authority.md
4
- * - SDK仕様: docs/docs/play_screen_v3/play-screen-sdk.md
3
+ * - ServerAction仕様: docs/docs/uzu_code/connection-method/arch3-authority.md
4
+ * - SDK仕様: docs/docs/uzu_code/play-screen-sdk.md
5
5
  *
6
6
  * ServerAction モードのオンライン接続 (WebSocket トランスポート)。
7
7
  *
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @docs
3
- * - ServerAction仕様: docs/docs/play_screen_v3/connection-method/arch3-authority.md
4
- * - 開発パターン: docs/docs/play_screen_v3/sdk-guide/patterns.md
3
+ * - ServerAction仕様: docs/docs/uzu_code/connection-method/arch3-authority.md
4
+ * - 開発パターン: docs/docs/uzu_code/sdk-guide/patterns.md
5
5
  *
6
6
  * serverOnly() で wrap した handler はクライアント側の楽観的更新(先行実行)を
7
7
  * スキップし、サーバー側でだけ実行される。fetch などの副作用付き処理を安全に
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @docs
3
- * - SDK仕様: docs/docs/play_screen_v3/play-screen-sdk.md
4
- * - 開発パターン: docs/docs/play_screen_v3/sdk-guide/patterns.md
3
+ * - SDK仕様: docs/docs/uzu_code/play-screen-sdk.md
4
+ * - 開発パターン: docs/docs/uzu_code/sdk-guide/patterns.md
5
5
  */
6
6
  import type { SyncConfig } from '../types.js';
7
7
  import type { SyncHandle } from '../dev-hooks.js';
package/dist/types.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * @docs
3
- * - SDK仕様: docs/docs/play_screen_v3/play-screen-sdk.md
4
- * - APIリファレンス: docs/docs/play_screen_v3/sdk-guide/api-reference.md
5
- * - 開発パターン: docs/docs/play_screen_v3/sdk-guide/patterns.md
6
- * - 外部 automation API: docs/docs/play_screen_v3/sdk-guide/dev-hooks.md
3
+ * - SDK仕様: docs/docs/uzu_code/play-screen-sdk.md
4
+ * - APIリファレンス: docs/docs/uzu_code/sdk-guide/api-reference.md
5
+ * - 開発パターン: docs/docs/uzu_code/sdk-guide/patterns.md
6
+ * - 外部 automation API: docs/docs/uzu_code/sdk-guide/dev-hooks.md
7
7
  */
8
8
  /** @deprecated 旧フラット形式。新コードでは BridgeMessage を使用 */
9
9
  export type PlayScreenMessage = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uzuhq/code-sdk",
3
- "version": "0.3.8",
3
+ "version": "0.3.10",
4
4
  "description": "UZU PlayScreen SDK - Flutter ↔ JS ゲーム通信ライブラリ",
5
5
  "type": "module",
6
6
  "exports": {