coreblow 1.0.0-rc.7 → 1.0.0-rc.8

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coreblow",
3
- "version": "1.0.0-rc.7",
3
+ "version": "1.0.0-rc.8",
4
4
  "description": "CoreBlow — personal AI assistant with multi-channel support",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -0,0 +1,69 @@
1
+ /**
2
+ * Stub for matrix-js-sdk — provides empty exports so that vitest
3
+ * contract tests can load the bundled channel entries without
4
+ * requiring the full matrix-js-sdk implementation.
5
+ */
6
+
7
+ // ── Enums / Constants ────────────────────────────────────────────
8
+ export const EventType = {} as Record<string, string>;
9
+ export const RoomEvent = {} as Record<string, string>;
10
+ export const ClientEvent = {} as Record<string, string>;
11
+ export const MatrixEventEvent = {} as Record<string, string>;
12
+ export const RoomMemberEvent = {} as Record<string, string>;
13
+ export const RoomStateEvent = {} as Record<string, string>;
14
+ export const MsgType = {} as Record<string, string>;
15
+ export const Preset = {} as Record<string, string>;
16
+ export const Visibility = {} as Record<string, string>;
17
+ export const VerificationMethod = {} as Record<string, string>;
18
+ export const Category = {} as Record<string, string>;
19
+ export const CryptoEvent = {} as Record<string, string>;
20
+
21
+ // ── Classes ──────────────────────────────────────────────────────
22
+ export class MatrixClient {
23
+ [k: string]: unknown;
24
+ }
25
+ export class MatrixEvent {
26
+ [k: string]: unknown;
27
+ }
28
+ export class Room {
29
+ [k: string]: unknown;
30
+ }
31
+ export class RoomMember {
32
+ [k: string]: unknown;
33
+ }
34
+ export class MemoryStore {
35
+ [k: string]: unknown;
36
+ }
37
+ export class SyncAccumulator {
38
+ [k: string]: unknown;
39
+ constructor(..._args: unknown[]) {}
40
+ getJSON(): unknown { return {}; }
41
+ accumulate(_syncResponse: unknown): void {}
42
+ }
43
+
44
+ // ── Functions ────────────────────────────────────────────────────
45
+ export function createClient(..._args: unknown[]): MatrixClient {
46
+ return new MatrixClient();
47
+ }
48
+ export function decodeRecoveryKey(_key: string): Uint8Array {
49
+ return new Uint8Array();
50
+ }
51
+
52
+ // ── Logger ───────────────────────────────────────────────────────
53
+ export const logger = {
54
+ info: (..._args: unknown[]) => {},
55
+ warn: (..._args: unknown[]) => {},
56
+ error: (..._args: unknown[]) => {},
57
+ debug: (..._args: unknown[]) => {},
58
+ trace: (..._args: unknown[]) => {},
59
+ setLevel: (_level: unknown) => {},
60
+ };
61
+
62
+ // ── Type stubs ───────────────────────────────────────────────────
63
+ export type ISyncData = unknown;
64
+ export type IRooms = unknown;
65
+ export type ISyncResponse = unknown;
66
+ export type IStoredClientOpts = unknown;
67
+
68
+ // ── Default export ───────────────────────────────────────────────
69
+ export default {};