maka-agent 0.2.1-dev.90.20261017 → 0.2.2-dev.101.20261026

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 (461) hide show
  1. package/DISCLAIMER-WIP +1 -1
  2. package/LICENSE +15 -11
  3. package/README.md +173 -1
  4. package/README.zh-CN.md +156 -0
  5. package/THIRD_PARTY_NOTICES.txt +12 -12
  6. package/dist/cli-core.js +1 -0
  7. package/dist/pi-tui-runner.js +71 -4
  8. package/dist/run-command-core.js +256 -48
  9. package/dist/run-session-command.js +534 -0
  10. package/dist/run-session-result.js +38 -0
  11. package/dist/run-turn-outcome.js +174 -0
  12. package/dist/runtime-host-cli.js +32 -17
  13. package/dist/runtime-host-run-command.js +53 -165
  14. package/dist/runtime-host-run-mcp.js +3 -0
  15. package/dist/runtime-host-session-channel.js +4 -2
  16. package/dist/runtime-host-session-driver.js +24 -0
  17. package/dist/runtime-host-setup-command.js +114 -7
  18. package/dist/tui-copy-catalog.js +39 -0
  19. package/native/runtime-host-windows-task-launcher/prebuilds/win32-x64/maka-runtime-host-task-launcher.exe +0 -0
  20. package/node_modules/@ai-sdk/provider-utils/node_modules/undici/docs/docs/api/Client.md +2 -0
  21. package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/core/connect.js +10 -4
  22. package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/core/symbols.js +1 -0
  23. package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/dispatcher/agent.js +6 -2
  24. package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/dispatcher/client-h1.js +0 -2
  25. package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/dispatcher/client-h2.js +0 -4
  26. package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/dispatcher/client.js +3 -2
  27. package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/dispatcher/dispatcher-base.js +12 -0
  28. package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/handler/cache-handler.js +48 -0
  29. package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/handler/deduplication-handler.js +57 -13
  30. package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/handler/redirect-handler.js +8 -1
  31. package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/interceptor/decompress.js +15 -5
  32. package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/web/cookies/index.js +3 -1
  33. package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/web/cookies/parse.js +138 -137
  34. package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/web/cookies/util.js +21 -2
  35. package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/web/eventsource/eventsource-stream.js +90 -9
  36. package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/web/eventsource/eventsource.js +4 -1
  37. package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/web/fetch/index.js +3 -3
  38. package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/web/infra/index.js +14 -0
  39. package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +5 -5
  40. package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/web/websocket/receiver.js +13 -0
  41. package/node_modules/@ai-sdk/provider-utils/node_modules/undici/package.json +1 -1
  42. package/node_modules/@maka/acp-executor-plugin/dist/acp-catalog-store.js +87 -0
  43. package/node_modules/@maka/acp-executor-plugin/dist/acp-catalog.js +103 -21
  44. package/node_modules/@maka/acp-executor-plugin/dist/index.js +149 -21
  45. package/node_modules/@maka/acp-executor-plugin/dist/plugin.mjs +4066 -68
  46. package/node_modules/@maka/core/dist/assistant-turn-ids.js +34 -0
  47. package/node_modules/@maka/core/dist/attachments.js +5 -0
  48. package/node_modules/@maka/core/dist/bot-chat-settings.js +10 -1
  49. package/node_modules/@maka/core/dist/event-wait-delivery.js +102 -0
  50. package/node_modules/@maka/core/dist/event-wait.js +194 -42
  51. package/node_modules/@maka/core/dist/executor-catalog.js +7 -1
  52. package/node_modules/@maka/core/dist/goal.js +74 -2
  53. package/node_modules/@maka/core/dist/model-catalog.js +19 -1
  54. package/node_modules/@maka/core/dist/model-metadata.generated.js +4 -14
  55. package/node_modules/@maka/core/dist/model-metadata.js +42 -1
  56. package/node_modules/@maka/core/dist/models-dev-projection.js +32 -1
  57. package/node_modules/@maka/core/dist/pet.js +16 -3
  58. package/node_modules/@maka/core/dist/provider-registry.js +16 -2
  59. package/node_modules/@maka/core/dist/runtime-event-store.js +0 -1
  60. package/node_modules/@maka/core/dist/runtime-event.js +25 -2
  61. package/node_modules/@maka/core/dist/runtime-invocation.js +11 -0
  62. package/node_modules/@maka/core/dist/session-checkin.js +31 -0
  63. package/node_modules/@maka/core/dist/session.js +2 -1
  64. package/node_modules/@maka/core/dist/tool-ledger-scanner.js +1 -9
  65. package/node_modules/@maka/core/dist/tool-recovery-bundle.js +1 -14
  66. package/node_modules/@maka/core/dist/turn-origin.js +26 -2
  67. package/node_modules/@maka/core/dist/usage-stats/types.js +1 -0
  68. package/node_modules/@maka/core/package.json +3 -0
  69. package/node_modules/@maka/eval/node_modules/undici/README.md +25 -3
  70. package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/CacheStore.md +24 -9
  71. package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/Client.md +11 -6
  72. package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/Dispatcher.md +3 -0
  73. package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/Errors.md +76 -1
  74. package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/H2CClient.md +3 -2
  75. package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/Interceptors.md +28 -8
  76. package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/RedirectHandler.md +13 -10
  77. package/node_modules/@maka/eval/node_modules/undici/docs/docs/index.md +12 -12
  78. package/node_modules/@maka/eval/node_modules/undici/docs/docs/type-map.json +66 -66
  79. package/node_modules/@maka/eval/node_modules/undici/lib/cache/memory-cache-store.js +48 -13
  80. package/node_modules/@maka/eval/node_modules/undici/lib/cache/sqlite-cache-store.js +83 -5
  81. package/node_modules/@maka/eval/node_modules/undici/lib/core/connect.js +10 -4
  82. package/node_modules/@maka/eval/node_modules/undici/lib/core/constants.js +12 -1
  83. package/node_modules/@maka/eval/node_modules/undici/lib/core/errors.js +38 -1
  84. package/node_modules/@maka/eval/node_modules/undici/lib/core/request.js +16 -1
  85. package/node_modules/@maka/eval/node_modules/undici/lib/core/symbols.js +2 -0
  86. package/node_modules/@maka/eval/node_modules/undici/lib/core/util.js +26 -1
  87. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/agent.js +6 -2
  88. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/client-h1.js +116 -80
  89. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/client-h2.js +124 -17
  90. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/client.js +4 -1
  91. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/dispatcher-base.js +3 -2
  92. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +20 -3
  93. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/parser-h1.js +1064 -0
  94. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/pool-base.js +85 -31
  95. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/pool.js +11 -8
  96. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/proxy-agent.js +18 -8
  97. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/retry-agent.js +10 -0
  98. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/round-robin-pool.js +15 -5
  99. package/node_modules/@maka/eval/node_modules/undici/lib/handler/cache-handler.js +153 -15
  100. package/node_modules/@maka/eval/node_modules/undici/lib/handler/deduplication-handler.js +112 -51
  101. package/node_modules/@maka/eval/node_modules/undici/lib/handler/redirect-handler.js +28 -8
  102. package/node_modules/@maka/eval/node_modules/undici/lib/handler/retry-handler.js +44 -11
  103. package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/cache.js +11 -3
  104. package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/decompress.js +22 -9
  105. package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/dns.js +11 -0
  106. package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/response-error.js +72 -28
  107. package/node_modules/@maka/eval/node_modules/undici/lib/milo/LICENSE.md +7 -0
  108. package/node_modules/@maka/eval/node_modules/undici/lib/milo/no-simd.js +1002 -0
  109. package/node_modules/@maka/eval/node_modules/undici/lib/milo/simd.js +1002 -0
  110. package/node_modules/@maka/eval/node_modules/undici/lib/mock/mock-agent.js +11 -0
  111. package/node_modules/@maka/eval/node_modules/undici/lib/mock/snapshot-recorder.js +3 -2
  112. package/node_modules/@maka/eval/node_modules/undici/lib/mock/snapshot-utils.js +3 -2
  113. package/node_modules/@maka/eval/node_modules/undici/lib/util/cache.js +11 -5
  114. package/node_modules/@maka/eval/node_modules/undici/lib/web/cookies/util.js +19 -2
  115. package/node_modules/@maka/eval/node_modules/undici/lib/web/eventsource/eventsource-stream.js +69 -15
  116. package/node_modules/@maka/eval/node_modules/undici/lib/web/eventsource/eventsource.js +25 -2
  117. package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/body.js +47 -38
  118. package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/formdata-parser.js +12 -4
  119. package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/headers.js +2 -2
  120. package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/index.js +8 -4
  121. package/node_modules/@maka/eval/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +5 -5
  122. package/node_modules/@maka/eval/node_modules/undici/lib/web/websocket/receiver.js +25 -4
  123. package/node_modules/@maka/eval/node_modules/undici/package.json +9 -7
  124. package/node_modules/@maka/mcp/package.json +1 -1
  125. package/node_modules/@maka/runtime/dist/agent-run.js +5 -1
  126. package/node_modules/@maka/runtime/dist/agent-swarm-status-tool.js +0 -1
  127. package/node_modules/@maka/runtime/dist/ai-sdk-backend.js +12 -3
  128. package/node_modules/@maka/runtime/dist/ai-sdk-compaction.js +29 -15
  129. package/node_modules/@maka/runtime/dist/ai-sdk-message-projection.js +10 -1
  130. package/node_modules/@maka/runtime/dist/ai-sdk-turn.js +117 -111
  131. package/node_modules/@maka/runtime/dist/bots/bot-registry.js +19 -3
  132. package/node_modules/@maka/runtime/dist/bots/feishu-bridge.js +178 -6
  133. package/node_modules/@maka/runtime/dist/bots/wechat-bridge.js +163 -9
  134. package/node_modules/@maka/runtime/dist/code-mode.js +63 -3
  135. package/node_modules/@maka/runtime/dist/context-budget-policy.js +9 -2
  136. package/node_modules/@maka/runtime/dist/event-wait-tool.js +62 -0
  137. package/node_modules/@maka/runtime/dist/filesystem-worker/client.js +7 -0
  138. package/node_modules/@maka/runtime/dist/filesystem-worker/operations.js +233 -2
  139. package/node_modules/@maka/runtime/dist/filesystem-worker/protocol.js +1 -1
  140. package/node_modules/@maka/runtime/dist/goal-continuation.js +175 -117
  141. package/node_modules/@maka/runtime/dist/goal-evaluator.js +73 -7
  142. package/node_modules/@maka/runtime/dist/goal-state.js +8 -0
  143. package/node_modules/@maka/runtime/dist/history-compact-checkpoint.js +34 -4
  144. package/node_modules/@maka/runtime/dist/history-compaction.js +7 -0
  145. package/node_modules/@maka/runtime/dist/image-file-reader.js +2 -2
  146. package/node_modules/@maka/runtime/dist/image-file.js +22 -9
  147. package/node_modules/@maka/runtime/dist/memory-extraction.js +0 -2
  148. package/node_modules/@maka/runtime/dist/model-factory.js +26 -6
  149. package/node_modules/@maka/runtime/dist/model-fetcher.js +8 -1
  150. package/node_modules/@maka/runtime/dist/model-history.js +16 -3
  151. package/node_modules/@maka/runtime/dist/openai-codex-history-compactor.js +15 -5
  152. package/node_modules/@maka/runtime/dist/plan-tools.js +0 -3
  153. package/node_modules/@maka/runtime/dist/plugin-agent-service.js +7 -1
  154. package/node_modules/@maka/runtime/dist/plugin-executor-backend.js +49 -2
  155. package/node_modules/@maka/runtime/dist/plugin-executor-service.js +12 -3
  156. package/node_modules/@maka/runtime/dist/plugin-source-service.js +5 -0
  157. package/node_modules/@maka/runtime/dist/provider-error-classification.js +2 -0
  158. package/node_modules/@maka/runtime/dist/recovery-resolver.js +2 -1
  159. package/node_modules/@maka/runtime/dist/runtime-context.js +53 -0
  160. package/node_modules/@maka/runtime/dist/runtime-event-backfill.js +1 -0
  161. package/node_modules/@maka/runtime/dist/runtime-event-read-model.js +4 -0
  162. package/node_modules/@maka/runtime/dist/runtime-kernel.js +41 -0
  163. package/node_modules/@maka/runtime/dist/sandbox/windows-profile.js +18 -0
  164. package/node_modules/@maka/runtime/dist/sandbox/windows-sandbox.js +3 -0
  165. package/node_modules/@maka/runtime/dist/sandbox-boundary-path.js +79 -2
  166. package/node_modules/@maka/runtime/dist/session-checkin.js +331 -0
  167. package/node_modules/@maka/runtime/dist/session-event-runtime-mapper.js +7 -0
  168. package/node_modules/@maka/runtime/dist/session-manager.js +14 -7
  169. package/node_modules/@maka/runtime/dist/shell-run-manager.js +34 -0
  170. package/node_modules/@maka/runtime/dist/stream-graph-supervisor-tools.js +0 -3
  171. package/node_modules/@maka/runtime/dist/telemetry/builtin-pricing.js +21 -2
  172. package/node_modules/@maka/runtime/dist/tool-runtime.js +35 -2
  173. package/node_modules/@maka/runtime/dist/workers/filesystem-worker.mjs +2326 -210
  174. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/docs/docs/api/Client.md +2 -0
  175. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/core/connect.js +10 -4
  176. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/core/symbols.js +1 -0
  177. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/dispatcher/agent.js +6 -2
  178. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/dispatcher/client-h1.js +0 -2
  179. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/dispatcher/client-h2.js +0 -4
  180. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/dispatcher/client.js +3 -2
  181. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/dispatcher/dispatcher-base.js +12 -0
  182. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/handler/cache-handler.js +48 -0
  183. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/handler/deduplication-handler.js +57 -13
  184. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/handler/redirect-handler.js +8 -1
  185. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/interceptor/decompress.js +15 -5
  186. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/web/cookies/index.js +3 -1
  187. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/web/cookies/parse.js +138 -137
  188. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/web/cookies/util.js +21 -2
  189. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/web/eventsource/eventsource-stream.js +90 -9
  190. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/web/eventsource/eventsource.js +4 -1
  191. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/web/fetch/index.js +3 -3
  192. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/web/infra/index.js +14 -0
  193. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +5 -5
  194. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/web/websocket/receiver.js +13 -0
  195. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/package.json +1 -1
  196. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/package.json +1 -1
  197. package/node_modules/@maka/runtime/node_modules/undici/README.md +25 -3
  198. package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/CacheStore.md +24 -9
  199. package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/Client.md +11 -6
  200. package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/Dispatcher.md +3 -0
  201. package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/Errors.md +76 -1
  202. package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/H2CClient.md +3 -2
  203. package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/Interceptors.md +28 -8
  204. package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/RedirectHandler.md +13 -10
  205. package/node_modules/@maka/runtime/node_modules/undici/docs/docs/index.md +12 -12
  206. package/node_modules/@maka/runtime/node_modules/undici/docs/docs/type-map.json +66 -66
  207. package/node_modules/@maka/runtime/node_modules/undici/lib/cache/memory-cache-store.js +48 -13
  208. package/node_modules/@maka/runtime/node_modules/undici/lib/cache/sqlite-cache-store.js +83 -5
  209. package/node_modules/@maka/runtime/node_modules/undici/lib/core/connect.js +10 -4
  210. package/node_modules/@maka/runtime/node_modules/undici/lib/core/constants.js +12 -1
  211. package/node_modules/@maka/runtime/node_modules/undici/lib/core/errors.js +38 -1
  212. package/node_modules/@maka/runtime/node_modules/undici/lib/core/request.js +16 -1
  213. package/node_modules/@maka/runtime/node_modules/undici/lib/core/symbols.js +2 -0
  214. package/node_modules/@maka/runtime/node_modules/undici/lib/core/util.js +26 -1
  215. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/agent.js +6 -2
  216. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/client-h1.js +116 -80
  217. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/client-h2.js +124 -17
  218. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/client.js +4 -1
  219. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/dispatcher-base.js +3 -2
  220. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +20 -3
  221. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/parser-h1.js +1064 -0
  222. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/pool-base.js +85 -31
  223. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/pool.js +11 -8
  224. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/proxy-agent.js +18 -8
  225. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/retry-agent.js +10 -0
  226. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/round-robin-pool.js +15 -5
  227. package/node_modules/@maka/runtime/node_modules/undici/lib/handler/cache-handler.js +153 -15
  228. package/node_modules/@maka/runtime/node_modules/undici/lib/handler/deduplication-handler.js +112 -51
  229. package/node_modules/@maka/runtime/node_modules/undici/lib/handler/redirect-handler.js +28 -8
  230. package/node_modules/@maka/runtime/node_modules/undici/lib/handler/retry-handler.js +44 -11
  231. package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/cache.js +11 -3
  232. package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/decompress.js +22 -9
  233. package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/dns.js +11 -0
  234. package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/response-error.js +72 -28
  235. package/node_modules/@maka/runtime/node_modules/undici/lib/milo/LICENSE.md +7 -0
  236. package/node_modules/@maka/runtime/node_modules/undici/lib/milo/no-simd.js +1002 -0
  237. package/node_modules/@maka/runtime/node_modules/undici/lib/milo/simd.js +1002 -0
  238. package/node_modules/@maka/runtime/node_modules/undici/lib/mock/mock-agent.js +11 -0
  239. package/node_modules/@maka/runtime/node_modules/undici/lib/mock/snapshot-recorder.js +3 -2
  240. package/node_modules/@maka/runtime/node_modules/undici/lib/mock/snapshot-utils.js +3 -2
  241. package/node_modules/@maka/runtime/node_modules/undici/lib/util/cache.js +11 -5
  242. package/node_modules/@maka/runtime/node_modules/undici/lib/web/cookies/util.js +19 -2
  243. package/node_modules/@maka/runtime/node_modules/undici/lib/web/eventsource/eventsource-stream.js +69 -15
  244. package/node_modules/@maka/runtime/node_modules/undici/lib/web/eventsource/eventsource.js +25 -2
  245. package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/body.js +47 -38
  246. package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/formdata-parser.js +12 -4
  247. package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/headers.js +2 -2
  248. package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/index.js +8 -4
  249. package/node_modules/@maka/runtime/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +5 -5
  250. package/node_modules/@maka/runtime/node_modules/undici/lib/web/websocket/receiver.js +25 -4
  251. package/node_modules/@maka/runtime/node_modules/undici/package.json +9 -7
  252. package/node_modules/@maka/runtime/package.json +4 -0
  253. package/node_modules/@maka/runtime-host/dist/assistant/bot/avatar.js +103 -0
  254. package/node_modules/@maka/runtime-host/dist/assistant/bot/bridge.js +63 -0
  255. package/node_modules/@maka/runtime-host/dist/assistant/bot/capabilities.js +61 -0
  256. package/node_modules/@maka/runtime-host/dist/assistant/bot/character-initialization.js +342 -0
  257. package/node_modules/@maka/runtime-host/dist/assistant/bot/character-pack.js +522 -0
  258. package/node_modules/@maka/runtime-host/dist/assistant/bot/controller.js +370 -0
  259. package/node_modules/@maka/runtime-host/dist/assistant/bot/conversation.js +116 -0
  260. package/node_modules/@maka/runtime-host/dist/assistant/bot/host.js +233 -0
  261. package/node_modules/@maka/runtime-host/dist/assistant/bot/pet-pack.js +66 -0
  262. package/node_modules/@maka/runtime-host/dist/assistant/bot/pet-requirements.js +78 -0
  263. package/node_modules/@maka/runtime-host/dist/assistant/bot/store.js +330 -0
  264. package/node_modules/@maka/runtime-host/dist/assistant/bot/turn-ids.js +38 -0
  265. package/node_modules/@maka/runtime-host/dist/assistant/index-initiative/assistant.js +10 -1
  266. package/node_modules/@maka/runtime-host/dist/assistant/index-initiative/controller.js +248 -22
  267. package/node_modules/@maka/runtime-host/dist/assistant/index-initiative/discovery-capabilities.js +72 -0
  268. package/node_modules/@maka/runtime-host/dist/assistant/index-initiative/host.js +79 -15
  269. package/node_modules/@maka/runtime-host/dist/assistant/index-initiative/notebook.js +292 -0
  270. package/node_modules/@maka/runtime-host/dist/assistant/index-initiative/prompt.js +34 -7
  271. package/node_modules/@maka/runtime-host/dist/assistant/index-initiative/quick-prompt.js +34 -0
  272. package/node_modules/@maka/runtime-host/dist/assistant/index-initiative/quick.js +518 -0
  273. package/node_modules/@maka/runtime-host/dist/assistant/index-initiative/store.js +33 -4
  274. package/node_modules/@maka/runtime-host/dist/assistant/memory-network/controller.js +423 -105
  275. package/node_modules/@maka/runtime-host/dist/assistant/memory-network/host.js +96 -16
  276. package/node_modules/@maka/runtime-host/dist/assistant/memory-network/reads.js +231 -0
  277. package/node_modules/@maka/runtime-host/dist/assistant/proactive-matters/clarification.js +124 -0
  278. package/node_modules/@maka/runtime-host/dist/assistant/proactive-matters/condition-observer.js +94 -0
  279. package/node_modules/@maka/runtime-host/dist/assistant/proactive-matters/condition-store.js +253 -0
  280. package/node_modules/@maka/runtime-host/dist/assistant/proactive-matters/condition.js +133 -0
  281. package/node_modules/@maka/runtime-host/dist/assistant/proactive-matters/controller.js +41 -7
  282. package/node_modules/@maka/runtime-host/dist/assistant/proactive-matters/delegation.js +67 -16
  283. package/node_modules/@maka/runtime-host/dist/assistant/proactive-matters/delivery.js +12 -1
  284. package/node_modules/@maka/runtime-host/dist/assistant/proactive-matters/host.js +18 -9
  285. package/node_modules/@maka/runtime-host/dist/assistant/proactive-matters/matter.js +13 -0
  286. package/node_modules/@maka/runtime-host/dist/assistant/proactive-matters/prompt.js +7 -5
  287. package/node_modules/@maka/runtime-host/dist/assistant/proactive-matters/review.js +68 -14
  288. package/node_modules/@maka/runtime-host/dist/assistant/proactive-matters/settlement-context.js +126 -0
  289. package/node_modules/@maka/runtime-host/dist/assistant/proactive-matters/store.js +97 -9
  290. package/node_modules/@maka/runtime-host/dist/assistant/proactive-matters/tools.js +93 -23
  291. package/node_modules/@maka/runtime-host/dist/assistant/service.js +95 -16
  292. package/node_modules/@maka/runtime-host/dist/client/host-profile.js +30 -1
  293. package/node_modules/@maka/runtime-host/dist/client/ssh-operator-activation.js +9 -2
  294. package/node_modules/@maka/runtime-host/dist/protocol/event-wait.js +183 -0
  295. package/node_modules/@maka/runtime-host/dist/protocol/goal.js +1 -1
  296. package/node_modules/@maka/runtime-host/dist/protocol/index.js +27 -1
  297. package/node_modules/@maka/runtime-host/dist/protocol/message.js +20 -1
  298. package/node_modules/@maka/runtime-host/dist/protocol/operations.js +10 -1
  299. package/node_modules/@maka/runtime-host/dist/protocol/personal-assistant.js +38 -0
  300. package/node_modules/@maka/runtime-host/dist/protocol/plugin-platform.js +7 -1
  301. package/node_modules/@maka/runtime-host/dist/protocol/session-checkin.js +133 -0
  302. package/node_modules/@maka/runtime-host/dist/protocol/session-continuity.js +11 -1
  303. package/node_modules/@maka/runtime-host/dist/protocol/turn.js +3 -1
  304. package/node_modules/@maka/runtime-host/dist/server/access-credential-store.js +3 -0
  305. package/node_modules/@maka/runtime-host/dist/server/agent-settings-tools.js +0 -1
  306. package/node_modules/@maka/runtime-host/dist/server/assistant-pet-packs.js +86 -0
  307. package/node_modules/@maka/runtime-host/dist/server/avatar-image-source.js +66 -0
  308. package/node_modules/@maka/runtime-host/dist/server/canonical-session-projection.js +18 -4
  309. package/node_modules/@maka/runtime-host/dist/server/event-wait-adapter.js +4 -0
  310. package/node_modules/@maka/runtime-host/dist/server/event-wait-manager.js +205 -58
  311. package/node_modules/@maka/runtime-host/dist/server/event-wait-observation-store.js +34 -0
  312. package/node_modules/@maka/runtime-host/dist/server/event-wait-sources.js +19 -0
  313. package/node_modules/@maka/runtime-host/dist/server/execution-composition.js +477 -118
  314. package/node_modules/@maka/runtime-host/dist/server/execution-model-authority.js +47 -3
  315. package/node_modules/@maka/runtime-host/dist/server/execution-model-composition.js +16 -2
  316. package/node_modules/@maka/runtime-host/dist/server/external-session-coordinator.js +5 -2
  317. package/node_modules/@maka/runtime-host/dist/server/goal-coordinator.js +448 -55
  318. package/node_modules/@maka/runtime-host/dist/server/goal-execution-coordinator.js +47 -6
  319. package/node_modules/@maka/runtime-host/dist/server/goal-projection.js +3 -3
  320. package/node_modules/@maka/runtime-host/dist/server/goal-waiting.js +372 -0
  321. package/node_modules/@maka/runtime-host/dist/server/hosted-execution-recovery.js +6 -1
  322. package/node_modules/@maka/runtime-host/dist/server/index.js +2 -0
  323. package/node_modules/@maka/runtime-host/dist/server/interactive-run-composer.js +48 -5
  324. package/node_modules/@maka/runtime-host/dist/server/invocation-event-waits.js +472 -0
  325. package/node_modules/@maka/runtime-host/dist/server/message-coordinator.js +81 -3
  326. package/node_modules/@maka/runtime-host/dist/server/personal-assistant-workspace.js +78 -0
  327. package/node_modules/@maka/runtime-host/dist/server/root-turn-coordinator.js +8 -0
  328. package/node_modules/@maka/runtime-host/dist/server/session-catalog-coordinator.js +73 -3
  329. package/node_modules/@maka/runtime-host/dist/server/session-checkin.js +257 -0
  330. package/node_modules/@maka/runtime-host/dist/server/session-checkpoint-coordinator.js +282 -0
  331. package/node_modules/@maka/runtime-host/dist/server/session-checkpoint-publication.js +250 -0
  332. package/node_modules/@maka/runtime-host/dist/server/shell-run-event-wait-access.js +166 -0
  333. package/node_modules/@maka/runtime-host/dist/server/shell-run-event-wait-adapter.js +59 -0
  334. package/node_modules/@maka/runtime-host/dist/server/skill-catalog-repository.js +4 -2
  335. package/node_modules/@maka/storage/dist/agent-run-store-contract.js +19 -4
  336. package/node_modules/@maka/storage/dist/agent-run-store.js +10 -0
  337. package/node_modules/@maka/storage/dist/codex-session-adapter.js +20 -3
  338. package/node_modules/@maka/storage/dist/context-offload-snapshot.js +2 -1
  339. package/node_modules/@maka/storage/dist/cursor-session-adapter.js +604 -0
  340. package/node_modules/@maka/storage/dist/event-wait-authority.js +83 -7
  341. package/node_modules/@maka/storage/dist/event-wait-bridge.js +102 -0
  342. package/node_modules/@maka/storage/dist/event-wait-consumer.js +290 -0
  343. package/node_modules/@maka/storage/dist/execution-stores.js +54 -3
  344. package/node_modules/@maka/storage/dist/external-session-adapters.js +2 -0
  345. package/node_modules/@maka/storage/dist/external-session-images.js +131 -0
  346. package/node_modules/@maka/storage/dist/external-session-importer.js +12 -2
  347. package/node_modules/@maka/storage/dist/goal-authority.js +2 -0
  348. package/node_modules/@maka/storage/dist/legacy-goal-event-wait-migration.js +209 -0
  349. package/node_modules/@maka/storage/dist/local-execution-persistence.js +27 -1
  350. package/node_modules/@maka/storage/dist/operational-state-store.js +3 -1
  351. package/node_modules/@maka/storage/dist/pet-pack-store.js +10 -1
  352. package/node_modules/@maka/storage/dist/production-session-snapshot.js +14 -6
  353. package/node_modules/@maka/storage/dist/runtime-event-persistence.js +1 -0
  354. package/node_modules/@maka/storage/dist/session-bundle-policy.js +116 -16
  355. package/node_modules/@maka/storage/dist/session-checkpoint-publication-store.js +204 -0
  356. package/node_modules/@maka/storage/dist/session-store.js +37 -8
  357. package/node_modules/@maka/storage/dist/settings-store.js +22 -1
  358. package/node_modules/@maka/storage/dist/snapshot-operation-gate.js +65 -0
  359. package/node_modules/@maka/storage/dist/sqlite-context-offload-schema.js +3 -3
  360. package/node_modules/@maka/storage/dist/sqlite-context-offload-store.js +4 -2
  361. package/node_modules/@maka/storage/dist/sqlite-event-wait-authority.js +306 -23
  362. package/node_modules/@maka/storage/dist/sqlite-event-wait-bridge.js +88 -0
  363. package/node_modules/@maka/storage/dist/sqlite-reclamation-checkpoint.js +37 -0
  364. package/node_modules/@maka/storage/dist/sqlite-runtime-schema.js +7 -8
  365. package/node_modules/@maka/storage/dist/sqlite-runtime-store.js +38 -162
  366. package/node_modules/@maka/storage/dist/sqlite-workflow-schema.js +32 -7
  367. package/node_modules/@maka/storage/dist/tool-commit-validation.js +1 -1
  368. package/node_modules/@maka/storage/package.json +4 -0
  369. package/node_modules/@modelcontextprotocol/client/dist/index-B-4n9P0J.d.mts.map +1 -0
  370. package/node_modules/@modelcontextprotocol/client/dist/index-J2FaQ-KY.d.cts.map +1 -0
  371. package/node_modules/@modelcontextprotocol/client/dist/index.cjs +76 -22
  372. package/node_modules/@modelcontextprotocol/client/dist/index.d.cts.map +1 -1
  373. package/node_modules/@modelcontextprotocol/client/dist/index.d.mts.map +1 -1
  374. package/node_modules/@modelcontextprotocol/client/dist/index.mjs +76 -22
  375. package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.cjs +1 -1
  376. package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.mjs +1 -1
  377. package/node_modules/@modelcontextprotocol/client/dist/{src-oZBjf3U1.cjs → src-DpAS0jfg.cjs} +105 -8
  378. package/node_modules/@modelcontextprotocol/client/dist/{src-xKF0PJN-.mjs → src-WCy6ifGf.mjs} +88 -9
  379. package/node_modules/@modelcontextprotocol/client/dist/stdio.cjs +1 -1
  380. package/node_modules/@modelcontextprotocol/client/dist/stdio.mjs +1 -1
  381. package/node_modules/@modelcontextprotocol/client/node_modules/@modelcontextprotocol/core/package.json +2 -2
  382. package/node_modules/@modelcontextprotocol/client/package.json +5 -5
  383. package/node_modules/fast-uri/.github/workflows/release.yml +35 -0
  384. package/node_modules/fast-uri/README.md +8 -0
  385. package/node_modules/fast-uri/index.js +98 -18
  386. package/node_modules/fast-uri/lib/utils.js +52 -0
  387. package/node_modules/fast-uri/package.json +1 -1
  388. package/node_modules/follow-redirects/index.js +10 -1
  389. package/node_modules/follow-redirects/package.json +1 -1
  390. package/node_modules/ip-address/README.md +104 -104
  391. package/node_modules/ip-address/dist/ipv4.js +7 -0
  392. package/node_modules/ip-address/dist/ipv6.js +7 -4
  393. package/node_modules/ip-address/dist/v6/constants.js +3 -0
  394. package/node_modules/ip-address/package.json +2 -1
  395. package/node_modules/undici/README.md +25 -3
  396. package/node_modules/undici/docs/docs/api/CacheStore.md +24 -9
  397. package/node_modules/undici/docs/docs/api/Client.md +11 -6
  398. package/node_modules/undici/docs/docs/api/Dispatcher.md +3 -0
  399. package/node_modules/undici/docs/docs/api/Errors.md +76 -1
  400. package/node_modules/undici/docs/docs/api/H2CClient.md +3 -2
  401. package/node_modules/undici/docs/docs/api/Interceptors.md +28 -8
  402. package/node_modules/undici/docs/docs/api/RedirectHandler.md +13 -10
  403. package/node_modules/undici/docs/docs/index.md +12 -12
  404. package/node_modules/undici/docs/docs/type-map.json +66 -66
  405. package/node_modules/undici/lib/cache/memory-cache-store.js +48 -13
  406. package/node_modules/undici/lib/cache/sqlite-cache-store.js +83 -5
  407. package/node_modules/undici/lib/core/connect.js +10 -4
  408. package/node_modules/undici/lib/core/constants.js +12 -1
  409. package/node_modules/undici/lib/core/errors.js +38 -1
  410. package/node_modules/undici/lib/core/request.js +16 -1
  411. package/node_modules/undici/lib/core/symbols.js +2 -0
  412. package/node_modules/undici/lib/core/util.js +26 -1
  413. package/node_modules/undici/lib/dispatcher/agent.js +6 -2
  414. package/node_modules/undici/lib/dispatcher/client-h1.js +116 -80
  415. package/node_modules/undici/lib/dispatcher/client-h2.js +124 -17
  416. package/node_modules/undici/lib/dispatcher/client.js +4 -1
  417. package/node_modules/undici/lib/dispatcher/dispatcher-base.js +3 -2
  418. package/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +20 -3
  419. package/node_modules/undici/lib/dispatcher/parser-h1.js +1064 -0
  420. package/node_modules/undici/lib/dispatcher/pool-base.js +85 -31
  421. package/node_modules/undici/lib/dispatcher/pool.js +11 -8
  422. package/node_modules/undici/lib/dispatcher/proxy-agent.js +18 -8
  423. package/node_modules/undici/lib/dispatcher/retry-agent.js +10 -0
  424. package/node_modules/undici/lib/dispatcher/round-robin-pool.js +15 -5
  425. package/node_modules/undici/lib/handler/cache-handler.js +153 -15
  426. package/node_modules/undici/lib/handler/deduplication-handler.js +112 -51
  427. package/node_modules/undici/lib/handler/redirect-handler.js +28 -8
  428. package/node_modules/undici/lib/handler/retry-handler.js +44 -11
  429. package/node_modules/undici/lib/interceptor/cache.js +11 -3
  430. package/node_modules/undici/lib/interceptor/decompress.js +22 -9
  431. package/node_modules/undici/lib/interceptor/dns.js +11 -0
  432. package/node_modules/undici/lib/interceptor/response-error.js +72 -28
  433. package/node_modules/undici/lib/milo/LICENSE.md +7 -0
  434. package/node_modules/undici/lib/milo/no-simd.js +1002 -0
  435. package/node_modules/undici/lib/milo/simd.js +1002 -0
  436. package/node_modules/undici/lib/mock/mock-agent.js +11 -0
  437. package/node_modules/undici/lib/mock/snapshot-recorder.js +3 -2
  438. package/node_modules/undici/lib/mock/snapshot-utils.js +3 -2
  439. package/node_modules/undici/lib/util/cache.js +11 -5
  440. package/node_modules/undici/lib/web/cookies/util.js +19 -2
  441. package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +69 -15
  442. package/node_modules/undici/lib/web/eventsource/eventsource.js +25 -2
  443. package/node_modules/undici/lib/web/fetch/body.js +47 -38
  444. package/node_modules/undici/lib/web/fetch/formdata-parser.js +12 -4
  445. package/node_modules/undici/lib/web/fetch/headers.js +2 -2
  446. package/node_modules/undici/lib/web/fetch/index.js +8 -4
  447. package/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +5 -5
  448. package/node_modules/undici/lib/web/websocket/receiver.js +25 -4
  449. package/node_modules/undici/package.json +9 -7
  450. package/node_modules/zod/package.json +1 -1
  451. package/node_modules/zod/v4/core/compile.cjs +8 -0
  452. package/node_modules/zod/v4/core/compile.js +8 -0
  453. package/node_modules/zod/v4/core/schemas.cjs +30 -0
  454. package/node_modules/zod/v4/core/schemas.js +30 -0
  455. package/node_modules/zod/v4/core/util.cjs +15 -0
  456. package/node_modules/zod/v4/core/util.js +14 -0
  457. package/node_modules/zod/v4/core/versions.cjs +1 -1
  458. package/node_modules/zod/v4/core/versions.js +1 -1
  459. package/package.json +2 -2
  460. package/node_modules/@modelcontextprotocol/client/dist/index-D_CiY-T3.d.cts.map +0 -1
  461. package/node_modules/@modelcontextprotocol/client/dist/index-D_QDtbiv.d.mts.map +0 -1
