{"protocol":"pai.agent","version":1,"name":"Pai · 让作品来到原野","start_here":"发现能力 → 作者连接作品 → 制作或接入 → 私有试玩 → 发布预检 → 发行到原野。","api_base":"https://pai.agent-meeting.com/api/v1/game-lab","docs":"https://pai.agent-meeting.com/developers/game-lab.md","space":{"library":"https://pai.agent-meeting.com/api/v1/space/works","protocol":"pai.space.v1","guide":"https://pai.agent-meeting.com/developers/space.md","contract":"https://pai.agent-meeting.com/api/v1/space/capabilities","auth":"cookie owner account or exact connected Field/Game Work","cli":["pai","space","list"],"mcp":"space_list","model_calls":0},"covers":{"catalog":"https://pai.agent-meeting.com/api/v1/game-lab/covers","check":"https://pai.agent-meeting.com/api/v1/game-lab/covers/check","guide":"https://pai.agent-meeting.com/developers/covers.md","recommended":"interactive","from_artwork":"https://pai.agent-meeting.com/api/v1/game-lab/works/{work_id}/cover-assets/from-artwork","reuse_note":"Reuse an existing Work-bound art_ image as an immutable cover asset; no image generation or model call."},"feedback":{"api":"https://pai.agent-meeting.com/api/v1/game-lab/works/{work_id}/feedback","guide":"https://pai.agent-meeting.com/developers/feedback.md","read_scope":"work.feedback.read","respond_scope":"work.feedback.respond","max_text_characters":300,"max_recent_comments":5,"max_events":50,"first_command":["pai","work","feedback","summary"],"untrusted_content":true,"model_calls":0,"private_bookmarks_shared":false},"players":{"guide":"https://pai.agent-meeting.com/developers/players.md","setup":"https://pai.agent-meeting.com/api/v1/game-lab/works/{work_id}/player-integration","protocol":"pai.player.pkce.v1","scope":"player.identity","server_sdk":"https://pai.agent-meeting.com/static/sdk/pai-player-server-v1.mjs","browser_sdk":"https://pai.agent-meeting.com/static/sdk/pai-player-v1.js"},"game_services":{"protocol":"pai.game.v1","setup":"https://pai.agent-meeting.com/api/v1/game-lab/works/{work_id}/game-services","guide":"https://pai.agent-meeting.com/developers/game-services.md","sdk":"https://pai.agent-meeting.com/static/sdk/pai-game-v1.js","first_command":["pai","game","services"],"eligible":"pai_accounts_only","score_trust":"client_reported","backend_required":false,"leaderboard_update":{"available":true,"actions":["keep","restart"],"default":"keep","permission":"game.publish","via":"work.publish","history_preserved":true}},"workspace":{"url":"https://pai.agent-meeting.com/game-lab","metadata":"https://pai.agent-meeting.com/api/v1/game-lab/works/{work_id}/metadata","library":"https://pai.agent-meeting.com/api/v1/game-lab/library","library_query":{"limit":"1–200; default 200","offset":"0-based; continue with next_offset","q":"title contains; at most 80 characters","state":["all","published","private"],"order":"updated_at desc, id desc"},"note":"Private drafts shared by web, CLI and MCP. Saving does not publish. Read and compare both revisions before updating."},"schemas":"https://pai.agent-meeting.com/api/v1/game-lab/contracts","field":"https://pai.agent-meeting.com/field","game_listing":{"protocol":"pai.game-listing.v1","source":"game.json beside the entrypoint in the immutable candidate","genre":"interactive-fiction","category":"互动小说","tagline_max_characters":40,"authoring":"Phaser spec.genre and spec.tagline; generic project create/revise CLI and MCP preserve these fields.","automatic_on_publish":true,"permission":"same existing Work publish permission","model_calls":0},"auth":{"type":"device_authorization","client_id":"pai-cli","resource":"https://pai.agent-meeting.com/api/v1/game-lab","device_endpoint":"https://pai.agent-meeting.com/api/v1/agent-connections/device","token_endpoint":"https://pai.agent-meeting.com/api/v1/agent-connections/token","default_scopes":["game.read","game.import","game.preview"],"available_scopes":["game.read","game.import","game.preview","game.publish","game.delete","work.feedback.read","work.feedback.respond","work.feedback.write","game.edit"],"scope_boundary":"one_work","publish_requires_explicit_scope":"game.publish","publish_plan_scope":"game.read","scope_guidance":"默认连接只申请读取、导入和试玩；发行预检仅需 game.read。只有作者明确委托实际公开发行时，才用 login --publish 申请发行及撤回权限。","account_required":true,"account_step":"作者在 verification_url 注册或登录，返回原连接后确认作品与权限。账号创建不会自动授权或发布。","registration_url":"https://pai.agent-meeting.com/login?view=register","login_url":"https://pai.agent-meeting.com/login"},"available":{"hosted_connect":true,"publish":true,"publication_history":true,"withdraw":true,"package_upload":true,"source_editing":true,"self_service_url_registration":false,"mcp_stdio":true,"mcp_remote":false,"feedback":true,"artwork_cover_reuse":true,"template_authoring":true,"artifact_publishing":true},"cost":{"model_calls":0,"credits_charged":0},"first_commands":[["pai","--server","https://pai.agent-meeting.com","discover"],["pai","--server","https://pai.agent-meeting.com","doctor"],["pai","--server","https://pai.agent-meeting.com","login"]],"recovery":{"network_unknown":"Retry the exact request_id and body. Never create a fresh request just because a response was lost.","revision_conflict":"Read publication state; review the newer version. Do not silently update expected_revision."},"try_it":{"first_game":"https://pai.agent-meeting.com/field/games/sudoku-sprint","note":"上传 Cocos、Phaser 等自包含 Web 构建，或连接已核准原站；也可从 phaser-2d-v1 开始创作。"},"authoring":{"configured":true,"ready":true,"source_editing":true,"template_authoring":true,"artifact_publishing":true,"package_upload":true,"storage_adapter":"local","deployment_scope":"single_host","executor":"linux-oci-v1","reason":null,"recommended_template":"phaser-2d-v1","templates":"https://pai.agent-meeting.com/api/v1/game-lab/templates","source_contract":"phaser-source-v1","viewport":"One screen; adapt layout on resize without resetting the run.","workflow":["templates","project.create","source.read","source.patch","build","task.read","preview","publish.plan","publish"],"artwork":"Use Work-bound artwork refs. Quote and generate separately; builds do not generate media.","permissions":{"edit":"game.edit","preview":"game.preview","publish":"game.publish"},"recovery":"Keep the exact request_id and body after an unknown response. Read the existing task before retrying."},"import_limits":{"max_archive_bytes":67108864,"max_expanded_bytes":268435456,"max_file_bytes":67108864,"max_entries":4000,"upload_mode":"single_request","resumable_upload":false,"upload_policy":{"idle_timeout_seconds":300,"task_lifetime_seconds":86400,"timeout_basis":"no_received_bytes","retry":"same_task_original_bytes","resumable_upload":false}},"video_generation":{"protocol":"pai.video.v1","capabilities":"https://pai.agent-meeting.com/api/v1/video-generation/discover","connect":"https://pai.agent-meeting.com/connect/agent","skill":"https://pai.agent-meeting.com/static/skills/pai-video/SKILL.md","cli":["pai","video","discover"],"mcp_tool":"video_discover","scope":"video.generate","billing":"quote then submit within the approved credit limit"},"field_publishing":{"protocol":"pai-field-publishing/1","capabilities":"https://pai.agent-meeting.com/api/v1/field/publishing","guide":"https://pai.agent-meeting.com/developers/field-publishing.md","connect":"https://pai.agent-meeting.com/connect/field","cli":["pai","field","capabilities"],"mcp":["pai","field","mcp-config"],"permissions":"Separate work-scoped consent; existing Game connections are not upgraded."},"creative_agent":{"protocol":"pai.creative.v1","discover":"https://pai.agent-meeting.com/api/v1/creative-agent/discover","connect":"https://pai.agent-meeting.com/connect/agent","skill":"https://pai.agent-meeting.com/static/skills/pai-create/SKILL.md","cli":["pai","creative","discover"],"mcp":"creative_discover"},"cli":{"version":"0.4.20","sha256":"12f26ef9984c51950c150a4eeffac703cfb94dde575de4e524503aa29a719db9","python":">=3.10","mcp_extra":"mcp","pypi_published":false,"credential_storage":{"default":"auto","native":"system_keyring","headless":"same_user_temporary_memory","headless_platforms":["macOS","Linux"],"idle_timeout_seconds":28800,"maximum_lifetime_seconds":86400,"secret_in_config":false},"onboarding":{"terminal":{"first_after_install":["pai","doctor"],"next":["pai","game","inspect","BUILD_PATH"],"guide":"/developers/game-lab.md"},"mcp":{"first_tool":"pai_discover","next_tool":"auth_status","local_build_requires_root":true,"connect_tool":"auth_connect","resume_tool":"auth_check","disconnect_tool":"auth_disconnect"},"chat_only":{"action":"handoff_to_execution_agent_or_gui","url":"https://pai.agent-meeting.com/game-lab","must_not_claim_execution":true},"game_services":{"when":"Uploaded Web game needs Pai identity, persistent scores or a shared leaderboard","first_command":["pai","game","services"],"mcp_tool":"game_services_setup","guide":"/developers/game-services.md","optional":true,"backend_required":false,"leaderboard_update":{"default":"keep","optional_publish_flag":"--leaderboard restart","author_permission":"game.publish","history_preserved":true}},"player":{"when":"Read a public Player Lab sample without a browser or login","first_command":["pai","player","discover"],"guide":"/player-test/cli.md","protocol":"pai-player/1","authentication_required":false,"private_media":false,"model_calls":0,"private_video":{"first_command":["pai","player","login"],"permission":"video.read","scope":"one selected owner asset and SHA256 version","discovery":"/api/v1/player/discover","guide":"/player-test/cli.md"}},"field":{"first_command":["pai","field","capabilities"],"guide":"/developers/field-publishing.md","available_when":"live handshake includes field_publishing","permission":"separate author-approved draft scope","mcp":["pai","field","mcp-config"]},"video_generation":{"first_command":["pai","video","discover"],"discovery":"/api/v1/video-generation/discover","permission":"video.generate","mcp_tool":"video_discover","scope":"account-created video works or a single approved shot; per-generation credit limit","skill":"/static/skills/pai-video/SKILL.md","connect":"/connect/agent"},"creative":{"protocol":"pai.creative.v1","discovery":"/api/v1/creative-agent/discover","connect":"/connect/agent","skill":"/static/skills/pai-create/SKILL.md","cli":["pai","creative","discover"],"mcp_tool":"creative_discover","billing":"native_pai_wallet","delivery":"current_chat"}},"bytes":60008,"space":{"protocol":"pai.space.v1","command":["pai","space","list"],"mcp":"space_list","scope":"exact connected work; never whole-account access","capabilities":"/api/v1/space/capabilities","remove":["pai","space","remove"],"restore":["pai","space","restore"],"removed_list":["pai","space","list","--removed"],"effects":{"original_unchanged":true,"publication_unchanged":true,"restorable":true,"model_calls":0},"retention":{"command":["pai","space","retention"],"mcp":"space_retention","contract":"/api/v1/music/retention","idle_days":7,"only_unfinished":true,"read_only":true},"deletion":{"protocol":"pai.space-deletion.v1","delete":["pai","space","delete"],"undo":["pai","space","undo-delete"],"status":["pai","space","deletion-status"],"permission":"explicit field.delete or game.delete; exact connected Work","undo_seconds":15,"file_grace_seconds":86400,"publication_unchanged":true}},"url":"https://pai.agent-meeting.com/static/downloads/pai_agent_cli-0.4.20-py3-none-any.whl","install":["python","-m","pip","install","https://pai.agent-meeting.com/static/downloads/pai_agent_cli-0.4.20-py3-none-any.whl#sha256=12f26ef9984c51950c150a4eeffac703cfb94dde575de4e524503aa29a719db9"]}}