@dxos/plugin-search 0.8.4-main.3f58842 → 0.8.4-main.b97322e

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": "@dxos/plugin-search",
3
- "version": "0.8.4-main.3f58842",
3
+ "version": "0.8.4-main.b97322e",
4
4
  "description": "Braneframe sketch plugin",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -26,27 +26,27 @@
26
26
  "@preact-signals/safe-react": "^0.9.0",
27
27
  "exa-js": "^1.5.12",
28
28
  "main-thread-scheduling": "^14.1.1",
29
- "@dxos/ai": "0.8.4-main.3f58842",
30
- "@dxos/assistant": "0.8.4-main.3f58842",
31
- "@dxos/app-framework": "0.8.4-main.3f58842",
32
- "@dxos/blueprints": "0.8.4-main.3f58842",
33
- "@dxos/echo": "0.8.4-main.3f58842",
34
- "@dxos/debug": "0.8.4-main.3f58842",
35
- "@dxos/echo-protocol": "0.8.4-main.3f58842",
36
- "@dxos/echo-schema": "0.8.4-main.3f58842",
37
- "@dxos/effect": "0.8.4-main.3f58842",
38
- "@dxos/invariant": "0.8.4-main.3f58842",
39
- "@dxos/log": "0.8.4-main.3f58842",
40
- "@dxos/live-object": "0.8.4-main.3f58842",
41
- "@dxos/plugin-client": "0.8.4-main.3f58842",
42
- "@dxos/plugin-deck": "0.8.4-main.3f58842",
43
- "@dxos/plugin-graph": "0.8.4-main.3f58842",
44
- "@dxos/plugin-space": "0.8.4-main.3f58842",
45
- "@dxos/react-client": "0.8.4-main.3f58842",
46
- "@dxos/react-ui-searchlist": "0.8.4-main.3f58842",
47
- "@dxos/react-ui-stack": "0.8.4-main.3f58842",
48
- "@dxos/schema": "0.8.4-main.3f58842",
49
- "@dxos/util": "0.8.4-main.3f58842"
29
+ "@dxos/ai": "0.8.4-main.b97322e",
30
+ "@dxos/app-framework": "0.8.4-main.b97322e",
31
+ "@dxos/assistant": "0.8.4-main.b97322e",
32
+ "@dxos/debug": "0.8.4-main.b97322e",
33
+ "@dxos/echo": "0.8.4-main.b97322e",
34
+ "@dxos/blueprints": "0.8.4-main.b97322e",
35
+ "@dxos/echo-protocol": "0.8.4-main.b97322e",
36
+ "@dxos/effect": "0.8.4-main.b97322e",
37
+ "@dxos/echo-schema": "0.8.4-main.b97322e",
38
+ "@dxos/invariant": "0.8.4-main.b97322e",
39
+ "@dxos/live-object": "0.8.4-main.b97322e",
40
+ "@dxos/plugin-client": "0.8.4-main.b97322e",
41
+ "@dxos/plugin-graph": "0.8.4-main.b97322e",
42
+ "@dxos/log": "0.8.4-main.b97322e",
43
+ "@dxos/plugin-deck": "0.8.4-main.b97322e",
44
+ "@dxos/react-client": "0.8.4-main.b97322e",
45
+ "@dxos/plugin-space": "0.8.4-main.b97322e",
46
+ "@dxos/react-ui-stack": "0.8.4-main.b97322e",
47
+ "@dxos/schema": "0.8.4-main.b97322e",
48
+ "@dxos/react-ui-searchlist": "0.8.4-main.b97322e",
49
+ "@dxos/util": "0.8.4-main.b97322e"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@effect-rx/rx-react": "0.38.0",
@@ -57,10 +57,10 @@
57
57
  "react": "~18.2.0",
58
58
  "react-dom": "~18.2.0",
59
59
  "vite": "5.4.7",
60
- "@dxos/random": "0.8.4-main.3f58842",
61
- "@dxos/react-ui": "0.8.4-main.3f58842",
62
- "@dxos/react-ui-theme": "0.8.4-main.3f58842",
63
- "@dxos/storybook-utils": "0.8.4-main.3f58842"
60
+ "@dxos/random": "0.8.4-main.b97322e",
61
+ "@dxos/react-ui": "0.8.4-main.b97322e",
62
+ "@dxos/react-ui-theme": "0.8.4-main.b97322e",
63
+ "@dxos/storybook-utils": "0.8.4-main.b97322e"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "@effect-rx/rx-react": "^0.34.1",
@@ -68,8 +68,8 @@
68
68
  "effect": "^3.13.3",
