@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-prs.d.ts","sourceRoot":"","sources":["../../../../../src/functions/github/fetch-prs.ts"],"names":[],"mappings":";;;;AAUA,
|
|
1
|
+
{"version":3,"file":"fetch-prs.d.ts","sourceRoot":"","sources":["../../../../../src/functions/github/fetch-prs.ts"],"names":[],"mappings":";;;;AAUA,wBAoBG"}
|
|
@@ -2,8 +2,8 @@ export declare namespace Linear {
|
|
|
2
2
|
const sync: import("@dxos/functions").FunctionDefinition<{
|
|
3
3
|
readonly team: string;
|
|
4
4
|
}, {
|
|
5
|
-
objects: import("@dxos/echo/Obj").
|
|
5
|
+
objects: import("@dxos/echo/Obj").Unknown[];
|
|
6
6
|
syncComplete: boolean;
|
|
7
|
-
}>;
|
|
7
|
+
}, import("@dxos/functions").FunctionServices>;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/functions/linear/index.ts"],"names":[],"mappings":"AAMA,yBAAiB,MAAM,CAAC;IACf,MAAM,IAAI;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/functions/linear/index.ts"],"names":[],"mappings":"AAMA,yBAAiB,MAAM,CAAC;IACf,MAAM,IAAI;;;;;kDAAQ,CAAC;CAC3B"}
|
|
@@ -5,8 +5,8 @@ export declare const LINEAR_UPDATED_AT_KEY = "linear.app/updatedAt";
|
|
|
5
5
|
declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
6
6
|
readonly team: string;
|
|
7
7
|
}, {
|
|
8
|
-
objects: Obj.
|
|
8
|
+
objects: Obj.Unknown[];
|
|
9
9
|
syncComplete: boolean;
|
|
10
|
-
}>;
|
|
10
|
+
}, import("@dxos/functions").FunctionServices>;
|
|
11
11
|
export default _default;
|
|
12
12
|
//# sourceMappingURL=sync-issues.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-issues.d.ts","sourceRoot":"","sources":["../../../../../src/functions/linear/sync-issues.ts"],"names":[],"mappings":"AAWA,OAAO,EAAU,GAAG,EAAyB,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"sync-issues.d.ts","sourceRoot":"","sources":["../../../../../src/functions/linear/sync-issues.ts"],"names":[],"mappings":"AAWA,OAAO,EAAU,GAAG,EAAyB,MAAM,YAAY,CAAC;AA8DhE,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AACtD,eAAO,MAAM,qBAAqB,yBAAyB,CAAC;;;;;;;AAE5D,wBAoCG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-create.d.ts","sourceRoot":"","sources":["../../../../../src/functions/research/document-create.ts"],"names":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"document-create.d.ts","sourceRoot":"","sources":["../../../../../src/functions/research/document-create.ts"],"names":[],"mappings":";;;;;;;AAgBA,wBA2DG"}
|
|
@@ -7,7 +7,7 @@ export declare namespace Research {
|
|
|
7
7
|
readonly subject: string;
|
|
8
8
|
}, {
|
|
9
9
|
readonly document: string;
|
|
10
|
-
}>;
|
|
10
|
+
}, import("@dxos/functions").FunctionServices>;
|
|
11
11
|
const research: import("@dxos/functions").FunctionDefinition<{
|
|
12
12
|
readonly instructions?: string | undefined;
|
|
13
13
|
readonly query: string;
|
|
@@ -16,6 +16,6 @@ export declare namespace Research {
|
|
|
16
16
|
}, {
|
|
17
17
|
readonly objects: readonly unknown[];
|
|
18
18
|
readonly document?: string | undefined;
|
|
19
|
-
}>;
|
|
19
|
+
}, import("@dxos/functions").FunctionServices>;
|
|
20
20
|
}
|
|
21
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/functions/research/index.ts"],"names":[],"mappings":"AAOA,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AAExB,yBAAiB,QAAQ,CAAC;IACjB,MAAM,MAAM;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/functions/research/index.ts"],"names":[],"mappings":"AAOA,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AAExB,yBAAiB,QAAQ,CAAC;IACjB,MAAM,MAAM;;;;;;kDAAU,CAAC;IACvB,MAAM,QAAQ;;;;;;;;kDAAY,CAAC;CACnC"}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import * as Effect from 'effect/Effect';
|
|
2
2
|
import * as Layer from 'effect/Layer';
|
|
3
3
|
import * as Schema from 'effect/Schema';
|
|
4
|
-
import {
|
|
4
|
+
import { Type } from '@dxos/echo';
|
|
5
|
+
import { Database } from '@dxos/echo';
|
|
5
6
|
import { Queue } from '@dxos/echo-db';
|
|
6
|
-
import { ContextQueueService,
|
|
7
|
+
import { ContextQueueService, QueueService } from '@dxos/functions';
|
|
7
8
|
/**
|
|
8
9
|
* Container for a set of ephemeral research results.
|
|
9
10
|
*/
|
|
10
|
-
export declare const ResearchGraph: Type.
|
|
11
|
-
queue:
|
|
12
|
-
}
|
|
11
|
+
export declare const ResearchGraph: Type.Obj<{
|
|
12
|
+
readonly queue: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>>;
|
|
13
|
+
}, Schema.Struct.Fields>;
|
|
13
14
|
export interface ResearchGraph extends Schema.Schema.Type<typeof ResearchGraph> {
|
|
14
15
|
}
|
|
15
|
-
export declare const queryResearchGraph: () => Effect.Effect<ResearchGraph | undefined, never,
|
|
16
|
-
export declare const createResearchGraph: () => Effect.Effect<ResearchGraph, never,
|
|
17
|
-
export declare const contextQueueLayerFromResearchGraph: Layer.Layer<ContextQueueService, import("@dxos/echo").ObjectNotFoundError,
|
|
16
|
+
export declare const queryResearchGraph: () => Effect.Effect<ResearchGraph | undefined, never, Database.Service>;
|
|
17
|
+
export declare const createResearchGraph: () => Effect.Effect<ResearchGraph, never, Database.Service | QueueService>;
|
|
18
|
+
export declare const contextQueueLayerFromResearchGraph: Layer.Layer<ContextQueueService, import("@dxos/echo/Err").ObjectNotFoundError, Database.Service | QueueService>;
|
|
18
19
|
//# sourceMappingURL=research-graph.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"research-graph.d.ts","sourceRoot":"","sources":["../../../../../src/functions/research/research-graph.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"research-graph.d.ts","sourceRoot":"","sources":["../../../../../src/functions/research/research-graph.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAmB,IAAI,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,aAAa;;wBAQzB,CAAC;AAEF,MAAM,WAAW,aAAc,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,aAAa,CAAC;CAAG;AAElF,eAAO,MAAM,kBAAkB,EAAE,MAAM,MAAM,CAAC,MAAM,CAAC,aAAa,GAAG,SAAS,EAAE,KAAK,EAAE,QAAQ,CAAC,OAAO,CAKrG,CAAC;AAEH,eAAO,MAAM,mBAAmB,EAAE,MAAM,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,KAAK,EAAE,QAAQ,CAAC,OAAO,GAAG,YAAY,CAIvG,CAAC;AAEL,eAAO,MAAM,kCAAkC,iHAM9C,CAAC"}
|
|
@@ -9,6 +9,6 @@ declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
|
9
9
|
}, {
|
|
10
10
|
readonly objects: readonly unknown[];
|
|
11
11
|
readonly document?: string | undefined;
|
|
12
|
-
}>;
|
|
12
|
+
}, import("@dxos/functions").FunctionServices>;
|
|
13
13
|
export default _default;
|
|
14
14
|
//# sourceMappingURL=research.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"research.d.ts","sourceRoot":"","sources":["../../../../../src/functions/research/research.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"research.d.ts","sourceRoot":"","sources":["../../../../../src/functions/research/research.ts"],"names":[],"mappings":"AAqCA;;GAEG;;;;;;;;;;AACH,wBAyHG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/functions/research/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAIvC;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/functions/research/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAIvC;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,EAc9C,CAAC"}
|
|
@@ -3,13 +3,13 @@ export declare namespace Tasks {
|
|
|
3
3
|
readonly id: string;
|
|
4
4
|
}, {
|
|
5
5
|
readonly content: string;
|
|
6
|
-
}>;
|
|
6
|
+
}, import("@dxos/functions").FunctionServices>;
|
|
7
7
|
const update: import("@dxos/functions").FunctionDefinition<{
|
|
8
8
|
readonly id: string;
|
|
9
9
|
readonly operations?: readonly any[] | undefined;
|
|
10
10
|
}, {
|
|
11
11
|
readonly content: string;
|
|
12
12
|
readonly numberedContent: string;
|
|
13
|
-
}>;
|
|
13
|
+
}, import("@dxos/functions").FunctionServices>;
|
|
14
14
|
}
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/functions/tasks/index.ts"],"names":[],"mappings":"AAOA,yBAAiB,KAAK,CAAC;IACd,MAAM,IAAI;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/functions/tasks/index.ts"],"names":[],"mappings":"AAOA,yBAAiB,KAAK,CAAC;IACd,MAAM,IAAI;;;;kDAAQ,CAAC;IACnB,MAAM,MAAM;;;;;;kDAAU,CAAC;CAC/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../../../src/functions/tasks/read.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../../../src/functions/tasks/read.ts"],"names":[],"mappings":";;;;;AAYA,wBAsBG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../../src/functions/tasks/update.ts"],"names":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../../src/functions/tasks/update.ts"],"names":[],"mappings":";;;;;;;AAcA,wBAsCG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Blueprint } from '@dxos/blueprints';
|
|
3
|
+
import { Database, Obj, Ref } from '@dxos/echo';
|
|
4
|
+
import { QueueService } from '@dxos/functions';
|
|
5
|
+
import { Initiative } from './InitiativeSchema';
|
|
6
|
+
export { Initiative, PLAN_ARTIFACT_NAME, SPEC_ARTIFACT_NAME } from './InitiativeSchema';
|
|
7
|
+
export type { Initiative as InitiativeType } from './InitiativeSchema';
|
|
8
|
+
export declare const make: (props: Omit<Obj.MakeProps<typeof Initiative>, "artifacts" | "chat"> & Partial<Pick<Obj.MakeProps<typeof Initiative>, "artifacts">> & {
|
|
9
|
+
spec: string;
|
|
10
|
+
plan?: string;
|
|
11
|
+
blueprints?: Ref.Ref<Blueprint.Blueprint>[];
|
|
12
|
+
contextObjects?: Ref.Ref<Obj.Any>[];
|
|
13
|
+
}) => Effect.Effect<Initiative, never, QueueService | Database.Service>;
|
|
14
|
+
export declare const functions: (import("@dxos/functions").FunctionDefinition<{}, {
|
|
15
|
+
readonly spec: {
|
|
16
|
+
readonly content: string;
|
|
17
|
+
readonly dxn: string;
|
|
18
|
+
};
|
|
19
|
+
readonly artifacts: readonly {
|
|
20
|
+
readonly name: string;
|
|
21
|
+
readonly type: string;
|
|
22
|
+
readonly dxn: string;
|
|
23
|
+
}[];
|
|
24
|
+
readonly plan: {
|
|
25
|
+
readonly content: string;
|
|
26
|
+
readonly dxn: string;
|
|
27
|
+
};
|
|
28
|
+
}, import("@dxos/functions").FunctionServices> | import("@dxos/functions").FunctionDefinition<{
|
|
29
|
+
readonly name: string;
|
|
30
|
+
readonly content: string;
|
|
31
|
+
readonly create?: boolean | undefined;
|
|
32
|
+
}, void, import("@dxos/functions").FunctionServices> | import("@dxos/functions").FunctionDefinition<{
|
|
33
|
+
readonly prompt?: string | undefined;
|
|
34
|
+
readonly initiative: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
35
|
+
readonly name: string;
|
|
36
|
+
readonly artifacts: readonly {
|
|
37
|
+
readonly name: string;
|
|
38
|
+
readonly data: import("@dxos/echo/internal").Ref<any>;
|
|
39
|
+
}[];
|
|
40
|
+
readonly chat?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
41
|
+
}>;
|
|
42
|
+
readonly event?: {
|
|
43
|
+
readonly from: string;
|
|
44
|
+
readonly to: string;
|
|
45
|
+
readonly body: string;
|
|
46
|
+
readonly created: string;
|
|
47
|
+
readonly subject: string;
|
|
48
|
+
} | {
|
|
49
|
+
readonly queue: string;
|
|
50
|
+
readonly item: any;
|
|
51
|
+
readonly cursor: string;
|
|
52
|
+
} | {
|
|
53
|
+
readonly type: string;
|
|
54
|
+
readonly subject: import("@dxos/echo/internal").Ref<any>;
|
|
55
|
+
readonly changedObjectId?: string | undefined;
|
|
56
|
+
} | {
|
|
57
|
+
readonly tick: number;
|
|
58
|
+
} | {
|
|
59
|
+
readonly url: string;
|
|
60
|
+
readonly method: "GET" | "POST";
|
|
61
|
+
readonly headers: {
|
|
62
|
+
readonly [x: string]: string;
|
|
63
|
+
};
|
|
64
|
+
readonly bodyText: string;
|
|
65
|
+
} | undefined;
|
|
66
|
+
}, void, import("@dxos/functions").FunctionServices>)[];
|
|
67
|
+
export declare const InitiativeBlueprint: Obj.Obj<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
68
|
+
readonly description?: string | undefined;
|
|
69
|
+
readonly name: string;
|
|
70
|
+
readonly key: string;
|
|
71
|
+
readonly instructions: {
|
|
72
|
+
readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
73
|
+
readonly content: string;
|
|
74
|
+
}>;
|
|
75
|
+
readonly inputs?: readonly {
|
|
76
|
+
readonly function?: string | undefined;
|
|
77
|
+
readonly name: string;
|
|
78
|
+
readonly kind?: "function" | "value" | "pass-through" | "retriever" | "query" | "resolver" | "context" | "schema" | undefined;
|
|
79
|
+
readonly default?: any;
|
|
80
|
+
}[] | undefined;
|
|
81
|
+
};
|
|
82
|
+
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
83
|
+
}>;
|
|
84
|
+
//# sourceMappingURL=Initiative.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Initiative.d.ts","sourceRoot":"","sources":["../../../../src/initiative/Initiative.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,SAAS,EAAY,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAM/C,OAAO,EAAE,UAAU,EAA0C,MAAM,oBAAoB,CAAC;AAExF,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxF,YAAY,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEvE,eAAO,MAAM,IAAI,GACf,OAAO,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,OAAO,UAAU,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC,GACjE,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,OAAO,UAAU,CAAC,EAAE,WAAW,CAAC,CAAC,GAAG;IAC7D,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC;IAC5C,cAAc,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;CACrC,KACF,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,KAAK,EAAE,YAAY,GAAG,QAAQ,CAAC,OAAO,CA+B/D,CAAC;AAEL,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uDAA8B,CAAC;AAErD,eAAO,MAAM,mBAAmB;;;;;;;;uBAZF,CAAC;6BACzB,CAAN;;yBAGoB,CAAC;4BAQD,CAAC;;;;EAmCnB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
import { Type } from '@dxos/echo';
|
|
3
|
+
import { Queue } from '@dxos/echo-db';
|
|
4
|
+
/**
|
|
5
|
+
* Initiative schema definition.
|
|
6
|
+
*/
|
|
7
|
+
export declare const Initiative: Type.Obj<{
|
|
8
|
+
readonly name: string;
|
|
9
|
+
readonly artifacts: readonly {
|
|
10
|
+
readonly name: string;
|
|
11
|
+
readonly data: import("@dxos/echo/internal").Ref<any>;
|
|
12
|
+
}[];
|
|
13
|
+
readonly chat?: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
14
|
+
}, Schema.Struct.Fields>;
|
|
15
|
+
export interface Initiative extends Schema.Schema.Type<typeof Initiative> {
|
|
16
|
+
}
|
|
17
|
+
export declare const SPEC_ARTIFACT_NAME = "Spec";
|
|
18
|
+
export declare const PLAN_ARTIFACT_NAME = "Plan";
|
|
19
|
+
//# sourceMappingURL=InitiativeSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InitiativeSchema.d.ts","sourceRoot":"","sources":["../../../../src/initiative/InitiativeSchema.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;wBAmBtB,CAAC;AACF,MAAM,WAAW,UAAW,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC;CAAG;AAE5E,eAAO,MAAM,kBAAkB,SAAS,CAAC;AAEzC,eAAO,MAAM,kBAAkB,SAAS,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
2
|
+
readonly prompt?: string | undefined;
|
|
3
|
+
readonly initiative: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly artifacts: readonly {
|
|
6
|
+
readonly name: string;
|
|
7
|
+
readonly data: import("@dxos/echo/internal").Ref<any>;
|
|
8
|
+
}[];
|
|
9
|
+
readonly chat?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
10
|
+
}>;
|
|
11
|
+
readonly event?: {
|
|
12
|
+
readonly from: string;
|
|
13
|
+
readonly to: string;
|
|
14
|
+
readonly body: string;
|
|
15
|
+
readonly created: string;
|
|
16
|
+
readonly subject: string;
|
|
17
|
+
} | {
|
|
18
|
+
readonly queue: string;
|
|
19
|
+
readonly item: any;
|
|
20
|
+
readonly cursor: string;
|
|
21
|
+
} | {
|
|
22
|
+
readonly type: string;
|
|
23
|
+
readonly subject: import("@dxos/echo/internal").Ref<any>;
|
|
24
|
+
readonly changedObjectId?: string | undefined;
|
|
25
|
+
} | {
|
|
26
|
+
readonly tick: number;
|
|
27
|
+
} | {
|
|
28
|
+
readonly url: string;
|
|
29
|
+
readonly method: "GET" | "POST";
|
|
30
|
+
readonly headers: {
|
|
31
|
+
readonly [x: string]: string;
|
|
32
|
+
};
|
|
33
|
+
readonly bodyText: string;
|
|
34
|
+
} | undefined;
|
|
35
|
+
}, void, import("@dxos/functions").FunctionServices>;
|
|
36
|
+
export default _default;
|
|
37
|
+
//# sourceMappingURL=agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../../../src/initiative/functions/agent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,wBAyCG"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: import("@dxos/functions").FunctionDefinition<{}, {
|
|
2
|
+
readonly spec: {
|
|
3
|
+
readonly content: string;
|
|
4
|
+
readonly dxn: string;
|
|
5
|
+
};
|
|
6
|
+
readonly artifacts: readonly {
|
|
7
|
+
readonly name: string;
|
|
8
|
+
readonly type: string;
|
|
9
|
+
readonly dxn: string;
|
|
10
|
+
}[];
|
|
11
|
+
readonly plan: {
|
|
12
|
+
readonly content: string;
|
|
13
|
+
readonly dxn: string;
|
|
14
|
+
};
|
|
15
|
+
}, import("@dxos/functions").FunctionServices>;
|
|
16
|
+
export default _default;
|
|
17
|
+
//# sourceMappingURL=getContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getContext.d.ts","sourceRoot":"","sources":["../../../../../src/initiative/functions/getContext.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAcA,wBA2DG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/initiative/functions/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
2
|
+
readonly name: string;
|
|
3
|
+
readonly content: string;
|
|
4
|
+
readonly create?: boolean | undefined;
|
|
5
|
+
}, void, import("@dxos/functions").FunctionServices>;
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=update.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../../src/initiative/functions/update.ts"],"names":[],"mappings":";;;;;AAcA,wBAgDG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/initiative/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initiative.test.d.ts","sourceRoot":"","sources":["../../../../src/initiative/initiative.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Effect from 'effect/Effect';
|
|
2
2
|
import { Obj } from '@dxos/echo';
|
|
3
|
-
import {
|
|
3
|
+
import { Database } from '@dxos/echo';
|
|
4
4
|
/**
|
|
5
5
|
* Syncs objects to the database.
|
|
6
6
|
* If there's an object with a matching foreign key in the database, it will be updated.
|
|
@@ -9,7 +9,7 @@ import { DatabaseService } from '@dxos/functions';
|
|
|
9
9
|
*
|
|
10
10
|
* @param opts.foreignKeyId - The key to use for matching objects.
|
|
11
11
|
*/
|
|
12
|
-
export declare const syncObjects: (objs: Obj.
|
|
12
|
+
export declare const syncObjects: (objs: Obj.Unknown[], opts: {
|
|
13
13
|
foreignKeyId: string;
|
|
14
|
-
}) => Effect.Effect<Obj.
|
|
14
|
+
}) => Effect.Effect<Obj.Unknown[], never, Database.Service>;
|
|
15
15
|
//# sourceMappingURL=sync.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../src/sync/sync.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAU,GAAG,EAAc,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../src/sync/sync.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAU,GAAG,EAAc,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAItC;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,EAAE,CACxB,IAAI,EAAE,GAAG,CAAC,OAAO,EAAE,EACnB,IAAI,EAAE;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE,KAC3B,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,QAAQ,CAAC,OAAO,CAwCvD,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './plugins';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/testing/index.ts"],"names":[],"mappings":"AAIA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/testing/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
import { type Obj, Type } from '@dxos/echo';
|
|
4
|
+
export declare const MapSchema: Type.Obj<{
|
|
5
|
+
readonly coordinates: readonly [number, number, (number | undefined)?];
|
|
6
|
+
}, Schema.Struct.Fields>;
|
|
7
|
+
export type MapSchema = Schema.Schema.Type<typeof MapSchema>;
|
|
8
|
+
export type ArtifactsContext = {
|
|
9
|
+
items: Obj.Unknown[];
|
|
10
|
+
getArtifacts: () => Obj.Unknown[];
|
|
11
|
+
addArtifact: (artifact: Obj.Unknown) => void;
|
|
12
|
+
};
|
|
13
|
+
declare global {
|
|
14
|
+
interface ToolContextExtensions {
|
|
15
|
+
artifacts?: ArtifactsContext;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export declare const capabilities: Capability.Any[];
|
|
19
|
+
//# sourceMappingURL=plugins.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../src/testing/plugins.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAU,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAU,KAAK,GAAG,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGpD,eAAO,MAAM,SAAS;;wBAOrB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,CAAC;AAG7D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC;IACrB,YAAY,EAAE,MAAM,GAAG,CAAC,OAAO,EAAE,CAAC;IAClC,WAAW,EAAE,CAAC,QAAQ,EAAE,GAAG,CAAC,OAAO,KAAK,IAAI,CAAC;CAC9C,CAAC;AAEF,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,CAAC,EAAE,gBAAgB,CAAC;KAC9B;CACF;AAKD,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,GAAG,EA6BxC,CAAC"}
|
|
@@ -2,16 +2,42 @@ 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
4
|
import { AiContextService } from '@dxos/assistant';
|
|
5
|
-
import {
|
|
5
|
+
import { Database } from '@dxos/echo';
|
|
6
6
|
export declare const AssistantToolkit: Toolkit.Toolkit<{
|
|
7
|
-
readonly "add
|
|
7
|
+
readonly "context-add": Tool.Tool<"context-add", {
|
|
8
8
|
readonly parameters: Schema.Struct<{
|
|
9
9
|
id: Schema.Schema<string, string, never>;
|
|
10
10
|
}>;
|
|
11
11
|
readonly success: typeof Schema.Void;
|
|
12
12
|
readonly failure: typeof Schema.Never;
|
|
13
|
-
|
|
13
|
+
readonly failureMode: "error";
|
|
14
|
+
}, Database.Service | AiContextService>;
|
|
15
|
+
readonly "context-remove": Tool.Tool<"context-remove", {
|
|
16
|
+
readonly parameters: Schema.Struct<{
|
|
17
|
+
id: Schema.Schema<string, string, never>;
|
|
18
|
+
}>;
|
|
19
|
+
readonly success: typeof Schema.Void;
|
|
20
|
+
readonly failure: typeof Schema.Never;
|
|
21
|
+
readonly failureMode: "error";
|
|
22
|
+
}, Database.Service | AiContextService>;
|
|
14
23
|
}>;
|
|
15
|
-
export declare const tools: "add-
|
|
16
|
-
export declare const layer: () => import("effect/Layer").Layer<Tool.
|
|
24
|
+
export declare const tools: ("context-add" | "context-remove")[];
|
|
25
|
+
export declare const layer: () => import("effect/Layer").Layer<Tool.HandlersFor<{
|
|
26
|
+
readonly "context-add": Tool.Tool<"context-add", {
|
|
27
|
+
readonly parameters: Schema.Struct<{
|
|
28
|
+
id: Schema.Schema<string, string, never>;
|
|
29
|
+
}>;
|
|
30
|
+
readonly success: typeof Schema.Void;
|
|
31
|
+
readonly failure: typeof Schema.Never;
|
|
32
|
+
readonly failureMode: "error";
|
|
33
|
+
}, Database.Service | AiContextService>;
|
|
34
|
+
readonly "context-remove": Tool.Tool<"context-remove", {
|
|
35
|
+
readonly parameters: Schema.Struct<{
|
|
36
|
+
id: Schema.Schema<string, string, never>;
|
|
37
|
+
}>;
|
|
38
|
+
readonly success: typeof Schema.Void;
|
|
39
|
+
readonly failure: typeof Schema.Never;
|
|
40
|
+
readonly failureMode: "error";
|
|
41
|
+
}, Database.Service | AiContextService>;
|
|
42
|
+
}>, never, never>;
|
|
17
43
|
//# sourceMappingURL=AssistantToolkit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssistantToolkit.d.ts","sourceRoot":"","sources":["../../../../src/toolkits/AssistantToolkit.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAG9C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,gBAAgB,EAAc,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"AssistantToolkit.d.ts","sourceRoot":"","sources":["../../../../src/toolkits/AssistantToolkit.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAG9C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,gBAAgB,EAAc,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAY,MAAM,YAAY,CAAC;AAGhD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;EA2B5B,CAAC;AAEF,eAAO,MAAM,KAAK,sCAAsC,CAAC;AAEzD,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;iBAwBd,CAAC"}
|