@dxos/assistant-toolkit 0.8.4-main.ae835ea → 0.8.4-main.bc674ce
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/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +1091 -692
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +43 -0
- package/dist/lib/browser/testing/index.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +1090 -692
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/testing/index.mjs +44 -0
- package/dist/lib/node-esm/testing/index.mjs.map +7 -0
- package/dist/types/src/blueprints/design/design-blueprint.d.ts +17 -3
- package/dist/types/src/blueprints/design/design-blueprint.d.ts.map +1 -1
- package/dist/types/src/blueprints/design/index.d.ts +1 -1
- package/dist/types/src/blueprints/design/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/discord/discord-blueprint.d.ts +13 -13
- package/dist/types/src/blueprints/discord/discord-blueprint.d.ts.map +1 -1
- package/dist/types/src/blueprints/discord/index.d.ts +1 -1
- package/dist/types/src/blueprints/discord/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/linear/index.d.ts +1 -1
- package/dist/types/src/blueprints/linear/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/linear/linear-blueprint.d.ts +13 -13
- package/dist/types/src/blueprints/linear/linear-blueprint.d.ts.map +1 -1
- package/dist/types/src/blueprints/planning/index.d.ts +1 -1
- package/dist/types/src/blueprints/planning/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/planning/planning-blueprint.d.ts +17 -3
- package/dist/types/src/blueprints/planning/planning-blueprint.d.ts.map +1 -1
- package/dist/types/src/blueprints/research/index.d.ts +1 -1
- package/dist/types/src/blueprints/research/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/research/research-blueprint.d.ts +17 -3
- package/dist/types/src/blueprints/research/research-blueprint.d.ts.map +1 -1
- package/dist/types/src/blueprints/testing.d.ts +2 -2
- package/dist/types/src/blueprints/testing.d.ts.map +1 -1
- package/dist/types/src/blueprints/websearch/index.d.ts +1 -1
- package/dist/types/src/blueprints/websearch/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/websearch/websearch-blueprint.d.ts +17 -3
- package/dist/types/src/blueprints/websearch/websearch-blueprint.d.ts.map +1 -1
- package/dist/types/src/blueprints/websearch/websearch-toolkit.d.ts +1 -0
- package/dist/types/src/blueprints/websearch/websearch-toolkit.d.ts.map +1 -1
- package/dist/types/src/{functions/research → crud}/graph.d.ts +14 -11
- package/dist/types/src/crud/graph.d.ts.map +1 -0
- package/dist/types/src/crud/graph.test.d.ts.map +1 -0
- package/dist/types/src/crud/index.d.ts +2 -0
- package/dist/types/src/crud/index.d.ts.map +1 -0
- package/dist/types/src/functions/agent/prompt.d.ts +73 -8
- package/dist/types/src/functions/agent/prompt.d.ts.map +1 -1
- package/dist/types/src/functions/discord/fetch-messages.d.ts +1 -1
- package/dist/types/src/functions/discord/index.d.ts +1 -1
- package/dist/types/src/functions/discord/index.d.ts.map +1 -1
- package/dist/types/src/functions/document/index.d.ts +3 -2
- package/dist/types/src/functions/document/index.d.ts.map +1 -1
- package/dist/types/src/functions/document/read.d.ts +1 -1
- package/dist/types/src/functions/document/read.d.ts.map +1 -1
- package/dist/types/src/functions/document/update.d.ts +1 -1
- package/dist/types/src/functions/document/update.d.ts.map +1 -1
- package/dist/types/src/functions/entity-extraction/entity-extraction.d.ts +126 -125
- package/dist/types/src/functions/entity-extraction/entity-extraction.d.ts.map +1 -1
- package/dist/types/src/functions/entity-extraction/index.d.ts +126 -125
- package/dist/types/src/functions/entity-extraction/index.d.ts.map +1 -1
- package/dist/types/src/functions/exa/data/exa-search-1748337321991.d.ts.map +1 -0
- package/dist/types/src/functions/exa/data/exa-search-1748337331526.d.ts.map +1 -0
- package/dist/types/src/functions/exa/data/exa-search-1748337344119.d.ts.map +1 -0
- package/dist/types/src/functions/exa/data/index.d.ts.map +1 -0
- package/dist/types/src/functions/exa/exa.d.ts +1 -1
- package/dist/types/src/functions/exa/mock.d.ts +1 -1
- package/dist/types/src/functions/github/fetch-prs.d.ts +1 -1
- package/dist/types/src/functions/github/fetch-prs.d.ts.map +1 -1
- package/dist/types/src/functions/linear/index.d.ts +2 -2
- package/dist/types/src/functions/linear/index.d.ts.map +1 -1
- package/dist/types/src/functions/linear/sync-issues.d.ts +2 -2
- package/dist/types/src/functions/linear/sync-issues.d.ts.map +1 -1
- package/dist/types/src/functions/research/document-create.d.ts +9 -0
- package/dist/types/src/functions/research/document-create.d.ts.map +1 -0
- package/dist/types/src/functions/research/index.d.ts +8 -6
- package/dist/types/src/functions/research/index.d.ts.map +1 -1
- package/dist/types/src/functions/research/research-graph.d.ts +9 -8
- package/dist/types/src/functions/research/research-graph.d.ts.map +1 -1
- package/dist/types/src/functions/research/research.d.ts +4 -3
- package/dist/types/src/functions/research/research.d.ts.map +1 -1
- package/dist/types/src/functions/research/types.d.ts +2 -380
- package/dist/types/src/functions/research/types.d.ts.map +1 -1
- package/dist/types/src/functions/tasks/index.d.ts +2 -2
- package/dist/types/src/functions/tasks/index.d.ts.map +1 -1
- package/dist/types/src/functions/tasks/read.d.ts +1 -1
- package/dist/types/src/functions/tasks/read.d.ts.map +1 -1
- package/dist/types/src/functions/tasks/update.d.ts +1 -1
- package/dist/types/src/functions/tasks/update.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/initiative/Initiative.d.ts +84 -0
- package/dist/types/src/initiative/Initiative.d.ts.map +1 -0
- package/dist/types/src/initiative/InitiativeSchema.d.ts +19 -0
- package/dist/types/src/initiative/InitiativeSchema.d.ts.map +1 -0
- package/dist/types/src/initiative/functions/agent.d.ts +37 -0
- package/dist/types/src/initiative/functions/agent.d.ts.map +1 -0
- package/dist/types/src/initiative/functions/getContext.d.ts +17 -0
- package/dist/types/src/initiative/functions/getContext.d.ts.map +1 -0
- package/dist/types/src/initiative/functions/index.d.ts +4 -0
- package/dist/types/src/initiative/functions/index.d.ts.map +1 -0
- package/dist/types/src/{functions/research/create-document.d.ts → initiative/functions/update.d.ts} +3 -3
- package/dist/types/src/initiative/functions/update.d.ts.map +1 -0
- package/dist/types/src/initiative/index.d.ts +1 -0
- package/dist/types/src/initiative/index.d.ts.map +1 -0
- package/dist/types/src/initiative/initiative.test.d.ts +2 -0
- package/dist/types/src/initiative/initiative.test.d.ts.map +1 -0
- package/dist/types/src/sync/sync.d.ts +3 -3
- package/dist/types/src/sync/sync.d.ts.map +1 -1
- package/dist/types/src/testing/index.d.ts +1 -1
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/testing/plugins.d.ts +19 -0
- package/dist/types/src/testing/plugins.d.ts.map +1 -0
- package/dist/types/src/toolkits/AssistantToolkit.d.ts +43 -0
- package/dist/types/src/toolkits/AssistantToolkit.d.ts.map +1 -0
- package/dist/types/src/toolkits/AssistantToolkit.test.d.ts +2 -0
- package/dist/types/src/toolkits/AssistantToolkit.test.d.ts.map +1 -0
- package/dist/types/src/toolkits/SystemToolkit.d.ts +99 -0
- package/dist/types/src/toolkits/SystemToolkit.d.ts.map +1 -0
- package/dist/types/src/toolkits/index.d.ts +3 -0
- package/dist/types/src/toolkits/index.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +49 -33
- package/src/blueprints/design/design-blueprint.test.ts +17 -20
- package/src/blueprints/design/design-blueprint.ts +4 -6
- package/src/blueprints/design/index.ts +1 -1
- package/src/blueprints/discord/discord-blueprint.ts +4 -6
- package/src/blueprints/discord/index.ts +1 -1
- package/src/blueprints/linear/index.ts +1 -1
- package/src/blueprints/linear/linear-blueprint.ts +4 -6
- package/src/blueprints/planning/index.ts +1 -1
- package/src/blueprints/planning/planning-blueprint.test.ts +17 -20
- package/src/blueprints/planning/planning-blueprint.ts +4 -6
- package/src/blueprints/research/index.ts +1 -1
- package/src/blueprints/research/research-blueprint.ts +25 -19
- package/src/blueprints/testing.ts +2 -2
- package/src/blueprints/websearch/index.ts +2 -1
- package/src/blueprints/websearch/websearch-blueprint.ts +4 -6
- package/src/crud/graph.test.ts +46 -0
- package/src/{functions/research → crud}/graph.ts +32 -40
- package/src/crud/index.ts +5 -0
- package/src/experimental/feed.test.ts +12 -9
- package/src/functions/agent/prompt.ts +39 -22
- package/src/functions/discord/fetch-messages.test.ts +6 -7
- package/src/functions/discord/fetch-messages.ts +11 -10
- package/src/functions/document/index.ts +1 -0
- package/src/functions/document/read.ts +4 -3
- package/src/functions/document/update.ts +7 -4
- package/src/functions/entity-extraction/entity-extraction.conversations.json +6597 -1
- package/src/functions/entity-extraction/entity-extraction.test.ts +16 -23
- package/src/functions/entity-extraction/entity-extraction.ts +51 -31
- package/src/functions/exa/mock.ts +1 -1
- package/src/functions/github/fetch-prs.ts +3 -2
- package/src/functions/linear/linear.test.ts +18 -20
- package/src/functions/linear/sync-issues.ts +14 -12
- package/src/functions/research/document-create.ts +76 -0
- package/src/functions/research/index.ts +1 -2
- package/src/functions/research/research-graph.ts +13 -11
- package/src/functions/research/{instructions-research.tpl → research-instructions.tpl} +14 -6
- package/src/functions/research/research.conversations.json +1 -10714
- package/src/functions/research/research.test.ts +92 -161
- package/src/functions/research/research.ts +88 -54
- package/src/functions/research/types.ts +14 -12
- package/src/functions/tasks/read.ts +4 -3
- package/src/functions/tasks/update.ts +4 -3
- package/src/index.ts +2 -1
- package/src/initiative/Initiative.ts +99 -0
- package/src/initiative/InitiativeSchema.ts +37 -0
- package/src/initiative/functions/agent.ts +57 -0
- package/src/initiative/functions/getContext.ts +74 -0
- package/src/initiative/functions/index.ts +7 -0
- package/src/initiative/functions/update.ts +63 -0
- package/src/initiative/index.ts +3 -0
- package/src/initiative/initiative.conversations.json +1 -0
- package/src/initiative/initiative.test.ts +485 -0
- package/src/sync/sync.ts +38 -30
- package/src/testing/index.ts +1 -1
- package/src/{plugins.tsx → testing/plugins.tsx} +15 -15
- package/src/toolkits/AssistantToolkit.conversations.json +1 -0
- package/src/toolkits/AssistantToolkit.test.ts +94 -0
- package/src/toolkits/AssistantToolkit.ts +70 -0
- package/src/toolkits/SystemToolkit.ts +299 -0
- package/src/toolkits/index.ts +6 -0
- package/dist/types/src/functions/research/create-document.d.ts.map +0 -1
- package/dist/types/src/functions/research/graph.d.ts.map +0 -1
- package/dist/types/src/functions/research/graph.test.d.ts.map +0 -1
- package/dist/types/src/plugins.d.ts +0 -19
- package/dist/types/src/plugins.d.ts.map +0 -1
- package/dist/types/src/testing/data/exa-search-1748337321991.d.ts.map +0 -1
- package/dist/types/src/testing/data/exa-search-1748337331526.d.ts.map +0 -1
- package/dist/types/src/testing/data/exa-search-1748337344119.d.ts.map +0 -1
- package/dist/types/src/testing/data/index.d.ts.map +0 -1
- package/src/functions/research/create-document.ts +0 -69
- package/src/functions/research/graph.test.ts +0 -69
- /package/dist/types/src/{functions/research → crud}/graph.test.d.ts +0 -0
- /package/dist/types/src/{testing → functions/exa}/data/exa-search-1748337321991.d.ts +0 -0
- /package/dist/types/src/{testing → functions/exa}/data/exa-search-1748337331526.d.ts +0 -0
- /package/dist/types/src/{testing → functions/exa}/data/exa-search-1748337344119.d.ts +0 -0
- /package/dist/types/src/{testing → functions/exa}/data/index.d.ts +0 -0
- /package/src/{testing → functions/exa}/data/exa-search-1748337321991.ts +0 -0
- /package/src/{testing → functions/exa}/data/exa-search-1748337331526.ts +0 -0
- /package/src/{testing → functions/exa}/data/exa-search-1748337344119.ts +0 -0
- /package/src/{testing → functions/exa}/data/index.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"research-blueprint.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/research/research-blueprint.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"research-blueprint.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/research/research-blueprint.ts"],"names":[],"mappings":"AA0CA,eAAO,MAAM,SAAS;;;;;;;;uBAEN,CAAC;6BACsB,CAAC;;yBAEF,CAAC;4BAIK,CAAC;;;;EAD3C,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Toolkit from '@effect/ai/Toolkit';
|
|
2
2
|
import * as Effect from 'effect/Effect';
|
|
3
|
-
import { type AiConversation, type
|
|
4
|
-
export type TestStep = Pick<
|
|
3
|
+
import { type AiConversation, type AiConversationRunProps } from '@dxos/assistant';
|
|
4
|
+
export type TestStep = Pick<AiConversationRunProps, 'prompt' | 'system'> & {
|
|
5
5
|
test?: () => Promise<void>;
|
|
6
6
|
};
|
|
7
7
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../src/blueprints/testing.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../src/blueprints/testing.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,sBAAsB,EAAsB,MAAM,iBAAiB,CAAC;AAGvG,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,sBAAsB,EAAE,QAAQ,GAAG,QAAQ,CAAC,GAAG;IACzE,IAAI,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,2KAYnB,CAAC;AAGH,eAAO,MAAM,WAAW,EAAoB,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/websearch/index.ts"],"names":[],"mappings":"AAIA,OAAO,SAAS,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/websearch/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,eAAe,SAAS,CAAC"}
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare const blueprint: import("@dxos/echo/Obj").Obj<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
2
|
+
readonly description?: string | undefined;
|
|
3
|
+
readonly name: string;
|
|
4
|
+
readonly key: string;
|
|
5
|
+
readonly instructions: {
|
|
6
|
+
readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
7
|
+
readonly content: string;
|
|
8
|
+
}>;
|
|
9
|
+
readonly inputs?: readonly {
|
|
10
|
+
readonly function?: string | undefined;
|
|
11
|
+
readonly name: string;
|
|
12
|
+
readonly kind?: "function" | "value" | "pass-through" | "retriever" | "query" | "resolver" | "context" | "schema" | undefined;
|
|
13
|
+
readonly default?: any;
|
|
14
|
+
}[] | undefined;
|
|
15
|
+
};
|
|
16
|
+
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
17
|
+
}>;
|
|
4
18
|
//# sourceMappingURL=websearch-blueprint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"websearch-blueprint.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/websearch/websearch-blueprint.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"websearch-blueprint.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/websearch/websearch-blueprint.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;uBAS29C,CAAC;6BAA0C,CAAC;;yBAAkF,CAAC;4BAA6I,CAAC;;;;EAD5vD,CAAC"}
|
|
@@ -21,6 +21,7 @@ export declare const WebSearchToolkit: Toolkit.Toolkit<{
|
|
|
21
21
|
readonly parameters: import("effect/Schema").Struct<{}>;
|
|
22
22
|
readonly success: import("effect/Schema").Array$<typeof import("@effect/ai-anthropic/Generated").RequestWebSearchResultBlock>;
|
|
23
23
|
readonly failure: typeof import("@effect/ai-anthropic/Generated").ResponseWebSearchToolResultError;
|
|
24
|
+
readonly failureMode: "error";
|
|
24
25
|
}, false>;
|
|
25
26
|
}>;
|
|
26
27
|
//# sourceMappingURL=websearch-toolkit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"websearch-toolkit.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/websearch/websearch-toolkit.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAG9C,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"websearch-toolkit.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/websearch/websearch-toolkit.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAG9C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;EAAqD,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as Tool from '@effect/ai/Tool';
|
|
2
2
|
import * as Toolkit from '@effect/ai/Toolkit';
|
|
3
3
|
import * as Schema from 'effect/Schema';
|
|
4
|
-
import { Obj } from '@dxos/echo';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { Obj, Type } from '@dxos/echo';
|
|
5
|
+
import { Database } from '@dxos/echo';
|
|
6
|
+
import { type Queue } from '@dxos/echo-db';
|
|
7
|
+
import { ContextQueueService } from '@dxos/functions';
|
|
7
8
|
import { DXN } from '@dxos/keys';
|
|
8
9
|
export declare const Subgraph: Schema.Struct<{
|
|
9
10
|
/** Objects and relations. */
|
|
@@ -12,7 +13,7 @@ export declare const Subgraph: Schema.Struct<{
|
|
|
12
13
|
export interface Subgraph extends Schema.Schema.Type<typeof Subgraph> {
|
|
13
14
|
}
|
|
14
15
|
export type RelatedSchema = {
|
|
15
|
-
schema:
|
|
16
|
+
schema: Type.Entity.Any;
|
|
16
17
|
kind: 'reference' | 'relation';
|
|
17
18
|
};
|
|
18
19
|
/**
|
|
@@ -22,7 +23,7 @@ export type RelatedSchema = {
|
|
|
22
23
|
* @param schema
|
|
23
24
|
* @returns
|
|
24
25
|
*/
|
|
25
|
-
export declare const findRelatedSchema: (db:
|
|
26
|
+
export declare const findRelatedSchema: (db: Database.Database, anchor: Type.Entity.Any) => Promise<RelatedSchema[]>;
|
|
26
27
|
/**
|
|
27
28
|
* Perform vector search in the local database.
|
|
28
29
|
*/
|
|
@@ -33,14 +34,15 @@ export declare const LocalSearchToolkit: Toolkit.Toolkit<{
|
|
|
33
34
|
}>;
|
|
34
35
|
readonly success: typeof Schema.Unknown;
|
|
35
36
|
readonly failure: typeof Schema.Never;
|
|
36
|
-
|
|
37
|
+
readonly failureMode: "error";
|
|
38
|
+
}, Database.Service>;
|
|
37
39
|
}>;
|
|
38
40
|
export declare const LocalSearchHandler: import("effect/Layer").Layer<Tool.Handler<"search_local_search">, never, never>;
|
|
39
41
|
/**
|
|
40
42
|
* Forms typed objects that can be written to the graph database.
|
|
41
43
|
*/
|
|
42
44
|
export declare const makeGraphWriterToolkit: ({ schema }: {
|
|
43
|
-
schema:
|
|
45
|
+
schema: Type.Entity.Any[];
|
|
44
46
|
}) => Toolkit.Toolkit<{
|
|
45
47
|
readonly graph_writer: Tool.Tool<"graph_writer", {
|
|
46
48
|
readonly parameters: Schema.Struct<Readonly<{
|
|
@@ -48,7 +50,8 @@ export declare const makeGraphWriterToolkit: ({ schema }: {
|
|
|
48
50
|
}>>;
|
|
49
51
|
readonly success: typeof Schema.Unknown;
|
|
50
52
|
readonly failure: typeof Schema.Never;
|
|
51
|
-
|
|
53
|
+
readonly failureMode: "error";
|
|
54
|
+
}, Database.Service | ContextQueueService>;
|
|
52
55
|
}>;
|
|
53
56
|
export declare const makeGraphWriterHandler: (toolkit: ReturnType<typeof makeGraphWriterToolkit>, { onAppend, }?: {
|
|
54
57
|
onAppend?: (object: DXN[]) => void;
|
|
@@ -56,9 +59,9 @@ export declare const makeGraphWriterHandler: (toolkit: ReturnType<typeof makeGra
|
|
|
56
59
|
/**
|
|
57
60
|
* Create a schema for structured data extraction.
|
|
58
61
|
*/
|
|
59
|
-
export declare const createExtractionSchema: (types:
|
|
62
|
+
export declare const createExtractionSchema: (types: Type.Entity.Any[]) => Schema.Struct<{
|
|
60
63
|
[k: string]: Schema.optional<Schema.Array$<Schema.Schema.AnyNoContext>>;
|
|
61
64
|
}>;
|
|
62
|
-
export declare const getSanitizedSchemaName: (schema:
|
|
63
|
-
export declare const sanitizeObjects: (types:
|
|
65
|
+
export declare const getSanitizedSchemaName: (schema: Type.Entity.Any) => string;
|
|
66
|
+
export declare const sanitizeObjects: (types: Type.Entity.Any[], data: Record<string, readonly unknown[]>, db: Database.Database, queue?: Queue) => Promise<Obj.Unknown[]>;
|
|
64
67
|
//# sourceMappingURL=graph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../../../src/crud/graph.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAK9C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAkB,GAAG,EAAS,IAAI,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAWtC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAG3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,GAAG,EAAY,MAAM,YAAY,CAAC;AAK3C,eAAO,MAAM,QAAQ;IACnB,6BAA6B;;EAE7B,CAAC;AAEH,MAAM,WAAW,QAAS,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,CAAC;CAAG;AAExE,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC;IACxB,IAAI,EAAE,WAAW,GAAG,UAAU,CAAC;CAChC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,GAAU,IAAI,QAAQ,CAAC,QAAQ,EAAE,QAAQ,IAAI,CAAC,MAAM,CAAC,GAAG,KAAG,OAAO,CAAC,aAAa,EAAE,CAsB/G,CAAC;AAmBF;;GAEG;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;EAY9B,CAAC;AAEF,eAAO,MAAM,kBAAkB,iFAkB7B,CAAC;AAYH;;GAEG;AACH,eAAO,MAAM,sBAAsB,GAAI,YAAY;IAAE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,CAAA;CAAE;;;;;;;;;EAU/E,CAAC;AAEF,eAAO,MAAM,sBAAsB,GACjC,SAAS,UAAU,CAAC,OAAO,sBAAsB,CAAC,EAClD,gBAEG;IACD,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;CAC/B,6EAmBP,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,GAAI,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE;;EAW9D,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,QAAQ,IAAI,CAAC,MAAM,CAAC,GAAG,WAI7D,CAAC;AAEF,eAAO,MAAM,eAAe,GAC1B,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,EACxB,MAAM,MAAM,CAAC,MAAM,EAAE,SAAS,OAAO,EAAE,CAAC,EACxC,IAAI,QAAQ,CAAC,QAAQ,EACrB,QAAQ,KAAK,KACZ,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,CAyHvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph.test.d.ts","sourceRoot":"","sources":["../../../../src/crud/graph.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/crud/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC"}
|
|
@@ -1,11 +1,76 @@
|
|
|
1
|
-
import { Prompt } from '@dxos/blueprints';
|
|
2
1
|
declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
3
|
-
readonly prompt: import("@dxos/echo/internal").Ref<
|
|
4
|
-
|
|
5
|
-
readonly
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
readonly prompt: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
3
|
+
readonly description?: string | undefined;
|
|
4
|
+
readonly name?: string | undefined;
|
|
5
|
+
readonly context: readonly any[];
|
|
6
|
+
readonly instructions: {
|
|
7
|
+
readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
8
|
+
readonly content: string;
|
|
9
|
+
}>;
|
|
10
|
+
readonly inputs?: readonly {
|
|
11
|
+
readonly function?: string | undefined;
|
|
12
|
+
readonly name: string;
|
|
13
|
+
readonly kind?: "function" | "value" | "pass-through" | "retriever" | "query" | "resolver" | "context" | "schema" | undefined;
|
|
14
|
+
readonly default?: any;
|
|
15
|
+
}[] | undefined;
|
|
16
|
+
};
|
|
17
|
+
readonly input: import("@dxos/echo/internal").JsonSchemaType;
|
|
18
|
+
readonly output: import("@dxos/echo/internal").JsonSchemaType;
|
|
19
|
+
readonly blueprints: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
20
|
+
readonly description?: string | undefined;
|
|
21
|
+
readonly name: string;
|
|
22
|
+
readonly key: string;
|
|
23
|
+
readonly instructions: {
|
|
24
|
+
readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
25
|
+
readonly content: string;
|
|
26
|
+
}>;
|
|
27
|
+
readonly inputs?: readonly {
|
|
28
|
+
readonly function?: string | undefined;
|
|
29
|
+
readonly name: string;
|
|
30
|
+
readonly kind?: "function" | "value" | "pass-through" | "retriever" | "query" | "resolver" | "context" | "schema" | undefined;
|
|
31
|
+
readonly default?: any;
|
|
32
|
+
}[] | undefined;
|
|
33
|
+
};
|
|
34
|
+
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
35
|
+
}>[];
|
|
36
|
+
}>;
|
|
37
|
+
readonly input: any;
|
|
38
|
+
readonly systemPrompt?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
39
|
+
readonly description?: string | undefined;
|
|
40
|
+
readonly name?: string | undefined;
|
|
41
|
+
readonly context: readonly any[];
|
|
42
|
+
readonly instructions: {
|
|
43
|
+
readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
44
|
+
readonly content: string;
|
|
45
|
+
}>;
|
|
46
|
+
readonly inputs?: readonly {
|
|
47
|
+
readonly function?: string | undefined;
|
|
48
|
+
readonly name: string;
|
|
49
|
+
readonly kind?: "function" | "value" | "pass-through" | "retriever" | "query" | "resolver" | "context" | "schema" | undefined;
|
|
50
|
+
readonly default?: any;
|
|
51
|
+
}[] | undefined;
|
|
52
|
+
};
|
|
53
|
+
readonly input: import("@dxos/echo/internal").JsonSchemaType;
|
|
54
|
+
readonly output: import("@dxos/echo/internal").JsonSchemaType;
|
|
55
|
+
readonly blueprints: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
56
|
+
readonly description?: string | undefined;
|
|
57
|
+
readonly name: string;
|
|
58
|
+
readonly key: string;
|
|
59
|
+
readonly instructions: {
|
|
60
|
+
readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
61
|
+
readonly content: string;
|
|
62
|
+
}>;
|
|
63
|
+
readonly inputs?: readonly {
|
|
64
|
+
readonly function?: string | undefined;
|
|
65
|
+
readonly name: string;
|
|
66
|
+
readonly kind?: "function" | "value" | "pass-through" | "retriever" | "query" | "resolver" | "context" | "schema" | undefined;
|
|
67
|
+
readonly default?: any;
|
|
68
|
+
}[] | undefined;
|
|
69
|
+
};
|
|
70
|
+
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
71
|
+
}>[];
|
|
72
|
+
}> | undefined;
|
|
73
|
+
readonly model?: "@anthropic/claude-3-5-haiku-latest" | "@anthropic/claude-3-5-haiku-20241022" | "@anthropic/claude-3-5-sonnet-20241022" | "@anthropic/claude-opus-4-0" | "@anthropic/claude-haiku-4-5" | "@anthropic/claude-sonnet-4-0" | "@anthropic/claude-sonnet-4-5" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@hf/nousresearch/hermes-2-pro-mistral-7b" | "@ollama/llama-3-1-nemotron-70b-instruct" | "@ollama/llama-3-1-nemotron-mini-4b-instruct" | "@ollama/llama-3-2-3b" | "@google/gemma-3-27b" | "@meta/llama-3.1-8b-instruct" | "@meta/llama-3.2-3b-instruct" | "ministral-3-14b-reasoning" | "openai/gpt-oss-20b" | "qwen2.5:14b" | "llama3.2:1b" | "llama3:70b" | "deepseek-r1:latest" | "@openai/gpt-4o" | "@openai/gpt-4o-mini" | "@openai/o1" | "@openai/o3" | "@openai/o3-mini" | undefined;
|
|
74
|
+
}, any, import("@dxos/functions").FunctionServices>;
|
|
10
75
|
export default _default;
|
|
11
76
|
//# sourceMappingURL=prompt.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../../../../src/functions/agent/prompt.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../../../../src/functions/agent/prompt.ts"],"names":[],"mappings":";;;;;;;;;2BAiBa,CAAA;iCAEQ,CAAC;;6BAGd,CAAC;gCAGJ,CAAC;;;;;;gCAW2C,CAAC;;;;;;;+BAkB9C,CATA;qCAA8C,CAAC;;iCAGlC,CAAA;oCAGoB,CAAC;;;;;;;;;;;;;;;2BAlCzB,CAAA;iCAEQ,CAAC;;6BAGd,CAAC;gCAGJ,CAAC;;;;;;gCAW2C,CAAC;;;;;;;+BAkB9C,CATA;qCAA8C,CAAC;;iCAGlC,CAAA;oCAGoB,CAAC;;;;;;;;AA9BtC,wBAgGG"}
|
|
@@ -6,6 +6,6 @@ declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
|
6
6
|
readonly limit?: number | undefined;
|
|
7
7
|
readonly pageSize?: number | undefined;
|
|
8
8
|
readonly ignoreUsernames?: readonly string[] | undefined;
|
|
9
|
-
}, string>;
|
|
9
|
+
}, string, import("@dxos/functions").FunctionServices>;
|
|
10
10
|
export default _default;
|
|
11
11
|
//# sourceMappingURL=fetch-messages.d.ts.map
|
|
@@ -7,6 +7,6 @@ export declare namespace Discord {
|
|
|
7
7
|
readonly limit?: number | undefined;
|
|
8
8
|
readonly pageSize?: number | undefined;
|
|
9
9
|
readonly ignoreUsernames?: readonly string[] | undefined;
|
|
10
|
-
}, string>;
|
|
10
|
+
}, string, import("@dxos/functions").FunctionServices>;
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/functions/discord/index.ts"],"names":[],"mappings":"AAMA,yBAAiB,OAAO,CAAC;IAChB,MAAM,KAAK;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/functions/discord/index.ts"],"names":[],"mappings":"AAMA,yBAAiB,OAAO,CAAC;IAChB,MAAM,KAAK;;;;;;;;0DAAS,CAAC;CAC7B"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
/** @deprecated */
|
|
1
2
|
export declare namespace Document {
|
|
2
3
|
const read: import("@dxos/functions").FunctionDefinition<{
|
|
3
4
|
readonly id: string;
|
|
4
5
|
}, {
|
|
5
6
|
readonly content: string;
|
|
6
|
-
}>;
|
|
7
|
+
}, import("@dxos/functions").FunctionServices>;
|
|
7
8
|
const update: import("@dxos/functions").FunctionDefinition<{
|
|
8
9
|
readonly id: string;
|
|
9
10
|
readonly content: string;
|
|
10
|
-
}, void>;
|
|
11
|
+
}, void, import("@dxos/functions").FunctionServices>;
|
|
11
12
|
}
|
|
12
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/functions/document/index.ts"],"names":[],"mappings":"AAOA,yBAAiB,QAAQ,CAAC;IACjB,MAAM,IAAI;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/functions/document/index.ts"],"names":[],"mappings":"AAOA,kBAAkB;AAClB,yBAAiB,QAAQ,CAAC;IACjB,MAAM,IAAI;;;;kDAAQ,CAAC;IACnB,MAAM,MAAM;;;wDAAU,CAAC;CAC/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../../../src/functions/document/read.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../../../src/functions/document/read.ts"],"names":[],"mappings":";;;;;AAYA,wBAiBG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../../src/functions/document/update.ts"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../../src/functions/document/update.ts"],"names":[],"mappings":";;;;AAYA,wBAoBG"}
|