69
69
  "react": "~18.2.0",
70
70
  "react-dom": "~18.2.0",
71
- "@dxos/react-ui": "0.8.4-main.3f58842",
72
- "@dxos/react-ui-theme": "0.8.4-main.3f58842"
71
+ "@dxos/react-ui": "0.8.4-main.b97322e",
72
+ "@dxos/react-ui-theme": "0.8.4-main.b97322e"
73
73
  },
74
74
  "publishConfig": {
75
75
  "access": "public"
@@ -4,32 +4,20 @@
4
4
 
5
5
  import { describe, test } from 'vitest';
6
6
 
7
- import { EdgeAiServiceClient, OllamaAiServiceClient } from '@dxos/ai';
8
- import { AI_SERVICE_ENDPOINT, EXA_API_KEY } from '@dxos/ai/testing';
7
+ import { EXA_API_KEY } from '@dxos/ai/testing';
8
+ import { todo } from '@dxos/debug';
9
9
  import { log } from '@dxos/log';
10
10
  import { Testing } from '@dxos/schema/testing';
11
11
 
12
12
  import { search } from './exa';
13
13
 
14
- const REMOTE_AI = true;
15
-
16
- const AiService = REMOTE_AI
17
- ? new EdgeAiServiceClient({
18
- endpoint: AI_SERVICE_ENDPOINT.REMOTE,
19
- })
20
- : new OllamaAiServiceClient({
21
- overrides: {
22
- model: 'llama3.1:8b',
23
- },
24
- });
25
-
26
14
  describe.skip('Search', () => {
27
15
  describe('Query-based', () => {
28
16
  test.skip('contacts', { timeout: 60_000 }, async () => {
29
17
  const objects = await search({
30
18
  query: 'top executives at google',
31
19
  schema: [Testing.Contact],
32
- AiService,
20
+ AiService: null as any, // TODO: Implement AiService
33
21
  exaApiKey: EXA_API_KEY,
34
22
  });
35
23
 
@@ -40,7 +28,7 @@ describe.skip('Search', () => {
40
28
  const objects = await search({
41
29
  query: 'top executives at google',
42
30
  schema: [Testing.Contact, Testing.Project, Testing.Organization],
43
- AiService,
31
+ AiService: todo(),
44
32
  exaApiKey: EXA_API_KEY,
45
33
  });
46
34
 
@@ -51,7 +39,7 @@ describe.skip('Search', () => {
51
39
  const objects = await search({
52
40
  query: 'a19z org, projects they invest in and team',
53
41
  schema: [Testing.Project, Testing.Organization, Testing.Contact],
54
- AiService,
42
+ AiService: todo(),
55
43
  exaApiKey: EXA_API_KEY,
56
44
  });
57
45
 
@@ -62,7 +50,7 @@ describe.skip('Search', () => {
62
50
  const objects = await search({
63
51
  query: 'companies building CRDTs',
64
52
  schema: [Testing.Project, Testing.Organization, Testing.Contact],
65
- AiService,
53
+ AiService: todo(),
66
54
  exaApiKey: EXA_API_KEY,
67
55
  });
68
56
 
@@ -75,7 +63,7 @@ describe.skip('Search', () => {
75
63
  const objects = await search({
76
64
  context: COMPOSER_DXOS_DOC,
77
65
  schema: [Testing.Project, Testing.Organization, Testing.Contact],
78
- AiService,
66
+ AiService: todo(),
79
67
  exaApiKey: EXA_API_KEY,
80
68
  });
81
69
 
@@ -86,7 +74,7 @@ describe.skip('Search', () => {
86
74
  const objects = await search({
87
75
  context: EDGE_ARCHITECTURE_DOC,
88
76
  schema: [Testing.Project, Testing.Organization, Testing.Contact],
89
- AiService,
77
+ AiService: todo(),
90
78
  exaApiKey: EXA_API_KEY,
91
79
  });
92
80