package/DISCLAIMER-WIP CHANGED
@@ -12,7 +12,7 @@ conditions. What follows is a list of issues the project is currently aware of
12
12
  (this list is likely to be incomplete):
13
13
 
14
14
  * The initial-code authorization review remains open at
15
- https://github.com/apache/maka/issues/3268. Since RC1, the ASF has recorded
15
+ https://github.com/apache/maka/issues/3268. Since 0.2.0 RC1, the ASF has recorded
16
16
  the ICLA of contributor Mingqwqqaq, and the Deep Research implementation
17
17
  has been removed. The review still needs to record the authorization basis
18
18
  for the retained initial code; these changes do not establish that an SGA
package/LICENSE CHANGED
@@ -218,7 +218,9 @@ License: Apache-2.0
218
218
  These patches modify the execution time policy and its SDK forwarding. The
219
219
  Apache License, Version 2.0 above applies. The generated run Worker includes
220
220
  embedded third-party code; its upstream notices and license texts are retained
221
- in patches/run-2.1.4-notices.md.
221
+ in patches/run-2.1.4-notices.md. The patch carries no WebAssembly binary:
222
+ postinstall substitutes the unchanged payload from the installed run package
223
+ for `__MAKA_RUN_WASM_BASE64__` before applying the patch.
222
224
 
