@adonis-agora/config 0.0.0-stage → 0.1.1

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 (245) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/LICENSE +21 -0
  3. package/README.md +28 -2
  4. package/dist/assets/spa/assets/index-CAHRPNZj.js +50 -0
  5. package/dist/assets/spa/assets/index-CAHRPNZj.js.map +1 -0
  6. package/dist/assets/spa/assets/index-Cvjcgc6i.css +1 -0
  7. package/dist/assets/spa/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woff +0 -0
  8. package/dist/assets/spa/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
  9. package/dist/assets/spa/assets/jetbrains-mono-latin-500-normal-BWZEU5yA.woff2 +0 -0
  10. package/dist/assets/spa/assets/jetbrains-mono-latin-500-normal-CJOVTJB7.woff +0 -0
  11. package/dist/assets/spa/assets/jetbrains-mono-latin-600-normal-BfsvjouI.woff +0 -0
  12. package/dist/assets/spa/assets/jetbrains-mono-latin-600-normal-C8RAYTDA.woff2 +0 -0
  13. package/dist/assets/spa/assets/sora-latin-400-normal-CRt88UEn.woff2 +0 -0
  14. package/dist/assets/spa/assets/sora-latin-400-normal-OW7qkl5a.woff +0 -0
  15. package/dist/assets/spa/assets/sora-latin-500-normal-01eiPEn0.woff2 +0 -0
  16. package/dist/assets/spa/assets/sora-latin-500-normal-w58xtEt9.woff +0 -0
  17. package/dist/assets/spa/assets/sora-latin-600-normal-1_7fyUAY.woff +0 -0
  18. package/dist/assets/spa/assets/sora-latin-600-normal-Cdg4DaK0.woff2 +0 -0
  19. package/dist/assets/spa/assets/sora-latin-700-normal-9waGdLWo.woff2 +0 -0
  20. package/dist/assets/spa/assets/sora-latin-700-normal-BKPfQAnC.woff +0 -0
  21. package/dist/assets/spa/index.html +20 -0
  22. package/dist/commands/agora_doctor.d.ts +23 -0
  23. package/dist/commands/agora_doctor.d.ts.map +1 -0
  24. package/dist/commands/agora_doctor.js +120 -0
  25. package/dist/commands/agora_doctor.js.map +1 -0
  26. package/dist/commands/config.d.ts +100 -0
  27. package/dist/commands/config.d.ts.map +1 -0
  28. package/dist/commands/config.js +447 -0
  29. package/dist/commands/config.js.map +1 -0
  30. package/dist/commands/crypto.d.ts +17 -0
  31. package/dist/commands/crypto.d.ts.map +1 -0
  32. package/dist/commands/crypto.js +89 -0
  33. package/dist/commands/crypto.js.map +1 -0
  34. package/dist/commands/main.d.ts +16 -0
  35. package/dist/commands/main.d.ts.map +1 -0
  36. package/dist/commands/main.js +31 -0
  37. package/dist/commands/main.js.map +1 -0
  38. package/dist/commands/pull.d.ts +36 -0
  39. package/dist/commands/pull.d.ts.map +1 -0
  40. package/dist/commands/pull.js +262 -0
  41. package/dist/commands/pull.js.map +1 -0
  42. package/dist/commands/shared.d.ts +33 -0
  43. package/dist/commands/shared.d.ts.map +1 -0
  44. package/dist/commands/shared.js +134 -0
  45. package/dist/commands/shared.js.map +1 -0
  46. package/dist/commands/tenant_key.d.ts +22 -0
  47. package/dist/commands/tenant_key.d.ts.map +1 -0
  48. package/dist/commands/tenant_key.js +141 -0
  49. package/dist/commands/tenant_key.js.map +1 -0
  50. package/dist/configure.d.ts +13 -0
  51. package/dist/configure.d.ts.map +1 -0
  52. package/dist/configure.js +33 -0
  53. package/dist/configure.js.map +1 -0
  54. package/dist/providers/config_provider.d.ts +31 -0
  55. package/dist/providers/config_provider.d.ts.map +1 -0
  56. package/dist/providers/config_provider.js +460 -0
  57. package/dist/providers/config_provider.js.map +1 -0
  58. package/dist/services/main.d.ts +39 -0
  59. package/dist/services/main.d.ts.map +1 -0
  60. package/dist/services/main.js +67 -0
  61. package/dist/services/main.js.map +1 -0
  62. package/dist/src/admin.d.ts +110 -0
  63. package/dist/src/admin.d.ts.map +1 -0
  64. package/dist/src/admin.js +326 -0
  65. package/dist/src/admin.js.map +1 -0
  66. package/dist/src/bootstrap.d.ts +35 -0
  67. package/dist/src/bootstrap.d.ts.map +1 -0
  68. package/dist/src/bootstrap.js +35 -0
  69. package/dist/src/bootstrap.js.map +1 -0
  70. package/dist/src/crypto/secrets.d.ts +67 -0
  71. package/dist/src/crypto/secrets.d.ts.map +1 -0
  72. package/dist/src/crypto/secrets.js +100 -0
  73. package/dist/src/crypto/secrets.js.map +1 -0
  74. package/dist/src/crypto/tenant_keys.d.ts +49 -0
  75. package/dist/src/crypto/tenant_keys.d.ts.map +1 -0
  76. package/dist/src/crypto/tenant_keys.js +134 -0
  77. package/dist/src/crypto/tenant_keys.js.map +1 -0
  78. package/dist/src/crypto-kit/asymmetric.d.ts +61 -0
  79. package/dist/src/crypto-kit/asymmetric.d.ts.map +1 -0
  80. package/dist/src/crypto-kit/asymmetric.js +201 -0
  81. package/dist/src/crypto-kit/asymmetric.js.map +1 -0
  82. package/dist/src/crypto-kit/index.d.ts +5 -0
  83. package/dist/src/crypto-kit/index.d.ts.map +1 -0
  84. package/dist/src/crypto-kit/index.js +6 -0
  85. package/dist/src/crypto-kit/index.js.map +1 -0
  86. package/dist/src/crypto-kit/keyring.d.ts +52 -0
  87. package/dist/src/crypto-kit/keyring.d.ts.map +1 -0
  88. package/dist/src/crypto-kit/keyring.js +36 -0
  89. package/dist/src/crypto-kit/keyring.js.map +1 -0
  90. package/dist/src/crypto-kit/kms.d.ts +18 -0
  91. package/dist/src/crypto-kit/kms.d.ts.map +1 -0
  92. package/dist/src/crypto-kit/kms.js +29 -0
  93. package/dist/src/crypto-kit/kms.js.map +1 -0
  94. package/dist/src/crypto-kit/seal.d.ts +39 -0
  95. package/dist/src/crypto-kit/seal.d.ts.map +1 -0
  96. package/dist/src/crypto-kit/seal.js +159 -0
  97. package/dist/src/crypto-kit/seal.js.map +1 -0
  98. package/dist/src/dashboard/access_denied_page.d.ts +100 -0
  99. package/dist/src/dashboard/access_denied_page.d.ts.map +1 -0
  100. package/dist/src/dashboard/access_denied_page.js +262 -0
  101. package/dist/src/dashboard/access_denied_page.js.map +1 -0
  102. package/dist/src/dashboard/actor.d.ts +14 -0
  103. package/dist/src/dashboard/actor.d.ts.map +1 -0
  104. package/dist/src/dashboard/actor.js +60 -0
  105. package/dist/src/dashboard/actor.js.map +1 -0
  106. package/dist/src/dashboard/console.d.ts +71 -0
  107. package/dist/src/dashboard/console.d.ts.map +1 -0
  108. package/dist/src/dashboard/console.js +456 -0
  109. package/dist/src/dashboard/console.js.map +1 -0
  110. package/dist/src/dashboard/console_authorize.d.ts +91 -0
  111. package/dist/src/dashboard/console_authorize.d.ts.map +1 -0
  112. package/dist/src/dashboard/console_authorize.js +154 -0
  113. package/dist/src/dashboard/console_authorize.js.map +1 -0
  114. package/dist/src/dashboard/console_shell.d.ts +49 -0
  115. package/dist/src/dashboard/console_shell.d.ts.map +1 -0
  116. package/dist/src/dashboard/console_shell.js +183 -0
  117. package/dist/src/dashboard/console_shell.js.map +1 -0
  118. package/dist/src/dashboard/console_switcher.d.ts +92 -0
  119. package/dist/src/dashboard/console_switcher.d.ts.map +1 -0
  120. package/dist/src/dashboard/console_switcher.js +188 -0
  121. package/dist/src/dashboard/console_switcher.js.map +1 -0
  122. package/dist/src/dashboard/define_config.d.ts +54 -0
  123. package/dist/src/dashboard/define_config.d.ts.map +1 -0
  124. package/dist/src/dashboard/define_config.js +29 -0
  125. package/dist/src/dashboard/define_config.js.map +1 -0
  126. package/dist/src/dashboard/spa.d.ts +42 -0
  127. package/dist/src/dashboard/spa.d.ts.map +1 -0
  128. package/dist/src/dashboard/spa.js +51 -0
  129. package/dist/src/dashboard/spa.js.map +1 -0
  130. package/dist/src/define_config.d.ts +162 -0
  131. package/dist/src/define_config.d.ts.map +1 -0
  132. package/dist/src/define_config.js +53 -0
  133. package/dist/src/define_config.js.map +1 -0
  134. package/dist/src/dev_tools.d.ts +74 -0
  135. package/dist/src/dev_tools.d.ts.map +1 -0
  136. package/dist/src/dev_tools.js +414 -0
  137. package/dist/src/dev_tools.js.map +1 -0
  138. package/dist/src/diagnostics.d.ts +87 -0
  139. package/dist/src/diagnostics.d.ts.map +1 -0
  140. package/dist/src/diagnostics.js +35 -0
  141. package/dist/src/diagnostics.js.map +1 -0
  142. package/dist/src/doctor/agora_doctor.d.ts +116 -0
  143. package/dist/src/doctor/agora_doctor.d.ts.map +1 -0
  144. package/dist/src/doctor/agora_doctor.js +685 -0
  145. package/dist/src/doctor/agora_doctor.js.map +1 -0
  146. package/dist/src/doctor/checks.d.ts +8 -0
  147. package/dist/src/doctor/checks.d.ts.map +1 -0
  148. package/dist/src/doctor/checks.js +352 -0
  149. package/dist/src/doctor/checks.js.map +1 -0
  150. package/dist/src/doctor/index.d.ts +3 -0
  151. package/dist/src/doctor/index.d.ts.map +1 -0
  152. package/dist/src/doctor/index.js +3 -0
  153. package/dist/src/doctor/index.js.map +1 -0
  154. package/dist/src/env_file.d.ts +24 -0
  155. package/dist/src/env_file.d.ts.map +1 -0
  156. package/dist/src/env_file.js +74 -0
  157. package/dist/src/env_file.js.map +1 -0
  158. package/dist/src/http/control_plane.d.ts +93 -0
  159. package/dist/src/http/control_plane.d.ts.map +1 -0
  160. package/dist/src/http/control_plane.js +406 -0
  161. package/dist/src/http/control_plane.js.map +1 -0
  162. package/dist/src/http/list.d.ts +27 -0
  163. package/dist/src/http/list.d.ts.map +1 -0
  164. package/dist/src/http/list.js +75 -0
  165. package/dist/src/http/list.js.map +1 -0
  166. package/dist/src/index.d.ts +22 -0
  167. package/dist/src/index.d.ts.map +1 -0
  168. package/dist/src/index.js +21 -0
  169. package/dist/src/index.js.map +1 -0
  170. package/dist/src/runtime.d.ts +31 -0
  171. package/dist/src/runtime.d.ts.map +1 -0
  172. package/dist/src/runtime.js +2 -0
  173. package/dist/src/runtime.js.map +1 -0
  174. package/dist/src/services/accessor.d.ts +6 -0
  175. package/dist/src/services/accessor.d.ts.map +1 -0
  176. package/dist/src/services/accessor.js +15 -0
  177. package/dist/src/services/accessor.js.map +1 -0
  178. package/dist/src/sql.d.ts +40 -0
  179. package/dist/src/sql.d.ts.map +1 -0
  180. package/dist/src/sql.js +97 -0
  181. package/dist/src/sql.js.map +1 -0
  182. package/dist/src/store/lucid_store.d.ts +62 -0
  183. package/dist/src/store/lucid_store.d.ts.map +1 -0
  184. package/dist/src/store/lucid_store.js +393 -0
  185. package/dist/src/store/lucid_store.js.map +1 -0
  186. package/dist/src/store/memory_store.d.ts +47 -0
  187. package/dist/src/store/memory_store.d.ts.map +1 -0
  188. package/dist/src/store/memory_store.js +184 -0
  189. package/dist/src/store/memory_store.js.map +1 -0
  190. package/dist/src/store/schema.d.ts +18 -0
  191. package/dist/src/store/schema.d.ts.map +1 -0
  192. package/dist/src/store/schema.js +74 -0
  193. package/dist/src/store/schema.js.map +1 -0
  194. package/dist/src/store/store.d.ts +160 -0
  195. package/dist/src/store/store.d.ts.map +1 -0
  196. package/dist/src/store/store.js +254 -0
  197. package/dist/src/store/store.js.map +1 -0
  198. package/dist/src/telescope/dashboard.d.ts +16 -0
  199. package/dist/src/telescope/dashboard.d.ts.map +1 -0
  200. package/dist/src/telescope/dashboard.js +129 -0
  201. package/dist/src/telescope/dashboard.js.map +1 -0
  202. package/dist/src/telescope/data-providers.d.ts +19 -0
  203. package/dist/src/telescope/data-providers.d.ts.map +1 -0
  204. package/dist/src/telescope/data-providers.js +266 -0
  205. package/dist/src/telescope/data-providers.js.map +1 -0
  206. package/dist/src/telescope/extension.d.ts +23 -0
  207. package/dist/src/telescope/extension.d.ts.map +1 -0
  208. package/dist/src/telescope/extension.js +36 -0
  209. package/dist/src/telescope/extension.js.map +1 -0
  210. package/dist/src/telescope/index.d.ts +6 -0
  211. package/dist/src/telescope/index.d.ts.map +1 -0
  212. package/dist/src/telescope/index.js +5 -0
  213. package/dist/src/telescope/index.js.map +1 -0
  214. package/dist/src/telescope/register.d.ts +17 -0
  215. package/dist/src/telescope/register.d.ts.map +1 -0
  216. package/dist/src/telescope/register.js +28 -0
  217. package/dist/src/telescope/register.js.map +1 -0
  218. package/dist/src/telescope/telescope-sdk.d.ts +116 -0
  219. package/dist/src/telescope/telescope-sdk.d.ts.map +1 -0
  220. package/dist/src/telescope/telescope-sdk.js +8 -0
  221. package/dist/src/telescope/telescope-sdk.js.map +1 -0
  222. package/dist/src/testing/index.d.ts +22 -0
  223. package/dist/src/testing/index.d.ts.map +1 -0
  224. package/dist/src/testing/index.js +35 -0
  225. package/dist/src/testing/index.js.map +1 -0
  226. package/dist/src/topology/tenant_client.d.ts +178 -0
  227. package/dist/src/topology/tenant_client.d.ts.map +1 -0
  228. package/dist/src/topology/tenant_client.js +642 -0
  229. package/dist/src/topology/tenant_client.js.map +1 -0
  230. package/dist/src/topology/tenant_keyring.d.ts +65 -0
  231. package/dist/src/topology/tenant_keyring.d.ts.map +1 -0
  232. package/dist/src/topology/tenant_keyring.js +150 -0
  233. package/dist/src/topology/tenant_keyring.js.map +1 -0
  234. package/dist/src/topology/token.d.ts +9 -0
  235. package/dist/src/topology/token.d.ts.map +1 -0
  236. package/dist/src/topology/token.js +10 -0
  237. package/dist/src/topology/token.js.map +1 -0
  238. package/dist/src/topology/verify.d.ts +79 -0
  239. package/dist/src/topology/verify.d.ts.map +1 -0
  240. package/dist/src/topology/verify.js +131 -0
  241. package/dist/src/topology/verify.js.map +1 -0
  242. package/dist/stubs/config/config.stub +23 -0
  243. package/dist/stubs/database/migrations/create_config_tables.stub +31 -0
  244. package/dist/stubs/main.ts +6 -0
  245. package/package.json +126 -3
