pi-yun 0.2.9 → 0.3.0

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.
Files changed (299) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +10 -8
  3. package/.next/build-manifest.json +2 -2
  4. package/.next/required-server-files.js +1 -1
  5. package/.next/required-server-files.json +1 -1
  6. package/.next/routes-manifest.json +12 -0
  7. package/.next/server/app/_global-error/page.js +2 -2
  8. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  9. package/.next/server/app/_global-error.html +1 -1
  10. package/.next/server/app/_global-error.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  13. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  14. package/.next/server/app/_not-found/page.js +1 -1
  15. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  16. package/.next/server/app/_not-found.html +1 -1
  17. package/.next/server/app/_not-found.rsc +3 -3
  18. package/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
  19. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
  20. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  21. package/.next/server/app/api/agent/[id]/bash-output/route.js +1 -1
  22. package/.next/server/app/api/agent/[id]/events/route.js +1 -1
  23. package/.next/server/app/api/agent/[id]/lease/route.js +1 -1
  24. package/.next/server/app/api/agent/[id]/route.js +1 -1
  25. package/.next/server/app/api/agent/debug/route.js +1 -1
  26. package/.next/server/app/api/agent/new/route.js +1 -1
  27. package/.next/server/app/api/agent/running/route.js +1 -1
  28. package/.next/server/app/api/app-update/route.js +1 -1
  29. package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -1
  30. package/.next/server/app/api/auth/login/[provider]/route.js +2 -2
  31. package/.next/server/app/api/auth/logout/[provider]/route.js +1 -1
  32. package/.next/server/app/api/auth/providers/route.js +1 -1
  33. package/.next/server/app/api/cache-miss-notices/route.js +1 -1
  34. package/.next/server/app/api/cwd/browse/route.js +1 -1
  35. package/.next/server/app/api/cwd/browse/route.js.nft.json +2 -2
  36. package/.next/server/app/api/cwd/validate/route.js +1 -1
  37. package/.next/server/app/api/cwd/validate/route.js.nft.json +2 -2
  38. package/.next/server/app/api/default-cwd/route.js +1 -1
  39. package/.next/server/app/api/file-index/route.js +1 -1
  40. package/.next/server/app/api/files/[...path]/route.js +1 -1
  41. package/.next/server/app/api/git/diff/route.js +1 -1
  42. package/.next/server/app/api/git/status/route.js +1 -1
  43. package/.next/server/app/api/home/route.js +1 -1
  44. package/.next/server/app/api/mcp/route.js +2 -2
  45. package/.next/server/app/api/mcp/sign-in/[flowId]/route.js +1 -1
  46. package/.next/server/app/api/mcp/sign-in/route.js +1 -1
  47. package/.next/server/app/api/mcp/test/route.js +1 -1
  48. package/.next/server/app/api/models/default/route.js +1 -1
  49. package/.next/server/app/api/models/default/route.js.nft.json +2 -2
  50. package/.next/server/app/api/models/enabled/route.js +1 -1
  51. package/.next/server/app/api/models/enabled/route.js.nft.json +2 -2
  52. package/.next/server/app/api/models/refresh/route.js +1 -1
  53. package/.next/server/app/api/models/route.js +1 -1
  54. package/.next/server/app/api/models-config/catalog/route.js +1 -1
  55. package/.next/server/app/api/models-config/discover/route.js +1 -1
  56. package/.next/server/app/api/models-config/route.js +1 -1
  57. package/.next/server/app/api/models-config/test/route.js +1 -1
  58. package/.next/server/app/api/open-in-explorer/route.js +1 -1
  59. package/.next/server/app/api/plugins/check/route.js +1 -1
  60. package/.next/server/app/api/plugins/route.js +1 -1
  61. package/.next/server/app/api/project-trust/route.js +1 -1
  62. package/.next/server/app/api/provider-usage/query/route.js +1 -1
  63. package/.next/server/app/api/push/config/route.js +1 -1
  64. package/.next/server/app/api/push/subscribe/route.js +1 -1
  65. package/.next/server/app/api/sessions/[id]/auto-name/route.js +2 -2
  66. package/.next/server/app/api/sessions/[id]/context/route.js +1 -1
  67. package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js +1 -1
  68. package/.next/server/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route.js +1 -1
  69. package/.next/server/app/api/sessions/[id]/export/route.js +2 -2
  70. package/.next/server/app/api/sessions/[id]/fork/route.js +1 -1
  71. package/.next/server/app/api/sessions/[id]/route.js +1 -1
  72. package/.next/server/app/api/sessions/[id]/sources/route.js +1 -1
  73. package/.next/server/app/api/sessions/[id]/state/route.js +1 -1
  74. package/.next/server/app/api/sessions/delete/route.js +1 -1
  75. package/.next/server/app/api/sessions/route.js +1 -1
  76. package/.next/server/app/api/sessions/search/route.js +1 -1
  77. package/.next/server/app/api/sessions/stats/route.js +1 -1
  78. package/.next/server/app/api/sessions/ui-state/route.js +1 -1
  79. package/.next/server/app/api/skills/check/route.js +1 -1
  80. package/.next/server/app/api/skills/content/route.js +1 -1
  81. package/.next/server/app/api/skills/install/route.js +1 -1
  82. package/.next/server/app/api/skills/remove/route.js +2 -0
  83. package/.next/server/app/api/skills/remove/route.js.nft.json +1 -0
  84. package/.next/server/app/api/skills/remove/route_client-reference-manifest.js +1 -0
  85. package/.next/server/app/api/skills/route.js +1 -1
  86. package/.next/server/app/api/skills/route.js.nft.json +1 -1
  87. package/.next/server/app/api/skills/search/route.js +1 -1
  88. package/.next/server/app/api/skills/transfer/route.js +2 -0
  89. package/.next/server/app/api/skills/transfer/route.js.nft.json +1 -0
  90. package/.next/server/app/api/skills/transfer/route_client-reference-manifest.js +1 -0
  91. package/.next/server/app/api/skills/update/route.js +1 -1
  92. package/.next/server/app/api/subagents/[id]/route.js +1 -1
  93. package/.next/server/app/api/subagents/profiles/route.js +1 -1
  94. package/.next/server/app/api/subagents/settings/route.js +1 -1
  95. package/.next/server/app/api/terminal/[id]/events/route.js +2 -2
  96. package/.next/server/app/api/terminal/[id]/route.js +1 -1
  97. package/.next/server/app/api/terminal/route.js +1 -1
  98. package/.next/server/app/api/tools/settings/route.js +1 -1
  99. package/.next/server/app/api/web-auth/route.js +1 -1
  100. package/.next/server/app/api/worktrees/route.js +1 -1
  101. package/.next/server/app/favicon.ico/route.js +1 -1
  102. package/.next/server/app/index.html +1 -1
  103. package/.next/server/app/index.rsc +6 -6
  104. package/.next/server/app/index.segments/__PAGE__.segment.rsc +6 -6
  105. package/.next/server/app/index.segments/_full.segment.rsc +6 -6
  106. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  107. package/.next/server/app/login/page.js +2 -2
  108. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  109. package/.next/server/app/login.html +1 -1
  110. package/.next/server/app/login.rsc +4 -4
  111. package/.next/server/app/login.segments/_full.segment.rsc +4 -4
  112. package/.next/server/app/login.segments/_tree.segment.rsc +2 -2
  113. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +4 -4
  114. package/.next/server/app/manifest.webmanifest/route.js +1 -1
  115. package/.next/server/app/page.js +4 -4
  116. package/.next/server/app/page_client-reference-manifest.js +1 -1
  117. package/.next/server/app/pet-preview/page.js +1 -1
  118. package/.next/server/app/pet-preview/page_client-reference-manifest.js +1 -1
  119. package/.next/server/app/pet-preview.html +1 -1
  120. package/.next/server/app/pet-preview.rsc +4 -4
  121. package/.next/server/app/pet-preview.segments/_full.segment.rsc +4 -4
  122. package/.next/server/app/pet-preview.segments/_tree.segment.rsc +2 -2
  123. package/.next/server/app/pet-preview.segments/pet-preview/__PAGE__.segment.rsc +4 -4
  124. package/.next/server/app-paths-manifest.json +10 -8
  125. package/.next/server/chunks/1249.js +1 -0
  126. package/.next/server/chunks/2243.js +1 -1
  127. package/.next/server/chunks/4733.js +1 -1
  128. package/.next/server/chunks/7365.js +1 -1
  129. package/.next/server/middleware-build-manifest.js +1 -1
  130. package/.next/server/pages/404.html +1 -1
  131. package/.next/server/pages/500.html +1 -1
  132. package/.next/static/chunks/1278-a342d5434023eb38.js +1 -0
  133. package/.next/static/chunks/app/_global-error/page-eea87d7c4840e5e7.js +1 -0
  134. package/.next/static/chunks/app/api/agent/[id]/bash-output/route-eea87d7c4840e5e7.js +1 -0
  135. package/.next/static/chunks/app/api/agent/[id]/events/route-eea87d7c4840e5e7.js +1 -0
  136. package/.next/static/chunks/app/api/agent/[id]/lease/route-eea87d7c4840e5e7.js +1 -0
  137. package/.next/static/chunks/app/api/agent/[id]/route-eea87d7c4840e5e7.js +1 -0
  138. package/.next/static/chunks/app/api/agent/debug/route-eea87d7c4840e5e7.js +1 -0
  139. package/.next/static/chunks/app/api/agent/new/route-eea87d7c4840e5e7.js +1 -0
  140. package/.next/static/chunks/app/api/agent/running/route-eea87d7c4840e5e7.js +1 -0
  141. package/.next/static/chunks/app/api/app-update/route-eea87d7c4840e5e7.js +1 -0
  142. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-eea87d7c4840e5e7.js +1 -0
  143. package/.next/static/chunks/app/api/auth/login/[provider]/route-eea87d7c4840e5e7.js +1 -0
  144. package/.next/static/chunks/app/api/auth/logout/[provider]/route-eea87d7c4840e5e7.js +1 -0
  145. package/.next/static/chunks/app/api/auth/providers/route-eea87d7c4840e5e7.js +1 -0
  146. package/.next/static/chunks/app/api/cache-miss-notices/route-eea87d7c4840e5e7.js +1 -0
  147. package/.next/static/chunks/app/api/cwd/browse/route-eea87d7c4840e5e7.js +1 -0
  148. package/.next/static/chunks/app/api/cwd/validate/route-eea87d7c4840e5e7.js +1 -0
  149. package/.next/static/chunks/app/api/default-cwd/route-eea87d7c4840e5e7.js +1 -0
  150. package/.next/static/chunks/app/api/file-index/route-eea87d7c4840e5e7.js +1 -0
  151. package/.next/static/chunks/app/api/files/[...path]/route-eea87d7c4840e5e7.js +1 -0
  152. package/.next/static/chunks/app/api/git/diff/route-eea87d7c4840e5e7.js +1 -0
  153. package/.next/static/chunks/app/api/git/status/route-eea87d7c4840e5e7.js +1 -0
  154. package/.next/static/chunks/app/api/home/route-eea87d7c4840e5e7.js +1 -0
  155. package/.next/static/chunks/app/api/mcp/route-eea87d7c4840e5e7.js +1 -0
  156. package/.next/static/chunks/app/api/mcp/sign-in/[flowId]/route-eea87d7c4840e5e7.js +1 -0
  157. package/.next/static/chunks/app/api/mcp/sign-in/route-eea87d7c4840e5e7.js +1 -0
  158. package/.next/static/chunks/app/api/mcp/test/route-eea87d7c4840e5e7.js +1 -0
  159. package/.next/static/chunks/app/api/models/default/route-eea87d7c4840e5e7.js +1 -0
  160. package/.next/static/chunks/app/api/models/enabled/route-eea87d7c4840e5e7.js +1 -0
  161. package/.next/static/chunks/app/api/models/refresh/route-eea87d7c4840e5e7.js +1 -0
  162. package/.next/static/chunks/app/api/models/route-eea87d7c4840e5e7.js +1 -0
  163. package/.next/static/chunks/app/api/models-config/catalog/route-eea87d7c4840e5e7.js +1 -0
  164. package/.next/static/chunks/app/api/models-config/discover/route-eea87d7c4840e5e7.js +1 -0
  165. package/.next/static/chunks/app/api/models-config/route-eea87d7c4840e5e7.js +1 -0
  166. package/.next/static/chunks/app/api/models-config/test/route-eea87d7c4840e5e7.js +1 -0
  167. package/.next/static/chunks/app/api/open-in-explorer/route-eea87d7c4840e5e7.js +1 -0
  168. package/.next/static/chunks/app/api/plugins/check/route-eea87d7c4840e5e7.js +1 -0
  169. package/.next/static/chunks/app/api/plugins/route-eea87d7c4840e5e7.js +1 -0
  170. package/.next/static/chunks/app/api/project-trust/route-eea87d7c4840e5e7.js +1 -0
  171. package/.next/static/chunks/app/api/provider-usage/query/route-eea87d7c4840e5e7.js +1 -0
  172. package/.next/static/chunks/app/api/push/config/route-eea87d7c4840e5e7.js +1 -0
  173. package/.next/static/chunks/app/api/push/subscribe/route-eea87d7c4840e5e7.js +1 -0
  174. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-eea87d7c4840e5e7.js +1 -0
  175. package/.next/static/chunks/app/api/sessions/[id]/context/route-eea87d7c4840e5e7.js +1 -0
  176. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-eea87d7c4840e5e7.js +1 -0
  177. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-eea87d7c4840e5e7.js +1 -0
  178. package/.next/static/chunks/app/api/sessions/[id]/export/route-eea87d7c4840e5e7.js +1 -0
  179. package/.next/static/chunks/app/api/sessions/[id]/fork/route-eea87d7c4840e5e7.js +1 -0
  180. package/.next/static/chunks/app/api/sessions/[id]/route-eea87d7c4840e5e7.js +1 -0
  181. package/.next/static/chunks/app/api/sessions/[id]/sources/route-eea87d7c4840e5e7.js +1 -0
  182. package/.next/static/chunks/app/api/sessions/[id]/state/route-eea87d7c4840e5e7.js +1 -0
  183. package/.next/static/chunks/app/api/sessions/delete/route-eea87d7c4840e5e7.js +1 -0
  184. package/.next/static/chunks/app/api/sessions/route-eea87d7c4840e5e7.js +1 -0
  185. package/.next/static/chunks/app/api/sessions/search/route-eea87d7c4840e5e7.js +1 -0
  186. package/.next/static/chunks/app/api/sessions/stats/route-eea87d7c4840e5e7.js +1 -0
  187. package/.next/static/chunks/app/api/sessions/ui-state/route-eea87d7c4840e5e7.js +1 -0
  188. package/.next/static/chunks/app/api/skills/check/route-eea87d7c4840e5e7.js +1 -0
  189. package/.next/static/chunks/app/api/skills/content/route-eea87d7c4840e5e7.js +1 -0
  190. package/.next/static/chunks/app/api/skills/install/route-eea87d7c4840e5e7.js +1 -0
  191. package/.next/static/chunks/app/api/skills/remove/route-eea87d7c4840e5e7.js +1 -0
  192. package/.next/static/chunks/app/api/skills/route-eea87d7c4840e5e7.js +1 -0
  193. package/.next/static/chunks/app/api/skills/search/route-eea87d7c4840e5e7.js +1 -0
  194. package/.next/static/chunks/app/api/skills/transfer/route-eea87d7c4840e5e7.js +1 -0
  195. package/.next/static/chunks/app/api/skills/update/route-eea87d7c4840e5e7.js +1 -0
  196. package/.next/static/chunks/app/api/subagents/[id]/route-eea87d7c4840e5e7.js +1 -0
  197. package/.next/static/chunks/app/api/subagents/profiles/route-eea87d7c4840e5e7.js +1 -0
  198. package/.next/static/chunks/app/api/subagents/settings/route-eea87d7c4840e5e7.js +1 -0
  199. package/.next/static/chunks/app/api/terminal/[id]/events/route-eea87d7c4840e5e7.js +1 -0
  200. package/.next/static/chunks/app/api/terminal/[id]/route-eea87d7c4840e5e7.js +1 -0
  201. package/.next/static/chunks/app/api/terminal/route-eea87d7c4840e5e7.js +1 -0
  202. package/.next/static/chunks/app/api/tools/settings/route-eea87d7c4840e5e7.js +1 -0
  203. package/.next/static/chunks/app/api/web-auth/route-eea87d7c4840e5e7.js +1 -0
  204. package/.next/static/chunks/app/api/worktrees/route-eea87d7c4840e5e7.js +1 -0
  205. package/.next/static/chunks/app/{layout-4111f1ce05960fb6.js → layout-56c76258dbb5abec.js} +1 -1
  206. package/.next/static/chunks/app/manifest.webmanifest/route-eea87d7c4840e5e7.js +1 -0
  207. package/.next/static/chunks/app/{page-076f04fd487bb3a1.js → page-cbfac13bc0fa885f.js} +15 -15
  208. package/.next/static/chunks/next/dist/client/components/builtin/app-error-eea87d7c4840e5e7.js +1 -0
  209. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-eea87d7c4840e5e7.js +1 -0
  210. package/.next/static/chunks/next/dist/client/components/builtin/not-found-eea87d7c4840e5e7.js +1 -0
  211. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-eea87d7c4840e5e7.js +1 -0
  212. package/.next/static/css/{ade11af447318d1b.css → 77332ff608093895.css} +1 -1
  213. package/.next/static/d8Nx7OPkoC7ZQGKA1PfDp/_buildManifest.js +1 -0
  214. package/.next/trace +61 -36
  215. package/.next/trace-build +1 -1
  216. package/.next/types/app/api/skills/remove/route.ts +355 -0
  217. package/.next/types/app/api/skills/transfer/route.ts +355 -0
  218. package/.next/types/routes.d.ts +3 -1
  219. package/.next/types/validator.ts +20 -0
  220. package/README.md +66 -103
  221. package/package.json +1 -1
  222. package/.next/static/GMnJIDnrO9liPdCob_JXE/_buildManifest.js +0 -1
  223. package/.next/static/chunks/1278-9248e1290eeb84bd.js +0 -1
  224. package/.next/static/chunks/app/_global-error/page-147c253c096ab7d7.js +0 -1
  225. package/.next/static/chunks/app/api/agent/[id]/bash-output/route-147c253c096ab7d7.js +0 -1
  226. package/.next/static/chunks/app/api/agent/[id]/events/route-147c253c096ab7d7.js +0 -1
  227. package/.next/static/chunks/app/api/agent/[id]/lease/route-147c253c096ab7d7.js +0 -1
  228. package/.next/static/chunks/app/api/agent/[id]/route-147c253c096ab7d7.js +0 -1
  229. package/.next/static/chunks/app/api/agent/debug/route-147c253c096ab7d7.js +0 -1
  230. package/.next/static/chunks/app/api/agent/new/route-147c253c096ab7d7.js +0 -1
  231. package/.next/static/chunks/app/api/agent/running/route-147c253c096ab7d7.js +0 -1
  232. package/.next/static/chunks/app/api/app-update/route-147c253c096ab7d7.js +0 -1
  233. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-147c253c096ab7d7.js +0 -1
  234. package/.next/static/chunks/app/api/auth/login/[provider]/route-147c253c096ab7d7.js +0 -1
  235. package/.next/static/chunks/app/api/auth/logout/[provider]/route-147c253c096ab7d7.js +0 -1
  236. package/.next/static/chunks/app/api/auth/providers/route-147c253c096ab7d7.js +0 -1
  237. package/.next/static/chunks/app/api/cache-miss-notices/route-147c253c096ab7d7.js +0 -1
  238. package/.next/static/chunks/app/api/cwd/browse/route-147c253c096ab7d7.js +0 -1
  239. package/.next/static/chunks/app/api/cwd/validate/route-147c253c096ab7d7.js +0 -1
  240. package/.next/static/chunks/app/api/default-cwd/route-147c253c096ab7d7.js +0 -1
  241. package/.next/static/chunks/app/api/file-index/route-147c253c096ab7d7.js +0 -1
  242. package/.next/static/chunks/app/api/files/[...path]/route-147c253c096ab7d7.js +0 -1
  243. package/.next/static/chunks/app/api/git/diff/route-147c253c096ab7d7.js +0 -1
  244. package/.next/static/chunks/app/api/git/status/route-147c253c096ab7d7.js +0 -1
  245. package/.next/static/chunks/app/api/home/route-147c253c096ab7d7.js +0 -1
  246. package/.next/static/chunks/app/api/mcp/route-147c253c096ab7d7.js +0 -1
  247. package/.next/static/chunks/app/api/mcp/sign-in/[flowId]/route-147c253c096ab7d7.js +0 -1
  248. package/.next/static/chunks/app/api/mcp/sign-in/route-147c253c096ab7d7.js +0 -1
  249. package/.next/static/chunks/app/api/mcp/test/route-147c253c096ab7d7.js +0 -1
  250. package/.next/static/chunks/app/api/models/default/route-147c253c096ab7d7.js +0 -1
  251. package/.next/static/chunks/app/api/models/enabled/route-147c253c096ab7d7.js +0 -1
  252. package/.next/static/chunks/app/api/models/refresh/route-147c253c096ab7d7.js +0 -1
  253. package/.next/static/chunks/app/api/models/route-147c253c096ab7d7.js +0 -1
  254. package/.next/static/chunks/app/api/models-config/catalog/route-147c253c096ab7d7.js +0 -1
  255. package/.next/static/chunks/app/api/models-config/discover/route-147c253c096ab7d7.js +0 -1
  256. package/.next/static/chunks/app/api/models-config/route-147c253c096ab7d7.js +0 -1
  257. package/.next/static/chunks/app/api/models-config/test/route-147c253c096ab7d7.js +0 -1
  258. package/.next/static/chunks/app/api/open-in-explorer/route-147c253c096ab7d7.js +0 -1
  259. package/.next/static/chunks/app/api/plugins/check/route-147c253c096ab7d7.js +0 -1
  260. package/.next/static/chunks/app/api/plugins/route-147c253c096ab7d7.js +0 -1
  261. package/.next/static/chunks/app/api/project-trust/route-147c253c096ab7d7.js +0 -1
  262. package/.next/static/chunks/app/api/provider-usage/query/route-147c253c096ab7d7.js +0 -1
  263. package/.next/static/chunks/app/api/push/config/route-147c253c096ab7d7.js +0 -1
  264. package/.next/static/chunks/app/api/push/subscribe/route-147c253c096ab7d7.js +0 -1
  265. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-147c253c096ab7d7.js +0 -1
  266. package/.next/static/chunks/app/api/sessions/[id]/context/route-147c253c096ab7d7.js +0 -1
  267. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-147c253c096ab7d7.js +0 -1
  268. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-147c253c096ab7d7.js +0 -1
  269. package/.next/static/chunks/app/api/sessions/[id]/export/route-147c253c096ab7d7.js +0 -1
  270. package/.next/static/chunks/app/api/sessions/[id]/fork/route-147c253c096ab7d7.js +0 -1
  271. package/.next/static/chunks/app/api/sessions/[id]/route-147c253c096ab7d7.js +0 -1
  272. package/.next/static/chunks/app/api/sessions/[id]/sources/route-147c253c096ab7d7.js +0 -1
  273. package/.next/static/chunks/app/api/sessions/[id]/state/route-147c253c096ab7d7.js +0 -1
  274. package/.next/static/chunks/app/api/sessions/delete/route-147c253c096ab7d7.js +0 -1
  275. package/.next/static/chunks/app/api/sessions/route-147c253c096ab7d7.js +0 -1
  276. package/.next/static/chunks/app/api/sessions/search/route-147c253c096ab7d7.js +0 -1
  277. package/.next/static/chunks/app/api/sessions/stats/route-147c253c096ab7d7.js +0 -1
  278. package/.next/static/chunks/app/api/sessions/ui-state/route-147c253c096ab7d7.js +0 -1
  279. package/.next/static/chunks/app/api/skills/check/route-147c253c096ab7d7.js +0 -1
  280. package/.next/static/chunks/app/api/skills/content/route-147c253c096ab7d7.js +0 -1
  281. package/.next/static/chunks/app/api/skills/install/route-147c253c096ab7d7.js +0 -1
  282. package/.next/static/chunks/app/api/skills/route-147c253c096ab7d7.js +0 -1
  283. package/.next/static/chunks/app/api/skills/search/route-147c253c096ab7d7.js +0 -1
  284. package/.next/static/chunks/app/api/skills/update/route-147c253c096ab7d7.js +0 -1
  285. package/.next/static/chunks/app/api/subagents/[id]/route-147c253c096ab7d7.js +0 -1
  286. package/.next/static/chunks/app/api/subagents/profiles/route-147c253c096ab7d7.js +0 -1
  287. package/.next/static/chunks/app/api/subagents/settings/route-147c253c096ab7d7.js +0 -1
  288. package/.next/static/chunks/app/api/terminal/[id]/events/route-147c253c096ab7d7.js +0 -1
  289. package/.next/static/chunks/app/api/terminal/[id]/route-147c253c096ab7d7.js +0 -1
  290. package/.next/static/chunks/app/api/terminal/route-147c253c096ab7d7.js +0 -1
  291. package/.next/static/chunks/app/api/tools/settings/route-147c253c096ab7d7.js +0 -1
  292. package/.next/static/chunks/app/api/web-auth/route-147c253c096ab7d7.js +0 -1
  293. package/.next/static/chunks/app/api/worktrees/route-147c253c096ab7d7.js +0 -1
  294. package/.next/static/chunks/app/manifest.webmanifest/route-147c253c096ab7d7.js +0 -1
  295. package/.next/static/chunks/next/dist/client/components/builtin/app-error-147c253c096ab7d7.js +0 -1
  296. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-147c253c096ab7d7.js +0 -1
  297. package/.next/static/chunks/next/dist/client/components/builtin/not-found-147c253c096ab7d7.js +0 -1
  298. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-147c253c096ab7d7.js +0 -1
  299. /package/.next/static/{GMnJIDnrO9liPdCob_JXE → d8Nx7OPkoC7ZQGKA1PfDp}/_ssgManifest.js +0 -0