223
225
  Vercel AI SDK
224
226
 
@@ -240,7 +242,7 @@ License, Version 2.0 above applies to the adapted material.
240
242
  The pinned versions are the ones present when the adaptation was made. The
241
243
  adapted declarations are unchanged through @ai-sdk/provider-utils 5.0.25 and
242
244
  @ai-sdk/provider 4.0.7, the versions recorded by the code origin audit. Maka
243
- also redistributes a patch against @ai-sdk/provider-utils 5.0.40; that patch
245
+ also redistributes a patch against @ai-sdk/provider-utils 5.0.51; that patch
244
246
  modifies Apache-2.0 source and is covered by the license reproduced above.
245
247
 
246
248
  Astryx
@@ -351,10 +353,10 @@ SOFTWARE.
351
353
 
352
354
  Zod dependency patch
353
355
 
354
- Source: https://www.npmjs.com/package/zod/v/4.6.5
356
+ Source: https://www.npmjs.com/package/zod/v/4.6.7
355
357
  Repository: https://github.com/colinhacks/zod
356
- Version: 4.6.5
357
- Dependency patch: patches/zod+4.6.5.patch
358
+ Version: 4.6.7
359
+ Dependency patch: patches/zod+4.6.7.patch
358
360
  Copyright (c) 2025 Colin McDonnell