@@ -0,0 +1,116 @@
1
+ /**
2
+ * A local, structural mirror of the `@adonis-agora/telescope` extension SDK contract. This package
3
+ * never imports `@adonis-agora/telescope` (it is an optional peer in another repo); the exported
4
+ * extension object satisfies its `TelescopeExtension` structurally. Keep this in lockstep with
5
+ * `@adonis-agora/telescope`'s `extension/types.ts` (the same shape durable/media/payments declare).
6
+ */
7
+ /** The slice of a telescope entry the data providers read. */
8
+ export interface TelescopeEntryLike {
9
+ content?: unknown;
10
+ tag?: string;
11
+ createdAt?: Date | string;
12
+ }
13
+ /** The slice of the telescope store the data providers read (a subset of `TelescopeStore`). */
14
+ export interface TelescopeStoreLike {
15
+ list(query?: {
16
+ type?: string;
17
+ tag?: string;
18
+ limit?: number;
19
+ }): Promise<TelescopeEntryLike[]>;
20
+ }
21
+ /** The slice of the AdonisJS container an extension uses to resolve host services. */
22
+ export interface ContainerLike {
23
+ make<T>(token: unknown): Promise<T>;
24
+ }
25
+ /** Read-only context handed to every extension hook. */
26
+ export interface ExtensionContext {
27
+ readonly store: TelescopeStoreLike;
28
+ readonly container: ContainerLike;
29
+ readonly config: unknown;
30
+ }
31
+ export interface PanelThresholds {
32
+ warn: number;
33
+ bad: number;
34
+ direction: 'up-bad' | 'down-bad';
35
+ }
36
+ export interface DashboardSection {
37
+ title?: string;
38
+ cols?: 2 | 3 | 4;
39
+ panels: Panel[];
40
+ }
41
+ export interface DashboardSpec {
42
+ id: string;
43
+ label: string;
44
+ navGroup?: string;
45
+ panels: Panel[];
46
+ sections?: DashboardSection[];
47
+ }
48
+ export interface DataBinding {
49
+ provider: string;
50
+ query?: Record<string, unknown>;
51
+ }
52
+ export interface LinkSpec {
53
+ href: string;
54
+ external?: boolean;
55
+ }
56
+ export interface Column {
57
+ key: string;
58
+ label: string;
59
+ link?: LinkSpec;
60
+ }
61
+ export type Panel = {
62
+ kind: 'stat';
63
+ title: string;
64
+ data: DataBinding;
65
+ format?: 'number' | 'percent' | 'duration' | 'rate';
66
+ accent?: string;
67
+ spark?: boolean;
68
+ thresholds?: PanelThresholds;
69
+ } | {
70
+ kind: 'timeseries';
71
+ title: string;
72
+ data: DataBinding;
73
+ series: string[];
74
+ style?: 'area' | 'stacked';
75
+ } | {
76
+ kind: 'topN';
77
+ title: string;
78
+ data: DataBinding;
79
+ limit?: number;
80
+ } | {
81
+ kind: 'table';
82
+ title: string;
83
+ data: DataBinding;
84
+ columns: Column[];
85
+ /** `{ rows, total, page, size }` mode; telescope passes `query.page`/`query.size`. */
86
+ paged?: boolean;
87
+ } | {
88
+ kind: 'distribution';
89
+ title: string;
90
+ data: DataBinding;
91
+ markers?: Array<'p50' | 'p95' | 'p99'>;
92
+ format?: 'duration' | 'number';
93
+ } | {
94
+ kind: 'gauge';
95
+ title: string;
96
+ data: DataBinding;
97
+ min?: number;
98
+ max?: number;
99
+ format?: 'number' | 'percent' | 'duration' | 'rate';
100
+ thresholds?: PanelThresholds;
101
+ } | {
102
+ kind: 'breakdown';
103
+ title: string;
104
+ data: DataBinding;
105
+ style?: 'donut' | 'bar';
106
+ };
107
+ export interface DataProvider {
108
+ name: string;
109
+ resolve(query: Record<string, unknown> | undefined, ctx: ExtensionContext): Promise<unknown>;
110
+ }
111
+ export interface TelescopeExtension {
112
+ name: string;
113
+ dashboards?(ctx: ExtensionContext): DashboardSpec[];
114
+ dataProviders?(ctx: ExtensionContext): DataProvider[];
115
+ }
116
+ //# sourceMappingURL=telescope-sdk.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"telescope-sdk.d.ts","sourceRoot":"","sources":["../../../src/telescope/telescope-sdk.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,8DAA8D;AAC9D,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;CAC3B;AAED,+FAA+F;AAC/F,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,KAAK,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC;CAC9F;AAED,sFAAsF;AACtF,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;CACrC;AAED,wDAAwD;AACxD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,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W,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EAAE,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC9F;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,CAAC,GAAG,EAAE,gBAAgB,GAAG,aAAa,EAAE,CAAC;IACpD,aAAa,CAAC,CAAC,GAAG,EAAE,gBAAgB,GAAG,YAAY,EAAE,CAAC;CACvD"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * A local, structural mirror of the `@adonis-agora/telescope` extension SDK contract. This package
3
+ * never imports `@adonis-agora/telescope` (it is an optional peer in another repo); the exported
4
+ * extension object satisfies its `TelescopeExtension` structurally. Keep this in lockstep with
5
+ * `@adonis-agora/telescope`'s `extension/types.ts` (the same shape durable/media/payments declare).
6
+ */
7
+ export {};
8
+ //# sourceMappingURL=telescope-sdk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"telescope-sdk.js","sourceRoot":"","sources":["../../../src/telescope/telescope-sdk.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Test helpers for apps and for this package: an in-memory control plane you can write to with the
3
+ * same store the real one uses, plus a seeded document.
4
+ */
5
+ import { type ConfigEntryInput, type ConfigScope, type ConfigValue } from '@adonis-agora/config-core';
6
+ import { type SecretCodec } from '../crypto/secrets.js';
7
+ import { MemoryStore } from '../store/memory_store.js';
8
+ export { LucidStore } from '../store/lucid_store.js';
9
+ export { MemoryStore } from '../store/memory_store.js';
10
+ export interface MemoryConfigOptions {
11
+ /** The key secrets are encrypted with. Default: a fixed test key. */
12
+ secretsKey?: string | false;
13
+ }
14
+ /** A crypto-kit codec with the default `app` key, for tests that do not care about rotation. */
15
+ export declare function testSecretCodec(appKey?: string): SecretCodec;
16
+ /** A memory store, with secrets sealed exactly like the database store seals them. */
17
+ export declare function memoryConfig(options?: MemoryConfigOptions): MemoryStore;
18
+ /** Writes entries into a scope, as a tenant's operator would (actor `test`). */
19
+ export declare function seedConfig(store: MemoryStore, scope: ConfigScope, entries: Array<ConfigEntryInput | [string, ConfigValue]>): Promise<void>;
20
+ /** The scope every test starts from. */
21
+ export declare const testScope: ConfigScope;
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,WAAW,EACjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAqC,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC3F,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,MAAM,WAAW,mBAAmB;IAClC,qEAAqE;IACrE,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;CAC7B;AAED,gGAAgG;AAChG,wBAAgB,eAAe,CAAC,MAAM,SAAqC,GAAG,WAAW,CAIxF;AAED,sFAAsF;AACtF,wBAAgB,YAAY,CAAC,OAAO,GAAE,mBAAwB,GAAG,WAAW,CAK3E;AAED,gFAAgF;AAChF,wBAAsB,UAAU,CAC9B,KAAK,EAAE,WAAW,EAClB,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,KAAK,CAAC,gBAAgB,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,GACvD,OAAO,CAAC,IAAI,CAAC,CAKf;AAED,wCAAwC;AACxC,eAAO,MAAM,SAAS,EAAE,WAIvB,CAAC"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Test helpers for apps and for this package: an in-memory control plane you can write to with the
3
+ * same store the real one uses, plus a seeded document.
4
+ */
5
+ import { createHash } from 'node:crypto';
6
+ import { createConfigKeyring, keyringCodec } from '../crypto/secrets.js';
7
+ import { MemoryStore } from '../store/memory_store.js';
8
+ export { LucidStore } from '../store/lucid_store.js';
9
+ export { MemoryStore } from '../store/memory_store.js';
10
+ /** A crypto-kit codec with the default `app` key, for tests that do not care about rotation. */
11
+ export function testSecretCodec(appKey = 'test-secret-key-for-agora-config') {
12
+ // The kit requires a key of 16+ chars; tests pass readable short names, so derive one.
13
+ const secret = appKey.length >= 16 ? appKey : createHash('sha256').update(appKey).digest('hex');
14
+ return keyringCodec(createConfigKeyring({ appKey: secret }));
15
+ }
16
+ /** A memory store, with secrets sealed exactly like the database store seals them. */
17
+ export function memoryConfig(options = {}) {
18
+ if (options.secretsKey === false)
19
+ return new MemoryStore();
20
+ return new MemoryStore({
21
+ secretCodec: testSecretCodec(options.secretsKey ?? 'test-secret-key-for-agora-config'),
22
+ });
23
+ }
24
+ /** Writes entries into a scope, as a tenant's operator would (actor `test`). */
25
+ export async function seedConfig(store, scope, entries) {
26
+ const changes = entries.map((entry) => Array.isArray(entry) ? { key: entry[0], value: entry[1] } : entry);
27
+ await store.write(scope, changes, { actor: 'test', now: new Date().toISOString() });
28
+ }
29
+ /** The scope every test starts from. */
30
+ export const testScope = {
31
+ app: 'shop',
32
+ environment: 'production',
33
+ label: 'main',
34
+ };
35
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAMzC,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAoB,MAAM,sBAAsB,CAAC;AAC3F,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAA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xC,MAAM,CAAC,MAAM,SAAS,GAAgB;IACpC,GAAG,EAAE,MAAM;IACX,WAAW,EAAE,YAAY;IACzB,KAAK,EAAE,MAAM;CACd,CAAC"}
@@ -0,0 +1,178 @@
1
+ import { type ConfigEntryView, type ConfigValue } from '@adonis-agora/config-core';
2
+ import type { TenantKeyring } from './tenant_keyring.js';
3
+ import { type TenantTokenSource } from './token.js';
4
+ /** What changed in one update, split by whether the app may apply it without a restart. */
5
+ export interface ConfigChangeSet {
6
+ version: number;
7
+ fingerprint: string;
8
+ /** Keys applied to the live configuration now. */
9
+ reloadable: string[];
10
+ /** Keys whose new value needs a restart (the live value is NOT changed). */
11
+ restartRequired: string[];
12
+ added: string[];
13
+ removed: string[];
14
+ }
15
+ export interface TenantStatus {
16
+ app: string;
17
+ environment: string;
18
+ label: string;
19
+ /** Where the current values came from. */
20
+ source: 'remote' | 'snapshot' | 'none';
21
+ version: number;
22
+ fingerprint: string;
23
+ loadedAt: Date | null;
24
+ lastError: string | null;
25
+ /** The server is unreachable and the values are the last ones received. */
26
+ stale: boolean;
27
+ streaming: boolean;
28
+ snapshotPath?: string;
29
+ /** `process.env` is overriding remote values for the keys it sets (`tenant.localEnv`). */
30
+ localEnv: boolean;
31
+ /** Sealed-secret state: the app key and how the entries sealed to it stand. */
32
+ keys?: TenantKeyStatus;
33
+ }
34
+ /** How an app's sealed secrets stand: what it holds, and what it could not open. */
35
+ export interface TenantKeyStatus {
36
+ /** The kid new `sealTo` writes use. */
37
+ activeKid: string;
38
+ kids: string[];
39
+ /** Whether the control plane knows this app's public keys (null: never tried). */
40
+ registered: boolean | null;
41
+ /** Entries the server sent sealed to this app (opened or not). */
42
+ sealed: number;
43
+ /** Sealed entries whose private key is missing, or whose AAD no longer matches. */
44
+ unreadable: number;
45
+ /** Sealed entries still using a retired key: the CLI re-seals them to the active one. */
46
+ staleKids: string[];
47
+ /** Why the last registration failed, when it did. */
48
+ error?: string;
49
+ }
50
+ export interface TenantClientOptions {
51
+ /** The control plane's base URL, with its prefix (`https://config.example.com/_config`). */
52
+ url: string;
53
+ /** This app's name (the partition). */
54
+ partition: string;
55
+ token: TenantTokenSource;
56
+ /** Default `production`. */
57
+ environment?: string;
58
+ /** Default `main`. */
59
+ label?: string;
60
+ snapshotPath?: string;
61
+ /**
62
+ * The app's own X25519 keyring. Entries sealed to this app (`sealedTo`) are opened with it before
63
+ * they reach `values()`/`nested()`; the public half is registered with the control plane.
64
+ */
65
+ keys?: TenantKeyring;
66
+ /** Publish `keys` to the control plane on connect. Default `true` when `keys` is set. */
67
+ registerKeys?: boolean;
68
+ stream?: boolean;
69
+ intervalMs?: number;
70
+ /** Throw when the server is unreachable AND no snapshot exists. Default `false`. */
71
+ required?: boolean;
72
+ /** Extra reloadable keys, exact or with a trailing `*` (`db.*`). */
73
+ reloadable?: string[];
74
+ /** Write the non-secret values into `process.env` (only keys that are not already set). */
75
+ env?: boolean;
76
+ /**
77
+ * Let `process.env` win over the remote value of a key that is set there (`db.port` ← `DB_PORT`),
78
+ * coerced to the remote value's type. This is what keeps a Sail worktree on its own ports: sail
79
+ * writes them to `.env.local`, and the config server's `db.port` must not shadow them in dev.
80
+ * The provider turns it on outside production. Default `false`.
81
+ */
82
+ localEnv?: boolean;
83
+ /** Prefix for the local env names (`APP_` → `APP_DB_PORT`). Default none. */
84
+ envPrefix?: string;
85
+ fetch?: typeof fetch;
86
+ logger?: {
87
+ info(message: string): void;
88
+ warn(message: string): void;
89
+ debug?(message: string): void;
90
+ };
91
+ onError?: (error: unknown) => void;
92
+ }
93
+ /** The client a `bootstrapConfig()` call already built and started, for the provider to reuse. */
94
+ export declare function tenantBootstrapKey(options: {
95
+ url: string;
96
+ partition: string;
97
+ environment?: string;
98
+ label?: string;
99
+ }): string;
100
+ export declare function takeTenantBootstrap(key: string): TenantClient | undefined;
101
+ export declare function setTenantBootstrap(key: string, client: TenantClient): void;
102
+ /**
103
+ * A tenant's configuration: fetched from the control plane (conditional GET by ETag), kept fresh by
104
+ * an SSE stream with polling as a fallback, snapshotted to disk, and split into **boot** values and
105
+ * **live** values. A reloadable key's new value is visible immediately; everything else keeps the
106
+ * value the app booted with until it restarts, which the console and `status()` both report.
107
+ */
108
+ export declare class TenantClient {
109
+ #private;
110
+ private readonly options;
111
+ constructor(options: TenantClientOptions);
112
+ get app(): string;
113
+ get environment(): string;
114
+ get label(): string;
115
+ /** The control plane URL this client reads (used by `config:pull`). */
116
+ get url(): string;
117
+ /**
118
+ * Loads the configuration once, from the snapshot when the control plane is unreachable. No
119
+ * timers, no stream: `node ace` commands use this so they never start background work.
120
+ */
121
+ load(): Promise<void>;
122
+ /** Loads the configuration and keeps it fresh (stream + polling). */
123
+ start(): Promise<void>;
124
+ /** The values as the app may use them: reloadable keys from the latest document, the rest from boot. */
125
+ values(): Record<string, ConfigValue>;
126
+ /** The whole current document (reloadable and boot values alike), as nested JSON. */
127
+ nested(): Record<string, ConfigValue>;
128
+ /**
129
+ * The values of the LAST document received, before the boot/reloadable split and without local
130
+ * env overrides. `config:pull` uses this: it wants the server's latest, not what this process
131
+ * applied at boot.
132
+ */
133
+ latestValues(): Record<string, ConfigValue>;
134
+ /** One value. Boot-time keys keep their boot value until the process restarts. */
135
+ get<T = ConfigValue>(key: string, fallback?: T): ConfigValue | T | undefined;
136
+ /** One value as a string, for `process.env`-shaped settings. */
137
+ getString(key: string, fallback?: string): string | undefined;
138
+ has(key: string): boolean;
139
+ /** Every entry of the current document (flags included). */
140
+ entries(): Record<string, ConfigEntryView>;
141
+ /** Whether a key may hot-reload: marked on the control plane, or matched by `tenant.reloadable`. */
142
+ isReloadable(key: string): boolean;
143
+ status(): TenantStatus;
144
+ /** The sealed-secret state of this app (doctor, CLI and status()). */
145
+ keyStatus(): TenantKeyStatus;
146
+ /**
147
+ * Uses a keyring built after this client (the bootstrap phase has no app root). Re-registers and
148
+ * refreshes, so already-received sealed entries are opened.
149
+ */
150
+ useKeys(keys: TenantKeyring): Promise<void>;
151
+ /**
152
+ * Publishes this app's public keys (never the private ones) so the control plane can seal values
153
+ * to it. Best effort: a failure is logged and retried on the next `load()`, never fatal.
154
+ */
155
+ registerKeys(): Promise<boolean>;
156
+ /**
157
+ * Re-seals the entries sealed to a retired key with the active one and sends the ciphertext
158
+ * back. The control plane never opens it: only this app could, and only this app can re-seal it.
159
+ */
160
+ resealSealed(options?: {
161
+ dryRun?: boolean;
162
+ }): Promise<{
163
+ dryRun: boolean;
164
+ scanned: number;
165
+ resealed: number;
166
+ skipped: number;
167
+ version: number;
168
+ }>;
169
+ /** The age of the snapshot file on disk, or null when there is none (used by the doctor). */
170
+ snapshotAgeMs(): Promise<number | null>;
171
+ onChange(listener: (change: ConfigChangeSet) => void): () => void;
172
+ /** Fetches now; returns whether anything changed. Concurrent callers share one request. */
173
+ refresh(): Promise<boolean>;
174
+ stop(): Promise<void>;
175
+ }
176
+ /** A tenant client from the same options, for tests and for the bootstrap entry. */
177
+ export declare function createTenantClient(options: TenantClientOptions): TenantClient;
178
+ //# sourceMappingURL=tenant_client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenant_client.d.ts","sourceRoot":"","sources":["../../../src/topology/tenant_client.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,WAAW,EAMjB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAwC,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE1F,2FAA2F;AAC3F,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,kDAAkD;IAClD,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,4EAA4E;IAC5E,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IA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