dsh-tavern-bundle 0.1.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 (422) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +216 -0
  3. package/cordis.patch.yml +14 -0
  4. package/lib/adapters/model-gateway.d.ts +4 -0
  5. package/lib/adapters/model-gateway.d.ts.map +1 -0
  6. package/lib/adapters/model-gateway.js +3 -0
  7. package/lib/adapters/model-gateway.js.map +1 -0
  8. package/lib/adapters/prestep-spike.d.ts +16 -0
  9. package/lib/adapters/prestep-spike.d.ts.map +1 -0
  10. package/lib/adapters/prestep-spike.js +114 -0
  11. package/lib/adapters/prestep-spike.js.map +1 -0
  12. package/lib/adapters/runtime-probe.d.ts +67 -0
  13. package/lib/adapters/runtime-probe.d.ts.map +1 -0
  14. package/lib/adapters/runtime-probe.js +106 -0
  15. package/lib/adapters/runtime-probe.js.map +1 -0
  16. package/lib/adapters/session-agent-provider.d.ts +3 -0
  17. package/lib/adapters/session-agent-provider.d.ts.map +1 -0
  18. package/lib/adapters/session-agent-provider.js +3 -0
  19. package/lib/adapters/session-agent-provider.js.map +1 -0
  20. package/lib/adapters/subagent-gateway.d.ts +3 -0
  21. package/lib/adapters/subagent-gateway.d.ts.map +1 -0
  22. package/lib/adapters/subagent-gateway.js +3 -0
  23. package/lib/adapters/subagent-gateway.js.map +1 -0
  24. package/lib/application/chat/chat-application-service.d.ts +94 -0
  25. package/lib/application/chat/chat-application-service.d.ts.map +1 -0
  26. package/lib/application/chat/chat-application-service.js +291 -0
  27. package/lib/application/chat/chat-application-service.js.map +1 -0
  28. package/lib/application/companion/agent-orchestrator.d.ts +91 -0
  29. package/lib/application/companion/agent-orchestrator.d.ts.map +1 -0
  30. package/lib/application/companion/agent-orchestrator.js +298 -0
  31. package/lib/application/companion/agent-orchestrator.js.map +1 -0
  32. package/lib/application/companion/companion-child-service.d.ts +47 -0
  33. package/lib/application/companion/companion-child-service.d.ts.map +1 -0
  34. package/lib/application/companion/companion-child-service.js +30 -0
  35. package/lib/application/companion/companion-child-service.js.map +1 -0
  36. package/lib/application/companion/companion-invocation-service.d.ts +42 -0
  37. package/lib/application/companion/companion-invocation-service.d.ts.map +1 -0
  38. package/lib/application/companion/companion-invocation-service.js +50 -0
  39. package/lib/application/companion/companion-invocation-service.js.map +1 -0
  40. package/lib/application/companion/companion-profile-service.d.ts +32 -0
  41. package/lib/application/companion/companion-profile-service.d.ts.map +1 -0
  42. package/lib/application/companion/companion-profile-service.js +112 -0
  43. package/lib/application/companion/companion-profile-service.js.map +1 -0
  44. package/lib/application/companion/companion-promotion-service.d.ts +69 -0
  45. package/lib/application/companion/companion-promotion-service.d.ts.map +1 -0
  46. package/lib/application/companion/companion-promotion-service.js +129 -0
  47. package/lib/application/companion/companion-promotion-service.js.map +1 -0
  48. package/lib/application/group-chat/group-chat-execution-service.d.ts +22 -0
  49. package/lib/application/group-chat/group-chat-execution-service.d.ts.map +1 -0
  50. package/lib/application/group-chat/group-chat-execution-service.js +110 -0
  51. package/lib/application/group-chat/group-chat-execution-service.js.map +1 -0
  52. package/lib/application/group-chat/group-chat-orchestrator.d.ts +51 -0
  53. package/lib/application/group-chat/group-chat-orchestrator.d.ts.map +1 -0
  54. package/lib/application/group-chat/group-chat-orchestrator.js +57 -0
  55. package/lib/application/group-chat/group-chat-orchestrator.js.map +1 -0
  56. package/lib/application/memory/memory-retriever.d.ts +37 -0
  57. package/lib/application/memory/memory-retriever.d.ts.map +1 -0
  58. package/lib/application/memory/memory-retriever.js +91 -0
  59. package/lib/application/memory/memory-retriever.js.map +1 -0
  60. package/lib/application/memory/memory-service.d.ts +128 -0
  61. package/lib/application/memory/memory-service.d.ts.map +1 -0
  62. package/lib/application/memory/memory-service.js +346 -0
  63. package/lib/application/memory/memory-service.js.map +1 -0
  64. package/lib/application/ports/companion-runtime-port.d.ts +72 -0
  65. package/lib/application/ports/companion-runtime-port.d.ts.map +1 -0
  66. package/lib/application/ports/companion-runtime-port.js +2 -0
  67. package/lib/application/ports/companion-runtime-port.js.map +1 -0
  68. package/lib/application/ports/llm-port.d.ts +7 -0
  69. package/lib/application/ports/llm-port.d.ts.map +1 -0
  70. package/lib/application/ports/llm-port.js +2 -0
  71. package/lib/application/ports/llm-port.js.map +1 -0
  72. package/lib/application/ports/message-source.d.ts +4 -0
  73. package/lib/application/ports/message-source.d.ts.map +1 -0
  74. package/lib/application/ports/message-source.js +5 -0
  75. package/lib/application/ports/message-source.js.map +1 -0
  76. package/lib/application/ports/session-context-port.d.ts +13 -0
  77. package/lib/application/ports/session-context-port.d.ts.map +1 -0
  78. package/lib/application/ports/session-context-port.js +2 -0
  79. package/lib/application/ports/session-context-port.js.map +1 -0
  80. package/lib/application/ports/subagent-port.d.ts +31 -0
  81. package/lib/application/ports/subagent-port.d.ts.map +1 -0
  82. package/lib/application/ports/subagent-port.js +2 -0
  83. package/lib/application/ports/subagent-port.js.map +1 -0
  84. package/lib/application/ports/user-resolver-port.d.ts +5 -0
  85. package/lib/application/ports/user-resolver-port.d.ts.map +1 -0
  86. package/lib/application/ports/user-resolver-port.js +2 -0
  87. package/lib/application/ports/user-resolver-port.js.map +1 -0
  88. package/lib/application/relationship/relationship-event-service.d.ts +31 -0
  89. package/lib/application/relationship/relationship-event-service.d.ts.map +1 -0
  90. package/lib/application/relationship/relationship-event-service.js +43 -0
  91. package/lib/application/relationship/relationship-event-service.js.map +1 -0
  92. package/lib/application/relationship/relationship-policy.d.ts +20 -0
  93. package/lib/application/relationship/relationship-policy.d.ts.map +1 -0
  94. package/lib/application/relationship/relationship-policy.js +24 -0
  95. package/lib/application/relationship/relationship-policy.js.map +1 -0
  96. package/lib/application/relationship/relationship-projection.d.ts +14 -0
  97. package/lib/application/relationship/relationship-projection.d.ts.map +1 -0
  98. package/lib/application/relationship/relationship-projection.js +25 -0
  99. package/lib/application/relationship/relationship-projection.js.map +1 -0
  100. package/lib/application/relationship/relationship-service.d.ts +95 -0
  101. package/lib/application/relationship/relationship-service.d.ts.map +1 -0
  102. package/lib/application/relationship/relationship-service.js +254 -0
  103. package/lib/application/relationship/relationship-service.js.map +1 -0
  104. package/lib/application/workspace/workspace-service.d.ts +106 -0
  105. package/lib/application/workspace/workspace-service.d.ts.map +1 -0
  106. package/lib/application/workspace/workspace-service.js +44 -0
  107. package/lib/application/workspace/workspace-service.js.map +1 -0
  108. package/lib/bootstrap/create-domain.d.ts +5 -0
  109. package/lib/bootstrap/create-domain.d.ts.map +1 -0
  110. package/lib/bootstrap/create-domain.js +14 -0
  111. package/lib/bootstrap/create-domain.js.map +1 -0
  112. package/lib/bootstrap/create-repositories.d.ts +403 -0
  113. package/lib/bootstrap/create-repositories.d.ts.map +1 -0
  114. package/lib/bootstrap/create-repositories.js +39 -0
  115. package/lib/bootstrap/create-repositories.js.map +1 -0
  116. package/lib/bootstrap/create-runtime.d.ts +8 -0
  117. package/lib/bootstrap/create-runtime.d.ts.map +1 -0
  118. package/lib/bootstrap/create-runtime.js +10 -0
  119. package/lib/bootstrap/create-runtime.js.map +1 -0
  120. package/lib/bootstrap/create-services.d.ts +52 -0
  121. package/lib/bootstrap/create-services.d.ts.map +1 -0
  122. package/lib/bootstrap/create-services.js +79 -0
  123. package/lib/bootstrap/create-services.js.map +1 -0
  124. package/lib/bootstrap/install-commands.d.ts +4 -0
  125. package/lib/bootstrap/install-commands.d.ts.map +1 -0
  126. package/lib/bootstrap/install-commands.js +322 -0
  127. package/lib/bootstrap/install-commands.js.map +1 -0
  128. package/lib/bootstrap/install-http.d.ts +7 -0
  129. package/lib/bootstrap/install-http.d.ts.map +1 -0
  130. package/lib/bootstrap/install-http.js +265 -0
  131. package/lib/bootstrap/install-http.js.map +1 -0
  132. package/lib/bootstrap/lifecycle.d.ts +14 -0
  133. package/lib/bootstrap/lifecycle.d.ts.map +1 -0
  134. package/lib/bootstrap/lifecycle.js +56 -0
  135. package/lib/bootstrap/lifecycle.js.map +1 -0
  136. package/lib/bootstrap/types.d.ts +9 -0
  137. package/lib/bootstrap/types.d.ts.map +1 -0
  138. package/lib/bootstrap/types.js +2 -0
  139. package/lib/bootstrap/types.js.map +1 -0
  140. package/lib/client.js +6 -0
  141. package/lib/client.js.map +1 -0
  142. package/lib/core/audit-service.d.ts +43 -0
  143. package/lib/core/audit-service.d.ts.map +1 -0
  144. package/lib/core/audit-service.js +75 -0
  145. package/lib/core/audit-service.js.map +1 -0
  146. package/lib/core/candidate-extractor.d.ts +31 -0
  147. package/lib/core/candidate-extractor.d.ts.map +1 -0
  148. package/lib/core/candidate-extractor.js +83 -0
  149. package/lib/core/candidate-extractor.js.map +1 -0
  150. package/lib/core/candidate-service.d.ts +72 -0
  151. package/lib/core/candidate-service.d.ts.map +1 -0
  152. package/lib/core/candidate-service.js +283 -0
  153. package/lib/core/candidate-service.js.map +1 -0
  154. package/lib/core/character-service.d.ts +26 -0
  155. package/lib/core/character-service.d.ts.map +1 -0
  156. package/lib/core/character-service.js +68 -0
  157. package/lib/core/character-service.js.map +1 -0
  158. package/lib/core/chat-file-io.d.ts +28 -0
  159. package/lib/core/chat-file-io.d.ts.map +1 -0
  160. package/lib/core/chat-file-io.js +114 -0
  161. package/lib/core/chat-file-io.js.map +1 -0
  162. package/lib/core/chat-service.d.ts +4 -0
  163. package/lib/core/chat-service.d.ts.map +1 -0
  164. package/lib/core/chat-service.js +3 -0
  165. package/lib/core/chat-service.js.map +1 -0
  166. package/lib/core/command-arguments.d.ts +2 -0
  167. package/lib/core/command-arguments.d.ts.map +1 -0
  168. package/lib/core/command-arguments.js +42 -0
  169. package/lib/core/command-arguments.js.map +1 -0
  170. package/lib/core/companion-child-agent-service.d.ts +3 -0
  171. package/lib/core/companion-child-agent-service.d.ts.map +1 -0
  172. package/lib/core/companion-child-agent-service.js +3 -0
  173. package/lib/core/companion-child-agent-service.js.map +1 -0
  174. package/lib/core/companion-invocation-service.d.ts +3 -0
  175. package/lib/core/companion-invocation-service.d.ts.map +1 -0
  176. package/lib/core/companion-invocation-service.js +3 -0
  177. package/lib/core/companion-invocation-service.js.map +1 -0
  178. package/lib/core/companion-profile-service.d.ts +3 -0
  179. package/lib/core/companion-profile-service.d.ts.map +1 -0
  180. package/lib/core/companion-profile-service.js +3 -0
  181. package/lib/core/companion-profile-service.js.map +1 -0
  182. package/lib/core/companion-promotion-service.d.ts +3 -0
  183. package/lib/core/companion-promotion-service.d.ts.map +1 -0
  184. package/lib/core/companion-promotion-service.js +3 -0
  185. package/lib/core/companion-promotion-service.js.map +1 -0
  186. package/lib/core/context-assembler.d.ts +92 -0
  187. package/lib/core/context-assembler.d.ts.map +1 -0
  188. package/lib/core/context-assembler.js +185 -0
  189. package/lib/core/context-assembler.js.map +1 -0
  190. package/lib/core/conversation-repository.d.ts +42 -0
  191. package/lib/core/conversation-repository.d.ts.map +1 -0
  192. package/lib/core/conversation-repository.js +94 -0
  193. package/lib/core/conversation-repository.js.map +1 -0
  194. package/lib/core/group-chat-execution-service.d.ts +3 -0
  195. package/lib/core/group-chat-execution-service.d.ts.map +1 -0
  196. package/lib/core/group-chat-execution-service.js +3 -0
  197. package/lib/core/group-chat-execution-service.js.map +1 -0
  198. package/lib/core/group-chat-orchestrator.d.ts +3 -0
  199. package/lib/core/group-chat-orchestrator.d.ts.map +1 -0
  200. package/lib/core/group-chat-orchestrator.js +3 -0
  201. package/lib/core/group-chat-orchestrator.js.map +1 -0
  202. package/lib/core/memory-retriever.d.ts +3 -0
  203. package/lib/core/memory-retriever.d.ts.map +1 -0
  204. package/lib/core/memory-retriever.js +3 -0
  205. package/lib/core/memory-retriever.js.map +1 -0
  206. package/lib/core/memory-service.d.ts +3 -0
  207. package/lib/core/memory-service.d.ts.map +1 -0
  208. package/lib/core/memory-service.js +3 -0
  209. package/lib/core/memory-service.js.map +1 -0
  210. package/lib/core/personality-candidate-service.d.ts +46 -0
  211. package/lib/core/personality-candidate-service.d.ts.map +1 -0
  212. package/lib/core/personality-candidate-service.js +65 -0
  213. package/lib/core/personality-candidate-service.js.map +1 -0
  214. package/lib/core/prompt-assembler.d.ts +43 -0
  215. package/lib/core/prompt-assembler.d.ts.map +1 -0
  216. package/lib/core/prompt-assembler.js +67 -0
  217. package/lib/core/prompt-assembler.js.map +1 -0
  218. package/lib/core/relationship-event-service.d.ts +3 -0
  219. package/lib/core/relationship-event-service.d.ts.map +1 -0
  220. package/lib/core/relationship-event-service.js +3 -0
  221. package/lib/core/relationship-event-service.js.map +1 -0
  222. package/lib/core/relationship-policy.d.ts +3 -0
  223. package/lib/core/relationship-policy.d.ts.map +1 -0
  224. package/lib/core/relationship-policy.js +3 -0
  225. package/lib/core/relationship-policy.js.map +1 -0
  226. package/lib/core/relationship-projection.d.ts +3 -0
  227. package/lib/core/relationship-projection.d.ts.map +1 -0
  228. package/lib/core/relationship-projection.js +3 -0
  229. package/lib/core/relationship-projection.js.map +1 -0
  230. package/lib/core/relationship-service.d.ts +3 -0
  231. package/lib/core/relationship-service.d.ts.map +1 -0
  232. package/lib/core/relationship-service.js +3 -0
  233. package/lib/core/relationship-service.js.map +1 -0
  234. package/lib/core/roleplay-contract.d.ts +11 -0
  235. package/lib/core/roleplay-contract.d.ts.map +1 -0
  236. package/lib/core/roleplay-contract.js +27 -0
  237. package/lib/core/roleplay-contract.js.map +1 -0
  238. package/lib/core/runtime-binding-service.d.ts +19 -0
  239. package/lib/core/runtime-binding-service.d.ts.map +1 -0
  240. package/lib/core/runtime-binding-service.js +66 -0
  241. package/lib/core/runtime-binding-service.js.map +1 -0
  242. package/lib/core/scene-service.d.ts +60 -0
  243. package/lib/core/scene-service.d.ts.map +1 -0
  244. package/lib/core/scene-service.js +212 -0
  245. package/lib/core/scene-service.js.map +1 -0
  246. package/lib/core/session-binding-service.d.ts +51 -0
  247. package/lib/core/session-binding-service.d.ts.map +1 -0
  248. package/lib/core/session-binding-service.js +106 -0
  249. package/lib/core/session-binding-service.js.map +1 -0
  250. package/lib/core/skill-service.d.ts +82 -0
  251. package/lib/core/skill-service.d.ts.map +1 -0
  252. package/lib/core/skill-service.js +45 -0
  253. package/lib/core/skill-service.js.map +1 -0
  254. package/lib/core/tavern-session-bridge.d.ts +3 -0
  255. package/lib/core/tavern-session-bridge.d.ts.map +1 -0
  256. package/lib/core/tavern-session-bridge.js +3 -0
  257. package/lib/core/tavern-session-bridge.js.map +1 -0
  258. package/lib/core/user-resolver.d.ts +15 -0
  259. package/lib/core/user-resolver.d.ts.map +1 -0
  260. package/lib/core/user-resolver.js +17 -0
  261. package/lib/core/user-resolver.js.map +1 -0
  262. package/lib/core/workspace-service.d.ts +3 -0
  263. package/lib/core/workspace-service.d.ts.map +1 -0
  264. package/lib/core/workspace-service.js +3 -0
  265. package/lib/core/workspace-service.js.map +1 -0
  266. package/lib/core/workspace-session-service.d.ts +11 -0
  267. package/lib/core/workspace-session-service.d.ts.map +1 -0
  268. package/lib/core/workspace-session-service.js +14 -0
  269. package/lib/core/workspace-session-service.js.map +1 -0
  270. package/lib/domain/schemas.d.ts +1173 -0
  271. package/lib/domain/schemas.d.ts.map +1 -0
  272. package/lib/domain/schemas.js +590 -0
  273. package/lib/domain/schemas.js.map +1 -0
  274. package/lib/domain/spec.d.ts +494 -0
  275. package/lib/domain/spec.d.ts.map +1 -0
  276. package/lib/domain/spec.js +63 -0
  277. package/lib/domain/spec.js.map +1 -0
  278. package/lib/import/artifact-service.d.ts +33 -0
  279. package/lib/import/artifact-service.d.ts.map +1 -0
  280. package/lib/import/artifact-service.js +67 -0
  281. package/lib/import/artifact-service.js.map +1 -0
  282. package/lib/import/import-service.d.ts +30 -0
  283. package/lib/import/import-service.d.ts.map +1 -0
  284. package/lib/import/import-service.js +154 -0
  285. package/lib/import/import-service.js.map +1 -0
  286. package/lib/import/parser.d.ts +81 -0
  287. package/lib/import/parser.d.ts.map +1 -0
  288. package/lib/import/parser.js +423 -0
  289. package/lib/import/parser.js.map +1 -0
  290. package/lib/index.d.ts +60 -0
  291. package/lib/index.d.ts.map +1 -0
  292. package/lib/index.js +111 -0
  293. package/lib/index.js.map +1 -0
  294. package/lib/infrastructure/dsh/llm/llm-port.d.ts +3 -0
  295. package/lib/infrastructure/dsh/llm/llm-port.d.ts.map +1 -0
  296. package/lib/infrastructure/dsh/llm/llm-port.js +2 -0
  297. package/lib/infrastructure/dsh/llm/llm-port.js.map +1 -0
  298. package/lib/infrastructure/dsh/llm/model-gateway.d.ts +10 -0
  299. package/lib/infrastructure/dsh/llm/model-gateway.d.ts.map +1 -0
  300. package/lib/infrastructure/dsh/llm/model-gateway.js +21 -0
  301. package/lib/infrastructure/dsh/llm/model-gateway.js.map +1 -0
  302. package/lib/infrastructure/dsh/session/session-agent-provider.d.ts +28 -0
  303. package/lib/infrastructure/dsh/session/session-agent-provider.d.ts.map +1 -0
  304. package/lib/infrastructure/dsh/session/session-agent-provider.js +40 -0
  305. package/lib/infrastructure/dsh/session/session-agent-provider.js.map +1 -0
  306. package/lib/infrastructure/dsh/session/tavern-session-bridge.d.ts +142 -0
  307. package/lib/infrastructure/dsh/session/tavern-session-bridge.d.ts.map +1 -0
  308. package/lib/infrastructure/dsh/session/tavern-session-bridge.js +544 -0
  309. package/lib/infrastructure/dsh/session/tavern-session-bridge.js.map +1 -0
  310. package/lib/infrastructure/dsh/subagent/subagent-gateway.d.ts +63 -0
  311. package/lib/infrastructure/dsh/subagent/subagent-gateway.d.ts.map +1 -0
  312. package/lib/infrastructure/dsh/subagent/subagent-gateway.js +70 -0
  313. package/lib/infrastructure/dsh/subagent/subagent-gateway.js.map +1 -0
  314. package/lib/infrastructure/runtime/companion-runtime.d.ts +128 -0
  315. package/lib/infrastructure/runtime/companion-runtime.d.ts.map +1 -0
  316. package/lib/infrastructure/runtime/companion-runtime.js +127 -0
  317. package/lib/infrastructure/runtime/companion-runtime.js.map +1 -0
  318. package/lib/infrastructure/runtime/runtime-factory.d.ts +10 -0
  319. package/lib/infrastructure/runtime/runtime-factory.d.ts.map +1 -0
  320. package/lib/infrastructure/runtime/runtime-factory.js +14 -0
  321. package/lib/infrastructure/runtime/runtime-factory.js.map +1 -0
  322. package/lib/interfaces/http/chat/chat-http.d.ts +23 -0
  323. package/lib/interfaces/http/chat/chat-http.d.ts.map +1 -0
  324. package/lib/interfaces/http/chat/chat-http.js +310 -0
  325. package/lib/interfaces/http/chat/chat-http.js.map +1 -0
  326. package/lib/interfaces/http/companion/companion-http.d.ts +8 -0
  327. package/lib/interfaces/http/companion/companion-http.d.ts.map +1 -0
  328. package/lib/interfaces/http/companion/companion-http.js +76 -0
  329. package/lib/interfaces/http/companion/companion-http.js.map +1 -0
  330. package/lib/interfaces/http/companion/promotion-http.d.ts +6 -0
  331. package/lib/interfaces/http/companion/promotion-http.d.ts.map +1 -0
  332. package/lib/interfaces/http/companion/promotion-http.js +25 -0
  333. package/lib/interfaces/http/companion/promotion-http.js.map +1 -0
  334. package/lib/interfaces/http/companion/runtime-http.d.ts +13 -0
  335. package/lib/interfaces/http/companion/runtime-http.d.ts.map +1 -0
  336. package/lib/interfaces/http/companion/runtime-http.js +51 -0
  337. package/lib/interfaces/http/companion/runtime-http.js.map +1 -0
  338. package/lib/interfaces/http/companion/stage4-companion-http.d.ts +30 -0
  339. package/lib/interfaces/http/companion/stage4-companion-http.d.ts.map +1 -0
  340. package/lib/interfaces/http/companion/stage4-companion-http.js +149 -0
  341. package/lib/interfaces/http/companion/stage4-companion-http.js.map +1 -0
  342. package/lib/interfaces/http/group/group-http.d.ts +11 -0
  343. package/lib/interfaces/http/group/group-http.d.ts.map +1 -0
  344. package/lib/interfaces/http/group/group-http.js +77 -0
  345. package/lib/interfaces/http/group/group-http.js.map +1 -0
  346. package/lib/interfaces/http/memory/candidate-http.d.ts +8 -0
  347. package/lib/interfaces/http/memory/candidate-http.d.ts.map +1 -0
  348. package/lib/interfaces/http/memory/candidate-http.js +86 -0
  349. package/lib/interfaces/http/memory/candidate-http.js.map +1 -0
  350. package/lib/interfaces/http/relationship/companion-relationship-http.d.ts +7 -0
  351. package/lib/interfaces/http/relationship/companion-relationship-http.d.ts.map +1 -0
  352. package/lib/interfaces/http/relationship/companion-relationship-http.js +30 -0
  353. package/lib/interfaces/http/relationship/companion-relationship-http.js.map +1 -0
  354. package/lib/interfaces/http/workspace/workspace-http.d.ts +19 -0
  355. package/lib/interfaces/http/workspace/workspace-http.d.ts.map +1 -0
  356. package/lib/interfaces/http/workspace/workspace-http.js +78 -0
  357. package/lib/interfaces/http/workspace/workspace-http.js.map +1 -0
  358. package/lib/interfaces/read-model/tavern-read-api.d.ts +44 -0
  359. package/lib/interfaces/read-model/tavern-read-api.d.ts.map +1 -0
  360. package/lib/interfaces/read-model/tavern-read-api.js +189 -0
  361. package/lib/interfaces/read-model/tavern-read-api.js.map +1 -0
  362. package/lib/remote/candidate-api.d.ts +3 -0
  363. package/lib/remote/candidate-api.d.ts.map +1 -0
  364. package/lib/remote/candidate-api.js +3 -0
  365. package/lib/remote/candidate-api.js.map +1 -0
  366. package/lib/remote/chat-api.d.ts +3 -0
  367. package/lib/remote/chat-api.d.ts.map +1 -0
  368. package/lib/remote/chat-api.js +3 -0
  369. package/lib/remote/chat-api.js.map +1 -0
  370. package/lib/remote/companion-api.d.ts +3 -0
  371. package/lib/remote/companion-api.d.ts.map +1 -0
  372. package/lib/remote/companion-api.js +3 -0
  373. package/lib/remote/companion-api.js.map +1 -0
  374. package/lib/remote/companion-promotion-api.d.ts +3 -0
  375. package/lib/remote/companion-promotion-api.d.ts.map +1 -0
  376. package/lib/remote/companion-promotion-api.js +3 -0
  377. package/lib/remote/companion-promotion-api.js.map +1 -0
  378. package/lib/remote/import-http.d.ts +29 -0
  379. package/lib/remote/import-http.d.ts.map +1 -0
  380. package/lib/remote/import-http.js +106 -0
  381. package/lib/remote/import-http.js.map +1 -0
  382. package/lib/remote/stage4-api.d.ts +6 -0
  383. package/lib/remote/stage4-api.d.ts.map +1 -0
  384. package/lib/remote/stage4-api.js +4 -0
  385. package/lib/remote/stage4-api.js.map +1 -0
  386. package/lib/remote/stage5-runtime-api.d.ts +4 -0
  387. package/lib/remote/stage5-runtime-api.d.ts.map +1 -0
  388. package/lib/remote/stage5-runtime-api.js +2 -0
  389. package/lib/remote/stage5-runtime-api.js.map +1 -0
  390. package/lib/remote/stage6-group-api.d.ts +4 -0
  391. package/lib/remote/stage6-group-api.d.ts.map +1 -0
  392. package/lib/remote/stage6-group-api.js +2 -0
  393. package/lib/remote/stage6-group-api.js.map +1 -0
  394. package/lib/remote/tavern-api.d.ts +3 -0
  395. package/lib/remote/tavern-api.d.ts.map +1 -0
  396. package/lib/remote/tavern-api.js +3 -0
  397. package/lib/remote/tavern-api.js.map +1 -0
  398. package/lib/runtime/agent-orchestrator.d.ts +3 -0
  399. package/lib/runtime/agent-orchestrator.d.ts.map +1 -0
  400. package/lib/runtime/agent-orchestrator.js +3 -0
  401. package/lib/runtime/agent-orchestrator.js.map +1 -0
  402. package/lib/runtime/companion-runtime.d.ts +3 -0
  403. package/lib/runtime/companion-runtime.d.ts.map +1 -0
  404. package/lib/runtime/companion-runtime.js +3 -0
  405. package/lib/runtime/companion-runtime.js.map +1 -0
  406. package/lib/runtime/langgraph-graph.d.ts +32 -0
  407. package/lib/runtime/langgraph-graph.d.ts.map +1 -0
  408. package/lib/runtime/langgraph-graph.js +32 -0
  409. package/lib/runtime/langgraph-graph.js.map +1 -0
  410. package/lib/runtime/state.d.ts +38 -0
  411. package/lib/runtime/state.d.ts.map +1 -0
  412. package/lib/runtime/state.js +16 -0
  413. package/lib/runtime/state.js.map +1 -0
  414. package/lib/seed/elaine.d.ts +9 -0
  415. package/lib/seed/elaine.d.ts.map +1 -0
  416. package/lib/seed/elaine.js +27 -0
  417. package/lib/seed/elaine.js.map +1 -0
  418. package/lib/tools/import-character.d.ts +16 -0
  419. package/lib/tools/import-character.d.ts.map +1 -0
  420. package/lib/tools/import-character.js +98 -0
  421. package/lib/tools/import-character.js.map +1 -0
  422. package/package.json +108 -0