359
361
  License: MIT
360
362
 
@@ -385,12 +387,12 @@ SOFTWARE.
385
387
 
386
388
  Model Context Protocol client dependency patch
387
389
 
388
- Source: https://www.npmjs.com/package/@modelcontextprotocol/client/v/2.2.0
390
+ Source: https://www.npmjs.com/package/@modelcontextprotocol/client/v/2.3.0
389
391
  Repository: https://github.com/modelcontextprotocol/typescript-sdk
390
- Version: 2.2.0
391
- Dependency patch: patches/@modelcontextprotocol+client+2.2.0.patch
392
+ Version: 2.3.0
393
+ Dependency patch: patches/@modelcontextprotocol+client+2.3.0.patch
392
394
  Copyright (c) 2024-2025 Model Context Protocol a Series of LF Projects, LLC.
393
- Declared package license: MIT
395
+ Declared package license: Apache-2.0
394
396
 
395
397
  Maka redistributes a source patch that releases settled request observers under
396
398
  transport backpressure. The upstream package's LICENSE describes a transition
@@ -622,6 +624,9 @@ License: MIT
622
624
  adaptations of this component.
623
625
  The following MIT License applies to that material:
624
626
 
627
+ Maka-authored modifications are licensed under the Apache License, Version 2.0
628
+ reproduced above; the upstream portions retain the MIT terms below.
629
+
625
630
  MIT License