@@ -0,0 +1,355 @@
1
+ // File: D:\yun\pi-web-yun\app\api\skills\transfer\route.ts
2
+ import * as entry from '../../../../../../app/api/skills/transfer/route.js'
3
+ import type { NextRequest } from 'next/server.js'
4
+
5
+ import type { InstantConfigForTypeCheckInternal, Prefetch, EnsureStatic } from 'next/dist/build/segment-config/app/app-segment-config.js'
6
+
7
+ type TEntry = typeof import('../../../../../../app/api/skills/transfer/route.js')
8
+
9
+ type SegmentParams<T extends Object = any> = T extends Record<string, any>
10
+ ? { [K in keyof T]: T[K] extends string ? string | string[] | undefined : never }
11
+ : T
12
+
13
+ // Check that the entry is a valid entry
14
+ checkFields<Diff<{
15
+ GET?: Function
16
+ HEAD?: Function
17
+ OPTIONS?: Function
18
+ POST?: Function
19
+ PUT?: Function
20
+ DELETE?: Function
21
+ PATCH?: Function
22
+ config?: {}
23
+ generateStaticParams?: Function
24
+
25
+ instant?: InstantConfigForTypeCheckInternal
26
+ prefetch?: Prefetch
27
+ ensureStatic?: EnsureStatic
28
+ unstable_dynamicStaleTime?: number
29
+ revalidate?: RevalidateRange<TEntry> | false
30
+ dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
31
+ dynamicParams?: boolean
32
+ fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
33
+ /** @deprecated The `preferredRegion` config is deprecated. Remove this export. */
34
+ preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
35
+ runtime?: 'nodejs' | 'experimental-edge' | 'edge'
36
+ maxDuration?: number
37
+
38
+ }, TEntry, ''>>()
39
+
40
+ type RouteContext = { params: Promise<SegmentParams> }
41
+ // Check the prop type of the entry function
42
+ if ('GET' in entry) {
43
+ checkFields<
44
+ Diff<
45
+ ParamCheck<Request | NextRequest>,
46
+ {
47
+ __tag__: 'GET'
48
+ __param_position__: 'first'
49
+ __param_type__: FirstArg<MaybeField<TEntry, 'GET'>>
50
+ },
51
+ 'GET'
52
+ >
53
+ >()
54
+ checkFields<
55
+ Diff<
56
+ ParamCheck<RouteContext>,
57
+ {
58
+ __tag__: 'GET'
59
+ __param_position__: 'second'
60
+ __param_type__: SecondArg<MaybeField<TEntry, 'GET'>>
61
+ },
62
+ 'GET'
63
+ >
64
+ >()
65
+
66
+ checkFields<
67
+ Diff<
68
+ {
69
+ __tag__: 'GET',
70
+ __return_type__: Response | void | never | Promise<Response | void | never>
71
+ },
72
+ {
73
+ __tag__: 'GET',
74
+ __return_type__: ReturnType<MaybeField<TEntry, 'GET'>>
75
+ },
76
+ 'GET'
77
+ >
78
+ >()
79
+ }
80
+ // Check the prop type of the entry function
81
+ if ('HEAD' in entry) {
82
+ checkFields<
83
+ Diff<
84
+ ParamCheck<Request | NextRequest>,
85
+ {
86
+ __tag__: 'HEAD'
87
+ __param_position__: 'first'
88
+ __param_type__: FirstArg<MaybeField<TEntry, 'HEAD'>>
89
+ },
90
+ 'HEAD'
91
+ >
92
+ >()
93
+ checkFields<
94
+ Diff<
95
+ ParamCheck<RouteContext>,
96
+ {
97
+ __tag__: 'HEAD'
98
+ __param_position__: 'second'
99
+ __param_type__: SecondArg<MaybeField<TEntry, 'HEAD'>>
100
+ },
101
+ 'HEAD'
102
+ >
103
+ >()
104
+
105
+ checkFields<
106
+ Diff<
107
+ {
108
+ __tag__: 'HEAD',
109
+ __return_type__: Response | void | never | Promise<Response | void | never>
110
+ },
111
+ {
112
+ __tag__: 'HEAD',
113
+ __return_type__: ReturnType<MaybeField<TEntry, 'HEAD'>>
114
+ },
115
+ 'HEAD'
116
+ >
117
+ >()
118
+ }
119
+ // Check the prop type of the entry function
120
+ if ('OPTIONS' in entry) {
121
+ checkFields<
122
+ Diff<
123
+ ParamCheck<Request | NextRequest>,
124
+ {
125
+ __tag__: 'OPTIONS'
126
+ __param_position__: 'first'
127
+ __param_type__: FirstArg<MaybeField<TEntry, 'OPTIONS'>>
128
+ },
129
+ 'OPTIONS'
130
+ >
131
+ >()
132
+ checkFields<
133
+ Diff<
134
+ ParamCheck<RouteContext>,
135
+ {
136
+ __tag__: 'OPTIONS'
137
+ __param_position__: 'second'
138
+ __param_type__: SecondArg<MaybeField<TEntry, 'OPTIONS'>>
139
+ },
140
+ 'OPTIONS'
141
+ >
142
+ >()
143
+
144
+ checkFields<
145
+ Diff<
146
+ {
147
+ __tag__: 'OPTIONS',
148
+ __return_type__: Response | void | never | Promise<Response | void | never>
149
+ },
150
+ {
151
+ __tag__: 'OPTIONS',
152
+ __return_type__: ReturnType<MaybeField<TEntry, 'OPTIONS'>>
153
+ },
154
+ 'OPTIONS'
155
+ >
156
+ >()
157
+ }
158
+ // Check the prop type of the entry function
159
+ if ('POST' in entry) {
160
+ checkFields<
161
+ Diff<
162
+ ParamCheck<Request | NextRequest>,
163
+ {
164
+ __tag__: 'POST'
165
+ __param_position__: 'first'
166
+ __param_type__: FirstArg<MaybeField<TEntry, 'POST'>>
167
+ },
168
+ 'POST'
169
+ >
170
+ >()
171
+ checkFields<
172
+ Diff<
173
+ ParamCheck<RouteContext>,
174
+ {
175
+ __tag__: 'POST'
176
+ __param_position__: 'second'
177
+ __param_type__: SecondArg<MaybeField<TEntry, 'POST'>>
178
+ },
179
+ 'POST'
180
+ >
181
+ >()
182
+
183
+ checkFields<
184
+ Diff<
185
+ {
186
+ __tag__: 'POST',
187
+ __return_type__: Response | void | never | Promise<Response | void | never>
188
+ },
189
+ {
190
+ __tag__: 'POST',
191
+ __return_type__: ReturnType<MaybeField<TEntry, 'POST'>>
192
+ },
193
+ 'POST'
194
+ >
195
+ >()
196
+ }
197
+ // Check the prop type of the entry function
198
+ if ('PUT' in entry) {
199
+ checkFields<
200
+ Diff<
201
+ ParamCheck<Request | NextRequest>,
202
+ {
203
+ __tag__: 'PUT'
204
+ __param_position__: 'first'
205
+ __param_type__: FirstArg<MaybeField<TEntry, 'PUT'>>
206
+ },
207
+ 'PUT'
208
+ >
209
+ >()
210
+ checkFields<
211
+ Diff<
212
+ ParamCheck<RouteContext>,
213
+ {
214
+ __tag__: 'PUT'
215
+ __param_position__: 'second'
216
+ __param_type__: SecondArg<MaybeField<TEntry, 'PUT'>>
217
+ },
218
+ 'PUT'
219
+ >
220
+ >()
221
+
222
+ checkFields<
223
+ Diff<
224
+ {
225
+ __tag__: 'PUT',
226
+ __return_type__: Response | void | never | Promise<Response | void | never>
227
+ },
228
+ {
229
+ __tag__: 'PUT',
230
+ __return_type__: ReturnType<MaybeField<TEntry, 'PUT'>>
231
+ },
232
+ 'PUT'
233
+ >
234
+ >()
235
+ }
236
+ // Check the prop type of the entry function
237
+ if ('DELETE' in entry) {
238
+ checkFields<
239
+ Diff<
240
+ ParamCheck<Request | NextRequest>,
241
+ {
242
+ __tag__: 'DELETE'
243
+ __param_position__: 'first'
244
+ __param_type__: FirstArg<MaybeField<TEntry, 'DELETE'>>
245
+ },
246
+ 'DELETE'
247
+ >
248
+ >()
249
+ checkFields<
250
+ Diff<
251
+ ParamCheck<RouteContext>,
252
+ {
253
+ __tag__: 'DELETE'
254
+ __param_position__: 'second'
255
+ __param_type__: SecondArg<MaybeField<TEntry, 'DELETE'>>
256
+ },
257
+ 'DELETE'
258
+ >
259
+ >()
260
+
261
+ checkFields<
262
+ Diff<
263
+ {
264
+ __tag__: 'DELETE',
265
+ __return_type__: Response | void | never | Promise<Response | void | never>
266
+ },
267
+ {
268
+ __tag__: 'DELETE',
269
+ __return_type__: ReturnType<MaybeField<TEntry, 'DELETE'>>
270
+ },
271
+ 'DELETE'
272
+ >
273
+ >()
274
+ }
275
+ // Check the prop type of the entry function
276
+ if ('PATCH' in entry) {
277
+ checkFields<
278
+ Diff<
279
+ ParamCheck<Request | NextRequest>,
280
+ {
281
+ __tag__: 'PATCH'
282
+ __param_position__: 'first'
283
+ __param_type__: FirstArg<MaybeField<TEntry, 'PATCH'>>
284
+ },
285
+ 'PATCH'
286
+ >
287
+ >()
288
+ checkFields<
289
+ Diff<
290
+ ParamCheck<RouteContext>,
291
+ {
292
+ __tag__: 'PATCH'
293
+ __param_position__: 'second'
294
+ __param_type__: SecondArg<MaybeField<TEntry, 'PATCH'>>
295
+ },
296
+ 'PATCH'
297
+ >
298
+ >()
299
+
300
+ checkFields<
301
+ Diff<
302
+ {
303
+ __tag__: 'PATCH',
304
+ __return_type__: Response | void | never | Promise<Response | void | never>
305
+ },
306
+ {
307
+ __tag__: 'PATCH',
308
+ __return_type__: ReturnType<MaybeField<TEntry, 'PATCH'>>
309
+ },
310
+ 'PATCH'
311
+ >
312
+ >()
313
+ }
314
+
315
+ // Check the arguments and return type of the generateStaticParams function
316
+ if ('generateStaticParams' in entry) {
317
+ checkFields<Diff<{ params: SegmentParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
318
+ checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
319
+ }
320
+
321
+ export interface PageProps {
322
+ params?: Promise<SegmentParams>
323
+ searchParams?: Promise<any>
324
+ }
325
+ export interface LayoutProps {
326
+ children?: React.ReactNode
327
+
328
+ params?: Promise<SegmentParams>
329
+ }
330
+
331
+ // =============
332
+ // Utility types
333
+ type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
334
+
335
+ // If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
336
+ type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
337
+ type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
338
+
339
+ type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
340
+ type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
341
+ type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
342
+
343
+ type ParamCheck<T> = {
344
+ __tag__: string
345
+ __param_position__: string
346
+ __param_type__: T
347
+ }
348
+
349
+ function checkFields<_ extends { [k in keyof any]: never }>() {}
350
+
351
+ // https://github.com/sindresorhus/type-fest
352
+ type Numeric = number | bigint
353
+ type Zero = 0 | 0n
354
+ type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
355
+ type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'
@@ -2,7 +2,7 @@
2
2
  // Do not edit this file manually
3
3
 
4
4
  type AppRoutes = "/" | "/login" | "/pet-preview"
5
- type AppRouteHandlerRoutes = "/api/agent/[id]" | "/api/agent/[id]/bash-output" | "/api/agent/[id]/events" | "/api/agent/[id]/lease" | "/api/agent/debug" | "/api/agent/new" | "/api/agent/running" | "/api/app-update" | "/api/auth/api-key/[provider]" | "/api/auth/login/[provider]" | "/api/auth/logout/[provider]" | "/api/auth/providers" | "/api/cache-miss-notices" | "/api/cwd/browse" | "/api/cwd/validate" | "/api/default-cwd" | "/api/file-index" | "/api/files/[...path]" | "/api/git/diff" | "/api/git/status" | "/api/home" | "/api/mcp" | "/api/mcp/sign-in" | "/api/mcp/sign-in/[flowId]" | "/api/mcp/test" | "/api/models" | "/api/models-config" | "/api/models-config/catalog" | "/api/models-config/discover" | "/api/models-config/test" | "/api/models/default" | "/api/models/enabled" | "/api/models/refresh" | "/api/open-in-explorer" | "/api/plugins" | "/api/plugins/check" | "/api/project-trust" | "/api/provider-usage/query" | "/api/push/config" | "/api/push/subscribe" | "/api/sessions" | "/api/sessions/[id]" | "/api/sessions/[id]/auto-name" | "/api/sessions/[id]/context" | "/api/sessions/[id]/entries/[entryId]/thinking" | "/api/sessions/[id]/entries/[entryId]/tool-result-image" | "/api/sessions/[id]/export" | "/api/sessions/[id]/fork" | "/api/sessions/[id]/sources" | "/api/sessions/[id]/state" | "/api/sessions/delete" | "/api/sessions/search" | "/api/sessions/stats" | "/api/sessions/ui-state" | "/api/skills" | "/api/skills/check" | "/api/skills/content" | "/api/skills/install" | "/api/skills/search" | "/api/skills/update" | "/api/subagents/[id]" | "/api/subagents/profiles" | "/api/subagents/settings" | "/api/terminal" | "/api/terminal/[id]" | "/api/terminal/[id]/events" | "/api/tools/settings" | "/api/web-auth" | "/api/worktrees" | "/manifest.webmanifest"
5
+ type AppRouteHandlerRoutes = "/api/agent/[id]" | "/api/agent/[id]/bash-output" | "/api/agent/[id]/events" | "/api/agent/[id]/lease" | "/api/agent/debug" | "/api/agent/new" | "/api/agent/running" | "/api/app-update" | "/api/auth/api-key/[provider]" | "/api/auth/login/[provider]" | "/api/auth/logout/[provider]" | "/api/auth/providers" | "/api/cache-miss-notices" | "/api/cwd/browse" | "/api/cwd/validate" | "/api/default-cwd" | "/api/file-index" | "/api/files/[...path]" | "/api/git/diff" | "/api/git/status" | "/api/home" | "/api/mcp" | "/api/mcp/sign-in" | "/api/mcp/sign-in/[flowId]" | "/api/mcp/test" | "/api/models" | "/api/models-config" | "/api/models-config/catalog" | "/api/models-config/discover" | "/api/models-config/test" | "/api/models/default" | "/api/models/enabled" | "/api/models/refresh" | "/api/open-in-explorer" | "/api/plugins" | "/api/plugins/check" | "/api/project-trust" | "/api/provider-usage/query" | "/api/push/config" | "/api/push/subscribe" | "/api/sessions" | "/api/sessions/[id]" | "/api/sessions/[id]/auto-name" | "/api/sessions/[id]/context" | "/api/sessions/[id]/entries/[entryId]/thinking" | "/api/sessions/[id]/entries/[entryId]/tool-result-image" | "/api/sessions/[id]/export" | "/api/sessions/[id]/fork" | "/api/sessions/[id]/sources" | "/api/sessions/[id]/state" | "/api/sessions/delete" | "/api/sessions/search" | "/api/sessions/stats" | "/api/sessions/ui-state" | "/api/skills" | "/api/skills/check" | "/api/skills/content" | "/api/skills/install" | "/api/skills/remove" | "/api/skills/search" | "/api/skills/transfer" | "/api/skills/update" | "/api/subagents/[id]" | "/api/subagents/profiles" | "/api/subagents/settings" | "/api/terminal" | "/api/terminal/[id]" | "/api/terminal/[id]/events" | "/api/tools/settings" | "/api/web-auth" | "/api/worktrees" | "/manifest.webmanifest"
6
6
  type PageRoutes = never
7
7
  type LayoutRoutes = "/"
8
8
  type RedirectRoutes = never
@@ -70,7 +70,9 @@ interface ParamMap {
70
70
  "/api/skills/check": {}
71
71
  "/api/skills/content": {}
72
72
  "/api/skills/install": {}
73
+ "/api/skills/remove": {}
73
74
  "/api/skills/search": {}
75
+ "/api/skills/transfer": {}
74
76
  "/api/skills/update": {}
75
77
  "/api/subagents/[id]": { "id": string; }
76
78
  "/api/subagents/profiles": {}
@@ -673,6 +673,16 @@ type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRou
673
673
  type __Unused = __Check
674
674
  }
675
675
 
676
+ // Validate ../../app/api/skills/remove/route.ts
677
+ {
678
+ type __IsExpected<Specific extends RouteHandlerConfig<"/api/skills/remove">> = Specific
679
+ const handler = {} as typeof import("../../app/api/skills/remove/route.js")
680
+ type __Check = __IsExpected<typeof handler>
681
+
682
+ // @ts-ignore
683
+ type __Unused = __Check
684
+ }
685
+
676
686
  // Validate ../../app/api/skills/route.ts
677
687
  {
678
688
  type __IsExpected<Specific extends RouteHandlerConfig<"/api/skills">> = Specific
@@ -693,6 +703,16 @@ type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRou
693
703
  type __Unused = __Check
694
704
  }
695
705
 
706
+ // Validate ../../app/api/skills/transfer/route.ts
707
+ {
708
+ type __IsExpected<Specific extends RouteHandlerConfig<"/api/skills/transfer">> = Specific
709
+ const handler = {} as typeof import("../../app/api/skills/transfer/route.js")
710
+ type __Check = __IsExpected<typeof handler>
711
+
712
+ // @ts-ignore
713
+ type __Unused = __Check
714
+ }
715
+
696
716
  // Validate ../../app/api/skills/update/route.ts
697
717
  {
698
718
  type __IsExpected<Specific extends RouteHandlerConfig<"/api/skills/update">> = Specific
package/README.md CHANGED
@@ -1,124 +1,100 @@
1
- # Pi Web
1
+ # PI-YUN
2
2
 
3
- [中文文档](./docs/README.zh-CN.md) | [日本語](./docs/README.ja.md) | [Русский](./docs/README.ru.md)
3
+ [日本語](./docs/README.ja.md) | [Русский](./docs/README.ru.md)
4
4
 
5
- Local browser UI for the [pi coding agent](https://github.com/earendil-works/pi). Pi Web uses the same local configuration and session files as pi, so you can browse and resume conversations, run agent turns, configure models and resources, and inspect project files from a browser.
5
+ PI-YUN 是基于 [Pi Web](https://github.com/agegr/pi-web) 的 [pi 编程智能体](https://github.com/earendil-works/pi)浏览器工作空间。它沿用 pi 的本地配置和会话文件,在浏览器中组织项目、与智能体协作,并加入工作台导航、桌面陪伴和专注计时等体验。
6
6
 
7
- **[Try the interactive demo →](https://agegr.github.io/pi-web/)** The real Pi Web UI runs entirely in your browser, with sample sessions, files and models. There is nothing to install; replies are pre-written and no model is called.
7
+ ![PI-YUN 工作空间示例,展示项目导航与对话界面](./docs/screenshot2.png)
8
8
 
9
- ![Pi Web displaying a pi session with structured Markdown, tool calls, and project navigation](https://raw.githubusercontent.com/agegr/pi-web/main/docs/screenshot2.png)
9
+ *使用示例数据展示的 PI-YUN 工作空间。*
10
10
 
11
- ## Features
11
+ ## 功能
12
12
 
13
- - **Session workspace**: browse, resume, rename, export, and delete conversations grouped by project, with running state, context usage, cost, and compaction details.
14
- - **Project creation**: use **+** beside **Projects** to name a project and select one source folder, with directory validation and persistent sidebar entries. See [adding a project](docs/worktrees.md#adding-a-project).
15
- - **Two ways to branch**: **New session** creates an independent session file from an earlier message; **Edit from here** creates a branch inside the current session.
16
- - **Project file tools**: browse and upload files, inspect Git diffs, and preview source, Markdown, images, audio, PDFs, and DOCX files with automatic refresh.
17
- - **Git worktrees**: switch checkouts from the sidebar while keeping sessions from the same repository grouped together.
18
- - **Web-based configuration**: manage provider login and API keys, models, model tests, plugin packages, and skills without leaving Pi Web.
19
- - **English, Simplified Chinese, and Traditional Chinese UI**: Pi Web follows the browser language initially and provides a language switcher in the top bar.
13
+ - **会话与项目**:按项目浏览、继续、搜索、置顶和归档会话;支持从历史消息创建新会话或在当前会话内分支。
14
+ - **工作空间**:在首页、对话、历史、系统提示词、工具定义、智能体和分支视图之间切换;支持侧聊和子智能体。
15
+ - **项目文件与终端**:浏览和上传文件、查看 Git 差异、预览常见文件格式,并在工作空间中使用终端。
16
+ - **Git worktree**:从项目选择器切换或创建 worktree,将同一仓库的会话归在一起。详见 [worktree 指南](./docs/worktrees.zh-CN.md)。
17
+ - **模型与扩展**:在设置中管理模型、默认模型和思考等级,以及登录凭据、MCP、插件和技能。
18
+ - **陪伴与专注**:桌宠提供会话状态提示、生活习惯提醒和专注计时;提醒与计时设置保存在浏览器中,不调用模型。专注计时可在页面后台运行,并可按需启用浏览器通知。
19
+ - **多语言界面**:支持简体中文、繁体中文和英文,首次使用时跟随浏览器语言。
20
20
 
21
- ## Quick Start
21
+ ## 快速开始
22
22
 
23
- Pi Web requires Node.js 22.19.0 or newer. Check your version with `node --version`, then run:
23
+ 需要 Node.js **22.19.0 或更高版本**,可通过 `node --version` 检查。使用 npm 包启动:
24
24
 
25
25
  ```bash
26
- npx pi-web-yun@latest
26
+ npx pi-yun@latest
27
27
  ```
28
28
 
29
- The CLI opens a browser after the server is ready. If it does not, open [http://127.0.0.1:30141](http://127.0.0.1:30141). Pi Web listens only on `127.0.0.1` by default.
29
+ 服务就绪后会尝试打开浏览器;也可以访问 [http://127.0.0.1:30141](http://127.0.0.1:30141)。默认只监听本机地址。首次使用时,在设置的「模型」中登录模型服务商或配置 API Key。
30
30
 
31
- If no model provider is configured yet, open the **Models** panel to sign in or add an API key.
32
-
33
- To install the `pi-yun` command globally:
31
+ 也可以全局安装:
34
32
 
35
33
  ```bash
36
34
  npm install -g pi-yun@latest
37
35
  pi-yun
38
36
  ```
39
37
 
40
- Commands:
38
+ 常用命令:
41
39
 
42
40
  ```bash
43
- pi-yun version # print the installed version
44
- pi-yun status # list running servers
45
- pi-yun stop [--port N] # stop a running server
46
- pi-yun open [--port N] # open a running server in the browser
47
- pi-yun update [--check] # update a global npm install
41
+ pi-yun --help # 查看启动选项
42
+ pi-yun version # 查看已安装版本
43
+ pi-yun status # 查看运行中的服务
44
+ pi-yun stop [--port N] # 停止服务
45
+ pi-yun open [--port N] # 在浏览器中打开服务
46
+ pi-yun update [--check] # 更新全局 npm 安装,或只检查更新
48
47
  ```
49
48
 
50
- To update, run `pi-yun stop`, then `pi-yun update` (or run the same install command again). To uninstall, run `npm uninstall -g pi-yun`.
49
+ 更新前可先运行 `pi-yun stop`,然后运行 `pi-yun update`;卸载使用 `npm uninstall -g pi-yun`。
51
50
 
52
- ## Configuration
51
+ ## 配置与访问
53
52
 
54
- For port and hostname, command-line options override the corresponding environment variables. Either `--no-open` or `PI_WEB_NO_OPEN=1` disables automatic browser opening. Run `pi-web --help` (or `-h`) to print startup options and exit without starting the server. Unknown options exit with an error.
53
+ 命令行选项优先于对应的环境变量:
55
54
 
56
- | Option or environment variable | Purpose | Default |
55
+ | 选项或环境变量 | 用途 | 默认值 |
57
56
  | --- | --- | --- |
58
- | `--help`, `-h` | Print startup options and exit | — |
59
- | `--port <port>`, `-p <port>`, or `PORT` | Server port | `30141` |
60
- | `--hostname <host>`, `-H <host>`, or `PI_WEB_HOSTNAME` | Bind hostname | `127.0.0.1` |
61
- | `--no-open` or `PI_WEB_NO_OPEN=1` | Do not open a browser automatically | Browser opens |
62
- | `PI_WEB_APP_NAME` | PWA manifest `name` and `short_name`; surrounding whitespace is trimmed, empty values use the default | `Pi Web` |
63
- | `PI_WEB_SKIP_VERSION_CHECK=1` | Disable Pi Web update checks | Unset |
64
- | `PI_WEB_ALLOWED_HOSTS` | Additional exact proxy or custom hostnames, comma-separated | Unset |
65
- | `PI_WEB_PASSWORD` | Enable browser password login; API clients may use Basic Auth with username `pi` | Authentication disabled |
66
- | `PI_WEB_IDLE_TIMEOUT_MS` | Session idle timeout in milliseconds, up to `2147483647`; `0` disables idle shutdown; invalid or out-of-range values use the default | `600000` (10 min) |
67
- | `PI_WEB_SHUTDOWN_DEADLINE_MS` | How long extensions get to handle `session_shutdown` before a closing session is disposed anyway, in milliseconds up to `2147483647`; `0`, invalid or out-of-range values use the default | `5000` (5 s) |
68
- | `PI_CODEMODE_MAX_WORKERS` | pi's limit on codemode scripts running at once, shared by every session and subagent in the server; pi's own default is `2`, and pi-web sets `8` when the variable is unset or empty. Each script may use up to 256 MB | `8` |
69
-
70
- Set `PI_WEB_APP_NAME` before starting the server (for example, `PI_WEB_APP_NAME='Work Pi' pi-web`). After changing it, restart the server to serve the new manifest; no rebuild is required. Updates to the name of an already installed PWA are managed by the browser and are not guaranteed to appear immediately. This does not change the page title or icons.
71
-
72
- For example:
57
+ | `--port <port>`、`-p <port>` 或 `PORT` | 服务端口 | `30141` |
58
+ | `--hostname <host>`、`-H <host>` 或 `PI_WEB_HOSTNAME` | 监听地址 | `127.0.0.1` |
59
+ | `--no-open` 或 `PI_WEB_NO_OPEN=1` | 禁止自动打开浏览器 | 自动打开 |
60
+ | `PI_WEB_PASSWORD` | 启用浏览器密码登录;API 可使用用户名 `pi` 的 Basic Auth | 未启用 |
61
+ | `PI_WEB_ALLOWED_HOSTS` | 允许的额外代理或自定义主机名,以逗号分隔 | 未设置 |
62
+ | `PI_WEB_APP_NAME` | PWA 的显示名称;修改后需重启服务 | `Pi Web` |
63
+ | `PI_WEB_SKIP_VERSION_CHECK=1` | 关闭更新检查 | 未设置 |
64
+ | `PI_WEB_IDLE_TIMEOUT_MS` | 会话空闲关闭时间,`0` 为禁用 | `600000` 毫秒 |
65
+ | `PI_WEB_SHUTDOWN_DEADLINE_MS` | 扩展处理会话关闭事件的最长等待时间 | `5000` 毫秒 |
66
+ | `PI_CODEMODE_MAX_WORKERS` | 服务中 Code mode 脚本的并发上限 | `8` |
67
+
68
+ 例如,自定义端口并关闭自动打开浏览器:
73
69
 
74
70
  ```bash
75
- pi-web --help
76
- pi-web -p 8080 -H 0.0.0.0 --no-open
71
+ pi-yun --port 8080 --no-open
77
72
  ```
78
73
 
79
- ### Remote Access
74
+ ### 局域网与远程访问
80
75
 
81
- Binding to a non-loopback address exposes an agent that can execute high-privilege actions. On a trusted LAN, require a long random password:
76
+ 监听非本机地址会让网络上的访问者接触到能够执行操作的智能体。在可信局域网内使用时,请设置强密码。PowerShell 示例:
82
77
 
83
- ```bash
84
- PI_WEB_PASSWORD='a-long-random-password' pi-web --hostname 0.0.0.0
78
+ ```powershell
79
+ $env:PI_WEB_PASSWORD = '替换为足够长的随机密码'
80
+ pi-yun --hostname 0.0.0.0
85
81
  ```
86
82
 
87
- Password authentication does not encrypt the connection. Do not expose Pi Web over plain HTTP to the internet; use HTTPS through a trusted reverse proxy or a trusted VPN. If a reverse proxy sends an external hostname, add that exact name to `PI_WEB_ALLOWED_HOSTS`. This allow-list does not change the address Pi Web binds to.
88
-
89
- ### Docker
83
+ 密码本身不会加密 HTTP 流量;远程访问请使用可信 VPN 或配置 HTTPS 的反向代理。代理使用额外主机名时,可将准确的主机名加入 `PI_WEB_ALLOWED_HOSTS`。
90
84
 
91
- Each release publishes an image to `ghcr.io/agegr/pi-web`. See [Running Pi Web in Docker](./docs/docker.md) for it, the Compose example and which volumes to keep.
85
+ 服务端模型和 API 请求支持 `HTTP_PROXY`、`HTTPS_PROXY` 和 `NO_PROXY` 环境变量。
92
86
 
93
- ### HTTP Proxy
87
+ ## 数据与使用说明
94
88
 
95
- Server-side model and API requests honor the standard `HTTP_PROXY`, `HTTPS_PROXY`, and `NO_PROXY` environment variables.
89
+ - PI-YUN 默认读取 `~/.pi/agent` 中的 pi 配置和会话;可通过 `PI_CODING_AGENT_DIR` 指定其他目录。与 pi 共享会话时,请确保进程能访问相同的工作目录和数据目录。
90
+ - 模型设置与 pi 共用配置和凭据;已打开会话中的模型配置修改后,需要重新选择该模型才能应用。
91
+ - 文件浏览器的访问范围受已选择或已知的项目和会话目录限制。
92
+ - 生活提醒按前台活跃使用时间计时,页面不活跃时会暂停。专注计时使用实际时间;浏览器可能限制后台页面,关闭所有页面后不会安排系统通知。
93
+ - 使用 Docker 时,可按照本仓库的 [Docker 指南](./docs/docker.md)从源码构建镜像。
96
94
 
97
- On macOS or Linux:
95
+ ## 集成接口
98
96
 
99
- ```bash
100
- HTTP_PROXY=http://127.0.0.1:7890 \
101
- HTTPS_PROXY=http://127.0.0.1:7890 \
102
- NO_PROXY=localhost,127.0.0.1 \
103
- npx pi-web-yun@latest
104
- ```
105
-
106
- On Windows PowerShell:
107
-
108
- ```powershell
109
- $env:HTTP_PROXY = "http://127.0.0.1:7890"
110
- $env:HTTPS_PROXY = "http://127.0.0.1:7890"
111
- $env:NO_PROXY = "localhost,127.0.0.1"
112
- npx pi-web-yun@latest
113
- ```
114
-
115
- ## Notes
116
-
117
- - **Agent data**: Pi Web reads pi data from `~/.pi/agent` by default, including session files under `sessions/<encoded-cwd>/<timestamp>_<uuid>.jsonl`. Set `PI_CODING_AGENT_DIR` to use another pi agent directory.
118
- - **Filesystem access**: Pi Web must be able to read the agent data directory and the working directories recorded by its sessions. Run Pi Web in the same filesystem environment as pi when sharing existing sessions.
119
- - **Shared configuration**: the Models panel uses pi's model, settings, and credential storage, so changes are visible to both interfaces. An open session applies a saved edit of its model when you select the model again.
120
- - **File access boundary**: the file browser is limited to working directories selected in Pi Web and project or session roots it already knows about; it is not a general filesystem browser.
121
- - **Git worktrees**: see [Worktrees in Pi Web](./docs/worktrees.md) for switcher visibility, worktree creation, and removal behavior.
97
+ 以下接口供下游集成使用。
122
98
 
123
99
  ### Downstream Session Context Menu
124
100
 
@@ -172,42 +148,29 @@ file. Provider errors fail safe by preserving that session. This lease only
172
148
  affects automatic idle eviction; explicit shutdown and Stop fallback cleanup
173
149
  still take precedence.
174
150
 
175
- ## Development
151
+ ## 本地开发
176
152
 
177
153
  ```bash
178
154
  npm install
179
155
  npm run dev
180
156
  ```
181
157
 
182
- The development server runs at [http://127.0.0.1:30141](http://127.0.0.1:30141). Run the common checks with:
158
+ 开发服务地址为 [http://127.0.0.1:30141](http://127.0.0.1:30141)。常用检查:
183
159
 
184
160
  ```bash
185
161
  npm test
186
- node_modules/.bin/tsc --noEmit
162
+ npx tsc --noEmit
187
163
  npm run lint
188
164
  ```
189
165
 
190
- Do not run `next build` or `npm run build` during normal development. It writes to `.next/` and can interfere with the development server; leave builds for release work.
166
+ 开发期间不要运行 `next build` 或 `npm run build`:它们会修改 `.next/`,影响开发服务。发布构建请使用独立的干净工作目录。项目结构和开发约定见 [AGENTS.md](./AGENTS.md),贡献范围见 [CONTRIBUTING.md](./CONTRIBUTING.md)。
191
167
 
192
- Before starting on a feature, read [Contributing](./CONTRIBUTING.md) for what is in scope and the pull request checklist.
168
+ ## 发布说明
193
169
 
194
- Contributor guides: [Internationalization](./docs/i18n.md) and [Release process](./docs/release.md).
195
-
196
- ## Repository Layout
197
-
198
- ```text
199
- app/ Next.js UI and API routes
200
- components/ React UI components
201
- hooks/ Client state and interaction hooks
202
- lib/ Session, agent, model, file, Git, and security logic
203
- public/ Static assets and PWA files
204
- bin/ npm CLI entrypoint and launch option parsing
205
- docs/ Focused user and contributor guides
206
- demo/ Static browser demo published to GitHub Pages (see demo/README.md)
207
- ```
170
+ 本项目的 npm 包名为 `pi-yun`,版本在 `package.json` 和 `package-lock.json` 中维护。当前仓库保留了上游发布工作流,但该工作流仅在 `agegr/pi-web` 仓库执行;推送 PI-YUN 的标签不会通过它自动发布 npm 包或 Docker 镜像。仓库中的 `npm run release` 会安装依赖、递增补丁版本、构建并发布 npm 包,应在独立的干净发布目录中使用。具体步骤见[发布指南](./docs/release.md)。
208
171
 
209
- See [AGENTS.md](./AGENTS.md) for the architecture notes and detailed file map.
172
+ ## 致谢与许可证
210
173
 
211
- ## License
174
+ PI-YUN 基于 [agegr/pi-web](https://github.com/agegr/pi-web) 开发,并使用 [pi](https://github.com/earendil-works/pi) 生态。感谢上游项目及所有贡献者。
212
175
 
213
- [MIT](./LICENSE)
176
+ [MIT License](./LICENSE)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-yun",
3
- "version": "0.2.9",
3
+ "version": "0.3.0",
4
4
  "description": "Web UI for the pi coding agent (fork of @agegr/pi-web)",
5
5
  "homepage": "https://github.com/Jason-24/pi-web-yun#readme",
6
6
  "repository": {