@dxos/plugin-assistant 0.8.2-staging.42af850 → 0.8.2-staging.4d6ad0f
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/types/src/stories/Query.stories.d.ts.map +1 -1
- package/dist/types/src/stories/test-data.d.ts +1 -1
- package/dist/types/src/stories/test-data.d.ts.map +1 -1
- package/dist/types/src/stories/testing.d.ts +2 -4
- package/dist/types/src/stories/testing.d.ts.map +1 -1
- package/package.json +68 -68
- package/src/stories/Query.stories.tsx +14 -30
- package/src/stories/test-data.ts +1 -1
- package/src/stories/testing.ts +12 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Query.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Query.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5D,OAAO,KAA4D,MAAM,OAAO,CAAC;AAajF,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAgB7E,OAAO,EAAuB,KAAK,QAAQ,EAAuB,MAAM,sBAAsB,CAAC;AA4B/F,KAAK,IAAI,GAAG,OAAO,GAAG,MAAM,CAAC;AAE7B,KAAK,UAAU,GAAG;IAAE,IAAI,CAAC,EAAE,IAAI,CAAC;IAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAA;CAAE,GAAG,iBAAiB,CAAC;AAEzE,QAAA,MAAM,YAAY,GAAI,0BAA0B,UAAU,
|
|
1
|
+
{"version":3,"file":"Query.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Query.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5D,OAAO,KAA4D,MAAM,OAAO,CAAC;AAajF,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAgB7E,OAAO,EAAuB,KAAK,QAAQ,EAAuB,MAAM,sBAAsB,CAAC;AA4B/F,KAAK,IAAI,GAAG,OAAO,GAAG,MAAM,CAAC;AAE7B,KAAK,UAAU,GAAG;IAAE,IAAI,CAAC,EAAE,IAAI,CAAC;IAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAA;CAAE,GAAG,iBAAiB,CAAC;AAEzE,QAAA,MAAM,YAAY,GAAI,0BAA0B,UAAU,sBAmOzD,CAAC;AAoEF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CA0BnC,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3C,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAQtB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAQvB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAItB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-data.d.ts","sourceRoot":"","sources":["../../../../src/stories/test-data.ts"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,KAAK,EAAE,MAAM,mBAAmB,CAAC;AA2F1D,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"test-data.d.ts","sourceRoot":"","sources":["../../../../src/stories/test-data.ts"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,KAAK,EAAE,MAAM,mBAAmB,CAAC;AA2F1D,eAAO,MAAM,WAAW,GAAI,OAAO,KAAK,KAAG,IAgC1C,CAAC"}
|
|
@@ -2,11 +2,9 @@ import '@dxos-theme';
|
|
|
2
2
|
import { type Schema } from 'effect';
|
|
3
3
|
import { type ConfigProto } from '@dxos/config';
|
|
4
4
|
import { type IndexConfig } from '@dxos/protocols/proto/dxos/echo/indexing';
|
|
5
|
-
|
|
5
|
+
export declare const testPlugins: ({ config, types, indexConfig, }?: {
|
|
6
6
|
config?: ConfigProto;
|
|
7
7
|
types?: Schema.Schema.AnyNoContext[];
|
|
8
8
|
indexConfig?: IndexConfig;
|
|
9
|
-
};
|
|
10
|
-
export declare const testPlugins: ({ config, types, indexConfig }?: TestPluginsOptions) => import("@dxos/app-framework").Plugin[];
|
|
11
|
-
export {};
|
|
9
|
+
}) => import("@dxos/app-framework").Plugin[];
|
|
12
10
|
//# sourceMappingURL=testing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../src/stories/testing.ts"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIrC,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../src/stories/testing.ts"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIrC,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAShD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAI5E,eAAO,MAAM,WAAW,GAAI,kCAIzB;IAAE,MAAM,CAAC,EAAE,WAAW,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC;IAAC,WAAW,CAAC,EAAE,WAAW,CAAA;CAAO,2CAuChG,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-assistant",
|
|
3
|
-
"version": "0.8.2-staging.
|
|
3
|
+
"version": "0.8.2-staging.4d6ad0f",
|
|
4
4
|
"description": "Assistant plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -47,59 +47,59 @@
|
|
|
47
47
|
"jsonpointer": "^5.0.1",
|
|
48
48
|
"lodash.defaultsdeep": "^4.6.1",
|
|
49
49
|
"unified": "^11.0.0",
|
|
50
|
-
"@dxos/ai": "0.8.2-staging.
|
|
51
|
-
"@dxos/artifact": "0.8.2-staging.
|
|
52
|
-
"@dxos/app-framework": "0.8.2-staging.
|
|
53
|
-
"@dxos/assistant": "0.8.2-staging.
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/compute": "0.8.2-staging.
|
|
57
|
-
"@dxos/conductor": "0.8.2-staging.
|
|
58
|
-
"@dxos/config": "0.8.2-staging.
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/echo": "0.8.2-staging.
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/echo-
|
|
63
|
-
"@dxos/echo-protocol": "0.8.2-staging.
|
|
64
|
-
"@dxos/effect": "0.8.2-staging.
|
|
65
|
-
"@dxos/
|
|
66
|
-
"@dxos/
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/invariant": "0.8.2-staging.
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/
|
|
71
|
-
"@dxos/
|
|
72
|
-
"@dxos/
|
|
73
|
-
"@dxos/
|
|
74
|
-
"@dxos/
|
|
75
|
-
"@dxos/plugin-
|
|
76
|
-
"@dxos/plugin-
|
|
77
|
-
"@dxos/plugin-
|
|
78
|
-
"@dxos/plugin-
|
|
79
|
-
"@dxos/plugin-
|
|
80
|
-
"@dxos/plugin-
|
|
81
|
-
"@dxos/plugin-sketch": "0.8.2-staging.
|
|
82
|
-
"@dxos/plugin-
|
|
83
|
-
"@dxos/plugin-
|
|
84
|
-
"@dxos/plugin-
|
|
85
|
-
"@dxos/plugin-
|
|
86
|
-
"@dxos/plugin-
|
|
87
|
-
"@dxos/
|
|
88
|
-
"@dxos/
|
|
89
|
-
"@dxos/react-edge-client": "0.8.2-staging.
|
|
90
|
-
"@dxos/react-ui-canvas-compute": "0.8.2-staging.
|
|
91
|
-
"@dxos/react-ui-
|
|
92
|
-
"@dxos/react-ui-
|
|
93
|
-
"@dxos/react-ui-dnd": "0.8.2-staging.
|
|
94
|
-
"@dxos/react-ui-editor": "0.8.2-staging.
|
|
95
|
-
"@dxos/react-ui-
|
|
96
|
-
"@dxos/react-ui-
|
|
97
|
-
"@dxos/react-ui-
|
|
98
|
-
"@dxos/react-ui-
|
|
99
|
-
"@dxos/react-ui-
|
|
100
|
-
"@dxos/
|
|
101
|
-
"@dxos/
|
|
102
|
-
"@dxos/
|
|
50
|
+
"@dxos/ai": "0.8.2-staging.4d6ad0f",
|
|
51
|
+
"@dxos/artifact": "0.8.2-staging.4d6ad0f",
|
|
52
|
+
"@dxos/app-framework": "0.8.2-staging.4d6ad0f",
|
|
53
|
+
"@dxos/assistant": "0.8.2-staging.4d6ad0f",
|
|
54
|
+
"@dxos/client": "0.8.2-staging.4d6ad0f",
|
|
55
|
+
"@dxos/async": "0.8.2-staging.4d6ad0f",
|
|
56
|
+
"@dxos/compute": "0.8.2-staging.4d6ad0f",
|
|
57
|
+
"@dxos/conductor": "0.8.2-staging.4d6ad0f",
|
|
58
|
+
"@dxos/config": "0.8.2-staging.4d6ad0f",
|
|
59
|
+
"@dxos/debug": "0.8.2-staging.4d6ad0f",
|
|
60
|
+
"@dxos/echo": "0.8.2-staging.4d6ad0f",
|
|
61
|
+
"@dxos/context": "0.8.2-staging.4d6ad0f",
|
|
62
|
+
"@dxos/echo-schema": "0.8.2-staging.4d6ad0f",
|
|
63
|
+
"@dxos/echo-protocol": "0.8.2-staging.4d6ad0f",
|
|
64
|
+
"@dxos/effect": "0.8.2-staging.4d6ad0f",
|
|
65
|
+
"@dxos/edge-client": "0.8.2-staging.4d6ad0f",
|
|
66
|
+
"@dxos/functions": "0.8.2-staging.4d6ad0f",
|
|
67
|
+
"@dxos/graph": "0.8.2-staging.4d6ad0f",
|
|
68
|
+
"@dxos/invariant": "0.8.2-staging.4d6ad0f",
|
|
69
|
+
"@dxos/keys": "0.8.2-staging.4d6ad0f",
|
|
70
|
+
"@dxos/local-storage": "0.8.2-staging.4d6ad0f",
|
|
71
|
+
"@dxos/echo-db": "0.8.2-staging.4d6ad0f",
|
|
72
|
+
"@dxos/live-object": "0.8.2-staging.4d6ad0f",
|
|
73
|
+
"@dxos/plugin-client": "0.8.2-staging.4d6ad0f",
|
|
74
|
+
"@dxos/log": "0.8.2-staging.4d6ad0f",
|
|
75
|
+
"@dxos/plugin-explorer": "0.8.2-staging.4d6ad0f",
|
|
76
|
+
"@dxos/plugin-graph": "0.8.2-staging.4d6ad0f",
|
|
77
|
+
"@dxos/plugin-inbox": "0.8.2-staging.4d6ad0f",
|
|
78
|
+
"@dxos/plugin-deck": "0.8.2-staging.4d6ad0f",
|
|
79
|
+
"@dxos/plugin-markdown": "0.8.2-staging.4d6ad0f",
|
|
80
|
+
"@dxos/plugin-preview": "0.8.2-staging.4d6ad0f",
|
|
81
|
+
"@dxos/plugin-sketch": "0.8.2-staging.4d6ad0f",
|
|
82
|
+
"@dxos/plugin-space": "0.8.2-staging.4d6ad0f",
|
|
83
|
+
"@dxos/plugin-stack": "0.8.2-staging.4d6ad0f",
|
|
84
|
+
"@dxos/plugin-script": "0.8.2-staging.4d6ad0f",
|
|
85
|
+
"@dxos/plugin-transcription": "0.8.2-staging.4d6ad0f",
|
|
86
|
+
"@dxos/plugin-wnfs": "0.8.2-staging.4d6ad0f",
|
|
87
|
+
"@dxos/protocols": "0.8.2-staging.4d6ad0f",
|
|
88
|
+
"@dxos/react-client": "0.8.2-staging.4d6ad0f",
|
|
89
|
+
"@dxos/react-edge-client": "0.8.2-staging.4d6ad0f",
|
|
90
|
+
"@dxos/react-ui-canvas-compute": "0.8.2-staging.4d6ad0f",
|
|
91
|
+
"@dxos/react-ui-canvas-editor": "0.8.2-staging.4d6ad0f",
|
|
92
|
+
"@dxos/react-ui-components": "0.8.2-staging.4d6ad0f",
|
|
93
|
+
"@dxos/react-ui-dnd": "0.8.2-staging.4d6ad0f",
|
|
94
|
+
"@dxos/react-ui-editor": "0.8.2-staging.4d6ad0f",
|
|
95
|
+
"@dxos/react-ui-form": "0.8.2-staging.4d6ad0f",
|
|
96
|
+
"@dxos/react-ui-graph": "0.8.2-staging.4d6ad0f",
|
|
97
|
+
"@dxos/react-ui-list": "0.8.2-staging.4d6ad0f",
|
|
98
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.2-staging.4d6ad0f",
|
|
99
|
+
"@dxos/react-ui-sfx": "0.8.2-staging.4d6ad0f",
|
|
100
|
+
"@dxos/schema": "0.8.2-staging.4d6ad0f",
|
|
101
|
+
"@dxos/util": "0.8.2-staging.4d6ad0f",
|
|
102
|
+
"@dxos/react-ui-stack": "0.8.2-staging.4d6ad0f"
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
105
|
"@effect-rx/rx-react": "^0.34.1",
|
|
@@ -112,18 +112,18 @@
|
|
|
112
112
|
"react": "~18.2.0",
|
|
113
113
|
"react-dom": "~18.2.0",
|
|
114
114
|
"vite": "5.4.7",
|
|
115
|
-
"@dxos/artifact-testing": "0.8.2-staging.
|
|
116
|
-
"@dxos/echo-db": "0.8.2-staging.
|
|
117
|
-
"@dxos/plugin-chess": "0.8.2-staging.
|
|
118
|
-
"@dxos/plugin-inbox": "0.8.2-staging.
|
|
119
|
-
"@dxos/plugin-
|
|
120
|
-
"@dxos/
|
|
121
|
-
"@dxos/
|
|
122
|
-
"@dxos/
|
|
123
|
-
"@dxos/
|
|
124
|
-
"@dxos/
|
|
125
|
-
"@dxos/
|
|
126
|
-
"@dxos/
|
|
115
|
+
"@dxos/artifact-testing": "0.8.2-staging.4d6ad0f",
|
|
116
|
+
"@dxos/echo-db": "0.8.2-staging.4d6ad0f",
|
|
117
|
+
"@dxos/plugin-chess": "0.8.2-staging.4d6ad0f",
|
|
118
|
+
"@dxos/plugin-inbox": "0.8.2-staging.4d6ad0f",
|
|
119
|
+
"@dxos/plugin-markdown": "0.8.2-staging.4d6ad0f",
|
|
120
|
+
"@dxos/react-ui": "0.8.2-staging.4d6ad0f",
|
|
121
|
+
"@dxos/plugin-table": "0.8.2-staging.4d6ad0f",
|
|
122
|
+
"@dxos/plugin-map": "0.8.2-staging.4d6ad0f",
|
|
123
|
+
"@dxos/random": "0.8.2-staging.4d6ad0f",
|
|
124
|
+
"@dxos/react-ui-menu": "0.8.2-staging.4d6ad0f",
|
|
125
|
+
"@dxos/react-ui-theme": "0.8.2-staging.4d6ad0f",
|
|
126
|
+
"@dxos/storybook-utils": "0.8.2-staging.4d6ad0f"
|
|
127
127
|
},
|
|
128
128
|
"peerDependencies": {
|
|
129
129
|
"@effect-rx/rx-react": "^0.34.1",
|
|
@@ -131,8 +131,8 @@
|
|
|
131
131
|
"effect": "^3.13.3",
|
|
132
132
|
"react": "~18.2.0",
|
|
133
133
|
"react-dom": "~18.2.0",
|
|
134
|
-
"@dxos/react-ui
|
|
135
|
-
"@dxos/react-ui": "0.8.2-staging.
|
|
134
|
+
"@dxos/react-ui": "0.8.2-staging.4d6ad0f",
|
|
135
|
+
"@dxos/react-ui-theme": "0.8.2-staging.4d6ad0f"
|
|
136
136
|
},
|
|
137
137
|
"publishConfig": {
|
|
138
138
|
"access": "public"
|
|
@@ -200,35 +200,24 @@ const DefaultStory = ({ mode, spec, ...props }: StoryProps) => {
|
|
|
200
200
|
const createObjects = createObjectFactory(space.db, generator);
|
|
201
201
|
await createObjects(spec);
|
|
202
202
|
} else {
|
|
203
|
-
|
|
203
|
+
addTestData(space);
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
// TODO(burdon):
|
|
207
|
-
await space.db.flush({ indexes: true });
|
|
206
|
+
// TODO(burdon): Why is this needed?
|
|
207
|
+
// await space.db.flush({ indexes: true });
|
|
208
208
|
}, [space, generator, spec]);
|
|
209
209
|
|
|
210
|
-
const handleReset = useCallback(
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
log.info('resetting client...');
|
|
215
|
-
await client.reset();
|
|
216
|
-
log.info('client reset');
|
|
217
|
-
return;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
if (space) {
|
|
221
|
-
await space.close();
|
|
222
|
-
}
|
|
210
|
+
const handleReset = useCallback(async () => {
|
|
211
|
+
if (space) {
|
|
212
|
+
await space.close();
|
|
213
|
+
}
|
|
223
214
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
[space, client],
|
|
231
|
-
);
|
|
215
|
+
const newSpace = await client.spaces.create();
|
|
216
|
+
setSpace(newSpace);
|
|
217
|
+
setAst(undefined);
|
|
218
|
+
setFilter(undefined);
|
|
219
|
+
promptRef.current?.setText('');
|
|
220
|
+
}, [space, client]);
|
|
232
221
|
|
|
233
222
|
const handleSubmit = useCallback<NonNullable<PromptBarProps['onSubmit']>>(
|
|
234
223
|
(text) => {
|
|
@@ -275,12 +264,7 @@ const DefaultStory = ({ mode, spec, ...props }: StoryProps) => {
|
|
|
275
264
|
<IconButton icon='ph--arrow-clockwise--regular' iconOnly label='refresh' onClick={handleRefresh} />
|
|
276
265
|
<IconButton icon='ph--sparkle--regular' iconOnly label='research' onClick={handleResearch} />
|
|
277
266
|
<IconButton icon='ph--plus--regular' iconOnly label='generate' onClick={handleGenerate} />
|
|
278
|
-
<IconButton
|
|
279
|
-
icon='ph--trash--regular'
|
|
280
|
-
iconOnly
|
|
281
|
-
label='reset'
|
|
282
|
-
onClick={(event) => handleReset(event.shiftKey)}
|
|
283
|
-
/>
|
|
267
|
+
<IconButton icon='ph--trash--regular' iconOnly label='reset' onClick={handleReset} />
|
|
284
268
|
</Toolbar.Root>
|
|
285
269
|
<ItemList items={objects} />
|
|
286
270
|
<JsonFilter
|
package/src/stories/test-data.ts
CHANGED
|
@@ -93,7 +93,7 @@ const testRelationships: Record<
|
|
|
93
93
|
],
|
|
94
94
|
};
|
|
95
95
|
|
|
96
|
-
export const addTestData =
|
|
96
|
+
export const addTestData = (space: Space): void => {
|
|
97
97
|
const objectMap = new Map<string, Live<any>>();
|
|
98
98
|
|
|
99
99
|
for (const [typename, objects] of Object.entries(testObjects)) {
|
package/src/stories/testing.ts
CHANGED
|
@@ -9,6 +9,7 @@ import defaulstDeep from 'lodash.defaultsdeep';
|
|
|
9
9
|
|
|
10
10
|
import { IntentPlugin, SettingsPlugin } from '@dxos/app-framework';
|
|
11
11
|
import { type ConfigProto } from '@dxos/config';
|
|
12
|
+
import { log } from '@dxos/log';
|
|
12
13
|
import { ChessPlugin } from '@dxos/plugin-chess';
|
|
13
14
|
import { ClientPlugin } from '@dxos/plugin-client';
|
|
14
15
|
import { InboxPlugin } from '@dxos/plugin-inbox';
|
|
@@ -20,13 +21,11 @@ import { type IndexConfig } from '@dxos/protocols/proto/dxos/echo/indexing';
|
|
|
20
21
|
import { Config } from '@dxos/react-client';
|
|
21
22
|
import { DataTypes } from '@dxos/schema';
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
config
|
|
25
|
-
types
|
|
26
|
-
indexConfig
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export const testPlugins = ({ config, types = DataTypes, indexConfig }: TestPluginsOptions = {}) => [
|
|
24
|
+
export const testPlugins = ({
|
|
25
|
+
config,
|
|
26
|
+
types = [],
|
|
27
|
+
indexConfig,
|
|
28
|
+
}: { config?: ConfigProto; types?: Schema.Schema.AnyNoContext[]; indexConfig?: IndexConfig } = {}) => [
|
|
30
29
|
ClientPlugin({
|
|
31
30
|
config: new Config(
|
|
32
31
|
defaulstDeep({}, config, {
|
|
@@ -39,15 +38,19 @@ export const testPlugins = ({ config, types = DataTypes, indexConfig }: TestPlug
|
|
|
39
38
|
},
|
|
40
39
|
}),
|
|
41
40
|
),
|
|
42
|
-
types,
|
|
41
|
+
types: DataTypes,
|
|
43
42
|
onClientInitialized: async (_, client) => {
|
|
43
|
+
log.info('testPlugins.onClientInitialized', { types });
|
|
44
44
|
if (!client.halo.identity.get()) {
|
|
45
45
|
await client.halo.createIdentity();
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
client.addTypes(types);
|
|
49
|
+
|
|
50
|
+
// TODO(burdon): Not working.
|
|
48
51
|
if (indexConfig) {
|
|
49
52
|
// TODO(burdon): Rename services.services?
|
|
50
|
-
await client.services.services.QueryService!.setConfig(indexConfig);
|
|
53
|
+
// await client.services.services.QueryService!.setConfig(indexConfig);
|
|
51
54
|
}
|
|
52
55
|
},
|
|
53
56
|
}),
|