626
631
 
627
632
  Copyright (c) 2025 Cua AI, Inc.
@@ -809,8 +814,7 @@ Desktop renderer vendored source assets
809
814
 
810
815
  The source archive includes third-party SVG paths and source assets from
811
816
  Lobe Icons (MIT), LocalAI (MIT), Simple Icons (CC0-1.0), TDesign Icons (MIT),
812
- MingCute (Apache-2.0), Allogo (MIT), Ant Design Icons (MIT), and Semi Design
813
- (MIT), used by the desktop renderer. Their file-by-file inventory, immutable upstream revisions,
817
+ MingCute (Apache-2.0), and Allogo (MIT), used by the desktop renderer. Their file-by-file inventory, immutable upstream revisions,
814
818
  copyright notices, and license texts are in:
815
819
 
816
820
  apps/desktop/src/renderer/public/THIRD_PARTY_LICENSES.txt
package/README.md CHANGED
@@ -48,7 +48,7 @@ conditions. What follows is a list of issues the project is currently aware of
48
48
  (this list is likely to be incomplete):
49
49
 
50
50
  * The initial-code authorization review remains open at
51
- https://github.com/apache/maka/issues/3268. Since RC1, the ASF has recorded
51
+ https://github.com/apache/maka/issues/3268. Since 0.2.0 RC1, the ASF has recorded
52
52
  the ICLA of contributor Mingqwqqaq, and the Deep Research implementation
53
53
  has been removed. The review still needs to record the authorization basis
54
54
  for the retained initial code; these changes do not establish that an SGA
@@ -142,6 +142,178 @@ Maka asks before privileged tool operations by default. `maka run --yolo` grants
142
142
  and network access and should only be used in an environment you are prepared to let the task
143
143
  modify.
144
144
 
