@dxos/assistant-toolkit 0.8.4-main.2c6827d → 0.8.4-main.3eb6e50203
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/neutral/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/{browser → neutral}/index.mjs +1410 -480
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/testing/index.mjs +44 -0
- package/dist/lib/neutral/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/index.d.ts +1 -0
- package/dist/types/src/blueprints/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/markdown/index.d.ts +3 -0
- package/dist/types/src/blueprints/markdown/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/markdown/markdown-blueprint.d.ts +18 -0
- package/dist/types/src/blueprints/markdown/markdown-blueprint.d.ts.map +1 -0
- 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 -4
- 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/chat/Chat.d.ts +31 -0
- package/dist/types/src/chat/Chat.d.ts.map +1 -0
- package/dist/types/src/chat/index.d.ts +2 -0
- package/dist/types/src/chat/index.d.ts.map +1 -0
- 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 +71 -4
- package/dist/types/src/functions/agent/prompt.d.ts.map +1 -1
- package/dist/types/src/functions/document/create.d.ts +6 -0
- package/dist/types/src/functions/document/create.d.ts.map +1 -0
- package/dist/types/src/functions/document/index.d.ts +20 -3
- package/dist/types/src/functions/document/index.d.ts.map +1 -1
- package/dist/types/src/functions/document/read.d.ts +8 -1
- package/dist/types/src/functions/document/read.d.ts.map +1 -1
- package/dist/types/src/functions/document/update.d.ts +8 -1
- package/dist/types/src/functions/document/update.d.ts.map +1 -1
- package/dist/types/src/functions/entity-extraction/entity-extraction.d.ts +125 -124
- package/dist/types/src/functions/entity-extraction/entity-extraction.d.ts.map +1 -1
- package/dist/types/src/functions/entity-extraction/index.d.ts +125 -124
- 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/github/fetch-prs.d.ts.map +1 -1
- package/dist/types/src/functions/linear/index.d.ts +1 -1
- package/dist/types/src/functions/linear/sync-issues.d.ts +1 -1
- 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/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 +16 -2
- package/dist/types/src/functions/tasks/index.d.ts.map +1 -1
- package/dist/types/src/functions/tasks/read.d.ts +8 -1
- package/dist/types/src/functions/tasks/read.d.ts.map +1 -1
- package/dist/types/src/functions/tasks/update.d.ts +8 -1
- package/dist/types/src/functions/tasks/update.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +4 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/initiative/Initiative.d.ts +41 -0
- package/dist/types/src/initiative/Initiative.d.ts.map +1 -0
- package/dist/types/src/initiative/blueprint.d.ts +153 -0
- package/dist/types/src/initiative/blueprint.d.ts.map +1 -0
- package/dist/types/src/initiative/functions/addArtifact.d.ts +6 -0
- package/dist/types/src/initiative/functions/addArtifact.d.ts.map +1 -0
- package/dist/types/src/initiative/functions/agent.d.ts +62 -0
- package/dist/types/src/initiative/functions/agent.d.ts.map +1 -0
- package/dist/types/src/initiative/functions/getContext.d.ts +13 -0
- package/dist/types/src/initiative/functions/getContext.d.ts.map +1 -0
- package/dist/types/src/initiative/functions/index.d.ts +5 -0
- package/dist/types/src/initiative/functions/index.d.ts.map +1 -0
- package/dist/types/src/initiative/functions/qualifier.d.ts +60 -0
- package/dist/types/src/initiative/functions/qualifier.d.ts.map +1 -0
- package/dist/types/src/initiative/index.d.ts +6 -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/initiative/plan.d.ts +77 -0
- package/dist/types/src/initiative/plan.d.ts.map +1 -0
- package/dist/types/src/initiative/util.d.ts +29 -0
- package/dist/types/src/initiative/util.d.ts.map +1 -0
- package/dist/types/src/planning/blueprint.d.ts +18 -0
- package/dist/types/src/planning/blueprint.d.ts.map +1 -0
- package/dist/types/src/planning/functions/index.d.ts +2 -0
- package/dist/types/src/planning/functions/index.d.ts.map +1 -0
- package/dist/types/src/planning/functions/update-tasks.d.ts +9 -0
- package/dist/types/src/planning/functions/update-tasks.d.ts.map +1 -0
- package/dist/types/src/planning/index.d.ts +3 -0
- package/dist/types/src/planning/index.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/src/toolkits/WebToolkit.d.ts +38 -0
- package/dist/types/src/toolkits/WebToolkit.d.ts.map +1 -0
- package/dist/types/src/toolkits/index.d.ts +1 -0
- package/dist/types/src/toolkits/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +45 -40
- package/src/blueprints/design/design-blueprint.test.ts +14 -17
- 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/index.ts +1 -0
- package/src/blueprints/linear/index.ts +1 -1
- package/src/blueprints/linear/linear-blueprint.ts +2 -4
- package/src/blueprints/markdown/index.ts +7 -0
- package/src/blueprints/markdown/markdown-blueprint.ts +24 -0
- package/src/blueprints/planning/index.ts +1 -1
- package/src/blueprints/planning/planning-blueprint.test.ts +12 -16
- 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 -6
- package/src/blueprints/websearch/index.ts +2 -1
- package/src/blueprints/websearch/websearch-blueprint.ts +2 -4
- package/src/chat/Chat.ts +45 -0
- package/src/chat/index.ts +5 -0
- package/src/crud/graph.test.ts +6 -29
- package/src/crud/graph.ts +32 -40
- package/src/experimental/feed.test.ts +4 -9
- package/src/functions/agent/prompt.ts +15 -13
- package/src/functions/discord/fetch-messages.test.ts +4 -8
- package/src/functions/discord/fetch-messages.ts +1 -1
- package/src/functions/document/create.ts +29 -0
- package/src/functions/document/index.ts +2 -1
- package/src/functions/document/read.ts +11 -8
- package/src/functions/document/update.ts +9 -7
- package/src/functions/entity-extraction/entity-extraction.conversations.json +1 -1
- package/src/functions/entity-extraction/entity-extraction.test.ts +11 -29
- package/src/functions/entity-extraction/entity-extraction.ts +41 -24
- 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 -43
- package/src/functions/linear/sync-issues.ts +9 -7
- package/src/functions/research/document-create.ts +9 -11
- 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 +29 -64
- package/src/functions/research/research.ts +15 -23
- package/src/functions/research/types.ts +3 -3
- package/src/functions/tasks/read.ts +6 -6
- package/src/functions/tasks/update.ts +6 -6
- package/src/index.ts +4 -2
- package/src/initiative/Initiative.ts +61 -0
- package/src/initiative/blueprint.ts +60 -0
- package/src/initiative/functions/addArtifact.ts +41 -0
- package/src/initiative/functions/agent.ts +77 -0
- package/src/initiative/functions/getContext.ts +62 -0
- package/src/initiative/functions/index.ts +8 -0
- package/src/initiative/functions/qualifier.ts +98 -0
- package/src/initiative/index.ts +9 -0
- package/src/initiative/initiative.test.ts +584 -0
- package/src/initiative/plan.ts +107 -0
- package/src/initiative/util.ts +137 -0
- package/src/planning/blueprint.ts +14 -0
- package/src/planning/functions/index.ts +5 -0
- package/src/planning/functions/update-tasks.ts +168 -0
- package/src/planning/index.ts +6 -0
- package/src/sync/sync.ts +38 -30
- package/src/testing/index.ts +1 -1
- package/src/{plugins.tsx → testing/plugins.tsx} +14 -13
- package/src/toolkits/AssistantToolkit.conversations.json +1 -1
- package/src/toolkits/AssistantToolkit.test.ts +27 -43
- package/src/toolkits/AssistantToolkit.ts +31 -8
- package/src/toolkits/SystemToolkit.ts +100 -32
- package/src/toolkits/WebToolkit.ts +34 -0
- package/src/toolkits/index.ts +1 -0
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/node-esm/index.mjs +0 -2779
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +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/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
|
@@ -5,7 +5,7 @@ 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;
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
2
2
|
readonly name: string;
|
|
3
3
|
readonly content: string;
|
|
4
|
-
readonly subject:
|
|
4
|
+
readonly subject: import("@dxos/echo/internal").Ref<any>;
|
|
5
5
|
}, {
|
|
6
6
|
readonly document: string;
|
|
7
7
|
}, import("@dxos/functions").FunctionServices>;
|
|
@@ -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":";;;;;;;AAcA,wBA0DG"}
|
|
@@ -4,7 +4,7 @@ export declare namespace Research {
|
|
|
4
4
|
const create: import("@dxos/functions").FunctionDefinition<{
|
|
5
5
|
readonly name: string;
|
|
6
6
|
readonly content: string;
|
|
7
|
-
readonly subject:
|
|
7
|
+
readonly subject: import("@dxos/echo/internal").Ref<any>;
|
|
8
8
|
}, {
|
|
9
9
|
readonly document: string;
|
|
10
10
|
}, import("@dxos/functions").FunctionServices>;
|
|
@@ -14,8 +14,8 @@ export declare namespace Research {
|
|
|
14
14
|
readonly mockSearch?: boolean | undefined;
|
|
15
15
|
readonly entityExtraction?: boolean | undefined;
|
|
16
16
|
}, {
|
|
17
|
-
readonly objects: readonly unknown[];
|
|
18
17
|
readonly document?: string | undefined;
|
|
18
|
+
readonly objects: readonly unknown[];
|
|
19
19
|
}, import("@dxos/functions").FunctionServices>;
|
|
20
20
|
}
|
|
21
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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"}
|
|
@@ -7,8 +7,8 @@ declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
|
7
7
|
readonly mockSearch?: boolean | undefined;
|
|
8
8
|
readonly entityExtraction?: boolean | undefined;
|
|
9
9
|
}, {
|
|
10
|
-
readonly objects: readonly unknown[];
|
|
11
10
|
readonly document?: string | undefined;
|
|
11
|
+
readonly objects: readonly unknown[];
|
|
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":"AA+BA;;GAEG;;;;;;;;;;AACH,wBAwHG"}
|
|
@@ -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"}
|
|
@@ -1,11 +1,25 @@
|
|
|
1
1
|
export declare namespace Tasks {
|
|
2
2
|
const read: import("@dxos/functions").FunctionDefinition<{
|
|
3
|
-
readonly
|
|
3
|
+
readonly doc: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
4
|
+
readonly name?: string | undefined;
|
|
5
|
+
readonly description?: string | undefined;
|
|
6
|
+
readonly fallbackName?: string | undefined;
|
|
7
|
+
readonly content: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
8
|
+
readonly content: string;
|
|
9
|
+
}>;
|
|
10
|
+
}>;
|
|
4
11
|
}, {
|
|
5
12
|
readonly content: string;
|
|
6
13
|
}, import("@dxos/functions").FunctionServices>;
|
|
7
14
|
const update: import("@dxos/functions").FunctionDefinition<{
|
|
8
|
-
readonly
|
|
15
|
+
readonly doc: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
16
|
+
readonly name?: string | undefined;
|
|
17
|
+
readonly description?: string | undefined;
|
|
18
|
+
readonly fallbackName?: string | undefined;
|
|
19
|
+
readonly content: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
20
|
+
readonly content: string;
|
|
21
|
+
}>;
|
|
22
|
+
}>;
|
|
9
23
|
readonly operations?: readonly any[] | undefined;
|
|
10
24
|
}, {
|
|
11
25
|
readonly content: string;
|
|
@@ -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,5 +1,12 @@
|
|
|
1
1
|
declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
2
|
-
readonly
|
|
2
|
+
readonly doc: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
3
|
+
readonly name?: string | undefined;
|
|
4
|
+
readonly description?: string | undefined;
|
|
5
|
+
readonly fallbackName?: string | undefined;
|
|
6
|
+
readonly content: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
7
|
+
readonly content: string;
|
|
8
|
+
}>;
|
|
9
|
+
}>;
|
|
3
10
|
}, {
|
|
4
11
|
readonly content: string;
|
|
5
12
|
}, import("@dxos/functions").FunctionServices>;
|
|
@@ -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":";;;;;;;;;;;;AAWA,wBAsBG"}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
2
|
-
readonly
|
|
2
|
+
readonly doc: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
3
|
+
readonly name?: string | undefined;
|
|
4
|
+
readonly description?: string | undefined;
|
|
5
|
+
readonly fallbackName?: string | undefined;
|
|
6
|
+
readonly content: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
7
|
+
readonly content: string;
|
|
8
|
+
}>;
|
|
9
|
+
}>;
|
|
3
10
|
readonly operations?: readonly any[] | undefined;
|
|
4
11
|
}, {
|
|
5
12
|
readonly content: string;
|
|
@@ -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":";;;;;;;;;;;;;;AAaA,wBAsCG"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export * from './blueprints';
|
|
2
|
+
export * from './chat';
|
|
3
|
+
export * from './crud';
|
|
2
4
|
export * from './functions';
|
|
3
|
-
export * from './
|
|
5
|
+
export * as Initiative from './initiative';
|
|
4
6
|
export * from './sync';
|
|
5
|
-
export * from './crud';
|
|
6
7
|
export * from './toolkits';
|
|
8
|
+
export * as Planning from './planning';
|
|
7
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 queue?: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
10
|
+
readonly chat?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
11
|
+
readonly name?: string | undefined;
|
|
12
|
+
readonly queue: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>>;
|
|
13
|
+
readonly traceQueue?: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
14
|
+
}> | undefined;
|
|
15
|
+
readonly spec: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
16
|
+
readonly content: string;
|
|
17
|
+
}>;
|
|
18
|
+
readonly plan: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
19
|
+
readonly tasks: readonly {
|
|
20
|
+
readonly title: string;
|
|
21
|
+
readonly id: string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">;
|
|
22
|
+
readonly status: "done" | "todo" | "in-progress";
|
|
23
|
+
readonly parent?: (string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">) | undefined;
|
|
24
|
+
readonly chat?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
25
|
+
readonly name?: string | undefined;
|
|
26
|
+
readonly queue: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>>;
|
|
27
|
+
readonly traceQueue?: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
28
|
+
}> | undefined;
|
|
29
|
+
}[];
|
|
30
|
+
}>;
|
|
31
|
+
readonly artifacts: readonly {
|
|
32
|
+
readonly name: string;
|
|
33
|
+
readonly data: import("@dxos/echo/internal").Ref<any>;
|
|
34
|
+
}[];
|
|
35
|
+
readonly subscriptions: readonly import("@dxos/echo/internal").Ref<any>[];
|
|
36
|
+
readonly useQualifyingAgent?: boolean | undefined;
|
|
37
|
+
readonly newChatOnEveryEvent?: boolean | undefined;
|
|
38
|
+
}, Schema.Struct.Fields>;
|
|
39
|
+
export interface Initiative extends Schema.Schema.Type<typeof Initiative> {
|
|
40
|
+
}
|
|
41
|
+
//# 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;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAOtC;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA0CtB,CAAC;AACF,MAAM,WAAW,UAAW,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC;CAAG"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get all initiative functions. This is a function to avoid circular dependency issues.
|
|
3
|
+
*/
|
|
4
|
+
export declare const getFunctions: () => (import("@dxos/functions").FunctionDefinition<{}, {
|
|
5
|
+
readonly name: string;
|
|
6
|
+
readonly id: string;
|
|
7
|
+
readonly spec: string;
|
|
8
|
+
readonly plan: string;
|
|
9
|
+
readonly artifacts: readonly {
|
|
10
|
+
readonly name: string;
|
|
11
|
+
readonly type?: string | undefined;
|
|
12
|
+
readonly dxn?: string | undefined;
|
|
13
|
+
}[];
|
|
14
|
+
}, import("@dxos/functions").FunctionServices> | import("@dxos/functions").FunctionDefinition<{
|
|
15
|
+
readonly name: string;
|
|
16
|
+
readonly artifact: import("@dxos/echo/internal").Ref<any>;
|
|
17
|
+
}, void, import("@dxos/functions").FunctionServices> | import("@dxos/functions").FunctionDefinition<{
|
|
18
|
+
readonly prompt?: string | undefined;
|
|
19
|
+
readonly initiative: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
20
|
+
readonly name: string;
|
|
21
|
+
readonly queue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
22
|
+
readonly chat?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
23
|
+
readonly name?: string | undefined;
|
|
24
|
+
readonly queue: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>>;
|
|
25
|
+
readonly traceQueue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
26
|
+
}> | undefined;
|
|
27
|
+
readonly spec: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
28
|
+
readonly content: string;
|
|
29
|
+
}>;
|
|
30
|
+
readonly plan: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
31
|
+
readonly tasks: readonly {
|
|
32
|
+
readonly title: string;
|
|
33
|
+
readonly id: string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">;
|
|
34
|
+
readonly status: "done" | "todo" | "in-progress";
|
|
35
|
+
readonly parent?: (string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">) | undefined;
|
|
36
|
+
readonly chat?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
37
|
+
readonly name?: string | undefined;
|
|
38
|
+
readonly queue: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>>;
|
|
39
|
+
readonly traceQueue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
40
|
+
}> | undefined;
|
|
41
|
+
}[];
|
|
42
|
+
}>;
|
|
43
|
+
readonly artifacts: readonly {
|
|
44
|
+
readonly name: string;
|
|
45
|
+
readonly data: import("@dxos/echo/internal").Ref<any>;
|
|
46
|
+
}[];
|
|
47
|
+
readonly subscriptions: readonly import("@dxos/echo/internal").Ref<any>[];
|
|
48
|
+
readonly useQualifyingAgent?: boolean | undefined;
|
|
49
|
+
readonly newChatOnEveryEvent?: boolean | undefined;
|
|
50
|
+
}>;
|
|
51
|
+
readonly event?: {
|
|
52
|
+
readonly from: string;
|
|
53
|
+
readonly to: string;
|
|
54
|
+
readonly body: string;
|
|
55
|
+
readonly created: string;
|
|
56
|
+
readonly subject: string;
|
|
57
|
+
} | {
|
|
58
|
+
readonly queue: string;
|
|
59
|
+
readonly item: any;
|
|
60
|
+
readonly cursor: string;
|
|
61
|
+
} | {
|
|
62
|
+
readonly type: string;
|
|
63
|
+
readonly subject: import("@dxos/echo/internal").Ref<any>;
|
|
64
|
+
readonly changedObjectId?: string | undefined;
|
|
65
|
+
} | {
|
|
66
|
+
readonly tick: number;
|
|
67
|
+
} | {
|
|
68
|
+
readonly url: string;
|
|
69
|
+
readonly method: "GET" | "POST";
|
|
70
|
+
readonly headers: {
|
|
71
|
+
readonly [x: string]: string;
|
|
72
|
+
};
|
|
73
|
+
readonly bodyText: string;
|
|
74
|
+
} | undefined;
|
|
75
|
+
}, void, import("@dxos/functions").FunctionServices> | import("@dxos/functions").FunctionDefinition<{
|
|
76
|
+
readonly initiative: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
77
|
+
readonly name: string;
|
|
78
|
+
readonly queue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
79
|
+
readonly chat?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
80
|
+
readonly name?: string | undefined;
|
|
81
|
+
readonly queue: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>>;
|
|
82
|
+
readonly traceQueue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
83
|
+
}> | undefined;
|
|
84
|
+
readonly spec: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
85
|
+
readonly content: string;
|
|
86
|
+
}>;
|
|
87
|
+
readonly plan: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
88
|
+
readonly tasks: readonly {
|
|
89
|
+
readonly title: string;
|
|
90
|
+
readonly id: string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">;
|
|
91
|
+
readonly status: "done" | "todo" | "in-progress";
|
|
92
|
+
readonly parent?: (string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">) | undefined;
|
|
93
|
+
readonly chat?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
94
|
+
readonly name?: string | undefined;
|
|
95
|
+
readonly queue: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>>;
|
|
96
|
+
readonly traceQueue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
97
|
+
}> | undefined;
|
|
98
|
+
}[];
|
|
99
|
+
}>;
|
|
100
|
+
readonly artifacts: readonly {
|
|
101
|
+
readonly name: string;
|
|
102
|
+
readonly data: import("@dxos/echo/internal").Ref<any>;
|
|
103
|
+
}[];
|
|
104
|
+
readonly subscriptions: readonly import("@dxos/echo/internal").Ref<any>[];
|
|
105
|
+
readonly useQualifyingAgent?: boolean | undefined;
|
|
106
|
+
readonly newChatOnEveryEvent?: boolean | undefined;
|
|
107
|
+
}>;
|
|
108
|
+
readonly event: {
|
|
109
|
+
readonly from: string;
|
|
110
|
+
readonly to: string;
|
|
111
|
+
readonly body: string;
|
|
112
|
+
readonly created: string;
|
|
113
|
+
readonly subject: string;
|
|
114
|
+
} | {
|
|
115
|
+
readonly queue: string;
|
|
116
|
+
readonly item: any;
|
|
117
|
+
readonly cursor: string;
|
|
118
|
+
} | {
|
|
119
|
+
readonly type: string;
|
|
120
|
+
readonly subject: import("@dxos/echo/internal").Ref<any>;
|
|
121
|
+
readonly changedObjectId?: string | undefined;
|
|
122
|
+
} | {
|
|
123
|
+
readonly tick: number;
|
|
124
|
+
} | {
|
|
125
|
+
readonly url: string;
|
|
126
|
+
readonly method: "GET" | "POST";
|
|
127
|
+
readonly headers: {
|
|
128
|
+
readonly [x: string]: string;
|
|
129
|
+
};
|
|
130
|
+
readonly bodyText: string;
|
|
131
|
+
};
|
|
132
|
+
}, void, import("@dxos/functions").FunctionServices>)[];
|
|
133
|
+
/**
|
|
134
|
+
* Creates the Initiative blueprint. This is a function to avoid circular dependency issues.
|
|
135
|
+
*/
|
|
136
|
+
export declare const makeBlueprint: () => import("@dxos/echo/Obj").Obj<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
137
|
+
readonly description?: string | undefined;
|
|
138
|
+
readonly name: string;
|
|
139
|
+
readonly key: string;
|
|
140
|
+
readonly instructions: {
|
|
141
|
+
readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
142
|
+
readonly content: string;
|
|
143
|
+
}>;
|
|
144
|
+
readonly inputs?: readonly {
|
|
145
|
+
readonly function?: string | undefined;
|
|
146
|
+
readonly name: string;
|
|
147
|
+
readonly kind?: "function" | "value" | "pass-through" | "retriever" | "query" | "resolver" | "context" | "schema" | undefined;
|
|
148
|
+
readonly default?: any;
|
|
149
|
+
}[] | undefined;
|
|
150
|
+
};
|
|
151
|
+
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
152
|
+
}>;
|
|
153
|
+
//# sourceMappingURL=blueprint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blueprint.d.ts","sourceRoot":"","sources":["../../../../src/initiative/blueprint.ts"],"names":[],"mappings":"AASA;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uDAAoD,CAAC;AAE9E;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;uBA2CsI,CAAC;6BAA0C,CAAC;;yBAAkF,CAAC;4BAA6I,CAAC;;;;EADza,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
2
|
+
readonly name: string;
|
|
3
|
+
readonly artifact: import("@dxos/echo/internal").Ref<any>;
|
|
4
|
+
}, void, import("@dxos/functions").FunctionServices>;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=addArtifact.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addArtifact.d.ts","sourceRoot":"","sources":["../../../../../src/initiative/functions/addArtifact.ts"],"names":[],"mappings":";;;;AAaA,wBA2BG"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { type Queue } from '@dxos/echo-db';
|
|
2
|
+
declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
3
|
+
readonly prompt?: string | undefined;
|
|
4
|
+
readonly initiative: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
5
|
+
readonly name: string;
|
|
6
|
+
readonly queue?: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
7
|
+
readonly chat?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
8
|
+
readonly name?: string | undefined;
|
|
9
|
+
readonly queue: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>>;
|
|
10
|
+
readonly traceQueue?: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
11
|
+
}> | undefined;
|
|
12
|
+
readonly spec: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
13
|
+
readonly content: string;
|
|
14
|
+
}>;
|
|
15
|
+
readonly plan: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
16
|
+
readonly tasks: readonly {
|
|
17
|
+
readonly title: string;
|
|
18
|
+
readonly id: string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">;
|
|
19
|
+
readonly status: "done" | "todo" | "in-progress";
|
|
20
|
+
readonly parent?: (string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">) | undefined;
|
|
21
|
+
readonly chat?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
22
|
+
readonly name?: string | undefined;
|
|
23
|
+
readonly queue: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>>;
|
|
24
|
+
readonly traceQueue?: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
25
|
+
}> | undefined;
|
|
26
|
+
}[];
|
|
27
|
+
}>;
|
|
28
|
+
readonly artifacts: readonly {
|
|
29
|
+
readonly name: string;
|
|
30
|
+
readonly data: import("@dxos/echo/internal").Ref<any>;
|
|
31
|
+
}[];
|
|
32
|
+
readonly subscriptions: readonly import("@dxos/echo/internal").Ref<any>[];
|
|
33
|
+
readonly useQualifyingAgent?: boolean | undefined;
|
|
34
|
+
readonly newChatOnEveryEvent?: boolean | undefined;
|
|
35
|
+
}>;
|
|
36
|
+
readonly event?: {
|
|
37
|
+
readonly from: string;
|
|
38
|
+
readonly to: string;
|
|
39
|
+
readonly body: string;
|
|
40
|
+
readonly created: string;
|
|
41
|
+
readonly subject: string;
|
|
42
|
+
} | {
|
|
43
|
+
readonly queue: string;
|
|
44
|
+
readonly item: any;
|
|
45
|
+
readonly cursor: string;
|
|
46
|
+
} | {
|
|
47
|
+
readonly type: string;
|
|
48
|
+
readonly subject: import("@dxos/echo/internal").Ref<any>;
|
|
49
|
+
readonly changedObjectId?: string | undefined;
|
|
50
|
+
} | {
|
|
51
|
+
readonly tick: number;
|
|
52
|
+
} | {
|
|
53
|
+
readonly url: string;
|
|
54
|
+
readonly method: "GET" | "POST";
|
|
55
|
+
readonly headers: {
|
|
56
|
+
readonly [x: string]: string;
|
|
57
|
+
};
|
|
58
|
+
readonly bodyText: string;
|
|
59
|
+
} | undefined;
|
|
60
|
+
}, void, import("@dxos/functions").FunctionServices>;
|
|
61
|
+
export default _default;
|
|
62
|
+
//# sourceMappingURL=agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../../../src/initiative/functions/agent.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAS3C,wBAyDG"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: import("@dxos/functions").FunctionDefinition<{}, {
|
|
2
|
+
readonly name: string;
|
|
3
|
+
readonly id: string;
|
|
4
|
+
readonly spec: string;
|
|
5
|
+
readonly plan: string;
|
|
6
|
+
readonly artifacts: readonly {
|
|
7
|
+
readonly name: string;
|
|
8
|
+
readonly type?: string | undefined;
|
|
9
|
+
readonly dxn?: string | undefined;
|
|
10
|
+
}[];
|
|
11
|
+
}, import("@dxos/functions").FunctionServices>;
|
|
12
|
+
export default _default;
|
|
13
|
+
//# 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,wBA+CG"}
|
|
@@ -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,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
2
|
+
readonly initiative: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
3
|
+
readonly name: string;
|
|
4
|
+
readonly queue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
5
|
+
readonly chat?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
6
|
+
readonly name?: string | undefined;
|
|
7
|
+
readonly queue: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>>;
|
|
8
|
+
readonly traceQueue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
9
|
+
}> | undefined;
|
|
10
|
+
readonly spec: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
11
|
+
readonly content: string;
|
|
12
|
+
}>;
|
|
13
|
+
readonly plan: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
14
|
+
readonly tasks: readonly {
|
|
15
|
+
readonly title: string;
|
|
16
|
+
readonly id: string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">;
|
|
17
|
+
readonly status: "done" | "todo" | "in-progress";
|
|
18
|
+
readonly parent?: (string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">) | undefined;
|
|
19
|
+
readonly chat?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
20
|
+
readonly name?: string | undefined;
|
|
21
|
+
readonly queue: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>>;
|
|
22
|
+
readonly traceQueue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
23
|
+
}> | undefined;
|
|
24
|
+
}[];
|
|
25
|
+
}>;
|
|
26
|
+
readonly artifacts: readonly {
|
|
27
|
+
readonly name: string;
|
|
28
|
+
readonly data: import("@dxos/echo/internal").Ref<any>;
|
|
29
|
+
}[];
|
|
30
|
+
readonly subscriptions: readonly import("@dxos/echo/internal").Ref<any>[];
|
|
31
|
+
readonly useQualifyingAgent?: boolean | undefined;
|
|
32
|
+
readonly newChatOnEveryEvent?: boolean | undefined;
|
|
33
|
+
}>;
|
|
34
|
+
readonly event: {
|
|
35
|
+
readonly from: string;
|
|
36
|
+
readonly to: string;
|
|
37
|
+
readonly body: string;
|
|
38
|
+
readonly created: string;
|
|
39
|
+
readonly subject: string;
|
|
40
|
+
} | {
|
|
41
|
+
readonly queue: string;
|
|
42
|
+
readonly item: any;
|
|
43
|
+
readonly cursor: string;
|
|
44
|
+
} | {
|
|
45
|
+
readonly type: string;
|
|
46
|
+
readonly subject: import("@dxos/echo/internal").Ref<any>;
|
|
47
|
+
readonly changedObjectId?: string | undefined;
|
|
48
|
+
} | {
|
|
49
|
+
readonly tick: number;
|
|
50
|
+
} | {
|
|
51
|
+
readonly url: string;
|
|
52
|
+
readonly method: "GET" | "POST";
|
|
53
|
+
readonly headers: {
|
|
54
|
+
readonly [x: string]: string;
|
|
55
|
+
};
|
|
56
|
+
readonly bodyText: string;
|
|
57
|
+
};
|
|
58
|
+
}, void, import("@dxos/functions").FunctionServices>;
|
|
59
|
+
export default _default;
|
|
60
|
+
//# sourceMappingURL=qualifier.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qualifier.d.ts","sourceRoot":"","sources":["../../../../../src/initiative/functions/qualifier.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,wBA+EG"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Initiative } from './Initiative';
|
|
2
|
+
export { makeInitialized, resetChatHistory, getFromChatContext } from './util';
|
|
3
|
+
export { getFunctions, makeBlueprint } from './blueprint';
|
|
4
|
+
export * from './functions';
|
|
5
|
+
export * from './plan';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/initiative/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC1D,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initiative.test.d.ts","sourceRoot":"","sources":["../../../../src/initiative/initiative.test.ts"],"names":[],"mappings":""}
|