@qvac/core 0.6.4 → 0.6.6

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 (87) hide show
  1. package/CHANGELOG.md +78 -1
  2. package/README.md +20 -4
  3. package/dist-lib/lib/api/chat-move.d.ts +3 -0
  4. package/dist-lib/lib/api/chat-move.js +7 -0
  5. package/dist-lib/lib/api/chat.d.ts +1 -1
  6. package/dist-lib/lib/api/chat.js +2 -1
  7. package/dist-lib/lib/api/chunk-delta.d.ts +7 -0
  8. package/dist-lib/lib/api/chunk-delta.js +33 -0
  9. package/dist-lib/lib/api/chunks.d.ts +1 -1
  10. package/dist-lib/lib/api/chunks.js +6 -3
  11. package/dist-lib/lib/api/index.d.ts +2 -0
  12. package/dist-lib/lib/api/index.js +2 -0
  13. package/dist-lib/lib/api/mesh.d.ts +2 -1
  14. package/dist-lib/lib/api/mesh.js +4 -0
  15. package/dist-lib/lib/assistant/harness.d.ts +8 -10
  16. package/dist-lib/lib/assistant.js +1 -1
  17. package/dist-lib/lib/constants.d.ts +1 -0
  18. package/dist-lib/lib/constants.js +1 -0
  19. package/dist-lib/lib/core/archived-mesh.js +3 -42
  20. package/dist-lib/lib/core/chat-activity.js +23 -10
  21. package/dist-lib/lib/core/chat-copy.d.ts +24 -0
  22. package/dist-lib/lib/core/chat-copy.js +115 -0
  23. package/dist-lib/lib/core/chat-move.d.ts +65 -0
  24. package/dist-lib/lib/core/chat-move.js +525 -0
  25. package/dist-lib/lib/core/chat.d.ts +6 -0
  26. package/dist-lib/lib/core/chat.js +11 -3
  27. package/dist-lib/lib/core/collections.d.ts +2 -0
  28. package/dist-lib/lib/core/collections.js +2 -0
  29. package/dist-lib/lib/core/contract/compute.d.ts +1 -1
  30. package/dist-lib/lib/core/contract/compute.js +2 -1
  31. package/dist-lib/lib/core/contract/index.js +2 -0
  32. package/dist-lib/lib/core/contract/invites.d.ts +1 -0
  33. package/dist-lib/lib/core/contract/invites.js +1 -1
  34. package/dist-lib/lib/core/contract/mesh-name.d.ts +3 -0
  35. package/dist-lib/lib/core/contract/mesh-name.js +26 -0
  36. package/dist-lib/lib/core/contract/writers.js +10 -3
  37. package/dist-lib/lib/core/files/index.d.ts +1 -1
  38. package/dist-lib/lib/core/files/index.js +1 -1
  39. package/dist-lib/lib/core/files/preview/index.js +4 -1
  40. package/dist-lib/lib/core/files/processing/source.js +4 -1
  41. package/dist-lib/lib/core/files/store/index.d.ts +2 -1
  42. package/dist-lib/lib/core/files/store/index.js +2 -1
  43. package/dist-lib/lib/core/files/store/reference.d.ts +3 -0
  44. package/dist-lib/lib/core/files/store/reference.js +8 -0
  45. package/dist-lib/lib/core/files/store/sweep.js +3 -1
  46. package/dist-lib/lib/core/local/index.d.ts +4 -1
  47. package/dist-lib/lib/core/local/index.js +14 -1
  48. package/dist-lib/lib/core/mesh-seed-handoff.d.ts +3 -1
  49. package/dist-lib/lib/core/mesh-seed-handoff.js +1 -0
  50. package/dist-lib/lib/core/mesh.d.ts +5 -1
  51. package/dist-lib/lib/core/mesh.js +16 -1
  52. package/dist-lib/lib/core/sync/index.js +9 -1
  53. package/dist-lib/lib/core.d.ts +9 -0
  54. package/dist-lib/lib/core.js +156 -30
  55. package/dist-lib/lib/custom-model-pusher.js +9 -5
  56. package/dist-lib/lib/mesh-scoped-engine.js +5 -0
  57. package/dist-lib/schema/engine.js +80 -1
  58. package/dist-lib/schema/local.js +17 -0
  59. package/dist-lib/schema/qvac.d.ts +2 -0
  60. package/dist-lib/schema/qvac.js +16 -0
  61. package/dist-lib/spec/bind.js +25 -0
  62. package/dist-lib/spec/calls.js +5 -0
  63. package/dist-lib/spec/capabilities.d.ts +10 -0
  64. package/dist-lib/spec/hrpc/hrpc.json +65 -0
  65. package/dist-lib/spec/hrpc/index.js +66 -4
  66. package/dist-lib/spec/hrpc/messages.js +1398 -1154
  67. package/dist-lib/spec/hyperschema/index.js +1398 -1154
  68. package/dist-lib/spec/hyperschema/schema.json +204 -0
  69. package/dist-lib/spec/hyperschema/types.d.ts +47 -0
  70. package/dist-lib/spec/local/hyperdb/db.json +17 -1
  71. package/dist-lib/spec/local/hyperdb/index.js +83 -2
  72. package/dist-lib/spec/local/hyperdb/messages.js +340 -136
  73. package/dist-lib/spec/local/hyperschema/index.js +107 -2
  74. package/dist-lib/spec/local/hyperschema/schema.json +78 -1
  75. package/dist-lib/spec/local/hyperschema/types.d.ts +18 -1
  76. package/dist-lib/spec/mesh/hyperdb/db.json +16 -1
  77. package/dist-lib/spec/mesh/hyperdb/index.js +71 -2
  78. package/dist-lib/spec/mesh/hyperdb/messages.js +454 -228
  79. package/dist-lib/spec/mesh/hyperdispatch/dispatch.json +7 -1
  80. package/dist-lib/spec/mesh/hyperdispatch/index.js +18 -1
  81. package/dist-lib/spec/mesh/hyperdispatch/messages.js +150 -2
  82. package/dist-lib/spec/mesh/hyperschema/index.js +150 -2
  83. package/dist-lib/spec/mesh/hyperschema/schema.json +76 -1
  84. package/dist-lib/spec/mesh/hyperschema/types.d.ts +21 -1
  85. package/package.json +5 -3
  86. package/tui/app.mjs +89 -3
  87. package/tui/lib/move-command.mjs +17 -0
@@ -1,12 +1,12 @@
1
1
  // This file is autogenerated by the hyperschema compiler
2
- // Schema Version: 8
2
+ // Schema Version: 9
3
3
  /* eslint-disable camelcase */
4
4
  /* eslint-disable quotes */
5
5
  /* eslint-disable space-before-function-paren */
6
6
 
7
7
  import { c } from 'hyperschema/runtime'
8
8
 
9
- const VERSION = 8
9
+ const VERSION = 9
10
10
 
11
11
  // eslint-disable-next-line no-unused-vars
12
12
  let version = VERSION
@@ -1606,8 +1606,109 @@ const encoding38 = {
1606
1606
  }