145
+
146
+ For a parent agent coordinating work across calls, prefer `--no-wait`, save the returned
147
+ `sessionId` as `$session`, then wait when ready to handle an interaction or result:
148
+
149
+ ```sh
150
+ maka run "Inspect this project" --no-wait
151
+ maka run --session "$session" --wait --json
152
+ ```
153
+
154
+ `--no-wait` already returns JSON; an extra `--json` is unnecessary. Ordinary `maka run` keeps its
155
+ blocking default and prints the final answer, making it suitable for a single shell call.
156
+ Use `maka run "Inspect this project" --json` for a structured blocking result.
157
+
158
+ Choose the next Session call by purpose:
159
+
160
+ ```sh
161
+ maka run --session "$session" --status
162
+ maka run --session "$session" --recap --json
163
+ maka run --session "$session" --answer '["Yes",null]' --json
164
+ maka run --session "$session" "Inspect the tests next" --no-wait
165
+ maka run --session "$session" "Focus on the parser" --steer --no-wait
166
+ maka run --session "$session" --result --json
167
+ maka run --session "$session" --resume --json
168
+ ```
169
+
170
+ An added prompt queues by default, so `--queue` is optional. Repeating the same flag or value is
171
+ accepted; conflicting values and incompatible actions still produce a usage error. Execution commands wait unless given
172
+ `--no-wait`; `--session <id> --wait` explicitly observes the current Turn without submitting work.
173
+
174
+ | Call | Default stdout | Meaning of exit 0 |
175
+ | --- | --- | --- |
176
+ | Ordinary run or Session wait/result | Final answer text; pending interactions are JSON | Inspect the outcome; a pending interaction still needs a decision |
177
+ | `--no-wait` | JSON admission receipt | Submission accepted, not task completion |
178
+ | `--status` / `--stop` | JSON | Observation or stop request succeeded |
179
+ | Model settings without an action | JSON with `configuration` | Settings saved; execution is unchanged |
180
+ | `--recap` | Summary text | Independent summary generated |
181
+
182
+ Rejecting an approval informs the model and lets the same Turn continue within existing permissions
183
+ or explain the blocker. A tool failure alone does not override the Runtime terminal status. Waits
184
+ return at Turn completion or the next interaction; `--deny --no-wait` only submits the decision.
185
+
186
+ Use `--json` on waits, results, and recaps for uniform structured results. `status` is the lifecycle;
187
+ `finalOutput` is the task answer; `recap` is progress; `submission` is an admission receipt. Errors are brief text on stderr by default. Explicit `--json` returns structured errors on stdout,
188
+ including the original message and Host `code` when available. An operation error does not assert
189
+ that the Session failed. For a remote Host, repeat the same `--host <profile-id>`
190
+ on every call. `--session` inherits saved settings and accepts persistent model/connection/thinking updates.
191
+ Workspace, timeout, and Graph overrides still require legacy `--resume <id>` and are rejected
192
+ before connecting when combined with `--session`.
193
+
194
+ Change a Session's model persistently, then explicitly choose continuation or a new message:
195
+
196
+ ```sh
197
+ maka run --session "$session" --model "other-model"
198
+ maka run --session "$session" --model "other-model" --resume --json
199
+ maka run --session "$session" --model "other-model" "Continue the review" --no-wait
200
+ ```
201
+
202
+ These are three alternatives. The first only saves settings and returns a JSON `configuration`
203
+ receipt with `connection`, `model`, and `thinking`; it does not start or resume execution.
204
+ Add `--connection <slug>` to select a different saved account. Native native model/connection changes reset
205
+ thinking to the model default unless `--thinking` is supplied; selecting the same target preserves the saved level. The new settings persist for future
206
+ calls, like Desktop model selection; global defaults and permissions are unchanged.
207
+
208
+ Settings are saved before an explicit action, so they remain saved if that later action fails.
209
+ CLI does not classify why execution stopped or choose a model automatically. Host errors such
210
+ as busy-session rejection are returned without implicitly stopping the Turn or resubmitting the
211
+ old prompt. Resume uses the Host's existing safe-continuation operation; a new prompt is new input.
212
+
213
+ `--recap` generates a one-sentence summary of recorded Session progress using the same
214
+ independent model call as TUI `/recap`. It works during an active Turn without steering,
215
+ queueing, stopping, or waiting for that Turn to finish. Without `--json` it prints the summary;
216
+ with `--json` it returns `sessionId`, current `status`, and a separate `recap` field, for example:
217
+
218
+ ```json
219
+ {"sessionId":"…","status":"running","queued":0,"recap":"You asked for a review; the parser is checked and test verification is still pending."}
220
+ ```
221
+
222
+ The recap is a snapshot of the history captured when generation starts. It cannot see unrecorded
223
+ work or results from a tool that has not returned, and execution can advance while it is generated.
224
+ Each invocation requests a fresh summary and consumes model usage; `--status` remains the cheap
225
+ status query. A recap is not the final answer (`--result`) or a reply from the running agent.
226
+ Combine `--status --recap` to return JSON containing both status/boundary and progress. Other
227
+ Session actions, prompts, and wait flags cannot be combined with recap.
228
+ Successful recap generation exits 0 even if the Session's latest Turn failed; generation errors
229
+ exit 1. Ctrl+C cancels the CLI observer and leaves Host execution running.
230
+
231
+ Session controls (`--session`) inherit the Host's saved permissions, just as they inherit the
232
+ model and working directory. Continuing, queueing, steering, or answering does not require another
233
+ `--yolo` and does not change the boundary. Add `--yolo` only to explicitly grant full access.
234
+ `--status` reports `executionBoundary`: managed `read_only`/`writable`, bypass, or external.
235
+ A read-only task instruction does not turn a bypass Session into an enforced read-only Session.
236
+ The legacy blocking `--resume <id>` selector retains its explicit `--yolo` requirement for bypass.
237
+
238
+ An ordinary built-in AskUser returns `needs_input`, the questions and options, with exit code 0.
239
+ The Host retains the waiting Turn. `--answer` accepts one string or `null` per question in a JSON
240
+ array and continues the original tool call and Turn. It does not need `--resume`. A failed or
241
+ uncertain answer submission is not automatically retried; read the current questions before
242
+ choosing what to do next. Multiple pending batches are reported, and an answer is refused when
243
+ the current batch cannot be selected uniquely.
244
+
245
+ For Host-owned Session execution, `--wait` and `--status` return `needs_approval` with
246
+ `approvalRequests` when a sandbox expansion is pending. Each entry contains its `kind`, requested
247
+ `expansion`, and `justification`; internal request IDs stay inside the CLI. Review the scope, then:
248
+
249
+ ```sh
250
+ maka run --session "$session" --approve --json
251
+ maka run --session "$session" --deny --json
252
+ ```
253
+
254
+ These are alternative decisions, not a sequence to execute. Both continue the original Turn and
255
+ require exactly one pending sandbox request in the Session; none or multiple are rejected without
256
+ submitting a decision. They do not need `--yolo` and cannot be combined with it. Approval applies
257
+ the requested expansion through the Host's managed boundary; it does not change the Session to
258
+ bypass. The expanded boundary is saved for subsequent execution in the Session. The flags
259
+ target the request pending when that CLI invocation attaches. Do not automatically
260
+ retry a decision after an uncertain result: read the current requests before deciding again.
261
+ Ordinary blocking runs retain their existing sandbox-boundary denial behavior.
262
+
263
+ For coordination, submit follow-ups without blocking, then service the Session's interactions:
264
+
265
+ ```sh
266
+ maka run --session "$session" "Inspect the tests next" --no-wait
267
+ maka run --session "$session" --wait --json
268
+ ```
269
+
270
+ Worker admission receipts have `submission: "started"`, `"queued"`, or `"steering"`. Their `status`
271
+ describes the currently observed Session, not completion of the submitted message. A queued receipt
272
+ can include `needs_input` and the current Turn's questions, or `needs_approval` and its sandbox
273
+ request. Answer that interaction before expecting the follow-up to execute. `queued` is the
274
+ observed total of follow-up and steering messages; it is not an exact position. An admission
275
+ receipt omits this count until its queue projection has caught up; use status for a fresh view. Status also reports
276
+ `providerRetry` when the Host has published a retry, without guessing activity from silence.
277
+
278
+ Assistant Inbox conversations instead return `submission: "inbox"`, without a worker result or queue count, even with `--wait`. This confirms Inbox admission only; inspect delegated work through its own worker Session.
279
+
280
+ Queue is the default: each explicit queued message opens its own subsequent Turn. Steer uses the
281
+ Host's existing current-Turn delivery and may carry over if it misses that Turn's last boundary.
282
+ Submitting a queued prompt without `--no-wait` follows that message's execution (`--wait` is optional). It does not return
283
+ questions from an earlier Turn blocking the queue; service those through a separate Session
284
+ wait/answer call, or use the coordination workflow above. Steer with `--wait`
285
+ observes the Turn selected on attachment; it does not guarantee consumption before that Turn ends. A standalone `--wait` fixes its
286
+ target on attachment; when idle, it reads the latest result. `--result` never waits for an active
287
+ Turn. Status and result queries do not prepare a model or start MCP. Interrupting Session
288
+ observation with Ctrl+C leaves Host execution running; legacy blocking run cancellation retains
289
+ its existing behavior. To stop Host execution explicitly, use `maka run --session "$session" --stop --json`.
290
+ Stop targets the current Turn observed on attachment and needs no `--yolo`; a successful request
291
+ exits 0. A successful explicit or implicit status query also exits 0 even if it reports a failed
292
+ or cancelled Turn; result/wait retain the task's failure exit code. Stop and status are not
293
+ assertions that the assigned task succeeded.
294
+
295
+ Permission requests, MCP forms, and other interactions that this Session CLI cannot answer
296
+ remain waiting in the Host. A wait reports the actual interaction kind and a recovery command: use an
297
+ interactive client on the same Host, or stop the Turn explicitly. Detached admission does not
298
+ promise that subsequent execution will need no interaction.
299
+
300
+ `--session <id> --resume` instead requests safe continuation of
301
+ stopped execution. An idle Session prompt can use `--max-steps`; a queued or steering message
302
+ cannot attach a step cap to an existing Turn.
303
+
304
+ Returning from client-owned MCP interaction and resuming it in another CLI process is not
305
+ supported. Blocking MCP runs retain their existing behavior; `--no-wait` refuses to detach the
306
+ MCP servers owned by that invocation. Graph interaction handoff is also deferred. Use a persistent
307
+ CLI installation for local Session control execution and detached runs; temporary npx invocations
308
+ may own the Host's lifetime and keep the legacy blocking path.
309
+
310
+ For agent-to-agent CLI workflows, install the repository's `maka-cli` skill after it is available
311
+ on your selected branch. It explains Session coordination; it does not install Maka itself:
312
+
313
+ ```sh
314
+ npx skills add apache/maka --skill maka-cli
315
+ ```
316
+
145
317
  ## Upgrade
146
318
 
