hive-am 1.4.0 → 1.6.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 (169) hide show
  1. package/CHANGELOG.md +52 -1
  2. package/README.md +6 -9
  3. package/bin/hive-am.mjs +242 -31
  4. package/bin/run.mjs +135 -0
  5. package/package.json +1 -1
  6. package/server/dist/connections/format.js +26 -0
  7. package/server/dist/connections/index.js +2 -0
  8. package/server/dist/connections/manager.js +18 -6
  9. package/server/dist/connections/router.js +43 -13
  10. package/server/dist/connections/secrets.js +9 -1
  11. package/server/dist/connections/slack.js +488 -0
  12. package/server/dist/connections/store.js +2 -0
  13. package/server/dist/db/migrations.js +80 -0
  14. package/server/dist/db.js +26 -13
  15. package/server/dist/dispatches.js +126 -0
  16. package/server/dist/efforts.js +105 -0
  17. package/server/dist/http/routes/agents.js +4 -3
  18. package/server/dist/http/routes/meta.js +12 -0
  19. package/server/dist/http/routes/notebook.js +10 -2
  20. package/server/dist/http/routes/orchestration.js +13 -2
  21. package/server/dist/http/routes/resources.js +3 -0
  22. package/server/dist/http/routes/types.js +18 -1
  23. package/server/dist/http/validate.js +27 -4
  24. package/server/dist/index.js +6 -1
  25. package/server/dist/instructions.js +11 -3
  26. package/server/dist/objects/agent-db.js +258 -0
  27. package/server/dist/objects/database.js +496 -34
  28. package/server/dist/objects/index.js +16 -8
  29. package/server/dist/providers/kiro.js +7 -1
  30. package/server/dist/providers/opencode-server.js +11 -1
  31. package/server/dist/providers/opencode.js +4 -3
  32. package/server/dist/providers/spawn.js +38 -4
  33. package/server/dist/retention.js +52 -0
  34. package/server/dist/runtime.js +69 -27
  35. package/server/dist/services/agents.js +53 -1
  36. package/server/dist/services/connections.js +18 -3
  37. package/server/dist/services/notebook.js +7 -3
  38. package/server/dist/skills/defaults.js +41 -5
  39. package/server/dist/skills/notebook.js +57 -13
  40. package/server/dist/watch.js +1 -1
  41. package/server/mcp/dispatch.mjs +116 -5
  42. package/web/.next/BUILD_ID +1 -1
  43. package/web/.next/app-build-manifest.json +98 -82
  44. package/web/.next/app-path-routes-manifest.json +7 -7
  45. package/web/.next/build-manifest.json +2 -2
  46. package/web/.next/prerender-manifest.json +51 -51
  47. package/web/.next/server/app/_not-found/page.js +2 -2
  48. package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  49. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  50. package/web/.next/server/app/_not-found.html +1 -1
  51. package/web/.next/server/app/_not-found.rsc +3 -3
  52. package/web/.next/server/app/agents/[id]/page.js +4 -4
  53. package/web/.next/server/app/agents/[id]/page.js.nft.json +1 -1
  54. package/web/.next/server/app/agents/[id]/page_client-reference-manifest.js +1 -1
  55. package/web/.next/server/app/agents/page.js +2 -2
  56. package/web/.next/server/app/agents/page.js.nft.json +1 -1
  57. package/web/.next/server/app/agents/page_client-reference-manifest.js +1 -1
  58. package/web/.next/server/app/agents.html +1 -1
  59. package/web/.next/server/app/agents.rsc +21 -18
  60. package/web/.next/server/app/chat/page.js +2 -2
  61. package/web/.next/server/app/chat/page.js.nft.json +1 -1
  62. package/web/.next/server/app/chat/page_client-reference-manifest.js +1 -1
  63. package/web/.next/server/app/chat.html +1 -1
  64. package/web/.next/server/app/chat.rsc +4 -4
  65. package/web/.next/server/app/connections/page.js +2 -2
  66. package/web/.next/server/app/connections/page.js.nft.json +1 -1
  67. package/web/.next/server/app/connections/page_client-reference-manifest.js +1 -1
  68. package/web/.next/server/app/connections.html +1 -1
  69. package/web/.next/server/app/connections.rsc +4 -4
  70. package/web/.next/server/app/index.html +1 -1
  71. package/web/.next/server/app/index.rsc +4 -4
  72. package/web/.next/server/app/page.js +2 -2
  73. package/web/.next/server/app/page.js.nft.json +1 -1
  74. package/web/.next/server/app/page_client-reference-manifest.js +1 -1
  75. package/web/.next/server/app/relations/page.js +2 -2
  76. package/web/.next/server/app/relations/page.js.nft.json +1 -1
  77. package/web/.next/server/app/relations/page_client-reference-manifest.js +1 -1
  78. package/web/.next/server/app/relations.html +1 -1
  79. package/web/.next/server/app/relations.rsc +4 -4
  80. package/web/.next/server/app/resources/[id]/page.js +2 -2
  81. package/web/.next/server/app/resources/[id]/page.js.nft.json +1 -1
  82. package/web/.next/server/app/resources/[id]/page_client-reference-manifest.js +1 -1
  83. package/web/.next/server/app/resources/page.js +2 -2
  84. package/web/.next/server/app/resources/page.js.nft.json +1 -1
  85. package/web/.next/server/app/resources/page_client-reference-manifest.js +1 -1
  86. package/web/.next/server/app/resources.html +1 -1
  87. package/web/.next/server/app/resources.rsc +4 -4
  88. package/web/.next/server/app/schedules/page.js +2 -2
  89. package/web/.next/server/app/schedules/page.js.nft.json +1 -1
  90. package/web/.next/server/app/schedules/page_client-reference-manifest.js +1 -1
  91. package/web/.next/server/app/schedules.html +1 -1
  92. package/web/.next/server/app/schedules.rsc +4 -4
  93. package/web/.next/server/app/sessions/page.js +2 -2
  94. package/web/.next/server/app/sessions/page.js.nft.json +1 -1
  95. package/web/.next/server/app/sessions/page_client-reference-manifest.js +1 -1
  96. package/web/.next/server/app/sessions.html +1 -1
  97. package/web/.next/server/app/sessions.rsc +4 -4
  98. package/web/.next/server/app/skills/page.js +2 -2
  99. package/web/.next/server/app/skills/page.js.nft.json +1 -1
  100. package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  101. package/web/.next/server/app/skills.html +1 -1
  102. package/web/.next/server/app/skills.rsc +4 -4
  103. package/web/.next/server/app/types/page.js +2 -2
  104. package/web/.next/server/app/types/page.js.nft.json +1 -1
  105. package/web/.next/server/app/types/page_client-reference-manifest.js +1 -1
  106. package/web/.next/server/app/types.html +1 -1
  107. package/web/.next/server/app/types.rsc +4 -4
  108. package/web/.next/server/app-paths-manifest.json +7 -7
  109. package/web/.next/server/chunks/{505.js → 111.js} +1 -1
  110. package/web/.next/server/chunks/143.js +1 -1
  111. package/web/.next/server/chunks/213.js +1 -1
  112. package/web/.next/server/chunks/368.js +1 -1
  113. package/web/.next/server/chunks/403.js +1 -1
  114. package/web/.next/server/chunks/612.js +1 -1
  115. package/web/.next/server/chunks/741.js +2 -0
  116. package/web/.next/server/chunks/837.js +1 -0
  117. package/web/.next/server/chunks/{435.js → 939.js} +3 -3
  118. package/web/.next/server/pages/404.html +1 -1
  119. package/web/.next/server/pages/500.html +1 -1
  120. package/web/.next/server/server-reference-manifest.json +1 -1
  121. package/web/.next/static/chunks/162-68ba190086f5ad39.js +1 -0
  122. package/web/.next/static/chunks/214-35b88db02113ae02.js +1 -0
  123. package/web/.next/static/chunks/281-4506bc98b7111729.js +1 -0
  124. package/web/.next/static/chunks/491-196bcb3dd11bb460.js +1 -0
  125. package/web/.next/static/chunks/517-8f2db464d10a4624.js +1 -0
  126. package/web/.next/static/chunks/{586-f7017d585a84738d.js → 586-4f67b823df060b46.js} +1 -1
  127. package/web/.next/static/chunks/587-3c53d91a1c4f99d6.js +1 -0
  128. package/web/.next/static/chunks/606-14fb5aaa4d0ff22d.js +1 -0
  129. package/web/.next/static/chunks/642-dc874c8caf203ee1.js +1 -0
  130. package/web/.next/static/chunks/{705-f81face97b1bb1af.js → 705-ce86175dea00e6a9.js} +1 -1
  131. package/web/.next/static/chunks/757-03361e7a97a605a2.js +1 -0
  132. package/web/.next/static/chunks/771-db19da9b1a24820c.js +1 -0
  133. package/web/.next/static/chunks/app/agents/[id]/page-803d53aedd10c8e5.js +1 -0
  134. package/web/.next/static/chunks/app/agents/layout-71dd98d696935e29.js +1 -0
  135. package/web/.next/static/chunks/app/agents/page-9da499db6d22731f.js +1 -0
  136. package/web/.next/static/chunks/app/chat/{page-5261b12b7d50f5d1.js → page-383bc24e72dab7fa.js} +1 -1
  137. package/web/.next/static/chunks/app/connections/page-b0ea2eae62cef74e.js +1 -0
  138. package/web/.next/static/chunks/app/layout-cb5af29b0742c513.js +1 -0
  139. package/web/.next/static/chunks/app/page-5e547e87de23d9fa.js +1 -0
  140. package/web/.next/static/chunks/app/relations/page-02710fe1f8a670a9.js +1 -0
  141. package/web/.next/static/chunks/app/resources/[id]/page-1e2afddcb1f04884.js +1 -0
  142. package/web/.next/static/chunks/app/resources/{page-61cccd8fdcc2f6c8.js → page-195b0af83b8ace0d.js} +1 -1
  143. package/web/.next/static/chunks/app/sessions/page-85638705fdc18174.js +1 -0
  144. package/web/.next/static/chunks/app/types/page-c4c2b2217c4667e8.js +1 -0
  145. package/web/.next/static/css/c7faf690373117bb.css +1 -0
  146. package/web/.next/trace +30 -30
  147. package/web/.next/types/routes.d.ts +2 -1
  148. package/web/.next/types/validator.ts +9 -0
  149. package/web/.next/server/chunks/274.js +0 -1
  150. package/web/.next/static/chunks/281-113274e705940a55.js +0 -1
  151. package/web/.next/static/chunks/316-26da9cc233ba7557.js +0 -1
  152. package/web/.next/static/chunks/391-18768499e741112e.js +0 -1
  153. package/web/.next/static/chunks/517-373a80c8ba432bdc.js +0 -1
  154. package/web/.next/static/chunks/562-7c2e33d838e869bf.js +0 -1
  155. package/web/.next/static/chunks/587-8e4d2be01ba7d48f.js +0 -1
  156. package/web/.next/static/chunks/606-c9a19918b02a98d0.js +0 -1
  157. package/web/.next/static/chunks/656-f537149fe28f79aa.js +0 -1
  158. package/web/.next/static/chunks/app/agents/[id]/page-6ed6edb3e74b0ebe.js +0 -1
  159. package/web/.next/static/chunks/app/agents/page-9bb8cba69776c719.js +0 -1
  160. package/web/.next/static/chunks/app/connections/page-eb11cfb1ffeab3ca.js +0 -1
  161. package/web/.next/static/chunks/app/layout-fad968a635f9a4b3.js +0 -1
  162. package/web/.next/static/chunks/app/page-99e0351e6ccaa384.js +0 -1
  163. package/web/.next/static/chunks/app/relations/page-a44fd515a3b0525e.js +0 -1
  164. package/web/.next/static/chunks/app/resources/[id]/page-fc494e85b01e8cb7.js +0 -1
  165. package/web/.next/static/chunks/app/sessions/page-a7534ebd90e982d6.js +0 -1
  166. package/web/.next/static/chunks/app/types/page-ebd37e220f77c1f3.js +0 -1
  167. package/web/.next/static/css/582723fcea1f9887.css +0 -1
  168. /package/web/.next/static/{YT6HM6qmegMJaBMX5QvuP → tdnUXVa01m25EjOobxVd1}/_buildManifest.js +0 -0
  169. /package/web/.next/static/{YT6HM6qmegMJaBMX5QvuP → tdnUXVa01m25EjOobxVd1}/_ssgManifest.js +0 -0
