@dxos/assistant 0.8.2-staging.7ac8446 → 0.8.2
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/lib/browser/index.mjs +1830 -228
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node/index.cjs +1825 -229
- package/dist/lib/node/index.cjs.map +4 -4
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +1831 -228
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/{src/bin → bin}/chat.d.ts.map +1 -1
- package/dist/types/src/blueprint/blueprint.d.ts +79 -0
- package/dist/types/src/blueprint/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprint/blueprint.test.d.ts +2 -0
- package/dist/types/src/blueprint/blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprint/index.d.ts +4 -0
- package/dist/types/src/blueprint/index.d.ts.map +1 -0
- package/dist/types/src/blueprint/logger.d.ts +3 -0
- package/dist/types/src/blueprint/logger.d.ts.map +1 -0
- package/dist/types/src/blueprint/machine.d.ts +113 -0
- package/dist/types/src/blueprint/machine.d.ts.map +1 -0
- package/dist/types/src/blueprint/test-data.d.ts +3 -0
- package/dist/types/src/blueprint/test-data.d.ts.map +1 -0
- package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts +4 -0
- package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts.map +1 -0
- package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.test.d.ts +2 -0
- package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.test.d.ts.map +1 -0
- package/dist/types/src/extraction/extraction-llm-function/index.d.ts +2 -0
- package/dist/types/src/extraction/extraction-llm-function/index.d.ts.map +1 -0
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts +210 -0
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts.map +1 -0
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.test.d.ts +2 -0
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.test.d.ts.map +1 -0
- package/dist/types/src/extraction/extraction-ner-function/index.d.ts +3 -0
- package/dist/types/src/extraction/extraction-ner-function/index.d.ts.map +1 -0
- package/dist/types/src/extraction/extraction-ner-function/named-entity-recognition.d.ts +14 -0
- package/dist/types/src/extraction/extraction-ner-function/named-entity-recognition.d.ts.map +1 -0
- package/dist/types/src/extraction/extraction-ner-function/named-entity-recognition.test.d.ts +2 -0
- package/dist/types/src/extraction/extraction-ner-function/named-entity-recognition.test.d.ts.map +1 -0
- package/dist/types/src/extraction/extraction.d.ts +242 -0
- package/dist/types/src/extraction/extraction.d.ts.map +1 -0
- package/dist/types/src/extraction/index.d.ts +5 -0
- package/dist/types/src/extraction/index.d.ts.map +1 -0
- package/dist/types/src/extraction/quotes.d.ts +15 -0
- package/dist/types/src/extraction/quotes.d.ts.map +1 -0
- package/dist/types/src/extraction/quotes.test.d.ts +2 -0
- package/dist/types/src/extraction/quotes.test.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +4 -3
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/research/exa.d.ts +7 -0
- package/dist/types/src/research/exa.d.ts.map +1 -0
- package/dist/types/src/research/graph.d.ts +39 -0
- package/dist/types/src/research/graph.d.ts.map +1 -0
- package/dist/types/src/research/graph.test.d.ts +2 -0
- package/dist/types/src/research/graph.test.d.ts.map +1 -0
- package/dist/types/src/research/index.d.ts +4 -0
- package/dist/types/src/research/index.d.ts.map +1 -0
- package/dist/types/src/research/research.d.ts +10 -0
- package/dist/types/src/research/research.d.ts.map +1 -0
- package/dist/types/src/research/research.test.d.ts +2 -0
- package/dist/types/src/research/research.test.d.ts.map +1 -0
- package/dist/types/src/session/index.d.ts +1 -0
- package/dist/types/src/session/index.d.ts.map +1 -1
- package/dist/types/src/session/session.d.ts +80 -35
- package/dist/types/src/session/session.d.ts.map +1 -1
- package/dist/types/src/session/version-pin.d.ts +21 -0
- package/dist/types/src/session/version-pin.d.ts.map +1 -0
- package/dist/types/src/session/version-pin.test.d.ts +2 -0
- package/dist/types/src/session/version-pin.test.d.ts.map +1 -0
- package/dist/types/src/summarization/summarization.test.d.ts +2 -0
- package/dist/types/src/summarization/summarization.test.d.ts.map +1 -0
- package/dist/types/src/testing/exa-search-1748337321991.d.ts +38 -0
- package/dist/types/src/testing/exa-search-1748337321991.d.ts.map +1 -0
- package/dist/types/src/testing/exa-search-1748337331526.d.ts +37 -0
- package/dist/types/src/testing/exa-search-1748337331526.d.ts.map +1 -0
- package/dist/types/src/testing/exa-search-1748337344119.d.ts +58 -0
- package/dist/types/src/testing/exa-search-1748337344119.d.ts.map +1 -0
- package/dist/types/src/testing/index.d.ts +2 -6
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +3 -0
- package/dist/types/src/types.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +25 -35
- package/src/blueprint/blueprint.test.ts +142 -0
- package/src/blueprint/blueprint.ts +95 -0
- package/src/blueprint/index.ts +7 -0
- package/src/blueprint/logger.ts +66 -0
- package/src/blueprint/machine.ts +208 -0
- package/src/blueprint/test-data.ts +55 -0
- package/src/extraction/extraction-llm-function/extraction-llm-function.test.ts +95 -0
- package/src/extraction/extraction-llm-function/extraction-llm-function.ts +64 -0
- package/src/extraction/extraction-llm-function/index.ts +5 -0
- package/src/extraction/extraction-llm-function/instructions.tpl +28 -0
- package/src/extraction/extraction-ner-function/extraction-ner-function.test.ts +115 -0
- package/src/extraction/extraction-ner-function/extraction-ner-function.ts +54 -0
- package/src/extraction/extraction-ner-function/index.ts +6 -0
- package/src/extraction/extraction-ner-function/named-entity-recognition.test.ts +94 -0
- package/src/extraction/extraction-ner-function/named-entity-recognition.ts +97 -0
- package/src/extraction/extraction.ts +75 -0
- package/src/extraction/index.ts +8 -0
- package/src/extraction/quotes.test.ts +27 -0
- package/src/extraction/quotes.ts +57 -0
- package/src/index.ts +4 -3
- package/src/research/exa.ts +100 -0
- package/src/research/graph.test.ts +15 -0
- package/src/research/graph.ts +291 -0
- package/src/research/index.ts +7 -0
- package/src/research/instructions-research.tpl +97 -0
- package/src/research/research.test.ts +189 -0
- package/src/research/research.ts +89 -0
- package/src/session/index.ts +1 -0
- package/src/session/session.test.ts +39 -67
- package/src/session/session.ts +328 -155
- package/src/session/version-pin.test.ts +26 -0
- package/src/session/version-pin.ts +48 -0
- package/src/summarization/summarization.test.ts +216 -0
- package/src/testing/exa-search-1748337321991.ts +131 -0
- package/src/testing/exa-search-1748337331526.ts +144 -0
- package/src/testing/exa-search-1748337344119.ts +133 -0
- package/src/testing/index.ts +8 -7
- package/src/typedefs.d.ts +8 -0
- package/src/types.ts +8 -0
- package/src/typings.d.ts +8 -0
- package/dist/lib/browser/chunk-PND5VR6D.mjs +0 -2315
- package/dist/lib/browser/chunk-PND5VR6D.mjs.map +0 -7
- package/dist/lib/browser/testing/index.mjs +0 -621
- package/dist/lib/browser/testing/index.mjs.map +0 -7
- package/dist/lib/node/chunk-IBOBRBDF.cjs +0 -2326
- package/dist/lib/node/chunk-IBOBRBDF.cjs.map +0 -7
- package/dist/lib/node/testing/index.cjs +0 -637
- package/dist/lib/node/testing/index.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-DCQJOLSR.mjs +0 -2317
- package/dist/lib/node-esm/chunk-DCQJOLSR.mjs.map +0 -7
- package/dist/lib/node-esm/testing/index.mjs +0 -622
- package/dist/lib/node-esm/testing/index.mjs.map +0 -7
- package/dist/types/src/ai-service/client.test.d.ts +0 -2
- package/dist/types/src/ai-service/client.test.d.ts.map +0 -1
- package/dist/types/src/ai-service/defs.d.ts +0 -9
- package/dist/types/src/ai-service/defs.d.ts.map +0 -1
- package/dist/types/src/ai-service/edge-client.d.ts +0 -19
- package/dist/types/src/ai-service/edge-client.d.ts.map +0 -1
- package/dist/types/src/ai-service/index.d.ts +0 -10
- package/dist/types/src/ai-service/index.d.ts.map +0 -1
- package/dist/types/src/ai-service/message-collector.d.ts +0 -88
- package/dist/types/src/ai-service/message-collector.d.ts.map +0 -1
- package/dist/types/src/ai-service/ollama-client.d.ts +0 -39
- package/dist/types/src/ai-service/ollama-client.d.ts.map +0 -1
- package/dist/types/src/ai-service/parser.d.ts +0 -138
- package/dist/types/src/ai-service/parser.d.ts.map +0 -1
- package/dist/types/src/ai-service/service.d.ts +0 -9
- package/dist/types/src/ai-service/service.d.ts.map +0 -1
- package/dist/types/src/ai-service/stream.d.ts +0 -40
- package/dist/types/src/ai-service/stream.d.ts.map +0 -1
- package/dist/types/src/ai-service/stream.test.d.ts +0 -2
- package/dist/types/src/ai-service/stream.test.d.ts.map +0 -1
- package/dist/types/src/ai-service/testing/index.d.ts +0 -3
- package/dist/types/src/ai-service/testing/index.d.ts.map +0 -1
- package/dist/types/src/ai-service/testing/mock.d.ts +0 -7
- package/dist/types/src/ai-service/testing/mock.d.ts.map +0 -1
- package/dist/types/src/ai-service/testing/test-stream.d.ts +0 -7
- package/dist/types/src/ai-service/testing/test-stream.d.ts.map +0 -1
- package/dist/types/src/ai-service/transform.d.ts +0 -27
- package/dist/types/src/ai-service/transform.d.ts.map +0 -1
- package/dist/types/src/ai-service/types.d.ts +0 -167
- package/dist/types/src/ai-service/types.d.ts.map +0 -1
- package/dist/types/src/ai-service/util/index.d.ts +0 -2
- package/dist/types/src/ai-service/util/index.d.ts.map +0 -1
- package/dist/types/src/ai-service/util/sse.d.ts +0 -39
- package/dist/types/src/ai-service/util/sse.d.ts.map +0 -1
- package/dist/types/src/conversation/conversation.d.ts +0 -80
- package/dist/types/src/conversation/conversation.d.ts.map +0 -1
- package/dist/types/src/conversation/conversation.test.d.ts +0 -2
- package/dist/types/src/conversation/conversation.test.d.ts.map +0 -1
- package/dist/types/src/conversation/index.d.ts +0 -2
- package/dist/types/src/conversation/index.d.ts.map +0 -1
- package/dist/types/src/conversation/types.d.ts +0 -79
- package/dist/types/src/conversation/types.d.ts.map +0 -1
- package/dist/types/src/cypher/ast.d.ts +0 -56
- package/dist/types/src/cypher/ast.d.ts.map +0 -1
- package/dist/types/src/cypher/combinators.d.ts +0 -14
- package/dist/types/src/cypher/combinators.d.ts.map +0 -1
- package/dist/types/src/cypher/combinators.test.d.ts +0 -2
- package/dist/types/src/cypher/combinators.test.d.ts.map +0 -1
- package/dist/types/src/cypher/echo-data-source.d.ts +0 -16
- package/dist/types/src/cypher/echo-data-source.d.ts.map +0 -1
- package/dist/types/src/cypher/execution-plan.d.ts +0 -49
- package/dist/types/src/cypher/execution-plan.d.ts.map +0 -1
- package/dist/types/src/cypher/execution-plan.test.d.ts +0 -2
- package/dist/types/src/cypher/execution-plan.test.d.ts.map +0 -1
- package/dist/types/src/cypher/index.d.ts +0 -5
- package/dist/types/src/cypher/index.d.ts.map +0 -1
- package/dist/types/src/cypher/parjs.d.ts +0 -4
- package/dist/types/src/cypher/parjs.d.ts.map +0 -1
- package/dist/types/src/cypher/parser.d.ts +0 -6
- package/dist/types/src/cypher/parser.d.ts.map +0 -1
- package/dist/types/src/cypher/query-executor.d.ts +0 -26
- package/dist/types/src/cypher/query-executor.d.ts.map +0 -1
- package/dist/types/src/cypher/query-executor.test.d.ts +0 -2
- package/dist/types/src/cypher/query-executor.test.d.ts.map +0 -1
- package/dist/types/src/cypher/schema.d.ts +0 -12
- package/dist/types/src/cypher/schema.d.ts.map +0 -1
- package/dist/types/src/cypher/schema.test.d.ts +0 -2
- package/dist/types/src/cypher/schema.test.d.ts.map +0 -1
- package/dist/types/src/testing/artifacts.test.d.ts +0 -1
- package/dist/types/src/testing/artifacts.test.d.ts.map +0 -1
- package/dist/types/src/testing/data.d.ts +0 -2
- package/dist/types/src/testing/data.d.ts.map +0 -1
- package/dist/types/src/testing/defs.d.ts +0 -5
- package/dist/types/src/testing/defs.d.ts.map +0 -1
- package/dist/types/src/testing/logger.d.ts +0 -12
- package/dist/types/src/testing/logger.d.ts.map +0 -1
- package/dist/types/src/testing/object-extraction.test.d.ts +0 -1
- package/dist/types/src/testing/object-extraction.test.d.ts.map +0 -1
- package/dist/types/src/testing/ollama.d.ts +0 -6
- package/dist/types/src/testing/ollama.d.ts.map +0 -1
- package/dist/types/src/testing/query-promts.d.ts +0 -5
- package/dist/types/src/testing/query-promts.d.ts.map +0 -1
- package/dist/types/src/testing/query.test.d.ts +0 -2
- package/dist/types/src/testing/query.test.d.ts.map +0 -1
- package/dist/types/src/testing/test-data.d.ts +0 -29
- package/dist/types/src/testing/test-data.d.ts.map +0 -1
- package/dist/types/src/testing/test-schema.d.ts +0 -50
- package/dist/types/src/testing/test-schema.d.ts.map +0 -1
- package/dist/types/src/util/index.d.ts +0 -2
- package/dist/types/src/util/index.d.ts.map +0 -1
- package/dist/types/src/util/trim.d.ts +0 -5
- package/dist/types/src/util/trim.d.ts.map +0 -1
- package/src/ai-service/client.test.ts +0 -265
- package/src/ai-service/defs.ts +0 -39
- package/src/ai-service/edge-client.ts +0 -67
- package/src/ai-service/index.ts +0 -13
- package/src/ai-service/message-collector.ts +0 -84
- package/src/ai-service/ollama-client.ts +0 -499
- package/src/ai-service/parser.ts +0 -358
- package/src/ai-service/service.ts +0 -15
- package/src/ai-service/stream.test.ts +0 -125
- package/src/ai-service/stream.ts +0 -118
- package/src/ai-service/testing/index.ts +0 -6
- package/src/ai-service/testing/mock.ts +0 -22
- package/src/ai-service/testing/test-stream.ts +0 -93
- package/src/ai-service/transform.ts +0 -121
- package/src/ai-service/types.ts +0 -103
- package/src/ai-service/util/index.ts +0 -5
- package/src/ai-service/util/sse.ts +0 -341
- package/src/bin/chat.ts +0 -79
- package/src/conversation/conversation.test.ts +0 -73
- package/src/conversation/conversation.ts +0 -257
- package/src/conversation/index.ts +0 -5
- package/src/conversation/types.ts +0 -129
- package/src/cypher/ast.ts +0 -75
- package/src/cypher/combinators.test.ts +0 -137
- package/src/cypher/combinators.ts +0 -148
- package/src/cypher/echo-data-source.ts +0 -105
- package/src/cypher/execution-plan.test.ts +0 -44
- package/src/cypher/execution-plan.ts +0 -208
- package/src/cypher/index.ts +0 -8
- package/src/cypher/parjs-shims.d.ts +0 -10
- package/src/cypher/parjs.ts +0 -10
- package/src/cypher/parser.ts +0 -19
- package/src/cypher/query-executor.test.ts +0 -47
- package/src/cypher/query-executor.ts +0 -145
- package/src/cypher/schema.test.ts +0 -17
- package/src/cypher/schema.ts +0 -86
- package/src/testing/artifacts.test.ts +0 -182
- package/src/testing/data.ts +0 -13
- package/src/testing/defs.ts +0 -9
- package/src/testing/logger.ts +0 -129
- package/src/testing/object-extraction.test.ts +0 -71
- package/src/testing/ollama.ts +0 -15
- package/src/testing/query-promts.ts +0 -75
- package/src/testing/query.test.ts +0 -91
- package/src/testing/test-data.ts +0 -372
- package/src/testing/test-schema.ts +0 -80
- package/src/util/index.ts +0 -5
- package/src/util/trim.ts +0 -15
- package/vendor/parjs-browser.mjs +0 -4
- package/vendor/parjs-default.mjs +0 -8
- /package/dist/types/{src/bin → bin}/chat.d.ts +0 -0
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { Schema
|
|
2
|
-
import {
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
|
+
import { type AgentStatus, type AIServiceClient, type GenerateRequest, Message, type ExecutableTool } from '@dxos/ai';
|
|
3
|
+
import { type ArtifactDefinition } from '@dxos/artifact';
|
|
3
4
|
import { Event } from '@dxos/async';
|
|
4
|
-
import {
|
|
5
|
+
import { ObjectVersion } from '@dxos/echo-db';
|
|
6
|
+
import { type ObjectId } from '@dxos/echo-schema';
|
|
5
7
|
/**
|
|
6
8
|
* Contains message history, tools, current context.
|
|
7
9
|
* Current context means the state of the app, time of day, and other contextual information.
|
|
@@ -12,13 +14,26 @@ import { type AIServiceClient, type GenerateRequest } from '../ai-service';
|
|
|
12
14
|
* Could be run locally in the app or remotely.
|
|
13
15
|
* Could be personal or shared.
|
|
14
16
|
*/
|
|
17
|
+
/**
|
|
18
|
+
* Resolves artifact ids to their versions.
|
|
19
|
+
* Used to give the model a sense of the changes to the artifacts made by users during the conversation.
|
|
20
|
+
* The artifacts versions are pinned in the history, and whenever the artifact changes in-between assistant's steps,
|
|
21
|
+
* a diff is inserted into the conversation.
|
|
22
|
+
*/
|
|
23
|
+
export type ArtifactDiffResolver = (artifacts: {
|
|
24
|
+
id: ObjectId;
|
|
25
|
+
lastVersion: ObjectVersion;
|
|
26
|
+
}[]) => Promise<Map<ObjectId, {
|
|
27
|
+
version: ObjectVersion;
|
|
28
|
+
diff?: string;
|
|
29
|
+
}>>;
|
|
15
30
|
export type SessionRunOptions = {
|
|
16
31
|
client: AIServiceClient;
|
|
17
32
|
artifacts: ArtifactDefinition[];
|
|
18
33
|
/**
|
|
19
34
|
* Non-artifact specific tools.
|
|
20
35
|
*/
|
|
21
|
-
tools:
|
|
36
|
+
tools: ExecutableTool[];
|
|
22
37
|
history: Message[];
|
|
23
38
|
prompt: string;
|
|
24
39
|
generationOptions?: Pick<GenerateRequest, 'model'>;
|
|
@@ -28,13 +43,19 @@ export type SessionRunOptions = {
|
|
|
28
43
|
* Pre-require artifacts.
|
|
29
44
|
*/
|
|
30
45
|
requiredArtifactIds?: string[];
|
|
46
|
+
/**
|
|
47
|
+
* @see ArtifactDiffResolver
|
|
48
|
+
*/
|
|
49
|
+
artifactDiffResolver?: ArtifactDiffResolver;
|
|
31
50
|
};
|
|
32
|
-
type OperationModel = 'planning' | '
|
|
51
|
+
type OperationModel = 'planning' | 'importing' | 'configured';
|
|
33
52
|
export type AiSessionOptions = {
|
|
34
53
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
54
|
+
* Determines the agent's handling of the artifacts definitions:
|
|
55
|
+
*
|
|
56
|
+
* - `planning`: The model will create a plan with required artifacts for each step.
|
|
57
|
+
* - `importing`: The model can query registry and only pull in the artifacts that are required to complete the task.
|
|
58
|
+
* - `configured`: The available artifacts are pre-selected and the model cannot select additional artifacts.
|
|
38
59
|
*/
|
|
39
60
|
operationModel: OperationModel;
|
|
40
61
|
};
|
|
@@ -53,15 +74,11 @@ export declare class AISession {
|
|
|
53
74
|
*/
|
|
54
75
|
readonly message: Event<{
|
|
55
76
|
readonly id: string;
|
|
56
|
-
spaceId?: import("@dxos/keys").SpaceId | undefined;
|
|
57
|
-
threadId?: string | undefined;
|
|
58
|
-
foreignId?: string | undefined;
|
|
59
|
-
role: "user" | "assistant";
|
|
60
77
|
content: ({
|
|
61
78
|
pending?: boolean | undefined;
|
|
62
79
|
type: "text";
|
|
63
|
-
disposition?: string | undefined;
|
|
64
80
|
text: string;
|
|
81
|
+
disposition?: string | undefined;
|
|
65
82
|
} | {
|
|
66
83
|
pending?: boolean | undefined;
|
|
67
84
|
type: "json";
|
|
@@ -69,8 +86,8 @@ export declare class AISession {
|
|
|
69
86
|
json: string;
|
|
70
87
|
} | {
|
|
71
88
|
pending?: boolean | undefined;
|
|
72
|
-
type: "image";
|
|
73
89
|
id?: string | undefined;
|
|
90
|
+
type: "image";
|
|
74
91
|
source?: {
|
|
75
92
|
type: "base64";
|
|
76
93
|
mediaType: string;
|
|
@@ -78,17 +95,22 @@ export declare class AISession {
|
|
|
78
95
|
} | undefined;
|
|
79
96
|
} | {
|
|
80
97
|
pending?: boolean | undefined;
|
|
81
|
-
name: string;
|
|
82
|
-
type: "tool_use";
|
|
83
98
|
id: string;
|
|
99
|
+
type: "tool_use";
|
|
100
|
+
name: string;
|
|
84
101
|
input: unknown;
|
|
102
|
+
currentStatus?: {
|
|
103
|
+
readonly id: string;
|
|
104
|
+
message: string;
|
|
105
|
+
} | undefined;
|
|
85
106
|
} | {
|
|
86
107
|
pending?: boolean | undefined;
|
|
87
108
|
type: "tool_result";
|
|
88
|
-
content: string;
|
|
89
109
|
toolUseId: string;
|
|
110
|
+
content: string;
|
|
90
111
|
isError?: boolean | undefined;
|
|
91
112
|
})[];
|
|
113
|
+
role: "user" | "assistant";
|
|
92
114
|
}>;
|
|
93
115
|
/**
|
|
94
116
|
* Complete block added to Message.
|
|
@@ -96,8 +118,8 @@ export declare class AISession {
|
|
|
96
118
|
readonly block: Event<{
|
|
97
119
|
pending?: boolean | undefined;
|
|
98
120
|
type: "text";
|
|
99
|
-
disposition?: string | undefined;
|
|
100
121
|
text: string;
|
|
122
|
+
disposition?: string | undefined;
|
|
101
123
|
} | {
|
|
102
124
|
pending?: boolean | undefined;
|
|
103
125
|
type: "json";
|
|
@@ -105,8 +127,8 @@ export declare class AISession {
|
|
|
105
127
|
json: string;
|
|
106
128
|
} | {
|
|
107
129
|
pending?: boolean | undefined;
|
|
108
|
-
type: "image";
|
|
109
130
|
id?: string | undefined;
|
|
131
|
+
type: "image";
|
|
110
132
|
source?: {
|
|
111
133
|
type: "base64";
|
|
112
134
|
mediaType: string;
|
|
@@ -114,15 +136,19 @@ export declare class AISession {
|
|
|
114
136
|
} | undefined;
|
|
115
137
|
} | {
|
|
116
138
|
pending?: boolean | undefined;
|
|
117
|
-
name: string;
|
|
118
|
-
type: "tool_use";
|
|
119
139
|
id: string;
|
|
140
|
+
type: "tool_use";
|
|
141
|
+
name: string;
|
|
120
142
|
input: unknown;
|
|
143
|
+
currentStatus?: {
|
|
144
|
+
readonly id: string;
|
|
145
|
+
message: string;
|
|
146
|
+
} | undefined;
|
|
121
147
|
} | {
|
|
122
148
|
pending?: boolean | undefined;
|
|
123
149
|
type: "tool_result";
|
|
124
|
-
content: string;
|
|
125
150
|
toolUseId: string;
|
|
151
|
+
content: string;
|
|
126
152
|
isError?: boolean | undefined;
|
|
127
153
|
}>;
|
|
128
154
|
/**
|
|
@@ -131,8 +157,8 @@ export declare class AISession {
|
|
|
131
157
|
readonly update: Event<{
|
|
132
158
|
pending?: boolean | undefined;
|
|
133
159
|
type: "text";
|
|
134
|
-
disposition?: string | undefined;
|
|
135
160
|
text: string;
|
|
161
|
+
disposition?: string | undefined;
|
|
136
162
|
} | {
|
|
137
163
|
pending?: boolean | undefined;
|
|
138
164
|
type: "json";
|
|
@@ -140,8 +166,8 @@ export declare class AISession {
|
|
|
140
166
|
json: string;
|
|
141
167
|
} | {
|
|
142
168
|
pending?: boolean | undefined;
|
|
143
|
-
type: "image";
|
|
144
169
|
id?: string | undefined;
|
|
170
|
+
type: "image";
|
|
145
171
|
source?: {
|
|
146
172
|
type: "base64";
|
|
147
173
|
mediaType: string;
|
|
@@ -149,26 +175,27 @@ export declare class AISession {
|
|
|
149
175
|
} | undefined;
|
|
150
176
|
} | {
|
|
151
177
|
pending?: boolean | undefined;
|
|
152
|
-
name: string;
|
|
153
|
-
type: "tool_use";
|
|
154
178
|
id: string;
|
|
179
|
+
type: "tool_use";
|
|
180
|
+
name: string;
|
|
155
181
|
input: unknown;
|
|
182
|
+
currentStatus?: {
|
|
183
|
+
readonly id: string;
|
|
184
|
+
message: string;
|
|
185
|
+
} | undefined;
|
|
156
186
|
} | {
|
|
157
187
|
pending?: boolean | undefined;
|
|
158
188
|
type: "tool_result";
|
|
159
|
-
content: string;
|
|
160
189
|
toolUseId: string;
|
|
190
|
+
content: string;
|
|
161
191
|
isError?: boolean | undefined;
|
|
162
192
|
}>;
|
|
163
|
-
readonly streamEvent: Event<import("
|
|
193
|
+
readonly streamEvent: Event<import("@dxos/ai").GenerationStreamEvent>;
|
|
164
194
|
/**
|
|
165
195
|
* User prompt or tool result.
|
|
166
196
|
*/
|
|
167
197
|
readonly userMessage: Event<{
|
|
168
198
|
readonly id: string;
|
|
169
|
-
spaceId?: import("@dxos/keys").SpaceId | undefined;
|
|
170
|
-
threadId?: string | undefined;
|
|
171
|
-
foreignId?: string | undefined;
|
|
172
199
|
role: "user" | "assistant";
|
|
173
200
|
content: ({
|
|
174
201
|
pending?: boolean | undefined;
|
|
@@ -182,8 +209,8 @@ export declare class AISession {
|
|
|
182
209
|
json: string;
|
|
183
210
|
} | {
|
|
184
211
|
pending?: boolean | undefined;
|
|
185
|
-
type: "image";
|
|
186
212
|
id?: string | undefined;
|
|
213
|
+
type: "image";
|
|
187
214
|
source?: {
|
|
188
215
|
type: "base64";
|
|
189
216
|
mediaType: string;
|
|
@@ -191,10 +218,14 @@ export declare class AISession {
|
|
|
191
218
|
} | undefined;
|
|
192
219
|
} | {
|
|
193
220
|
pending?: boolean | undefined;
|
|
221
|
+
id: string;
|
|
194
222
|
name: string;
|
|
195
223
|
type: "tool_use";
|
|
196
|
-
id: string;
|
|
197
224
|
input: unknown;
|
|
225
|
+
currentStatus?: {
|
|
226
|
+
readonly id: string;
|
|
227
|
+
message: string;
|
|
228
|
+
} | undefined;
|
|
198
229
|
} | {
|
|
199
230
|
pending?: boolean | undefined;
|
|
200
231
|
type: "tool_result";
|
|
@@ -203,12 +234,26 @@ export declare class AISession {
|
|
|
203
234
|
isError?: boolean | undefined;
|
|
204
235
|
})[];
|
|
205
236
|
}>;
|
|
237
|
+
/**
|
|
238
|
+
* Agent self-reporting its status.
|
|
239
|
+
*/
|
|
240
|
+
readonly statusReport: Event<AgentStatus>;
|
|
241
|
+
readonly toolStatusReport: Event<{
|
|
242
|
+
message: Message;
|
|
243
|
+
status: AgentStatus;
|
|
244
|
+
}>;
|
|
206
245
|
constructor(_options: AiSessionOptions);
|
|
207
246
|
run(options: SessionRunOptions): Promise<Message[]>;
|
|
247
|
+
runStructured<S extends Schema.Schema.AnyNoContext>(schema: S, options: SessionRunOptions): Promise<Schema.Schema.Type<S>>;
|
|
248
|
+
private _formatUserPrompt;
|
|
249
|
+
private _createQueryArtifactsTool;
|
|
250
|
+
private _createRequireTool;
|
|
251
|
+
private _createPlanningTool;
|
|
252
|
+
private _onToolStatusReport;
|
|
208
253
|
abort(): void;
|
|
209
254
|
}
|
|
210
|
-
declare const AIServiecOverloadedError_base:
|
|
211
|
-
readonly _tag:
|
|
255
|
+
declare const AIServiecOverloadedError_base: Schema.TaggedErrorClass<AIServiecOverloadedError, "AIServiecOverloadedError", {
|
|
256
|
+
readonly _tag: Schema.tag<"AIServiecOverloadedError">;
|
|
212
257
|
}>;
|
|
213
258
|
export declare class AIServiecOverloadedError extends AIServiecOverloadedError_base {
|
|
214
259
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../src/session/session.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../src/session/session.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
|
+
import { type MessageContentBlock } from '@dxos/ai';
|
|
3
|
+
import { type ObjectVersion } from '@dxos/echo-db';
|
|
4
|
+
import { type BaseEchoObject } from '@dxos/echo-schema';
|
|
5
|
+
declare const VersionPinSchema: Schema.Struct<{
|
|
6
|
+
objectId: import("@dxos/keys").ObjectIdClass;
|
|
7
|
+
version: Schema.Schema<ObjectVersion, ObjectVersion, never>;
|
|
8
|
+
}>;
|
|
9
|
+
/**
|
|
10
|
+
* Used to pin a specific version of an object during the course of a conversation.
|
|
11
|
+
* This allows us to detect when the object changes during the course of the conversation.
|
|
12
|
+
*/
|
|
13
|
+
export interface VersionPin extends Schema.Schema.Type<typeof VersionPinSchema> {
|
|
14
|
+
}
|
|
15
|
+
export declare const VersionPin: typeof VersionPinSchema & {
|
|
16
|
+
DISPOSITION: 'version-pin';
|
|
17
|
+
fromObject: (object: BaseEchoObject) => VersionPin;
|
|
18
|
+
createBlock: (pin: VersionPin) => MessageContentBlock;
|
|
19
|
+
};
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=version-pin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version-pin.d.ts","sourceRoot":"","sources":["../../../../src/session/version-pin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAKlE,QAAA,MAAM,gBAAgB;;;EAKpB,CAAC;AAEH;;;GAGG;AACH,MAAM,WAAW,UAAW,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC;CAAG;AAElF,eAAO,MAAM,UAAU,EAAE,OAAO,gBAAgB,GAAG;IACjD,WAAW,EAAE,aAAa,CAAC;IAC3B,UAAU,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,UAAU,CAAC;IACnD,WAAW,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,mBAAmB,CAAC;CAiBvD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version-pin.test.d.ts","sourceRoot":"","sources":["../../../../src/session/version-pin.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"summarization.test.d.ts","sourceRoot":"","sources":["../../../../src/summarization/summarization.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
requestId: string;
|
|
3
|
+
autopromptString: string;
|
|
4
|
+
autoDate: string;
|
|
5
|
+
resolvedSearchType: string;
|
|
6
|
+
results: ({
|
|
7
|
+
id: string;
|
|
8
|
+
title: string;
|
|
9
|
+
url: string;
|
|
10
|
+
publishedDate: string;
|
|
11
|
+
author: string;
|
|
12
|
+
score: number;
|
|
13
|
+
text: string;
|
|
14
|
+
image?: undefined;
|
|
15
|
+
favicon?: undefined;
|
|
16
|
+
} | {
|
|
17
|
+
id: string;
|
|
18
|
+
title: string;
|
|
19
|
+
url: string;
|
|
20
|
+
publishedDate: string;
|
|
21
|
+
author: string;
|
|
22
|
+
score: number;
|
|
23
|
+
text: string;
|
|
24
|
+
image: string;
|
|
25
|
+
favicon: string;
|
|
26
|
+
})[];
|
|
27
|
+
costDollars: {
|
|
28
|
+
total: number;
|
|
29
|
+
search: {
|
|
30
|
+
neural: number;
|
|
31
|
+
};
|
|
32
|
+
contents: {
|
|
33
|
+
text: number;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export default _default;
|
|
38
|
+
//# sourceMappingURL=exa-search-1748337321991.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exa-search-1748337321991.d.ts","sourceRoot":"","sources":["../../../../src/testing/exa-search-1748337321991.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBA8HE"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
requestId: string;
|
|
3
|
+
autopromptString: string;
|
|
4
|
+
resolvedSearchType: string;
|
|
5
|
+
results: ({
|
|
6
|
+
id: string;
|
|
7
|
+
title: string;
|
|
8
|
+
url: string;
|
|
9
|
+
publishedDate: string;
|
|
10
|
+
author: string;
|
|
11
|
+
score: number;
|
|
12
|
+
text: string;
|
|
13
|
+
image: string;
|
|
14
|
+
favicon: string;
|
|
15
|
+
} | {
|
|
16
|
+
id: string;
|
|
17
|
+
title: string;
|
|
18
|
+
url: string;
|
|
19
|
+
publishedDate: string;
|
|
20
|
+
author: string;
|
|
21
|
+
text: string;
|
|
22
|
+
image: string;
|
|
23
|
+
favicon: string;
|
|
24
|
+
score?: undefined;
|
|
25
|
+
})[];
|
|
26
|
+
costDollars: {
|
|
27
|
+
total: number;
|
|
28
|
+
search: {
|
|
29
|
+
neural: number;
|
|
30
|
+
};
|
|
31
|
+
contents: {
|
|
32
|
+
text: number;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export default _default;
|
|
37
|
+
//# sourceMappingURL=exa-search-1748337331526.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exa-search-1748337331526.d.ts","sourceRoot":"","sources":["../../../../src/testing/exa-search-1748337331526.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBA2IE"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
requestId: string;
|
|
3
|
+
autopromptString: string;
|
|
4
|
+
autoDate: string;
|
|
5
|
+
resolvedSearchType: string;
|
|
6
|
+
results: ({
|
|
7
|
+
id: string;
|
|
8
|
+
title: string;
|
|
9
|
+
url: string;
|
|
10
|
+
publishedDate: string;
|
|
11
|
+
author: string;
|
|
12
|
+
score: number;
|
|
13
|
+
text: string;
|
|
14
|
+
favicon: string;
|
|
15
|
+
image?: undefined;
|
|
16
|
+
} | {
|
|
17
|
+
id: string;
|
|
18
|
+
title: string;
|
|
19
|
+
url: string;
|
|
20
|
+
publishedDate: string;
|
|
21
|
+
author: string;
|
|
22
|
+
score: number;
|
|
23
|
+
text: string;
|
|
24
|
+
favicon?: undefined;
|
|
25
|
+
image?: undefined;
|
|
26
|
+
} | {
|
|
27
|
+
id: string;
|
|
28
|
+
title: string;
|
|
29
|
+
url: string;
|
|
30
|
+
publishedDate: string;
|
|
31
|
+
author: string;
|
|
32
|
+
score: number;
|
|
33
|
+
text: string;
|
|
34
|
+
image: string;
|
|
35
|
+
favicon: string;
|
|
36
|
+
} | {
|
|
37
|
+
id: string;
|
|
38
|
+
title: string;
|
|
39
|
+
url: string;
|
|
40
|
+
author: string;
|
|
41
|
+
text: string;
|
|
42
|
+
image: string;
|
|
43
|
+
favicon: string;
|
|
44
|
+
publishedDate?: undefined;
|
|
45
|
+
score?: undefined;
|
|
46
|
+
})[];
|
|
47
|
+
costDollars: {
|
|
48
|
+
total: number;
|
|
49
|
+
search: {
|
|
50
|
+
neural: number;
|
|
51
|
+
};
|
|
52
|
+
contents: {
|
|
53
|
+
text: number;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export default _default;
|
|
58
|
+
//# sourceMappingURL=exa-search-1748337344119.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exa-search-1748337344119.d.ts","sourceRoot":"","sources":["../../../../src/testing/exa-search-1748337344119.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAgIE"}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export * from './ollama';
|
|
4
|
-
export * from './query-promts';
|
|
5
|
-
export * from './test-data';
|
|
6
|
-
export * from './test-schema';
|
|
1
|
+
import type { SearchResponse } from 'exa-js';
|
|
2
|
+
export declare const SEARCH_RESULTS: SearchResponse<any>[];
|
|
7
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/testing/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/testing/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAM7C,eAAO,MAAM,cAAc,EAAE,cAAc,CAAC,GAAG,CAAC,EAAgC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,eAAO,MAAM,qBAAqB,GAAI,IAAI,QAAQ,WAA4B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"5.
|
|
1
|
+
{"version":"5.8.3"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/assistant",
|
|
3
|
-
"version": "0.8.2
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "Natural language interface to DXOS",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -8,54 +8,44 @@
|
|
|
8
8
|
"author": "info@dxos.org",
|
|
9
9
|
"sideEffects": true,
|
|
10
10
|
"type": "module",
|
|
11
|
-
"imports": {
|
|
12
|
-
"#parjs": {
|
|
13
|
-
"browser": "./vendor/parjs-browser.mjs",
|
|
14
|
-
"default": "./vendor/parjs-default.mjs"
|
|
15
|
-
},
|
|
16
|
-
"#parjs/combinators": {
|
|
17
|
-
"browser": "./vendor/parjs-combinators-browser.mjs",
|
|
18
|
-
"default": "./vendor/parjs-combinators-default.mjs"
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
11
|
"exports": {
|
|
22
12
|
".": {
|
|
23
13
|
"types": "./dist/types/src/index.d.ts",
|
|
24
14
|
"browser": "./dist/lib/browser/index.mjs",
|
|
25
15
|
"node": "./dist/lib/node-esm/index.mjs"
|
|
26
|
-
},
|
|
27
|
-
"./testing": {
|
|
28
|
-
"types": "./dist/types/src/testing/index.d.ts",
|
|
29
|
-
"browser": "./dist/lib/browser/testing/index.mjs",
|
|
30
|
-
"node": "./dist/lib/node-esm/testing/index.mjs"
|
|
31
16
|
}
|
|
32
17
|
},
|
|
33
18
|
"types": "dist/types/src/index.d.ts",
|
|
34
19
|
"files": [
|
|
35
20
|
"dist",
|
|
36
|
-
"vendor",
|
|
37
21
|
"src"
|
|
38
22
|
],
|
|
39
23
|
"dependencies": {
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/echo
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/
|
|
24
|
+
"@xenova/transformers": "^2.17.2",
|
|
25
|
+
"chalk": "^4.1.0",
|
|
26
|
+
"exa-js": "^1.5.12",
|
|
27
|
+
"@dxos/ai": "0.8.2",
|
|
28
|
+
"@dxos/artifact": "0.8.2",
|
|
29
|
+
"@dxos/async": "0.8.2",
|
|
30
|
+
"@dxos/context": "0.8.2",
|
|
31
|
+
"@dxos/echo": "0.8.2",
|
|
32
|
+
"@dxos/debug": "0.8.2",
|
|
33
|
+
"@dxos/echo-db": "0.8.2",
|
|
34
|
+
"@dxos/echo-protocol": "0.8.2",
|
|
35
|
+
"@dxos/echo-schema": "0.8.2",
|
|
36
|
+
"@dxos/effect": "0.8.2",
|
|
37
|
+
"@dxos/functions": "0.8.2",
|
|
38
|
+
"@dxos/graph": "0.8.2",
|
|
39
|
+
"@dxos/live-object": "0.8.2",
|
|
40
|
+
"@dxos/invariant": "0.8.2",
|
|
41
|
+
"@dxos/keys": "0.8.2",
|
|
42
|
+
"@dxos/log": "0.8.2",
|
|
43
|
+
"@dxos/node-std": "0.8.2",
|
|
44
|
+
"@dxos/schema": "0.8.2",
|
|
45
|
+
"@dxos/util": "0.8.2"
|
|
55
46
|
},
|
|
56
47
|
"devDependencies": {
|
|
57
|
-
"
|
|
58
|
-
"effect": "3.13.3",
|
|
48
|
+
"effect": "3.14.21",
|
|
59
49
|
"inquirer": "^12.0.0"
|
|
60
50
|
},
|
|
61
51
|
"peerDependencies": {
|
|
@@ -66,6 +56,6 @@
|
|
|
66
56
|
},
|
|
67
57
|
"beast": {},
|
|
68
58
|
"scripts": {
|
|
69
|
-
"run:chat": "tsx
|
|
59
|
+
"run:chat": "tsx ./bin/chat.ts"
|
|
70
60
|
}
|
|
71
61
|
}
|