@withbuddi/buddi 0.1.0-pre.26 → 0.1.0-pre.27

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 (191) hide show
  1. package/extension/manifest.json +2 -2
  2. package/node_modules/@buddi/cli/dist/.tsbuildinfo +1 -1
  3. package/node_modules/@buddi/cli/dist/doctor-probes.d.ts.map +1 -1
  4. package/node_modules/@buddi/cli/dist/doctor-probes.js +8 -2
  5. package/node_modules/@buddi/cli/dist/doctor-probes.js.map +1 -1
  6. package/node_modules/@buddi/cli/dist/doctor.d.ts +15 -0
  7. package/node_modules/@buddi/cli/dist/doctor.d.ts.map +1 -1
  8. package/node_modules/@buddi/cli/dist/doctor.js +18 -0
  9. package/node_modules/@buddi/cli/dist/doctor.js.map +1 -1
  10. package/node_modules/@buddi/core/dist/.tsbuildinfo +1 -1
  11. package/node_modules/@buddi/core/dist/backup/index.d.ts +1 -0
  12. package/node_modules/@buddi/core/dist/backup/index.d.ts.map +1 -1
  13. package/node_modules/@buddi/core/dist/backup/index.js +1 -0
  14. package/node_modules/@buddi/core/dist/backup/index.js.map +1 -1
  15. package/node_modules/@buddi/core/dist/backup/load.d.ts +18 -0
  16. package/node_modules/@buddi/core/dist/backup/load.d.ts.map +1 -1
  17. package/node_modules/@buddi/core/dist/backup/load.js +3 -2
  18. package/node_modules/@buddi/core/dist/backup/load.js.map +1 -1
  19. package/node_modules/@buddi/core/dist/backup/pending.d.ts +101 -0
  20. package/node_modules/@buddi/core/dist/backup/pending.d.ts.map +1 -0
  21. package/node_modules/@buddi/core/dist/backup/pending.js +340 -0
  22. package/node_modules/@buddi/core/dist/backup/pending.js.map +1 -0
  23. package/node_modules/@buddi/core/dist/backup/restore.d.ts.map +1 -1
  24. package/node_modules/@buddi/core/dist/backup/restore.js +54 -1
  25. package/node_modules/@buddi/core/dist/backup/restore.js.map +1 -1
  26. package/node_modules/@buddi/core/dist/home.d.ts +24 -0
  27. package/node_modules/@buddi/core/dist/home.d.ts.map +1 -1
  28. package/node_modules/@buddi/core/dist/home.js +3 -0
  29. package/node_modules/@buddi/core/dist/home.js.map +1 -1
  30. package/node_modules/@buddi/core/dist/plugin/index.d.ts +2 -2
  31. package/node_modules/@buddi/core/dist/plugin/index.d.ts.map +1 -1
  32. package/node_modules/@buddi/core/dist/plugin/index.js +1 -1
  33. package/node_modules/@buddi/core/dist/plugin/index.js.map +1 -1
  34. package/node_modules/@buddi/core/dist/postgres/binaries.d.ts +3 -1
  35. package/node_modules/@buddi/core/dist/postgres/binaries.d.ts.map +1 -1
  36. package/node_modules/@buddi/core/dist/postgres/binaries.js +15 -23
  37. package/node_modules/@buddi/core/dist/postgres/binaries.js.map +1 -1
  38. package/node_modules/@buddi/core/dist/postgres/cluster.js +1 -1
  39. package/node_modules/@buddi/core/dist/postgres/cluster.js.map +1 -1
  40. package/node_modules/@buddi/core/dist/postgres/index.d.ts +1 -0
  41. package/node_modules/@buddi/core/dist/postgres/index.d.ts.map +1 -1
  42. package/node_modules/@buddi/core/dist/postgres/index.js +1 -0
  43. package/node_modules/@buddi/core/dist/postgres/index.js.map +1 -1
  44. package/node_modules/@buddi/core/dist/postgres/links.d.ts +15 -0
  45. package/node_modules/@buddi/core/dist/postgres/links.d.ts.map +1 -0
  46. package/node_modules/@buddi/core/dist/postgres/links.js +98 -0
  47. package/node_modules/@buddi/core/dist/postgres/links.js.map +1 -0
  48. package/node_modules/@buddi/core/migrations/055_pending_plugin_data.sql +24 -0
  49. package/node_modules/@buddi/core/package.json +4 -0
  50. package/node_modules/@buddi/gateway/dist/.tsbuildinfo +1 -1
  51. package/node_modules/@buddi/gateway/dist/plugins/approve.d.ts.map +1 -1
  52. package/node_modules/@buddi/gateway/dist/plugins/approve.js +9 -1
  53. package/node_modules/@buddi/gateway/dist/plugins/approve.js.map +1 -1
  54. package/node_modules/@buddi/gateway/dist/plugins/migrate.d.ts.map +1 -1
  55. package/node_modules/@buddi/gateway/dist/plugins/migrate.js +11 -1
  56. package/node_modules/@buddi/gateway/dist/plugins/migrate.js.map +1 -1
  57. package/node_modules/@buddi/gateway/dist/telegram/main.d.ts.map +1 -1
  58. package/node_modules/@buddi/gateway/dist/telegram/main.js +2 -0
  59. package/node_modules/@buddi/gateway/dist/telegram/main.js.map +1 -1
  60. package/node_modules/@buddi/gateway/dist/telegram/surface.d.ts +26 -1
  61. package/node_modules/@buddi/gateway/dist/telegram/surface.d.ts.map +1 -1
  62. package/node_modules/@buddi/gateway/dist/telegram/surface.js +106 -3
  63. package/node_modules/@buddi/gateway/dist/telegram/surface.js.map +1 -1
  64. package/node_modules/@buddi/gateway/dist/web/agents.d.ts +4 -0
  65. package/node_modules/@buddi/gateway/dist/web/agents.d.ts.map +1 -1
  66. package/node_modules/@buddi/gateway/dist/web/agents.js +12 -0
  67. package/node_modules/@buddi/gateway/dist/web/agents.js.map +1 -1
  68. package/node_modules/@buddi/gateway/dist/web/read.d.ts +17 -0
  69. package/node_modules/@buddi/gateway/dist/web/read.d.ts.map +1 -1
  70. package/node_modules/@buddi/gateway/dist/web/read.js +36 -1
  71. package/node_modules/@buddi/gateway/dist/web/read.js.map +1 -1
  72. package/node_modules/@buddi/gateway/dist/web/recovery.d.ts +21 -0
  73. package/node_modules/@buddi/gateway/dist/web/recovery.d.ts.map +1 -1
  74. package/node_modules/@buddi/gateway/dist/web/recovery.js +68 -12
  75. package/node_modules/@buddi/gateway/dist/web/recovery.js.map +1 -1
  76. package/node_modules/@buddi/install/dist/.tsbuildinfo +1 -1
  77. package/node_modules/@buddi/install/dist/postgres-check.d.ts +18 -0
  78. package/node_modules/@buddi/install/dist/postgres-check.d.ts.map +1 -0
  79. package/node_modules/@buddi/install/dist/postgres-check.js +66 -0
  80. package/node_modules/@buddi/install/dist/postgres-check.js.map +1 -0
  81. package/node_modules/@buddi/install/dist/upgrade.d.ts +3 -0
  82. package/node_modules/@buddi/install/dist/upgrade.d.ts.map +1 -1
  83. package/node_modules/@buddi/install/dist/upgrade.js +30 -0
  84. package/node_modules/@buddi/install/dist/upgrade.js.map +1 -1
  85. package/node_modules/@buddi/runtime/dist/.tsbuildinfo +1 -1
  86. package/node_modules/@buddi/tool-artifacts/dist/.tsbuildinfo +1 -1
  87. package/node_modules/@buddi/tool-browser/dist/.tsbuildinfo +1 -1
  88. package/node_modules/@buddi/tool-email/dist/.tsbuildinfo +1 -1
  89. package/node_modules/@buddi/tool-host/dist/.tsbuildinfo +1 -1
  90. package/node_modules/@buddi/tool-mcp/dist/.tsbuildinfo +1 -1
  91. package/node_modules/@buddi/tool-memory/dist/.tsbuildinfo +1 -1
  92. package/node_modules/@buddi/tool-web/dist/.tsbuildinfo +1 -1
  93. package/package.json +2 -2
  94. package/packages/cli/dist/.tsbuildinfo +1 -1
  95. package/packages/cli/dist/doctor-probes.d.ts.map +1 -1
  96. package/packages/cli/dist/doctor-probes.js +8 -2
  97. package/packages/cli/dist/doctor-probes.js.map +1 -1
  98. package/packages/cli/dist/doctor.d.ts +15 -0
  99. package/packages/cli/dist/doctor.d.ts.map +1 -1
  100. package/packages/cli/dist/doctor.js +18 -0
  101. package/packages/cli/dist/doctor.js.map +1 -1
  102. package/packages/core/dist/.tsbuildinfo +1 -1
  103. package/packages/core/dist/backup/index.d.ts +1 -0
  104. package/packages/core/dist/backup/index.d.ts.map +1 -1
  105. package/packages/core/dist/backup/index.js +1 -0
  106. package/packages/core/dist/backup/index.js.map +1 -1
  107. package/packages/core/dist/backup/load.d.ts +18 -0
  108. package/packages/core/dist/backup/load.d.ts.map +1 -1
  109. package/packages/core/dist/backup/load.js +3 -2
  110. package/packages/core/dist/backup/load.js.map +1 -1
  111. package/packages/core/dist/backup/pending.d.ts +101 -0
  112. package/packages/core/dist/backup/pending.d.ts.map +1 -0
  113. package/packages/core/dist/backup/pending.js +340 -0
  114. package/packages/core/dist/backup/pending.js.map +1 -0
  115. package/packages/core/dist/backup/restore.d.ts.map +1 -1
  116. package/packages/core/dist/backup/restore.js +54 -1
  117. package/packages/core/dist/backup/restore.js.map +1 -1
  118. package/packages/core/dist/home.d.ts +24 -0
  119. package/packages/core/dist/home.d.ts.map +1 -1
  120. package/packages/core/dist/home.js +3 -0
  121. package/packages/core/dist/home.js.map +1 -1
  122. package/packages/core/dist/plugin/index.d.ts +2 -2
  123. package/packages/core/dist/plugin/index.d.ts.map +1 -1
  124. package/packages/core/dist/plugin/index.js +1 -1
  125. package/packages/core/dist/plugin/index.js.map +1 -1
  126. package/packages/core/dist/postgres/binaries.d.ts +3 -1
  127. package/packages/core/dist/postgres/binaries.d.ts.map +1 -1
  128. package/packages/core/dist/postgres/binaries.js +15 -23
  129. package/packages/core/dist/postgres/binaries.js.map +1 -1
  130. package/packages/core/dist/postgres/cluster.js +1 -1
  131. package/packages/core/dist/postgres/cluster.js.map +1 -1
  132. package/packages/core/dist/postgres/index.d.ts +1 -0
  133. package/packages/core/dist/postgres/index.d.ts.map +1 -1
  134. package/packages/core/dist/postgres/index.js +1 -0
  135. package/packages/core/dist/postgres/index.js.map +1 -1
  136. package/packages/core/dist/postgres/links.d.ts +15 -0
  137. package/packages/core/dist/postgres/links.d.ts.map +1 -0
  138. package/packages/core/dist/postgres/links.js +98 -0
  139. package/packages/core/dist/postgres/links.js.map +1 -0
  140. package/packages/core/migrations/055_pending_plugin_data.sql +24 -0
  141. package/packages/core/package.json +4 -0
  142. package/packages/gateway/dist/.tsbuildinfo +1 -1
  143. package/packages/gateway/dist/plugins/approve.d.ts.map +1 -1
  144. package/packages/gateway/dist/plugins/approve.js +9 -1
  145. package/packages/gateway/dist/plugins/approve.js.map +1 -1
  146. package/packages/gateway/dist/plugins/migrate.d.ts.map +1 -1
  147. package/packages/gateway/dist/plugins/migrate.js +11 -1
  148. package/packages/gateway/dist/plugins/migrate.js.map +1 -1
  149. package/packages/gateway/dist/telegram/main.d.ts.map +1 -1
  150. package/packages/gateway/dist/telegram/main.js +2 -0
  151. package/packages/gateway/dist/telegram/main.js.map +1 -1
  152. package/packages/gateway/dist/telegram/surface.d.ts +26 -1
  153. package/packages/gateway/dist/telegram/surface.d.ts.map +1 -1
  154. package/packages/gateway/dist/telegram/surface.js +106 -3
  155. package/packages/gateway/dist/telegram/surface.js.map +1 -1
  156. package/packages/gateway/dist/web/agents.d.ts +4 -0
  157. package/packages/gateway/dist/web/agents.d.ts.map +1 -1
  158. package/packages/gateway/dist/web/agents.js +12 -0
  159. package/packages/gateway/dist/web/agents.js.map +1 -1
  160. package/packages/gateway/dist/web/read.d.ts +17 -0
  161. package/packages/gateway/dist/web/read.d.ts.map +1 -1
  162. package/packages/gateway/dist/web/read.js +36 -1
  163. package/packages/gateway/dist/web/read.js.map +1 -1
  164. package/packages/gateway/dist/web/recovery.d.ts +21 -0
  165. package/packages/gateway/dist/web/recovery.d.ts.map +1 -1
  166. package/packages/gateway/dist/web/recovery.js +68 -12
  167. package/packages/gateway/dist/web/recovery.js.map +1 -1
  168. package/packages/install/dist/.tsbuildinfo +1 -1
  169. package/packages/install/dist/postgres-check.d.ts +18 -0
  170. package/packages/install/dist/postgres-check.d.ts.map +1 -0
  171. package/packages/install/dist/postgres-check.js +66 -0
  172. package/packages/install/dist/postgres-check.js.map +1 -0
  173. package/packages/install/dist/upgrade.d.ts +3 -0
  174. package/packages/install/dist/upgrade.d.ts.map +1 -1
  175. package/packages/install/dist/upgrade.js +30 -0
  176. package/packages/install/dist/upgrade.js.map +1 -1
  177. package/packages/runtime/dist/.tsbuildinfo +1 -1
  178. package/packages/tools/artifacts/dist/.tsbuildinfo +1 -1
  179. package/packages/tools/browser/dist/.tsbuildinfo +1 -1
  180. package/packages/tools/email/dist/.tsbuildinfo +1 -1
  181. package/packages/tools/host/dist/.tsbuildinfo +1 -1
  182. package/packages/tools/mcp/dist/.tsbuildinfo +1 -1
  183. package/packages/tools/memory/dist/.tsbuildinfo +1 -1
  184. package/packages/tools/web/dist/.tsbuildinfo +1 -1
  185. package/packages/web/dist/assets/index-Cn-3X1OI.js +130 -0
  186. package/packages/web/dist/assets/{index-BxbiKNMS.css → index-bdj791NB.css} +1 -1
  187. package/packages/web/dist/assets/{lottie_light-7wQnGwdw.js → lottie_light-DmJaDM4A.js} +1 -1
  188. package/packages/web/dist/build.json +1 -1
  189. package/packages/web/dist/index.html +2 -2
  190. package/packages/web/dist/precache.json +4 -4
  191. package/packages/web/dist/assets/index-Rrze3bGo.js +0 -130