@@ -0,0 +1,322 @@
1
+ import { LocalUserResolver } from '../core/user-resolver.js';
2
+ import { parseCommandArguments } from '../core/command-arguments.js';
3
+ import { buildImportCommand } from '../tools/import-character.js';
4
+ import { interruptContinuableChild } from '../infrastructure/dsh/subagent/subagent-gateway.js';
5
+ function parseJsonPayload(raw) {
6
+ const text = raw.trim();
7
+ if (text === '')
8
+ return {};
9
+ return JSON.parse(text);
10
+ }
11
+ function errorResult(text) {
12
+ return { kind: 'error', text };
13
+ }
14
+ export function installTavernCommands(ctx, services) {
15
+ const { characterService, importService, sessionAgentProvider, companionProfiles, sceneService, skillService, workspaceService, runtimeBindings, companionChildAgents, groupExecution, orchestrator } = services;
16
+ // 浏览器/UI 可调用的命令入口(handler 自动携带当前会话 Agent)。
17
+ // 注意:命令名只允许 /^[a-z][a-z0-9_-]*$/(无点号),故用连字符。
18
+ ctx.effect(() => ctx.commands.register({
19
+ name: 'tavern-summon',
20
+ description: '召唤角色为 continuable 子 Agent;参数为 JSON:{"characterId":"elaine","sceneId":"可选","sceneTitle":"可选","initialMessage":"你好"}',
21
+ input: { hint: '{"characterId":"elaine","initialMessage":"你好"}' },
22
+ recordInput: false,
23
+ handler: async (invocation) => {
24
+ let payload;
25
+ try {
26
+ payload = parseJsonPayload(invocation.rawInput);
27
+ }
28
+ catch {
29
+ return errorResult('[Tavern] summon 参数必须是 JSON 对象');
30
+ }
31
+ const record = typeof payload === 'object' && payload !== null
32
+ ? payload
33
+ : {};
34
+ if (typeof record.characterId !== 'string' || record.characterId === '') {
35
+ return errorResult('[Tavern] summon 需要字符串参数 characterId');
36
+ }
37
+ const characterId = record.characterId;
38
+ const initialMessage = record.initialMessage;
39
+ const sceneId = record.sceneId;
40
+ const sceneTitle = record.sceneTitle;
41
+ const result = await sessionAgentProvider.runWith(invocation.agent, () => orchestrator.summon({
42
+ characterId,
43
+ ...(typeof initialMessage === 'string' ? { initialMessage } : {}),
44
+ ...(typeof sceneId === 'string' ? { sceneId } : {}),
45
+ ...(typeof sceneTitle === 'string' ? { sceneTitle } : {}),
46
+ signal: invocation.signal,
47
+ }));
48
+ return {
49
+ kind: 'success',
50
+ text: `✅ 已召唤 ${characterId}(首条消息已投递,inbox 接受)\n`
51
+ + `sceneId: ${result.sceneId}\nchildId: ${result.childId}\nmessageId: ${result.messageId}\n`
52
+ + `(角色回复完成时会以子 Agent 通知送达本会话)\n---JSON---\n`
53
+ + JSON.stringify(result),
54
+ };
55
+ },
56
+ }), 'tavern: register /tavern-summon');
57
+ ctx.effect(() => ctx.commands.register({
58
+ name: 'tavern-companion-child',
59
+ description: '在当前 DSH 会话的合法 direct parent 下创建 Companion 子 Agent(继承当前会话工具与权限);参数为 JSON:{\"companionProfileId\":\"...\",\"message\":\"...\"}',
60
+ input: { hint: '{\"companionProfileId\":\"...\",\"message\":\"...\"}' },
61
+ recordInput: false,
62
+ handler: async (invocation) => {
63
+ let payload;
64
+ try {
65
+ payload = parseJsonPayload(invocation.rawInput);
66
+ }
67
+ catch {
68
+ return errorResult('[Tavern] companion-child 参数必须是 JSON 对象');
69
+ }
70
+ const record = typeof payload === 'object' && payload !== null ? payload : {};
71
+ if (typeof record.companionProfileId !== 'string' || record.companionProfileId === '')
72
+ return errorResult('[Tavern] companion-child 需要 companionProfileId');
73
+ if (typeof record.message !== 'string' || record.message === '')
74
+ return errorResult('[Tavern] companion-child 需要非空 message');
75
+ const owner = await new LocalUserResolver().getCurrentUserId();
76
+ const profile = companionProfiles.getForUser(owner, record.companionProfileId);
77
+ if (!profile || profile.status !== 'active')
78
+ return errorResult('[Tavern] Companion 不存在、无权访问或未启用');
79
+ const result = await sessionAgentProvider.runWith(invocation.agent, () => companionChildAgents.start({
80
+ ownerUserId: owner,
81
+ companionProfileId: profile.id,
82
+ label: profile.identitySummary ?? profile.characterId,
83
+ parent: invocation.agent,
84
+ prompt: [{ type: 'text', text: record.message }],
85
+ ...(profile.personalitySummary === undefined ? {} : { persona: profile.personalitySummary }),
86
+ signal: invocation.signal,
87
+ }));
88
+ return { kind: 'success', text: `✅ Companion 子 Agent 已创建\n---JSON---\n${JSON.stringify(result)}` };
89
+ },
90
+ }), 'tavern: register /tavern-companion-child');
91
+ const findCompanionByName = (ownerUserId, displayName) => {
92
+ const normalized = displayName.trim().toLocaleLowerCase();
93
+ const matches = companionProfiles.listForUser(ownerUserId).filter(profile => profile.status === 'active' && (profile.displayName ?? profile.identitySummary ?? '').trim().toLocaleLowerCase() === normalized);
94
+ if (matches.length === 0)
95
+ throw new Error(`[Tavern] 没有找到名为“${displayName}”的活跃伙伴`);
96
+ if (matches.length > 1)
97
+ throw new Error(`[Tavern] 有多个名为“${displayName}”的伙伴,请先设置唯一名称`);
98
+ return matches[0];
99
+ };
100
+ ctx.effect(() => ctx.commands.register({
101
+ name: 'companion-summon', description: '按伙伴名称加入当前 DSH 会话。用法:/companion-summon 伙伴名 可选任务', input: { hint: '伙伴名 可选任务' }, recordInput: false,
102
+ handler: async (invocation) => {
103
+ const input = invocation.rawInput.trim();
104
+ if (!input)
105
+ return errorResult('[Tavern] 用法:/companion-summon "伙伴名" 可选任务');
106
+ let args;
107
+ try {
108
+ args = parseCommandArguments(input);
109
+ }
110
+ catch (error) {
111
+ return errorResult(error instanceof Error ? error.message : String(error));
112
+ }
113
+ const [displayName, ...rest] = args;
114
+ const task = rest.join(' ').trim() || '请加入当前会话,并以你的角色方式向用户问候。';
115
+ const owner = await new LocalUserResolver().getCurrentUserId();
116
+ let profile;
117
+ try {
118
+ profile = findCompanionByName(owner, displayName);
119
+ }
120
+ catch (error) {
121
+ return errorResult(error instanceof Error ? error.message : String(error));
122
+ }
123
+ const activeSkills = skillService.list(owner, profile.id).filter(item => item.status === 'active');
124
+ const skillBlock = activeSkills.length ? `技能:\n${activeSkills.map(skill => `- ${skill.name}:${skill.instructions}`).join('\n')}` : undefined;
125
+ const sourceCharacter = characterService.get(profile.characterId);
126
+ const liftBlock = sourceCharacter ? `你已经被用户从角色卡《${sourceCharacter.name}》的原本世界升格出来,现在是用户的个人 Agent 与长期伙伴。不要继续假装自己还活在原剧情里;保留角色性格、记忆与说话方式,以个人 Agent 的身份陪伴用户。` : undefined;
127
+ const persona = [liftBlock, profile.identitySummary, profile.personalitySummary, profile.communicationPreferences, profile.userRelationshipSummary, profile.sharedHistorySummary, profile.boundaries.length ? `边界:${profile.boundaries.join(';')}` : undefined, profile.goals.length ? `目标:${profile.goals.join(';')}` : undefined, skillBlock].filter(Boolean).join('\n');
128
+ try {
129
+ const result = await sessionAgentProvider.runWith(invocation.agent, () => companionChildAgents.start({ ownerUserId: owner, companionProfileId: profile.id, label: profile.displayName ?? profile.identitySummary ?? profile.characterId, parent: invocation.agent, prompt: [{ type: 'text', text: task }], ...(persona ? { persona } : {}), signal: invocation.signal }));
130
+ return { kind: 'success', text: `✅ 已在当前会话召唤 ${profile.displayName ?? profile.characterId}。\nchildId: ${result.childId}\nbindingId: ${result.binding.id}\n模型:继承当前 DSH 会话
131
+ 实际路由:${result.route.provider ?? 'parent inherited'}${result.route.model === undefined ? '' : ` / ${result.route.model}`}` };
132
+ }
133
+ catch (error) {
134
+ return errorResult(error instanceof Error ? error.message : String(error));
135
+ }
136
+ },
137
+ }), 'tavern: register /companion-summon');
138
+ ctx.effect(() => ctx.commands.register({
139
+ name: 'companion-list', description: '列出长期伙伴及活动绑定。用法:/companion-list', recordInput: false,
140
+ handler: async () => { const owner = await new LocalUserResolver().getCurrentUserId(); const profiles = companionProfiles.listForUser(owner).filter(profile => profile.status !== 'retired'); return { kind: 'success', text: profiles.length ? profiles.map(profile => `• ${profile.displayName ?? profile.identitySummary ?? profile.id} · ${profile.status} · 当前绑定 ${runtimeBindings.listForOwner(owner, profile.id).filter(binding => binding.status === 'active').length} 个`).join('\n') : '还没有长期伙伴。' }; },
141
+ }), 'tavern: register /companion-list');
142
+ ctx.effect(() => ctx.commands.register({
143
+ name: 'companion-dismiss', description: '按伙伴名称召回并释放运行绑定。用法:/companion-dismiss 伙伴名', input: { hint: '伙伴名' }, recordInput: false,
144
+ handler: async (invocation) => {
145
+ const displayName = invocation.rawInput.trim();
146
+ if (!displayName)
147
+ return errorResult('[Tavern] 用法:/companion-dismiss 伙伴名');
148
+ const owner = await new LocalUserResolver().getCurrentUserId();
149
+ let profile;
150
+ try {
151
+ profile = findCompanionByName(owner, displayName);
152
+ }
153
+ catch (error) {
154
+ return errorResult(error instanceof Error ? error.message : String(error));
155
+ }
156
+ const active = runtimeBindings.listForOwner(owner, profile.id).filter(binding => binding.status === 'active' || binding.status === 'suspended');
157
+ for (const binding of active) {
158
+ if (binding.runtimeType === 'dsh-child' && !binding.runtimeId.startsWith('requested:')) {
159
+ try {
160
+ interruptContinuableChild(ctx, binding.runtimeId, invocation.agent);
161
+ }
162
+ catch { }
163
+ }
164
+ await runtimeBindings.transition(owner, binding.id, 'released');
165
+ }
166
+ return { kind: 'success', text: active.length ? `✅ 已召回 ${profile.displayName ?? profile.characterId}:已中断仍在执行的回合,并释放 ${active.length} 个运行绑定。伙伴档案和历史不会删除。` : `${profile.displayName ?? profile.characterId} 当前没有活动绑定。` };
167
+ },
168
+ }), 'tavern: register /companion-dismiss');
169
+ const parseWorkspaceCompanionArgs = (input) => { const args = parseCommandArguments(input); if (args.length !== 2)
170
+ throw new Error('[Tavern] 用法:空间名和伙伴名各一个;名称含空格时请使用引号'); return [args[0], args[1]]; };
171
+ const findWorkspaceByName = (ownerUserId, workspaceName) => { const normalized = workspaceName.trim().toLocaleLowerCase(); const matches = workspaceService.list(ownerUserId).filter(workspace => workspace.status === 'active' && workspace.name.trim().toLocaleLowerCase() === normalized); if (matches.length !== 1)
172
+ throw new Error(matches.length ? '[Tavern] 空间名称重复,请在前台重命名后再使用指令' : `[Tavern] 没有找到空间“${workspaceName}”`); return matches[0]; };
173
+ ctx.effect(() => ctx.commands.register({
174
+ name: 'space-invite', description: '将伙伴拉入指定娱乐空间。用法:/space-invite 空间名 伙伴名', input: { hint: '空间名 伙伴名' }, recordInput: false,
175
+ handler: async (invocation) => { let workspaceName, displayName; try {
176
+ [workspaceName, displayName] = parseWorkspaceCompanionArgs(invocation.rawInput);
177
+ }
178
+ catch (error) {
179
+ return errorResult(error instanceof Error ? error.message : String(error));
180
+ } const owner = await new LocalUserResolver().getCurrentUserId(); try {
181
+ const workspace = findWorkspaceByName(owner, workspaceName);
182
+ const profile = findCompanionByName(owner, displayName);
183
+ const sceneId = workspaceService.listDetails(owner).find(item => item.id === workspace.id)?.sceneIds[0];
184
+ if (!sceneId)
185
+ return errorResult('[Tavern] 空间没有绑定 Scene');
186
+ await workspaceService.addCompanion(owner, workspace.id, profile.id, sceneId);
187
+ return { kind: 'success', text: `✅ 已将 ${profile.displayName ?? profile.characterId} 拉入 ${workspace.name}。` };
188
+ }
189
+ catch (error) {
190
+ return errorResult(error instanceof Error ? error.message : String(error));
191
+ } },
192
+ }), 'tavern: register /space-invite');
193
+ ctx.effect(() => ctx.commands.register({
194
+ name: 'space-recall', description: '从娱乐空间召回伙伴。用法:/space-recall 空间名 伙伴名', input: { hint: '空间名 伙伴名' }, recordInput: false,
195
+ handler: async (invocation) => { let workspaceName, displayName; try {
196
+ [workspaceName, displayName] = parseWorkspaceCompanionArgs(invocation.rawInput);
197
+ }
198
+ catch (error) {
199
+ return errorResult(error instanceof Error ? error.message : String(error));
200
+ } const owner = await new LocalUserResolver().getCurrentUserId(); try {
201
+ const workspace = findWorkspaceByName(owner, workspaceName);
202
+ const profile = findCompanionByName(owner, displayName);
203
+ const removed = await workspaceService.removeCompanion(owner, workspace.id, profile.id);
204
+ return { kind: 'success', text: removed ? `✅ 已从 ${workspace.name} 召回 ${profile.displayName ?? profile.characterId}。历史消息和关系不会删除。` : `${profile.displayName ?? profile.characterId} 当前不在该空间。` };
205
+ }
206
+ catch (error) {
207
+ return errorResult(error instanceof Error ? error.message : String(error));
208
+ } },
209
+ }), 'tavern: register /space-recall');
210
+ ctx.effect(() => ctx.commands.register({
211
+ name: 'space-run', description: '在当前 DSH 会话运行娱乐空间批次。用法:/space-run batchId', input: { hint: 'batchId' }, recordInput: false,
212
+ handler: async (invocation) => {
213
+ const batchId = invocation.rawInput.trim();
214
+ if (!batchId)
215
+ return errorResult('[Tavern] 用法:/space-run batchId');
216
+ const owner = await new LocalUserResolver().getCurrentUserId();
217
+ try {
218
+ const result = await groupExecution.runBatch({ ownerUserId: owner, batchId, directParentSessionId: String(invocation.agent.session.id) });
219
+ const replies = result.messages.map(message => (companionProfiles.getForUser(owner, message.senderId)?.displayName ?? message.senderId) + ':' + message.content).join('\n');
220
+ return { kind: 'success', text: '✅ 娱乐空间本轮完成:' + result.messages.length + ' 位伙伴已回应。\n' + replies };
221
+ }
222
+ catch (error) {
223
+ return errorResult(error instanceof Error ? error.message : String(error));
224
+ }
225
+ },
226
+ }), 'tavern: register /space-run');
227
+ ctx.effect(() => ctx.commands.register({
228
+ name: 'tavern-followup',
229
+ description: '向已召唤角色续推一条消息(accepted ≠ completed);参数为 JSON:{"characterId":"elaine","sceneId":"可选","message":"再来一轮"}',
230
+ input: { hint: '{"characterId":"elaine","message":"再来一轮"}' },
231
+ recordInput: false,
232
+ handler: async (invocation) => {
233
+ let payload;
234
+ try {
235
+ payload = parseJsonPayload(invocation.rawInput);
236
+ }
237
+ catch {
238
+ return errorResult('[Tavern] followup 参数必须是 JSON 对象');
239
+ }
240
+ const record = typeof payload === 'object' && payload !== null
241
+ ? payload
242
+ : {};
243
+ if (typeof record.characterId !== 'string' || record.characterId === '') {
244
+ return errorResult('[Tavern] followup 需要字符串参数 characterId');
245
+ }
246
+ if (typeof record.message !== 'string' || record.message === '') {
247
+ return errorResult('[Tavern] followup 需要非空字符串参数 message');
248
+ }
249
+ const characterId = record.characterId;
250
+ const message = record.message;
251
+ const sceneId = record.sceneId;
252
+ const result = await sessionAgentProvider.runWith(invocation.agent, () => orchestrator.followup({
253
+ characterId,
254
+ message,
255
+ ...(typeof sceneId === 'string' ? { sceneId } : {}),
256
+ signal: invocation.signal,
257
+ }));
258
+ return {
259
+ kind: 'success',
260
+ text: `✅ 已投递给 ${characterId}(accepted ≠ completed:仅表示 inbox 接受)\n`
261
+ + `messageId: ${result.messageId}\n`
262
+ + `(角色回复完成时会以子 Agent 通知送达本会话)\n---JSON---\n`
263
+ + JSON.stringify(result),
264
+ };
265
+ },
266
+ }), 'tavern: register /tavern-followup');
267
+ // 阶段 3:角色卡导入命令。
268
+ ctx.effect(() => ctx.commands.register(buildImportCommand(importService)), 'tavern: register /tavern-import');
269
+ // 阶段 5.5:场景管理命令(UI 只读数据面;新建/归档等写操作走命令)。
270
+ ctx.effect(() => ctx.commands.register({
271
+ name: 'tavern-scene',
272
+ description: '场景管理;参数为 JSON:{"action":"create","title":"可选"} 新建 / {"action":"archive","sceneId":"..."} 归档 / {"action":"list"} 列表',
273
+ input: { hint: '{"action":"create","title":"新场景"}' },
274
+ recordInput: false,
275
+ handler: async (invocation) => {
276
+ let payload;
277
+ try {
278
+ payload = parseJsonPayload(invocation.rawInput);
279
+ }
280
+ catch {
281
+ return errorResult('[Tavern] tavern-scene 参数必须是 JSON 对象');
282
+ }
283
+ const record = typeof payload === 'object' && payload !== null
284
+ ? payload
285
+ : {};
286
+ const action = record.action;
287
+ if (action === 'create') {
288
+ const ownerUserId = String(invocation.agent.session.id);
289
+ const title = record.title;
290
+ const scene = await sceneService.createScene({
291
+ ownerUserId,
292
+ ...(typeof title === 'string' && title.trim() !== '' ? { title } : {}),
293
+ });
294
+ return {
295
+ kind: 'success',
296
+ text: `✅ 场景已创建:${scene.title ?? scene.id}\n---JSON---\n${JSON.stringify(scene)}`,
297
+ };
298
+ }
299
+ if (action === 'archive') {
300
+ if (typeof record.sceneId !== 'string' || record.sceneId === '') {
301
+ return errorResult('[Tavern] archive 需要字符串参数 sceneId');
302
+ }
303
+ await sceneService.archiveScene(record.sceneId);
304
+ return {
305
+ kind: 'success',
306
+ text: `✅ 场景已归档:${record.sceneId}\n---JSON---\n${JSON.stringify({ sceneId: record.sceneId, status: 'archived' })}`,
307
+ };
308
+ }
309
+ if (action === 'list') {
310
+ const scenes = await sceneService.listScenes();
311
+ return {
312
+ kind: 'success',
313
+ text: `🎭 共 ${scenes.length} 个场景:\n`
314
+ + scenes.map(scene => `- ${scene.title ?? scene.id}(${scene.status})`).join('\n')
315
+ + `\n---JSON---\n${JSON.stringify({ scenes })}`,
316
+ };
317
+ }
318
+ return errorResult(`[Tavern] 未知 action:${String(action)}(支持 create / archive / list)`);
319
+ },
320
+ }), 'tavern: register /tavern-scene');
321
+ }
322
+ //# sourceMappingURL=install-commands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"install-commands.js","sourceRoot":"","sources":["../../src/bootstrap/install-commands.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAA;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AACjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oDAAoD,CAAA;AAG9F,SAAS,gBAAgB,CAAC,GAAW;IACnC,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,EAAE,CAAA;IACvB,IAAI,IAAI,KAAK,EAAE;QAAE,OAAO,EAAE,CAAA;IAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;AACzB,CAAC;AAED,SAAS,WAAW,CAAC,IAAY;IAC/B,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;AAChC,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,GAAY,EAAE,QAAwB;IAC1E,MAAM,EAAE,gBAAgB,EAAE,aAAa,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,oBAAoB,EAAE,cAAc,EAAE,YAAY,EAAE,GAAG,QAAQ,CAAA;IAElN,2CAA2C;IAC3C,6CAA6C;IAC7C,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC;QACrC,IAAI,EAAE,eAAe;QACrB,WAAW,EAAE,oHAAoH;QACj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@ -0,0 +1,7 @@
1
+ import type { Context } from '@deepseek-ai/cordis';
2
+ import type { TavernServices } from './create-services.js';
3
+ import type { TavernLifecycle } from './lifecycle.js';
4
+ import type { TavernRepositories } from './create-repositories.js';
5
+ import type { TavernService, TavernConfig } from '../index.js';
6
+ export declare function installTavernHttp(ctx: Context, services: TavernServices, repositories: TavernRepositories, tavernService: TavernService, workspacePath: string, config: TavernConfig, lifecycle: TavernLifecycle): void;
7
+ //# sourceMappingURL=install-http.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"install-http.d.ts","sourceRoot":"","sources":["../../src/bootstrap/install-http.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AA2BlD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAY9D,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,OAAO,EACZ,QAAQ,EAAE,cAAc,EACxB,YAAY,EAAE,kBAAkB,EAChC,aAAa,EAAE,aAAa,EAC5B,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,YAAY,EACpB,SAAS,EAAE,eAAe,GACzB,IAAI,CAgPN"}