1607
1607
  }
1608
1608
 
1609
- // @local/config-v1/hyperdb#0
1609
+ // @local/chat-move-v1
1610
1610
  const encoding39 = {
1611
+ preencode(state, m) {
1612
+ c.fixed32.preencode(state, m.meshKey)
1613
+ c.string.preencode(state, m.chatId)
1614
+ c.fixed32.preencode(state, m.targetMeshKey)
1615
+ c.string.preencode(state, m.targetChatId)
1616
+ c.string.preencode(state, m.agentId)
1617
+ c.uint.preencode(state, m.carried)
1618
+ state.end++ // max flag is 4 so always one byte
1619
+
1620
+ if (version >= 9 && m.restartRunId) c.string.preencode(state, m.restartRunId)
1621
+ c.uint.preencode(state, m.startedAt)
1622
+ if (version >= 9 && m.completedAt) c.uint.preencode(state, m.completedAt)
1623
+ if (version >= 9 && m.failure) c.string.preencode(state, m.failure)
1624
+ },
1625
+ encode(state, m) {
1626
+ const flags =
1627
+ ((version >= 9 && m.restartRunId) ? 1 : 0) |
1628
+ ((version >= 9 && m.completedAt) ? 2 : 0) |
1629
+ ((version >= 9 && m.failure) ? 4 : 0)
1630
+
1631
+ c.fixed32.encode(state, m.meshKey)
1632
+ c.string.encode(state, m.chatId)
1633
+ c.fixed32.encode(state, m.targetMeshKey)
1634
+ c.string.encode(state, m.targetChatId)
1635
+ c.string.encode(state, m.agentId)
1636
+ c.uint.encode(state, m.carried)
1637
+ c.uint.encode(state, flags)
1638
+
1639
+ if (version >= 9 && m.restartRunId) c.string.encode(state, m.restartRunId)
1640
+ c.uint.encode(state, m.startedAt)
1641
+ if (version >= 9 && m.completedAt) c.uint.encode(state, m.completedAt)
1642
+ if (version >= 9 && m.failure) c.string.encode(state, m.failure)
1643
+ },
1644
+ decode(state) {
1645
+ const r0 = c.fixed32.decode(state)
1646
+ const r1 = c.string.decode(state)
1647
+ const r2 = c.fixed32.decode(state)
1648
+ const r3 = c.string.decode(state)
1649
+ const r4 = c.string.decode(state)
1650
+ const r5 = c.uint.decode(state)
1651
+ const flags = c.uint.decode(state)
1652
+
1653
+ return {
1654
+ version: 0,
1655
+ meshKey: r0,
1656
+ chatId: r1,
1657
+ targetMeshKey: r2,
1658
+ targetChatId: r3,
1659
+ agentId: r4,
1660
+ carried: r5,
1661
+ restartRunId: (version >= 9 && (flags & 1) !== 0) ? c.string.decode(state) : null,
1662
+ startedAt: c.uint.decode(state),
1663
+ completedAt: (version >= 9 && (flags & 2) !== 0) ? c.uint.decode(state) : 0,
1664
+ failure: (version >= 9 && (flags & 4) !== 0) ? c.string.decode(state) : null
1665
+ }
1666
+ }
1667
+ }
1668
+
1669
+ // @local/chat-move
1670
+ const encoding40 = {
1671
+ preencode(state, m) {
1672
+ const v = m.version ?? 1
1673
+ c.uint.preencode(state, v)
1674
+ switch (v) {
1675
+ case 0:
1676
+ case 1:
1677
+ encoding39.preencode(state, m)
1678
+ break
1679
+ default:
1680
+ throw new Error('Unsupported version')
1681
+ }
1682
+ },
1683
+ encode(state, m) {
1684
+ const v = m.version ?? 1
1685
+ c.uint.encode(state, v)
1686
+ switch (v) {
1687
+ case 0:
1688
+ case 1:
1689
+ encoding39.encode(state, m)
1690
+ break
1691
+ default:
1692
+ throw new Error('Unsupported version')
1693
+ }
1694
+ },
1695
+ decode(state) {
1696
+ const v = c.uint.decode(state)
1697
+ switch (v) {
1698
+ case 0:
1699
+ case 1: {
1700
+ const decoded = encoding39.decode(state)
1701
+ decoded.version = v
1702
+ return decoded
1703
+ }
1704
+ default:
1705
+ throw new Error('Unsupported version')
1706
+ }
1707
+ }
1708
+ }
1709
+
1710
+ // @local/config-v1/hyperdb#0
1711
+ const encoding41 = {
1611
1712
  preencode(state, m) {
1612
1713
  state.end++ // max flag is 1 so always one byte
1613
1714
 
@@ -1632,14 +1733,14 @@ const encoding39 = {
1632
1733
  }
1633
1734
 
1634
1735
  // @local/config/hyperdb#0
1635
- const encoding40 = {
1736
+ const encoding42 = {
1636
1737
  preencode(state, m) {
1637
1738
  const v = m.version ?? 1
1638
1739
  c.uint.preencode(state, v)
1639
1740
  switch (v) {
1640
1741
  case 0:
1641
1742
  case 1:
1642
- encoding39.preencode(state, m)
1743
+ encoding41.preencode(state, m)
1643
1744
  break
1644
1745
  default:
1645
1746
  throw new Error('Unsupported version')
@@ -1651,7 +1752,7 @@ const encoding40 = {
1651
1752
  switch (v) {
1652
1753
  case 0:
1653
1754
  case 1:
1654
- encoding39.encode(state, m)
1755
+ encoding41.encode(state, m)
1655
1756
  break
1656
1757
  default:
1657
1758
  throw new Error('Unsupported version')
@@ -1662,7 +1763,7 @@ const encoding40 = {
1662
1763
  switch (v) {
1663
1764
  case 0:
1664
1765
  case 1: {
1665
- const decoded = encoding39.decode(state)
1766
+ const decoded = encoding41.decode(state)
1666
1767
  decoded.version = v
1667
1768
  return decoded
1668
1769
  }
@@ -1673,7 +1774,7 @@ const encoding40 = {
1673
1774
  }
1674
1775
 
1675
1776
  // @local/mesh-session-v1/hyperdb#1
1676
- const encoding41 = {
1777
+ const encoding43 = {
1677
1778
  preencode(state, m) {
1678
1779
  state.end++ // max flag is 4 so always one byte
1679
1780
 
@@ -1702,14 +1803,14 @@ const encoding41 = {
1702
1803
  }
1703
1804
 
1704
1805
  // @local/mesh-session/hyperdb#1
1705
- const encoding42 = {
1806
+ const encoding44 = {
1706
1807
  preencode(state, m) {
1707
1808
  const v = m.version ?? 1
1708
1809
  c.uint.preencode(state, v)
1709
1810
  switch (v) {
1710
1811
  case 0:
1711
1812
  case 1:
1712
- encoding41.preencode(state, m)
1813
+ encoding43.preencode(state, m)
1713
1814
  break
1714
1815
  default:
1715
1816
  throw new Error('Unsupported version')
@@ -1721,7 +1822,7 @@ const encoding42 = {
1721
1822
  switch (v) {
1722
1823
  case 0:
1723
1824
  case 1:
1724
- encoding41.encode(state, m)
1825
+ encoding43.encode(state, m)
1725
1826
  break
1726
1827
  default:
1727
1828
  throw new Error('Unsupported version')
@@ -1732,7 +1833,7 @@ const encoding42 = {
1732
1833
  switch (v) {
1733
1834
  case 0:
1734
1835
  case 1: {
1735
- const decoded = encoding41.decode(state)
1836
+ const decoded = encoding43.decode(state)
1736
1837
  decoded.version = v
1737
1838
  return decoded
1738
1839
  }
@@ -1743,7 +1844,7 @@ const encoding42 = {
1743
1844
  }
1744
1845
 
1745
1846
  // @local/mesh-history-v1/hyperdb#2
1746
- const encoding43 = {
1847
+ const encoding45 = {
1747
1848
  preencode(state, m) {
1748
1849
  c.buffer.preencode(state, m.seed)
1749
1850
  state.end++ // max flag is 2 so always one byte
@@ -1773,14 +1874,14 @@ const encoding43 = {
1773
1874
  }
1774
1875
 
1775
1876
  // @local/mesh-history/hyperdb#2
1776
- const encoding44 = {
1877
+ const encoding46 = {
1777
1878
  preencode(state, m) {
1778
1879
  const v = m.version ?? 1
1779
1880
  c.uint.preencode(state, v)
1780
1881
  switch (v) {
1781
1882
  case 0:
1782
1883
  case 1:
1783
- encoding43.preencode(state, m)
1884
+ encoding45.preencode(state, m)
1784
1885
  break
1785
1886
  default:
1786
1887
  throw new Error('Unsupported version')
@@ -1792,7 +1893,7 @@ const encoding44 = {
1792
1893
  switch (v) {
1793
1894
  case 0:
1794
1895
  case 1:
1795
- encoding43.encode(state, m)
1896
+ encoding45.encode(state, m)
1796
1897
  break
1797
1898
  default:
1798
1899
  throw new Error('Unsupported version')
@@ -1803,7 +1904,7 @@ const encoding44 = {
1803
1904
  switch (v) {
1804
1905
  case 0:
1805
1906
  case 1: {
1806
- const decoded = encoding43.decode(state)
1907
+ const decoded = encoding45.decode(state)
1807
1908
  decoded.version = v
1808
1909
  return decoded
1809
1910
  }
@@ -1814,7 +1915,7 @@ const encoding44 = {
1814
1915
  }
1815
1916
 
1816
1917
  // @local/device-v1/hyperdb#3
1817
- const encoding45 = {
1918
+ const encoding47 = {
1818
1919
  preencode(state, m) {
1819
1920
  c.string.preencode(state, m.name)
1820
1921
  encoding14.preencode(state, m.capabilityProfile)
@@ -1851,14 +1952,14 @@ const encoding45 = {
1851
1952
  }
1852
1953
 
1853
1954
  // @local/device/hyperdb#3
1854
- const encoding46 = {
1955
+ const encoding48 = {
1855
1956
  preencode(state, m) {
1856
1957
  const v = m.version ?? 1
1857
1958
  c.uint.preencode(state, v)
1858
1959
  switch (v) {
1859
1960
  case 0:
1860
1961
  case 1:
1861
- encoding45.preencode(state, m)
1962
+ encoding47.preencode(state, m)
1862
1963
  break
1863
1964
  default:
1864
1965
  throw new Error('Unsupported version')
@@ -1870,7 +1971,7 @@ const encoding46 = {
1870
1971
  switch (v) {
1871
1972
  case 0:
1872
1973
  case 1:
1873
- encoding45.encode(state, m)
1974
+ encoding47.encode(state, m)
1874
1975
  break
1875
1976
  default:
1876
1977
  throw new Error('Unsupported version')
@@ -1881,7 +1982,7 @@ const encoding46 = {
1881
1982
  switch (v) {
1882
1983
  case 0:
1883
1984
  case 1: {
1884
- const decoded = encoding45.decode(state)
1985
+ const decoded = encoding47.decode(state)
1885
1986
  decoded.version = v
1886
1987
  return decoded
1887
1988
  }
@@ -1892,12 +1993,12 @@ const encoding46 = {
1892
1993
  }
1893
1994
 
1894
1995
  // @local/app-config-v1/hyperdb#4.pausedModels
1895
- const encoding47_8 = encoding9_8
1996
+ const encoding49_8 = encoding9_8
1896
1997
  // @local/app-config-v1/hyperdb#4.releasedModels
1897
- const encoding47_9 = encoding9_8
1998
+ const encoding49_9 = encoding9_8
1898
1999
 
1899
2000
  // @local/app-config-v1/hyperdb#4
1900
- const encoding47 = {
2001
+ const encoding49 = {
1901
2002
  preencode(state, m) {
1902
2003
  const flags =
1903
2004
  (m.activeAgentId ? 1 : 0) |
@@ -1917,8 +2018,8 @@ const encoding47 = {
1917
2018
  if (m.ctxSize) c.uint.preencode(state, m.ctxSize)
1918
2019
  if (m.lastModelName) c.string.preencode(state, m.lastModelName)
1919
2020
  if (m.delegation) c.json.preencode(state, m.delegation)
1920
- if (m.pausedModels) encoding47_8.preencode(state, m.pausedModels)
1921
- if (version >= 8 && m.releasedModels) encoding47_9.preencode(state, m.releasedModels)
2021
+ if (m.pausedModels) encoding49_8.preencode(state, m.pausedModels)
2022
+ if (version >= 8 && m.releasedModels) encoding49_9.preencode(state, m.releasedModels)
1922
2023
  },
1923
2024
  encode(state, m) {
1924
2025
  const flags =
@@ -1939,8 +2040,8 @@ const encoding47 = {
1939
2040
  if (m.ctxSize) c.uint.encode(state, m.ctxSize)
1940
2041
  if (m.lastModelName) c.string.encode(state, m.lastModelName)
1941
2042
  if (m.delegation) c.json.encode(state, m.delegation)
1942
- if (m.pausedModels) encoding47_8.encode(state, m.pausedModels)
1943
- if (version >= 8 && m.releasedModels) encoding47_9.encode(state, m.releasedModels)
2043
+ if (m.pausedModels) encoding49_8.encode(state, m.pausedModels)
2044
+ if (version >= 8 && m.releasedModels) encoding49_9.encode(state, m.releasedModels)
1944
2045
  },
1945
2046
  decode(state) {
1946
2047
  const flags = c.uint.decode(state)
@@ -1955,21 +2056,21 @@ const encoding47 = {
1955
2056
  lastModelName: (flags & 16) !== 0 ? c.string.decode(state) : null,
1956
2057
  onboardingCompleted: (flags & 32) !== 0,
1957
2058
  delegation: (flags & 64) !== 0 ? c.json.decode(state) : null,
1958
- pausedModels: (flags & 128) !== 0 ? encoding47_8.decode(state) : null,
1959
- releasedModels: (version >= 8 && (flags & 256) !== 0) ? encoding47_9.decode(state) : null
2059
+ pausedModels: (flags & 128) !== 0 ? encoding49_8.decode(state) : null,
2060
+ releasedModels: (version >= 8 && (flags & 256) !== 0) ? encoding49_9.decode(state) : null
1960
2061
  }
1961
2062
  }
1962
2063
  }
1963
2064
 
1964
2065
  // @local/app-config/hyperdb#4
1965
- const encoding48 = {
2066
+ const encoding50 = {
1966
2067
  preencode(state, m) {
1967
2068
  const v = m.version ?? 1
1968
2069
  c.uint.preencode(state, v)
1969
2070
  switch (v) {
1970
2071
  case 0:
1971
2072
  case 1:
1972
- encoding47.preencode(state, m)
2073
+ encoding49.preencode(state, m)
1973
2074
  break
1974
2075
  default:
1975
2076
  throw new Error('Unsupported version')
@@ -1981,7 +2082,7 @@ const encoding48 = {
1981
2082
  switch (v) {
1982
2083
  case 0:
1983
2084
  case 1:
1984
- encoding47.encode(state, m)
2085
+ encoding49.encode(state, m)
1985
2086
  break
1986
2087
  default:
1987
2088
  throw new Error('Unsupported version')
@@ -1992,7 +2093,7 @@ const encoding48 = {
1992
2093
  switch (v) {
1993
2094
  case 0:
1994
2095
  case 1: {
1995
- const decoded = encoding47.decode(state)
2096
+ const decoded = encoding49.decode(state)
1996
2097
  decoded.version = v
1997
2098
  return decoded
1998
2099
  }
@@ -2003,7 +2104,7 @@ const encoding48 = {
2003
2104
  }
2004
2105
 
2005
2106
  // @local/model-download-v1/hyperdb#5
2006
- const encoding49 = {
2107
+ const encoding51 = {
2007
2108
  preencode(state, m) {
2008
2109
  encoding11.preencode(state, m.phase)
2009
2110
  state.end++ // max flag is 16 so always one byte
@@ -2052,14 +2153,14 @@ const encoding49 = {
2052
2153
  }
2053
2154
 
2054
2155
  // @local/model-download/hyperdb#5
2055
- const encoding50 = {
2156
+ const encoding52 = {
2056
2157
  preencode(state, m) {
2057
2158
  const v = m.version ?? 1
2058
2159
  c.uint.preencode(state, v)
2059
2160
  switch (v) {
2060
2161
  case 0:
2061
2162
  case 1:
2062
- encoding49.preencode(state, m)
2163
+ encoding51.preencode(state, m)
2063
2164
  break
2064
2165
  default:
2065
2166
  throw new Error('Unsupported version')
@@ -2071,7 +2172,7 @@ const encoding50 = {
2071
2172
  switch (v) {
2072
2173
  case 0:
2073
2174
  case 1:
2074
- encoding49.encode(state, m)
2175
+ encoding51.encode(state, m)
2075
2176
  break
2076
2177
  default:
2077
2178
  throw new Error('Unsupported version')
@@ -2082,7 +2183,7 @@ const encoding50 = {
2082
2183
  switch (v) {
2083
2184
  case 0:
2084
2185
  case 1: {
2085
- const decoded = encoding49.decode(state)
2186
+ const decoded = encoding51.decode(state)
2086
2187
  decoded.version = v
2087
2188
  return decoded
2088
2189
  }
@@ -2093,7 +2194,7 @@ const encoding50 = {
2093
2194
  }
2094
2195
 
2095
2196
  // @local/custom-model-v1/hyperdb#6
2096
- const encoding51 = {
2197
+ const encoding53 = {
2097
2198
  preencode(state, m) {
2098
2199
  const flags =
2099
2200
  ((version >= 2 && m.mmprojSrc) ? 1 : 0) |
@@ -2163,14 +2264,14 @@ const encoding51 = {
2163
2264
  }
2164
2265
 
2165
2266
  // @local/custom-model/hyperdb#6
2166
- const encoding52 = {
2267
+ const encoding54 = {
2167
2268
  preencode(state, m) {
2168
2269
  const v = m.version ?? 1
2169
2270
  c.uint.preencode(state, v)
2170
2271
  switch (v) {
2171
2272
  case 0:
2172
2273
  case 1:
2173
- encoding51.preencode(state, m)
2274
+ encoding53.preencode(state, m)
2174
2275
  break
2175
2276
  default:
2176
2277
  throw new Error('Unsupported version')
@@ -2182,7 +2283,7 @@ const encoding52 = {
2182
2283
  switch (v) {
2183
2284
  case 0:
2184
2285
  case 1:
2185
- encoding51.encode(state, m)
2286
+ encoding53.encode(state, m)
2186
2287
  break
2187
2288
  default:
2188
2289
  throw new Error('Unsupported version')
@@ -2193,7 +2294,7 @@ const encoding52 = {
2193
2294
  switch (v) {
2194
2295
  case 0:
2195
2296
  case 1: {
2196
- const decoded = encoding51.decode(state)
2297
+ const decoded = encoding53.decode(state)
2197
2298
  decoded.version = v
2198
2299
  return decoded
2199
2300
  }
@@ -2204,7 +2305,7 @@ const encoding52 = {
2204
2305
  }
2205
2306
 
2206
2307
  // @local/identity-v1/hyperdb#7
2207
- const encoding53 = {
2308
+ const encoding55 = {
2208
2309
  preencode(state, m) {
2209
2310
  c.buffer.preencode(state, m.publicKey)
2210
2311
  c.buffer.preencode(state, m.proof)
@@ -2245,14 +2346,14 @@ const encoding53 = {
2245
2346
  }
2246
2347
 
2247
2348
  // @local/identity/hyperdb#7
2248
- const encoding54 = {
2349
+ const encoding56 = {
2249
2350
  preencode(state, m) {
2250
2351
  const v = m.version ?? 1
2251
2352
  c.uint.preencode(state, v)
2252
2353
  switch (v) {
2253
2354
  case 0:
2254
2355
  case 1:
2255
- encoding53.preencode(state, m)
2356
+ encoding55.preencode(state, m)
2256
2357
  break
2257
2358
  default:
2258
2359
  throw new Error('Unsupported version')
@@ -2264,7 +2365,7 @@ const encoding54 = {
2264
2365
  switch (v) {
2265
2366
  case 0:
2266
2367
  case 1:
2267
- encoding53.encode(state, m)
2368
+ encoding55.encode(state, m)
2268
2369
  break
2269
2370
  default:
2270
2371
  throw new Error('Unsupported version')
@@ -2275,7 +2376,7 @@ const encoding54 = {
2275
2376
  switch (v) {
2276
2377
  case 0:
2277
2378
  case 1: {
2278
- const decoded = encoding53.decode(state)
2379
+ const decoded = encoding55.decode(state)
2279
2380
  decoded.version = v
2280
2381
  return decoded
2281
2382
  }
@@ -2286,7 +2387,7 @@ const encoding54 = {
2286
2387
  }
2287
2388
 
2288
2389
  // @local/membership-v1/hyperdb#8
2289
- const encoding55 = {
2390
+ const encoding57 = {
2290
2391
  preencode(state, m) {
2291
2392
  c.fixed32.preencode(state, m.memberId)
2292
2393
  c.buffer.preencode(state, m.proof)
@@ -2313,14 +2414,14 @@ const encoding55 = {
2313
2414
  }
2314
2415
 
2315
2416
  // @local/membership/hyperdb#8
2316
- const encoding56 = {
2417
+ const encoding58 = {
2317
2418
  preencode(state, m) {
2318
2419
  const v = m.version ?? 1
2319
2420
  c.uint.preencode(state, v)
2320
2421
  switch (v) {
2321
2422
  case 0:
2322
2423
  case 1:
2323
- encoding55.preencode(state, m)
2424
+ encoding57.preencode(state, m)
2324
2425
  break
2325
2426
  default:
2326
2427
  throw new Error('Unsupported version')
@@ -2332,7 +2433,7 @@ const encoding56 = {
2332
2433
  switch (v) {
2333
2434
  case 0:
2334
2435
  case 1:
2335
- encoding55.encode(state, m)
2436
+ encoding57.encode(state, m)
2336
2437
  break
2337
2438
  default:
2338
2439
  throw new Error('Unsupported version')
@@ -2343,7 +2444,7 @@ const encoding56 = {
2343
2444
  switch (v) {
2344
2445
  case 0:
2345
2446
  case 1: {
2346
- const decoded = encoding55.decode(state)
2447
+ const decoded = encoding57.decode(state)
2347
2448
  decoded.version = v
2348
2449
  return decoded
2349
2450
  }
@@ -2354,7 +2455,7 @@ const encoding56 = {
2354
2455
  }
2355
2456
 
2356
2457
  // @local/chat-notify-v1/hyperdb#9
2357
- const encoding57 = {
2458
+ const encoding59 = {
2358
2459
  preencode(state, m) {
2359
2460
  c.uint.preencode(state, m.ackedThrough)
2360
2461
  },
@@ -2373,14 +2474,14 @@ const encoding57 = {
2373
2474
  }
2374
2475
 
2375
2476
  // @local/chat-notify/hyperdb#9
2376
- const encoding58 = {
2477
+ const encoding60 = {
2377
2478
  preencode(state, m) {
2378
2479
  const v = m.version ?? 1
2379
2480
  c.uint.preencode(state, v)
2380
2481
  switch (v) {
2381
2482
  case 0:
2382
2483
  case 1:
2383
- encoding57.preencode(state, m)
2484
+ encoding59.preencode(state, m)
2384
2485
  break
2385
2486
  default:
2386
2487
  throw new Error('Unsupported version')
@@ -2392,7 +2493,7 @@ const encoding58 = {
2392
2493
  switch (v) {
2393
2494
  case 0:
2394
2495
  case 1:
2395
- encoding57.encode(state, m)
2496
+ encoding59.encode(state, m)
2396
2497
  break
2397
2498
  default:
2398
2499
  throw new Error('Unsupported version')
@@ -2403,7 +2504,7 @@ const encoding58 = {
2403
2504
  switch (v) {
2404
2505
  case 0:
2405
2506
  case 1: {
2406
- const decoded = encoding57.decode(state)
2507
+ const decoded = encoding59.decode(state)
2407
2508
  decoded.version = v
2408
2509
  return decoded
2409
2510
  }
@@ -2414,7 +2515,7 @@ const encoding58 = {
2414
2515
  }
2415
2516
 
2416
2517
  // @local/model-notify-v1/hyperdb#10
2417
- const encoding59 = {
2518
+ const encoding61 = {
2418
2519
  preencode(state, m) {
2419
2520
  c.string.preencode(state, m.transferId)
2420
2521
  state.end++ // max flag is 8 so always one byte
@@ -2452,14 +2553,14 @@ const encoding59 = {
2452
2553
  }
2453
2554
 
2454
2555
  // @local/model-notify/hyperdb#10
2455
- const encoding60 = {
2556
+ const encoding62 = {
2456
2557
  preencode(state, m) {
2457
2558
  const v = m.version ?? 1
2458
2559
  c.uint.preencode(state, v)
2459
2560
  switch (v) {
2460
2561
  case 0:
2461
2562
  case 1:
2462
- encoding59.preencode(state, m)
2563
+ encoding61.preencode(state, m)
2463
2564
  break
2464
2565
  default:
2465
2566
  throw new Error('Unsupported version')
@@ -2471,7 +2572,7 @@ const encoding60 = {
2471
2572
  switch (v) {
2472
2573
  case 0:
2473
2574
  case 1:
2474
- encoding59.encode(state, m)
2575
+ encoding61.encode(state, m)
2475
2576
  break
2476
2577
  default:
2477
2578
  throw new Error('Unsupported version')
@@ -2482,7 +2583,7 @@ const encoding60 = {
2482
2583
  switch (v) {
2483
2584
  case 0:
2484
2585
  case 1: {
2485
- const decoded = encoding59.decode(state)
2586
+ const decoded = encoding61.decode(state)
2486
2587
  decoded.version = v
2487
2588
  return decoded
2488
2589
  }
@@ -2493,7 +2594,7 @@ const encoding60 = {
2493
2594
  }
2494
2595
 
2495
2596
  // @local/mesh-departure-v1/hyperdb#11
2496
- const encoding61 = {
2597
+ const encoding63 = {
2497
2598
  preencode(state, m) {
2498
2599
  c.buffer.preencode(state, m.seed)
2499
2600
  state.end++ // max flag is 2 so always one byte
@@ -2523,14 +2624,14 @@ const encoding61 = {
2523
2624
  }
2524
2625
 
2525
2626
  // @local/mesh-departure/hyperdb#11
2526
- const encoding62 = {
2627
+ const encoding64 = {
2527
2628
  preencode(state, m) {
2528
2629
  const v = m.version ?? 1
2529
2630
  c.uint.preencode(state, v)
2530
2631
  switch (v) {
2531
2632
  case 0:
2532
2633
  case 1:
2533
- encoding61.preencode(state, m)
2634
+ encoding63.preencode(state, m)
2534
2635
  break
2535
2636
  default:
2536
2637
  throw new Error('Unsupported version')
@@ -2542,7 +2643,7 @@ const encoding62 = {
2542
2643
  switch (v) {
2543
2644
  case 0:
2544
2645
  case 1:
2545
- encoding61.encode(state, m)
2646
+ encoding63.encode(state, m)
2546
2647
  break
2547
2648
  default:
2548
2649
  throw new Error('Unsupported version')
@@ -2553,7 +2654,7 @@ const encoding62 = {
2553
2654
  switch (v) {
2554
2655
  case 0:
2555
2656
  case 1: {
2556
- const decoded = encoding61.decode(state)
2657
+ const decoded = encoding63.decode(state)
2557
2658
  decoded.version = v
2558
2659
  return decoded
2559
2660
  }
@@ -2564,7 +2665,7 @@ const encoding62 = {
2564
2665
  }
2565
2666
 
2566
2667
  // @local/active-mesh-v1/hyperdb#12
2567
- const encoding63 = {
2668
+ const encoding65 = {
2568
2669
  preencode(state, m) {
2569
2670
  state.end++ // max flag is 2 so always one byte
2570
2671
 
@@ -2593,14 +2694,14 @@ const encoding63 = {
2593
2694
  }
2594
2695
 
2595
2696
  // @local/active-mesh/hyperdb#12
2596
- const encoding64 = {
2697
+ const encoding66 = {
2597
2698
  preencode(state, m) {
2598
2699
  const v = m.version ?? 1
2599
2700
  c.uint.preencode(state, v)
2600
2701
  switch (v) {
2601
2702
  case 0:
2602
2703
  case 1:
2603
- encoding63.preencode(state, m)
2704
+ encoding65.preencode(state, m)
2604
2705
  break
2605
2706
  default:
2606
2707
  throw new Error('Unsupported version')
@@ -2612,7 +2713,7 @@ const encoding64 = {
2612
2713
  switch (v) {
2613
2714
  case 0:
2614
2715
  case 1:
2615
- encoding63.encode(state, m)
2716
+ encoding65.encode(state, m)
2616
2717
  break
2617
2718
  default:
2618
2719
  throw new Error('Unsupported version')
@@ -2623,7 +2724,7 @@ const encoding64 = {
2623
2724
  switch (v) {
2624
2725
  case 0:
2625
2726
  case 1: {
2626
- const decoded = encoding63.decode(state)
2727
+ const decoded = encoding65.decode(state)
2627
2728
  decoded.version = v
2628
2729
  return decoded
2629
2730
  }
@@ -2634,7 +2735,7 @@ const encoding64 = {
2634
2735
  }
2635
2736
 
2636
2737
  // @local/mesh-membership-v1/hyperdb#13
2637
- const encoding65 = {
2738
+ const encoding67 = {
2638
2739
  preencode(state, m) {
2639
2740
  c.fixed32.preencode(state, m.seed)
2640
2741
  state.end++ // max flag is 32 so always one byte
@@ -2678,14 +2779,14 @@ const encoding65 = {
2678
2779
  }
2679
2780
 
2680
2781
  // @local/mesh-membership/hyperdb#13
2681
- const encoding66 = {
2782
+ const encoding68 = {
2682
2783
  preencode(state, m) {
2683
2784
  const v = m.version ?? 1
2684
2785
  c.uint.preencode(state, v)
2685
2786
  switch (v) {
2686
2787
  case 0:
2687
2788
  case 1:
2688
- encoding65.preencode(state, m)
2789
+ encoding67.preencode(state, m)
2689
2790
  break
2690
2791
  default:
2691
2792
  throw new Error('Unsupported version')
@@ -2697,7 +2798,7 @@ const encoding66 = {
2697
2798
  switch (v) {
2698
2799
  case 0:
2699
2800
  case 1:
2700
- encoding65.encode(state, m)
2801
+ encoding67.encode(state, m)
2701
2802
  break
2702
2803
  default:
2703
2804
  throw new Error('Unsupported version')
@@ -2708,7 +2809,7 @@ const encoding66 = {
2708
2809
  switch (v) {
2709
2810
  case 0:
2710
2811
  case 1: {
2711
- const decoded = encoding65.decode(state)
2812
+ const decoded = encoding67.decode(state)
2712
2813
  decoded.version = v
2713
2814
  return decoded
2714
2815
  }
@@ -2719,7 +2820,7 @@ const encoding66 = {
2719
2820
  }
2720
2821
 
2721
2822
  // @local/member-proof-v1/hyperdb#14
2722
- const encoding67 = {
2823
+ const encoding69 = {
2723
2824
  preencode(state, m) {
2724
2825
  c.fixed32.preencode(state, m.memberId)
2725
2826
  c.buffer.preencode(state, m.proof)
@@ -2746,14 +2847,14 @@ const encoding67 = {
2746
2847
  }
2747
2848
 
2748
2849
  // @local/member-proof/hyperdb#14
2749
- const encoding68 = {
2850
+ const encoding70 = {
2750
2851
  preencode(state, m) {
2751
2852
  const v = m.version ?? 1
2752
2853
  c.uint.preencode(state, v)
2753
2854
  switch (v) {
2754
2855
  case 0:
2755
2856
  case 1:
2756
- encoding67.preencode(state, m)
2857
+ encoding69.preencode(state, m)
2757
2858
  break
2758
2859
  default:
2759
2860
  throw new Error('Unsupported version')
@@ -2765,7 +2866,7 @@ const encoding68 = {
2765
2866
  switch (v) {
2766
2867
  case 0:
2767
2868
  case 1:
2768
- encoding67.encode(state, m)
2869
+ encoding69.encode(state, m)
2769
2870
  break
2770
2871
  default:
2771
2872
  throw new Error('Unsupported version')
@@ -2776,7 +2877,7 @@ const encoding68 = {
2776
2877
  switch (v) {
2777
2878
  case 0:
2778
2879
  case 1: {
2779
- const decoded = encoding67.decode(state)
2880
+ const decoded = encoding69.decode(state)
2780
2881
  decoded.version = v
2781
2882
  return decoded
2782
2883
  }
@@ -2787,7 +2888,7 @@ const encoding68 = {
2787
2888
  }
2788
2889
 
2789
2890
  // @local/account-recovery-v1/hyperdb#15
2790
- const encoding69 = {
2891
+ const encoding71 = {
2791
2892
  preencode(state, m) {
2792
2893
  c.fixed32.preencode(state, m.coreKey)
2793
2894
  c.uint.preencode(state, m.publishedAt)
@@ -2810,14 +2911,14 @@ const encoding69 = {
2810
2911
  }
2811
2912
 
2812
2913
  // @local/account-recovery/hyperdb#15
2813
- const encoding70 = {
2914
+ const encoding72 = {
2814
2915
  preencode(state, m) {
2815
2916
  const v = m.version ?? 1
2816
2917
  c.uint.preencode(state, v)
2817
2918
  switch (v) {
2818
2919
  case 0:
2819
2920
  case 1:
2820
- encoding69.preencode(state, m)
2921
+ encoding71.preencode(state, m)
2821
2922
  break
2822
2923
  default:
2823
2924
  throw new Error('Unsupported version')
@@ -2829,7 +2930,7 @@ const encoding70 = {
2829
2930
  switch (v) {
2830
2931
  case 0:
2831
2932
  case 1:
2832
- encoding69.encode(state, m)
2933
+ encoding71.encode(state, m)
2833
2934
  break
2834
2935
  default:
2835
2936
  throw new Error('Unsupported version')
@@ -2840,7 +2941,7 @@ const encoding70 = {
2840
2941
  switch (v) {
2841
2942
  case 0:
2842
2943
  case 1: {
2843
- const decoded = encoding69.decode(state)
2944
+ const decoded = encoding71.decode(state)
2844
2945
  decoded.version = v
2845
2946
  return decoded
2846
2947
  }
@@ -2851,7 +2952,7 @@ const encoding70 = {
2851
2952
  }
2852
2953
 
2853
2954
  // @local/chat-order-v1/hyperdb#16
2854
- const encoding71 = {
2955
+ const encoding73 = {
2855
2956
  preencode(state, m) {
2856
2957
  c.buffer.preencode(state, m.sortKey)
2857
2958
  },
@@ -2871,14 +2972,14 @@ const encoding71 = {
2871
2972
  }
2872
2973
 
2873
2974
  // @local/chat-order/hyperdb#16
2874
- const encoding72 = {
2975
+ const encoding74 = {
2875
2976
  preencode(state, m) {
2876
2977
  const v = m.version ?? 1
2877
2978
  c.uint.preencode(state, v)
2878
2979
  switch (v) {
2879
2980
  case 0:
2880
2981
  case 1:
2881
- encoding71.preencode(state, m)
2982
+ encoding73.preencode(state, m)
2882
2983
  break
2883
2984
  default:
2884
2985
  throw new Error('Unsupported version')
@@ -2890,7 +2991,7 @@ const encoding72 = {
2890
2991
  switch (v) {
2891
2992
  case 0:
2892
2993
  case 1:
2893
- encoding71.encode(state, m)
2994
+ encoding73.encode(state, m)
2894
2995
  break
2895
2996
  default:
2896
2997
  throw new Error('Unsupported version')
@@ -2901,7 +3002,7 @@ const encoding72 = {
2901
3002
  switch (v) {
2902
3003
  case 0:
2903
3004
  case 1: {
2904
- const decoded = encoding71.decode(state)
3005
+ const decoded = encoding73.decode(state)
2905
3006
  decoded.version = v
2906
3007
  return decoded
2907
3008
  }
@@ -2912,7 +3013,7 @@ const encoding72 = {
2912
3013
  }
2913
3014
 
2914
3015
  // @local/file-v1/hyperdb#18
2915
- const encoding73 = {
3016
+ const encoding75 = {
2916
3017
  preencode(state, m) {
2917
3018
  const flags =
2918
3019
  ((version >= 6 && m.chatId) ? 1 : 0) |
@@ -2981,14 +3082,14 @@ const encoding73 = {
2981
3082
  }
2982
3083
 
2983
3084
  // @local/file/hyperdb#18
2984
- const encoding74 = {
3085
+ const encoding76 = {
2985
3086
  preencode(state, m) {
2986
3087
  const v = m.version ?? 1
2987
3088
  c.uint.preencode(state, v)
2988
3089
  switch (v) {
2989
3090
  case 0:
2990
3091
  case 1:
2991
- encoding73.preencode(state, m)
3092
+ encoding75.preencode(state, m)
2992
3093
  break
2993
3094
  default:
2994
3095
  throw new Error('Unsupported version')
@@ -3000,7 +3101,7 @@ const encoding74 = {
3000
3101
  switch (v) {
3001
3102
  case 0:
3002
3103
  case 1:
3003
- encoding73.encode(state, m)
3104
+ encoding75.encode(state, m)
3004
3105
  break
3005
3106
  default:
3006
3107
  throw new Error('Unsupported version')
@@ -3011,7 +3112,102 @@ const encoding74 = {
3011
3112
  switch (v) {
3012
3113
  case 0:
3013
3114
  case 1: {
3014
- const decoded = encoding73.decode(state)
3115
+ const decoded = encoding75.decode(state)
3116
+ decoded.version = v
3117
+ return decoded
3118
+ }
3119
+ default:
3120
+ throw new Error('Unsupported version')
3121
+ }
3122
+ }
3123
+ }
3124
+
3125
+ // @local/chat-move-v1/hyperdb#22
3126
+ const encoding77 = {
3127
+ preencode(state, m) {
3128
+ c.fixed32.preencode(state, m.targetMeshKey)
3129
+ c.string.preencode(state, m.targetChatId)
3130
+ c.string.preencode(state, m.agentId)
3131
+ c.uint.preencode(state, m.carried)
3132
+ state.end++ // max flag is 4 so always one byte
3133
+
3134
+ if (version >= 9 && m.restartRunId) c.string.preencode(state, m.restartRunId)
3135
+ c.uint.preencode(state, m.startedAt)
3136
+ if (version >= 9 && m.completedAt) c.uint.preencode(state, m.completedAt)
3137
+ if (version >= 9 && m.failure) c.string.preencode(state, m.failure)
3138
+ },
3139
+ encode(state, m) {
3140
+ const flags =
3141
+ ((version >= 9 && m.restartRunId) ? 1 : 0) |
3142
+ ((version >= 9 && m.completedAt) ? 2 : 0) |
3143
+ ((version >= 9 && m.failure) ? 4 : 0)
3144
+
3145
+ c.fixed32.encode(state, m.targetMeshKey)
3146
+ c.string.encode(state, m.targetChatId)
3147
+ c.string.encode(state, m.agentId)
3148
+ c.uint.encode(state, m.carried)
3149
+ c.uint.encode(state, flags)
3150
+
3151
+ if (version >= 9 && m.restartRunId) c.string.encode(state, m.restartRunId)
3152
+ c.uint.encode(state, m.startedAt)
3153
+ if (version >= 9 && m.completedAt) c.uint.encode(state, m.completedAt)
3154
+ if (version >= 9 && m.failure) c.string.encode(state, m.failure)
3155
+ },
3156
+ decode(state) {
3157
+ const r2 = c.fixed32.decode(state)
3158
+ const r3 = c.string.decode(state)
3159
+ const r4 = c.string.decode(state)
3160
+ const r5 = c.uint.decode(state)
3161
+ const flags = c.uint.decode(state)
3162
+
3163
+ return {
3164
+ version: 0,
3165
+ meshKey: null,
3166
+ chatId: null,
3167
+ targetMeshKey: r2,
3168
+ targetChatId: r3,
3169
+ agentId: r4,
3170
+ carried: r5,
3171
+ restartRunId: (version >= 9 && (flags & 1) !== 0) ? c.string.decode(state) : null,
3172
+ startedAt: c.uint.decode(state),
3173
+ completedAt: (version >= 9 && (flags & 2) !== 0) ? c.uint.decode(state) : 0,
3174
+ failure: (version >= 9 && (flags & 4) !== 0) ? c.string.decode(state) : null
3175
+ }
3176
+ }
3177
+ }
3178
+
3179
+ // @local/chat-move/hyperdb#22
3180
+ const encoding78 = {
3181
+ preencode(state, m) {
3182
+ const v = m.version ?? 1
3183
+ c.uint.preencode(state, v)
3184
+ switch (v) {
3185
+ case 0:
3186
+ case 1:
3187
+ encoding77.preencode(state, m)
3188
+ break
3189
+ default:
3190
+ throw new Error('Unsupported version')
3191
+ }
3192
+ },
3193
+ encode(state, m) {
3194
+ const v = m.version ?? 1
3195
+ c.uint.encode(state, v)
3196
+ switch (v) {
3197
+ case 0:
3198
+ case 1:
3199
+ encoding77.encode(state, m)
3200
+ break
3201
+ default:
3202
+ throw new Error('Unsupported version')
3203
+ }
3204
+ },
3205
+ decode(state) {
3206
+ const v = c.uint.decode(state)
3207
+ switch (v) {
3208
+ case 0:
3209
+ case 1: {
3210
+ const decoded = encoding77.decode(state)
3015
3211
  decoded.version = v
3016
3212
  return decoded
3017
3213
  }
@@ -3128,78 +3324,86 @@ function getEncoding(name) {
3128
3324
  return encoding37
3129
3325
  case '@local/file':
3130
3326
  return encoding38
3131
- case '@local/config-v1/hyperdb#0':
3327
+ case '@local/chat-move-v1':
3132
3328
  return encoding39
3133
- case '@local/config/hyperdb#0':
3329
+ case '@local/chat-move':
3134
3330
  return encoding40
3135
- case '@local/mesh-session-v1/hyperdb#1':
3331
+ case '@local/config-v1/hyperdb#0':
3136
3332
  return encoding41
3137
- case '@local/mesh-session/hyperdb#1':
3333
+ case '@local/config/hyperdb#0':
3138
3334
  return encoding42
3139
- case '@local/mesh-history-v1/hyperdb#2':
3335
+ case '@local/mesh-session-v1/hyperdb#1':
3140
3336
  return encoding43
3141
- case '@local/mesh-history/hyperdb#2':
3337
+ case '@local/mesh-session/hyperdb#1':
3142
3338
  return encoding44
3143
- case '@local/device-v1/hyperdb#3':
3339
+ case '@local/mesh-history-v1/hyperdb#2':
3144
3340
  return encoding45
3145
- case '@local/device/hyperdb#3':
3341
+ case '@local/mesh-history/hyperdb#2':
3146
3342
  return encoding46
3147
- case '@local/app-config-v1/hyperdb#4':
3343
+ case '@local/device-v1/hyperdb#3':
3148
3344
  return encoding47
3149
- case '@local/app-config/hyperdb#4':
3345
+ case '@local/device/hyperdb#3':
3150
3346
  return encoding48
3151
- case '@local/model-download-v1/hyperdb#5':
3347
+ case '@local/app-config-v1/hyperdb#4':
3152
3348
  return encoding49
3153
- case '@local/model-download/hyperdb#5':
3349
+ case '@local/app-config/hyperdb#4':
3154
3350
  return encoding50
3155
- case '@local/custom-model-v1/hyperdb#6':
3351
+ case '@local/model-download-v1/hyperdb#5':
3156
3352
  return encoding51
3157
- case '@local/custom-model/hyperdb#6':
3353
+ case '@local/model-download/hyperdb#5':
3158
3354
  return encoding52
3159
- case '@local/identity-v1/hyperdb#7':
3355
+ case '@local/custom-model-v1/hyperdb#6':
3160
3356
  return encoding53
3161
- case '@local/identity/hyperdb#7':
3357
+ case '@local/custom-model/hyperdb#6':
3162
3358
  return encoding54
3163
- case '@local/membership-v1/hyperdb#8':
3359
+ case '@local/identity-v1/hyperdb#7':
3164
3360
  return encoding55
3165
- case '@local/membership/hyperdb#8':
3361
+ case '@local/identity/hyperdb#7':
3166
3362
  return encoding56
3167
- case '@local/chat-notify-v1/hyperdb#9':
3363
+ case '@local/membership-v1/hyperdb#8':
3168
3364
  return encoding57
3169
- case '@local/chat-notify/hyperdb#9':
3365
+ case '@local/membership/hyperdb#8':
3170
3366
  return encoding58
3171
- case '@local/model-notify-v1/hyperdb#10':
3367
+ case '@local/chat-notify-v1/hyperdb#9':
3172
3368
  return encoding59
3173
- case '@local/model-notify/hyperdb#10':
3369
+ case '@local/chat-notify/hyperdb#9':
3174
3370
  return encoding60
3175
- case '@local/mesh-departure-v1/hyperdb#11':
3371
+ case '@local/model-notify-v1/hyperdb#10':
3176
3372
  return encoding61
3177
- case '@local/mesh-departure/hyperdb#11':
3373
+ case '@local/model-notify/hyperdb#10':
3178
3374
  return encoding62
3179
- case '@local/active-mesh-v1/hyperdb#12':
3375
+ case '@local/mesh-departure-v1/hyperdb#11':
3180
3376
  return encoding63
3181
- case '@local/active-mesh/hyperdb#12':
3377
+ case '@local/mesh-departure/hyperdb#11':
3182
3378
  return encoding64
3183
- case '@local/mesh-membership-v1/hyperdb#13':
3379
+ case '@local/active-mesh-v1/hyperdb#12':
3184
3380
  return encoding65
3185
- case '@local/mesh-membership/hyperdb#13':
3381
+ case '@local/active-mesh/hyperdb#12':
3186
3382
  return encoding66
3187
- case '@local/member-proof-v1/hyperdb#14':
3383
+ case '@local/mesh-membership-v1/hyperdb#13':
3188
3384
  return encoding67
3189
- case '@local/member-proof/hyperdb#14':
3385
+ case '@local/mesh-membership/hyperdb#13':
3190
3386
  return encoding68
3191
- case '@local/account-recovery-v1/hyperdb#15':
3387
+ case '@local/member-proof-v1/hyperdb#14':
3192
3388
  return encoding69
3193
- case '@local/account-recovery/hyperdb#15':
3389
+ case '@local/member-proof/hyperdb#14':
3194
3390
  return encoding70
3195
- case '@local/chat-order-v1/hyperdb#16':
3391
+ case '@local/account-recovery-v1/hyperdb#15':
3196
3392
  return encoding71
3197
- case '@local/chat-order/hyperdb#16':
3393
+ case '@local/account-recovery/hyperdb#15':
3198
3394
  return encoding72
3199
- case '@local/file-v1/hyperdb#18':
3395
+ case '@local/chat-order-v1/hyperdb#16':
3200
3396
  return encoding73
3201
- case '@local/file/hyperdb#18':
3397
+ case '@local/chat-order/hyperdb#16':
3202
3398
  return encoding74
3399
+ case '@local/file-v1/hyperdb#18':
3400
+ return encoding75
3401
+ case '@local/file/hyperdb#18':
3402
+ return encoding76
3403
+ case '@local/chat-move-v1/hyperdb#22':
3404
+ return encoding77
3405
+ case '@local/chat-move/hyperdb#22':
3406
+ return encoding78
3203
3407
  default:
3204
3408
  throw new Error('Encoder not found ' + name)
3205
3409
  }