@@ -3,7 +3,7 @@
3
3
 
4
4
  type AppRoutes = "/" | "/agents" | "/agents/[id]" | "/chat" | "/connections" | "/relations" | "/resources" | "/resources/[id]" | "/schedules" | "/sessions" | "/skills" | "/types"
5
5
  type PageRoutes = never
6
- type LayoutRoutes = "/"
6
+ type LayoutRoutes = "/" | "/agents"
7
7
  type RedirectRoutes = "/objects" | "/objects/[id]"
8
8
  type RewriteRoutes = "/api/[[...path]]"
9
9
  type Routes = AppRoutes | PageRoutes | LayoutRoutes | RedirectRoutes | RewriteRoutes
@@ -32,6 +32,7 @@ export type ParamsOf<Route extends Routes> = ParamMap[Route]
32
32
 
33
33
  interface LayoutSlotMap {
34
34
  "/": never
35
+ "/agents": never
35
36
  }
36
37
 
37
38
 
@@ -150,6 +150,15 @@ type LayoutConfig<Route extends LayoutRoutes = LayoutRoutes> = {
150
150
 
151
151
 
152
152
 
153
+ // Validate ../../app/agents/layout.tsx
154
+ {
155
+ type __IsExpected<Specific extends LayoutConfig<"/agents">> = Specific
156
+ const handler = {} as typeof import("../../app/agents/layout.js")
157
+ type __Check = __IsExpected<typeof handler>
158
+ // @ts-ignore
159
+ type __Unused = __Check
160
+ }
161
+
153
162
  // Validate ../../app/layout.tsx
154
163
  {
155
164
  type __IsExpected<Specific extends LayoutConfig<"/">> = Specific