@dxos/assistant-toolkit 0.8.4-main.548089c → 0.8.4-main.69d29f4
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 +388 -285
- 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 +388 -285
- 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/crud/graph.d.ts +14 -11
- package/dist/types/src/crud/graph.d.ts.map +1 -1
- package/dist/types/src/functions/agent/prompt.d.ts +72 -5
- 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 +2 -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 +1 -1
- package/dist/types/src/functions/research/document-create.d.ts.map +1 -1
- package/dist/types/src/functions/research/index.d.ts +2 -2
- 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 +1 -1
- package/dist/types/src/functions/research/research.d.ts.map +1 -1
- package/dist/types/src/functions/research/types.d.ts +1 -1
- 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 +0 -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/initiative/functions/update.d.ts +7 -0
- 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 +31 -5
- package/dist/types/src/toolkits/AssistantToolkit.d.ts.map +1 -1
- package/dist/types/src/toolkits/SystemToolkit.d.ts +42 -10
- package/dist/types/src/toolkits/SystemToolkit.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +49 -35
- package/src/blueprints/design/design-blueprint.test.ts +10 -8
- package/src/blueprints/design/design-blueprint.ts +2 -4
- package/src/blueprints/design/index.ts +1 -1
- package/src/blueprints/discord/discord-blueprint.ts +2 -4
- package/src/blueprints/discord/index.ts +1 -1
- package/src/blueprints/linear/index.ts +1 -1
- package/src/blueprints/linear/linear-blueprint.ts +2 -4
- package/src/blueprints/planning/index.ts +1 -1
- package/src/blueprints/planning/planning-blueprint.test.ts +8 -6
- package/src/blueprints/planning/planning-blueprint.ts +2 -4
- package/src/blueprints/research/index.ts +1 -1
- package/src/blueprints/research/research-blueprint.ts +2 -4
- package/src/blueprints/testing.ts +2 -2
- package/src/blueprints/websearch/index.ts +2 -1
- package/src/blueprints/websearch/websearch-blueprint.ts +2 -4
- package/src/crud/graph.test.ts +4 -27
- package/src/crud/graph.ts +32 -40
- package/src/experimental/feed.test.ts +1 -1
- package/src/functions/agent/prompt.ts +17 -13
- package/src/functions/discord/fetch-messages.test.ts +1 -1
- package/src/functions/discord/fetch-messages.ts +1 -1
- 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 +7 -6
- package/src/functions/entity-extraction/entity-extraction.ts +46 -28
- package/src/functions/exa/mock.ts +1 -1
- package/src/functions/github/fetch-prs.ts +3 -2
- package/src/functions/linear/linear.test.ts +11 -10
- package/src/functions/linear/sync-issues.ts +7 -5
- package/src/functions/research/document-create.ts +7 -6
- package/src/functions/research/research-graph.ts +13 -11
- package/src/functions/research/research.conversations.json +1 -1
- package/src/functions/research/research.test.ts +24 -32
- package/src/functions/research/research.ts +8 -9
- package/src/functions/research/types.ts +1 -1
- package/src/functions/tasks/read.ts +4 -3
- package/src/functions/tasks/update.ts +4 -3
- package/src/index.ts +0 -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 -1
- package/src/toolkits/AssistantToolkit.test.ts +17 -11
- package/src/toolkits/AssistantToolkit.ts +31 -8
- package/src/toolkits/SystemToolkit.ts +100 -32
- 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/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
|
@@ -2,7 +2,7 @@ import * as Tool from '@effect/ai/Tool';
|
|
|
2
2
|
import * as Toolkit from '@effect/ai/Toolkit';
|
|
3
3
|
import type * as Layer from 'effect/Layer';
|
|
4
4
|
import * as Schema from 'effect/Schema';
|
|
5
|
-
import {
|
|
5
|
+
import { Database } from '@dxos/echo';
|
|
6
6
|
export declare const SystemToolkit: Toolkit.Toolkit<{
|
|
7
7
|
readonly "schema-list": Tool.Tool<"schema-list", {
|
|
8
8
|
readonly parameters: Schema.Struct<{
|
|
@@ -10,7 +10,8 @@ export declare const SystemToolkit: Toolkit.Toolkit<{
|
|
|
10
10
|
}>;
|
|
11
11
|
readonly success: typeof Schema.Any;
|
|
12
12
|
readonly failure: typeof Schema.Never;
|
|
13
|
-
|
|
13
|
+
readonly failureMode: "error";
|
|
14
|
+
}, Database.Service>;
|
|
14
15
|
readonly "schema-add": Tool.Tool<"schema-add", {
|
|
15
16
|
readonly parameters: Schema.Struct<{
|
|
16
17
|
name: typeof Schema.String;
|
|
@@ -19,7 +20,16 @@ export declare const SystemToolkit: Toolkit.Toolkit<{
|
|
|
19
20
|
}>;
|
|
20
21
|
readonly success: typeof Schema.Any;
|
|
21
22
|
readonly failure: typeof Schema.Never;
|
|
22
|
-
|
|
23
|
+
readonly failureMode: "error";
|
|
24
|
+
}, Database.Service>;
|
|
25
|
+
readonly query: Tool.Tool<"query", {
|
|
26
|
+
readonly parameters: Schema.Struct<{
|
|
27
|
+
typename: typeof Schema.String;
|
|
28
|
+
}>;
|
|
29
|
+
readonly success: typeof Schema.Any;
|
|
30
|
+
readonly failure: typeof Schema.Never;
|
|
31
|
+
readonly failureMode: "error";
|
|
32
|
+
}, Database.Service>;
|
|
23
33
|
readonly "object-create": Tool.Tool<"object-create", {
|
|
24
34
|
readonly parameters: Schema.Struct<{
|
|
25
35
|
typename: typeof Schema.String;
|
|
@@ -27,14 +37,25 @@ export declare const SystemToolkit: Toolkit.Toolkit<{
|
|
|
27
37
|
}>;
|
|
28
38
|
readonly success: typeof Schema.Any;
|
|
29
39
|
readonly failure: typeof Schema.Never;
|
|
30
|
-
|
|
31
|
-
|
|
40
|
+
readonly failureMode: "error";
|
|
41
|
+
}, Database.Service>;
|
|
42
|
+
readonly "object-delete": Tool.Tool<"object-delete", {
|
|
32
43
|
readonly parameters: Schema.Struct<{
|
|
33
44
|
id: Schema.Schema<string, string, never>;
|
|
34
45
|
}>;
|
|
35
46
|
readonly success: typeof Schema.Any;
|
|
36
47
|
readonly failure: typeof Schema.Never;
|
|
37
|
-
|
|
48
|
+
readonly failureMode: "error";
|
|
49
|
+
}, Database.Service>;
|
|
50
|
+
readonly "object-update": Tool.Tool<"object-update", {
|
|
51
|
+
readonly parameters: Schema.Struct<{
|
|
52
|
+
id: Schema.Schema<string, string, never>;
|
|
53
|
+
properties: Schema.Record$<typeof Schema.String, typeof Schema.Any>;
|
|
54
|
+
}>;
|
|
55
|
+
readonly success: typeof Schema.Any;
|
|
56
|
+
readonly failure: typeof Schema.Never;
|
|
57
|
+
readonly failureMode: "error";
|
|
58
|
+
}, Database.Service>;
|
|
38
59
|
readonly "relation-create": Tool.Tool<"relation-create", {
|
|
39
60
|
readonly parameters: Schema.Struct<{
|
|
40
61
|
typename: typeof Schema.String;
|
|
@@ -44,7 +65,16 @@ export declare const SystemToolkit: Toolkit.Toolkit<{
|
|
|
44
65
|
}>;
|
|
45
66
|
readonly success: typeof Schema.Any;
|
|
46
67
|
readonly failure: typeof Schema.Never;
|
|
47
|
-
|
|
68
|
+
readonly failureMode: "error";
|
|
69
|
+
}, Database.Service>;
|
|
70
|
+
readonly "relation-delete": Tool.Tool<"relation-delete", {
|
|
71
|
+
readonly parameters: Schema.Struct<{
|
|
72
|
+
id: Schema.Schema<string, string, never>;
|
|
73
|
+
}>;
|
|
74
|
+
readonly success: typeof Schema.Any;
|
|
75
|
+
readonly failure: typeof Schema.Never;
|
|
76
|
+
readonly failureMode: "error";
|
|
77
|
+
}, Database.Service>;
|
|
48
78
|
readonly "tag-add": Tool.Tool<"tag-add", {
|
|
49
79
|
readonly parameters: Schema.Struct<{
|
|
50
80
|
tagId: Schema.Schema<string, string, never>;
|
|
@@ -52,7 +82,8 @@ export declare const SystemToolkit: Toolkit.Toolkit<{
|
|
|
52
82
|
}>;
|
|
53
83
|
readonly success: typeof Schema.Any;
|
|
54
84
|
readonly failure: typeof Schema.Never;
|
|
55
|
-
|
|
85
|
+
readonly failureMode: "error";
|
|
86
|
+
}, Database.Service>;
|
|
56
87
|
readonly "tag-remove": Tool.Tool<"tag-remove", {
|
|
57
88
|
readonly parameters: Schema.Struct<{
|
|
58
89
|
tagId: Schema.Schema<string, string, never>;
|
|
@@ -60,8 +91,9 @@ export declare const SystemToolkit: Toolkit.Toolkit<{
|
|
|
60
91
|
}>;
|
|
61
92
|
readonly success: typeof Schema.Any;
|
|
62
93
|
readonly failure: typeof Schema.Never;
|
|
63
|
-
|
|
94
|
+
readonly failureMode: "error";
|
|
95
|
+
}, Database.Service>;
|
|
64
96
|
}>;
|
|
65
|
-
export declare const tools: ("schema-list" | "schema-add" | "object-create" | "object-
|
|
97
|
+
export declare const tools: ("query" | "schema-list" | "schema-add" | "object-create" | "object-delete" | "object-update" | "relation-create" | "relation-delete" | "tag-add" | "tag-remove")[];
|
|
66
98
|
export declare const layer: () => Layer.Layer<Tool.Handler<any>, never, never>;
|
|
67
99
|
//# sourceMappingURL=SystemToolkit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SystemToolkit.d.ts","sourceRoot":"","sources":["../../../../src/toolkits/SystemToolkit.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAE9C,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAC;AAE3C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"SystemToolkit.d.ts","sourceRoot":"","sources":["../../../../src/toolkits/SystemToolkit.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAE9C,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAC;AAE3C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAO,QAAQ,EAA4C,MAAM,YAAY,CAAC;AAIrF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkLzB,CAAC;AAEF,eAAO,MAAM,KAAK,qKAAmC,CAAC;AAEtD,eAAO,MAAM,KAAK,QAAO,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,KAAK,CAoGhE,CAAC"}
|