@dxos/assistant 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/assistant",
3
- "version": "0.8.4-main.3f58842",
3
+ "version": "0.8.4-main.b97322e",
4
4
  "description": "Natural language interface to DXOS",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -31,26 +31,26 @@
31
31
  "exa-js": "^1.5.12",
32
32
  "handlebars": "4.7.8",
33
33
  "lodash.defaultsdeep": "^4.6.1",
34
- "@dxos/async": "0.8.4-main.3f58842",
35
- "@dxos/ai": "0.8.4-main.3f58842",
36
- "@dxos/blueprints": "0.8.4-main.3f58842",
37
- "@dxos/context": "0.8.4-main.3f58842",
38
- "@dxos/debug": "0.8.4-main.3f58842",
39
- "@dxos/echo": "0.8.4-main.3f58842",
40
- "@dxos/echo-schema": "0.8.4-main.3f58842",
41
- "@dxos/echo-protocol": "0.8.4-main.3f58842",
42
- "@dxos/echo-db": "0.8.4-main.3f58842",
43
- "@dxos/effect": "0.8.4-main.3f58842",
44
- "@dxos/errors": "0.8.4-main.3f58842",
45
- "@dxos/functions": "0.8.4-main.3f58842",
46
- "@dxos/invariant": "0.8.4-main.3f58842",
47
- "@dxos/keys": "0.8.4-main.3f58842",
48
- "@dxos/graph": "0.8.4-main.3f58842",
49
- "@dxos/live-object": "0.8.4-main.3f58842",
50
- "@dxos/log": "0.8.4-main.3f58842",
51
- "@dxos/node-std": "0.8.4-main.3f58842",
52
- "@dxos/schema": "0.8.4-main.3f58842",
53
- "@dxos/util": "0.8.4-main.3f58842"
34
+ "@dxos/ai": "0.8.4-main.b97322e",
35
+ "@dxos/async": "0.8.4-main.b97322e",
36
+ "@dxos/context": "0.8.4-main.b97322e",
37
+ "@dxos/blueprints": "0.8.4-main.b97322e",
38
+ "@dxos/debug": "0.8.4-main.b97322e",
39
+ "@dxos/echo": "0.8.4-main.b97322e",
40
+ "@dxos/echo-db": "0.8.4-main.b97322e",
41
+ "@dxos/effect": "0.8.4-main.b97322e",
42
+ "@dxos/echo-schema": "0.8.4-main.b97322e",
43
+ "@dxos/errors": "0.8.4-main.b97322e",
44
+ "@dxos/functions": "0.8.4-main.b97322e",
45
+ "@dxos/invariant": "0.8.4-main.b97322e",
46
+ "@dxos/graph": "0.8.4-main.b97322e",
47
+ "@dxos/keys": "0.8.4-main.b97322e",
48
+ "@dxos/log": "0.8.4-main.b97322e",
49
+ "@dxos/live-object": "0.8.4-main.b97322e",
50
+ "@dxos/node-std": "0.8.4-main.b97322e",
51
+ "@dxos/schema": "0.8.4-main.b97322e",
52
+ "@dxos/util": "0.8.4-main.b97322e",
53
+ "@dxos/echo-protocol": "0.8.4-main.b97322e"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/lodash.defaultsdeep": "^4.6.6",
@@ -2,35 +2,23 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import { describe, test, beforeAll } from 'vitest';
5
+ import { beforeAll, describe, test } from 'vitest';
6
6
 
7
- import { EdgeAiServiceClient } from '@dxos/ai';
8
- import { AI_SERVICE_ENDPOINT } from '@dxos/ai/testing';
9
- import { FunctionExecutor, ServiceContainer } from '@dxos/functions';
7
+ import { todo } from '@dxos/debug';
8
+ import { FunctionExecutor } from '@dxos/functions';
10
9
  import { log } from '@dxos/log';
11
10
  import { createTestData } from '@dxos/schema/testing';