147
319
  Update within the nightly line by pinning the exact release (`--target` accepts `latest`,
package/README.zh-CN.md CHANGED
@@ -108,6 +108,162 @@ maka run --help
108
108
  Maka 默认会在执行高权限工具操作前询问。`maka run --yolo` 会授予该任务完整的文件和网络
109
109
  权限,只应在你允许任务修改的环境中使用。
110
110
 
111
+
112
+ 主代理跨多次调用协调任务时,推荐使用 `--no-wait`,把返回的 `sessionId` 保存为 `$session`,
113
+ 准备处理交互或接收结果时再等待:
114
+
115
+ ```sh
116
+ maka run "检查这个项目" --no-wait
117
+ maka run --session "$session" --wait --json
118
+ ```
119
+
120
+ `--no-wait` 本身就返回 JSON,无需再加 `--json`。普通 `maka run` 仍默认等待并输出最终答案,
121
+ 适合单次 shell 调用;需要结构化的阻塞结果时使用 `maka run "检查这个项目" --json`。
122
+
123
+ 根据目的选择下一次会话调用:
124
+
125
+ ```sh
126
+ maka run --session "$session" --status
127
+ maka run --session "$session" --recap --json
128
+ maka run --session "$session" --answer '["是",null]' --json
129
+ maka run --session "$session" "接下来检查测试" --no-wait
130
+ maka run --session "$session" "重点检查参数解析" --steer --no-wait
131
+ maka run --session "$session" --result --json
132
+ maka run --session "$session" --resume --json
133
+ ```
134
+
135
+ 追加 prompt 默认排队,无需重复 `--queue`。重复相同参数或相同值可以接受;值冲突或无法
136
+ 同时执行的动作组合仍返回用法错误。执行命令默认等待,指定 `--no-wait` 才提交后返回;
137
+ `--session <id> --wait` 则是不提交新工作,只观察当前 Turn。
138
+
139
+ | 调用 | 默认 stdout | 退出码 0 的含义 |
140
+ | --- | --- | --- |
141
+ | 普通 run 或会话 wait/result | 最终答案文本;待处理交互返回 JSON | 仍须检查结果,待处理交互需要调用方决定 |
142
+ | `--no-wait` | JSON 接收回执 | 提交被接收,不代表任务完成 |
143
+ | `--status` / `--stop` | JSON | 状态查询或停止请求成功 |
144
+ | 模型设置且无动作 | 带 `configuration` 的 JSON | 设置已保存,执行状态不变 |
145
+ | `--recap` | 摘要文本 | 独立摘要生成成功 |
146
+
147
+ 在 wait、result、recap 上加 `--json` 可统一为结构化结果。`status` 表示生命周期,
148
+ `finalOutput` 是任务答案,`recap` 是进展,`submission` 是接收回执。
149
+ 远程 Host 的每次调用都应携带相同的 `--host <profile-id>`。
150
+
151
+ 拒绝审批会将决定反馈给模型,同一个 Turn 可以在现有权限内继续或说明阻碍。工具失败本身不会
152
+ 覆盖 Runtime 的终态。wait 等到 Turn 结束或下一次交互时返回;`--deny --no-wait` 只提交决定。
153
+ 错误默认以简短文本输出到 stderr;显式 `--json` 才向 stdout 输出结构化错误,保留原始信息和
154
+ Host 已提供的 `code`。操作失败不代表 Session 已失败。
155
+
156
+ `--session` 继承已保存的设置,并允许持久更新模型、连接和 thinking。工作目录、timeout 和
157
+ Graph 覆盖仍需使用旧选择器 `--resume <id>`;与 `--session` 组合时会在连接前拒绝。
158
+
159
+ 会话模型切换会持久保存,再由显式参数决定续跑或发送新消息:
160
+
161
+ ```sh
162
+ maka run --session "$session" --model "other-model"
163
+ maka run --session "$session" --model "other-model" --resume --json
164
+ maka run --session "$session" --model "other-model" "继续审查" --no-wait
165
+ ```
166
+
167
+ 这三条是不同用法。第一条只保存设置,返回带有 `connection`、`model`、`thinking` 的 JSON
168
+ `configuration` 回执,不会启动或恢复执行。加 `--connection <slug>` 可以选择另一个已保存的
169
+ 账号。原生模型或连接实际改变时会将 thinking 重置为模型默认值,除非显式指定 `--thinking`;选择相同目标会保留已保存的级别。
170
+ 与 Desktop 切换模型一样,新设置对后续调用持续生效;全局默认值和权限不变。
171
+
172
+ 设置先保存,再执行显式动作;即使后续动作失败,已保存的设置仍然保留。CLI 不判断会话因何
173
+ 停止,也不自动选择模型。Host 返回忙碌等错误时会直接返回,不隐式停止 Turn 或重发旧 prompt。
174
+ resume 使用 Host 已有的安全续跑操作;提供新 prompt 则是新输入。
175
+
176
+ `--recap` 复用 TUI `/recap` 的独立模型调用,用一句话总结会话已记录的进展。
177
+ 它可以在 Turn 运行中使用,不会 steering、排队、停止当前 Turn,也不等 Turn 完成。
178
+ 不加 `--json` 时直接输出摘要;加上后返回 `sessionId`、当前 `status` 和独立的 `recap` 字段,例如:
179
+
180
+ ```json
181
+ {"sessionId":"…","status":"running","queued":0,"recap":"你要求审查代码;参数解析已检查,测试验证尚未完成。"}
182
+ ```
183
+
184
+ 摘要基于生成开始时读取的历史快照,无法看到尚未记录的工作或尚未返回的工具结果;
185
+ 生成期间任务可能继续推进。每次调用都会重新请求模型并产生模型用量;只查状态继续用
186
+ `--status`。摘要不是最终答案(`--result`),也不是正在运行的代理直接回复的消息。
187
+ `--status --recap` 可组合返回包含状态、执行边界和进展的 JSON;recap 不能与其他会话动作、
188
+ prompt 或等待参数组合使用。
189
+ 摘要生成成功返回退出码 0,即使会话最近的 Turn 失败;生成失败返回退出码 1。
190
+ Ctrl+C 取消 CLI 观察,不会停止 Host 中的执行。
191
+
192
+ 会话控制(`--session`)与继承模型、工作目录一样,继承 Host 已保存的权限。续跑、queue、
193
+ steer 和回答问题不需要重复 `--yolo`,也不会改变执行边界;只有要显式授予完整权限时才加
194
+ `--yolo`。`--status` 会报告 `executionBoundary`:受管 `read_only`/`writable`、bypass 或 external。
195
+ 只读任务描述不等于强制只读沙箱,继承 bypass 的会话依然是完整权限。旧阻塞选择器
196
+ `--resume <id>` 对 bypass 会话仍保留显式 `--yolo` 要求。
197
+
198
+ 内置 AskUser 是普通阻塞运行的例外:它会输出问题 JSON 而不是最终答案。脚本应使用 `--json`
199
+ 并检查 `status`,不能仅凭退出码 0 判断任务完成。普通内置 AskUser 会以退出码 0 返回
200
+ `needs_input`、问题及选项,Host 保留等待中的 Turn。
201
+ `--answer` 使用 JSON 数组,为每个问题提供一个字符串或 `null`,回答后原工具调用和原 Turn
202
+ 继续执行,无需 `--resume`。答案提交失败或结果不确定时不会自动重发;先重新读取当前问题,
203
+ 再决定下一步。存在多批待回答问题时会如实报告,无法唯一选择当前批次时拒绝提交答案。
204
+
205
+ 对于 Host 持有的会话执行,`--wait` 和 `--status` 遇到沙箱扩展请求会返回 `needs_approval`,
206
+ 并在 `approvalRequests` 中列出 `kind`、扩展范围 `expansion` 和理由 `justification`;内部请求
207
+ ID 不暴露。查看范围后,选择批准或拒绝:
208
+
209
+ ```sh
210
+ maka run --session "$session" --approve --json
211
+ maka run --session "$session" --deny --json
212
+ ```
213
+
214
+ 上面两条命令是二选一,不能顺序执行。它们都继续原 Turn,要求会话中恰好有一个待处理沙箱
215
+ 请求;没有请求或存在多个请求时拒绝提交决定。它们无需 `--yolo`,也不能与之混用。批准通过
216
+ Host 扩展受管沙箱边界,并保存供该会话后续执行使用,不会将会话切换为 bypass。命令针对
217
+ 本次连接时待处理的请求;结果
218
+ 不确定时不要自动重试,应先读取当前请求,再决定下一步。普通阻塞运行仍保留原有的沙箱
219
+ 边界自动拒绝行为。
220
+
221
+ 协调线程推荐先后台入队,再处理会话交互:
222
+
223
+ ```sh
224
+ maka run --session "$session" "接下来检查测试" --no-wait
225
+ maka run --session "$session" --wait --json
226
+ ```
227
+
228
+ 工作会话提交回执中的 `submission` 为 `started`、`queued` 或 `steering`,只表示接收方式;`status`
229
+ 描述当前观察到的会话,不表示刚提交的消息已完成。排队回执可同时带有 `needs_input` 和当前
230
+ Turn 的问题,或 `needs_approval` 和沙箱请求;先回答交互,后续消息才能执行。`queued` 是观察到
231
+ 的后续消息与 steer 总数,不是精确排队位置;回执快照未追上接收结果时省略该计数,
232
+ 可用 status 读取新状态。Host 发布重试状态时,status 还会带上
233
+ `providerRetry`,不会根据静默时间猜测活动。
234
+
235
+ 助手 Inbox 会话返回 `submission: "inbox"`,不包含工作 Turn 的结果或队列计数,即使指定 `--wait` 也立即返回接收回执。这仅确认消息已进入 Inbox;委派工作的结果需通过对应工作会话查询。
236
+
237
+ 默认使用 queue,每条显式排队消息对应一个独立后续 Turn。steer 沿用 Host 当前 Turn 的追加
238
+ 机制,错过最后处理边界时可能进入后续 Turn。提交排队消息且未指定 `--no-wait` 时,调用跟踪该消息对应的执行(可显式加 `--wait`),不会返回前一 Turn 阻塞队列的问题;
239
+ 这类问题要通过独立的会话 wait/answer 处理,或采用上面的协调流程。steer 配合 `--wait` 观察连接时选定的
240
+ Turn,不保证追加消息一定在该 Turn 结束前消费。
241
+ 单独 `--wait` 在连接时固定目标,空闲时读取最近结果。`--result` 不等待仍在执行的 Turn。
242
+ 状态和结果查询不准备模型、不启动 MCP。用 Ctrl+C 退出会话观察会让 Host 继续执行;旧阻塞
243
+ run 的取消行为保持原样。显式停止 Host 执行可用 `maka run --session "$session" --stop --json`。
244
+ 停止操作针对连接时观察到的当前 Turn,不需要 `--yolo`,请求成功退出 0。显式或隐式的 status
245
+ 查询成功时也退出 0,即使它报告的 Turn 已失败或取消;result/wait 仍以任务失败返回非零退出码。
246
+ 停止或查询成功不代表分配的任务已完成。
247
+
248
+ 权限请求、MCP 表单等会话 CLI 无法回答的交互会留在 Host 中等待。wait 会报告实际交互类型和恢复
249
+ 命令:使用同一 Host 的交互式客户端处理,或显式停止该 Turn。后台提交成功不保证后续执行
250
+ 不会请求交互。
251
+
252
+ `--session <id> --resume` 则表示
253
+ 安全恢复已停止的执行。空闲会话的新 prompt 可以使用 `--max-steps`,排队或 steer 消息不能
254
+ 给已有 Turn 附加步数上限。
255
+
256
+ 当前不支持客户端 MCP 交互返回后由另一个 CLI 进程续接。阻塞 MCP 运行保留现有行为;
257
+ `--no-wait` 会拒绝脱离本次调用持有的 MCP servers。Graph 交互交接也暂缓。执行本地会话控制
258
+ 及后台提交时使用持久 CLI 安装;临时 npx 调用可能持有 Host 生命周期,继续使用旧阻塞路径。
259
+
260
+ 仓库的 `maka-cli` skill 提供主/子代理 CLI 协作指引;待其进入所选分支后可安装。
261
+ skill 本身不安装 Maka CLI:
262
+
263
+ ```sh
264
+ npx skills add apache/maka --skill maka-cli
265
+ ```
266
+
111
267
  ## 升级
112
268
 
113
269
  在 nightly 线内更新时固定精确版本(`--target` 只接受 `latest`、`next` 或精确的 Maka
@@ -752,9 +752,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
752
752
 
753
753
  ================================================================================
754
754
 
755
- Package: @modelcontextprotocol/client@2.2.0
756
- Declared license: MIT
757
- Selected license: MIT
755
+ Package: @modelcontextprotocol/client@2.3.0
756
+ Declared license: Apache-2.0
757
+ Selected license: Apache-2.0
758
758
  Repository: git+https://github.com/modelcontextprotocol/typescript-sdk.git
759
759
 
760
760
  --- LICENSE ---
@@ -977,9 +977,9 @@ the full license text.
977
977
 
978
978
  ================================================================================
979
979
 
980
- Package: @modelcontextprotocol/core@2.2.0
981
- Declared license: MIT
982
- Selected license: MIT
980
+ Package: @modelcontextprotocol/core@2.3.0
981
+ Declared license: Apache-2.0
982
+ Selected license: Apache-2.0
983
983
  Repository: git+https://github.com/modelcontextprotocol/typescript-sdk.git
984
984
 
985
985
  --- LICENSE ---
@@ -3970,7 +3970,7 @@ SOFTWARE.
3970
3970
 
3971
3971
  ================================================================================
3972
3972
 
3973
- Package: fast-uri@3.1.8
3973
+ Package: fast-uri@3.1.9
3974
3974
  Declared license: BSD-3-Clause
3975
3975
  Selected license: BSD-3-Clause
3976
3976
  Repository: git+https://github.com/fastify/fast-uri.git
@@ -4027,7 +4027,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
4027
4027
 
4028
4028
  ================================================================================
4029
4029
 
4030
- Package: follow-redirects@1.16.0
4030
+ Package: follow-redirects@1.16.1
4031
4031
  Declared license: MIT
4032
4032
  Selected license: MIT
4033
4033
  Repository: git+ssh://git@github.com/follow-redirects/follow-redirects.git
@@ -4781,7 +4781,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4781
4781
 
4782
4782
  ================================================================================
4783
4783
 
4784
- Package: ip-address@10.7.2
4784
+ Package: ip-address@10.7.4
4785
4785
  Declared license: MIT
4786
4786
  Selected license: MIT
4787
4787
  Repository: https://github.com/beaugunderson/ip-address.git
@@ -7444,7 +7444,7 @@ PERFORMANCE OF THIS SOFTWARE.
7444
7444
 
7445
7445
  ================================================================================
7446
7446
 
7447
- Package: undici@7.30.0
7447
+ Package: undici@7.30.1
7448
7448
  Declared license: MIT
7449
7449
  Selected license: MIT
7450
7450
  Repository: git+https://github.com/nodejs/undici.git
@@ -7474,7 +7474,7 @@ SOFTWARE.
7474
7474
 
7475
7475
  ================================================================================
7476
7476
 
7477
- Package: undici@8.11.2
7477
+ Package: undici@8.12.3
7478
7478
  Declared license: MIT
7479
7479
  Selected license: MIT
7480
7480
  Repository: git+https://github.com/nodejs/undici.git
@@ -7934,7 +7934,7 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
7934
7934
 
7935
7935
  ================================================================================
7936
7936
 
7937
- Package: zod@4.6.5
7937
+ Package: zod@4.6.7
7938
7938
  Declared license: MIT
7939
7939
  Selected license: MIT
7940
7940
  Repository: git+https://github.com/colinhacks/zod.git
package/dist/cli-core.js CHANGED
@@ -316,6 +316,7 @@ export async function runMakaCli(argv = process.argv.slice(2), options = RELEASE
316
316
  ...(command.repairRootAfterRemount ? { repairRootAfterRemount: true } : {}),
317
317
  updateExisting: command.updateExisting,
318
318
  reuseExistingEnvironment: command.reuseExistingEnvironment,
319
+ ...(command.expectedExisting ? { expectedExisting: command.expectedExisting } : {}),
319
320
  allowInterruptActiveTasks: command.allowInterruptActiveTasks,
320
321
  ...(command.rootPath ? { rootPath: command.rootPath } : {}),
321
322
  ...(command.projectDirectoryRoots
@@ -3786,7 +3786,7 @@ export async function runMakaPiTui(input) {
3786
3786
  selectedIndex: items.findIndex((item) => item.value === cursorValue),
3787
3787
  });
3788
3788
  };
3789
- const showGoalSummary = () => {
3789
+ const showGoalSummary = async () => {
3790
3790
  // Read the live projection at request time: /goal is the one place the
3791
3791
  // user asks for the state *right now*.
3792
3792
  if (!input.driver.getGoal) {
@@ -3798,11 +3798,33 @@ export async function runMakaPiTui(input) {
3798
3798
  requestRender();
3799
3799
  return;
3800
3800
  }
3801
+ const sessionId = input.driver.getSessionId();
3802
+ const waits = input.driver.queryEventWaits
3803
+ ? await input.driver.queryEventWaits()
3804
+ : (input.driver.getEventWaits?.() ?? []);
3805
+ if (input.driver.getSessionId() !== sessionId)
3806
+ return;
3801
3807
  const goal = input.driver.getGoal();
3802
3808
  state.entries.push({
3803
3809
  kind: 'notice',
3804
3810
  level: 'info',
3805
- text: goal ? goalSummaryLines(goal, Date.now()).join('\n') : 'No goal set.',
3811
+ text: [
3812
+ goal ? goalSummaryLines(goal, Date.now()).join('\n') : 'No goal set.',
3813
+ ...waits.map((wait) => {
3814
+ const copy = TUI_COPY_RESOURCES.goal[locale];
3815
+ const observations = {
3816
+ checking: copy.waitChecking,
3817
+ pending: copy.waitPending,
3818
+ unknown: copy.waitUnknown,
3819
+ };
3820
+ const label = wait.phase === 'result_ready'
3821
+ ? copy.waitResultReady
3822
+ : wait.observation === null
3823
+ ? copy.waitObserving
3824
+ : observations[wait.observation];
3825
+ return `${wait.waitId}: ${label} · ${wait.resource.resourceId}${wait.deadlineAt === null ? '' : ` · ${Math.abs(wait.deadlineAt) <= 8.64e15 ? new Date(wait.deadlineAt).toISOString() : String(wait.deadlineAt)}`}`;
3826
+ }),
3827
+ ].join('\n'),
3806
3828
  });
3807
3829
  requestRender();
3808
3830
  };
@@ -4058,16 +4080,61 @@ export async function runMakaPiTui(input) {
4058
4080
  // Read-only, so no runControl busy gate: an autonomous loop keeps
4059
4081
  // the session busy almost by definition, and that is exactly when
4060
4082
  // the user wants to inspect it.
4061
- showGoalSummary();
4083
+ void showGoalSummary().catch((error) => {
4084
+ state.entries.push({ kind: 'notice', level: 'error', text: String(error) });
4085
+ requestRender();
4086
+ });
4062
4087
  return;
4063
4088
  }
4064
4089
  const action = parts[1];
4090
+ if ((parts.length === 2 || parts.length === 3) &&
4091
+ action === 'cancel-wait' &&
4092
+ input.driver.cancelSessionEventWait) {
4093
+ void (async () => {
4094
+ const waits = input.driver.queryEventWaits
4095
+ ? await input.driver.queryEventWaits()
4096
+ : (input.driver.getEventWaits?.() ?? []);
4097
+ const wait = parts[2]
4098
+ ? waits.find((candidate) => candidate.waitId === parts[2])
4099
+ : waits.length === 1
4100
+ ? waits[0]
4101
+ : undefined;
4102
+ if (!wait) {
4103
+ state.entries.push({
4104
+ kind: 'notice',
4105
+ level: 'info',
4106
+ text: waits.length > 1
4107
+ ? `${TUI_COPY_RESOURCES.goal[locale].chooseWait}\n${waits.map((candidate) => `${candidate.waitId} · ${candidate.resource.resourceId}`).join('\n')}`
4108
+ : TUI_COPY_RESOURCES.goal[locale].noCancellableWait,
4109
+ });
4110
+ }
4111
+ else {
4112
+ const result = await input.driver.cancelSessionEventWait({
4113
+ sessionId: wait.sessionId,
4114
+ waitId: wait.waitId,
4115
+ consumer: wait.consumer,
4116
+ });
4117
+ state.entries.push({
4118
+ kind: 'notice',
4119
+ level: 'info',
4120
+ text: result.outcome === 'cancelled'
4121
+ ? TUI_COPY_RESOURCES.goal[locale].sessionWaitCancelled
4122
+ : TUI_COPY_RESOURCES.goal[locale].waitChanged,
4123
+ });
4124
+ }
4125
+ requestRender();
4126
+ })().catch((error) => {
4127
+ state.entries.push({ kind: 'notice', level: 'error', text: String(error) });
4128
+ requestRender();
4129
+ });
4130
+ return;
4131
+ }
4065
4132
  if (parts.length !== 2 ||
4066
4133
  (action !== 'pause' && action !== 'resume' && action !== 'clear')) {
4067
4134
  state.entries.push({
4068
4135
  kind: 'notice',
4069
4136
  level: 'error',
4070
- text: 'Usage: /goal [pause|resume|clear]',
4137
+ text: TUI_COPY_RESOURCES.goal[locale].usage,
4071
4138
  });
4072
4139
  requestRender();
4073
4140
  return;