@livestore/common 0.0.56-dev.1 → 0.0.56-dev.3
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/dist/.tsbuildinfo +1 -1
- package/dist/adapter-types.d.ts +19 -12
- package/dist/adapter-types.d.ts.map +1 -1
- package/dist/adapter-types.js +9 -3
- package/dist/adapter-types.js.map +1 -1
- package/dist/devtools/devtools-bridge.d.ts +1 -1
- package/dist/devtools/devtools-messages.d.ts +60 -49
- package/dist/devtools/devtools-messages.d.ts.map +1 -1
- package/dist/devtools/devtools-messages.js +9 -4
- package/dist/devtools/devtools-messages.js.map +1 -1
- package/dist/devtools/devtools-window-message.d.ts +2 -2
- package/dist/devtools/devtools-window-message.js +4 -4
- package/dist/devtools/index.d.ts +4 -4
- package/dist/devtools/index.js +5 -5
- package/dist/rehydrate-from-mutationlog.d.ts +2 -2
- package/dist/rehydrate-from-mutationlog.d.ts.map +1 -1
- package/dist/rehydrate-from-mutationlog.js +10 -18
- package/dist/rehydrate-from-mutationlog.js.map +1 -1
- package/dist/schema/index.d.ts +3 -3
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js +1 -1
- package/dist/schema/index.js.map +1 -1
- package/dist/schema/mutations.d.ts +1 -1
- package/dist/schema-management/common.d.ts.map +1 -1
- package/dist/schema-management/common.js +4 -1
- package/dist/schema-management/common.js.map +1 -1
- package/dist/schema-management/migrations.d.ts.map +1 -1
- package/dist/schema-management/migrations.js +2 -5
- package/dist/schema-management/migrations.js.map +1 -1
- package/package.json +3 -3
- package/src/adapter-types.ts +21 -13
- package/src/devtools/devtools-bridge.ts +1 -1
- package/src/devtools/devtools-messages.ts +9 -4
- package/src/devtools/devtools-window-message.ts +4 -4
- package/src/devtools/index.ts +5 -5
- package/src/rehydrate-from-mutationlog.ts +15 -24
- package/src/schema/index.ts +4 -4
- package/src/schema-management/common.ts +5 -1
- package/src/schema-management/migrations.ts +3 -8
package/dist/adapter-types.d.ts
CHANGED
|
@@ -4,7 +4,9 @@ import type * as Devtools from './devtools/index.js';
|
|
|
4
4
|
import type { LiveStoreSchema, MutationEvent } from './schema/index.js';
|
|
5
5
|
import type { PreparedBindValues } from './util.js';
|
|
6
6
|
export interface PreparedStatement {
|
|
7
|
-
execute(bindValues: PreparedBindValues | undefined
|
|
7
|
+
execute(bindValues: PreparedBindValues | undefined, options?: {
|
|
8
|
+
onRowsChanged?: (rowsChanged: number) => void;
|
|
9
|
+
}): void;
|
|
8
10
|
select<T>(bindValues: PreparedBindValues | undefined): ReadonlyArray<T>;
|
|
9
11
|
finalize(): void;
|
|
10
12
|
}
|
|
@@ -17,7 +19,9 @@ export type StoreAdapter = {
|
|
|
17
19
|
export type SynchronousDatabase = {
|
|
18
20
|
_tag: 'SynchronousDatabase';
|
|
19
21
|
prepare(queryStr: string): PreparedStatement;
|
|
20
|
-
execute(queryStr: string, bindValues: PreparedBindValues | undefined
|
|
22
|
+
execute(queryStr: string, bindValues: PreparedBindValues | undefined, options?: {
|
|
23
|
+
onRowsChanged?: (rowsChanged: number) => void;
|
|
24
|
+
}): void;
|
|
21
25
|
export(): Uint8Array;
|
|
22
26
|
};
|
|
23
27
|
export type ResetMode = 'all-data' | 'only-app-db';
|
|
@@ -60,7 +64,7 @@ export type BootStatus = typeof BootStatus.Type;
|
|
|
60
64
|
export type Coordinator = {
|
|
61
65
|
devtools: {
|
|
62
66
|
enabled: boolean;
|
|
63
|
-
|
|
67
|
+
appHostId: string;
|
|
64
68
|
};
|
|
65
69
|
lockStatus: SubscriptionRef.SubscriptionRef<LockStatus>;
|
|
66
70
|
syncMutations: Stream.Stream<MutationEvent.AnyEncoded, UnexpectedError>;
|
|
@@ -68,16 +72,10 @@ export type Coordinator = {
|
|
|
68
72
|
mutate(mutationEventEncoded: MutationEvent.Any, options: {
|
|
69
73
|
persisted: boolean;
|
|
70
74
|
}): Effect.Effect<void, UnexpectedError>;
|
|
71
|
-
dangerouslyReset(mode: ResetMode): Effect.Effect<void, UnexpectedError>;
|
|
72
75
|
export: Effect.Effect<Uint8Array | undefined, UnexpectedError>;
|
|
73
|
-
/**
|
|
74
|
-
* This is different from `export` since in `getInitialSnapshot` is usually the place for migrations etc to happen
|
|
75
|
-
*/
|
|
76
|
-
getInitialSnapshot: Effect.Effect<Uint8Array, UnexpectedError>;
|
|
77
76
|
getMutationLogData: Effect.Effect<Uint8Array, UnexpectedError>;
|
|
78
77
|
networkStatus: SubscriptionRef.SubscriptionRef<NetworkStatus>;
|
|
79
78
|
};
|
|
80
|
-
export type GetRowsChangedCount = () => number;
|
|
81
79
|
export type LockStatus = 'has-lock' | 'no-lock';
|
|
82
80
|
export type BootDb = {
|
|
83
81
|
_tag: 'BootDb';
|
|
@@ -97,13 +95,22 @@ export declare class UnexpectedError extends UnexpectedError_base {
|
|
|
97
95
|
static mapToUnexpectedError: <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, UnexpectedError, R>;
|
|
98
96
|
static mapToUnexpectedErrorStream: <A, E, R>(stream: Stream.Stream<A, E, R>) => Stream.Stream<A, UnexpectedError, R>;
|
|
99
97
|
}
|
|
98
|
+
declare const IntentionalShutdownCause_base: Schema.TaggedErrorClass<IntentionalShutdownCause, "LiveStore.IntentionalShutdownCause", {
|
|
99
|
+
readonly _tag: Schema.tag<"LiveStore.IntentionalShutdownCause">;
|
|
100
|
+
} & {
|
|
101
|
+
reason: Schema.Literal<["devtools-reset", "devtools-import"]>;
|
|
102
|
+
}>;
|
|
103
|
+
export declare class IntentionalShutdownCause extends IntentionalShutdownCause_base {
|
|
104
|
+
}
|
|
100
105
|
declare const SqliteError_base: Schema.TaggedErrorClass<SqliteError, "LiveStore.SqliteError", {
|
|
101
106
|
readonly _tag: Schema.tag<"LiveStore.SqliteError">;
|
|
102
107
|
} & {
|
|
103
|
-
|
|
104
|
-
|
|
108
|
+
query: Schema.optional<Schema.Struct<{
|
|
109
|
+
sql: typeof Schema.String;
|
|
110
|
+
bindValues: Schema.Union<[Schema.Record$<typeof Schema.String, typeof Schema.Any>, Schema.Array$<typeof Schema.Any>]>;
|
|
111
|
+
}>>;
|
|
105
112
|
/** The SQLite result code */
|
|
106
|
-
code: typeof Schema.Number
|
|
113
|
+
code: Schema.optional<typeof Schema.Number>;
|
|
107
114
|
/** The original SQLite3 error */
|
|
108
115
|
cause: Schema.Defect;
|
|
109
116
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter-types.d.ts","sourceRoot":"","sources":["../src/adapter-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAC/F,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAEhE,OAAO,KAAK,KAAK,QAAQ,MAAM,qBAAqB,CAAA;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAEnD,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,UAAU,EAAE,kBAAkB,GAAG,SAAS,GAAG,
|
|
1
|
+
{"version":3,"file":"adapter-types.d.ts","sourceRoot":"","sources":["../src/adapter-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAC/F,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAEhE,OAAO,KAAK,KAAK,QAAQ,MAAM,qBAAqB,CAAA;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAEnD,M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B,CAAC,OAAO,SAAS,eAAe,GAAG,eAAe,IAAI;IAC/F,QAAQ,EAAE,mBAAmB,CAAA;IAC7B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,WAAW,CAAC,MAAM,OAAO,CAAC,qBAAqB,CAAC,GAAG,MAAM,CAAC,CAAA;IAC7E,KAAK,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAA;IAC/B,OAAO,CAAC,EAAE;QACR,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAA;KACnD,CAAA;CACF,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,UAAU,CACtD,QAAQ,CAAC,qBAAqB,EAC9B,QAAQ,CAAC,uBAAuB,CACjC,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,CACnC,oBAAoB,EAAE,oBAAoB,KACvC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,KAAK,CAAC,KAAK,CAAC,CAAA;AAEtD,MAAM,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE;IACvC,MAAM,EAAE,eAAe,CAAA;IACvB,eAAe,EAAE,OAAO,CAAA;IACxB,eAAe,EAAE,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,CAAA;IACxC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IAC1D,sBAAsB,EAAE,sBAAsB,CAAA;CAC/C,KAAK,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,eAAe,EAAE,KAAK,CAAC,KAAK,CAAC,CAAA"}
|
package/dist/adapter-types.js
CHANGED
|
@@ -16,11 +16,17 @@ export class UnexpectedError extends Schema.TaggedError()('LiveStore.UnexpectedE
|
|
|
16
16
|
static mapToUnexpectedError = (effect) => effect.pipe(Effect.tapCauseLogPretty, Effect.mapError((cause) => (Schema.is(UnexpectedError)(cause) ? cause : new UnexpectedError({ cause }))), Effect.catchAllDefect((cause) => new UnexpectedError({ cause })));
|
|
17
17
|
static mapToUnexpectedErrorStream = (stream) => stream.pipe(Stream.mapError((cause) => (Schema.is(UnexpectedError)(cause) ? cause : new UnexpectedError({ cause }))));
|
|
18
18
|
}
|
|
19
|
+
export class IntentionalShutdownCause extends Schema.TaggedError()('LiveStore.IntentionalShutdownCause', {
|
|
20
|
+
reason: Schema.Literal('devtools-reset', 'devtools-import'),
|
|
21
|
+
}) {
|
|
22
|
+
}
|
|
19
23
|
export class SqliteError extends Schema.TaggedError()('LiveStore.SqliteError', {
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
query: Schema.optional(Schema.Struct({
|
|
25
|
+
sql: Schema.String,
|
|
26
|
+
bindValues: Schema.Union(Schema.Record({ key: Schema.String, value: Schema.Any }), Schema.Array(Schema.Any)),
|
|
27
|
+
})),
|
|
22
28
|
/** The SQLite result code */
|
|
23
|
-
code: Schema.Number,
|
|
29
|
+
code: Schema.optional(Schema.Number),
|
|
24
30
|
/** The original SQLite3 error */
|
|
25
31
|
cause: Schema.Defect,
|
|
26
32
|
}) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter-types.js","sourceRoot":"","sources":["../src/adapter-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"adapter-types.js","sourceRoot":"","sources":["../src/adapter-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAgChE,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC;IACzC,WAAW,EAAE,MAAM,CAAC,OAAO;IAC3B,WAAW,EAAE,MAAM,CAAC,MAAM;CAC3B,CAAC,CAAA;AAOF,MAAM,CAAC,MAAM,iBAAiB,GAAG,M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AAC,MAAM;CACrB,CAAC;CAAG"}
|
|
@@ -4,7 +4,7 @@ export type PrepareDevtoolsBridge = {
|
|
|
4
4
|
/** Messages coming from the app host (usually responses to requests) */
|
|
5
5
|
responsePubSub: PubSub.PubSub<Devtools.MessageFromAppHostCoordinator | Devtools.MessageFromAppHostStore>;
|
|
6
6
|
sendToAppHost: (msg: Devtools.MessageToAppHostCoordinator | Devtools.MessageToAppHostStore) => Effect.Effect<void>;
|
|
7
|
-
|
|
7
|
+
appHostId: string;
|
|
8
8
|
copyToClipboard: (text: string) => Effect.Effect<void>;
|
|
9
9
|
sendEscapeKey?: Effect.Effect<void>;
|
|
10
10
|
isLeaderTab: boolean;
|
|
@@ -4,7 +4,7 @@ declare const SnapshotReq_base: Schema.Struct<{
|
|
|
4
4
|
} & {
|
|
5
5
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
6
6
|
} & {
|
|
7
|
-
|
|
7
|
+
appHostId: typeof Schema.String;
|
|
8
8
|
} & {
|
|
9
9
|
requestId: typeof Schema.String;
|
|
10
10
|
}>;
|
|
@@ -15,7 +15,7 @@ declare const SnapshotRes_base: Schema.Struct<{
|
|
|
15
15
|
} & {
|
|
16
16
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
17
17
|
} & {
|
|
18
|
-
|
|
18
|
+
appHostId: typeof Schema.String;
|
|
19
19
|
} & {
|
|
20
20
|
requestId: typeof Schema.String;
|
|
21
21
|
} & {
|
|
@@ -28,7 +28,7 @@ declare const LoadDatabaseFileReq_base: Schema.Struct<{
|
|
|
28
28
|
} & {
|
|
29
29
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
30
30
|
} & {
|
|
31
|
-
|
|
31
|
+
appHostId: typeof Schema.String;
|
|
32
32
|
} & {
|
|
33
33
|
requestId: typeof Schema.String;
|
|
34
34
|
} & {
|
|
@@ -41,7 +41,7 @@ declare const LoadDatabaseFileRes_base: Schema.Struct<{
|
|
|
41
41
|
} & {
|
|
42
42
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
43
43
|
} & {
|
|
44
|
-
|
|
44
|
+
appHostId: typeof Schema.String;
|
|
45
45
|
} & {
|
|
46
46
|
requestId: typeof Schema.String;
|
|
47
47
|
} & {
|
|
@@ -54,7 +54,7 @@ declare const DebugInfoReq_base: Schema.Struct<{
|
|
|
54
54
|
} & {
|
|
55
55
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
56
56
|
} & {
|
|
57
|
-
|
|
57
|
+
appHostId: typeof Schema.String;
|
|
58
58
|
} & {
|
|
59
59
|
requestId: typeof Schema.String;
|
|
60
60
|
}>;
|
|
@@ -65,7 +65,7 @@ declare const DebugInfoRes_base: Schema.Struct<{
|
|
|
65
65
|
} & {
|
|
66
66
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
67
67
|
} & {
|
|
68
|
-
|
|
68
|
+
appHostId: typeof Schema.String;
|
|
69
69
|
} & {
|
|
70
70
|
requestId: typeof Schema.String;
|
|
71
71
|
} & {
|
|
@@ -73,38 +73,38 @@ declare const DebugInfoRes_base: Schema.Struct<{
|
|
|
73
73
|
slowQueries: Schema.transform<Schema.Struct<{
|
|
74
74
|
size: typeof Schema.Number;
|
|
75
75
|
items: Schema.Array$<Schema.Schema<{
|
|
76
|
+
readonly queryStr: string;
|
|
76
77
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
77
78
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
78
79
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
79
|
-
readonly queryStr: string;
|
|
80
80
|
readonly durationMs: number;
|
|
81
81
|
readonly rowsCount: number | undefined;
|
|
82
82
|
readonly queriedTables: ReadonlySet<string>;
|
|
83
83
|
readonly startTimePerfNow: number;
|
|
84
84
|
}, {
|
|
85
|
+
readonly queryStr: string;
|
|
85
86
|
readonly bindValues: readonly (string | number | readonly number[] | null)[] | {
|
|
86
87
|
readonly [x: string]: string | number | readonly number[] | null;
|
|
87
88
|
} | undefined;
|
|
88
|
-
readonly queryStr: string;
|
|
89
89
|
readonly durationMs: number;
|
|
90
90
|
readonly rowsCount: number | undefined;
|
|
91
91
|
readonly queriedTables: readonly string[];
|
|
92
92
|
readonly startTimePerfNow: number;
|
|
93
93
|
}, never>>;
|
|
94
94
|
}>, Schema.Schema<import("../bounded-collections.js").BoundArray<{
|
|
95
|
+
readonly queryStr: string;
|
|
95
96
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
96
97
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
97
98
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
98
|
-
readonly queryStr: string;
|
|
99
99
|
readonly durationMs: number;
|
|
100
100
|
readonly rowsCount: number | undefined;
|
|
101
101
|
readonly queriedTables: ReadonlySet<string>;
|
|
102
102
|
readonly startTimePerfNow: number;
|
|
103
103
|
}>, import("../bounded-collections.js").BoundArray<{
|
|
104
|
+
readonly queryStr: string;
|
|
104
105
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
105
106
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
106
107
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
107
|
-
readonly queryStr: string;
|
|
108
108
|
readonly durationMs: number;
|
|
109
109
|
readonly rowsCount: number | undefined;
|
|
110
110
|
readonly queriedTables: ReadonlySet<string>;
|
|
@@ -125,7 +125,7 @@ declare const DebugInfoHistorySubscribe_base: Schema.Struct<{
|
|
|
125
125
|
} & {
|
|
126
126
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
127
127
|
} & {
|
|
128
|
-
|
|
128
|
+
appHostId: typeof Schema.String;
|
|
129
129
|
} & {
|
|
130
130
|
requestId: typeof Schema.String;
|
|
131
131
|
}>;
|
|
@@ -136,7 +136,7 @@ declare const DebugInfoHistoryRes_base: Schema.Struct<{
|
|
|
136
136
|
} & {
|
|
137
137
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
138
138
|
} & {
|
|
139
|
-
|
|
139
|
+
appHostId: typeof Schema.String;
|
|
140
140
|
} & {
|
|
141
141
|
requestId: typeof Schema.String;
|
|
142
142
|
} & {
|
|
@@ -144,38 +144,38 @@ declare const DebugInfoHistoryRes_base: Schema.Struct<{
|
|
|
144
144
|
slowQueries: Schema.transform<Schema.Struct<{
|
|
145
145
|
size: typeof Schema.Number;
|
|
146
146
|
items: Schema.Array$<Schema.Schema<{
|
|
147
|
+
readonly queryStr: string;
|
|
147
148
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
148
149
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
149
150
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
150
|
-
readonly queryStr: string;
|
|
151
151
|
readonly durationMs: number;
|
|
152
152
|
readonly rowsCount: number | undefined;
|
|
153
153
|
readonly queriedTables: ReadonlySet<string>;
|
|
154
154
|
readonly startTimePerfNow: number;
|
|
155
155
|
}, {
|
|
156
|
+
readonly queryStr: string;
|
|
156
157
|
readonly bindValues: readonly (string | number | readonly number[] | null)[] | {
|
|
157
158
|
readonly [x: string]: string | number | readonly number[] | null;
|
|
158
159
|
} | undefined;
|
|
159
|
-
readonly queryStr: string;
|
|
160
160
|
readonly durationMs: number;
|
|
161
161
|
readonly rowsCount: number | undefined;
|
|
162
162
|
readonly queriedTables: readonly string[];
|
|
163
163
|
readonly startTimePerfNow: number;
|
|
164
164
|
}, never>>;
|
|
165
165
|
}>, Schema.Schema<import("../bounded-collections.js").BoundArray<{
|
|
166
|
+
readonly queryStr: string;
|
|
166
167
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
167
168
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
168
169
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
169
|
-
readonly queryStr: string;
|
|
170
170
|
readonly durationMs: number;
|
|
171
171
|
readonly rowsCount: number | undefined;
|
|
172
172
|
readonly queriedTables: ReadonlySet<string>;
|
|
173
173
|
readonly startTimePerfNow: number;
|
|
174
174
|
}>, import("../bounded-collections.js").BoundArray<{
|
|
175
|
+
readonly queryStr: string;
|
|
175
176
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
176
177
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
177
178
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
178
|
-
readonly queryStr: string;
|
|
179
179
|
readonly durationMs: number;
|
|
180
180
|
readonly rowsCount: number | undefined;
|
|
181
181
|
readonly queriedTables: ReadonlySet<string>;
|
|
@@ -196,7 +196,7 @@ declare const DebugInfoHistoryUnsubscribe_base: Schema.Struct<{
|
|
|
196
196
|
} & {
|
|
197
197
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
198
198
|
} & {
|
|
199
|
-
|
|
199
|
+
appHostId: typeof Schema.String;
|
|
200
200
|
} & {
|
|
201
201
|
requestId: typeof Schema.String;
|
|
202
202
|
}>;
|
|
@@ -207,7 +207,7 @@ declare const DebugInfoResetReq_base: Schema.Struct<{
|
|
|
207
207
|
} & {
|
|
208
208
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
209
209
|
} & {
|
|
210
|
-
|
|
210
|
+
appHostId: typeof Schema.String;
|
|
211
211
|
} & {
|
|
212
212
|
requestId: typeof Schema.String;
|
|
213
213
|
}>;
|
|
@@ -218,7 +218,7 @@ declare const DebugInfoResetRes_base: Schema.Struct<{
|
|
|
218
218
|
} & {
|
|
219
219
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
220
220
|
} & {
|
|
221
|
-
|
|
221
|
+
appHostId: typeof Schema.String;
|
|
222
222
|
} & {
|
|
223
223
|
requestId: typeof Schema.String;
|
|
224
224
|
}>;
|
|
@@ -229,7 +229,7 @@ declare const DebugInfoRerunQueryReq_base: Schema.Struct<{
|
|
|
229
229
|
} & {
|
|
230
230
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
231
231
|
} & {
|
|
232
|
-
|
|
232
|
+
appHostId: typeof Schema.String;
|
|
233
233
|
} & {
|
|
234
234
|
requestId: typeof Schema.String;
|
|
235
235
|
} & {
|
|
@@ -244,7 +244,7 @@ declare const DebugInfoRerunQueryRes_base: Schema.Struct<{
|
|
|
244
244
|
} & {
|
|
245
245
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
246
246
|
} & {
|
|
247
|
-
|
|
247
|
+
appHostId: typeof Schema.String;
|
|
248
248
|
} & {
|
|
249
249
|
requestId: typeof Schema.String;
|
|
250
250
|
}>;
|
|
@@ -269,7 +269,7 @@ declare const RunMutationReq_base: Schema.Struct<{
|
|
|
269
269
|
} & {
|
|
270
270
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
271
271
|
} & {
|
|
272
|
-
|
|
272
|
+
appHostId: typeof Schema.String;
|
|
273
273
|
} & {
|
|
274
274
|
requestId: typeof Schema.String;
|
|
275
275
|
} & {
|
|
@@ -287,7 +287,7 @@ declare const RunMutationRes_base: Schema.Struct<{
|
|
|
287
287
|
} & {
|
|
288
288
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
289
289
|
} & {
|
|
290
|
-
|
|
290
|
+
appHostId: typeof Schema.String;
|
|
291
291
|
} & {
|
|
292
292
|
requestId: typeof Schema.String;
|
|
293
293
|
}>;
|
|
@@ -298,7 +298,7 @@ declare const MutationLogReq_base: Schema.Struct<{
|
|
|
298
298
|
} & {
|
|
299
299
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
300
300
|
} & {
|
|
301
|
-
|
|
301
|
+
appHostId: typeof Schema.String;
|
|
302
302
|
} & {
|
|
303
303
|
requestId: typeof Schema.String;
|
|
304
304
|
}>;
|
|
@@ -309,7 +309,7 @@ declare const MutationLogRes_base: Schema.Struct<{
|
|
|
309
309
|
} & {
|
|
310
310
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
311
311
|
} & {
|
|
312
|
-
|
|
312
|
+
appHostId: typeof Schema.String;
|
|
313
313
|
} & {
|
|
314
314
|
requestId: typeof Schema.String;
|
|
315
315
|
} & {
|
|
@@ -322,7 +322,7 @@ declare const ReactivityGraphSubscribe_base: Schema.Struct<{
|
|
|
322
322
|
} & {
|
|
323
323
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
324
324
|
} & {
|
|
325
|
-
|
|
325
|
+
appHostId: typeof Schema.String;
|
|
326
326
|
} & {
|
|
327
327
|
requestId: typeof Schema.String;
|
|
328
328
|
} & {
|
|
@@ -335,7 +335,7 @@ declare const ReactivityGraphUnsubscribe_base: Schema.Struct<{
|
|
|
335
335
|
} & {
|
|
336
336
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
337
337
|
} & {
|
|
338
|
-
|
|
338
|
+
appHostId: typeof Schema.String;
|
|
339
339
|
} & {
|
|
340
340
|
requestId: typeof Schema.String;
|
|
341
341
|
}>;
|
|
@@ -346,7 +346,7 @@ declare const ReactivityGraphRes_base: Schema.Struct<{
|
|
|
346
346
|
} & {
|
|
347
347
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
348
348
|
} & {
|
|
349
|
-
|
|
349
|
+
appHostId: typeof Schema.String;
|
|
350
350
|
} & {
|
|
351
351
|
requestId: typeof Schema.String;
|
|
352
352
|
} & {
|
|
@@ -359,7 +359,7 @@ declare const LiveQueriesSubscribe_base: Schema.Struct<{
|
|
|
359
359
|
} & {
|
|
360
360
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
361
361
|
} & {
|
|
362
|
-
|
|
362
|
+
appHostId: typeof Schema.String;
|
|
363
363
|
} & {
|
|
364
364
|
requestId: typeof Schema.String;
|
|
365
365
|
}>;
|
|
@@ -370,7 +370,7 @@ declare const LiveQueriesUnsubscribe_base: Schema.Struct<{
|
|
|
370
370
|
} & {
|
|
371
371
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
372
372
|
} & {
|
|
373
|
-
|
|
373
|
+
appHostId: typeof Schema.String;
|
|
374
374
|
} & {
|
|
375
375
|
requestId: typeof Schema.String;
|
|
376
376
|
}>;
|
|
@@ -397,7 +397,7 @@ declare const LiveQueriesRes_base: Schema.Struct<{
|
|
|
397
397
|
} & {
|
|
398
398
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
399
399
|
} & {
|
|
400
|
-
|
|
400
|
+
appHostId: typeof Schema.String;
|
|
401
401
|
} & {
|
|
402
402
|
requestId: typeof Schema.String;
|
|
403
403
|
} & {
|
|
@@ -410,7 +410,7 @@ declare const ResetAllDataReq_base: Schema.Struct<{
|
|
|
410
410
|
} & {
|
|
411
411
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
412
412
|
} & {
|
|
413
|
-
|
|
413
|
+
appHostId: typeof Schema.String;
|
|
414
414
|
} & {
|
|
415
415
|
requestId: typeof Schema.String;
|
|
416
416
|
} & {
|
|
@@ -423,7 +423,7 @@ declare const ResetAllDataRes_base: Schema.Struct<{
|
|
|
423
423
|
} & {
|
|
424
424
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
425
425
|
} & {
|
|
426
|
-
|
|
426
|
+
appHostId: typeof Schema.String;
|
|
427
427
|
} & {
|
|
428
428
|
requestId: typeof Schema.String;
|
|
429
429
|
}>;
|
|
@@ -434,23 +434,34 @@ declare const DatabaseFileInfoReq_base: Schema.Struct<{
|
|
|
434
434
|
} & {
|
|
435
435
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
436
436
|
} & {
|
|
437
|
-
|
|
437
|
+
appHostId: typeof Schema.String;
|
|
438
438
|
} & {
|
|
439
439
|
requestId: typeof Schema.String;
|
|
440
440
|
}>;
|
|
441
441
|
export declare class DatabaseFileInfoReq extends DatabaseFileInfoReq_base {
|
|
442
442
|
}
|
|
443
|
+
declare const DatabaseFileInfo_base: Schema.Struct<{
|
|
444
|
+
fileSize: typeof Schema.Number;
|
|
445
|
+
persistenceInfo: Schema.TypeLiteral<{
|
|
446
|
+
fileName: typeof Schema.String;
|
|
447
|
+
}, readonly [{
|
|
448
|
+
readonly key: typeof Schema.String;
|
|
449
|
+
readonly value: typeof Schema.Any;
|
|
450
|
+
}]>;
|
|
451
|
+
}>;
|
|
452
|
+
export declare class DatabaseFileInfo extends DatabaseFileInfo_base {
|
|
453
|
+
}
|
|
443
454
|
declare const DatabaseFileInfoRes_base: Schema.Struct<{
|
|
444
455
|
_tag: Schema.tag<"LSD.DatabaseFileInfoRes">;
|
|
445
456
|
} & {
|
|
446
457
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
447
458
|
} & {
|
|
448
|
-
|
|
459
|
+
appHostId: typeof Schema.String;
|
|
449
460
|
} & {
|
|
450
461
|
requestId: typeof Schema.String;
|
|
451
462
|
} & {
|
|
452
|
-
|
|
453
|
-
|
|
463
|
+
db: typeof DatabaseFileInfo;
|
|
464
|
+
mutationLog: typeof DatabaseFileInfo;
|
|
454
465
|
}>;
|
|
455
466
|
export declare class DatabaseFileInfoRes extends DatabaseFileInfoRes_base {
|
|
456
467
|
}
|
|
@@ -459,7 +470,7 @@ declare const MessagePortForStoreReq_base: Schema.Struct<{
|
|
|
459
470
|
} & {
|
|
460
471
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
461
472
|
} & {
|
|
462
|
-
|
|
473
|
+
appHostId: typeof Schema.String;
|
|
463
474
|
} & {
|
|
464
475
|
requestId: typeof Schema.String;
|
|
465
476
|
}>;
|
|
@@ -470,7 +481,7 @@ declare const MessagePortForStoreRes_base: Schema.Struct<{
|
|
|
470
481
|
} & {
|
|
471
482
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
472
483
|
} & {
|
|
473
|
-
|
|
484
|
+
appHostId: typeof Schema.String;
|
|
474
485
|
} & {
|
|
475
486
|
requestId: typeof Schema.String;
|
|
476
487
|
} & {
|
|
@@ -483,7 +494,7 @@ declare const NetworkStatusSubscribe_base: Schema.Struct<{
|
|
|
483
494
|
} & {
|
|
484
495
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
485
496
|
} & {
|
|
486
|
-
|
|
497
|
+
appHostId: typeof Schema.String;
|
|
487
498
|
} & {
|
|
488
499
|
requestId: typeof Schema.String;
|
|
489
500
|
}>;
|
|
@@ -494,7 +505,7 @@ declare const NetworkStatusUnsubscribe_base: Schema.Struct<{
|
|
|
494
505
|
} & {
|
|
495
506
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
496
507
|
} & {
|
|
497
|
-
|
|
508
|
+
appHostId: typeof Schema.String;
|
|
498
509
|
} & {
|
|
499
510
|
requestId: typeof Schema.String;
|
|
500
511
|
}>;
|
|
@@ -505,7 +516,7 @@ declare const NetworkStatusRes_base: Schema.Struct<{
|
|
|
505
516
|
} & {
|
|
506
517
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
507
518
|
} & {
|
|
508
|
-
|
|
519
|
+
appHostId: typeof Schema.String;
|
|
509
520
|
} & {
|
|
510
521
|
requestId: typeof Schema.String;
|
|
511
522
|
} & {
|
|
@@ -521,7 +532,7 @@ declare const SyncingInfoReq_base: Schema.Struct<{
|
|
|
521
532
|
} & {
|
|
522
533
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
523
534
|
} & {
|
|
524
|
-
|
|
535
|
+
appHostId: typeof Schema.String;
|
|
525
536
|
} & {
|
|
526
537
|
requestId: typeof Schema.String;
|
|
527
538
|
}>;
|
|
@@ -538,7 +549,7 @@ declare const SyncingInfoRes_base: Schema.Struct<{
|
|
|
538
549
|
} & {
|
|
539
550
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
540
551
|
} & {
|
|
541
|
-
|
|
552
|
+
appHostId: typeof Schema.String;
|
|
542
553
|
} & {
|
|
543
554
|
requestId: typeof Schema.String;
|
|
544
555
|
} & {
|
|
@@ -558,7 +569,7 @@ declare const DevtoolsConnected_base: Schema.Struct<{
|
|
|
558
569
|
} & {
|
|
559
570
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
560
571
|
} & {
|
|
561
|
-
|
|
572
|
+
appHostId: typeof Schema.String;
|
|
562
573
|
}>;
|
|
563
574
|
export declare class DevtoolsConnected extends DevtoolsConnected_base {
|
|
564
575
|
}
|
|
@@ -567,7 +578,7 @@ declare const AppHostReady_base: Schema.Struct<{
|
|
|
567
578
|
} & {
|
|
568
579
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
569
580
|
} & {
|
|
570
|
-
|
|
581
|
+
appHostId: typeof Schema.String;
|
|
571
582
|
} & {
|
|
572
583
|
isLeaderTab: typeof Schema.Boolean;
|
|
573
584
|
}>;
|
|
@@ -578,7 +589,7 @@ declare const Disconnect_base: Schema.Struct<{
|
|
|
578
589
|
} & {
|
|
579
590
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
580
591
|
} & {
|
|
581
|
-
|
|
592
|
+
appHostId: typeof Schema.String;
|
|
582
593
|
}>;
|
|
583
594
|
export declare class Disconnect extends Disconnect_base {
|
|
584
595
|
}
|
|
@@ -587,7 +598,7 @@ declare const Ping_base: Schema.Struct<{
|
|
|
587
598
|
} & {
|
|
588
599
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
589
600
|
} & {
|
|
590
|
-
|
|
601
|
+
appHostId: typeof Schema.String;
|
|
591
602
|
} & {
|
|
592
603
|
requestId: typeof Schema.String;
|
|
593
604
|
}>;
|
|
@@ -598,7 +609,7 @@ declare const Pong_base: Schema.Struct<{
|
|
|
598
609
|
} & {
|
|
599
610
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
600
611
|
} & {
|
|
601
|
-
|
|
612
|
+
appHostId: typeof Schema.String;
|
|
602
613
|
} & {
|
|
603
614
|
requestId: typeof Schema.String;
|
|
604
615
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devtools-messages.d.ts","sourceRoot":"","sources":["../../src/devtools/devtools-messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAgB,MAAM,yBAAyB,CAAA;;;;;;;;;;AA8B9D,qBAAa,WAAY,SAAQ,gBAAuC;CAAG;;;;;;;;;;;;AAE3E,qBAAa,WAAY,SAAQ,gBAE/B;CAAG;;;;;;;;;;;;AAEL,qBAAa,mBAAoB,SAAQ,wBAEvC;CAAG;;;;;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AG;;;;;;;;;;AAEL,qBAAa,cAAe,SAAQ,mBAA0C;CAAG;;;;;AAEjF,qBAAa,WAAY,SAAQ,gBAG/B;CAAG;;;;;;;;;;;;AAEL,qBAAa,cAAe,SAAQ,mBAElC;CAAG;;;;;;AAEL,qBAAa,aAAc,SAAQ,kBAAmC;CAAG;;;;;;;;AAEzE,qBAAa,iBAAkB,SAAQ,sBAA8C;CAAG;;;;;;;;;;AAExF,qBAAa,YAAa,SAAQ,iBAEhC;CAAG;;;;;;;;AAEL,qBAAa,UAAW,SAAQ,eAAuC;CAAG;;;;;;;;;;AAE1E,qBAAa,IAAK,SAAQ,SAAgC;CAAG;;;;;;;;;;AAE7D,qBAAa,IAAK,SAAQ,SAAgC;CAAG;AAE7D,eAAO,MAAM,2BAA2B,wWAewB,CAAA;AAEhE,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC,IAAI,CAAA;AAEjF,eAAO,MAAM,qBAAqB,oSAWwB,CAAA;AAE1D,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAA;AAErE,eAAO,MAAM,6BAA6B,gUAcwB,CAAA;AAElE,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAC,IAAI,CAAA;AAErF,eAAO,MAAM,uBAAuB,4KAQwB,CAAA;AAE5D,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,IAAI,CAAA"}
|
|
@@ -5,14 +5,14 @@ import { mutationEventSchemaEncodedAny } from '../schema/mutations.js';
|
|
|
5
5
|
import { PreparedBindValues } from '../util.js';
|
|
6
6
|
import { liveStoreVersion as pkgVersion } from '../version.js';
|
|
7
7
|
const requestId = Schema.String;
|
|
8
|
-
const
|
|
8
|
+
const appHostId = Schema.String;
|
|
9
9
|
const liveStoreVersion = Schema.Literal(pkgVersion);
|
|
10
10
|
const LSDMessage = (tag, fields) => Schema.TaggedStruct(tag, {
|
|
11
11
|
liveStoreVersion,
|
|
12
12
|
...fields,
|
|
13
13
|
}).annotations({ identifier: tag });
|
|
14
14
|
const LSDChannelMessage = (tag, fields) => LSDMessage(tag, {
|
|
15
|
-
|
|
15
|
+
appHostId,
|
|
16
16
|
...fields,
|
|
17
17
|
});
|
|
18
18
|
const LSDReqResMessage = (tag, fields) => LSDChannelMessage(tag, {
|
|
@@ -113,9 +113,14 @@ export class ResetAllDataRes extends LSDReqResMessage('LSD.ResetAllDataRes', {})
|
|
|
113
113
|
}
|
|
114
114
|
export class DatabaseFileInfoReq extends LSDReqResMessage('LSD.DatabaseFileInfoReq', {}) {
|
|
115
115
|
}
|
|
116
|
+
export class DatabaseFileInfo extends Schema.Struct({
|
|
117
|
+
fileSize: Schema.Number,
|
|
118
|
+
persistenceInfo: Schema.Struct({ fileName: Schema.String }, { key: Schema.String, value: Schema.Any }),
|
|
119
|
+
}) {
|
|
120
|
+
}
|
|
116
121
|
export class DatabaseFileInfoRes extends LSDReqResMessage('LSD.DatabaseFileInfoRes', {
|
|
117
|
-
|
|
118
|
-
|
|
122
|
+
db: DatabaseFileInfo,
|
|
123
|
+
mutationLog: DatabaseFileInfo,
|
|
119
124
|
}) {
|
|
120
125
|
}
|
|
121
126
|
export class MessagePortForStoreReq extends LSDReqResMessage('LSD.MessagePortForStoreReq', {}) {
|