12
11
  import { range } from '@dxos/util';
13
12
 
14
- import { extractionAnthropicFn } from './extraction-llm-function';
15
13
  import { processTranscriptMessage } from '../extraction';
14
+ import { extractionAnthropicFn } from './extraction-llm-function';
16
15
 
16
+ // TODO(burdon): Rewrite test.
17
17
  describe.skip('LLM EntityExtraction', () => {
18
18
  let executor: FunctionExecutor;
19
19
 
20
20
  beforeAll(async () => {
21
- executor = new FunctionExecutor(
22
- new ServiceContainer().setServices({
23
- ai: {
24
- client: new EdgeAiServiceClient({
25
- endpoint: AI_SERVICE_ENDPOINT.REMOTE,
26
- defaultGenerationOptions: {
27
- // model: '@anthropic/claude-sonnet-4-20250514',
28
- model: '@anthropic/claude-3-5-haiku-20241022',
29
- },
30
- }),
31
- } as any, // TODO(burdon): Rewrite test.
32
- }),
33
- );
21
+ executor = new FunctionExecutor(todo());
34
22
  });
35
23
 
36
24
  test('should process a transcript block', async () => {
@@ -109,12 +109,12 @@ describe.runIf(process.env.DX_RUN_SLOW_TESTS)('AiSession', () => {
109
109
  ),
110
110
  );
111
111
 
112
+ // TODO(dmaretskyi): Revive test.
112
113
  /*
113
114
  it.skip('create calendar itinerary', { timeout: 60_000 }, async () => {
114
- const aiClient = new EdgeAiServiceClient({ endpoint: AI_SERVICE_ENDPOINT.REMOTE });
115
- // const aiClient = new OllamaAiServiceClient({
115
+
116
116
  // overrides: { model: 'llama3.1:8b' },
117
- // });
117
+
118
118
  const session = new AiSession({ operationModel: 'configured' });
119
119
 
120
120
  const objects = new Set<string>();
@@ -8,8 +8,7 @@
8
8
  import { pipe, Schema } from 'effect';
9
9
  import { beforeAll, describe, test } from 'vitest';
10
10
 
11
- import { EdgeAiServiceClient, MixedStreamParser, OllamaAiServiceClient, AiService } from '@dxos/ai';
12
- import { AI_SERVICE_ENDPOINT } from '@dxos/ai/testing';
11
+ import { AiService, MixedStreamParser } from '@dxos/ai';
13
12
  import { Obj } from '@dxos/echo';
14
13
  import { type EchoDatabase } from '@dxos/echo-db';
15
14
  import { EchoTestBuilder } from '@dxos/echo-db/testing';
@@ -148,6 +147,7 @@ describe.skip('Summarization', () => {
148
147
  let db: EchoDatabase;
149
148
  let executor: FunctionExecutor;
150
149
 
150
+ // TODO(burdon): Rewrite test.
151
151
  beforeAll(async () => {
152
152
  // TODO(dmaretskyi): Helper to scaffold this from a config.
153
153
  builder = await new EchoTestBuilder().open();
@@ -155,21 +155,7 @@ describe.skip('Summarization', () => {
155
155
  db = db1;
156
156
  executor = new FunctionExecutor(
157
157
  new ServiceContainer().setServices({
158
- ai: {
159
- client: REMOTE_AI
160
- ? new EdgeAiServiceClient({
161
- endpoint: AI_SERVICE_ENDPOINT.REMOTE,
162
- defaultGenerationOptions: {
163
- // model: '@anthropic/claude-sonnet-4-20250514',
164
- model: '@anthropic/claude-3-5-sonnet-20241022',
165
- },
166
- })
167
- : new OllamaAiServiceClient({
168
- overrides: {
169
- model: 'llama3.1:8b',
170
- },
171
- }),
172
- } as any, // TODO(burdon): Rewrite test.
158
+ ai: todo(),
173
159
  database: {
174
160
  db,
175
161
  },