@@ -0,0 +1 @@
1
+ {"version":3,"file":"links.js","sourceRoot":"","sources":["../../src/postgres/links.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACpF,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,GAAW;IACpD,IAAI,IAAwB,CAAC;IAC7B,IAAI,IAAwB,CAAC;IAC7B,KAAK,MAAM,SAAS,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC;QACxD,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,kBAAkB,CAAC,EAAE,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;QAC/F,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YAAC,IAAI,GAAG,SAAS,CAAC;YAAC,MAAM;QAAC,CAAC;IACtD,CAAC;IACD,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,SAAS;QAAE,OAAO,EAAE,CAAC;IACxD,IAAI,OAAgB,CAAC;IACrB,IAAI,CAAC;QAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAAC,CAAC;IAAC,MAAM,CAAC;QAAC,OAAO,EAAE,CAAC;IAAC,CAAC;I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AAC,CAAC,CAAC;IACzC,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -0,0 +1,24 @@
1
+ -- Plugin data a restore kept for later (docs/operations.md, "Restore").
2
+ --
3
+ -- A restore into an installation that does not have a plugin yet cannot
4
+ -- rebuild that plugin's schema, so its part of the archive is staged under
5
+ -- <data>/restore/pending/<schema>/ and recorded here. It loads when the plugin
6
+ -- is installed and its migrations have run (or at the next start), into tables
7
+ -- that are empty; a table that already has rows stays staged and is named in
8
+ -- `tables` with its own `kept` sentence.
9
+ --
10
+ -- tables: [{ "table": "schema.table", "rows": n, "kept": "why" | null }]
11
+ -- migrations: the archive's migration filenames for this schema, the level the
12
+ -- data was taken at.
13
+ -- reason: why the last attempt left it waiting, or null before any attempt.
14
+ create table if not exists core.pending_plugin_data (
15
+ schema text primary key,
16
+ archive text not null,
17
+ staged_path text not null,
18
+ tables jsonb not null default '[]'::jsonb,
19
+ rows bigint not null default 0,
20
+ migrations jsonb not null default '[]'::jsonb,
21
+ reason text,
22
+ created_at timestamptz not null default now(),
23
+ updated_at timestamptz not null default now()
24
+ );
@@ -33,6 +33,10 @@
33
33
  "types": "./dist/semver.d.ts",
34
34
  "default": "./dist/semver.js"
35
35
  },
36
+ "./postgres-links": {
37
+ "types": "./dist/postgres/links.d.ts",
38
+ "default": "./dist/postgres/links.js"
39
+ },
36
40
  "./connection-config": {
37
41
  "types": "./dist/connection-config.d.ts",
38
42
  "default": "./dist/connection-config.js"